ProX-MAD: Aggregating Spatial Context into Representative Proxies for Few-shot Medical Anomaly Detection
Organizations: Machine Intelligence Laboratory, Dept. of Artificial Intelligence, University of Seoul, Korea
Abstract
Few-shot medical anomaly detection (MAD) has largely followed a dataset-specific "one-for-one" paradigm, leaving unified "one-for-many" modeling underexplored. Naively extending existing methods to this setting causes substantial performance degradation, especially at the pixel level. We attribute this to their detection mechanisms: a shared decision boundary becomes unreliable across heterogeneous lesion definitions, whereas a normal-only memory bank cannot adequately cover diverse normal distributions with few references. We propose ProX-MAD, a proxy-based framework that aggregates spatial context into compact, learnable, state-specific proxies for unified few-shot MAD. Its Masked Proxy Infusion Attention (MPIA) module cross-attends proxy tokens to reference patch features and applies proxy-wise masking to retain high-confidence correspondences, mitigating proxy collapse and encouraging diverse proxies that summarize both normal and abnormal references. Across six medical datasets, ProX-MAD exhibits only a marginal performance drop from one-for-one to one-for-many training. Despite being trained only once as a unified model, it also outperforms prior state-of-the-art methods on average even when they use their more favorable one-for-one protocol, demonstrating the practicality of unified multi-dataset MAD.
Figures & tables
| Dataset | Image-level | Pixel-level | |||||||||||
| MVFA [ 14 ] | MadCLIP [ 32 ] | ProX-MAD | MVFA [ 14 ] | MadCLIP [ 32 ] | ProX-MAD | ||||||||
| AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | ||
| 1 - shot | His | 70.21 ±9.4 | 68.78 ±2.7 | 69.13 ±7.7 | 68.4 ±1.2 | 71.43 ±4.8 | 67.88 ±3.3 | - | - | - | - | - | - |
| Chest | 64.74 ±9.2 | 97.21 ±0.9 | 68.49 ±7.1 | 97.53 ±0.8 | 68.45 ±12.0 | 97.55 ±1.2 | - | - | - | - | - | - | |
| OCT17 | 81.41 ±18.4 | 92.58 ±7.7 | 78.94 ±20.3 | 91.33 ±8.4 | 93.68 ±7.2 | 97.97 ±2.2 | - | - | - | - | - | - | |
| BrainMRI | 91.27 ±3.2 | 98.01 ±0.9 | 90.89 ±2.1 | 97.95 ±0.5 | 94.05 ±2.1 | 98.78 ±0.5 | 98.32 ±0.3 | 80 ±3.5 | 98.3 ±0.2 | 79.33 ±1.3 | 99.24 ±0.1 | 87.52 ±2.4 | |
| Dataset | Image-level | Pixel-level | |||||||||||
| MVFA [ 14 ] | MadCLIP [ 32 ] | ProX-MAD | MVFA [ 14 ] | MadCLIP [ 32 ] | ProX-MAD | ||||||||
| AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | ||
| 1 - shot | His | 69.79 ±6.8 | 70.65 ±4.6 | 71.24 ±8.5 | 70.43 ±4.3 | 70.16 ±6.7 | 65.09 ±6.3 | - | - | - | - | - | - |
| Chest | 62.75 ±14.7 | 96.83 ±1.8 | 60.79 ±16.2 | 96.73 ±1.6 | 68.1 ±10.8 | 97.75 ±0.9 | - | - | - | - | - | - | |
| OCT17 | 80.86 ±21.0 | 92.36 ±8.9 | 81.02 ±21.4 | 92.44 ±9.0 | 96.67 ±1.2 | 98.88 ±0.5 | - | - | - | - | - | - | |
| BrainMRI | 89.73 ±6.4 | 97.67 ±1.7 | 90.13 ±3.6 | 97.81 ±0.9 | 93.38 ±2.0 | 98.65 ±0.4 | 98.24 ±0.4 | 78.07 ±6.0 | 96.36 ±0.8 | 77.5 ±2.1 | 99.15 ±0.1 | 86.48 ±1.9 | |
| Method | 1-shot | 2-shot | 4-shot | |||||||||
| I-AUROC | I-AP | P-AUROC | P-AP | I-AUROC | I-AP | P-AUROC | P-AP | I-AUROC | I-AP | P-AUROC | P-AP | |
| Previous SoTA † | 80.17 | 88.03 | 98.37 | 69.96 | 86.24 | 91.23 | 98.75 | 76.33 | 88.62 | 90.81 | 99.04 | 82.75 |
| CLIP ViT-L/14-336 | 83.98 | 90.26 | 98.78 | 75.32 | 86.66 | 91.49 | 99.01 | 76.23 | 88.81 | 92.05 | 99.2 | 80.77 |
| DINOv2 B/14-R | 82.21 | 89.15 | 98.47 | 72.57 | 86.39 | 90.89 | 99.12 | 78.32 | 88.98 | 92.44 | 99.25 | 82.65 |
| DINOv3 B/16 | 83.84 | 89.67 | 98.36 | 71.72 | 85.85 | 91.18 | 98.98 | 77.51 | 89.03 | 92.84 | 99.16 | 82.77 |
| DINOv1 B/8 | 84.25 | 89.14 | 98.8 | 77.03 | 86.7 | 91.31 | 99.03 | 78.49 | 89.03 | 92.25 | 99.23 | 84.82 |
| Method | Chest CheXpert [ 15 ] | RESC OCTDL [ 19 ] | OCT17 OCTDL [ 19 ] | AVG | ||||
| I-AUROC | I-AP | I-AUROC | I-AP | I-AUROC | I-AP | I-AUROC | I-AP | |
| MVFA | 62.9 | 64.21 | 78.91 | 95.22 | 83.74 | 96.53 | 75.18 | 85.32 |
| MadCLIP | 65.94 | 66.1 | 73.88 | 93.09 | 79.3 | 94.73 | 73.04 | 84.64 |
| ProX-MAD (Ours) | 66.01 | 67.11 | 80.1 | 94.77 | 87.85 | 97.41 | 77.99 | 86.43 |
| Dataset | Category | Test Normal | Test Abnormal | Pixel Annotation |
| His | Lymph Node (Breast) | 1,003 | 994 | ✗ |
| Chest | Lung | 781 | 16,413 | ✗ |
| OCT17 | Retina | 242 | 726 | ✗ |
| BrainMRI | Brain | 640 | 3,075 | ✓ |
| Liver | Liver | 833 | 660 | ✓ |
| RESC | Retina | 1,041 | 764 | ✓ |
| Dataset | Image-level | Pixel-level | |||||||||||
| CLIP ViT-L/14-336 | DINOv2 B/14-R | DINOv3 B/16 | CLIP ViT-L/14-336 | DINOv2 B/14-R | DINOv3 B/16 | ||||||||
| AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | AUROC | AP | ||
| 1 - shot | His | 69.11 ±4.4 | 66.30 ±3.4 | 67.69 ±3.6 | 65.74 ±2.1 | 69.37 ±1.4 | 66.58 ±1.1 | - | - | - | - | - | - |
| Chest | 64.01 ±12.9 | 96.79 ±1.4 | 64.34 ±8.0 | 97.31 ±0.7 | 67.77 ±9.4 | 97.72 ±0.8 | - | - | - | - | - | - | |
| OCT17 | 95.94 ±2.7 | 98.70 ±0.9 | 95.79 ±6.5 | 98.62 ±2.1 | 97.55 ±2.6 | 99.25 ±0.8 | - | - | - | - | - | - | |
| BrainMRI | 93.24 ±1.4 | 98.62 ±0.3 | 87.56 ±0.7 | 97.19 ±0.1 | 90.44 ±0.7 | 97.91 ±0.2 | 98.98 ±0.2 | 84.26 ±2.2 | 98.46 ±0.3 | 77.30 ±3.0 | 98.35 ±0.2 | 76.90 ±1.9 | |
Few-Shot Anomaly Detection
Few-shot anomaly detection uses a small set of examples to identify and localize unusual patterns in new data or domains.
See all 47 papers