mlsanityData to 14 Oct 2026

Training a Large Language Model for Medical Coding Using Privacy-Preserving Synthetic Clinical Data

arXiv 2603.23515 ↗First posted 6 Mar 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Improving the accuracy and reliability of medical coding reduces clinician burnout and supports revenue cycle processes, freeing providers to focus more on patient care. However, automating the assignment of ICD-10-CM and CPT codes from clinical documentation remains a challenge due to heterogeneous records, nuanced coding guidelines, and long-tail distributions. Large language models have been proposed to help or automate specific medical coding tasks. However, foundation models are not explicitly trained for medical coding and zero-shot coding has yielded poor results. We investigate whether a modern open-weight foundation model can be adapted for an expert-level medical coding task using privacy-preserving synthetic training data derived from electronic health records. We fine-tune Llama 3-70B on pairs of clinical notes and gold codes generated from EHR-grounded templates and coding policies, then evaluate exact-code prediction for ICD-10-CM and CPT. A zero-shot baseline with the unadapted model achieved an F1 score of 0.18 for exact code match. After fine-tuning on the synthetic corpus, exact-match F1 exceeded 0.70, representing a large absolute gain across both code systems. Notably, performance remained high on complex categories that often require multi-step clinical reasoning and code composition, including Advanced Illness and Frailty classes, and the model retained its performance on medical comprehension tasks. These results indicate that synthetic, policy-aware data can efficiently teach a general-purpose large language model to support precise medical coding without exposing protected health information. The approach offers a practical path for training coding agents safely and iteratively on specific tasks that represent real-world populations.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 24 references that are in the map. First posted on arXiv 6 Mar 2026.

Builds on

8 of 24 references.

References · 8

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  3. 2022Large Language Models Encode Clinical Knowledgecited by 1,830
  4. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  5. 2022A Unified Review of Deep Learning for Automated Medical Codingcited by 26
  6. 2024Can Large Language Models abstract Medical Coded Language?cited by 20
  7. 2024De-identification is not enough: a comparison between de-identified and synthetic clinical notescited by 14
  8. 2024Large language models are good medical coders, if provided with toolscited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025How to Train Private Clinical Language Models: A Comparative Study of Privacy-Preserving Pipelines for ICD-9 Coding
  2. 2026Leveraging Large Language Models to Extract and Translate Medical Information in Doctors' Notes for Health Records and Diagnostic Billing Codes
  3. 2024Rephrasing Electronic Health Records for Pretraining Clinical Language Models
  4. 2026Symphony for Medical Coding: A Next-Generation Agentic System for Scalable and Explainable Medical Coding
  5. 2026Can Post-Training Turn LLMs into Good Medical Coders? An Empirical Study of Generative ICD Coding
  6. 2024Unlocking Historical Clinical Trial Data with ALIGN: A Compositional Large Language Model System for Medical Coding
  7. 2026KREL: Automatic Medical Coding via Knowledge-Guided Reasoning over Clinical Evidence with LLMs
  8. 2024Zero-shot and Few-shot Generation Strategies for Artificial Clinical Records