NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A General Knowledge Injection Framework for ICD Coding

Xu Zhang, Kun Zhang, Wenxin Ma, Rongsheng Wang, Chenxu Wu, Yingtai Li, S. Kevin Zhou

Abstract: ICD Coding aims to assign a wide range of medical codes to a medical text document, which is a popular and challenging task in the healthcare domain. To alleviate the problems of long-tail distribution and the lack of annotations of code-specific evidence, many previous works have proposed incorporating code knowledge to improve coding performance. However, existing methods often focus on a single type of knowledge and design specialized modules that are complex and incompatible with each other, thereby limiting their scalability and effectiveness. To address this issue, we propose GKI-ICD, a novel, general knowledge injection framework that integrates three key types of knowledge, namely ICD Description, ICD Synonym, and ICD Hierarchy, without specialized design of additional modules. The comprehensive utilization of the above knowledge, which exhibits both differences and complementarity, can effectively enhance the ICD coding performance. Extensive experiments on existing popular ICD coding benchmarks demonstrate the effectiveness of GKI-ICD, which achieves the state-of-the-art performance on most evaluation metrics.

Introduction: The Challenge of ICD Coding

International Classification of Diseases (ICD) coding is the critical process of assigning standardized codes to patient discharge summaries for billing, clinical research, and hospital management. Despite its importance, automated ICD coding remains a massive multi-label classification challenge due to two primary factors:

  1. The Long-Tail Problem: There are tens of thousands of potential codes, but the vast majority appear very rarely in training data. This sparsity makes it difficult for traditional models to learn robust representations for infrequent diseases.
  2. The Evidence Gap: Clinical notes are often long and noisy (averaging 1,500 words), yet the justification for a specific code may reside in just a few key phrases. Models struggle to link specific codes to their corresponding evidence within this sea of text.

While previous research attempted to incorporate external knowledge (like medical dictionaries), these efforts typically relied on complex, specialized neural modules for each knowledge type. Such architectures are often incompatible with one another, difficult to scale, and increase computational overhead.

The GKI-ICD Framework

To address these limitations, the authors introduce GKI-ICD (General Knowledge Injection for ICD Coding). Rather than increasing model complexity, GKI-ICD focuses on a smarter training pipeline that "injects" clinical knowledge directly into the model's weights.

The GKI-ICD framework overview, showing how medical knowledge is synthesized into guidelines and injected into the model via multi-task learning.

Guideline Synthesis

For every training document, the system retrieves three distinct types of knowledge for the ground-truth codes:

  • Descriptions: Official definitions of the ICD codes.
  • Synonyms: Alternative medical terms (e.g., mapping "primary hypertension" to "essential hypertension") sourced from the Unified Medical Language System (UMLS).
  • Hierarchy: The "family tree" of the code, providing context from broader disease categories (e.g., mapping a specific esophageal disorder to the broader "diseases of the digestive system").

These elements are concatenated into a clean, noise-free "guideline" string that represents the ideal evidence for the assigned codes.

Multi-task Learning and Alignment

During the training phase, the model performs three simultaneous tasks:

  1. Raw Text Prediction: Predicting codes from messy, real-world clinical notes ($L_{raw}$).
  2. Guideline Prediction: Predicting codes from the clean, synthetic guidelines ($L_{guide}$).
  3. Semantic Similarity Alignment: A similarity constraint ($L_{sim}$) forces the model to ensure that the features extracted from noisy clinical notes align with the features extracted from the clean medical definitions.

Crucially, because this knowledge is injected during training via the loss function, the synthetic guidelines are not required during inference. This results in a smarter model with zero additional latency during actual use.

Experimental Results

GKI-ICD was evaluated on the industry-standard MIMIC-III dataset across two benchmarks: the full set of 8,929 codes and the top-50 most frequent codes. The framework achieved state-of-the-art (SOTA) results across nearly all metrics:

  • Macro AUC: Reached 0.962 on the Full dataset, a 4.6% improvement over the strong PLM-CA baseline.
  • Micro F1: Achieved 0.612, outperforming previous models with more complex architectures.
  • Rare Code Performance: The most significant improvement was seen in rare codes (appearing 10 times or fewer), where the F1-score jumped from 0.029 to 0.132—a nearly five-fold increase.

Discussion and Key Insights

  • Complementary Knowledge: Ablation studies confirmed that descriptions, synonyms, and hierarchy are not redundant; they provide different "views" of medical concepts that together enhance model robustness.
  • The "Cheat Sheet" Effect: By training on synthetic guidelines, the model learns what "perfect" evidence looks like. The similarity loss then helps the model identify that same "essence" even when buried in a 1,500-word discharge summary.
  • Efficiency: Unlike many SOTA competitors, GKI-ICD achieves these results without requiring additional human-annotated data like DRG codes or medications.

Limitations and Future Work

While GKI-ICD sets a new benchmark, the study primarily focuses on ICD-9. Future work will involve adapting the framework to the more complex ICD-10 and ICD-11 systems, which contain over 70,000 codes. Additionally, the researchers aim to incorporate professional tools like the "Alphabetic Index" to further refine the mapping of informal clinical terms to formal codes. The authors suggest this "guideline synthesis" approach could also be generalized to other specialized multi-label classification tasks in the legal or technical domains.

Summary updated

BibTeX
@inproceedings{zhang2025general,
  author = {Xu Zhang and Kun Zhang and Wenxin Ma and Rongsheng Wang and Chenxu Wu and Yingtai Li and S. Kevin Zhou},
  title = {{A General Knowledge Injection Framework for ICD Coding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=ij9TEDSXWI},
}
Figure