Abstract
The integration of large language model (LLM) techniques in the field of medical analysis has brought about significant advancements, yet the scarcity of large, diverse, and well-annotated datasets remains a major challenge. Medical data and tasks, which vary in format, size, and other parameters, require extensive preprocessing and standardization for effective use in training LLMs. To address these challenges, we introduce MedINST, the Meta Dataset of Biomedical Instructions, a novel multi-domain, multi-task instructional meta-dataset. MedINST comprises 133 biomedical NLP tasks and over 7 million training samples, making it the most comprehensive biomedical instruction dataset to date. Using MedINST as the meta dataset, we curate MedINST32, a challenging benchmark with different task difficulties aiming to evaluate LLMs' generalization ability. We fine-tune several LLMs on MedINST and evaluate on MedINST32, showcasing enhanced cross-task generalization.
Introduction
While Large Language Models (LLMs) have demonstrated remarkable capabilities in general domains, their application in medicine is hindered by a "data-centric" bottleneck. Medical data is inherently heterogeneous, ranging from clinical narratives to structured genomic data, and is often siloed due to privacy concerns. Furthermore, existing biomedical models typically follow a "pre-train then fine-tune" paradigm for specific tasks, which often limits their ability to generalize to novel, unseen scenarios. There is a critical need for a massive, multi-domain, and multi-task "meta-dataset" that instructs models not only on medical facts but also on how to follow complex instructions across diverse clinical and research contexts.
The MedINST Dataset
To bridge this gap, we developed MedINST, a comprehensive biomedical instruction meta-dataset. We aggregated 98 established biomedical datasets and reformulated them into 133 distinct NLP tasks across 12 categories. These categories include Named Entity Recognition (NER), Question Answering (QA), Relation Extraction (RE), Coreference Resolution, and Translation, among others.
The dataset contains approximately 7 million training samples. To facilitate rigorous evaluation, we also introduced MedINST32, a curated benchmark consisting of 32 challenging tasks designed to test cross-task generalization. Tasks in MedINST32 are stratified by Knowledge Difficulty and Instruction Difficulty to provide a nuanced view of model performance.
Methodology: Unified Instruction Schema
A core contribution of MedINST is the standardization of diverse tasks into a unified instruction-following format. Every task in the dataset is wrapped in a human-annotated template designed to teach the model the underlying logic of the task.
As shown in the figure above, the schema consists of three primary components:
- Input Explanation: Defines the structure of the provided data (e.g., "Given a pair of texts...").
- Task Definition: Explains the objective (e.g., "determine whether the evidence supports...").
- Output Format: Specifies the required structure of the response (e.g., "Respond with one of the following...").
We fine-tuned LLaMA-3 (8B) and MMed-LLaMA-3 (8B) using Low-Rank Adaptation (LoRA) on a 100K sample subset of MedINST to evaluate the effectiveness of this instructional tuning.
Key Results and Insights
Our evaluation on the MedINST32 benchmark revealed several significant findings:
- Superior Generalization: Models tuned on MedINST (e.g., LLaMA3-MI32) significantly outperformed their base versions and even surpassed GPT-4o in roughly half of the tested categories. This suggests that domain-specific instruction tuning can be more effective than raw model scale for specialized tasks.
- Instruction vs. Knowledge: We observed that models often possess the necessary medical knowledge but fail due to an inability to follow complex formatting instructions (e.g., BIO-tagging in NER). MedINST's explicit training on instruction following mitigates this issue.
- Scaling and Model Size: Interestingly, larger models do not always perform better in specialized domains with limited data. For instance, a 4B parameter model (Phi-3-4B) outperformed a 14B version on core tasks like NER and RE, suggesting that larger models may require more extensive data to reach optimal performance in niche fields.
- Data Imbalance: Increasing training data from 5K to 100K samples generally improved performance but led to slight regressions in complex tasks like Summarization (SUM), indicating a potential for over-optimization on simpler tasks.
Conclusion
MedINST represents a significant step toward standardizing biomedical NLP for the era of instruction-tuned LLMs. By providing a massive, multi-task meta-dataset with a unified instruction schema, we enable the development of models that are not only knowledgeable but also highly adaptable to diverse medical instructions. Future work will focus on expanding the dataset to include multi-turn dialogues and increasing its multilingual coverage to better serve the global medical community.
Code, models, and data are available at github.com/aialt/MedINST.
Summary updated