TL;DR
This paper introduces a systematic framework to construct "knowledge maps" of Large Language Models (LLMs), pinpointing exactly where and how medical concepts are stored across network layers. By evaluating five prominent open-source models using four distinct interpretability techniques, the authors uncover surprising structural anomalies, including a sharp representational split at age 18, circular trajectories for disease progression, and temporary activation collapses in Gemma models.
What Problem Does This Paper Address?
As LLMs are increasingly deployed in medicine, ensuring their safety, fairness, and reliability is paramount. However, understanding how these models store and process clinical knowledge remains a significant challenge.
Previous mechanistic interpretability research has largely focused on general knowledge, relied on a single model, or used only one explainability technique. This makes it difficult to draw firm conclusions or design targeted interventions. Without knowing where specific knowledge resides, tasks like fine-tuning, unlearning biased medical information, or correcting clinical misconceptions remain a game of trial and error. This paper addresses this gap by systematically mapping medical domain knowledge across multiple model architectures.
Methods
The authors propose an evaluation pipeline that combines four independent interpretability techniques to locate knowledge within LLM layers:
- UMAP Projections: Projecting intermediate layer activations into a 2D space to visualize structural patterns, using Silhouette scores to quantify how well concepts cluster.
- Weight Saliency: Calculating gradient-based importance metrics ($\frac{\partial \log \mathcal{L}}{\partial w}$) to identify which weights in attention heads and MLPs are most critical to a medical prompt.
- Layer Lesioning: Systematically replacing individual layers with an identity function and measuring the degradation of the model's response using GPT-4o as a judge.
- Activation Patching: Performing causal interventions by swapping internal activations from a "clean" prompt into a "corrupted" prompt run to observe the impact on the output logits.
By finding consensus across these structurally diverse methods, the authors construct aggregate "LLM Maps" that confidently localize specific types of medical knowledge.
Datasets
Rather than using standard pre-existing datasets, the authors generated a specialized suite of prompt templates verified by a team member with a PhD in Clinical Neuroscience. These templates cover five core areas:
- Patient Age: Prompts querying ages from 1 to 100 across different genders.
- Medical Symptoms: Queries mapping specific symptoms to conditions.
- Diseases: Diagnostic scenarios.
- Drug Treatments: Scenarios matching clinical presentations to pharmaceutical interventions.
- Drug Dosages: Prompts testing safe vs. lethal thresholds.
For the disease progression analysis, they curated detailed 9-stage clinical trajectories (ranging from completely healthy to death) for four major conditions: Alzheimer’s disease, COVID-19, COPD, and Parkinson’s disease.
Key Insights and Ideas
- The Age 18 Discontinuity: LLMs do not represent age as a simple, continuous linear variable. In intermediate layers of Llama 3.3-70B, a distinct representational jump occurs precisely between ages 17 and 18, revealing that the model fundamentally segregates "teenagers" from "adults" in its latent space.
- Circular Disease Progression: Instead of a monotonic trajectory from healthy to severe, the internal representation of disease progression loops. At certain intermediate layers, late-stage disease embeddings structurally resemble early-stage or healthy embeddings, violating the common "linear representation hypothesis."
- Specialty Over Biology: When processing pharmaceuticals, Llama 3.3-70B groups drugs more strongly by their medical specialty (e.g., Cardiology vs. Gastroenterology) rather than their underlying biological mechanism of action (e.g., Enzyme Inhibitor vs. Receptor Antagonist).
- Gemma’s Intermediate Collapse: Gemma3-27B and MedGemma-27B exhibit a strange phenomenon where activations collapse into a few tightly bound clusters at intermediate layers (around layer 20) before recovering their representational diversity in the final layers.
Key Results
- Knowledge Localization: In Llama 3.3-70B, the aggregate map reveals a front-loaded processing style: age is handled very early (layers 0–5), symptoms span layers 0–9 and 15–40, diseases occupy layers 0–5 and 27–37, and drug knowledge sits firmly in the middle (layers 15–45).
- Model Architecture Divergence: Layer localization varies dramatically by model family. While Llama 3.3-70B processes most medical knowledge in its first half, models like GPT-OSS-120B and Qwen-32B show the exact opposite behavior, concentrating their medical representations in the second half of their layers.
- Quantifying Linearity: Age manifold linearity ($R^2$) reaches near 1.0 at optimal intermediate layers across most models but degrades significantly by the final layer for Gemma3-27B ($R^2 \approx 0.63$) and Qwen-32B ($R^2 \approx 0.59$).
Limitations and Future Work
The authors note that a primary limitation of mechanistic interpretability is the lack of objective human ground truth, as internal model representations do not inherently map to human-understandable concepts. Additionally, the circularity observed in disease progression was evaluated on only four diseases and could be sensitive to prompt phrasing.
For future work, the authors provide actionable algorithmic recommendations, suggesting that AI labs introduce specific regularizers during training—such as uniformity losses to prevent Gemma's activation collapse, or distance-based regularizers to enforce monotonicity in disease progression.
Summary updated