Preprint · 2026 · Open access

Enhancing LLM Medical Coding with Structured External Knowledge

Yidong Gan, David D. Nguyen, Yang Lin, Peter Zhong, Thanh Vu, Long Duong, Yuan-Fang Li

arXiv · Published 9 April 2026 · DOI 10.48550/arxiv.2605.27377

Open PDFView at the publisherCite this paper

In brief

“Enhancing LLM Medical Coding with Structured External Knowledge” is a 2026 preprint by Yidong Gan and 6 co-authors, published in arXiv. OpenAlex counts 2 citations as of 3 December 2026, which puts it in the top 5% of works published in 2026 by citations. It is open access under a CC BY-NC-ND licence: the full text is free to read at arXiv.

Citations
2
Most cited in
2026 (2)
References
27
Authors
7

Abstract

Accurate medical coding requires consulting authoritative resources such as the ICD tabular list and coding guidelines. Existing LLM-based automated methods largely rely on internal model knowledge, which is prone to hallucination and cannot keep pace with guideline updates. We introduce RAG-Coding, an agentic, training-free method that augments LLMs with structured external knowledge. Specifically, we encode the tabular list as a knowledge graph capturing hierarchical and instructional code relationships, and distil the guidelines into concise, code-specific summaries rather than retrieving raw text. On the MDACE dataset, RAG-Coding outperforms the strongest LLM-based baseline by 3--13\% in micro-F1 and 1--8\% in macro-F1 across five LLM backbones; compared to the supervised state-of-the-art, PLM-ICD, RAG-Coding achieves 11\% higher recall at the cost of 6\% lower precision. We also release MDACE-2025, an expert re-annotation of the MDACE test set under the contemporary 2025 ICD-10-CM/PCS guidelines. On MDACE-2025, RAG-Coding also outperforms all baselines notably in micro- and macro-F1, demonstrating effective generalisation to guideline updates. Ablation studies show stepwise gains, confirming the value of structured external knowledge for LLM-based medical coding.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Gan, Y., Nguyen, D. D., Lin, Y., Zhong, P., Vu, T., Duong, L., & Li, Y.-F. (2026). Enhancing LLM Medical Coding with Structured External Knowledge. arXiv. https://doi.org/10.48550/arxiv.2605.27377

MLA 9

Gan, Yidong, et al. “Enhancing LLM Medical Coding with Structured External Knowledge.” arXiv, 2026. https://doi.org/10.48550/arxiv.2605.27377.

Chicago

Gan, Yidong, David D. Nguyen, Yang Lin, Peter Zhong, Thanh Vu, Long Duong, and Yuan-Fang Li. 2026. “Enhancing LLM Medical Coding with Structured External Knowledge.” arXiv. https://doi.org/10.48550/arxiv.2605.27377.

Harvard

Gan, Y. et al. (2026) ‘Enhancing LLM Medical Coding with Structured External Knowledge’, arXiv. doi:10.48550/arxiv.2605.27377.

IEEE

Y. Gan et al., “Enhancing LLM Medical Coding with Structured External Knowledge,” arXiv, 2026, doi: 10.48550/arxiv.2605.27377.

BibTeX

@misc{gan2026enhancing,
  title     = {{Enhancing LLM Medical Coding with Structured External Knowledge}},
  author    = {Gan, Yidong and Nguyen, David D. and Lin, Yang and Zhong, Peter and Vu, Thanh and Duong, Long and Li, Yuan-Fang},
  howpublished = {arXiv},
  year      = {2026},
  doi       = {10.48550/arxiv.2605.27377},
  url       = {https://doi.org/10.48550/arxiv.2605.27377}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Health Sciences › Health Professions › Health Information Management › Medical Coding and Health Information

  • medical coding
  • ICD-10-CM
  • ICD-10-PCS
  • large language models
  • retrieval-augmented generation
  • knowledge graphs
  • coding guidelines
  • hallucinations

Work with this paper

Most-cited papers in Health Professions

All highly cited Health Professions papers

Questions about this paper

How do I cite this paper in APA style?

Gan, Y., Nguyen, D. D., Lin, Y., Zhong, P., Vu, T., Duong, L., & Li, Y.-F. (2026). Enhancing LLM Medical Coding with Structured External Knowledge. arXiv. https://doi.org/10.48550/arxiv.2605.27377

How many times has this paper been cited?

2 times, according to OpenAlex on 3 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Yidong Gan, David D. Nguyen, Yang Lin, Peter Zhong, Thanh Vu, Long Duong, Yuan-Fang Li.

What is the DOI of this paper?

10.48550/arxiv.2605.27377, permanently at https://doi.org/10.48550/arxiv.2605.27377. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 3 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.