用强化学习提升大模型在罕见病历编码中的推理能力。
Reinforcement Learning for Out-of-Distribution Reasoning in LLMs: An Empirical Study on Diagnosis-Related Group Coding
- 基于规则奖励的强化学习,优化临床病历到疾病编码的映射。
- 在MIMIC-IV数据集上达到顶尖准确率,且生成医生认可的推理过程。
- 发现预训练知识量决定强化学习效果,微调数据比强化学习更关键。
诊断相关分组(DRG)编码对医院报销与运营至关重要,但人工分配耗时费力。大语言模型因缺乏私有临床或医保数据,在此类任务中表现不佳,因其具有分布外(OOD)特性。本文提出DRG-Sapphire,基于Qwen2.5-7B模型,采用群体相对策略优化(GRPO)进行大规模强化学习,通过规则奖励实现自动化DRG编码。该方法引入多项强化学习改进,以应对以往数学任务未涉及的领域特异性挑战。模型在MIMIC-IV基准上达到当前最优准确率,并生成经医生验证的推理链,显著提升可解释性。研究进一步揭示:强化学习性能随监督微调(SFT)样本数的对数近似线性增长,表明强化学习效果受限于基础模型中编码的领域知识。对于像DRG编码这样的分布外任务,充分的知识注入先于强化学习更为有效。因此,扩大SFT规模比单纯扩展强化学习更高效、更经济。
原文摘要 · Abstract (English)
Diagnosis-Related Group (DRG) codes are essential for hospital reimbursement and operations but require labor-intensive assignment. Large Language Models (LLMs) struggle with DRG coding due to the out-of-distribution (OOD) nature of the task: pretraining corpora rarely contain private clinical or billing data. We introduce DRG-Sapphire, which uses large-scale reinforcement learning (RL) for automated DRG coding from clinical notes. Built on Qwen2.5-7B and trained with Group Relative Policy Optimization (GRPO) using rule-based rewards, DRG-Sapphire introduces a series of RL enhancements to address domain-specific challenges not seen in previous mathematical tasks. Our model achieves state-of-the-art accuracy on the MIMIC-IV benchmark and generates physician-validated reasoning for DRG assignments, significantly enhancing explainability. Our study further sheds light on broader challenges of applying RL to knowledge-intensive, OOD tasks. We observe that RL performance scales approximately linearly with the logarithm of the number of supervised fine-tuning (SFT) examples, suggesting that RL effectiveness is fundamentally constrained by the domain knowledge encoded in the base model. For OOD tasks like DRG coding, strong RL performance requires sufficient knowledge infusion prior to RL. Consequently, scaling SFT may be more effective and computationally efficient than scaling RL alone for such tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。