PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 27, 2025NEJM AI4 citations

Assessing Retrieval-Augmented Large Language Models for Medical Coding

View Full Paper
EKEyal KlangITIdit TesslerDADonald U. Apakama

Key Points

  • RAG-enhanced LLMs provided superior accuracy and specificity compared to provider-assigned codes.
  • Human reviewers preferred RAG-enhanced GPT-4 in 447 instances for accuracy over provider-assigned codes.
  • Open-access models also exhibited significant improvements when paired with retrieval-augmented generation.
  • Integrating RAG into LLM medical coding may reduce errors in clinical documentation and improve patient care.

Abstract

Accurate medical coding is vital for clinical and administrative purposes, but it is often complex and time-consuming. Large language models (LLMs) often struggle with medical coding, producing inaccuracies and hallucinations. We aimed to enhance LLM medical coding by integrating retrieval-augmented generation (RAG). We studied 500 randomly selected emergency department visits from the Mount Sinai Health System. Nine LLMs, both commercial and open-source, were evaluated for primary diagnosis coding according to the International Classification of Diseases, Tenth Revision, Clinical Modification. A RAG system enhanced LLM predictions using data from over 1 million emergency department visits. We compared RAG-enhanced codes with provider-assigned codes. A masked review by four physicians and two LLMs determined which codes — LLM- or provider-assigned — were more accurate and specific. RAG-enhanced LLMs demonstrated superior accuracy and specificity compared with provider-assigned codes. Human reviewers favored RAG-enhanced Generative Pretrained Transformer 4 (GPT-4) for accuracy in 447 instances, versus 277 instances for provider-assigned codes (P<0.001). For specificity, RAG-enhanced GPT-4 was preferred in 509 cases, compared with 181 for provider-assigned codes (P<0.001). Smaller open-access models also showed significant improvement with RAG, demonstrating that integrating RAG with LLM medical coding may reduce errors and improve clinical documentation. (Funded by the National Center for Advancing Translational Sciences and the Office of Research Infrastructure Programs of the National Institutes of Health.)

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Klang et al. (2025) studied this question.

synapsesocial.com/papers/68d7be70eebfec0fc523867ahttps://doi.org/10.1056/aics2401161
Ask AI
Helpful
Bookmark
Share
View Full Paper