← Latest papers
💬 NLP

From Documents to Spans: Code-Centric Learning for LLM-based ICD Coding

This paper proposes "Code-Centric Learning," a training framework that improves the accuracy, interpretability, and cost-efficiency of LLM-based ICD coding by shifting supervision from full clinical documents to scalable evidence spans, enabling smaller models to outperform larger baselines and generalize to unseen codes.

Original authors: Xu Zhang, Wenxin Ma, Chenxu Wu, Rongsheng Wang, Kun Zhang, S. Kevin Zhou

Published 2026-03-17
📖 4 min read☕ Coffee break read

Original authors: Xu Zhang, Wenxin Ma, Chenxu Wu, Rongsheng Wang, Kun Zhang, S. Kevin Zhou

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a medical librarian whose job is to read thousands of patient stories (clinical notes) and assign them specific "library codes" (ICD codes) so insurance companies know how to pay and researchers can study diseases.

There are about 70,000 different codes in the library, but the stories you read are long, messy, and full of medical jargon.

The Old Way: The "Overwhelmed Intern"

Traditionally, computers tried to learn this job by reading the entire patient story every single time.

  • The Problem: Imagine trying to teach a student to recognize every specific type of tree in a forest by only showing them photos of the entire forest. It's slow, expensive, and the student gets confused.
  • The Result: The computer was slow to train, it only learned the few trees it saw often (missing the rare ones), and when it guessed a code, it couldn't explain why it picked it. It was like a black box.

The New Way: "Code-Centric Learning" (The Paper's Solution)

The authors of this paper propose a smarter way to train the computer, which they call Code-Centric Learning.

Think of it like training a detective instead of a general reader. Instead of reading the whole book to find the answer, the detective learns to spot tiny, specific clues (evidence spans) that point directly to a specific code.

Here is how they did it, using three simple steps:

1. The "Flashcard" Strategy (Mixed Training)

Instead of forcing the computer to read 100-page patient files, they broke the learning down into two types of flashcards:

  • The Full Story Cards: A few real patient stories where the computer learns to find the clues and pick the code. This teaches it how to handle the whole picture.
  • The Clue Cards: Millions of tiny snippets. One side says "Broken Leg," the other side says "Patient fell off a bike and can't walk." The computer just learns: "Oh, 'can't walk' + 'bike' = Broken Leg code."
  • Why it works: It's like learning vocabulary by studying individual words and sentences rather than trying to memorize whole novels. It's 80% faster to train because the computer doesn't have to process huge files every time.

2. The "Imagination Engine" (Data Expansion)

The biggest problem with medical coding is that there are 70,000 codes, but most datasets only have examples for about 10% of them. What happens when the computer sees a code it has never seen before?

  • The Old Way: The computer would just guess or fail.
  • The New Way: The authors used a powerful AI to invent training examples for the missing codes.
    • Analogy: Imagine you want to teach a child what a "Pangolin" looks like, but you've never seen one. You show them a picture of a "Sloth" (a similar animal) and say, "A Pangolin is like a Sloth, but with armor scales." The AI does this for medical codes. It looks at a known code, finds a similar unknown one, and synthesizes a realistic patient story for it.
    • This allows the computer to learn 100% of the codes, even the ones it has never seen in real life.

3. The "Highlighter" (Interpretability)

In the old days, the computer would just spit out a code: "Diagnosis: Diabetes." You had no idea if it was right or why.

  • The New Way: The computer is now forced to highlight the evidence first.
    • Output: "Diagnosis: Diabetes. Evidence: 'Patient has high blood sugar and frequent thirst.'"
  • Why it matters: This is like a student showing their work on a math test. If the highlight is wrong, a human doctor can fix it immediately. This makes the AI a helpful partner, not a mysterious oracle.

The Big Win

By switching from "reading the whole book" to "studying the clues," the researchers achieved three amazing things:

  1. Speed: They trained the model in 40 hours instead of 210 hours.
  2. Smarts: A small, cheap computer model trained this way performed just as well as massive, expensive, proprietary models.
  3. Trust: The model can now point to the exact sentence in the patient's note that justified its decision, making it safe for real hospitals to use.

In a nutshell: They stopped trying to teach the AI to read the whole library and started teaching it to be a master detective who knows exactly which clues to look for, even for cases it has never seen before.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →