Lune

ACL2026Top-tier venue

ICDAGENT: Empowering Agentic Large Language Models for Explainable Medical Coding

Ziyi Yin, Yuanpu Cao, Ting Wang, Jinghui Chen, Fenglong Ma

Abstract

The explainable medical coding task aims to automatically assign International Classification of Diseases (ICD) codes to clinical notes while providing explicit justifications for each assignment. Recent approaches employ large language models (LLMs) to generate such explanations. However, their performance remains limited due to a lack of understanding of the clinical meanings of ICD codes. Additionally, the vast ICD code space further complicates the task of accurate prediction. To address these challenges, we propose the ICDAGENT framework, which consists of two collaborative LLM agents: a coding agent and a critical agent. The coding agent extracts ICD codes and generates preliminary rationales, while the critical agent performs fine-grained chain-of-thought reasoning to verify and refine them. Furthermore, the critical agent is trained with a rationaleaware reward, combined with reinforcement learning, enabling it to distinguish between correct and incorrect reasoning and ensure explanation accuracy. Experiments across multiple ICD coding standards and datasets demonstrate that ICDAGENT achieves effective ICD coding with accurate and trustworthy explanations. 1 1 The source code will be available at https://github. com/ericyinyzy/ICDAGENT.git . 15 20 25 30 35 40 45 40 43 46 49 52 55 58 Precision (%) Recall (%) Claude-4-Sonnet Claude-3.7-Sonnet Gemini-2.5-Pro Gemini-2.5-Flash GPT-5-Chat (Azure) GPT-4o (Azure) ICDAGENT (Ours) LoRA Fine-tuning HuatuoGPT-o1-8B Clinical Note 𝐓𝐓

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on9

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  2. ICD Coding from Clinical Text Using Multi-Filter Residual Convolutional Neural NetworkFei Li, Hong YuAAAI 2020 · 201 citations
  3. HyperCore: Hyperbolic and Co-graph Representation for Automatic ICD CodingPengfei Cao, Yubo Chen, Kang Liu, Jun Zhao et al.ACL 2020 · 104 citations
  4. HybridFlow: A Flexible and Efficient RLHF FrameworkGuangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu et al.EuroSys 2025 · 61 citations
  5. MDACE: MIMIC Documents Annotated with Code EvidenceHua Cheng, Rana Jafari, April Russell, Russell Klopfer et al.ACL 2023 · 11 citations

Related papers

  1. Code Like Humans: A Multi-Agent Solution for Medical CodingAndreas Geert Motzfeldt, Joakim Edin, Casper L. Christensen, Christian Hardmeier et al.EMNLP Findings 2025 · 5 citations
  2. EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health RecordsWenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu et al.EMNLP 2024 · 33 citations
  3. Travel on the ICD Tree: Benchmarking Agentic Reasoning for ICD Coding from Chinese Electronic Medical RecordsXinjie Xu, Yongqi Fan, Shuang-shuang Chen, Qi Ye et al.ACL Findings 2026
  4. MEDDxAgent: A Unified Modular Agent Framework for Explainable Automatic Differential DiagnosisDaniel Philip Rose, Chia-Chien Hung, Marco Lepri, Israa Alqassem et al.ACL 2025 · 14 citations
  5. TriageAgent: Towards Better Multi-Agents Collaborations for Large Language Model-Based Clinical TriageMeng Lu, Brandon Ho, Dennis Ren, Xuan WangEMNLP Findings 2024 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines