Language Models Meet Anomaly Detection for Better Interpretability and Generalizability

Jun Li, Su Hwan Kim, Philip Müller, Lina Felsner, Daniel Rueckert +3 more
4/11/2024
cs.CVcs.CL

Official code: compai-lab/miccai-2024-junli (2 stars, last commit 2024-07-18).

Abstract

This research explores the integration of language models and unsupervised anomaly detection in medical imaging, addressing two key questions: (1) Can language models enhance the interpretability of anomaly detection maps? and (2) Can anomaly maps improve the generalizability of language models in open-set anomaly detection tasks? To investigate these questions, we introduce a new dataset for multi-image visual question-answering on brain magnetic resonance images encompassing multiple conditions. We propose KQ-Former (Knowledge Querying Transformer), which is designed to optimally align visual and textual information in limited-sample contexts. Our model achieves a 60.81% accuracy on closed questions, covering disease classification and severity across 15 different classes. For open questions, KQ-Former demonstrates a 70% improvement over the baseline with a BLEU-4 score of 0.41, and achieves the highest entailment ratios (up to 71.9%) and lowest contradiction ratios (down to 10.0%) among various natural language inference models. Furthermore, integrating anomaly maps results in an 18% accuracy increase in detecting open-set anomalies, thereby enhancing the language model's generalizability to previously unseen medical conditions. The code and dataset are available at https://github.com/compai-lab/miccai-2024-junli?tab=readme-ov-file

View on arXivView PDF

Code Implementations(1)

20Shell, PythonJul 18, 20242 years ago

Similar Papers

Cite this paper

@article{li2024language,
  title  = {Language Models Meet Anomaly Detection for Better Interpretability and Generalizability},
  author = {Jun Li and Su Hwan Kim and Philip Müller and Lina Felsner and Daniel Rueckert and Benedikt Wiestler and Julia A. Schnabel and Cosmin I. Bercea},
  year   = {2024},
  eprint = {2404.07622},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07622v2}
}

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/2404.07622.svg)](https://codeofpaper.com/paper/2404.07622)

Discussion