Papers › BioBERT: a pre-trained biomedical language representation model for biomedical text mining

BioBERT: a pre-trained biomedical language representation model for biomedical text mining

25 Jan 2019arXiv:1901.08746archive 2025-07-28

Jinhyuk Lee, Wonjin Yoon, Sungdong Kim, Donghyeon Kim, Sunkyu Kim, Chan Ho So, Jaewoo Kang

Biomedical text mining is becoming increasingly important as the number of biomedical documents rapidly grows. With the progress in natural language processing (NLP), extracting valuable information from biomedical literature has gained popularity among researchers, and deep learning has boosted the development of effective biomedical text mining models. However, directly applying the advancements in NLP to biomedical text mining often yields unsatisfactory results due to a word distribution shift from general domain corpora to biomedical corpora. In this article, we investigate how the recently introduced pre-trained language model BERT can be adapted for biomedical corpora. We introduce BioBERT (Bidirectional Encoder Representations from Transformers for Biomedical Text Mining), which is a domain-specific language representation model pre-trained on large-scale biomedical corpora. With almost the same architecture across tasks, BioBERT largely outperforms BERT and previous state-of-the-art models in a variety of biomedical text mining tasks when pre-trained on biomedical corpora. While BERT obtains performance comparable to that of previous state-of-the-art models, BioBERT significantly outperforms them on the following three representative biomedical text mining tasks: biomedical named entity recognition (0.62% F1 score improvement), biomedical relation extraction (2.80% F1 score improvement) and biomedical question answering (12.24% MRR improvement). Our analysis results show that pre-training BERT on biomedical corpora helps it to understand complex biomedical texts. We make the pre-trained weights of BioBERT freely available at https://github.com/naver/biobert-pretrained, and the source code for fine-tuning BioBERT available at https://github.com/dmis-lab/biobert.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1901.08746")

Code

Syntology Ran 4 of 25 code samples harvested from 3 repositories linked to this paper; 21 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong.

By repository: community (archive-listed): 24 samples from 3 repositories, 3 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

19 repositories listed; official and paper-mentioned ones first.

dmis-lab/biobert officialmentioned in papermentioned on GitHubtfNOASSERTION report
naver/biobert-pretrained officialmentioned in papermentioned on GitHub report
EmilyAlsentzer/clinicalBERT mentioned on GitHubtf report
ManasRMohanty/DS5500-capstone mentioned on GitHubpytorch report
MeRajat/SolvingAlmostAnythingWithBert mentioned on GitHubpytorch report
ardakdemir/my_bert_ner mentioned on GitHubtfNOASSERTION report
charles9n/bert-sklearn mentioned on GitHubpytorch report
cypressd1999/FYP_2021 mentioned on GitHubpytorchApache-2.0 report
dmis-lab/bern mentioned on GitHubtfBSD-2-Clause report
hieudepchai/BERT_IE mentioned on GitHubpytorchApache-2.0 report
jpablou/Matching-The-Blanks-Ths mentioned on GitHubpytorchApache-2.0 report
kuldeep7688/BioMedicalBertNer mentioned on GitHubpytorch report
mocherson/aki_bert mentioned on GitHubpytorch report
phucdev/TL_Bio_RE mentioned on GitHubtfApache-2.0 report
plkmo/BERT-Relation-Extraction mentioned on GitHubpytorchApache-2.0 report
rahul-1996/KGraphs-QA mentioned on GitHubpytorch report
re-search/DocProduct mentioned on GitHubtf report
ncbi-nlp/NCBI_BERT tfNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 4 ran; 1 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
21unverified

Licence: 1 of the 25 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_examples_to_features EmilyAlsentzer/clinicalBERT/downstream_tasks/run_classifier.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 06b922528ebf4e7d · report
convert_to_unicode dmis-lab/bern/biobert_ner/tokenization.py community (archive-listed) ran · our draft was wrong fingerprinted BSD-2-Clause (permissive) · 1923fc05163d207d · report
get_activation dmis-lab/bern/biobert_ner/modeling.py community (archive-listed) ran · our draft was wrong BSD-2-Clause (permissive) · 2dc172f4dc0c745c · report
convert_examples_to_features phucdev/TL_Bio_RE/tlbiore/dataset_readers/readers.py community (archive-listed) unverified Apache-2.0 (permissive) · 13645454ee9a48df · report
count_entities dmis-lab/bern/server.py community (archive-listed) unverified BSD-2-Clause (permissive) · cb11382d4dfba32c · report
example_input_fn dmis-lab/bern/biobert_ner/fast_predict2.py community (archive-listed) unverified BSD-2-Clause (permissive) · 9f260f0f69ef7785 · report
file_based_input_fn_builder dmis-lab/bern/biobert_ner/run_ner.py community (archive-listed) unverified BSD-2-Clause (permissive) · 925eb3d68d846286 · report
gelu dmis-lab/bern/biobert_ner/modeling.py community (archive-listed) unverified BSD-2-Clause (permissive) · 6558b9f62bb65244 · report
get_assignment_map_from_checkpoint dmis-lab/bern/biobert_ner/modeling.py community (archive-listed) unverified BSD-2-Clause (permissive) · 50958618b65e514e · report
get_label phucdev/TL_Bio_RE/tlbiore/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 0f7620720c0761a8 · report
get_predict_pair_ids phucdev/TL_Bio_RE/tlbiore/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 76656b04052ade73 · report
get_pubmed_xml dmis-lab/bern/download.py community (archive-listed) unverified BSD-2-Clause (permissive) · d99e3a923de61df6 · report
get_stats dmis-lab/bern/service_checker.py community (archive-listed) unverified BSD-2-Clause (permissive) · 549c4d310160c2df · report
input_form dmis-lab/bern/biobert_ner/ops.py community (archive-listed) unverified BSD-2-Clause (permissive) · 07b9d1982202e17a · report
isInt dmis-lab/bern/biobert_ner/ops.py community (archive-listed) unverified BSD-2-Clause (permissive) · 4a5aed3ff2a20598 · report
json_to_sent dmis-lab/bern/biobert_ner/ops.py community (archive-listed) unverified BSD-2-Clause (permissive) · 129d9b786094b9f2 · report
load_vocab dmis-lab/bern/biobert_ner/tokenization.py community (archive-listed) unverified BSD-2-Clause (permissive) · ff83ccc8b0b6462d · report
printable_text dmis-lab/bern/biobert_ner/tokenization.py community (archive-listed) unverified BSD-2-Clause (permissive) · 0e5615f8994003cf · report
pubtator2dict_list dmis-lab/bern/convert.py community (archive-listed) unverified BSD-2-Clause (permissive) · 8efd15b4de560c86 · report
pubtatorstr2dict_list dmis-lab/bern/convert.py community (archive-listed) unverified BSD-2-Clause (permissive) · abf03461f901b84e · report
query dmis-lab/bern/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · 63af112374694328 · report
query_raw dmis-lab/bern/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · 038a5858855dfabd · report
run_command dmis-lab/bern/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · 7db82cce6fd97e13 · report
tell_inputfile dmis-lab/bern/server.py community (archive-listed) unverified BSD-2-Clause (permissive) · 183875341edd669d · report
accuracy identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · eb725d5794b15f6b · report

Tasks

Drug–drug Interaction ExtractionFew-Shot LearningLanguage ModellingMedical Named Entity RecognitionMedical Relation ExtractionNamed Entity RecognitionNamed Entity Recognition (NER)Question AnsweringRelation ExtractionRepresentation LearningSentence ClassificationZero-Shot Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Drug–drug Interaction Extraction DDI extraction 2013 corpus BioBERT F1 0.8088 #4 of 10 Archive leaderboard report
Drug–drug Interaction Extraction DDI extraction 2013 corpus BioBERT Micro F1 80.88 #4 of 10 Archive leaderboard report
Few-Shot Learning MedConceptsQA dmis-lab/biobert-v1.1 Accuracy 25.458 #6 of 12 Archive leaderboard report
Named Entity Recognition (NER) JNLPBA BioBERT F1 77.59 #13 of 17 Archive leaderboard report
Named Entity Recognition (NER) NCBI-disease BioBERT F1 89.71 #1 of 26 Archive leaderboard report
Named Entity Recognition (NER) Species-800 BioBERT F1 75.31 #1 of 4 Archive leaderboard report
Question Answering MedQA BioBERT (large) Accuracy 36.7 #23 of 27 Archive leaderboard report
Question Answering MedQA BioBERT (base) Accuracy 34.1 #24 of 27 Archive leaderboard report
Relation Extraction ChemProt BioBERT F1 76.46 #8 of 13 Archive leaderboard report
Representation Learning SciDocs BioBERT Avg. 58.8 #6 of 7 Archive leaderboard report
Zero-Shot Learning MedConceptsQA dmis-lab/biobert-v1.1 Accuracy 26.151 #3 of 13 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections