RAG-Coding pairs LLMs with structured ICD knowledge for medical coding
A training-free agentic method grounds medical coding in a knowledge graph and distilled guideline summaries, with a re-annotated 2025 test set.
In plain words
Medical coding means turning clinical records into standard billing and classification codes, which normally requires checking official code lists and guidelines. The researchers built a method that lets large language models consult those resources in structured form instead of relying only on what the model memorised. This aims to reduce made-up codes and keep pace with guideline changes.
What was announced
Accurate medical coding depends on authoritative references such as the ICD tabular list and official coding guidelines, yet the authors say most LLM-based automation relies on internal model knowledge, which is prone to hallucination and cannot track guideline updates. RAG-Coding, described as agentic and training-free, encodes the tabular list as a knowledge graph capturing hierarchical and instructional relationships between codes, and distils guidelines into concise, code-specific summaries rather than retrieving raw text.
On the MDACE dataset, the method reportedly outperforms the strongest LLM baseline by 3–13% in micro-F1 and 1–8% in macro-F1 across five LLM backbones. Against the supervised state of the art, PLM-ICD, it achieves 11% higher recall at the cost of 6% lower precision. The team also released MDACE-2025, an expert re-annotation of the MDACE test set under the 2025 ICD-10-CM/PCS guidelines, where RAG-Coding again outperformed all baselines, which the authors present as evidence of generalisation to guideline updates. Ablation studies showed stepwise gains attributed to the structured external knowledge.
What it does not show
- The evidence is an arXiv abstract only; full methodology, datasets details and peer review are not covered, and the reported results are the authors' own and not independently confirmed.
Sources
Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 5 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.