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 rationale-aware 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.
Anthology ID:
2026.acl-long.643
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
14131–14149
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.643/
DOI:
Bibkey:
Cite (ACL):
Ziyi Yin, Yuanpu Cao, Ting Wang, Jinghui Chen, and Fenglong Ma. 2026. ICDAGENT: Empowering Agentic Large Language Models for Explainable Medical Coding. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14131–14149, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
ICDAGENT: Empowering Agentic Large Language Models for Explainable Medical Coding (Yin et al., ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.643.pdf
Checklist:
 2026.acl-long.643.checklist.pdf