DDxBasis: Explaining Frozen Foundation Encoder-based Medical Classification by Exact Differential Diagnosis
summary
The gist
DDxBasis explains medical image classification by framing a diagnosis as a differential diagnosis, which is achieved through three sequential steps applied to a frozen foundation encoder: first…
In short
DDxBasis explains medical image classification by treating diagnosis as a differential diagnosis using three steps on a frozen encoder. It uses a concept bottleneck to read patch tokens, then a concept basis to create two-pole axes representing diagnostic differentials. This reveals clinical structure, hidden cell lineages, and potential shortcuts beyond simple class labels.
Key concepts
- Concept Bottleneck
- This step reads all image patch tokens across every encoder layer using gated, second-order slots. Each class logit is a sum of non-negative concept evidence. Summing this evidence by group yields exact and faithful class probabilities, ensuring strong classification.
- Concept Basis
- This component proposes a compact set of novel two-pole axes that represent differentials between groups of diagnoses. These axes are learned under constraints like distinctness, load-balancing, and coherence. They capture structural differences in medical data.
- Differential Diagnosis Reading
- The final step reads the differential diagnosis by examining each axis through its poles, the case's pertinent findings, and counterfactual edits of borderline cases. This allows AI to generate clinically useful explanations that go beyond simple ranked lists.
- Auditable Axes
- The concept basis is auditable because it exposes potential data artifacts like planted or real shortcuts. For example, it flags view position in chest radiographs as a shortcut, allowing researchers to test if the model relies on these variables.
Terminology used across episodes
This episode discusses
- DDxBasis: Explaining Frozen Foundation Encoder-based Medical Classification by Exact Differential Diagnosis · Paper Radio
- MedGemma Technical Report · Paper Radio
- DINOv3
- Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
- Does DINOv3 Set a New Medical Vision Standard? Benchmarking 2D and 3D Classification, Segmentation, and Registration
- Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)
- CytoDINO: Risk-Aware and Biologically-Informed Adaptation of DINOv3 for Bone Marrow Cytomorphology
- Vertical Fusion: Condensing Internal Representations for Robust ViT Classification
The paper
DDxBasis: Explaining Frozen Foundation Encoder-based Medical Classification by Exact Differential Diagnosis · Read on arXiv
Johns Hopkins University
In differential diagnosis (DDx), a clinician explains a diagnosis by the few findings that separate it from the alternatives. Medical image classifiers cannot yet explain themselves this way. Existing explanations are either faithful but spread over hundreds of concepts, or compact but leave part of each decision unexplained. We present DDxBasis, which explains a classifier on a frozen foundation encoder as a differential diagnosis in three steps. First, a concept bottleneck reads all patch tokens at every encoder layer using gated, second-order slot attention. A concept basis then regroups the concepts into two-pole axes, each a differential between groups of diagnoses. Finally, we read a differential diagnosis from each axis through the typical presentation of its poles, the pertinent findings of the case, and counterfactual edits of borderline cases. Across five medical datasets, DDxBasis is the most accurate frozen-encoder model and close to the best published domain-specific results. Because every concept adds its own evidence, its reproducible concept basis splits each decision exactly, at no cost in accuracy. Without ordered stage or concept labels, the axes recover cell lineages and rare subtypes, agree with dermatologists' structure annotations, and expose planted and real shortcuts.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: We're looking at the paper: "DDxBasis: Explaining Frozen Foundation Encoder-based Medical Classification by Exact Differential Diagnosis".
Title and authors: Jane: We talked about DDxBasis and how it creates differential diagnoses rather than just single labels, focusing on the structure of those two-pole axes and how they reveal hidden clinical information in medical images, moving from simple classification to reasoning about what separates different diseases.
Tom: Right, so we’re talking about the DDxBasis paper now, and it’s focused on framing a diagnosis as a differential diagnosis by using three sequential steps applied to a frozen foundation encoder. It starts with the concept bottleneck reading all patch tokens at every encoder layer using gated, second-order slot attention.
Lu: Before that, you have this concept bottleneck which reads all patch tokens across every layer with competing, gated, second-order slots where each class logit is just a sum of non-negative concept evidence. Summing that evidence group by group yields exact and faithful class logits.
Meng: I wonder about the practicality of reading everything at every layer; does that bottleneck become too slow when we have to do this for high resolution images? What’s the computational cost there?
Lalam: The paper focuses on how this concept bottleneck achieves strong classification because it reads all patch tokens across every layer with competing, gated, second-order slots where each class logit is a sum of non-negative concept evidence. Summing that evidence group by group yields exact and faithful class logits.
Tom: It’s designed so that summing that evidence group by group yields exact and faithful class logits because each class logit is a sum of non-negative concept evidence, which helps in getting those precise results.
Jane: So then you move from the bottleneck to the concept basis, which proposes a compact set of novel two-pole axes where each axis represents a differential between groups of diagnoses. These axes are learned with specific constraints like distinctness via log-determinant volume and coherence via normalized pole score on within-class correlation.
Lu: Those constraints are key because they ensure the axes are distinct, load-balanced by a band, coherent through normalized pole score on within-class correlation, and that consensus tying matches axes across bottlenecks to the same image property.
Meng: Load balancing via a band sounds like it’s trying to keep the differences between groups evenly distributed so we don't get one axis dominating everything else. How does that play out in practice?
Lalam: The concept basis learns two-pole axes that are highly effective for differential diagnosis, and for example on PBC images, the E0 axis orders five granulocyte maturation stages on held-out data with a rho of zero point eight seven, even though the classifier only sees two merged labels like immature granulocyte and neutrophil <ref:2611.33358#pg1>.
Tom: That’s a really powerful result because it shows this method can uncover structures that are hidden inside coarse training classes, like discovering rare subtypes such as hairy cells in breast cancer images.
Jane: And these axes also expose things like view position in chest radiographs which is flagged due to its strong held-out effect, showing that the model isn't just looking at the main pathology but also superficial things.
Lu: The method’s objective function minimizes a loss that combines basis terms like distinctness, balance, coherence, and reproducibility with content terms like reconstruction of concept tokens and descriptor residual. It’s a complex optimization goal to get all those properties balanced at once.
Lalam: The audit on the concept basis is quite thorough; they found that for each dataset, the leading axis set is actually the smallest set carrying eighty percent of its positive margin, and every single axis lies in the eighty percent set of at least six percent of all decisions.
The paper's summary: Tom: So we’ve seen how this method builds those two-pole axes, and now we need to talk about what the core summary of DDxBasis actually says about the mechanics of this classification process. It frames a diagnosis as a differential diagnosis through three sequential steps applied to a frozen foundation encoder.
Lu: It starts with the concept bottleneck reading all patch tokens at every layer using gated, second-order slot attention, and then it moves to the concept basis processing that regroups concepts into two-pole axes representing differentials between groups of diagnoses.
Jane: And the final step is how you read that differential diagnosis by looking at each axis through the typical presentation of its poles, the pertinent findings of the case, and counterfactual edits of borderline cases.
Meng: I’m trying to get a really simple analogy for this whole three-step process so that someone listening who isn't deep in ML can grasp what’s actually happening under the hood.
Lalam: Think of it like this: first, you look at every piece of information across all layers with competing slots, then you use those tokens to build these axes that show the differences between groups of diagnoses.
Tom: And the final step is reading from those axes by looking at their poles and testing what happens when you make a small change to the image to see if it flips the decision.
Jane: The paper emphasizes that this approach is faithful because prototype networks and concept bottlenecks are faithful by construction, but over a hundred overlapping concepts are too much for models to handle.
Lu: They found that the evidence of E0, Eq. (five) minus pole plus pole NEU one hundred four point three IG six point zero logit equals all axes plus bk seventeen eight point one NEU eighty-eight point three IG equals k exactly, which means it’s exactly what you want in terms of concept evidence <ref:2611.33358#pg3>.
Meng: That equation is dense, but from what I can gather, it’s showing that the model finds the exact set of concepts needed to make a prediction without any extra guesswork added on top.
Lalam: And they show how this decomposition works by looking at the pole atlas and names for typical presentation, and then looking at the margin map and position for pertinent findings.
Tom: It’s about making sure that when you look at the pole atlas, you are matching it with what you see in your case data.
Jane: And if there are borderline cases, they show how counterfactual edits can visualize what change in the image might flip the decision but not how the model actually reads it.
The paper's improvements: Tom: So we’ve covered the core mechanism and results, now let’s look at what improvements DDxBasis suggests for this existing framework, because it’s not just a finished system; it has room to evolve.
Lu: One major improvement is that the concept basis creation allows for reading a differential diagnosis by "reading a differential diagnosis from each axis through the typical presentation of its poles, the pertinent findings of the case, and counterfactual edits of borderline cases."
Jane: That’s what makes it clinically useful because it moves beyond simple ranked lists and lets AI systems generate explanations that go beyond just showing a list.
Meng: So this is about making sure the output is actionable for a clinician, not just pretty visualization; how does that change the deployment story?
Lalam: Another big contribution is discovering clinical insights beyond class labels, from clinical structure to shortcuts, such as recovering cell lineages (one axis orders five granulocyte maturation stages with Spearman rho zero point eighty-seven from only two merged training labels).
Tom: That finding is significant because it shows we can uncover rare subtypes hidden inside coarse training classes, and that’s something we don't see often in standard classification.
Jane: And they also expose planted or real shortcuts, which means they can flag acquisition variables whose strongest effect is a variable, allowing researchers to test if a shortcut is actually relied upon.
Lu: The objective function minimizes a loss combining basis terms like distinctness, balance, coherence, reproducibility and content terms like reconstruction of concept tokens and descriptor residual. It’s a complex optimization goal to get all those properties balanced at once.
Meng: If we are going to deploy this, what I care about is how much this explanation adds versus just adding another layer of complexity to the pipeline. The paper mentions that decisions are split exactly by the concept basis, which is good for trust, but we need to know if it’s computationally expensive during inference.
Lalam: The final configuration selection optimizes multiple properties: exactness, effective dimension being greater than or equal to zero point six times K, margin constraint with no axis holding more than fifty percent of the average margin, median seed match greater than or equal to zero point nine, and content redundancy less than zero point five.
Tom: These specific optimizations show they are really balancing multiple properties simultaneously: exactness, effective dimension being greater than or equal to zero point six times K, margin constraint with no axis holding more than fifty percent of the average margin, median seed match greater than or equal to zero point nine, and content redundancy less than zero point five.
Jane: So ultimately this means the model can discover clinical insights beyond simple class labels from clinical structure to shortcuts like view position in chest radiographs.
Conclusion: Tom: Alright, we’ve seen how DDxBasis works, what the key results are, and what improvements they made to move toward actionable differential diagnoses. It seems this paper has a lot of implications for how we think about explaining medical AI decisions.
Jane: The main implication is that instead of just getting a ranked list, clinicians get reasoning behind that rank because the concept basis makes the explanation exact and compact.
Lu: It also means we can discover clinical insights beyond class labels, uncovering things like cell lineages hidden inside coarse training classes and exposing real or planted shortcuts in the data.
Meng: From a deployment view, it seems like it’s an excellent way to build trust because decisions are split exactly by these learned axes, but we still need to confirm the inference cost is manageable for high-throughput clinical settings.
Lalam: The DDxBasis method is really about reading a differential diagnosis from each axis through the typical presentation of its poles, the pertinent findings of the case, and counterfactual edits of borderline cases.
Tom: We’ve seen how it handles complex problems on PBC images, where ordering is weaker on other axes with a rho of zero point thirty-one and zero point thirty-three for those other axes.
Jane: The final configuration selection optimizes multiple properties like exactness, effective dimension greater than or equal to zero point six times K, margin constraint with no axis holding more than fifty percent of the average margin, median seed match greater than or equal to zero point nine, and content redundancy less than zero point five.
Lu: The paper’s full title is DDxBasis: Explaining Frozen Foundation Encoder-based Medical Classification by Exact Differential Diagnosis, and this method is really about making the AI output clinically useful by exposing the structure behind the label.
Meng: I think for me, it’s a strong direction because it focuses on auditable results that can be checked against known structures in medicine, which is what we need before we push these things into production pipelines.
Lalam: This paper is really about reading a differential diagnosis from each axis through the typical presentation of its poles, the pertinent findings of the case, and counterfactual edits of borderline cases.
More episodes
- Daily Summary for 2026-12-05
- 2512.06840-CADE: Continual Weakly-supervised Video Anomaly Detection with Ensembles
- 2602.06195-Debiased DPO for Diffusion Models
- 2602.08430-Understanding and Optimizing Attention-Based Sparse Matching for Diverse Local Features
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2602.17322-Leveraging Contrastive Learning for a Similarity-Guided Tampered Document Data Generation Pipeline
- 2603.12388-Deployment-Oriented Session-wise Meta-Calibration for Landmark-Based Webcam Gaze Tracking
- 2604.13856-Any3DAvatar: Fast and High-Quality Full-Head 3D Avatar Reconstruction from Single Portrait Image
- 2605.24604-LC-Flow: Learning Local Continuous Optical Flow and Confidence from events