A Textbook Remedy for Domain Shifts: Knowledge Priors for Medical Image Analysis

Yue Yang, Mona Gandhi, Yufei Wang, Yifan Wu, Michael S. Yao +3 more
2/3/2026

No official code found. Best implementation: YueYANG1996/KnoBo (31 stars, MIT, last commit 2024-10-15).

Abstract

While deep networks have achieved broad success in analyzing natural images, when applied to medical scans, they often fail in unexpected situations. We investigate this challenge and focus on model sensitivity to domain shifts, such as data sampled from different hospitals or data confounded by demographic variables such as sex, race, etc, in the context of chest X-rays and skin lesion images. A key finding we show empirically is that existing visual backbones lack an appropriate prior from the architecture for reliable generalization in these settings. Taking inspiration from medical training, we propose giving deep networks a prior grounded in explicit medical knowledge communicated in natural language. To this end, we introduce Knowledge-enhanced Bottlenecks (KnoBo), a class of concept bottleneck models that incorporates knowledge priors that constrain it to reason with clinically relevant factors found in medical textbooks or PubMed. KnoBo uses retrieval-augmented language models to design an appropriate concept space and an automatic training procedure for recognizing the concept. We evaluate different resources of knowledge and recognition architectures on a broad range of domain shifts across 20 datasets. In our comprehensive evaluation with two imaging modalities, KnoBo outperforms fine-tuned models on confounded datasets by 32.4% on average. Finally, evaluations reveal that PubMed is a promising resource for making medical models less sensitive to domain shift, outperforming other resources on both diversity of information and final prediction performance.

View on arXivView PDF

Code Implementations(1)

YueYANG1996/KnoBoCommunity70%
MIT

NeurIPS 2024 (spotlight): A Textbook Remedy for Domain Shifts Knowledge Priors for Medical Image Analysis

314Shell, PythonMay 23, 20242 years agoMIT
confoundingdomain-shiftinterpretable-machine-learningmedicalretrieval-augmented-generation

Similar Papers

Cite this paper

@article{yang2026textbook,
  title  = {A Textbook Remedy for Domain Shifts: Knowledge Priors for Medical Image Analysis},
  author = {Yue Yang and Mona Gandhi and Yufei Wang and Yifan Wu and Michael S. Yao and Christopher Callison-Burch and James C. Gee and Mark Yatskar},
  year   = {2026},
  eprint = {2405.14839},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.14839},
  url    = {https://arxiv.org/abs/2405.14839},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.14839.svg)](https://codeofpaper.com/paper/2405.14839)

Discussion