Command Palette
Search for a command to run...
Michihiro Yasunaga; Jure Leskovec; Percy Liang

Abstract
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.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| document-classification-on-hoc | BioLinkBERT (large) | F1: 88.1 Micro F1: 84.87 |
| medical-relation-extraction-on-ddi-extraction | BioLinkBERT (large) | F1: 83.35 |
| named-entity-recognition-ner-on-bc5cdr | BioLinkBERT (large) | F1: 90.22 |
| named-entity-recognition-ner-on-jnlpba | BioLinkBERT (large) | F1: 80.06 |
| named-entity-recognition-ner-on-ncbi-disease | BioLinkBERT (large) | F1: 88.76 |
| named-entity-recognition-on-bc2gm | BioLinkBERT (large) | F1: 85.18 |
| named-entity-recognition-on-bc5cdr-chemical | BioLinkBERT (large) | F1: 94.04 |
| named-entity-recognition-on-bc5cdr-disease | BioLinkBERT (large) | F1: 86.39 |
| pico-on-ebm-pico | BioLinkBERT (base) | Macro F1 word level: 73.97 |
| pico-on-ebm-pico | BioLinkBERT (large) | Macro F1 word level: 74.19 |
| question-answering-on-bioasq | BioLinkBERT (base) | Accuracy: 91.4 |
| question-answering-on-bioasq | BioLinkBERT (large) | Accuracy: 94.8 |
| question-answering-on-blurb | BioLinkBERT (base) | Accuracy: 80.81 |
| question-answering-on-blurb | BioLinkBERT (large) | Accuracy: 83.5 |
| question-answering-on-medqa-usmle | BioLinkBERT (base) | Accuracy: 40.0 |
| question-answering-on-mrqa-2019 | LinkBERT (large) | Average F1: 81.0 |
| question-answering-on-newsqa | LinkBERT (large) | F1: 72.6 |
| question-answering-on-pubmedqa | BioLinkBERT (base) | Accuracy: 70.2 |
| question-answering-on-pubmedqa | BioLinkBERT (large) | Accuracy: 72.2 |
| question-answering-on-squad11 | LinkBERT (large) | EM: 87.45 F1: 92.7 |
| question-answering-on-triviaqa | LinkBERT (large) | F1: 78.2 |
| relation-extraction-on-chemprot | BioLinkBERT (large) | F1: 79.98 Micro F1: 79.98 |
| relation-extraction-on-ddi | BioLinkBERT (large) | F1: 83.35 Micro F1: 83.35 |
| relation-extraction-on-gad | BioLinkBERT (large) | F1: 84.90 Micro F1: 84.90 |
| semantic-similarity-on-biosses | BioLinkBERT (base) | Pearson Correlation: 0.9325 |
| semantic-similarity-on-biosses | BioLinkBERT (large) | Pearson Correlation: 0.9363 |
| text-classification-on-blurb | BioLinkBERT (base) | F1: 84.35 |
| text-classification-on-blurb | BioLinkBERT (large) | F1: 84.88 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.