[Paper Review] LinkBERT: Pretraining Language Models with Document Links
LinkBERT is a novel language model pretraining method that leverages document links—such as hyperlinks in Wikipedia and citation links in PubMed—to improve multi-hop reasoning and knowledge integration. By jointly training on masked language modeling and document relation prediction using linked document pairs, LinkBERT achieves state-of-the-art performance on downstream tasks, including +7% accuracy on USMLE and +5% F1 on HotpotQA.
Language model (LM) pretraining can learn various knowledge from text corpora, helping downstream tasks. However, existing methods such as BERT model a single document, and do not capture dependencies or knowledge that span across documents. In this work, we propose LinkBERT, an LM pretraining method that leverages links between documents, e.g., hyperlinks. Given a text corpus, we view it as a graph of documents and create LM inputs by placing linked documents in the same context. We then pretrain the LM with two joint self-supervised objectives: masked language modeling and our new proposal, document relation prediction. We show that LinkBERT outperforms BERT on various downstream tasks across two domains: the general domain (pretrained on Wikipedia with hyperlinks) and biomedical domain (pretrained on PubMed with citation links). LinkBERT is especially effective for multi-hop reasoning and few-shot QA (+5% absolute improvement on HotpotQA and TriviaQA), and our biomedical LinkBERT sets new states of the art on various BioNLP tasks (+7% on BioASQ and USMLE). We release our pretrained models, LinkBERT and BioLinkBERT, as well as code and data at https://github.com/michiyasunaga/LinkBERT.
Motivation & Objective
- To address the limitation of existing language models that pretrain on single documents and fail to capture cross-document knowledge dependencies.
- To explore whether document links (e.g., hyperlinks, citations) can serve as a source of multi-hop knowledge during pretraining.
- To improve performance on knowledge-intensive NLP tasks such as question answering and reasoning by incorporating document-level relational signals.
- To develop a self-supervised pretraining framework that fuses language modeling with graph-based learning on document-link networks.
- To establish new state-of-the-art results on biomedical and general-domain NLP benchmarks using domain-specific variants (BioLinkBERT).
Proposed method
- Represent the pretraining corpus as a graph of documents, where links (e.g., hyperlinks, citations) define edges between documents.
- Construct input sequences by placing a source document segment followed by a second segment that is either contiguous (same document), random (unrelated document), or linked (connected via a hyperlink or citation).
- Train the model jointly on two self-supervised objectives: masked language modeling (MLM) and document relation prediction (DRP).
- Use DRP to classify the relationship between the two input segments as contiguous, random, or linked, encouraging the model to learn bridging concepts and relevance.
- Pretrain on two domains: Wikipedia with hyperlinks (general domain) and PubMed with citation links (biomedical domain).
- Fine-tune the resulting models (LinkBERT and BioLinkBERT) on downstream tasks such as question answering and text classification.
Experimental results
Research questions
- RQ1Can incorporating document links during pretraining improve language model performance on knowledge-intensive tasks?
- RQ2Does the use of document links enhance multi-hop reasoning capabilities compared to standard BERT-style pretraining?
- RQ3How does LinkBERT compare to existing models like BERT and PubMedBERT on downstream benchmarks in both general and biomedical domains?
- RQ4To what extent do document links contribute to few-shot and zero-shot question answering performance?
- RQ5Can a smaller, domain-specific model like BioLinkBERT outperform larger general-domain models on specialized reasoning tasks?
Key findings
- LinkBERT achieves a +4% absolute F1-score improvement over BERT on the MRQA benchmark and outperforms BERT on the GLUE benchmark in the general domain.
- On the BioASQ and PubMedQA biomedical question-answering tasks, BioLinkBERT achieves a +7% absolute accuracy boost over the previous state of the art.
- In the MedQA-USMLE professional medicine benchmark, BioLinkBERT (large) achieves 50% accuracy with only 340M parameters, outperforming GPT-3 (175B parameters) at 39%.
- LinkBERT shows a +5% absolute improvement on HotpotQA and TriviaQA for few-shot question answering, indicating strong multi-hop reasoning capabilities.
- The DRP objective significantly improves the model's ability to learn bridging concepts between documents, such as 'National Cherry Blossom Festival' linking 'Tidal Basin' and 'Japanese cherry trees'.
- Qualitative analysis confirms that BioLinkBERT correctly identifies multi-hop reasoning chains (e.g., pancreatic cancer → deep vein thrombosis → compression ultrasonography) where PubmedBERT fails due to reliance on surface-level word matches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.