Training-Free Zero-Shot Anomaly Detection in 3D Brain MRI with 2D Foundation Models
Organizations: Department of Mathematics, Chungnam National University, South Korea
Abstract
Zero-shot anomaly detection (ZSAD) has gained increasing attention in medical imaging as a way to identify abnormalities without task-specific supervision, but most advances remain limited to 2D datasets. Extending ZSAD to 3D medical images has proven challenging, with existing methods relying on slice-wise features and vision-language models, which fail to capture volumetric structure. In this paper, we introduce a fully training-free framework for ZSAD in 3D brain MRI that constructs localized volumetric tokens by aggregating multi-axis slices processed by 2D foundation models. These 3D patch tokens restore cubic spatial context and integrate directly with distance-based, batch-level anomaly detection pipelines. The framework provides compact 3D representations that are practical to compute on standard GPUs and require no fine-tuning, prompts, or supervision. Our results show that training-free, batch-based ZSAD can be effectively extended from 2D encoders to full 3D MRI volumes, offering a simple and robust approach for volumetric anomaly detection.
Figures & tables
| Method | Training Source | Patient-level | Voxel-level | ||||
| AUROC | AP | AUROC | AP | Dice | IoU | ||
| Zero-shot Methods (No medical training) | |||||||
| CoDeGraph3D | — | 96.9 | 92.7 | 92.2 | 49.1 | 41.3 | 31.6 |
| WinCLIP | — | 23.2 | 24.5 | 84.9 | 5.8 | 8.1 | 4.4 |
| AnomalyCLIP | Industrial | 36.4 | 28.6 | 91.2 | 11.8 | 14.1 | 8.4 |
| APRIL-GAN | Industrial | 3.5 | 21.2 | 90.0 | 8.7 | 12.7 | 7.3 |
| Method | Training Source | Patient-level | Voxel-level | ||||
| AUROC | AP | AUROC | AP | Dice | IoU | ||
| Zero-shot Methods (No medical training) | |||||||
| CoDeGraph3D | — | 97.5 | 94.1 | 90.2 | 33.8 | 29.5 | 20.8 |
| WinCLIP | — | 34.6 | 38.1 | 70.0 | 2.6 | 4.4 | 2.3 |
| AnomalyCLIP | Industrial | 75.1 | 66.7 | 84.4 | 6.6 | 7.7 | 4.2 |
| APRIL-GAN | Industrial | 19.1 | 26.5 | 79.2 | 3.8 | 6.4 | 3.4 |
| Number of Chunks | Batch Size ( ) | Patient AUROC | Dice |
| 1 (Full Batch) | 180 | 96.9 | 41.3 |
| 2 | 90 | 96.7 | 40.8 |
| 4 | 45 | 96.4 | 40.0 |
| 6 | 30 | 96.0 | 39.8 |
| 12 | 15 | 95.2 | 37.5 |
| Method | BraTS-2021 GLI (Tumor) | ATLAS R2.0 (Stroke) | ||||||
| P-AUROC | P-AP | V-AP | Dice | P-AUROC | P-AP | V-AP | Dice | |
| CoDeGraph3D | 99.4 | 98.9 | 51.6 | 61.0 | 87.2 | 72.6 | 34.4 | 31.6 |
| AnomalyCLIP | 68.1 | 57.4 | 17.1 | 22.5 | 53.7 | 47.2 | 4.1 | 4.8 |
| APRIL-GAN | 26.4 | 31.1 | 13.6 | 18.8 | 17.9 | 23.4 | 4.0 | 6.0 |
| DAE | 99.2 | 98.5 | 40.7 | 49.1 | 98.5 | 93.9 | 9.6 | 13.1 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | Patient AUROC (%) | Dice (%) |
| CLIP | 95.5 | 36.6 |
| DINOv2 | 96.9 | 41.3 |
| Batch Size | Extraction | Scoring | Total Time | Avg Time | Peak VRAM |
| ( ) | (s) | (s) | (s) | (s / vol) | (GB) |
| 30 | 84.9 | 14.2 | 99.1 | 3.30 | 7.16 |
| 60 | 169.5 | 37.6 | 207.1 | 3.45 | 7.16 |
| 90 | 254.4 | 73.8 | 328.1 | 3.65 | 7.69 |
| 120 | 339.2 | 111.6 | 450.9 | 3.76 | 7.86 |
| 150 | 423.2 | 150.4 | 573.5 | 3.82 | 8.72 |
| Setting | AnomalyCLIP | APRIL-GAN |
| Backbone | ViT-L-14-336 | ViT-L-14-336 |
| Input size | ||
| Batch size | 8 | 8 |
| Epochs | 15 | 15 |
| Learning rate | 0.001 | 0.001 |
| Feature layers | [24] | [6, 12, 18, 24] |
| Dataset | AUROC | AP |
| BraTS-2025 METS (T1w) | 86.9 | 78.7 |
| BraTS-2025 METS (T2w) | 58.4 | 42.8 |
| BraTS-2021 GLI (T2w) | 75.4 | 68.8 |
| ATLAS R2.0 (T1w) | 62.5 | 51.5 |
| Setting | Value |
| Input crop size | |
| Voxel spacing | isotropic |
| Z-normalization | Yes |
| Noise level | Gaussian, |
| Noise resolution | |
| Epochs | 100 |
Medical Image Anomaly Detection
Medical image anomaly detection finds and localizes unusual anatomy or pathology in scans, often when labeled disease examples are scarce.
See all 87 papers