Beyond ICD Codes: Semantic IDs for Generative Medical Coding
Yihang Cheng (Andie), Qian Zhang (Andie), Yonghui (Andie), Huang, Baoshuo Kan, Junyi Shen
Key points
From the paper's conclusion- We introduce SemICD, a framework that trains LLMs to generate Semantic IDs (SIDs) instead.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Laya-IsoToken: Day-One Clinical Codebook Switching via Closed-Form Operator CompilationarXiv · 2026
- Call-Efficient ICD-10 Code Prediction via Supervised Candidate Generation and Selective LLM InvocationarXiv · 2026
- Low-Resource Automatic ICD Coding for Chinese Electronic Medical Records: An Interpretable Multi-View Linear Framework with Audited Clinical RulesmedRxiv · 2026
- Understanding the Limits of Agentic ICD CodingarXiv · 2026
- Coverage-Aware Reasoning with Medical Tokens for Diagnosis PredictionarXiv · 2026
- Gold-standard-guided direct preference optimisation for ICD-10-AM and ACHI code assignment from discharge summaries.BMC medical informatics and decision making · 2026