mlsanityData to 7 Oct 2026

Devil is in the Queries: Advancing Mask Transformers for Real-world Medical Image Segmentation and Out-of-Distribution Localization

arXiv 2304.00212 ↗First posted 1 Apr 2023cs.CV cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

Real-world medical image segmentation has tremendous long-tailed complexity of objects, among which tail conditions correlate with relatively rare diseases and are clinically significant. A trustworthy medical AI algorithm should demonstrate its effectiveness on tail conditions to avoid clinically dangerous damage in these out-of-distribution (OOD) cases. In this paper, we adopt the concept of object queries in Mask Transformers to formulate semantic segmentation as a soft cluster assignment. The queries fit the feature-level cluster centers of inliers during training. Therefore, when performing inference on a medical image in real-world scenarios, the similarity between pixels and the queries detects and localizes OOD regions. We term this OOD localization as MaxQuery. Furthermore, the foregrounds of real-world medical images, whether OOD objects or inliers, are lesions. The difference between them is less than that between the foreground and background, possibly misleading the object queries to focus redundantly on the background. Thus, we propose a query-distribution (QD) loss to enforce clear boundaries between segmentation targets and other regions at the query level, improving the inlier segmentation and OOD indication. Our proposed framework is tested on two real-world segmentation tasks, i.e., segmentation of pancreatic and liver tumors, outperforming previous state-of-the-art algorithms by an average of 7.39% on AUROC, 14.69% on AUPR, and 13.79% on FPR95 for OOD localization. On the other hand, our framework improves the performance of inlier segmentation by an average of 5.27% DSC when compared with the leading baseline nnUNet.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 48 of its 68 references that are in the map. First posted on arXiv 1 Apr 2023.

Builds on

48 of 68 references.

References · 48

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2020End-to-End Object Detection with Transformerscited by 7,384
  5. 2016Layer Normalizationcited by 5,579
  6. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  7. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  8. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
  9. 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,335
  10. 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,284
  11. 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
  12. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
36 more
  1. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  2. 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,187
  3. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
  4. 2016Deep Networks with Stochastic Depthcited by 973
  5. 2021UNETR: Transformers for 3D Medical Image Segmentationcited by 954
  6. 2018Deep Anomaly Detection with Outlier Exposurecited by 939
  7. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  8. 2022Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Imagescited by 823
  9. 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 763
  10. 2021The Medical Segmentation Decathloncited by 620
  11. 2019UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentationcited by 583
  12. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  13. 2021Self-Supervised Pre-Training of Swin Transformers for 3D Medical Image Analysiscited by 418
  14. 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
  15. 2020MaX-DeepLab: End-to-End Panoptic Segmentation with Mask Transformerscited by 355
  16. 2018nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentationcited by 291
  17. 2018Learning Confidence for Out-of-Distribution Detection in Neural Networkscited by 245
  18. 2020A review of deep learning in medical imaging: Imaging traits, technology trends, case studies with progress highlights, and future promisescited by 230
  19. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
  20. 2020Contrastive Training for Improved Out-of-Distribution Detectioncited by 186
  21. 2021SegmentMeIfYouCan: A Benchmark for Anomaly Segmentationcited by 150
  22. 2019Detecting the Unexpected via Image Resynthesiscited by 137
  23. 2019A deep learning system for differential diagnosis of skin diseasescited by 118
  24. 2020Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentationcited by 96
  25. 2021Standardized Max Logits: A Simple yet Effective Approach for Identifying Unexpected Road Obstacles in Urban-Scene Segmentationcited by 77
  26. 2021Does Your Dermatology Classifier Know What It Doesn't Know? Detecting the Long-Tail of Unseen Conditionscited by 68
  27. 2022CMT-DeepLab: Clustering Mask Transformers for Panoptic Segmentationcited by 60
  28. 2021Constrained Contrastive Distribution Learning for Unsupervised Anomaly Detection and Localisation in Medical Imagescited by 45
  29. 2021Neural Mean Discrepancy for Efficient Out-of-Distribution Detectioncited by 42
  30. 2021Glance-and-Gaze Vision Transformercited by 42
  31. 20173D Anisotropic Hybrid Network: Transferring Convolutional Features from 2D Images to 3D Anisotropic Volumescited by 38
  32. 2020Detection and Retrieval of Out-of-Distribution Objects in Semantic Segmentationcited by 20
  33. 20203D Graph Anatomy Geometry-Integrated Network for Pancreatic Mass Segmentation, Diagnosis, and Quantitative Patient Managementcited by 19
  34. 2017H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumescited by 11
  35. 2022Region-Aware Metric Learning for Open World Semantic Segmentation via Meta-Channel Aggregationcited by 7
  36. 2018Self-Learning to Detect and Segment Cysts in Lung CT Images without Manual Annotationcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 7; 2025: 3; 2026: 2.

16 papers.

Sort:

By area:

  1. 2024Interactive Medical Image Segmentation: A Benchmark Dataset and Baselinecited by 30
  2. 2023ZePT: Zero-Shot Pan-Tumor Segmentation via Query-Disentangling and Self-Promptingcited by 15
  3. 2024Toward Multi-class Anomaly Detection: Exploring Class-aware Unified Model against Inter-class Interferencecited by 7
  4. 2024Unleashing the Potential of Vision-Language Pre-Training for 3D Zero-Shot Lesion Segmentation via Mask-Attribute Alignmentcited by 7
  5. 2023Cluster-Induced Mask Transformers for Effective Opportunistic Gastric Cancer Screening on Non-contrast CT Scanscited by 2
  6. 2024Quantifying uncertainty in lung cancer segmentation with foundation models applied to mixed-domain datasetscited by 2
  7. 2023Improved Prognostic Prediction of Pancreatic Cancer Using Multi-Phase CT by Integrating Neural Distance and Texture-Aware Transformercited by 1
  8. 2023Semi-supervised Medical Image Segmentation via Query Distribution Consistencycited by 1
  9. 2024MAProtoNet: A Multi-scale Attentive Interpretable Prototypical Part Network for 3D Magnetic Resonance Imaging Brain Tumor Classificationcited by 1
  10. 2024MorphoSeg: An Uncertainty-Aware Deep Learning Method for Biomedical Segmentation of Complex Cellular Morphologiescited by 1
  11. 2025Tumor-anchored deep feature random forests for out-of-distribution detection in lung cancer segmentationcited by 1
  12. 2024PAM: A Propagation-Based Model for Segmenting Any 3D Objects across Multi-Modal Medical Imagescited by 0
4 more
  1. 2025Mutual Evidential Deep Learning for Medical Image Segmentationcited by 0
  2. 2025Unleashing Diffusion and State Space Models for Medical Image Segmentationcited by 0
  3. 2026The Invisible Gorilla Effect in Out-of-distribution Detectioncited by 0
  4. 2026Reliable Neural Collapse Approximation for Open-World Test-Time Adaptationcited by 0