Skip to main content
QUICK REVIEW

[Paper Review] Fine-Tuning Large Neural Language Models for Biomedical Natural Language Processing

Robert Tinn, Hao Cheng|arXiv (Cornell University)|Dec 15, 2021
Topic ModelingComputer Science17 citations
TL;DR

This paper investigates fine-tuning stability in biomedical NLP, demonstrating that large models like BERT-LARGE and ELECTRA exhibit significant instability on low-resource tasks despite strong pretraining. The authors identify optimal stabilization techniques—such as layerwise decay for large models and top-layer reinitialization for text similarity tasks—leading to new state-of-the-art results across the BLURB benchmark, with domain-specific pretraining and vocabulary further enhancing robustness.

ABSTRACT

Motivation: A perennial challenge for biomedical researchers and clinical practitioners is to stay abreast with the rapid growth of publications and medical notes. Natural language processing (NLP) has emerged as a promising direction for taming information overload. In particular, large neural language models facilitate transfer learning by pretraining on unlabeled text, as exemplified by the successes of BERT models in various NLP applications. However, fine-tuning such models for an end task remains challenging, especially with small labeled datasets, which are common in biomedical NLP. Results: We conduct a systematic study on fine-tuning stability in biomedical NLP. We show that finetuning performance may be sensitive to pretraining settings, especially in low-resource domains. Large models have potential to attain better performance, but increasing model size also exacerbates finetuning instability. We thus conduct a comprehensive exploration of techniques for addressing fine-tuning instability. We show that these techniques can substantially improve fine-tuning performance for lowresource biomedical NLP applications. Specifically, freezing lower layers is helpful for standard BERT-BASE models, while layerwise decay is more effective for BERT-LARGE and ELECTRA models. For low-resource text similarity tasks such as BIOSSES, reinitializing the top layer is the optimal strategy. Overall, domainspecific vocabulary and pretraining facilitate more robust models for fine-tuning. Based on these findings, we establish new state of the art on a wide range of biomedical NLP applications. Availability and implementation: To facilitate progress in biomedical NLP, we release our state-of-the-art pretrained and fine-tuned models: https://aka.ms/BLURB.

Motivation & Objective

  • Address the challenge of fine-tuning instability in low-resource biomedical NLP tasks, where labeled data is scarce and annotation is costly.
  • Investigate how pretraining settings—such as skipping next-sentence prediction, segment ID modeling, and using ELECTRA objectives—affect downstream fine-tuning performance.
  • Systematically evaluate optimization and layer-specific adaptation techniques to identify the most effective strategies for stabilizing fine-tuning across diverse biomedical tasks.
  • Establish best practices for fine-tuning large models (e.g., BERT-LARGE, ELECTRA) in biomedical NLP, including model-specific stabilization methods.
  • Achieve new state-of-the-art performance on the BLURB benchmark by combining optimal pretraining, domain-specific vocabulary, and task-adapted fine-tuning strategies.

Proposed method

  • Conduct a comprehensive empirical study on the BLURB benchmark, which includes 6 tasks and 13 datasets spanning biomedical NLP applications.
  • Evaluate the impact of pretraining objectives—specifically, comparing masked language modeling (MLM) with ELECTRA and assessing the role of next-sentence prediction (NSP) and segment ID modeling.
  • Apply layer-specific adaptation techniques: freezing lower layers, layerwise weight decay, and reinitializing the top classification layer.
  • Compare optimization strategies such as longer training and ADAM debiasing, and assess their effectiveness in reducing fine-tuning instability.
  • Use domain-specific vocabulary and domain-adapted pretraining to improve model robustness and generalization across low-resource biomedical tasks.
  • Release state-of-the-art pretrained and fine-tuned models via Microsoft’s Hugging Face and BLURB repositories to support reproducibility and future research.

Experimental results

Research questions

  • RQ1How do different pretraining objectives (e.g., MLM vs. ELECTRA, NSP vs. no NSP) impact fine-tuning stability and performance in low-resource biomedical NLP tasks?
  • RQ2To what extent does model size (e.g., BERT-Base vs. BERT-Large) exacerbate fine-tuning instability, and how can this be mitigated?
  • RQ3Which layer-specific adaptation technique—freezing lower layers, layerwise decay, or top-layer reinitialization—is most effective for different model architectures and task types?
  • RQ4How does domain-specific vocabulary and pretraining influence fine-tuning stability and performance compared to general-domain models?
  • RQ5Can optimization adjustments alone stabilize fine-tuning, or are architecture-specific adaptation strategies necessary for robust performance in biomedical NLP?

Key findings

  • Skipping next-sentence prediction (NSP) during pretraining has negligible impact on performance and saves significant compute time, consistent with general-domain findings.
  • Modeling segment IDs during pretraining significantly improves performance on semantic tasks like text similarity and question answering, especially with limited training data.
  • Large models (e.g., BERT-Large) suffer from increased fine-tuning instability, and their performance often degrades without proper stabilization techniques.
  • For BERT-Base models, freezing lower layers is the most effective stabilization strategy; for BERT-Large and ELECTRA models, layerwise weight decay yields superior results.
  • On low-resource text similarity tasks like BIOSSES, reinitializing the top classification layer produces the highest performance, outperforming other strategies.
  • Domain-specific vocabulary and pretraining significantly enhance fine-tuning robustness, enabling state-of-the-art performance across the BLURB benchmark, including a 92.69 F1 score on BIOSSES and 93.84 mean F1 on relaxed NER scoring.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.