Search arXiv⌕ Search

arXiv · 2612.01546

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Shayan Shashaani, Marco Tasca, Jawad Tayyub. 2026-12-01. Antithetic Flow-Matching Residuals for Multi-Class Anomaly Detection. https://searcharxiv.org/abs/2612.01546

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

IB-AdCSCNet:Adaptive Convolutional Sparse Coding Network Driven by Information Bottleneck

In the realm of neural network models, the perpetual challenge remains in retaining task-relevant information while effectively discarding redundant data during propagation. In this paper, we introduce IB-AdCSCNet, a deep learning model grounded in information bottleneck theory. IB-AdCSCNet seamlessly integrates the information bottleneck trade-off strategy into deep networks by dynamically adjusting the trade-off hyperparameter $λ$ through gradient descent, updating it within the FISTA(Fast Iterative Shrinkage-Thresholding Algorithm ) framework. By optimizing the compressive excitation loss function induced by the information bottleneck principle, IB-AdCSCNet achieves an optimal balance between compression and fitting at a global level, approximating the globally optimal representation feature. This information bottleneck trade-off strategy driven by downstream tasks not only helps to learn effective features of the data, but also improves the generalization of the model. This study's contribution lies in presenting a model with consistent performance and offering a fresh perspective on merging deep learning with sparse representation theory, grounded in the information bottleneck concept. Experimental results on CIFAR-10 and CIFAR-100 datasets demonstrate that IB-AdCSCNet not only matches the performance of deep residual convolutional networks but also outperforms them when handling corrupted data. Through the inference of the IB trade-off, the model's robustness is notably enhanced.

cs.CV↗

Superpixel Segmentation: A Long-Lasting Ill-Posed Problem

For many years, image over-segmentation into superpixels has been essential to computer vision pipelines, by creating homogeneous and identifiable regions of similar sizes. Such constrained segmentation problem would require a clear definition and specific evaluation criteria. However, the validation framework for superpixel methods, typically viewed as standard object segmentation, has rarely been thoroughly studied. In this work, we first take a step back to show that superpixel segmentation is fundamentally an ill-posed problem, due to the implicit regularity constraint on the shape and size of superpixels. We also demonstrate through a novel comprehensive study that the literature suffers from only evaluating certain aspects, sometimes incorrectly and with inappropriate metrics. Concurrently, recent deep learning-based superpixel methods mainly focus on the object segmentation task at the expense of regularity. In this ill-posed context, we show that we can achieve competitive results using a recent architecture like the Segment Anything Model (SAM), without dedicated training for the superpixel segmentation task. This leads to rethinking superpixel segmentation and the necessary properties depending on the targeted downstream task.

cs.CV↗

Geometric Prior-Guided Neural Implicit Surface Reconstruction in the Wild

Neural implicit surface reconstruction using volume rendering techniques has recently achieved significant advancements in creating high-fidelity surfaces from multiple 2D images. However, current methods primarily target scenes with consistent illumination and struggle to accurately reconstruct 3D geometry in uncontrolled environments with transient occlusions or varying appearances. While some neural radiance field (NeRF)-based variants can better manage photometric variations and transient objects in complex scenes, they are designed for novel view synthesis and lack the surface constraints needed for precise surface reconstruction. To overcome this limitation, we introduce a novel approach that applies multiple geometric constraints to the implicit surface optimization process, enabling more accurate reconstructions from unconstrained image collections. First, we utilize sparse 3D points from structure-from-motion (SfM) to refine the signed distance function estimation for the reconstructed surface, with a displacement compensation to accommodate noise in the sparse points. Additionally, we employ robust normal priors derived from a normal predictor, filtered using edge detection and a reprojection consistency check, to improve alignment with the actual surface geometry. Experiments show that our method achieves the best average performance among the compared methods on the Heritage-Recon benchmark of internet photo collections and performs comparably to the strongest baselines on two standard multi-view datasets. Our approach enables high-quality 3D reconstruction of landmarks and objects, making it applicable to diverse scenarios such as digital preservation of cultural heritage sites and 3D object modeling.

cs.CV↗