mlsanityData to 14 Oct 2026

Transformer-based out-of-distribution detection for clinically safe segmentation

arXiv 2205.10650 ↗First posted 21 May 2022cs.CV cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

In a clinical setting it is essential that deployed image processing systems are robust to the full range of inputs they might encounter and, in particular, do not make confidently wrong predictions. The most popular approach to safe processing is to train networks that can provide a measure of their uncertainty, but these tend to fail for inputs that are far outside the training data distribution. Recently, generative modelling approaches have been proposed as an alternative; these can quantify the likelihood of a data sample explicitly, filtering out any out-of-distribution (OOD) samples before further processing is performed. In this work, we focus on image segmentation and evaluate several approaches to network uncertainty in the far-OOD and near-OOD cases for the task of segmenting haemorrhages in head CTs. We find all of these approaches are unsuitable for safe segmentation as they provide confidently wrong predictions when operating OOD. We propose performing full 3D OOD detection using a VQ-GAN to provide a compressed latent representation of the image and a transformer to estimate the data likelihood. Our approach successfully identifies images in both the far- and near-OOD cases. We find a strong relationship between image likelihood and the quality of a model's segmentation, making this approach viable for filtering images unsuitable for segmentation. To our knowledge, this is the first time transformers have been applied to perform OOD detection on 3D image data. Code is available at github.com/marksgraham/transformer-ood.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 22 of its 28 references that are in the map. First posted on arXiv 21 May 2022.

Builds on

22 of 28 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
  6. 2017Neural Discrete Representation Learningcited by 4,712
  7. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  8. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  9. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
  10. 2020Rethinking Attention with Performerscited by 1,601
  11. 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,387
  12. 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
10 more
  1. 2019On the Convergence of Adam and Beyondcited by 841
  2. 2020Jukebox: A Generative Model for Musiccited by 542
  3. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  4. 2019A large annotated medical image dataset for the development and evaluation of segmentation algorithmscited by 373
  5. 2019Confidence Calibration and Predictive Uncertainty Estimation for Deep Medical Image Segmentationcited by 163
  6. 2018Exploring Uncertainty Measures in Deep Networks for Multiple Sclerosis Lesion Detection and Segmentationcited by 146
  7. 2021Unsupervised Brain Anomaly Detection and Segmentation with Transformerscited by 34
  8. 2018Knowing what you know in brain segmentation using Bayesian deep neural networkscited by 13
  9. 2018Uncertainty-driven Sanity Check: Application to Postoperative Brain Tumor Cavity Segmentationcited by 11
  10. 2020Neuromorphologicaly-preserving Volumetric data encoding using VQ-VAEcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 3; 2023: 3; 2024: 6; 2025: 2; 2026: 2.

16 papers.

Sort:

By area:

  1. 2022Fast Unsupervised Brain Anomaly Detection and Segmentation with Diffusion Modelscited by 97
  2. 2023Generative AI for Medical Imaging: extending the MONAI Frameworkcited by 68
  3. 2023Unsupervised 3D out-of-distribution detection with latent diffusion modelscited by 22
  4. 2024Out-of-distribution Detection in Medical Image Analysis: A surveycited by 22
  5. 2022Morphology-preserving Autoregressive 3D Generative Modelling of the Braincited by 15
  6. 2024Comparative Benchmarking of Failure Detection Methods in Medical Image Segmentation: Unveiling the Role of Confidence Aggregationcited by 12
  7. 2024Dissecting Sample Hardness: A Fine-Grained Analysis of Hardness Characterization Methods for Data-Centric AIcited by 11
  8. 2023SynergyNet: Bridging the Gap between Discrete and Continuous Representations for Precise Medical Image Segmentationcited by 9
  9. 2024Enhancing Reconstruction-Based Out-of-Distribution Detection in Brain MRI with Model and Metric Ensemblescited by 4
  10. 2025MedLoRD: A Medical Low-Resource Diffusion Model for High-Resolution 3D CT Image Synthesiscited by 3
  11. 2022Transformer-based normative modelling for anomaly detection of early schizophreniacited by 2
  12. 2024Quantifying uncertainty in lung cancer segmentation with foundation models applied to mixed-domain datasetscited by 2
4 more
  1. 2024How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliabilitycited by 1
  2. 2025Random forest-based out-of-distribution detection for robust lung cancer segmentationcited by 0
  3. 2026Out-of-Distribution Radar Detection with Complex VAEs: Theory, Whitening, and ANMF Fusioncited by 0
  4. 2026Unsupervised Anomaly Detection for Image Dataset Quality Assurance in Multi-Center Breast MRIcited by 0