Quantized FCA: Efficient Zero-Shot Texture Anomaly Detection
Andrei-Timotei Ardelean, Patrick Rückbeil, Tim Weyrich
TL;DR
This work tackles zero-shot texture anomaly localization by exploiting internal texture statistics. It introduces QFCA, a quantized variant of FCA that represents patches as histograms over $N$ quantization levels and computes an anomaly map via a linear-time, GPU-accelerated transport inspired by the Wasserstein distance, achieving a 10x speedup with minimal accuracy loss. To further boost performance on complex textures, the authors add a PCA-based residual feature preprocessing, yielding QFCA+ that improves detection precision. Extensive experiments on MVTec AD textures, DTD-Synthetic, and WFT demonstrate real-time performance with competitive or state-of-the-art localization metrics. The work offers practical impact for industrial texture monitoring and provides open-source code for reproducibility.
Abstract
Zero-shot anomaly localization is a rising field in computer vision research, with important progress in recent years. This work focuses on the problem of detecting and localizing anomalies in textures, where anomalies can be defined as the regions that deviate from the overall statistics, violating the stationarity assumption. The main limitation of existing methods is their high running time, making them impractical for deployment in real-world scenarios, such as assembly line monitoring. We propose a real-time method, named QFCA, which implements a quantized version of the feature correspondence analysis (FCA) algorithm. By carefully adapting the patch statistics comparison to work on histograms of quantized values, we obtain a 10x speedup with little to no loss in accuracy. Moreover, we introduce a feature preprocessing step based on principal component analysis, which enhances the contrast between normal and anomalous features, improving the detection precision on complex textures. Our method is thoroughly evaluated against prior art, comparing favorably with existing methods. Project page: https://reality.tf.fau.de/pub/ardelean2025quantized.html
