atlas

Research map / Detection and segmentation / CNN features

DFM: Differentiable Feature Matching for Anomaly Detection

CVPR 2025 · Detection and segmentation › CNN features · approach: Forgery detection · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DFM, which turns nearest-neighbor feature matching into a differentiable pooling-based Feature Matching Network so the feature extractor (via adapters) and matching head can be trained end-to-end for anomaly detection.

Problem

Feature-matching anomaly detection methods use frozen or self-supervised feature extractors and handcrafted matching, so extraction and matching are optimized separately, giving suboptimal features for anomaly detection.

Approach

Reformulates nearest-neighbor matching as a matrix operation followed by two pooling stages (min then max), inserts learnable modulate layers before the pooling, treats the memory bank as trainable parameters, and fine-tunes adapters in the CLIP ViT so that gradients flow from anomaly scores back to the feature extractor; trained with a two-stage iterative schedule using SVDD-style and deviation-s

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace PatchCore matching with DFM feature matchingPatchCore · MVTec AD continual, averageInstance AUROC: 66.9 -> 96.9Helped
replace PatchCore matching with DFM feature matchingPatchCore · MVTec AD continual, averagePixel AP: 18.1 -> 51.1Helped
add DFM feature matching to CFACFA · MVTec AD continualInstance AUROC: 93.0 -> 96.2Helped
add DFM feature matching to CFACFA · MVTec AD continualPixel AP: 45.6 -> 48.0Helped
add DFM feature matching to PatchCorePatchCore · MVTec AD few-shot, 2 shotsInstance AUROC: 87.8 -> 95.0Helped
add FMN while keeping the backbone frozen (ablation)PatchCore · MVTec AD 2-shotInstance AUROC: 85.43 -> 88.39Helped
add FMN while keeping the backbone frozen (ablation)PatchCore · MVTec AD 2-shotPixel AUROC: 95.87 -> 95.02Hurt
add adapters without FMN (ablation)PatchCore · MVTec AD 2-shotInstance AUROC: 85.43 -> 91.73Helped
add adapters without FMN (ablation)PatchCore · MVTec AD 2-shotPixel AUROC: 95.87 -> 96.17Helped
jointly optimize FMN and adapters without iterative training (ablation)PatchCore · MVTec AD 2-shotInstance AUROC: 85.43 -> 84.27Hurt
jointly optimize FMN and adapters without iterative training (ablation)PatchCore · MVTec AD 2-shotPixel AUROC: 95.87 -> 90.23Hurt
add iterative training of FMN and adapters (ablation)PatchCore · MVTec AD 2-shotInstance AUROC: 84.27 -> 92.73Helped

Surprising findings

Limitations

Experimental setup

Datasets: MVTec AD VisA CutPaste synthetic anomalies

Benchmarks: MVTec AD VisA

Metrics: I-AUROC P-AUROC P-AP Forgetting Measure FPS memory consumption

Baselines: PatchCore SPADE PaDiM CFA DNE UCAD GraphCore WinCLIP RegAD

Builds on: PatchCore UCAD CutPaste SPADE SVDD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy