This model achieves state-of-the-art performance on several biomedical NLP benchmarks such as
BLURB
and
MedQA-USMLE
.
Model description
LinkBERT is a transformer encoder (BERT-like) model pretrained on a large corpus of documents. It is an improvement of BERT that newly captures
document links
such as hyperlinks and citation links to include knowledge that spans across multiple documents. Specifically, it was pretrained by feeding linked documents into the same language model context, besides a single document.
LinkBERT can be used as a drop-in replacement for BERT. It achieves better performance for general language understanding tasks (e.g. text classification), and is also particularly effective for
knowledge-intensive
tasks (e.g. question answering) and
cross-document
tasks (e.g. reading comprehension, document retrieval).
Intended uses & limitations
The model can be used by fine-tuning on a downstream task, such as question answering, sequence classification, and token classification.
You can also use the raw model for feature extraction (i.e. obtaining embeddings for input text).
How to use
To use the model to get the features of a given text in PyTorch:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('michiyasunaga/BioLinkBERT-base')
model = AutoModel.from_pretrained('michiyasunaga/BioLinkBERT-base')
inputs = tokenizer("Sunitinib is a tyrosine kinase inhibitor", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
For fine-tuning, you can use
this repository
or follow any other BERT fine-tuning codebases.
Evaluation results
When fine-tuned on downstream tasks, LinkBERT achieves the following results.
If you find LinkBERT useful in your project, please cite the following:
@InProceedings{yasunaga2022linkbert,
author = {Michihiro Yasunaga and Jure Leskovec and Percy Liang},
title = {LinkBERT: Pretraining Language Models with Document Links},
year = {2022},
booktitle = {Association for Computational Linguistics (ACL)},
}
Runs of michiyasunaga BioLinkBERT-base on huggingface.co
17.2K
Total runs
415
24-hour runs
-10
3-day runs
3.1K
7-day runs
-1.4K
30-day runs
More Information About BioLinkBERT-base huggingface.co Model
BioLinkBERT-base huggingface.co is an AI model on huggingface.co that provides BioLinkBERT-base's model effect (), which can be used instantly with this michiyasunaga BioLinkBERT-base model. huggingface.co supports a free trial of the BioLinkBERT-base model, and also provides paid use of the BioLinkBERT-base. Support call BioLinkBERT-base model through api, including Node.js, Python, http.
BioLinkBERT-base huggingface.co is an online trial and call api platform, which integrates BioLinkBERT-base's modeling effects, including api services, and provides a free online trial of BioLinkBERT-base, you can try BioLinkBERT-base online for free by clicking the link below.
michiyasunaga BioLinkBERT-base online free url in huggingface.co:
BioLinkBERT-base is an open source model from GitHub that offers a free installation service, and any user can find BioLinkBERT-base on GitHub to install. At the same time, huggingface.co provides the effect of BioLinkBERT-base install, users can directly use BioLinkBERT-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.