Antithetic Flow-Matching Residuals for Multi-Class Anomaly Detection
Abstract
A generative model of normal images can find defects by restoring a noised test image and comparing it with the input. The accuracy of this approach heavily depends on two characteristics of the noise, its amount and its randomness. An optimum level is dependent on the defect. Moreover, an arbitrary choice of sampled noise introduces an error of its own. We present AFR (antithetic flow-matching residuals), which detects anomalies by observing the one-step x-predictions of a flow-matching diffusion transformer (DiT) trained on frozen DINOv2 features. At every noise level along the straight path between Gaussian noise and data, AFR averages the predictions of only one antithetic noise pair, and , as opposed to multiple random noise draws. This cancels the part of the prediction error that changes sign with the noise sample while costing only two independent samples. AFR then averages the residual over 10 noise levels and measures each feature channel in units of its normal error. This is done so that defects in precisely predicted channels are not drowned by the others. With one model per dataset and no category labels, AFR outperforms recent state-of-the-art multi-class anomaly detection methods on MVTec AD, VisA and BTAD, at 36 ms per image including the encoder. Code and models are available at https://github.com/Vshayan/Antithetic-Flow-Matching.
Create a lesson
Metadata
- Comments
- 20 pages, 7 figures, 11 tables. Code and models: https://github.com/Vshayan/Antithetic-Flow-Matching
Related papers
Revisiting Few-Shot Multimodal Anomaly Detection without Heuristic Pre- and Post-Processing
Shared title terminologycs.CVMoritz Aberle, Steven Landgraf, Markus Ulrich
Does Stronger CLIP Generalization Transfer to Zero-Shot Anomaly Detection?
Shared title terminologycs.CVJinwoo Jang, Jaehyuk Heo, Pilsung Kang
Different Threats Leave Different Traces: Conformal Multi-Expert Detection of Adversarial Attacks on Detection Transformers
Shared title terminologycs.CVAmirhossein Nazeri, Pierluigi Pisu
BEVVoting: Multi-View Voting for Weakly Supervised 3D Pedestrian Detection
Shared title terminologycs.CVRasho Ali, Max Mehltretter, Christian Heipke
SF-DST: Adapting Vision-Language Models for Anomaly Detection via Asymmetric Modulation and A-LoRA
Shared title terminologycs.CVZhipeng Wang, Xiaofei Li, Dong Zhao et al.
MARS: Segment Anything via Correspondence Matching
Shared title terminologycs.CVYufei Deng, Youmin Zhang, Junchao Yuan et al.