cs.CLMar 16, 2026

From Documents to Spans: Span-Centric Learning for LLM-based Explainable Medical Coding

Authors: Xu Zhang, Wenxin Ma, Chenxu Wu, Rongsheng Wang, Zhiyang He, Xiaodong Tao, Kun Zhang, S. Kevin Zhou

Organizations: School of Biomedical Engineering, Division of Life Sciences and Medicine, USTC · MIRACLE Center, Suzhou Institute for Advance Research, USTC · iFlyHealth · Jiangsu Provincial Key Laboratory of Multimodal Digital Twin Technology · 

Abstract

Medical coding, which assigns standardized ICD codes to clinical documents, is a fundamental yet challenging task in modern healthcare. It requires extensive knowledge of a large code space and the ability to identify and interpret sparse supporting evidence in long, noisy clinical documents. Most existing methods rely on document-level supervision, which provides limited guidance on supporting evidence and insufficient training signals for rare codes. To address these limitations, we propose Span-Centric Learning (SCL), which separates coding knowledge acquisition from its application in full documents. SCL first learns coding knowledge from short spans, then learns to use this knowledge in full documents from a small set of annotated data. Experiments show that, our approach enables an 8B LLM to surpass state-of-the-art methods using only 248 complete documents for training. It also provides explicit supporting evidence for each predicted code, with strong alignment to human annotations. Further analysis shows that the model can learn knowledge of codes absent from documents through spans and apply that knowledge to full documents.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CoLa-ICD: A Knowledge-Enhanced Framework for Long-Tail Automated Medical Coding

    Aug 31, 2026Yihang Cheng, Veronica Liesaputra, Andrew TrotmanLong-Tailed ClassificationMulti-Label Classification

  2. Enhancing LLM Medical Coding with Structured External Knowledge

    Apr 9, 2026Yidong Gan, David D. Nguyen, Yang Lin +4Automated Medical CodingMedical LLMs