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

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.

Paper

References (97)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer tMbd6/10 · confidence 3/52024-06-22

Summary

This paper addresses the issue of deep networks' sensitivity to domain shifts in medical image analysis, particularly for chest X-rays and skin lesion images. The authors propose Knowledge-enhanced Bottlenecks (KnoBo), a concept bottleneck model that incorporates explicit medical knowledge from resources like textbooks and PubMed to improve generalization. KnoBo leverages retrieval-augmented language models to create a clinically relevant concept space and demonstrates a significant performance improvement—32.4% on average—over fine-tuned models across 20 datasets, highlighting PubMed as a particularly effective knowledge resource for mitigating domain shifts.

Strengths

Innovative Integration of Medical Knowledge: The paper introduces Knowledge-enhanced Bottlenecks (KnoBo), a novel approach that integrates explicit medical knowledge into deep networks. By using retrieval-augmented language models to incorporate clinically relevant factors from medical textbooks and PubMed, the model gains a robust prior that significantly enhances its generalization capabilities. Comprehensive Evaluation Across Diverse Domain Shifts: The authors conduct a thorough evaluation of KnoBo across 20 datasets and two imaging modalities (chest X-rays and skin lesion images). This extensive testing demonstrates the model's ability to handle various domain shifts, such as differences in data from different hospitals and demographic confounders, showcasing its practical applicability and robustness. Significant Performance Improvement: KnoBo shows substantial performance gains, outperforming fine-tuned models by an average of 32.4% on confounded datasets. This impressive improvement highlights the effectiveness of incorporating medical knowledge for reducing sensitivity to domain shifts, with evaluations indicating that PubMed is a particularly valuable resource for enhancing model performance and information diversity.

Weaknesses

Lack of Application to 3D Medical Imaging: Issue: The paper primarily focuses on 2D medical imaging modalities, such as chest X-rays and skin lesion images, without addressing the broader and more widely used domain of 3D medical imaging. Impact: This limitation raises concerns about the generalizability and applicability of the proposed KnoBo model to 3D imaging scenarios, such as CT scans or MRI, which are critical in many clinical contexts. Including evaluations on 3D medical images would significantly enhance the relevance and impact of the research. Insufficient Comparative Analysis with 3D Domain Adaptation Methods: Issue: There is a lack of comparative analysis with existing domain adaptation and generalization methods specifically applied to 3D medical imaging. Impact: The absence of such comparisons makes it difficult to gauge the relative effectiveness of KnoBo in a comprehensive manner, particularly given the significant advancements in 3D domain adaptation techniques. Addressing this gap would provide a more complete evaluation of KnoBo's capabilities and limitations.

Questions

Application to 3D Medical Imaging: Question: Have you considered extending the KnoBo framework to 3D medical imaging modalities such as CT scans or MRIs? If so, what challenges do you anticipate, and how might they be addressed? Suggestion: Expanding your research to include 3D medical images would significantly increase the applicability and impact of your work. Discussing potential adaptations and preliminary results for 3D imaging could provide valuable insights and demonstrate the versatility of KnoBo. Comparative Analysis with State-of-the-Art Methods: Question: How does KnoBo compare with recent state-of-the-art domain adaptation and generalization methods, especially those tailored for 3D medical imaging? Suggestion: Including a detailed comparative analysis with advanced domain adaptation techniques, particularly those used in 3D imaging, would strengthen your paper. This would provide a clearer benchmark and highlight the unique advantages and limitations of KnoBo.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

4

Limitations

No

Authorsrebuttal2024-08-10

Has the rebuttal addressed your concerns?

Hi, Do you feel we have provided enough detail about possible extensions of our work to 3D? We will add some of this discussion to the limitations and future work section given extra space. Would you consider updating your rating or are there other weaknesses that we can discuss now during the discussion period? Thanks!

Reviewer f9Nf6/10 · confidence 5/52024-07-10

Summary

The authors noticed the domain-shift issue of current medical dataset, and after taking inspiration from medical training, they propose giving deep networks a prior grounded in explicit medical knowledge communicated in natural language. The proposed network can incorporate medical knowledge priors to help model make decisions. Basically, the authors assumed that “medical concepts” are robust enough to against the domain shift. Valid assumption, interesting work.

Strengths

The authors noticed the domain-shift issue of current medical dataset, and after taking inspiration from medical training, they propose giving deep networks a prior grounded in explicit medical knowledge communicated in natural language. The proposed network can incorporate medical knowledge priors to help model make decisions. Basically, the authors assumed that “medical concepts” are robust enough to against the domain shift. Valid assumption, interesting work.

Weaknesses

It is very HARD to read and interpret. Please raise examples for better reading experience. Maybe I have some questions after the clearance. Other points could be seeen under the Questions section.

Questions

1. “In 5 such constructed confounds per modality, covering scenarios of race, sex, age, scan position, and hospital, we find models unable to generalize well, dropping over 63% on average over an in-distribution (ID) evaluation.” What are the tasks? Please specify. 2. “As a baseline, we extract a subset of d pixels directly from the image as the feature without any model-based priors, represented as xp ∈ Rd. We compare the classification performance using x versus xp to probe the efficacy of the vision backbone’s priors.” I didn’t get the point. Why did you want to compare the effectiveness of x and x_p? 3. It is very hard to read the 4.2 section. I cannot fully understand the algorithm 1. Please raise examples for better reading experience. 4. Table 1, why the KnoBo always has not the best, or sometimes the worst performance in in-domain dataset? 5. Is the Structure Prior learnt? Or the questions like “Is there ground-glass opacity?” were pre-defined? How ist he connection between “Is there ground-glass opacity?” and the top-right red box in Figure 1? 6. Is the training end-to-end? Can you please provide an example for 1) how to pretrain using medical books 2) and given an X-ray image, how the workflow is to get the last result? I hold positive thought towards the study, but it is really hard to understand the workflow. 7. Is the parameter prior a part of the bottleneck predictor? In figure 1 it seems like parallel, but in the main text it seems like existing sequentially. Hard to understand. 8. How to determine the best number of concepts? 9. How did you determine the preferred correlation between the label y and concept c?

Rating

6

Confidence

5

Soundness

2

Presentation

2

Contribution

3

Limitations

N/A

Authorsrebuttal2024-08-10

Has the rebuttal clarified sufficiently?

Hi, Has our rebuttal clarified sufficiently that you feel you can judge our work? Are there other aspects that we can clarify for you to make an assessment now that we have provided answers to your question? Thanks!

Reviewer T8n77/10 · confidence 3/52024-07-13

Summary

The presented paper addresses the challenge of domain shifts in medical image classification, where conventional neural networks often lack effective priors for medical datasets. The authors introduce KnoBo, a novel class of concept bottleneck networks that integrate medical knowledge priors to enhance neural network performance in medical image classification tasks. KnoBo has three primary components: 1) Structure Prior: leverages medical documents to construct a knowledge bottleneck; 2) Bottleneck Predictor: maps images onto concepts; 3) Parameter Prior: imposes constraints on learning the linear layer's parameters, ensuring that the network's predictions remain consistent with the established medical knowledge. The proposed method of KnoBo is evaluated using two medical datasets, ISIC and X-ray, under both confounded and unconfounded settings.

Strengths

The paper is well-organized and easy to follow. The authors propose a novel approach to incorporating medical knowledge priors into existing neural networks by optimizing three distinct terms. The theory behind each term is solid and clearly explained, making the methodology easy to understand. One notable aspect is the parameter prior (Sec. 4.4), which adds interpretability by aligning the estimations with medical concepts. They also use human evaluation on the learned concepts. The authors conduct a comprehensive set of experiments to evaluate their proposed method, covering several scenarios, including confounded and unconfounded data. This broad range of experiments supports the validity of their findings. The ablation studies are thorough, encompassing five knowledge sources, appropriate baselines, and various bottleneck sizes. These ablations provide valuable insights into the proposed method's performance and sensitivity.

Weaknesses

The paper's primary weakness is its reliance on content generated by LLMs to create new medical concepts. Although GPT-4 is one of the most advanced models for generating concepts, it can still produce hallucinations, especially when the generated concepts are loosely aligned with common terms such as hair, skin color/tone, gel bubble, and rules (in the context of skin lesions).

Questions

- Whats is the main reason to define $ \Delta = | ID - OOD |$ as robustness measure (row 257)? In my opinion, this metric is more related to some "fair predictions" concept, since it measures how ID and OOD performances differ. - Do the authors know why the diversity values for skin lesion datasets (Table 3, last column) are much lower than those for X-rays?

Rating

7

Confidence

3

Soundness

3

Presentation

4

Contribution

3

Limitations

Not a limitation, but I recommend incorporating a filtering scheme into the concept generation process to enhance the paper. While the authors have conducted human evaluations, relying solely on such assessments may not be feasible due to the limited availability of human resources. Refining the concept generation could be achieved by improving the prompts or employing a medical foundation model to assess the quality of the generated concepts about the target image.

Reviewer z5712024-08-12

Regarding Hallucinations

I just want to add on here as I believe RAG is quite an effective and reasonable measure to prevent hallucinations by far. Plus, the number/stats they reported in the rebuttal seem pretty convincing.

Reviewer z5717/10 · confidence 3/52024-07-13

Summary

This paper proposed Knowledge-enhanced Bottlenecks (KnoBo) to leverage the concept bottleneck model (CBM) to improve model robustness to various domain shifts and confounders. KnoBo explores using retrieval augmented generation to generate concept space with a large number of concepts using a large language model (i.e., GPT-4). KnoBo brings significant overall improvement when large-scale image-text pairs are available for concept grounding. A comprehensive evaluation across various scenarios and various baselines confirms the effectiveness of KnoBo in reducing the gap between in-distribution and out-of-distribution performance.

Strengths

1. This paper explores exploiting LLM and retrieval augmentation generation, which enables building large concept space from the large-scale knowledge base. 2. Overall, the presentation is clear. Technical details are clearly presented in the supplemental material. However, some results are a bit confusing and lack discussion of limitation and failure cases. 3. Evaluation is comprehensive.

Weaknesses

1. The concept grounding seems pretty data-hungry, requiring large-scale multi-modal datasets for pretraining (e.g., MIMIC-CXR with over 300k image-text pairs). For smaller datasets (ISIC with about 60k images with generated captions from LLM), the proposed KnoBo only brings marginal overall improvement. This requirement significantly limits the broad application of the proposed framework in the data-scarcity domain, such as cancer/tumor classification. 2. Lack of a detailed discussion of limitations (one one-line limitation in Section 7) and presentation of failure cases. No failure cases (wrong classification / wrong concept) were included in either the main text or supplemental material. 3. Some results are confusing to the reviewer (See No. 2 in the Questions section).

Questions

1. In Table 1, the best performance of ISIC-age should be ViT-L/14 and LSL, not the proposed KnoBo (which is bolded). 2. The KnoBo with 150 concepts has an average OOD Acc of 58.8 across Chest X-ray Datasets, as stated in Tables 2 and 4. Why does Figure 4 indicate that KnoBo with 135 concepts has an accuracy below 50 for OOD X-ray datasets? As the performance of OOD datasets decreases with the increased number of concepts, these two results seem contradicted. 3. Typo in the title of Algorithm 1 in Section 4.2. Should be 'retrieval'

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

As explained in the Weaknesses and Questions sections.

Authorsrebuttal2024-08-10

Has the rebuttal addressed your concerns?

Hi, Has our rebuttal addressed the weakness you felt the paper had? In particular, we strongly feel our method is not data-hungry and we have a fairly extensive discussion of problems (currently in the appendix) that could be moved up given extra space. Would you consider updating your rating or are there other weaknesses you feel we can address during this discussion period?

Reviewer T8n72024-08-10

Thank you for your response. The authors have adequately addressed my primary concerns, and I have no further questions. I will maintain my previous rating.

Reviewer z5712024-08-12

Response to the rebuttal

I thank the authors for their time and effort in preparing the rebuttal. The rebuttal resolved some of my questions, and I appreciate the explanation and revision for Figure 4 and the supplement of failure concepts in the attachment. I have some remaining questions: 1. About the examples per grounding functions, does this part correspond to lines **177-179**? Could the author point out or supply how many grounding functions are used for each dataset, how they are selected, and how is the # of grounding functions confirmed? I tried but failed to find these details in the manuscript. If you use 22k examples in x-ray, you should have (22k/2k=11) grounding functions? Is that different from the skin dataset? And why does each x-ray grounding function use 1,523 examples when you actually supply 2,000 examples per grounding function? 2. For the failure case, would it be possible to supply some failure examples of KnoBo in Fig. 7 (i.e., examples without the green checkmarks)? Thank you very much, and I am looking forward to your reply. Great work!

Authorsrebuttal2024-08-12

Thanks for the reply! Here, we reorganize your questions and answer them as follows: **Q1. About the examples per grounding functions, does this part correspond to lines 177-179?** Yes. Sec 4.3 explains the method. **Q2. how many grounding functions are used for each dataset, how they are selected, and how is the # of grounding functions confirmed?** 150 grounding functions are used for each modality. As explained in lines 717-720, we initially use our retrieve-augmented generation algorithm to generate 200 concepts. However, some concepts may not have enough examples in the corpus to support training the grounding functions. Therefore, we only select the top 150 grounding functions ranked by their concept prediction accuracy on the validation sets. **Q3. If you use 22k examples in x-ray, you should have (22k/2k=11) grounding functions? Is that different from the skin dataset?** Each example can be reused to train multiple grounding functions, as each clinical report can contain information on different aspects. For instance, example A can be used as a positive example for concepts 1, 2, and 3 and serve as a negative example for concepts 7, 8, 9, etc. Therefore, considering the overlaps, we use 22k examples in total. The skin lesion dataset uses a similar number of examples. **Q4. And why does each x-ray grounding function use 1,523 examples when you actually supply 2,000 examples per grounding function?** We set 2000 as the upper bound for examples, but when training each binary grounding function, we want to balance positive and negative examples through subsampling. Therefore, the actual number of training samples is 2$\times$min(positive examples, negative examples), which is smaller than 2000. **Q5. For the failure case, would it be possible to supply some failure examples of KnoBo in Fig. 7 (i.e., examples without the green checkmarks)?** This is definitely possible, and we will include them in the next version. Thanks again for raising those questions! We will clarify those details in the next version of the paper.

Authorsrebuttal2024-08-12

Grounding Function Data Requirements Clarification

Apologies, we wanted to clarify the question of data efficiency in the grounding function further (and there was a small typo in the images required before). The mechanism for constructing them is: 1. given a concept name (i.e. ground class opacities for chest x-rays), and a pretraining corpus of (image,report) pairs (i.e. MIMIC), reports are sorted by S-BERT embedding similarity to the concept. The list is truncated to a fixed number of the most similar ones (i.e 2k in the manuscript, but as few as 100 below). 2. An LLM is used to predict if the report positively or negatively affirms that the concept is present in the image, and the output is used as a label. 3. A linear classifier is trained given a balanced subsample of positive and negative instances for the concept The data requirements are that of training a linear classifier on a fixed feature representation and so practically is very small. Furthermore, between the set of all classifiers that need to be trained, there may be correlations between which reports likely mention information relevant to their construction. In the paper, we train 150 concept classifiers, so this means that there would be a maximum of 2000 * 150 = 300k image-report pairs required for training.  Practically, the actual number of samples is much lower because of correlations, 50k. Below is an updated table containing the number of samples required to train concept classifiers. With as few as 100 reports /concept, requiring at most 15k samples (although practically 9k), performance decreases very moderately.   We acknowledge that this level of detail was not clear from the original manuscript and is an important part of how the method works and so will expand it in any future revisions. We will include a small "algorithm" describing the process. |reports / concept | maximum samples | actual samples|Confounded|Unconfounded|Overall | -------- | ------- | -------- | ------- | -------- | ------- | |100 | 15,000 | 9,060 | 72.5 | 71.7 | 72.1 |   |250 | 37,500 | 10,603 | 73.7| 72.1 |72.9| | | |500| 75,000 | 19,288 | 73.1| 73.0| 73.1| | | |1000|150,000 | 33,113 | 73.1|72.8|73.0| | | |1500|225,000 | 43,229 | 73.5|73.2|73.4| | | |2000|300,000 | 50,071 | 74.3|73.1|73.7| | |

Reviewer z5712024-08-13

Thanks for the clarification

Thank you for the reply and clarification. I was confused about the number of examples for grounding functions after receiving the first rebuttal and, therefore, did not update my score. This clarification helps a lot. Before the end of the discussion and providing my revised score, I have one last question: The title of this manuscript contains a broad term of medical image analysis, while the current version merely focuses on classification. Given the fact that the ISIC dataset also provides a segmentation mask, I wonder if the authors have explored applying KnoBo in the context of segmentation and OOD/confounded generalization.

Authorsrebuttal2024-08-13

Thanks for interesting discussion! Extension to detection

Thanks for the reply. We appreciate the engagement and feel this discussion is making the work much better. In general, we believe classification is often an important sub-component of medical image analysis pipelines and KnoBo shows how to make that aspect controllable with priors via interpretable design. Segmentation (and related problems like detection and registration) is an important problem, although we have not thoroughly explored it yet. In the case of segmentation though, many model architectures decouple region prediction and classification (i.e. works like Mask R-CNN or Yolo have separate heads for predicting bounding boxes and their classifications) and KnoBo almost directly applies. In terms of making the spatial part of predictions interpretable and having appropriate priors, we may need a different mechanism than concept bottlenecks. It would also be interesting to analyze if confounding errors for segmentation are coming from the spatial or classification components. We can include a discussion of this in the future work / limitations section.

Reviewer z5712024-08-13

It would be great if you could add a hint of discussion about potentially applying KnoBo to segmentation/detection settings, and I think it would increase the paper's influence. If space not allowed, it could be put in the appendix. I hope the author can manage to include all the committed changes (to my review and others' review) in the final version. I feel like the rebuttal and discussion adequately address my questions and concerns. Therefore, I'm happy to raise my rating of presentation from 2 to 3, my rating of contribution from 2 to 3, and my overall rating from 5 to 7. Congrats on the work!

Authorsrebuttal2024-08-13

Thanks for all of the feedback and suggestions!

Thanks for all of the feedback and suggestions!

Program Chairsdecision2024-09-25

Decision

Accept (spotlight)

© 2026 NYSGPT2525 LLC