Beyond ICD Codes: Semantic IDs for Generative Medical Coding
Yihang Cheng, Qian Zhang, Yonghui, Huang, Baoshuo Kan, Junyi Shen
Abstract
Generative approaches to automatic International Classification of Diseases (ICD) coding use large language models (LLMs) to predict ICD codes from clinical documents. However, original ICD code strings are not ideal generation targets because the ICD hierarchy does not always reflect clinical relationships, and LLMs struggle to interpret and generate these codes. We introduce SemICD, a framework that trains LLMs to generate Semantic IDs (SIDs) instead. SemICD constructs SIDs by hierarchically clustering embeddings of textual code profiles, allowing semantically related codes to share prefixes while each complete SID uniquely identifies one ICD code. To align the SID tokens with clinical semantics, we employ two auxiliary tasks for bidirectional generation between textual code profiles and SIDs. Experiments on MIMIC-III and MIMIC-IV with four LLMs show that SemICD outperforms direct code generation, improving Micro-F1 by 1.34-8.00 points. Our code is available at https://github.com/youwillbethebest/SemICD.
Create a lesson
Related papers
Improving the Improver: Semantic PID Control for Medical Agent Self-Improvement
Shared title terminologycs.AIDexia Chen, YiLong Hu, Wenqi Zhong et al.
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
Shared title terminologycs.AIMiaoqing Tian, Ruohan Li, Qian Lu et al.
AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewards
Shared title terminologycs.AIXin Gao, Yifan Yang, Xin Li et al.
Beyond the Verdict: Agentic Code Judging with Verifiable Feedback
Shared title terminologycs.AIZheye Deng, Sha Li, Changlong Yu et al.
Rethinking Closed-Ended Medical VLM Evaluation: From Stable Wrongness to Counterfactual Answer Sensitivity
Shared title terminologycs.AIQi Wu, Xiaoyu Liu, Ao Wang et al.
Scalar Tuned Lens Summaries Offer Limited Incremental Value for Mid-Generation Abstention
Shared title terminologycs.AIKhurram Khalil, Khaza Anuarul Hoque