Skip to content
Preprint

ReFP-AD: Rectified Flow Preconditioning for Energy-Based Anomaly Detection

Aug 2026 · 0 citations · 61 references
Computer Science

TL;DR

ReFP-AD (Rectified Flow Preconditioning for Anomaly Detection), which learns a geometric reparameterization that maps high-dimensional embeddings into a well-conditioned latent space via an optimal transport (OT)-coupled rectified flow, enables stable persistent contrastive divergence with preconditioned Stochastic Gradient Langevin Dynamics in full-dimensional token spaces.

Abstract

Unified anomaly detection requires modeling highly heterogeneous normal data without access to anomalous samples. While foundation models like DINOv2 provide rich token representations, leveraging these spaces for explicit density estimation remains challenging. Energy-Based Models (EBMs) offer a principled formulation, but their training in high-dimensional token spaces is unstable due to anisotropy and strong cross-dimensional correlations, which degrades finite-step Markov Chain Monte Carlo (MCMC) sampling. We identify this instability as fundamentally geometric and introduce ReFP-AD (Rectified Flow Preconditioning for Anomaly Detection), which learns a geometric reparameterization that maps high-dimensional embeddings into a well-conditioned latent space via an optimal transport (OT)-coupled rectified flow. This preconditioning enables stable persistent contrastive divergence with preconditioned Stochastic Gradient Langevin Dynamics (SGLD) in full-dimensional token spaces. Anomaly scores are then derived from the learned energy landscape using gradient norms. Under a strict unified protocol on the MVTec-AD and VisA datasets, ReFP-AD achieves 98.6%/97.9% Image/Pixel AUROC on MVTec-AD and 97.3%/99.0% on VisA, outperforming prior unified EBM baselines by up to +10.8% in Image AUROC. Ablation experiments demonstrate that geometric reparameterization is critical for finite-step MCMC and accurate anomaly localization in high-dimensional token spaces. Code is available at https://github.com/CLendering/ReFP-AD

View source

Similar papers

Preprint Sep 2026

Covariant Contrastive Learning for Uncertainty-Aware Anomaly Detection

Machine-learning-based anomaly detection (AD) offers a promising, model-agnostic alternative to traditional LHC analyses, allowing to search for many signals at once. Recent advances in representation learning motivate the use of neural embeddings to map high-dimensional physics observables into low-dimensional latent...

Shelley Tong, Philip Harris, Gaia Grosso · 1 citation
Open access 2026

Prototype-Guided Diffusion Model for Multi-Class Unsupervised Anomaly Detection

Unsupervised Anomaly detection is important in industrial inspection and automation, where defects are rare, stochastic, and costly to annotate, while nominal data are abundant. Diffusion models have shown strong potential for unsupervised anomaly detection, where only normal data are available for training. However, s...

Jongmin Yu, Hyeontaek Oh, Zhong-Tian Sun et al. · 0 citations
Open access Aug 2026

AdaNMD: Nested Diffusion with Adaptive Resolution Decision for Efficient Industrial Anomaly Localization

Accurate anomalous localization is a core challenge in industrial visual quality inspection. Current diffusion-based methods typically rely on single-scale reconstruction at a fixed resolution, often exhibiting limited performance on subtle or low-contrast anomalies due to the lack of hierarchical feature collaboration...

Tao Yan, Ting Wang, Peng-Fei Qin · 0 citations
#machine learning Preprint Oct 2026

Mitigating Convergence Collapse in Fixed-Target Anomaly Detectors via Kernel-Anchored Locality Regularization

A family of tabular anomaly detectors trains a neural map toward a fixed target under squared-error loss and scores anomalies by the test-time residual; contraction matching, one-step rectified flow, and reconstruction autoencoders all fit this template. We characterize a convergence collapse: better optimization makes...

José Lucas De Melo Costa, Fabrice Popineau, Arpad Rimmel et al. · 0 citations
#machine learning Preprint Sep 2026

Post-Anomaly Detection Inference for Deep SVDD

Deep Support Vector Data Description (Deep SVDD) has become a prominent framework for unsupervised anomaly detection by learning latent representations that compactly characterize normal data around a center. Despite its empirical success, anomaly decisions produced by Deep SVDD are typically made solely based on anoma...

Cao Le Cong Thanh, Vinh Quang Dang, Vo Nguyen Le Duy · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.