Abstract
Large Language Models infuse newfound vigor into the advancement of the medical domain, yet the scarcity of data poses a significant bottleneck hindering community progress. In this paper, we release the largest ever medical Question Answering (QA) dataset with 26 Million QA pairs named Huatuo-26M. We benchmark many existing approaches in our dataset in terms of both retrieval and generation. We also experimentally show the benefit of the proposed dataset in many aspects: (i) it serves as a fine-tuning data for training medical Large Language Models (LLMs); (ii) it works as an external knowledge source for retrieval-augmented generation (RAG); (iii) it demonstrates transferability by enhancing zero-shot performance on other QA datasets; and (iv) it aids in training biomedical model as a pre-training corpus. Our empirical findings substantiate the dataset’s utility in these domains, thereby confirming its significance as a resource in the medical QA landscape.
Introduction
While Large Language Models (LLMs) have demonstrated immense potential across various specialized fields, the medical domain continues to face a significant "data bottleneck." High-quality medical data is often scarce, expensive to annotate, and restricted by privacy concerns. This is particularly acute in the context of Chinese healthcare, which serves a population of 1.4 billion and requires models capable of understanding colloquial patient queries while providing professional, accurate responses.
Prior to this work, existing medical QA datasets were limited in scale, typically ranging from a few hundred to several hundred thousand pairs. Huatuo-26M addresses this gap by providing a massive, diverse corpus of over 26 million QA pairs, representing a scale two orders of magnitude larger than previous resources.
Dataset Construction and Composition
The researchers aggregated data from three primary sources to ensure both breadth and depth:
- Online Consultations: Over 25 million pairs of real-world patient-doctor interactions.
- Medical Encyclopedias: Approximately 364k pairs extracted from wikis and medical articles using structural parsing.
- Knowledge Bases (KBs): Nearly 800k pairs generated by applying manually designed templates to medical knowledge graphs like CPubMed-KG.
To complement the massive raw dataset, the authors developed the Huatuo-Lite pipeline to create a "gold standard" subset for efficient fine-tuning. This pipeline involves semantic deduplication using vector embeddings (FAISS), LLM-based filtering to ensure query clarity, and data polishing where ChatGPT rewrites answers for professional tone and grammatical correctness.
Key Insights and Benchmarking
The study reveals several critical insights regarding the use of large-scale medical data:
- Scale vs. Quality: While the full 26M dataset is essential for pre-training and retrieval-augmented generation (RAG), the refined Huatuo-Lite subset proved more effective for instruction fine-tuning, suggesting that data quality and diversity often trump raw volume in the final stages of model training.
- Retrieval Success: Benchmarking retrieval models like BM25 and DPR on the 26M pool showed that even when exact matches are not found, top-ranked results are clinically relevant 42-54% of the time according to human evaluation.
- Cross-Task Transferability: Training on Huatuo-26M improves performance on a wide array of medical NLP tasks beyond simple QA, such as entity extraction and relationship typing, as evidenced by improved scores on the CBLUE leaderboard.
Results and Human Evaluation
Empirical results underscore the dataset's utility across multiple training paradigms:
- Fine-tuning Gains: Fine-tuning the DISC-MedLLM-13B model on Huatuo-Lite improved performance on medical benchmarks like C-Eval and CMMLU by approximately 5-6 percentage points.
- Zero-Shot Performance: Models pre-trained on Huatuo-26M exhibited dramatic improvements in zero-shot capabilities. For instance, a T5 model's BLEU-1 score on cMedQA2 increased from a baseline of 0.23 to 25.65.
- Human Validation: Licensed physicians rated the responses from Huatuo-Lite-tuned models highly, with 81% achieving "Good" fluency and 79% achieving "Good" relevance to the medical context.
Conclusion and Future Work
Huatuo-26M represents a significant milestone in medical AI, providing the community with a massive resource to overcome the data bottleneck. However, challenges remain, including the potential for errors in automated extraction and the need to keep pace with rapidly evolving medical knowledge. Future efforts will focus on multi-round dialogue systems and clinician-verified platforms to further enhance the accuracy and reliability of medical LLMs.
Summary updated