potentialpaper

Flow Mismatching: Unsupervised Anomaly Detection via Velocity Discrepancies in Flow Matching Models

Shengzhe Chen, Mehrdad Moradi, Kamran Paynabar, Hao Yan

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Anomalies occur at places where the learned normal flow disagrees with the geometric path toward a test image. This signal can be well used for anomaly detection.

Abstract. We propose Flow Mismatching, an unsupervised anomaly detection method that deliberately avoids reconstruction-based paradigms. Instead, we treat flow matching as geometric dynamics and leverage a key insight: anomalies occur at places where the learned normal flow disagrees with the geometric path toward a test image.

Given a flow matching model trained only on normal images, we probe its learned velocity field along affine paths from Gaussian noise to a target image. Along each path, we compare the model-predicted velocity, which follows normal generative dynamics, with the geometric velocity toward the target, which includes any anomalous content. Anomalies induce strong local disagreement between these velocities. Aggregating the mismatch over different time steps and multiple paths yields pixel-wise heatmaps and image-level scores without test-time optimization, feature memories, or additional calibration.

Our analysis shows that the population mismatch decomposes into an irreducible denoising term and a Fisher-divergence term between the test-path and normal-path score functions, which identifies the score-gap component that drives anomaly separation and explains the effectiveness of robust path aggregation. Extensive experiments on MVTec-AD and VisA demonstrate competitive performance compared with established reconstruction-based and recent flow matching-based approaches.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Rather than detecting anomalies through reconstruction errors or pretrained semantic features, this paper introduces a new approach called Flow Mismatching, which identifies anomalies by measuring the mismatch between a learned normal flow field and the geometric flow toward a test image. While there have been flow matching-based methods for AD, reviewers find the proposed perspective novel, and well supported by both theory and experiments on two popular industrial AD datasets MVTecAD and VisA. They also appreciate the simplicity of the inference procedure, the strong localization performance, and the flexible accuracy–efficiency trade-off. With one Accept, one Borderline Accept, and one Borderline Reject, the overall sentiment is positive. However, some main concerns are raised over both theoretical and empirical justification.

The reviewers note that the theoretical justification could be better aligned with the practical setting. In particular, the main analysis assumes that the learned velocity field closely approximates the oracle field, yet this assumption is not validated on anomalous, off-manifold inputs where the anomaly signal arises. In the rebuttal, the authors are encouraged to provide additional empirical evidence supporting this assumption and clarify the connection between the theoretical analysis and the observed detection behavior.

To deliver more convincing experimental evaluation, the comparisons should be expanded to include stronger recent feature-based anomaly detection methods (such as those using DINO or CLIP features), additional AD datasets (such as more realistic AD datasets on industrial defects and medical tumors/lesions), and evaluations at higher image resolutions. Reporting result variance under independent runs, clarifying the fairness of baseline settings, and providing more comprehensive efficiency measurements would further strengthen the empirical claims.

Finally, the reviewers also encourage a deeper discussion of the scope and limitations of the proposed framework. In particular, further analyses of failure cases, the impact of different aggregation strategies and weighting schemes, and the potential extension of the velocity-mismatch principle to pretrained feature spaces would help better establish the method’s applicability and practical value.

Final justification

The authors provided a strong rebuttal, convincing two reviewers to increase their ratings. As a result, the overall ratings increase from "one accept, one borderline accept, and one borderline reject" to "two accepts and one borderline accept". One concern raised during reviewers-AC discussion is that the rebuttals may have exceeded the maximum permitted length of 10,000 characters per review. Besides, as a conventional deep AD method, the method shows impressive detection performance, but it is weak, or not preferable, when compared to recent methods built upon large pre-trained models.

Overall, the work provides a valuable addition for flow matching/reconstruction-based approaches for anomaly detection and is recommended for acceptance to NeurIPS 2026. In the camera-ready version, the authors should properly incorporate the promised changes to assure the paper quality.

Area Chair paah · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Rather than detecting anomalies through reconstruction errors or pretrained semantic features, this paper introduces a new approach called Flow Mismatching, which identifies anomalies by measuring the mismatch between a learned normal flow field and the geometric flow toward a test image. While there have been flow matching-based methods for AD, reviewers find the proposed perspective novel, and well supported by both theory and experiments on two popular industrial AD datasets MVTecAD and VisA. They also appreciate the simplicity of the inference procedure, the strong localization performance, and the flexible accuracy–efficiency trade-off. With one Accept, one Borderline Accept, and one Borderline Reject, the overall sentiment is positive. However, some main concerns are raised over both theoretical and empirical justification.

The reviewers note that the theoretical justification could be better aligned with the practical setting. In particular, the main analysis assumes that the learned velocity field closely approximates the oracle field, yet this assumption is not validated on anomalous, off-manifold inputs where the anomaly signal arises. In the rebuttal, the authors are encouraged to provide additional empirical evidence supporting this assumption and clarify the connection between the theoretical analysis and the observed detection behavior.

To deliver more convincing experimental evaluation, the comparisons should be expanded to include stronger recent feature-based anomaly detection methods (such as those using DINO or CLIP features), additional AD datasets (such as more realistic AD datasets on industrial defects and medical tumors/lesions), and evaluations at higher image resolutions. Reporting result variance under independent runs, clarifying the fairness of baseline settings, and providing more comprehensive efficiency measurements would further strengthen the empirical claims.

Finally, the reviewers also encourage a deeper discussion of the scope and limitations of the proposed framework. In particular, further analyses of failure cases, the impact of different aggregation strategies and weighting schemes, and the potential extension of the velocity-mismatch principle to pretrained feature spaces would help better establish the method’s applicability and practical value.

Final justification

The authors provided a strong rebuttal, convincing two reviewers to increase their ratings. As a result, the overall ratings increase from "one accept, one borderline accept, and one borderline reject" to "two accepts and one borderline accept". One concern raised during reviewers-AC discussion is that the rebuttals may have exceeded the maximum permitted length of 10,000 characters per review. Besides, as a conventional deep AD method, the method shows impressive detection performance, but it is weak, or not preferable, when compared to recent methods built upon large pre-trained models.

Overall, the work provides a valuable addition for flow matching/reconstruction-based approaches for anomaly detection and is recommended for acceptance to NeurIPS 2026. In the camera-ready version, the authors should properly incorporate the promised changes to assure the paper quality.

1 comment
Authors · CommentOpenReview ↗

Dear AC,

Thank you for the careful meta-review. We also thank the reviewers for their constructive questions and recognition of Flow Mismatching’s novelty, simple inference, strong localization, and accuracy–efficiency trade-off. Their feedback prompted substantial new analyses.

Theory–practice alignment. We agree that the submitted oracle theorem did not justify replacing vpv_p by learned vθv_\theta on anomalous, off-manifold paths. We now derive an exact learned-field extension. Let eθ=vθ−vpe_\theta=v_\theta-v_p. Under the regularity, measurability, and square-integrability assumptions, t2Eq∣∣vθ−g∣∣2=t2/(1−t)2Dq(t)+Eqt∣∣(1−t)(sqt−spt)−teθ∣∣2.t^2 E_q||v_\theta-g||^2 = t^2/(1-t)^2 D_q(t) + E_{q_t}||(1-t)(s_{q_t}-s_{p_t})-t e_\theta||^2. This identity neither substitutes vpv_p for vθv_\theta nor assumes small off-manifold error or favorable interaction. Setting eθ=0e_\theta=0 recovers the submitted denoising-plus-Fisher theorem, including (1−t)2J(qt∣∣pt)(1-t)^2 J(q_t||p_t). Expanding gives Lt=Ot+At+CtL_t=O_t+A_t+C_t: the original oracle mismatch OtO_t, error energy At=t2E∣∣eθ∣∣2A_t=t^2 E||e_\theta||^2, and signed interaction Ct=−2t(1−t)E[(sqt−spt)⋅eθ]C_t=-2t(1-t)E[(s_{q_t}-s_{p_t})·e_\theta], which may amplify or cancel the signal.

For a fixed test target, conditioning removes target-side denoising uncertainty. After time/path averaging, Ly=Oy+Ay+CyL_y=O_y+A_y+C_y and ∣Cy∣<=2OyAy|C_y|<=2\sqrt{O_y A_y}, hence (Oy−Ay)+2<=Ly<=(Oy+Ay)2(\sqrt{O_y}-\sqrt{A_y})_+^2 <= L_y <= (\sqrt{O_y}+\sqrt{A_y})^2. Error is explicitly charged against oracle mismatch: if it dominates, the lower bound becomes zero and makes no claim; if oracle separation remains larger, anomaly–normal ordering can survive adverse cancellation. Exact-oracle studies with five learned networks support this: A/O grows from 5e-5 near normal data to 0.23–0.44 far off-manifold, and interaction has both signs. Nevertheless, the learned AUCs are approximately 1.000, which means anomaly scoring and separation still survive. This replaces the implicit approximation with an exact error-aware statement. Since vpv_p is unavailable on real images, it remains a controlled mechanistic evidence, not a deployable certificate.

Empirical support and fairness. We added Dinomaly, INP-Former, and concurrent Dinomaly2-L. They outperform our pixel model, especially on pixel metrics, so we narrow our claim: our method is competitive with established reconstruction baselines but trails the strongest pretrained-feature methods. Its contribution is a distinct velocity-disagreement signal without a pretrained extractor, rather than a new accuracy ceiling.

We added MPDD and VAD. Ours obtains 97.1 image AUROC/98.2 AP on MPDD and 89.9 AUROC/47.6 FPR@95TPR on VAD; on VAD it improves PatchCore by 1.6 AUROC and 12.8 FPR points. This broadens evaluation beyond MVTec-AD/VisA.

At 256x256, resized-heatmap and native models retain strong results: MVTec image/pixel AUROC is 98.75/97.34 and 98.40/97.51; VisA is 97.89/97.59 and 98.17/96.65. Across 15 inference seeds with a fixed checkpoint, standard deviations are at most 0.14 points.

We clarified that Table 1 baselines are published results at native 224/256 settings, not 128-resolution reruns. We also restored WT-Flow's intended frozen WRN features with a matched-capacity flow network. It improves from 85.00 to 95.19 image AUROC and 70.20 to 89.95 AUPRO, ours remains higher on all seven metrics (98.70 AUROC, 91.90 AUPRO). Native-256 reporting now covers parameters, GFLOPs, peak memory, forward throughput, and complete-scoring throughput.

Scope, failures, and extensions. Our clearest failure mode is large semantic/object-level anomalies: locally normal interiors may receive weak mismatch despite global inconsistency. In an exact Bayes toy holding pixels, affine path, noise, weighting, and scoring fixed, a local predictor obtains 4.69% total/0% interior recall on a 32x32 anomaly; the full-context oracle obtains 100%/100%. Thus the path can support full coverage, and insufficient global modeling is a plausible mechanism.

We evaluated average, q30/q20/q10, and minimum aggregation. Versus average, minimum raises image/pixel TPR by 8.44/8.95 points on MVTec and 2.33/3.76 on VisA at fixed FPR, including on the smallest-defect quartile, while roughly halving FPR at 95% TPR. Lower quantiles interpolate smoothly. Uniform through quartic time weights were also tested; t^2 gives the best overall cross-dataset balance.

Finally, we extended velocity mismatch in frozen DINOv2 feature space. It reaches 97.30 image AUROC/94.51 AUPRO on MVTec and 95.80/93.91 on VisA, showing that the principle is representation-agnostic and spatially localizable, while exposing category gaps and added compute. We would continue to explore its applicability on feature space based on this very preliminary implementation results.

Overall, the rebuttal replaces the questionable approximation with exact error-aware theory, strengthens the evaluation, and makes the method's scope explicit. We hope this resolves the main concerns.

Reviewer 8aWvOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Flow Mismatching, a novel anomaly detection method, which works with a multi-category setting where one model is trained per dataset. The proposed method does not use feature extractors, such as WideResNet, operating with pixel values directly. Instead of detecting anomalies as errors in reconstruction, it learns how normal process of flow matching should look like and detects deviations from it. The proposed method is tested on two popular industrial datasets in comparison with several SOTA reconstruction-based models and several flow matching based models.

Strengths and weaknesses

Strengths:

  1. The paper presents a novel method for industrial anomaly detection that operates outside of the traditional reconstruction-based paradigm. Velocity discrepancy between a model trained on normal data and new input is an interesting way to detect anomalies in industrial images.
  2. Most of the modern anomaly detection methods use a pretrained feature extractor, WideResNet or ViT [1, 2]. Avoiding this, as in the proposed method, might potentially yield better results on industrial datasets with real-world defects.
  3. The paper is easy to follow, and the theoretical explanations are well-paced and informative. Experiment descriptions and implementation details for the proposed method and other methods are sufficient.

Weaknesses:

  1. The comparison to reconstruction-based anomaly detection methods in Table 1 lacks at least two recent SOTA methods with official implementation available, such as Dinomaly [1] and INP-Former [2]. Both methods report better results than the proposed method, showing that the traditional reconstruction-based paradigm can be successful as well.
  2. Two datasets used in the paper, MVTecAD and VisA, are almost solved (especially if Dinomaly and INP-Former are included in the comparison). Also, both of them use objects with defects created in laboratory settings, which limits performance evaluation and may prioritize methods with pretrained feature extractors.
  3. In Table 2, all flow matching methods aside from WT-Flow come from different fields, such as time series anomaly detection or medical images, which brings a natural disadvantage to the industrial datasets used in this paper. WT-Flow was originally designed for industrial datasets, similar to the proposed method, so this comparison is most important. Unfortunately, the original WT-Flow uses WideResNet as a feature extractor and performs quite poorly without it in the evaluation settings used in this paper.

[1] Jia Guo, Shuai Lu, Weihang Zhang, and Huiqi Li. Dinomaly: The less is more philosophy in multi-class unsupervised anomaly detection. CVPR 2025.

[2] Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang, Jianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu. Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detection. CVPR 2025.

Questions
  1. It would be beneficial to include Dinomaly and INP-former for a more complete comparison with existing SOTA methods in Table 1, as explained in Weaknesses 1.
  2. I would suggest adding two more datasets to the evaluation, VAD [3] and MPDD [4]. Both of these datasets are less solved than MVTecAD and VisA. They also have real-world defects, which can be interesting for the evaluation of the proposed method, which does not use a pretrained feature extractor. More details are explained in Strengths 2 and Weaknesses 2.
  3. Adding WT-Flow with the WideResNet feature extractor as in the original WT-Flow paper (lines 696-698) might provide a more fair comparison. The method was created to work in lower dimensions, so it underperforms with pixel-level data.

[3] Aimira Baitieva, David Hurych, Victor Besnier, and Olivier Bernard. Supervised Anomaly Detection for Complex Industrial Images. CVPR 2024.

[4] Stepan Jezek, Martin Jonak, Radim Burget, Pavel Dvorak, and Milos Skotak. Deep learning-based defect detection of metal parts: evaluating current methods in complex conditions. ICUMT 2021.

Limitations

Yes

Final justification

I thank the authors for the extensive explanations and experiments. All my concerns were resolved. A comparison with recent SOTA methods was added. The proposed method performs the same as or better than feature-extractor-based methods on datasets that differ from those used originally. It also outperforms WT-Flow even with its original architecture. Trying the DINOv2 feature extractor shows potential for the applicability of the proposed method in the feature space. Based on this, I will raise my score.

Formatting concerns

None

2 comments
Authors · CommentOpenReview ↗

Response to Q1: Recent reconstruction-based SOTAs

Thank you for identifying this omission. We agree that Dinomaly [1] and INP-Former [2] are important recent reconstruction-based methods, and have added both to Table 1. For completeness, we also include Dinomaly2, a stronger concurrent extension with official preview code. Values are paper-reported results.

MVTec-AD I-ROC I-AP I-F1 P-ROC P-AP P-F1 PRO
Dinomaly 99.6 99.8 99.0 98.4 69.3 69.2 94.8
INP-Former 99.7 99.9 99.2 98.5 71.0 69.7 94.9
Dinomaly2-L [preprint] 99.9 100.0 99.5 98.6 70.3 69.9 95.1
Ours 98.7 99.5 97.7 97.7 67.5 64.8 91.9
VisA I-ROC I-AP I-F1 P-ROC P-AP P-F1 PRO
Dinomaly 98.7 98.9 96.2 98.7 53.2 55.7 94.5
INP-Former 98.9 99.0 96.6 98.9 51.2 54.7 94.4
Dinomaly2-L [preprint] 99.3 99.4 97.2 99.2 54.7 57.1 95.4
Ours 98.0 98.4 95.2 97.5 40.2 45.8 90.6

The updated comparison shows that the strongest recent pretrained feature-reconstruction methods achieve higher benchmark accuracy. We will replace the wording that our method "matches or surpasses SOTA reconstruction-based methods" with the more precise statement that it is competitive with several established reconstruction baselines while trailing these recent methods.

The settings also differ materially: these methods reconstruct features from large-scale pretrained DINOv2 ViT-B/L encoders and use 448-resize/392-crop inputs, whereas our submitted model is trained from scratch using only target-dataset normal images, operates on 128x128 RGB, and uses neither a pretrained feature extractor nor a reconstruction decoder. This difference does not negate their stronger results; it clarifies that our contribution is a distinct inference-time signal - velocity disagreement - together with its theoretical explanation and tunable test-time compute. We will revise the manuscript to make this narrower positioning explicit.

Response to Q2: Additional-dataset validation

Thank you for this valuable suggestion. We conducted additional experiments on MPDD [4] and VAD [3]. Our method follows the unsupervised setting: only normal images are used for training, while labels and masks are used exclusively for evaluation.

MPDD results

Method I-ROC I-AP I-F1 P-ROC P-AP P-F1 PRO
RD4AD 90.3 92.8 90.5 98.3 39.6 40.6 95.2
SimpleNet 90.6 94.1 89.7 97.1 33.6 35.7 90.0
DeSTSeg 92.6 91.8 92.8 90.8 30.6 32.9 78.3
ReContrast 90.9 94.5 91.0 98.8 46.8 48.9 95.6
MambaAD 89.2 93.1 90.3 97.7 33.5 38.6 92.8
GLAD 97.5 97.1 96.8 98.0 40.9 41.5 93.0
Dinomaly 97.2 98.4 96.0 99.1 59.5 59.4 96.6
Ours 97.1 98.2 95.9 94.3 34.8 37.1 81.0

Our method reaches 97.1/98.2/95.9 in image ROC/AP/F1 and 94.3/34.8/37.1/81.0 in pixel ROC/AP/F1/PRO. Without a pretrained extractor, it exceeds RD4AD, SimpleNet, DeSTSeg, ReContrast, and MambaAD in image-level AUROC; it also exceeds DeSTSeg on all seven metrics and SimpleNet in image performance and pixel AP/F1. GLAD and Dinomaly remain stronger overall, yet our 97.1 I-AUROC is still very competitive.

VAD results

Method I-AUROC ↑\uparrow FPR@95TPR ↓\downarrow
FastFlow 79.1 76.2
RD4AD 84.5 65.8
PatchCore 88.3 60.4
EfficientAD 89.1 44.5
PatchCore + SegAD 89.7 58.8
All AD + SegAD 90.4 52.4
Ours 89.9 47.6

Our method obtains 89.9 AUROC and 47.6 FPR@95TPR. Versus PatchCore, this is +1.6 AUROC and -12.8 FPR points. It exceeds EfficientAD by 0.8 AUROC, while EfficientAD retains a 3.1-point FPR advantage. Against the stronger multi-detector SegAD ensemble, ours is 0.5 AUROC lower but improves FPR by 4.8 points, without requiring multiple anomaly detectors or a pretrained extractor.

Although current VAD files include pixel masks, they were released after the original paper and most published baselines report only image AUROC and FPR@95TPR. We therefore follow the original image-level protocol for direct comparability. We have added both datasets, implementation details, quantitative results, and discussion to the manuscript, and revised the text to acknowledge the remaining gap to recent pretrained-feature methods.

Authors · CommentOpenReview ↗

Response to Q3: Comparison with WTFlow with WRN feature extractor.

Thank you for this important suggestion. We agree that our previous WT-Flow result was disadvantaged by applying a method designed for low-dimensional pretrained features directly to RGB pixels. We have therefore added a new WT-Flow + WRN (matched-backbone) experiment on MVTec-AD and will replace/augment the previous image-domain WT-Flow row in Table 2.

Implementation and fairness.

We started from the WT-Flow paper and official implementation, including its 768-base-channel mini-U-Net reference, and reproduced the WT-specific pipeline: a frozen ImageNet-pretrained WideResNet-50-2, the third residual-stage feature, 3×33\times3/stride-2 average pooling, and a fixed non-learnable per-sample LayerNorm. Images use ImageNet normalization, Lanczos resizing, and no augmentation. As in WT-Flow, we train one unconditional model per category. For a WRN feature ff, the WT-mapped feature f~=LN(f)\tilde f=\mathrm{LN}(f) follows the reverse rectified path

xt=(1−t)f~+tϵ,ϵ∼N(0,I),x_t=(1-t)\tilde f+t\epsilon,\qquad \epsilon\sim\mathcal N(0,I),

with target velocity ϵ−f~\epsilon-\tilde f. We use AdamW (learning rate 2×10−42\times10^{-4}, weight decay 0.10.1), StepLR (step 20, γ=0.1\gamma=0.1), 100 epochs, and global batch size 8.

To isolate the WT-Flow mechanism from flow-network capacity, the reported controlled row replaces only the official 768-width velocity mini-U-Net with the same residual-attention, time-conditioned UnetAttn design used by our method. Its input/output projections are changed to the WRN feature channels and its depth is adapted to the 16×1616\times16 feature grid; class conditioning is disabled because WT-Flow trains per category. All feature extraction, WT mapping, objective, and scoring remain WT-Flow's. We will label this row explicitly rather than claim it as an exact reproduction of the original WT-768 architecture.

At inference, Euler integration uses 20 steps for image detection and 1 step for localization. Image scores average the largest 3% of the detection map. We evaluate the final checkpoint and use exactly the same seven-metric evaluator as our method: image AUROC/AP/F1-max and pixel AUROC/AP/F1-max/AUPRO.

Whole-dataset comparison on MVTec-AD (%, class mean):

Method I-AUROC I-AP I-F1 P-AUROC P-AP P-F1 AUPRO
Previous image-domain WT-Flow 85.00 92.30 90.70 85.40 46.50 50.60 70.20
WT-Flow + WRN (matched backbone) 95.19 98.09 96.22 97.53 49.37 53.66 89.95
Ours 98.70 99.50 97.70 97.70 67.50 64.80 91.90

Restoring the intended WRN feature space improves WT-Flow by +10.19 image-AUROC, +12.13 pixel-AUROC, and +19.75 AUPRO points, confirming your concern. Nevertheless, our method remains better on all seven metrics, with particularly clear gains in pixel AP (+18.13) and pixel F1 (+11.14).

Per-class WT-Flow + WRN results (%):

Class I-AUROC I-AP I-F1 P-AUROC P-AP P-F1 AUPRO
bottle 99.60 99.87 99.21 97.85 68.39 66.74 91.79
cable 97.99 98.86 95.08 97.01 56.06 60.19 87.46
capsule 95.01 98.93 94.93 98.46 38.70 45.59 91.26
carpet 99.52 99.85 98.31 98.73 52.55 56.28 94.20
grid 96.49 98.88 95.58 97.49 21.98 30.27 88.01
hazelnut 99.96 99.98 99.29 98.43 49.92 56.54 92.58
leather 100.00 100.00 100.00 98.77 29.37 33.65 94.54
metal_nut 98.83 99.73 97.85 97.57 80.55 81.08 88.07
pill 93.10 98.73 93.96 97.88 68.46 66.85 92.06
screw 57.31 80.37 85.30 96.93 11.59 19.64 87.96
tile 99.93 99.97 99.41 95.85 52.65 61.39 87.01
toothbrush 92.78 97.47 90.63 98.62 55.40 60.50 84.38
transistor 99.25 99.22 98.73 97.69 61.81 64.36 90.50
wood 99.30 99.79 97.48 93.44 39.25 45.67 87.41
zipper 98.77 99.67 97.48 98.19 53.93 56.12 92.08

The feature-domain WT-Flow is strong and stable in pixel AUROC, but its pixel AP/F1 remains weaker, especially for sparse defects such as screw and grid. This indicates that WRN features resolve the major dimensionality mismatch, while WT-Flow's coarse single-stage density proxy still struggles with precise defect support. Our mismatch signal therefore produced substantially more precise localization, explaining the remaining AP/F1 advantage.

Reviewer vPHJOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Flow Mismatching, an unsupervised anomaly detection method based on velocity discrepancies in flow matching models. Given a flow matching model trained only on normal images, the method constructs affine paths from Gaussian noise to a test image and compares the learned normal velocity field with the geometric velocity toward the target. Local disagreement between these velocities is used to produce pixel-level anomaly heatmaps and image-level anomaly scores. The paper further provides theoretical analysis connecting the mismatch signal to denoising error and Fisher divergence, and evaluates the method on MVTec-AD and VisA.

Strengths and weaknesses

Strengths

  • The core idea is novel and intuitive. Using velocity mismatch as an anomaly signal avoids the limitations of reconstruction-based methods that may reconstruct defects and weaken anomaly evidence.
  • The method is simple at test time. It does not require test-time optimization, memory banks, or external feature extractors, and only uses forward evaluations of the flow model.
  • The theoretical analysis is relatively strong. The decomposition into an irreducible denoising term and a Fisher-divergence term provides a principled explanation for why velocity mismatch can separate anomalies.
  • The empirical results are convincing. The method is compared with multiple reconstruction-based and flow-matching-based baselines on MVTec-AD and VisA, with strong image-level and pixel-level performance.
  • The ablation studies are useful, including analyses of path count, time steps, path aggregation, and category-conditioning strategies.
  • The compute-accuracy trade-off controlled by the number of paths and time steps is practically valuable for industrial inspection scenarios.

Weaknesses

  1. Limited resolution validation. All experiments are conducted at 128×128 resolution. Since real industrial anomaly detection often requires higher-resolution inspection, it remains unclear how the method scales in accuracy, memory, and inference speed at 256×256 or higher resolutions.

  2. Comparison with feature-based SOTA could be stronger. The paper compares with many reconstruction-based and flow-matching-based methods, but recent anomaly detection methods based on strong pretrained features, such as DINOv2-style representations, are not fully explored. This makes it harder to judge the performance ceiling of the proposed pixel-space flow matching approach.

  3. Feature-space extension is missing. The proposed velocity-mismatch principle may also be applicable in pretrained semantic feature spaces. A preliminary feature-space version would help show whether the method can benefit from stronger semantic representations.

  4. Failure cases need deeper analysis. The paper mentions limitations for large semantic or object-level anomalies, but the underlying cause is not fully analyzed. It is unclear whether this comes from limited semantic modeling capacity, the pixel-space formulation, or the affine path design.

  5. End-to-end efficiency should be reported more completely. The adjustable K \times T inference budget is useful, but additional reporting on latency, memory, and throughput at different resolutions would better support the practical efficiency claim.

Questions
  1. Can the authors provide results at 256×256 resolution, including both anomaly detection metrics and inference speed?
  2. How does Flow Mismatching compare with stronger pretrained-feature-based anomaly detection methods?
  3. Can the proposed velocity-mismatch signal be applied in a pretrained feature space, such as DINOv2 features?
  4. What is the main reason for failure on large semantic or object-level anomalies?
  5. Can the authors report false positive rates for different path aggregators, such as average, percentile, and minimum aggregation?
  6. How sensitive is the method to the time weighting choice w(t)=t^2? A comparison with uniform or linear weighting would be useful.
Limitations

The paper discusses several limitations, including the linear test-time cost with K \times T, dependence on the quality of the normal flow model, and evaluation at moderate image resolution. I agree with these limitations. I would additionally encourage the authors to discuss scalability to higher-resolution industrial images and the potential extension to semantic feature spaces.

Final justification

I appreciate the authors’ detailed response. Many of my concerns have been adequately addressed, and I have therefore increased my score.

Formatting concerns

N/A.

6 comments
Authors · CommentOpenReview ↗

Response to Q5: FPRs for aggregators.

Thank you for the point. We additionally report false-positive and true-positive rates for average, percentile, and minimum path aggregation. ↓/↑ indicate lower/higher is better.

Dataset Aggregator I-FPR@95TPR ↓ I-FPR@F1max ↓ I-TPR@5%FPR ↑ P-FPR@95TPR ↓ P-FPR@F1max ↓ P-TPR@1%FPR ↑
MVTec-AD Average 19.68 21.52 85.49 23.18 1.76 60.62
q30 11.48 11.77 92.25 18.34 1.21 66.85
q20 11.35 9.76 93.15 16.68 1.17 68.04
q10 10.54 8.58 93.42 14.87 1.15 69.06
Minimum 8.63 7.18 93.93 12.98 1.16 69.57
VisA Average 19.00 9.49 86.92 20.46 0.43 73.25
q30 11.27 10.05 88.92 15.56 0.45 76.49
q20 10.02 9.58 89.00 13.22 0.47 76.94
q10 8.75 10.58 89.58 12.13 0.48 77.19
Minimum 9.27 9.55 89.25 11.80 0.50 77.00

At the controlled high-recall operating point, lower-tail aggregation substantially reduces false positives. Relative to average aggregation, minimum reduces I-FPR@95TPR from 19.68% to 8.63% on MVTec-AD and from 19.00% to 9.27% on VisA. It similarly reduces P-FPR@95TPR from 23.18% to 12.98% and from 20.46% to 11.80%, respectively.

This false-positive reduction does not come at the expense of recall. Compared with average, minimum improves I-TPR@5%FPR by 8.44 points on MVTec-AD and 2.33 points on VisA, and improves P-TPR@1%FPR by 8.95 and 3.76 points, respectively. The percentile results generally interpolate between average and minimum, consistent with lower-tail aggregation increasingly suppressing seed-specific spurious responses.

FPR@F1max is less monotonic on VisA because each aggregator selects its own F1-optimal threshold; it is therefore not a comparison at a shared recall level. Nevertheless, the fixed-recall and fixed-FPR results consistently show that lower-tail aggregation provides substantially better false-positive control, with minimum or q10 giving the strongest overall operating characteristics.

Response to Q6: Time weighting choices comparison

Thank you for the suggestion. We compare uniform, linear, quadratic, cubic, and quartic time weighting while keeping all other inference settings fixed.

MVTec-AD

Time weight Image AUROC Image AP Image F1-max Pixel AUROC Pixel AP Pixel F1-max AUPRO
w(t)=1w(t)=1 96.9 98.9 96.3 96.3 65.0 62.3 89.8
w(t)=tw(t)=t 98.4 99.4 97.4 97.1 67.2 64.3 91.7
w(t)=t2w(t)=t^2 (default) 98.7 99.5 97.7 97.7 67.5 64.8 91.9
w(t)=t3w(t)=t^3 98.5 99.4 97.4 97.2 67.2 64.4 91.6
w(t)=t4w(t)=t^4 98.2 99.3 97.3 97.1 66.7 64.0 91.6

VisA

Time weight Image AUROC Image AP Image F1-max Pixel AUROC Pixel AP Pixel F1-max AUPRO
w(t)=1w(t)=1 96.0 97.1 92.5 98.0 43.7 48.0 88.5
w(t)=tw(t)=t 97.7 98.2 94.8 97.9 42.0 46.9 89.7
w(t)=t2w(t)=t^2 (default) 98.0 98.4 95.2 97.5 40.2 45.8 90.6
w(t)=t3w(t)=t^3 97.9 98.3 94.9 97.2 39.3 45.0 91.0
w(t)=t4w(t)=t^4 97.8 98.2 94.7 97.0 38.8 44.5 91.3

The method is not highly sensitive to changes around the quadratic weight. Overall, w(t)=t2w(t)=t^2 provides the most consistent balance between image-level detection and pixel-level localization across both datasets.

Authors · CommentOpenReview ↗

Response to Q4 Part II: Interpretation, scope, and alleviation

The toy is a causal diagnostic, not a claim that the real U-Net has an 11×1111\times11 receptive field or that this artificial distribution reproduces natural semantics. Its value is that it holds the pixel representation, noise, affine path, time weighting, and scoring rule fixed, while changing only the information set. The result establishes three points:

  1. The affine path can support full-region localization. The full-context oracle succeeds with exactly the same path on which the restricted predictor fails. Therefore the affine construction is not sufficient to explain the failure.
  2. Raw pixels contain the required information in this controlled setting. The full oracle uses no semantic features, yet detects the full square. Pixel space is therefore not a fundamental information bottleneck here, although pixel regression can bias a finite learned model toward local statistics.
  3. Global access and global modeling are different. Our U-Net contains attention, but its loss does not require the model to use global dependencies whenever local prediction already performs well on normal training paths. The restricted predictor represents this locally dominated solution; it is not a literal model of the architecture.

The toy consequently supports, but does not by itself prove, that the same mechanism dominates the real failure cases. Natural object anomalies involve more complex constraints than a shared sign, and the learned field vθv_\theta can also deviate from the oracle vpv_p on anomalous paths that were absent during training. We will state this scope explicitly and validate it through interventions on the actual model, including interior-versus-transition recall as a function of anomaly size, with/without global-token or semantic conditioning, and a path-schedule control.

The affine schedule may affect signal strength, but changing it alone cannot manufacture a dependency missing from the posterior model. For a general linear Gaussian path xt=atϵ+btyx_t=a_t\epsilon+b_ty,

vp(xt,t)−gt=ct(μp(xt)−y),ct=b˙t−a˙tatbt.v_p(x_t,t)-g_t=c_t\big(\mu_p(x_t)-y\big), \qquad c_t=\dot b_t-\frac{\dot a_t}{a_t}b_t.

The schedule changes the scalar ctc_t and the noise levels at which evidence is observed; it does not change whether μp\mu_p represents an object-level constraint. This is why we regard path design as secondary, while retaining it as an empirical ablation rather than ruling it out entirely.

Alleviation. We will add a compact local-global extension rather than replace the current detector:

Hhyb=(1−λ)Norm(HRGB)+λUp(Norm(Hsem))H_{\mathrm{hyb}} = (1-\lambda)\mathrm{Norm}(H_{\mathrm{RGB}}) + \lambda\mathrm{Up}(\mathrm{Norm}(H_{\mathrm{sem}}))

HRGBH_{\mathrm{RGB}} is the current pixel-flow mismatch and preserves fine spatial sensitivity. HsemH_{\mathrm{sem}} applies the same flow-mismatch principle to frozen intermediate semantic features, with global-token conditioning to encode object identity and long-range consistency. Because semantic maps can be coarse, they complement rather than replace the RGB branch. We will also use mean or low-quantile aggregation for the semantic branch, since strict minimum aggregation may remove weak but spatially consistent semantic evidence.

The same toy provides a mechanism check for this remedy. After separately max-normalizing the restricted and full-context maps, we use

Htoyhyb=(1−λ)Hloc+λHglo.H_{\mathrm{toy}}^{\mathrm{hyb}} =(1-\lambda)H_{\mathrm{loc}}+\lambda H_{\mathrm{glo}}.

For the 32232^2 anomaly, λ=0.10\lambda=0.10 raises total/interior recall from 4.69%/0% to 100%/100%, with 0% background activation at the same 0.10.1 threshold. This is intentionally an idealized justification, not a claimed real-data improvement: it shows that a modest amount of global evidence can repair coverage without discarding local precision. We will continue exploring global conditioning, semantic-space flows, and path/aggregation variants, and incorporate the improved version into the manuscript.

Authors · CommentOpenReview ↗

Response to Q4 - Part I: Main cause and controlled 2-D analysis

Thank you for requesting a deeper analysis. We agree that failure on large semantic or object-level anomalies is important. Our current evidence points to insufficient use of global semantic dependencies in the learned normal vector field as the main cause. Pixel-space regression encourages local appearance matching and is therefore a contributing inductive bias; the affine path is unlikely to be the primary cause.

For the oracle normal field, Proposition 4.1 gives

vp(xt,t)−(y−x0)=μp(xt)−y1−t,μp(xt)=Ep[Y∣Xt=xt].v_p(x_t,t)-(y-x_0)=\frac{\mu_p(x_t)-y}{1-t}, \qquad \mu_p(x_t)=\mathbb E_p[Y\mid X_t=x_t].

Thus the mismatch is a scaled residual between the test image and its estimate under the normal posterior. If an anomalous object's interior looks locally normal, a locally dominated predictor can have μp(xt)i≈yi\mu_p(x_t)_i\approx y_i there, even though the object is globally inconsistent. This produces incomplete object coverage. Global attention in our U-Net makes long-range reasoning possible, but does not guarantee that it is learned: pixel regression and high-resolution skip connections can reduce normal-path loss through easier local statistics.

To isolate this mechanism, we constructed the following 2-D toy. Normal 64×6464\times64 one-channel images obey

Y=S1,S∈−1,+1,P(S=−1)=P(S=+1)=12.Y=S\mathbf 1,\qquad S\in \\{ -1,+1 \\},\qquad P(S=-1)=P(S=+1)=\tfrac12.

Hence a normal image is either entirely −1-1 or entirely +1+1. The test anomaly is a centered +1+1 square inserted into a −1-1 image. Every homogeneous patch is locally identical to one normal mode, but the coexistence of the two signs is globally anomalous. Both compared predictors use the same raw pixels, Gaussian source, affine path Xt=(1−t)X0+tYX_t=(1-t)X_0+tY, T=10T=10, and t2t^2-weighted mismatch. Only the spatial information available to the predictor changes.

What are the compared predictors? It is the exact Bayes-optimal prediction computed from the known toy distribution. For any information set I\mathcal I that contains xt,ix_{t,i}, the optimal velocity at pixel ii is

vi∗(xt,t∣I)=E[Yi−X0,i∣I]=E[Yi∣I]−xt,i1−t.v_i^*(x_t,t\mid\mathcal I) =\mathbb E[Y_i-X_{0,i}\mid\mathcal I] =\frac{\mathbb E[Y_i\mid\mathcal I]-x_{t,i}}{1-t}.

Because we know the complete normal distribution, we can calculate this expectation analytically. This removes neural-network capacity, optimization, and finite-data errors. We can therefore ask what is possible with different information sets while keeping every other component fixed. In this toy, for any observed pixel set AA, the posterior is

E[S∣Xt,A=xt,A]=tanh⁡(t(1−t)2∑j∈Axt,j).\mathbb E[S\mid X_{t,A}=x_{t,A}] =\tanh\left(\frac{t}{(1-t)^2}\sum_{j\in A}x_{t,j}\right).

We evaluate this same Bayes rule with two information sets. To avoid ambiguity, only the second predictor is called the paper's full oracle:

  1. The restricted local Bayes predictor at pixel ii sees only the noisy 11×1111\times11 window WiW_i: $μiloc=E[S∣Xt,Wi],viloc=μiloc−xt,i1−t.\mu_i^{\mathrm{loc}}=\mathbb E[S\mid X_{t,W_i}], \qquad v_i^{\mathrm{loc}}=\frac{\mu_i^{\mathrm{loc}}-x_{t,i}}{1-t}.$ It is optimal among predictors with that restricted information, and represents a field dominated by local appearance cues.

  2. The full-context Bayes oracle sees the complete noisy image: $μglo=E[S∣Xt],viglo=μglo−xt,i1−t.\mu^{\mathrm{glo}}=\mathbb E[S\mid X_t], \qquad v_i^{\mathrm{glo}}=\frac{\mu^{\mathrm{glo}}-x_{t,i}}{1-t}.$ This is the actual full-information analogue of the paper's oracle field and represents ideal modeling of the global normal constraint.

Inside the anomalous square, a local window contains almost exclusively positive evidence, so μiloc≈+1=yi\mu_i^{\mathrm{loc}}\approx+1=y_i and the local mismatch is nearly zero. The same occurs in the negative background. Only windows containing conflicting signs have an uncertain normal-mode posterior and appreciable mismatch. In contrast, the full oracle must assign the entire image to one normal mode. For a 32232^2 square, the clean-image sum is 1024−3072=−20481024-3072=-2048; thus the negative background dominates and μglo≈−1\mu^{\mathrm{glo}}\approx-1. The global prediction matches the background but disagrees with every positive square pixel, yielding full-region evidence. Early times are noisier, but the t2t^2 weight suppresses them relative to more informative later times.

With 1,0241{,}024 Gaussian sources per run and five runs, recall at 0.10.1 of each map maximum is:

Square Anomaly area Local recall Local-interior recall Global recall
16216^2 6.25% 18.75% 0.00% 100.00%
24224^2 14.06% 8.33% 0.00% 100.00%
32232^2 25.00% 4.69% 0.00% 100.00%
40240^2 39.06% 3.00% 0.00% 100.00%

For the 32232^2 anomaly, increasing the local window from 727^2 to 15215^2 raises recall only from 2.34% to 8.98%, while interior recall remains 0%. The full-context oracle reaches 100% using identical pixels and the identical affine path. The toy therefore demonstrates a concrete mechanism: local normality can suppress interior mismatch, whereas explicit global consistency restores it.

Reviewer T4ZcOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Flow Mismatching, an unsupervised anomaly detection method that trains a conditional flow-matching model on normal images only and, at test time, detects anomalies from the disagreement between the model's predicted velocity and the geometric velocity pointing toward the test image, aggregated over multiple noise seeds and time steps to produce pixel-level heatmaps and image-level scores. The authors provide a theoretical decomposition of this mismatch into a denoising term and a Fisher-divergence term that drives anomaly separation, and report results on MVTec-AD and VisA against reconstruction-based and flow-matching-based baselines.

Strengths and weaknesses

Quality. Technically sound and a complete piece of work, with strong empirical results and thorough ablations and failure-case analysis.

Clarity. Well organized, and the core idea comes across clearly through the figures and Section 3. The theory in Section 4 is hard to follow at points and can obscure what is a fairly simple method, and the distinction between the oracle and learned velocity fields is not always clear where it matters.

Significance. Outperforming heavier-backbone reconstruction methods with a lightweight pixel-space model, especially on localization, is a meaningful result that others are likely to build on, and the adjustable test-time compute mechanism is a useful feature.

Originality. The contribution is mainly one of framing rather than an entirely new concept: flow matching and the velocity residual are existing tools, and the novelty lies in recognizing that this residual, evaluated at test time against an unseen target, serves as an anomaly signal.

Strengths:

The main strength of the paper is its core idea, which is clean and, as far as I know, new. The method detects anomalies by looking at the disagreement between where the learned normal flow wants to go and the direction toward the test image. The idea is simple, but I see this as a positive: it turns detection into a local geometric comparison that only needs forward passes, without reconstruction, a memory bank, a feature extractor, or any test-time optimization. Most strong methods rely on at least one of these, so avoiding all of them is a real practical advantage.

The results are also good. The method performs well on both datasets, and the localization results in particular are strong, even though it uses a lightweight pixel-space U-Net rather than the heavier backbones some baselines depend on. The method also exposes a simple knob for trading off speed and accuracy, where the extra cost is just more (parallelizable) forward passes. The paper is also fairly thorough, with extensive ablations, a failure-case analysis, and a limitations section.

Weaknesses:

The method is tested on defects and performs well — that's not in question. The gap is narrower: the theory's clean separation argument assumes the trained network closely matches an idealized perfect version, including on defective inputs. The proof only justifies this on normal data, and the experiments only measure final detection accuracy, not whether this assumption actually holds. Good detection results don't confirm the theory. The method could be working because the theoretical mechanism holds, or it could be working for other reasons (like the seed/time aggregation) while the mechanism doesn't actually hold on defects. Performance alone can't tell these apart.

On the experimental side, the results appear to come from a single run without error bars, which is worth noting given the method's test-time stochasticity and the small margins in some per-class results. It would also help to state whether the Table 1 baselines were evaluated at the same 128×128 resolution or quoted from their original settings, since this affects localization comparisons in particular.

Questions

Q1. Your main theoretical result is proven for the oracle velocity field, but at inference you evaluate the learned network on anomalous, off-manifold inputs, where the cited approximation guarantee does not clearly apply. In your toy settings the oracle field is computable, so measuring ∥vθ−vp∥\|v_\theta - v_p\| along paths to normal vs. anomalous targets would show whether the approximation holds where the signal arises. This is cheap and reuses existing infrastructure. A positive result would raise my score; clear evidence that the approximation breaks down on anomalous inputs, without further discussion, would lower my confidence in the theory.

Q2. The theorem characterizes the average aggregator, but the default is the minimum, which should also suppress anomalies detected inconsistently across seeds. Could you quantify the recall cost of minimum vs. average (e.g., on subtle defects)? Evidence that it doesn't hurt would strengthen the default choice.

Q3. Are the Table 1 baselines evaluated at the same 128×128 resolution, or quoted from their original settings? This affects the localization comparison in particular.

Q4. Given the test-time stochasticity, could you report mean and variance over a few runs for the main tables? Some per-class margins are small.

Limitations

Mostly yes. The paper includes limitations and failure-case analysis. One point is under-acknowledged: the theory assumes the learned flow approximates the ideal (oracle) field well, which the authors treat as a training-quality issue backed by an in-distribution guarantee (Zhou & Liu, 2025). They don't address that this assumption is weakest precisely on the anomalous, off-manifold inputs where the method's signal arises. This could be supported empirically, e.g., in their existing toy settings the oracle field is computable, so measuring ∥vθ−vp∥\|v_\theta - v_p\| along paths to normal vs. anomalous targets would show directly whether the approximation degrades where it matters. I'd encourage stating this limit explicitly rather than relying on the citation alone.

Final justification

The authors have resolved my concerns. The learned-field extension is a valuable addition. It makes explicit the oracle approximation assumption that was hidden in the submitted theorem, and it recovers the original result as a special case. The new bound is independent of the interaction sign and clearly states what the theory can and cannot guarantee.

The toy experiments are also insightful. They show that the learned field can deviate strongly from the oracle far off-manifold, and that this error can either amplify or cancel the anomaly signal. At the same time, the error is small in the near and moderate regime, and the anomaly-normal ranking stayed intact in the tested cases even under strong cancellation.

These controlled experiments cannot guarantee the same behavior on real data, where the oracle field is unavailable. Still, they give convincing evidence for why the method works and a correct picture of when it may fail. I encourage the authors to include the revised theorem section and this discussion in the final version.

The paper is a solid contribution to anomaly detection with strong results and a now correctly scoped theory, fitting a 5 well; a 6 is reserved for work with field-wide groundbreaking impact, which is not the claim here.

Formatting concerns
3 comments
Authors · CommentOpenReview ↗

Response to Q1, Toy examples quantification on off-manifold approximation

Thank you for identifying the central theory–practice gap: the submitted theorem concerns the oracle normal field vpv_p, whereas inference evaluates the learned field vθv_\theta on anomalous, off-manifold paths. An in-distribution approximation result cannot justify replacing vθv_\theta by vpv_p there, so we performed the suggested exact-oracle study and would revise the theory to expose learned-field error explicitly. These are controlled toy experiments, not test-time certificates for MVTec-AD or VisA, where exact vpv_p is unavailable.

1. Experimental setup and quantities. We study two 2D Gaussian-mixture geometries and a convergence-checked 300-component semicircle. Five independently trained normal-only networks are evaluated on identical targets and Gaussian paths. With g=Y−X0g=Y-X_0, the t2t^2 time weighting, and path averaging, define

O=∥vp−g∥2,A=∥vθ−vp∥2,C=2⟨vp−g,vθ−vp⟩,L=∥vθ−g∥2.O=\|v_p-g\|^2,\quad A=\|v_\theta-v_p\|^2,\quad C=2\langle v_p-g,v_\theta-v_p\rangle,\quad L=\|v_\theta-g\|^2.

Exactly,

L=O+A+C,γ=C2OA∈[−1,1].L=O+A+C,\qquad \gamma=\frac{C}{2\sqrt{OA}}\in[-1,1].

Here OO is the oracle mismatch, AA is the learned–oracle field gap, CC is their interaction, A/OA/O is the relative learned-field error, γ>0\gamma>0 means that this error amplifies the oracle residual, and γ<0\gamma<0 means cancellation. LL is the theorem-facing path-averaged learned mismatch. AUC is the probability that a random anomaly is scored above a random normal, with ties counting one half; 0.50.5 is random ranking and 11 is perfect empirical ranking.

2. Main measurements.

The following values come from a continuous radial diagnostic sweep. AUC is evaluated separately on matched discrete anomaly groups and is therefore not attached to individual radial-sweep points.

Geometry / diagnostic point OO A/OA/O γ\gamma LL
Unimodal, normal r=0r=0 2.43 5×10−55\times10^{-5} ≈0\approx0 2.43
Unimodal, configured far r=4r=4 11.8 0.019 +0.24+0.24 12.8
Unimodal, extreme sweep r=8r=8 39.1 0.23 +0.35+0.35 61.1
Semicircle, extreme sweep r=8r=8 1311.0 0.44 −0.97-0.97 191.1

Near the normal manifold, the field approximation is extremely accurate. At the unimodal configured-far point r=4r=4, AA is only 1.9 percent of OO, while the oracle mismatch has increased from 2.43 to 11.8. Thus, in this measured direction, the oracle mismatch grows substantially faster than the learned-field error.

Ranking is evaluated separately on the matched discrete anomaly groups. Learned/oracle path-averaged AUCs are 0.8598/0.8598 and 0.9965/0.9965 for unimodal medium/far, 0.9625/0.9627 and 1.0000/1.0000 for bimodal medium/far, and 0.9801/0.9921, 1.0000/1.0000, and 1.0000/1.0000 for semicircle near/medium/far.

3. Far off-manifold: both amplification and cancellation occur. At large offsets, A/OA/O rises to 0.23–0.44, so uniform recovery of vpv_p is false. In the displayed unimodal region r=8r=8,

O=39.1,A=9.02,C=13.0,L=61.1.O=39.1,\qquad A=9.02,\qquad C=13.0,\qquad L=61.1.

The learned score is therefore about 56 percent above the oracle score. γ=0.35\gamma=0.35 shows field error amplifies the anomaly signal. However, this sign is not universal. In an eight-direction bimodal sweep, about 25 percent of far directions have negative interaction, reaching γ≈−0.51\gamma\approx-0.51.

The semicircle supplies the opposite extreme. At its far point,

O=1311.0,A=582.5,γ≈−0.974,L=191.1.O=1311.0,\qquad A=582.5,\qquad \gamma\approx-0.974,\qquad L=191.1.

Thus A/O≈0.44A/O\approx0.44, yet the learned score is only about 14.6 percent of the oracle score: approximately 85.4 percent is cancelled. This is not a rare unfavorable direction; cancellation is consistently strong along the curved geometry.

Nevertheless, the matched-group results show that learned ranking remains close to oracle ranking. In particular, semicircle medium/far learned AUC is 1.000 despite strongly negative interaction. Thus cancellation can greatly reduce score magnitude without destroying anomaly-normal ordering in the tested groups.

The experiment therefore confirms both sides of your concern. Uniform off-manifold field approximation can fail, and favorable interaction cannot be assumed. However, the failure is small in the measured near/moderate regime, while far-distance ranking can survive even strongly adverse cancellation. Because vpv_p is unavailable for MVTec-AD and VisA, we present this as controlled mechanistic evidence rather than a claim about every real-image anomaly.

Authors · CommentOpenReview ↗

Response to Q2: Recall costs for different aggregator.

Thank you for raising this point. We measured recall (TPR) at fixed low-FPR operating points for both the full test set and a small-defect subset.

General recall across all anomalous images

Dataset Aggregator I-TPR@5%FPR P-TPR@1%FPR
MVTec-AD Average 85.49 60.62
q30 92.25 66.85
q20 93.15 68.04
q10 93.42 69.06
Minimum 93.93 69.57
VisA Average 86.92 73.25
q30 88.92 76.49
q20 89.00 76.94
q10 89.58 77.19
Minimum 89.25 77.00

Therefore, minimum aggregation does not reduce general recall relative to average. It improves image/pixel recall by +8.44/+8.95 points on MVTec-AD and +2.33/+3.76 points on VisA.

We additionally define small-defect images as the bottom 25% of anomalous images by defect-area percentage within each category. This subset contains 320 MVTec-AD images with a median defect area of 0.4350%, and 300 VisA images with a median area of only 0.0398%.

Recall on the small-defect subset

Dataset Aggregator I-TPR@5%FPR P-TPR@1%FPR
MVTec-AD Average 79.23 72.14
q30 87.08 78.29
q20 88.53 79.32
q10 89.74 80.20
Minimum 90.61 80.60
VisA Average 73.67 80.08
q30 77.67 82.99
q20 77.67 83.24
q10 79.33 82.94
Minimum 79.00 81.76

Again, we observe no recall cost relative to average aggregation. On small defects, minimum improves image/pixel recall by +11.38/+8.46 points on MVTec-AD and +5.33/+1.68 points on VisA. The lower-percentile results generally interpolate between average and minimum, supporting that requiring cross-seed consistency removes unstable responses rather than suppressing subtle anomalies. Since it remains consistently better than average, the results support minimum as a robust default without an observed subtle-defect recall penalty.

Response to Q3: Resolution of the Table 1 comparisons

Thank you for raising this important point. The Table 1 baselines were not rerun at 128×128128 \times 128; their results were quoted from their published reports or the corresponding benchmark settings. The effective input resolution is 224×224224 \times 224 for UniAD, HVQ-Trans, AMDM, and SimpleNet after center cropping, and 256×256256 \times 256 for RD4AD, DeSTSeg, DiAD, MambaAD, and ViTAD. The CFLOW-AD values in Table 1 come from the fixed-256×256256 \times 256 ADer benchmark, whereas the original CFLOW-AD paper selected among 128×128128 \times 128, 256×256256 \times 256, and 512×512512 \times 512 on a category-specific basis.

To directly assess resolution sensitivity, we conducted two additional controls on both MVTec-AD and VisA. In resize, we use the original 128×128128 \times 128 model without retraining, bilinearly resize its anomaly heatmap to 256×256256 \times 256, and then evaluate it at that resolution. In train, we train a slightly larger model (49M) at 256×256256 \times 256 and generate the anomaly heatmap natively at 256×256256 \times 256.

Dataset Setting I-AUROC I-AP I-F1,max⁡F_{1,\max} P-AUROC P-AP P-F1,max⁡F_{1,\max} AUPRO
MVTec-AD 128×128128 \times 128 (default) 98.7 99.5 97.7 97.7 67.5 64.8 91.9
128128 model + heatmap resize to 256256 98.7 99.5 97.9 97.3 67.5 64.7 92.7
model trained at 256×256256 \times 256 98.4 99.4 97.6 97.5 67.4 64.6 91.5
VisA 128×128128 \times 128 (default) 98.0 98.4 95.2 97.5 40.2 45.8 90.6
128128 model + heatmap resize to 256256 97.9 98.3 95.1 97.6 40.4 45.7 88.8
model trained at 256×256256 \times 256 98.2 98.3 95.2 96.6 41.1 46.3 89.4

Both controls retain strong image-level and pixel-level performance. Thus, the method is only marginally affected by resolution, including on the localization metrics.

Response to Q4: Test-time stochasticity

Thank you for the suggestion. We evaluated the default method over 15 independent inference runs using random seeds 0–14. The trained checkpoint and all inference settings were fixed, and only the test-time Gaussian paths were resampled. We report the mean ± standard deviation across runs below.

Dataset I-AUROC I-AP I-F1-max P-AUROC P-AP P-F1-max P-AUPRO
MVTec-AD 98.67 ± 0.05 99.51 ± 0.02 97.61 ± 0.09 97.32 ± 0.01 67.54 ± 0.06 64.69 ± 0.07 91.86 ± 0.14
VisA 97.93 ± 0.05 98.33 ± 0.04 95.14 ± 0.13 97.55 ± 0.02 40.17 ± 0.08 45.73 ± 0.08 90.64 ± 0.13

The variability is small across all seven metrics. These results indicate that the reported performance is stable with respect to test-time stochasticity and that the conclusions of the main comparison are not driven by a favorable random draw. We will add these statistics and detailed metrics for each run to the revised manuscript.

Authors · CommentOpenReview ↗

Additional Q1 clarification: exact learned-field extension of the submitted theorem

To connect the quantities reported in our preceding toy-response comment directly to the submitted theory, we derived an exact learned-field extension of the oracle result. This extension makes the learned-field error and its interaction with the oracle signal explicit, including during off-manifold evaluation.

Let

eθ(t,x)=vθ(t,x)−vp(t,x)e_\theta(t,x)=v_\theta(t,x)-v_p(t,x)

denote the learned-field error. Under the same regularity assumptions as the submitted theorem, together with measurability and square-integrability of vθv_\theta, we obtain the following exact identity:

t2Eq∣vθ−g∣2=t2(1−t)2Dq(t)+Eqt∣(1−t)(sqt−spt)−teθ∣2.t^2\mathbb E_q|v_\theta-g|^2=\frac{t^2}{(1-t)^2}D_q(t) + \mathbb E_{q_t} \left|(1-t)(s_{q_t}-s_{p_t})-t e_\theta \right|^2.

This identity is exact: it does not replace vθv_\theta by vpv_p, assume that learned-field error is small off-manifold, or assume that its interaction with the oracle signal is favorable.

The submitted oracle theorem is recovered immediately by setting eθ=0e_\theta=0, equivalently vθ=vpv_\theta=v_p.

Indeed, $t^2\mathbb E_q|v_p-g|^2= \frac{t^2}{(1-t)^2}D_q(t)+ \mathbb E_{q_t} \left|(1-t)(s_{q_t}-s_{p_t})\right|^2
= \frac{t^2}{(1-t)^2}D_q(t) +(1-t)^2J(q_t\Vert p_t),$

This is exactly the theorem stated in the submitted paper.

At each fixed time tt, expanding the final squared norm gives the following population-averaged decomposition: Lt=Ot+At+CtL_t=O_t+A_t+C_t, where

  • Ot=t2(1−t)2Dq(t)+(1−t)2J(qt∥pt)O_t=\frac{t^2}{(1-t)^2}D_q(t)+(1-t)^2J(q_t\Vert p_t) is the oracle mismatch from the submitted theorem;
  • At=t2Eqt[eθ⋅eθ]A_t=t^2 E_{q_t}[e_\theta \cdot e_\theta] is the learned-field error energy; and
  • Ct=−2t(1−t)Eqt[(sqt−spt)⋅eθ]C_t=-2t(1-t)E_{q_t}[(s_{q_t}-s_{p_t})\cdot e_\theta] is their signed interaction.

These are the population-level counterparts of the O,A,C,LO, A, C, L quantities reported in our preceding toy response; the opposite interaction signs observed in the Gaussian and semicircle experiments are represented explicitly by CtC_t.

Thus the learned-field expression contains three components: the original oracle/Fisher signal, learned-field error energy, and their signed interaction. The final term can either amplify or cancel the oracle signal, matching the opposite interaction signs observed in the Gaussian and semicircle toy studies.

For a fixed test target yy, the endpoint Y=yY=y is no longer random, so the target-side denoising-uncertainty term vanishes. Averaging over the remaining Gaussian source paths and applying the same time aggregation used in the toy diagnostic gives

Ly=Oy+Ay+Cy.L_y = O_y + A_y + C_y.

This is the detector-facing counterpart of the population decomposition and is exactly the identity evaluated numerically in our preceding toy response.

By the Cauchy-Schwarz inequality,

∣Cy∣≤2OyAy.|C_y| \leq 2\sqrt{O_y A_y}.

Therefore,

(Oy−Ay)+2≤Ly≤(Oy+Ay)2.(\sqrt{O_y}-\sqrt{A_y})_+^2 \leq L_y \leq (\sqrt{O_y}+\sqrt{A_y})^2.

This bound is independent of the interaction sign. Large learned-field error lowers the guaranteed floor; if the error is too large, the lower bound becomes zero and makes no claim rather than producing an incorrect conclusion. This sign-independent envelope explains the empirical findings in our preceding response. Large learned-field error is explicitly charged against the oracle mismatch. If it dominates, the lower bound becomes zero and makes no claim; if the oracle mismatch remains sufficiently larger, anomaly–normal ordering can survive even under adverse cancellation.

We would therefore revise the theorem section to distinguish the submitted oracle identity from its exact learned-field extension and to expose the field-error and interaction terms explicitly. As emphasized in our preceding response, exact vpv_p is unavailable for MVTec-AD and VisA. This extension therefore provides controlled mechanistic validation and a corrected theoretical interpretation, not a deployable real-image certificate.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…