YuSun-AI/ReasonMed

Dataset

94

stars

12

commits

1

linked in READMEs

Jun 24, 2025

updated

biology
medical
Browse cluster: Biomedical Data and Multimodal Learning

README

ReasonMed: A 370K Multi-Agent Generated Dataset for Advancing Medical Reasoning

📄 Paper  |  💻 Code  |  📊 Dataset

ReasonMed is the largest open-source medical reasoning dataset to date, containing 370 K high-quality question–answer examples with multi-step chain-of-thought (CoT) rationales and concise summaries. We distilled these from 1.75 M initial reasoning paths generated by three competitive large-language models (Qwen-2.5-72B, DeepSeek-R1-Distill-Llama-70B, and HuatuoGPT-o1-70B), using a rigorous multi-agent verification and refinement pipeline.


📚 Dataset Composition

We sourced 194,925 unique multiple-choice medical questions from six established benchmarks, then generated and validated CoT paths:

Source# Questions
MedQA (train / dev)10,178 / 1,272
MedMCQA (train)182,822
PubMedQA (train / val)450 / 50
MMLU – Anatomy (dev / val)5 / 14
MMLU – Clinical Knowledge5 / 29
MMLU – College Biology5 / 16
MMLU – College Medicine5 / 22
MMLU – Medical Genetics5 / 11
MMLU – Professional Medicine5 / 31
Total194,925

🔍 Data Generation & Curation Pipeline

  1. Multi-Agent CoT Generation

    • Three LLMs each generate 3 CoT trajectories per question at temperatures {0.7, 0.9, 1.0}, yielding 1.75 M raw paths.
  2. Verification (Qwen-2.5-72B)

    • Judge each CoT for correctness, logical coherence, and medical factuality.
    • Label as “Correct” or “Error” with error reasons.
  3. Difficulty Tiers & Refinement

    • Easy (0–4 errors): select top 2 CoTs via Quality Ranker.
    • Medium (5–7 errors): refine top 2 CoTs via Error Refiner (GPT-4o-mini).
    • Difficult (8–9 errors): regenerate full CoT via GPT-o1 with a 6-step template.
  4. Summarization (GPT-4o-mini)

    • Condense each CoT into a concise answer rationale.
  5. Final Dataset

    • Each dataset contains 370k pieces of data, for a total of 1.1M pieces of data:
      • ReasonMed({CoT}{response})
      • CoTMed({CoT})
      • ResponseMed({response})

📊 Data Quality Evaluation

Medium Pipeline Validity Verification

To evaluate the Medium Pipeline, we sampled 1 000 questions + CoTs and used our Score Evaluator to score before and after GPT-4o-mini corrections. The average score improved by 0.8 points.

DatasetSamplesAvg. Score
Medium Pipeline (pre-opt)1 0007.37
Medium Pipeline (post-opt)1 0008.17

Comparison with Other Medical Reasoning Corpora

We compared ReasonMed against two open datasets, sampling 1 000 instances each, and also evaluated 3 000 ReasonMed samples:

DatasetSamplesAvg. Score
medical-o1-reasoning-SFT1 0008.03
Medical-R1-Distill-Data1 0008.18
ReasonMed1 0008.45
ReasonMed3 0008.50

🎯 Multiscale Supervised Fine-Tuning Results

We fine-tuned Qwen2.5-7B under three regimes—CoT, Response, and hybrid Reason—over three epochs and one epoch. Evaluation on MedQA, MedMCQA, PubMedQA, and six MMLU subdomains yields:

ModelMedQAMedMCQA (val)PubMedQAAnatomyCKC-BioC-MedMed-GeneP-MedTotal AccAvg. Tokens
BioMistral-7B45.6 ± 1.441.5 ± 0.871.0 ± 2.076.3 ± 3.763.0 ± 3.062.5 ± 4.153.8 ± 3.867.0 ± 4.753.3 ± 3.048.960.1
Llama3-OpenBioLLM-8B57.9 ± 1.457.7 ± 0.876.0 ± 6.168.9 ± 4.077.7 ± 2.683.3 ± 3.169.4 ± 3.583.0 ± 3.879.0 ± 2.562.975.1
Llama-3-8B-UltraMedical63.2 ± 1.457.7 ± 0.878.0 ± 5.967.4 ± 4.174.3 ± 2.775.7 ± 3.661.9 ± 3.773.0 ± 4.578.7 ± 2.563.55177.7
Mistral-7B-Instruct-v0.352.2 ± 1.448.2 ± 0.882.0 ± 5.559.3 ± 4.269.4 ± 2.872.9 ± 3.756.7 ± 3.870.0 ± 4.666.5 ± 2.955.9111.8
Yi-1.5-9B-Chatbot49.8 ± 1.447.0 ± 0.869.0 ± 2.167.5 ± 3.863.9 ± 2.870.3 ± 3.851.2 ± 4.068.8 ± 4.566.7 ± 3.152.9162.2
HuatuoGPT-o1-7B68.4 ± 1.357.5 ± 0.874.0 ± 2.071.9 ± 3.978.5 ± 2.588.2 ± 2.767.6 ± 3.680.0 ± 4.077.6 ± 2.564.4446.0
HuatuoGPT-o1-8B65.4 ± 1.361.0 ± 0.874.6 ± 2.069.6 ± 4.077.7 ± 2.681.3 ± 3.369.9 ± 3.578.0 ± 4.271.0 ± 2.865.5468.9
ResponseMed-7B (1 epoch)62.2 ± 1.457.6 ± 0.884.0 ± 5.275.6 ± 3.777.7 ± 2.681.3 ± 3.369.9 ± 3.587.0 ± 3.476.8 ± 2.664.8
CoTMed-7B (1 epoch)64.3 ± 1.362.4 ± 0.882.0 ± 5.577.0 ± 3.680.8 ± 2.481.3 ± 3.372.8 ± 3.490.0 ± 3.079.4 ± 2.567.8
ReasonMed-7B (1 epoch)65.3 ± 1.362.3 ± 0.882.0 ± 5.574.8 ± 3.780.0 ± 2.581.3 ± 3.374.0 ± 3.486.0 ± 3.579.0 ± 2.567.7
ResponseMed-7B67.5 ± 1.360.9 ± 0.880.0 ± 5.774.8 ± 3.777.4 ± 2.684.0 ± 3.171.1 ± 3.588.0 ± 3.376.5 ± 2.667.0225.2
CoTMed-7B66.3 ± 1.364.7 ± 0.780.0 ± 5.775.6 ± 3.779.6 ± 2.582.1 ± 3.271.7 ± 3.486.0 ± 3.579.9 ± 2.669.1555.4
ReasonMed-7B66.9 ± 1.365.1 ± 0.782.0 ± 5.575.6 ± 3.779.3 ± 2.579.2 ± 3.473.4 ± 3.485.0 ± 3.680.9 ± 2.469.6626.0

Note:

  • CK = Clinical Knowledge
  • C-Bio = College Biology
  • C-Med = College Medicine
  • Med-Gene = Medical Genetics
  • P-Med = Professional Medicine
  • One-epoch vs Three-epoch: Three-epoch models outperform one-epoch variants (e.g., ReasonMed-7B improves from 67.7% to 69.6%)
  • Token Length: CoTMed and ReasonMed generate deeper reasoning (≈555–626 tokens) vs ResponseMed (≈225 tokens).

Citation

@misc{sun2025reasonmed370kmultiagentgenerated,
      title={ReasonMed: A 370K Multi-Agent Generated Dataset for Advancing Medical Reasoning}, 
      author={Yu Sun and Xingyu Qian and Weiwen Xu and Hao Zhang and Chenghao Xiao and Long Li and Yu Rong and Wenbing Huang and Qifeng Bai and Tingyang Xu},
      year={2025},
      eprint={2506.09513},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2506.09513}, 
}
@misc{lasateam2025lingshugeneralistfoundationmodel,
      title={Lingshu: A Generalist Foundation Model for Unified Multimodal Medical Understanding and Reasoning}, 
      author={LASA Team and Weiwen Xu and Hou Pong Chan and Long Li and Mahani Aljunied and Ruifeng Yuan and Jianyu Wang and Chenghao Xiao and Guizhen Chen and Chaoqun Liu and Zhaodonghui Li and Yu Sun and Junao Shen and Chaojun Wang and Jie Tan and Deli Zhao and Tingyang Xu and Hao Zhang and Yu Rong},
      year={2025},
      eprint={2506.07044},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2506.07044}, 
}

Contributors

YuSun-AI

11 commits

nielsr

1 commits

YuSun-AI/ReasonMed

Dataset

94

stars

12

commits

1

linked in READMEs

Jun 24, 2025

updated

biology
medical
Browse cluster: Biomedical Data and Multimodal Learning

README

ReasonMed: A 370K Multi-Agent Generated Dataset for Advancing Medical Reasoning

📄 Paper  |  💻 Code  |  📊 Dataset

ReasonMed is the largest open-source medical reasoning dataset to date, containing 370 K high-quality question–answer examples with multi-step chain-of-thought (CoT) rationales and concise summaries. We distilled these from 1.75 M initial reasoning paths generated by three competitive large-language models (Qwen-2.5-72B, DeepSeek-R1-Distill-Llama-70B, and HuatuoGPT-o1-70B), using a rigorous multi-agent verification and refinement pipeline.


📚 Dataset Composition

We sourced 194,925 unique multiple-choice medical questions from six established benchmarks, then generated and validated CoT paths:

Source# Questions
MedQA (train / dev)10,178 / 1,272
MedMCQA (train)182,822
PubMedQA (train / val)450 / 50
MMLU – Anatomy (dev / val)5 / 14
MMLU – Clinical Knowledge5 / 29
MMLU – College Biology5 / 16
MMLU – College Medicine5 / 22
MMLU – Medical Genetics5 / 11
MMLU – Professional Medicine5 / 31
Total194,925

🔍 Data Generation & Curation Pipeline

  1. Multi-Agent CoT Generation

    • Three LLMs each generate 3 CoT trajectories per question at temperatures {0.7, 0.9, 1.0}, yielding 1.75 M raw paths.
  2. Verification (Qwen-2.5-72B)

    • Judge each CoT for correctness, logical coherence, and medical factuality.
    • Label as “Correct” or “Error” with error reasons.
  3. Difficulty Tiers & Refinement

    • Easy (0–4 errors): select top 2 CoTs via Quality Ranker.
    • Medium (5–7 errors): refine top 2 CoTs via Error Refiner (GPT-4o-mini).
    • Difficult (8–9 errors): regenerate full CoT via GPT-o1 with a 6-step template.
  4. Summarization (GPT-4o-mini)

    • Condense each CoT into a concise answer rationale.
  5. Final Dataset

    • Each dataset contains 370k pieces of data, for a total of 1.1M pieces of data:
      • ReasonMed({CoT}{response})
      • CoTMed({CoT})
      • ResponseMed({response})

📊 Data Quality Evaluation

Medium Pipeline Validity Verification

To evaluate the Medium Pipeline, we sampled 1 000 questions + CoTs and used our Score Evaluator to score before and after GPT-4o-mini corrections. The average score improved by 0.8 points.

DatasetSamplesAvg. Score
Medium Pipeline (pre-opt)1 0007.37
Medium Pipeline (post-opt)1 0008.17

Comparison with Other Medical Reasoning Corpora

We compared ReasonMed against two open datasets, sampling 1 000 instances each, and also evaluated 3 000 ReasonMed samples:

DatasetSamplesAvg. Score
medical-o1-reasoning-SFT1 0008.03
Medical-R1-Distill-Data1 0008.18
ReasonMed1 0008.45
ReasonMed3 0008.50

🎯 Multiscale Supervised Fine-Tuning Results

We fine-tuned Qwen2.5-7B under three regimes—CoT, Response, and hybrid Reason—over three epochs and one epoch. Evaluation on MedQA, MedMCQA, PubMedQA, and six MMLU subdomains yields:

ModelMedQAMedMCQA (val)PubMedQAAnatomyCKC-BioC-MedMed-GeneP-MedTotal AccAvg. Tokens
BioMistral-7B45.6 ± 1.441.5 ± 0.871.0 ± 2.076.3 ± 3.763.0 ± 3.062.5 ± 4.153.8 ± 3.867.0 ± 4.753.3 ± 3.048.960.1
Llama3-OpenBioLLM-8B57.9 ± 1.457.7 ± 0.876.0 ± 6.168.9 ± 4.077.7 ± 2.683.3 ± 3.169.4 ± 3.583.0 ± 3.879.0 ± 2.562.975.1
Llama-3-8B-UltraMedical63.2 ± 1.457.7 ± 0.878.0 ± 5.967.4 ± 4.174.3 ± 2.775.7 ± 3.661.9 ± 3.773.0 ± 4.578.7 ± 2.563.55177.7
Mistral-7B-Instruct-v0.352.2 ± 1.448.2 ± 0.882.0 ± 5.559.3 ± 4.269.4 ± 2.872.9 ± 3.756.7 ± 3.870.0 ± 4.666.5 ± 2.955.9111.8
Yi-1.5-9B-Chatbot49.8 ± 1.447.0 ± 0.869.0 ± 2.167.5 ± 3.863.9 ± 2.870.3 ± 3.851.2 ± 4.068.8 ± 4.566.7 ± 3.152.9162.2
HuatuoGPT-o1-7B68.4 ± 1.357.5 ± 0.874.0 ± 2.071.9 ± 3.978.5 ± 2.588.2 ± 2.767.6 ± 3.680.0 ± 4.077.6 ± 2.564.4446.0
HuatuoGPT-o1-8B65.4 ± 1.361.0 ± 0.874.6 ± 2.069.6 ± 4.077.7 ± 2.681.3 ± 3.369.9 ± 3.578.0 ± 4.271.0 ± 2.865.5468.9
ResponseMed-7B (1 epoch)62.2 ± 1.457.6 ± 0.884.0 ± 5.275.6 ± 3.777.7 ± 2.681.3 ± 3.369.9 ± 3.587.0 ± 3.476.8 ± 2.664.8
CoTMed-7B (1 epoch)64.3 ± 1.362.4 ± 0.882.0 ± 5.577.0 ± 3.680.8 ± 2.481.3 ± 3.372.8 ± 3.490.0 ± 3.079.4 ± 2.567.8
ReasonMed-7B (1 epoch)65.3 ± 1.362.3 ± 0.882.0 ± 5.574.8 ± 3.780.0 ± 2.581.3 ± 3.374.0 ± 3.486.0 ± 3.579.0 ± 2.567.7
ResponseMed-7B67.5 ± 1.360.9 ± 0.880.0 ± 5.774.8 ± 3.777.4 ± 2.684.0 ± 3.171.1 ± 3.588.0 ± 3.376.5 ± 2.667.0225.2
CoTMed-7B66.3 ± 1.364.7 ± 0.780.0 ± 5.775.6 ± 3.779.6 ± 2.582.1 ± 3.271.7 ± 3.486.0 ± 3.579.9 ± 2.669.1555.4
ReasonMed-7B66.9 ± 1.365.1 ± 0.782.0 ± 5.575.6 ± 3.779.3 ± 2.579.2 ± 3.473.4 ± 3.485.0 ± 3.680.9 ± 2.469.6626.0

Note:

  • CK = Clinical Knowledge
  • C-Bio = College Biology
  • C-Med = College Medicine
  • Med-Gene = Medical Genetics
  • P-Med = Professional Medicine
  • One-epoch vs Three-epoch: Three-epoch models outperform one-epoch variants (e.g., ReasonMed-7B improves from 67.7% to 69.6%)
  • Token Length: CoTMed and ReasonMed generate deeper reasoning (≈555–626 tokens) vs ResponseMed (≈225 tokens).

Citation

@misc{sun2025reasonmed370kmultiagentgenerated,
      title={ReasonMed: A 370K Multi-Agent Generated Dataset for Advancing Medical Reasoning}, 
      author={Yu Sun and Xingyu Qian and Weiwen Xu and Hao Zhang and Chenghao Xiao and Long Li and Yu Rong and Wenbing Huang and Qifeng Bai and Tingyang Xu},
      year={2025},
      eprint={2506.09513},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2506.09513}, 
}
@misc{lasateam2025lingshugeneralistfoundationmodel,
      title={Lingshu: A Generalist Foundation Model for Unified Multimodal Medical Understanding and Reasoning}, 
      author={LASA Team and Weiwen Xu and Hou Pong Chan and Long Li and Mahani Aljunied and Ruifeng Yuan and Jianyu Wang and Chenghao Xiao and Guizhen Chen and Chaoqun Liu and Zhaodonghui Li and Yu Sun and Junao Shen and Chaojun Wang and Jie Tan and Deli Zhao and Tingyang Xu and Hao Zhang and Yu Rong},
      year={2025},
      eprint={2506.07044},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2506.07044}, 
}

Contributors

YuSun-AI

11 commits

nielsr

1 commits