[Paper Review] Bioformer: an efficient transformer language model for biomedical text mining
Bioformer is a compact BERT-based model for biomedical text mining that achieves near-PubMedBERT accuracy with ~60% fewer parameters and 2–3x faster inference.
Pretrained language models such as Bidirectional Encoder Representations from Transformers (BERT) have achieved state-of-the-art performance in natural language processing (NLP) tasks. Recently, BERT has been adapted to the biomedical domain. Despite the effectiveness, these models have hundreds of millions of parameters and are computationally expensive when applied to large-scale NLP applications. We hypothesized that the number of parameters of the original BERT can be dramatically reduced with minor impact on performance. In this study, we present Bioformer, a compact BERT model for biomedical text mining. We pretrained two Bioformer models (named <i>Bioformer</i><sub><i>8L</i></sub> and <i>Bioformer</i><sub><i>16L</i></sub>) which reduced the model size by 60% compared to BERT<sub>Base</sub>. Bioformer uses a biomedical vocabulary and was pre-trained from scratch on PubMed abstracts and PubMed Central full-text articles. We thoroughly evaluated the performance of Bioformer as well as existing biomedical BERT models including <i>BioBERT</i> and <i>PubMedBERT</i> on 15 benchmark datasets of four different biomedical NLP tasks: named entity recognition, relation extraction, question answering and document classification. The results show that with 60% fewer parameters, <i>Bioformer</i><sub><i>16L</i></sub> is only 0.1% less accurate than <i>PubMedBERT</i> while <i>Bioformer</i><sub><i>8L</i></sub> is 0.9% less accurate than <i>PubMedBERT</i>. Both <i>Bioformer</i><sub><i>16L</i></sub> and <i>Bioformer</i><sub><i>8L</i></sub> outperformed <i>BioBERT</i><sub><i>Base</i>-v1.1</sub>. In addition, <i>Bioformer</i><sub><i>16L</i></sub> and <i>Bioformer</i><sub><i>8L</i></sub> are 2-3 fold as fast as PubMedBERT/<i>BioBERT</i><sub><i>Base</i>-v1.1</sub>. Bioformer has been successfully deployed to PubTator Central providing gene annotations over 35 million PubMed abstracts and 5 million PubMed Central full-text articles. We make Bioformer publicly available via https://github.com/WGLab/bioformer, including pre-trained models, datasets, and instructions for downstream use.
Motivation & Objective
- Reduce model size of biomedical transformers without sacrificing performance,
- Leverage domain-specific biomedical vocabulary and pre-training data
- Evaluate Bioformer against existing biomedical BERT models across multiple NLP tasks
- Demonstrate deployment potential in large-scale biomedical annotation pipelines
Proposed method
- Pretrain two Bioformer variants (Bioformer8L and Bioformer16L) from scratch on PubMed abstracts and PubMed Central full-texts using a biomedical vocabulary
- Reduce parameters by about 60% compared to BERTBase
- Evaluate on 15 biomedical NLP benchmarks spanning NER, relation extraction, QA, and document classification
- Compare against BioBERT and PubMedBERT baselines in terms of accuracy and speed
- Demonstrate deployment to PubTator Central for gene annotations on large corpora
Experimental results
Research questions
- RQ1Can a parameter-efficient BioBERT-like model achieve comparable performance to baseline biomedical BERTs across common NLP tasks?
- RQ2What is the trade-off between model size (parameters) and accuracy for Bioformer in biomedical text mining?
- RQ3Do Bioformer variants offer practical speedups on large-scale biomedical annotation pipelines?
- RQ4Is a domain-specific vocabulary and from-scratch pre-training beneficial for biomedical NLP tasks?
Key findings
- Bioformer16L and Bioformer8L have 60% fewer parameters than BERTBase while maintaining strong performance
- Bioformer16L is only 0.1% less accurate than PubMedBERT on evaluated tasks
- Bioformer8L is 0.9% less accurate than PubMedBERT on evaluated tasks
- Both Bioformer variants outperform BioBERTBase-v1.1 across benchmarks
- Bioformer16L and Bioformer8L achieve 2–3× faster inference than PubMedBERT/BioBERTBase-v1.1
- Bioformer has been deployed to PubTator Central for gene annotations on large PubMed/PMC corpora
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.