CDLM: Cross-document Language Modeling · The Large Language Model Bible Contribute to LLM-Bible

CDLM: Cross-document Language Modeling

Caciularu Avi, Cohan Arman, Beltagy Iz, Peters Matthew E., Cattan Arie, Dagan Ido. Arxiv 2021

[Paper] [Code]    
Attention Mechanism BERT Has Code Language Modeling Masked Language Model Model Architecture Pretraining Methods RAG Training Techniques Transformer

We introduce a new pretraining approach geared for multi-document language modeling, incorporating two key ideas into the masked language modeling self-supervised objective. First, instead of considering documents in isolation, we pretrain over sets of multiple related documents, encouraging the model to learn cross-document relationships. Second, we improve over recent long-range transformers by introducing dynamic global attention that has access to the entire input to predict masked tokens. We release CDLM (Cross-Document Language Model), a new general language model for multi-document setting that can be easily applied to downstream tasks. Our extensive analysis shows that both ideas are essential for the success of CDLM, and work in synergy to set new state-of-the-art results for several multi-text tasks. Code and models are available at https://github.com/aviclu/CDLM.

Similar Work