BioMistral-NLU: Towards More Generalizable Medical Language Understanding through Instruction Tuning.

Yujuan Fu, Giridhar Kaushik Ramachandran, Namu Park, Kevin Lybarger, Fei Xia, Özlem Uzuner, Meliha Yetişgen

Abstract: Large language models (LLMs) such as ChatGPT are fine-tuned on large and diverse instruction-following corpora, and can generalize to new tasks. However, those instruction-tuned LLMs often perform poorly in specialized medical natural language understanding (NLU) tasks that require domain knowledge, granular text comprehension, and structured data extraction. To bridge the gap, we: (1) propose a unified prompting format for 7 important NLU tasks, (2) curate an instruction-tuning dataset, MNLU-Instruct, utilizing diverse existing open-source medical NLU corpora, and (3) develop BioMistral-NLU, a generalizable medical NLU model, through fine-tuning BioMistral on MNLU-Instruct. We evaluate BioMistral-NLU in a zero-shot setting, across 6 important NLU tasks, from two widely adopted medical NLU benchmarks: BLUE and BLURB. Our experiments show that our BioMistral-NLU outperforms the original BioMistral, as well as the proprietary LLMs - ChatGPT and GPT-4. Our dataset-agnostic prompting strategy and instruction tuning step over diverse NLU tasks enhance LLMs' generalizability across diverse medical NLU tasks. Our ablation experiments show that instruction-tuning on a wider variety of tasks, even when the total number of training instances remains constant, enhances downstream zero-shot generalization.

Introduction: The NLU Gap in Medical AI

While Large Language Models (LLMs) like ChatGPT excel at generating fluent text, they often struggle with Natural Language Understanding (NLU) in specialized domains like medicine. Medical NLU requires granular text comprehension and structured data extraction—tasks like Named Entity Recognition (NER) for identifying genes or diseases, and Relation Extraction (RE) for determining drug-protein interactions. General-purpose models are often tuned for conversational "chatting" rather than the precise extraction needed in clinical settings. BioMistral-NLU aims to bridge this gap by creating a model that generalizes across diverse medical NLU tasks without requiring task-specific fine-tuning for every new dataset.

Methods: A Unified Approach to Instruction Tuning

The development of BioMistral-NLU followed a three-step methodology:

  1. Unified Prompting Format: Seven distinct NLU tasks (NER, Event Extraction, Document Classification, etc.) were reformulated into a consistent text-to-text generation format. NER tasks use prompts like "Extract all relevant medical named entities," while classification tasks are framed as multiple-choice questions.
  2. Instruction Tuning (MNLU-Instruct): A massive training set was curated by converting 33 open-source medical NLU corpora into the unified format. To test "zero-shot" generalization, certain tasks like Question Answering were intentionally excluded from the training set.
  3. Model Merging (DARE): BioMistral-7B-DARE was fine-tuned on this dataset. To prevent "catastrophic forgetting" of general knowledge, the researchers used the Drop-And-REscale (DARE) technique to merge fine-tuned parameters back into the base model.
Overview of the BioMistral-NLU instruction-tuning pipeline and task categories.

Datasets

  • Training: The MNLU-Instruct dataset comprises 33 publicly available clinical and biomedical datasets, including i2b2, GENIA, and DrugProt. It also incorporates general-domain Natural Language Inference (NLI) and Sentence Text Similarity (STS) data to strengthen logical reasoning.
  • Evaluation: Performance was measured using 15 unseen datasets from two major benchmarks: BLUE (Biomedical Language Understanding Evaluation) and BLURB (Biomedical Language Understanding and Reasoning Benchmark).

Key Insights: Diversity and Domain Specificity

  • Diversity Trumps Volume: A critical finding was that instruction-tuning on a wider variety of tasks enhances performance more effectively than simply increasing the number of examples for a single task. When the total training count was held constant at 50,000 instances, models trained on five different tasks outperformed those trained on just one.
  • BioMed vs. Clinical Data: Training on biomedical data (scientific literature) generally yielded better downstream performance than clinical data (medical notes), likely due to the highly idiosyncratic and semi-structured nature of clinical documentation.
Impact of task diversity on zero-shot performance, showing that increasing the number of tasks in the instruction-tuning set improves Average F1 scores.

Key Results

BioMistral-NLU demonstrated a significant performance leap over existing models in zero-shot settings:

  • Benchmark Gains: It outperformed the original BioMistral by 19.7 points on BLURB and 16.7 points on BLUE.
  • Competitive Edge: With a macro average score of 62.4 on BLURB, BioMistral-NLU surpassed proprietary giants like GPT-4 (59.7) and ChatGPT (53.4).
  • NER Superiority: The model showed exceptional strength in Named Entity Recognition, beating GPT-4 by an average of 9.7 F1 points across NER tasks.

Limitations and Future Directions

The model still faces challenges, particularly with exact boundary detection in NER (e.g., missing prefixes in entity names) and high recall but lower precision in Relation Extraction, leading to occasional "hallucinated" relationships. Future work will focus on integrating more nuanced task descriptions and exploring self-verification mechanisms to reduce false positives in complex extraction tasks.

Summary updated

BibTeX
@inproceedings{fu2025biomistral,
  author = {Yujuan Fu and Giridhar Kaushik Ramachandran and Namu Park and Kevin Lybarger and Fei Xia and Özlem Uzuner and Meliha Yetişgen},
  title = {{BioMistral-NLU: Towards More Generalizable Medical Language Understanding through Instruction Tuning.}},
  booktitle = {PubMed},
  year = {2025},
}
Figure