Reinforcement Learning for Out-of-Distribution Reasoning in LLMs: An Empirical Study on Diagnosis-Related Group Coding
On the map: LLM reasoning → Clinical and biomedical applications
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Clinical and biomedical applications, one of 17 directions in LLM reasoning. Builds on 32 of its 51 references that are in the map. First posted on arXiv 28 May 2025.
Builds on
32 of 51 references.
Closest ancestors · 3
Same direction, newest first
- 2025ClinicalGPT-R1: Pushing reasoning capability of generalist disease diagnosis with large language model13 Apr
- 2025Med-R1: Reinforcement Learning for Generalizable Medical Reasoning in Vision-Language Models18 Mar
- 2024HuatuoGPT-o1, Towards Medical Complex Reasoning with LLMs25 Dec
Other references · 29
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
- 2025SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wildcited by 511
- 2025Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Modelcited by 461
17 more
- 2025Reasoning Models Don't Always Say What They Thinkcited by 415
- 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 377
- 2025Learning to Reason under Off-Policy Guidancecited by 281
- 2025Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learningcited by 262
- 2025Reasoning Models Can Be Effective Without Thinkingcited by 187
- 2025GPG: A Simple and Strong Reinforcement Learning Baseline for Model Reasoningcited by 150
- 2025A Minimalist Approach to LLM Reasoning: from Rejection Sampling to Reinforcecited by 145
- 2024Rule Based Rewards for Language Model Safetycited by 108
- 2025Online Difficulty Filtering for Reasoning Oriented Reinforcement Learningcited by 104
- 2025CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Modelscited by 96
- 2025SRPO: A Cross-Domain Implementation of Large-Scale Reinforcement Learning on LLMcited by 68
- 2022Automated Clinical Coding: What, Why, and Where We Are?cited by 33
- 2023DRG-LLaMA : Tuning LLaMA Model to Predict Diagnosis-related Group for Hospitalized Patientscited by 30
- 2024Exploring LLM Multi-Agents for ICD Codingcited by 14
- 2025How Difficulty-Aware Staged Reinforcement Learning Enhances LLMs' Reasoning Capabilities: A Preliminary Experimental Studycited by 14
- 2024Dr-LLaVA: Visual Instruction Tuning with Symbolic Clinical Groundingcited by 10
- 2023Surpassing GPT-4 Medical Coding with a Two-Stage Approachcited by 6
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025A Survey of Reinforcement Learning for Large Reasoning Modelscited by 180
- 2025RL Fine-Tuning Heals OOD Forgetting in SFTcited by 31
- 2025RL Is Neither a Panacea Nor a Mirage: Understanding Supervised vs. Reinforcement Learning Fine-Tuning for LLMscited by 17
- 2026Libra: Efficient Resource Management for Agentic RL Post-Trainingcited by 4
- 2026Towards Robust Endogenous Reasoning: Unifying Drift Adaptation in Non-Stationary Tuningcited by 2
- 2026Reinforced Curriculum Pre-Alignment for Domain-Adaptive VLMscited by 1
- 2025The NordDRG AI Benchmark for Large Language Modelscited by 0
- 2026Libra: Efficient Resource Management for Agentic RL Post-Training2 Jun 2026
- 2026Towards Robust Endogenous Reasoning: Unifying Drift Adaptation in Non-Stationary Tuning17 Apr 2026
- 2026Reinforced Curriculum Pre-Alignment for Domain-Adaptive VLMs11 Feb 2026
- 2025A Survey of Reinforcement Learning for Large Reasoning Models10 Sep 2025
- 2025RL Fine-Tuning Heals OOD Forgetting in SFT8 Sep 2025
- 2025RL Is Neither a Panacea Nor a Mirage: Understanding Supervised vs. Reinforcement Learning Fine-Tuning for LLMs22 Aug 2025
- 2025The NordDRG AI Benchmark for Large Language Models11 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025Fleming-R1: Toward Expert-Level Medical Reasoning via Reinforcement Learning
- 2025Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
- 2025Beyond Distillation: Pushing the Limits of Medical LLM Reasoning with Minimalist Rule-Based RL
- 2026CURE-Med: Curriculum-Informed Reinforcement Learning for Multilingual Medical Reasoning
- 2025Reinforcement Learning for Reasoning in Small LLMs: What Works and What Doesn't
- 2025Toward Effective Reinforcement Learning Fine-Tuning for Medical VQA in Vision-Language Models
- 2026Can Post-Training Turn LLMs into Good Medical Coders? An Empirical Study of Generative ICD Coding
- 2025EQPO: Equitable Group Relative Policy Optimization for Clinical Reasoning