Laya-IsoToken: Day-One Clinical Codebook Switching via Closed-Form Operator Compilation

Zeqiang WangarXiv 2026

It’s late. You’ve had a long day of staring at logs or debugging pipelines. Imagine you’re a hospital administrator. Every few years, the "rules of the game" for how you get paid change. The government moves from one massive book of medical codes (like ICD-9) to another (ICD-10 or ICD-11).

Suddenly, your state-of-the-art AI, which spent months learning the old codes from millions of patient records, is useless. To fix it, you’d need to manually re-annotate tens of thousands of new records—a process that takes years and costs millions. This is the "Day-One" problem.

A new paper from Zeqiang Wang at the University of Surrey introduces Laya-IsoToken, a framework that solves this by teaching an AI how to read clinical evidence once, then allowing it to "switch" to a brand-new codebook in under three seconds—no retraining required.

TL;DR

Laya-IsoToken decouples the act of reading clinical notes from the specific list of medical codes being used. By using "closed-form" mathematics to align new codebooks to a frozen clinical concept space, it allows hospitals to switch billing systems instantly on "Day One" without needing a single labeled example from the new system.

What Problem Does This Paper Address?

Clinical coding is the backbone of healthcare finance and research. When a doctor writes a note, a "coder" (human or AI) translates that text into standardized codes (like "K21.9" for acid reflux).

The problem is that current AI models are supervised. They have millions of internal "weights" specifically tuned to a fixed set of codes. If the codebook changes, those weights become junk. You could use a Large Language Model (LLM) like GPT-4, but they are notoriously slow for processing thousands of admissions and often "hallucinate" codes that don't even exist in the official dictionary.

The authors identify a "Day-One" gap: the moment a new codebook is released, you have the dictionary (the "what"), but zero historical examples of how doctors describe those new codes (the "how").

Methods

The secret sauce of Laya-IsoToken is a dual-process architecture, inspired by the "fast and slow" thinking of human cognition.

  1. System 1 (The Fast Reader): Instead of learning specific codes, the model is trained once to be a "span reader." It looks at tiny 4-token chunks of text and maps them into a strictly frozen multilingual concept space. Because this space is locked, the model learns the meaning of clinical language rather than just memorizing which words lead to which ICD-9 code.
  2. Closed-Form Compilation: When a new codebook (like ICD-10) arrives, the system performs five mathematical operations to "install" it. This includes Bures-Wasserstein alignment (to fix distributional shifts between languages or formats) and Wiener filters (to handle paraphrased definitions). This happens in seconds on a single GPU.
  3. System 2 (The Slow Verifier): If System 1 encounters a concept it doesn't recognize (measured by a "geometric residual"), it flags it for a "slow" audit by a 31-billion-parameter LLM. This ensures accuracy for rare or ambiguous cases while keeping the bulk of the work lightning-fast.
Overview of the Laya-IsoToken framework showing source training, zero-training compilation, and the fast-and-slow verification cascade.

Datasets

The researchers put Laya-IsoToken through a gauntlet of real-world scenarios:

  • MIMIC-IV: The gold standard of clinical datasets, used for both ICD-9 (source) and ICD-10 (target) testing.
  • MS-DRG: A completely different task involving hospital reimbursement groups.
  • Multilingual Cohorts: Testing the "zero-shot" jump to Spanish (CodiEsp), Greek (ElCardioCC), and Chinese (CHIP-CDN).

Key Insights and Ideas

  • Locking the Manifold is Mandatory: The authors found that if you let the model "fine-tune" its concept space during training, it actually gets worse at switching codebooks. It overfits to the specific slang of the training hospital. Keeping the concept space "frozen" preserves the universal geometry of medical knowledge.
  • The "Hubness" Problem: In high-dimensional AI spaces, some points (codes) naturally become "hubs" that seem to match everything. Laya-IsoToken uses "CSLS hubness centering" to push these back, ensuring that a generic note doesn't accidentally trigger a highly specific, rare code.
  • Evidence over Prevalence: Standard models often guess a code just because it's common (e.g., "everyone has hypertension"). Laya-IsoToken uses Bayesian Logit Deconfounding to separate the textual evidence from the historical frequency, making it much more reliable when moving to a new hospital or country where disease rates might differ.

Key Results

  • In-Domain Parity: On the original ICD-9 task, Laya-IsoToken matched the performance of heavily supervised models (62.6% Micro-F1) despite having zero trainable parameters for the codes themselves.
  • Day-One Dominance: When switched to ICD-10 with zero new training notes, it outperformed official government mapping tools and specialized biomedical retrievers by a wide margin (+5.4 F1 points).
  • Speed: It processes an entire patient admission in just 9.4 milliseconds.
  • Hallucination-Free: By grounding the LLM verifier in the "shortlist" provided by the fast reader, they eliminated 100% of invalid code hallucinations.
Performance comparison on ICD-9, showing that Laya-IsoToken matches supervised baselines while improving probability calibration.

Limitations and Future Work

While Laya-IsoToken is a massive leap for portability, it isn't perfect.

  • The "Supervised Ceiling": It still performs lower than a model that has been trained on 100,000 labeled ICD-10 notes. It’s a "Day-One" solution, not necessarily a "Day-1,000" one.
  • Negation: The fast System 1 reader sometimes struggles with "ruled out" diagnoses (e.g., "Patient does not have pneumonia"). While the System 2 LLM catches many of these, the authors suggest that adding a lightweight, fast negation-aware gate could make the system even more robust.
  • Structured Data: Currently, the model only reads clinical notes. Real-world billing also uses structured data (age, sex, lab results), and integrating these into the "compilation" step is a clear next step.

Summary updated

Abstract

Healthcare systems periodically revise diagnostic and procedural classifications (ICD-9 to ICD-10/11), update hospital reimbursement groupers (MS-DRG), and deploy clinical coding across languages. Supervised coding networks bind clinical text encoders to fixed per-code classifier weights, forcing hospitals to re-annotate tens of thousands of records before switching codebooks, whereas standalone large language models incur high latency and hallucinate invalid codes. Here we show that day-one clinical codebook switching becomes feasible without target-labeled notes when local clinical evidence reading is decoupled from a strictly frozen multilingual concept space. Laya-IsoToken trains a clinical span reader once on source records with zero per-code classifier parameters, separating text evidence from historical disease prevalence. Given only public target code descriptions, closed-form matrix compilation aligns distributional shifts, compensates for paraphrased definitions, and deduplicates sibling codes in under three seconds, while a pre-deployment geometric residual routes unfamiliar concepts to offline language model verification. Across 32,804 MIMIC-IV ICD-9 discharges, Laya-IsoToken matches published supervised baselines (62.6% Micro-F1) while reducing active calibration error by 32%. Switched with zero target training notes to 13,783 unseen-patient ICD-10 discharges, MS-DRG groups, and multilingual cohorts, it outperforms biomedical dense retrievers, semantic crosswalks (+5.4 F1 points on ICD-10, paired $d_z = 0.49$, $p < 0.001$), and official US CMS equivalence mappings (+3.5 points, $p < 0.001$) at 9.4 ms per admission. Pairing this reader with an offline 31B verifier across 1,000 full discharge summaries lifts zero-training ICD-10 coding to 40.6% Micro-F1 (57.0% category F1, $d_z = 0.66$, $p < 0.001$) with 0.0% invalid code hallucinations.
BibTeX
@misc{wang2026laya,
  author = {Zeqiang Wang},
  title = {{Laya-IsoToken: Day-One Clinical Codebook Switching via Closed-Form Operator Compilation}},
  year = {2026},
  eprint = {2611.30196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30196},
}
Figure