Flownomaly: Single-Step Conditional-Mean Recovery for Few-Shot Anomaly Detection
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Flownomaly: Single-Step Conditional-Mean Recovery for Few-Shot Anomaly Detection Bernardo Perrone Ribeiro Erkut Akdag Egor Bondarev AIMS Group, Department of Electrical Engineering, Eindhoven University of Technology
arXiv:2610.32964v1 [cs.CV] 23 Oct 2026
{b.perrone.de.menezes.bulcao.ribeiro, e.akdag, e.bondarev}@tue.nl
Abstract
Normal Query
Few-shot industrial anomaly detection requires modeling category-specific normality from only a handful of defectfree images. Common approaches tie inference to stored exemplars, impose rigid linear structure, or risk reproducing anomalous content. Flownomaly instead casts the problem as normal-counterpart recovery in frozen DINOv2 feature space. Given normal supports, a velocity field is learned through conditional flow matching over frozen patch tokens to transport Gaussian noise toward normal features. Along straight paths, a single recovery step using one evaluation of the optimal field yields the posterior mean of the clean normal token without trajectory integration. The operating time governs how strongly recovery modifies a query token. With no anomalous validation samples available for tuning, a normal-only Jacobian gain-to-noise criterion selects this time from the supports alone. Squared residuals between query tokens and their recovered counterparts yield anomaly signals for both dense localization and imagelevel detection. Across 1-, 2-, and 4-shot benchmarks on MVTec-AD and VisA, together with sample-shot evaluations on Real-IAD, Flownomaly achieves state-of-the-art performance against recent category-specific methods. In the 1-shot setting, image- and pixel-level AUROC reach 97.8% and 98.0% on MVTec-AD and 95.3% and 98.7% on VisA, with a 2.1-point image-level AUROC improvement over the strongest baseline on VisA. Code is available at https://github.com/b-rbmp/Flownomaly.
Anomalous Query
Query Token
patch token, frozen DINOv2
Noisy Token 1
Query Token
Anomaly score
2
Recovered Counterpart
patch token, frozen DINOv2
1 2
Noisy Token
Recovered Counterpart
Anomaly score Normal Feature Region
Normal Feature Region
small anomaly score
large anomaly score
Figure 1. Conceptual illustration of Flownomaly. A query patch token is (1) perturbed with Gaussian noise and (2) recovered using a single evaluation of the velocity field fitted to the normal supports. Tokens consistent with normal appearance undergo little displacement (left), whereas less compatible tokens tend to undergo larger changes toward the normal support features (right). The squared distance between a query token and its recovered counterpart defines the anomaly score.
Frozen visual foundation models provide strong transferable representations in this low-data regime, but existing paradigms face distinct limitations: stored feature banks tie inference to finite exemplars [6, 27], fitted linear subspaces impose rigid linearity assumptions [18], reference-graph alignment requires query-time optimization [29], and feature reconstruction risks reproducing anomalies [10, 32]. To overcome these limitations, we formulate FSAD as normal-counterpart recovery in frozen feature space by asking: can few-shot normal supports define a nonlinear recovery operator that maps a query token to a normalitybiased counterpart in a single step? The discrepancy between the observed token and this recovered counterpart provides the anomaly signal. Conditional flow matching (CFM) [1, 23, 24] provides the training principle for this op-
1. Introduction Industrial visual anomaly detection aims to identify rare and unpredictable defects, including scratches, contamination, misplaced components, and structural damage [4]. Few-shot anomaly detection (FSAD) addresses this setting by characterizing category-specific normality from only a handful of defect-free reference images and detecting unseen defects at both image and pixel levels [14, 16]. 1
erator by fitting a time-conditioned velocity field that transports Gaussian noise to normal support features. Under squared loss, the CFM optimum predicts the conditional mean path velocity; along a straight path, this determines the posterior mean of the clean normal feature in one field evaluation, without trajectory integration. Flownomaly applies this recovery principle to standardized multi-depth tokens from a frozen DINOv2 encoder (Fig. 1). Training the velocity field exclusively on normal tokens biases the recovery toward normal appearance rather than reproducing anomalous content. At inference, all query tokens are perturbed at a calibrated operating time and recovered in a single step via one batched velocity-field evaluation. However, single-step recovery introduces a calibration challenge: the operating time balances sensitivity to query variations against upper-tail residual variation on normal features. In the absence of anomalous validation samples in FSAD, the operating time should be chosen from normal supports alone. Flownomaly addresses this via a normal-only Jacobian gain-to-noise criterion. Support-derived augmentations also drive field fitting and checkpoint selection, ensuring that no stage relies on anomalous samples, auxiliary supervision, or test labels. Experiments on MVTec-AD [4], VisA [37], and RealIAD [31] demonstrate strong detection and localization performance, with the largest image-level gains on VisA and Real-IAD. Ablations further show that trajectory integration provides no detection advantage, reveal a broad region of well-performing operating times, and show that the normalonly criterion selects within it. In summary, this paper provides the following contributions: • A formulation of FSAD as normal-counterpart recovery in frozen feature space, using a single-step recovery operator derived from the posterior-mean identity of straight-path CFM. • A normal-only Jacobian gain-to-noise calibration criterion that selects the operating time from normal supports alone, without anomalous validation data or test labels. • An extensive evaluation across three benchmarks demonstrating state-of-the-art results and showing that singlestep recovery matches trajectory integration at substantially lower velocity-network cost.
language alignment. Beyond direct feature matching, PromptAD [20] learns category-specific one-class prompts from few-shot normal supports, while registration-based methods [14] learn category-agnostic correspondences between query and reference features that transfer to unseen object categories. More structured frameworks explicitly model normal feature geometry and transformations. SubspaceAD [18] represents normal DINOv2 tokens through a linear principalcomponent subspace, DCP-SFR [17] adds structure-aware refinement to preserve weak anomaly cues, ANoCo [29] measures the optimization displacement required to align queries with an anchored reference graph, and FoundAD [34] learns a nonlinear projection onto the natural-image manifold in a unified multi-class setting. In contrast to discrete memory banks or rigid linear subspaces, Flownomaly represents target-category normality through a continuous, time-conditioned velocity field over frozen features, eliminating nearest-neighbor search and query-time optimization.
2.2. Normal-Counterpart Recovery Reconstruction-based models score discrepancies between observed query features and their normal counterparts. A central challenge lies in preventing the network from reproducing anomalous content. Reverse Distillation [8] reconstructs multi-scale teacher features through a one-class bottleneck, while UniAD [32] employs neighbor-masked attention and feature jittering to limit this identity shortcut. In FSAD, FastRecon [10] reconstructs query features from normal references through distribution-regularized regression, FastRef [21] transfers query characteristics into normal prototypes while suppressing anomalous content, and INP-Former [25] extracts normal prototypes from the query image as linear combinations of its own tokens, scoring residuals through a prototype-guided decoder. Generative models obtain normal counterparts through denoising. DiffusionAD [35] performs one-step noise-tonormal image reconstruction scored by a segmentation network, while OmiAD [11] distills an adaptive masked diffusion model into a one-step multi-class detector. Flownomaly instead learns feature-space recovery from the support set alone, keeping the normality model independent of query content. The method requires no synthetic abnormal–normal pairs, teacher distillation, pixel decoders, or auxiliary segmentation heads.
2. Related Work 2.1. Few-Shot Anomaly Detection Existing FSAD frameworks differ primarily in how normal supports are modeled and compared against query features. Reference-based approaches directly retain normal features for inference: PatchCore [27] constructs a coresetreduced patch memory, AnomalyDINO [6] performs nearestneighbor matching over frozen DINOv2 tokens, and WinCLIP [16] combines visual-reference association with vision-
2.3. Flow-Based Anomaly Detection Flow-based anomaly detection traditionally models normal data through invertible mappings to tractable latent priors. Normalizing flows derive anomaly scores from exact likelihood estimates or latent log-probabilities, as in CFLOWAD [12], FastFlow [33], and MSFlow [36]. 2
Recent flow-matching methods instead use learned velocity fields for correction or anomaly scoring. In brain imaging, Reflect [3] learns a one-step rectified-flow correction from synthetically corrupted to clean VAE latents. WT-Flow [19] combines time-reversed flow matching with a local Worst Transport interpolant to estimate a density proxy. TCCM [22] scores deviations from time-conditioned contraction dynamics, whereas Flow Mismatching [5] aggregates velocity discrepancies across multiple query paths. Unlike prior flow-based detectors that rely on likelihood proxies, reverse trajectories, or multi-path velocity discrepancies, Flownomaly employs flow matching exclusively for normal-counterpart recovery, eliminating trajectory integration and multi-path aggregation. In practice, one batched velocity-field evaluation per image produces the residuals used for both dense localization and image-level detection.
with tokens from middle-to-late blocks of a frozen DINOv2 encoder [26] rather than the final layer alone, capturing complementary texture and semantic cues. The multi-depth token x_p(I)\in \mathbb R^d at position p, where d is the encoder’s token dimension, is formed by standardizing each block’s features with channel-wise statistics estimated on fitting views alone, then averaging across the selected blocks (Suppl. A.1). Standardizing prior to averaging aligns feature scales across depths and prevents blocks with larger activations from dominating. Support-derived normal pools. The few-shot normal supports should fulfill three distinct roles: fitting the velocity field, guiding checkpoint selection, and calibrating the operating time. Holding out entire images is impossible in the one-shot (k=1) setting; instead, three disjoint sets of augmentations of the same k support images are generated via separate random streams. Valid tokens from these streams form the fitting, validation, and calibration pools \protect \mathcal X_{\mathrm {fit}} , \protect \mathcal X_{\mathrm {val}} , and \protect \mathcal X_{\mathrm {cal}} , providing held-out augmented views for checkpoint selection and calibration. Augmentation padding is discarded; view counts and random stream details are discussed in Sec. 4.3 and Suppl. A.1.
3. Method Flownomaly is a category-specific few-shot anomaly detection method that models normality through a nonlinear recovery operator over frozen DINOv2 patch tokens. Figure 2 provides an overview of the method. Given k defectfree support images alongside an unlabelled query image, Flownomaly predicts an image-level anomaly score and a dense pixel-level localization map. Support views are encoded into standardized multi-depth features, and a compact time-conditioned velocity MLP is trained via conditional flow matching (CFM) along straight paths to transport Gaussian noise toward normal tokens. Under squared-error CFM, the population-optimal field predicts the conditional mean path velocity, and along a straight path its single-step update yields a posterior-mean normal counterpart without trajectory integration. At inference, query tokens perturbed at a calibrated operating time t^\star are recovered in one batched forward pass. Tokens consistent with normal supports typically undergo little displacement, whereas anomalous tokens tend to receive larger normal-directed updates, yielding residuals that delineate defects. Checkpoint selection and operating-time calibration rely exclusively on support-derived normal data. The remainder of this section details support feature extraction (Sec. 3.1), velocity field fitting (Sec. 3.2), single-step recovery (Sec. 3.3), anomaly scoring (Sec. 3.4), and normalonly operating-time calibration (Sec. 3.5).
3.2. Conditional Flow Matching on Normal Tokens To represent the normality of the target category, Flownomaly learns a time-conditioned velocity field that transports Gaussian noise toward the distribution of normal support features; once trained, this field enables single-step counterpart recovery (Sec. 3.3). Fitting follows conditional flow matching along the straight path between noise and features [1, 23, 24]. For a fitting token x\in \mathcal X_{\mathrm {fit}} , noise \epsilon \sim \mathcal N(0,I_d), and a time t\sim \mathcal U(0,1), the training state is z_t=tx+(1-t)\epsilon . \label {eq:cfm_path}
(1)
The state z_t\in \mathbb R^d interpolates between Gaussian noise at t=0 and a clean normal token at t=1 along a straight trajectory with constant velocity x-\epsilon . Sampling t\sim \mathcal U(0,1) uniformly trains the field across all noise-to-feature perturbation scales. Given a state z and time t, the velocity field v_\theta (z,t)\in \mathbb R^d , parameterized by weights \theta , predicts the velocity of the noise-to-feature interpolation. Implemented as a residual MLP with sinusoidal time embeddings (detailed in Suppl. A.2), it represents the sole trained component, as the encoder remains frozen. Its parameters minimize the training objective: \mathcal L_{\mathrm {CFM}}(\theta )= \mathbb E_{x,\epsilon ,t} \left [ \left \|v_\theta (z_t,t)-(x-\epsilon )\right \|_2^2 \right ]. \label {eq:cfm_objective}
3.1. Problem Setup and Support Features Each category provides a support set of k\in \{1,2,4\} defectfree images. Given an unlabelled query image I^q , the objective is to predict both an image anomaly score and a dense pixel-level localization map.
(2)
Support-only checkpoint selection. During training, each checkpoint is evaluated on \protect \mathcal X_{\mathrm {val}} using fixed noise and interpolation-time grids. The checkpoint with the lowest validation CFM loss is selected, and its parameters are denoted by \@mathmeasure \z@ \textstyle {\theta }\ifdim \wd \z@ >\tw@ em\mathaccent "055B{\theta }\else \mathaccent "0362{\theta }\fi . The selected field is then used for operating-time calibration and inference.
Multi-depth DINOv2 features. Following SubspaceAD [18], Flownomaly represents each patch 3
(1) CFM Training
Normal Supports
Clean Token
Fitting Views
Data Augmentation
Validation Views
Calibration Views
Query Tokens
Query
Noise
Mix with Noise Frozen DINOv2-g Encoder
Frozen DINOv2-g Encoder
,
Blocks 16, 20, 24, 28, 32
Recovered Counterpart TimeConditioned MLP
Time-Conditioned MLP Patch Anomaly Score
Per-layer standardization & mean aggregation (2) Checkpoint Selection minimum CFM validation loss
Pixel Anomaly Map
Anomaly Score Map Gaussian Smooth & Upsample
(3) Normal-Only Time Calibration Jacobian gain-to-noise criterion
(a) Support-Only Field Learning and Selection
(b) Single-Step Inference / Anomaly Scoring
Figure 2. Overview of Flownomaly. (a) Disjoint augmented views of the k normal supports are encoded into standardized multi-depth DINOv2 tokens (Sec. 3.1): fitting views train the velocity field v_\theta via conditional flow matching (Sec. 3.2), validation views select the checkpoint v_{\widehat \theta } , and calibration views determine the operating time t^\star via a normal-only criterion (Sec. 3.5). (b) At inference, query tokens perturbed with Gaussian noise at t^\star are recovered in one batched evaluation of v_{\widehat \theta } (Sec. 3.3). Squared residuals to recovered counterparts form the anomaly score map, which is smoothed and upsampled for dense localization (Sec. 3.4).
3.3. Single-Step Conditional-Mean Recovery
The learned field is evaluated once at a perturbed query state, and the discrepancy between the query token and its recovered counterpart provides the anomaly score. Replacing v^\star with the fitted field v_{\widehat {\theta }} defines the recovery operator
CFM learns a velocity field along the full noise-to-normal path, whereas Flownomaly requires only a normality-biased counterpart for each query token. For the straight interpolation in Eq. (1), the posterior mean of the clean normal token is available from a single evaluation of the populationoptimal field at an intermediate state. Let X be a normal token from the empirical fitting distribution, let \epsilon \sim \mathcal N(0,I_d) be independent Gaussian noise, and let Z_t=tX+(1-t)\epsilon denote the corresponding random interpolation state. Under the squared-error objective in Eq. (2), the population-optimal field is the conditional expectation of its regression target [1, 23]: v^\star (z,t) = \mathbb E\!\left [X-\epsilon \mid Z_t=z\right ]. \label {eq:optimal_velocity}
\mathcal R_{\widehat {\theta },t}(z) = z+(1-t)v_{\widehat {\theta }}(z,t). \label {eq:recovery_operator}
The update spans the remaining interval 1-t to the data endpoint t=1 in one operation, termed single-step recovery. Although equivalent to one Euler step of size 1-t, it estimates the conditional mean rather than an integrated ODE endpoint. Multi-step integration provides no detection advantage (Sec. 4.8). For a query image I^q , let x_p^q=x_p(I^q) denote the standardized token at position p. Each query token is perturbed with \epsilon _p\sim \mathcal N(0,I_d) at operating time t,
(3)
z_p^q(t)=t\,x_p^q+(1-t)\epsilon _p, \label {eq:perturbed_query}
From the definition of Z_t , X=Z_t+(1-t)(X-\epsilon ). \label {eq:state_rearrangement}
(7)
and its counterpart is recovered as
(4)
\widehat {x}_p^q(t) = \mathcal R_{\widehat {\theta },t}\!\left (z_p^q(t)\right ). \label {eq:recovered_counterpart}
Taking conditional expectations given Z_t=z, using \protect \mathbb E[Z_t\mid Z_t=z]=z and applying Eq. (3), results in \mathbb E\!\left [X\mid Z_t=z\right ] = z+(1-t)v^\star (z,t). \label {eq:posterior_mean}
(6)
(8)
All query tokens are processed in one batch, so recovery requires a single forward pass through v_{\widehat {\theta }} . Equation (5) identifies the conditional mean under the normal-token corruption model. For potentially anomalous queries, Eq. (8) uses the learned field to estimate a normality-biased counterpart; the identity alone does not guarantee recovery of an actual defect-free counterpart or anomaly separation. The post-hoc analysis in Suppl. B.1 supports this interpretation: recovery residuals increase with distance to the unrotated support-token bank, while recovered tokens generally move closer to that bank.
(5)
At the population optimum, this single-step recovery is a conditional clean-token estimator expressed through the straightpath CFM velocity field. This identity relates to Tweedie’s formula [9] and to conversions between velocity, noise, and clean-data prediction in diffusion models [13, 28]. Flownomaly uses this relation to construct a nonlinear, normalitybiased recovery operator from few-shot normal supports. 4
3.4. Anomaly Scoring
candidate times, and no anomalous samples or test labels are used. JGN is therefore a normal-only rule for selecting the operating time rather than an estimator of the category-wise test-label optimum. Formal definitions, the random-probe estimator, and the selection rule are given in Suppl. A.3; the candidate grid and remaining constants appear in Sec. 4.3.
The anomaly score for each patch token is given by the squared recovery residual: a_p^q(t) = \left \|x_p^q-\widehat {x}_p^q(t)\right \|_2^2 . \label {eq:token_score}
(9)
Collecting a_p^q(t) over all patch positions forms the residual map at token resolution. For dense localization, the map is Gaussian-smoothed with \sigma =0.8 token widths and bilinearly upsampled to image resolution to yield the predicted anomaly map. For image-level detection, the anomaly score averages the largest \alpha fraction of the unsmoothed, upsampled map; both predictions are evaluated at t^\star .
4. Experiments The experiments evaluate Flownomaly for few-shot anomaly detection and localization on MVTec-AD and VisA (Sec. 4.5), and under the sample-shot setting on Real-IAD (Sec. 4.6). Beyond baseline comparisons, targeted ablations validate Flownomaly’s central design choices, spanning single-step recovery, normal-only operating-time calibration, residual scoring, and backbone scaling (Sec. 4.8).
3.5. Normal-Only Operating-Time Calibration The operating time t controls how strongly recovery modifies a query token. At the population optimum, recovery becomes query-independent as t\to 0 and approaches the global normal mean, while as t\to 1, the factor 1-t suppresses the field update and recovery approaches the identity. Neither extreme provides useful conditional recovery, so the operating time must be selected from the interior. Without a normal-only selection rule, t must be fixed in advance. Let \rho _t(x;\epsilon )=x-\mathcal R_{\widehat {\theta },t} (tx+(1-t)\epsilon ) denote the recovery residual, whose squared norm is the anomaly score of Eq. (9). A useful operating time makes this residual respond strongly to small deviations from normal appearance while remaining small on normal tokens. Locally, an anomalous token can be viewed as a perturbed normal token. This motivates a signal-to-noise criterion computed from normal calibration views alone: the residual response to a perturbation is the signal, while the upper-tail residual of normal tokens is the noise level. For calibration view m and noise repetition j, the gain \protect \mathcal G_{m,j}(t) measures the squared first-order response of the residual to input changes, averaged over calibration tokens and random unit directions, since anomaly directions are unknown. The upper-tail level \protect \mathcal F_{m,j}(t) is the mean of the largest 1\% of squared residuals produced by the same tokens. Their ratio defines the Jacobian gain-to-noise (JGN) score: \mathcal C_{m,j}(t) = \frac {\mathcal G_{m,j}(t)} {\mathcal F_{m,j}(t)+\delta }, \label {eq:jvp_gain_noise}
4.1. Datasets Flownomaly is evaluated on three industrial anomaly detection benchmarks: MVTec-AD [4], VisA [37], and RealIAD [31], comprising 15, 12, and 30 categories, respectively. Following established FSAD protocols [6, 18, 29], the first two benchmarks use randomly selected normal reference images under 1-, 2-, and 4-shot settings. For Real-IAD, each selected physical sample contributes five fixed views under a multi-view sample-shot protocol.
4.2. Evaluation Metrics Following standard practice [6, 27], image-level performance is evaluated by AUROC (I-AUROC), AUPR, and F_{1,\max } , while pixel-level performance is evaluated via AUROC (P-AUROC), AUPRO, and F_{1,\max } , with all metrics averaged across categories. F_{1,\max } is maximized over decision thresholds, and AUPRO is integrated up to a false-positive rate of 0.3 [4].
4.3. Implementation Details Flownomaly employs a frozen DINOv2 ViT-g/14-reg encoder [7, 26] at 672\times 672 resolution, aggregating features from blocks \ifmmode \lbrace \else \textbraceleft \fi 16,20,24,28,32\}, corresponding to 40–80% relative depth. The encoder output is a 48\times 48 spatial grid of standardized patch tokens. The time-conditioned residual MLP uses a bottleneck width of d/2, half the token embedding dimension, and is optimized with AdamW and a cosine learning-rate schedule. Following SubspaceAD [18], each normal support is augmented with 30 random rotations sampled from 0^\circ –345^\circ for fitting, while validation and calibration each use three independently sampled rotations. Consistent with prior work [6, 18], rotation augmentation is disabled for the orientation-sensitive MVTec-AD transistor category, which remains included in the aggregate evaluation. Operating time and scoring. JGN selects t^\star from \protect \mathcal T=\{0.05,0.10,\ldots ,0.95\} using normal calibration views
(10)
where \delta >0 provides numerical stability. Under a first-order isotropic approximation, a larger JGN score indicates that smaller input deviations can produce increases in squared residuals comparable to the upper-tail squared residuals of normal tokens. Over the candidate time grid \protect \mathcal T , the selected operating time t^\star is the smallest maximizer of the median across calibration views of the per-view median across noise repetitions. Median aggregation limits the influence of atypical views and noise draws. The same random draws are reused across 5
Table 1. Few-shot anomaly detection performance on MVTec-AD and VisA for category-specific methods. Flownomaly is reported as mean \pm standard deviation over 3 seeds. All values are percentages. Bold and underlined indicate the best and second-best results, respectively. MVTec-AD Setup
1-shot
Method
PatchCore [27] WinCLIP [16] PromptAD [20] AnomalyDINO [6] SubspaceAD [18] DCP-SFR [17] ANoCo [29] Flownomaly
2-shot
PatchCore [27] WinCLIP [16] PromptAD [20] AnomalyDINO [6] SubspaceAD [18] DCP-SFR [17] ANoCo [29] Flownomaly
4-shot
PatchCore [27] WinCLIP [16] PromptAD [20] AnomalyDINO [6] SubspaceAD [18] DCP-SFR [17] ANoCo [29] Flownomaly
Image-level AUROC AUPR
F_{1,\max }
VisA
Pixel-level AUROC AUPRO
F_{1,\max }
Image-level AUROC AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
83.4 93.1 94.6 96.6 97.1 97.3 97.9
92.2 96.5 97.1 98.2 98.6 98.8 99.1
90.5 93.7 95.2 95.8 96.7 96.7 96.9
92.0 95.2 95.9 96.8 97.5 96.9 97.7
79.7 87.1 87.9 92.7 94.5 92.7 95.4
50.4 55.9 53.2 60.2 60.5 60.7 64.9
79.9 83.8 86.9 87.4 93.2 92.0 92.7
82.8 85.1 88.4 89.0 93.0 93.7 93.3
81.7 83.1 82.9 84.3 89.6 87.8 88.8
95.4 96.4 96.7 97.8 98.2 98.2 98.7
80.5 85.1 85.1 92.5 95.5 93.3 94.9
38.0 41.3 35.0 45.1 47.5 44.9 51.9
97.8±0.9
99.1±0.3
97.4±0.3
98.0±0.1
95.5±0.3
65.3±0.5
95.3±0.7
95.6±0.7
91.7±0.6
98.7±0.0
96.3±0.2
54.0±0.2
86.3 94.4 95.7 96.9 97.5 97.7 98.4
93.8 97.0 97.9 98.2 98.8 98.9 99.2
92.0 94.4 95.3 96.1 97.0 97.0 97.3
93.3 96.0 96.2 97.0 97.8 97.1 98.0
82.3 88.4 88.5 93.1 94.9 93.3 96.0
53.0 58.4 54.3 61.0 61.7 61.6 65.3
81.6 84.6 88.3 89.7 93.8 92.5 93.3
84.8 85.8 90.0 90.7 93.4 94.2 92.9
82.5 83.0 82.4 86.3 90.2 88.0 90.3
96.1 96.8 97.1 98.0 98.3 98.4 98.7
82.6 86.2 85.8 93.4 95.7 93.8 94.7
41.0 43.5 37.1 47.6 45.8 46.9 53.0
98.4±0.5
99.4±0.2
97.7±0.5
98.3±0.0
96.0±0.2
66.2±0.2
96.1±0.3
95.9±0.3
92.8±0.5
98.9±0.0
96.6±0.1
54.3±0.5
88.8 95.2 96.6 97.7 98.0 98.0 98.7
94.5 97.3 98.5 98.7 99.0 98.9 99.3
92.6 94.7 96.0 96.6 97.2 96.8 97.6
94.3 96.2 96.5 97.2 97.9 97.5 98.1
84.3 89.0 90.5 93.4 95.1 93.5 96.2
55.0 59.5 55.2 61.8 62.7 61.9 65.7
85.3 87.3 89.1 92.6 94.7 92.8 95.2
87.5 88.8 90.8 92.9 94.3 94.7 95.1
84.3 84.2 83.1 88.8 91.1 88.9 91.7
96.8 97.2 97.4 98.2 98.4 98.6 98.8
84.9 87.6 86.2 94.1 96.0 94.2 95.7
43.9 47.0 38.9 49.4 47.1 47.1 54.2
98.5±0.4
99.4±0.2
97.9±0.5
98.4±0.1
96.2±0.2
66.6±0.4
96.3±0.4
95.9±0.6
93.1±0.5
99.0±0.0
96.7±0.0
54.2±0.3
(Suppl. A.3). Unless stated otherwise, inference uses one Gaussian sample per token and one batched velocity-field evaluation. The image score averages the largest \alpha =1\% of the unsmoothed, upsampled residual map, following DINOv2-based FSAD methods [6, 18].
seven of nine image-level comparisons and remains within 0.2 pp of ANoCo on the other two. In the full-shot setting, Flownomaly achieves the best or tied-best result in 11 of 12 metric–dataset comparisons. Complete full-shot results for MVTec-AD and VisA are reported in Suppl. C.2. Qualitative comparison. Figure 3 illustrates representative localization results in the 1-shot setting. Flownomaly accurately localizes both fine texture defects and structural damage while suppressing background responses.
4.4. Baselines Flownomaly is evaluated against representative FSAD methods spanning distinct modeling paradigms: memorybased patch retrieval (PatchCore [27], AnomalyDINO [6]), vision-language association and prompt learning (WinCLIP [16], PromptAD [20]), linear subspace modeling (SubspaceAD [18]), structural cue refinement (DCP-SFR [17]), and graph-based alignment (ANoCo [29]).
4.6. Sample-Shot Anomaly Detection on Real-IAD Real-IAD contains five views per physical sample. Under the sample-shot protocol, selecting s\in \{1,2,4\} normal samples provides 5s reference images. Table 2 reports detection and localization performance under this setting across 3 seeds. PatchCore, PromptAD, AnomalyDINO, and SubspaceAD are reproduced under published settings. ANoCo and DCPSFR are omitted as their implementations were unavailable. Flownomaly achieves the strongest image-level performance and the highest pixel-level AUROC and F_{1,\max } at every sample-shot setting. In the 1-sample setting, image AUROC increases from 85.2% with SubspaceAD to 88.2%, while pixel-level F_{1,\max } improves from 42.7% to 50.6%. These results indicate that the recovery formulation remains effective under multi-view references.
4.5. Few-Shot Anomaly Detection Performance Table 1 compares Flownomaly with recent category-specific methods across the 1-, 2-, and 4-shot settings. Flownomaly consistently achieves strong localization performance across both MVTec-AD and VisA datasets, attaining the best or tiedbest pixel-level results across all evaluated shot settings and metrics. The largest image-level gains occur on VisA, where AUROC surpasses the strongest baseline by 2.1, 2.3, and 1.1 percentage points (pp) in the 1-, 2-, and 4-shot regimes, respectively. On MVTec-AD, Flownomaly leads or ties 6
(a) MVTec-AD
(b) VisA SubspaceAD
Flownomaly
Query
Ground-Truth AnomalyDINO
SubspaceAD
Flownomaly
Fryum
Ground-Truth AnomalyDINO
Cable
Macaroni1
Metal Nut
Pcb3
Bottle
Query
Figure 3. Qualitative comparison on MVTec-AD and VisA under the 1-shot setting. Columns show the query image, ground-truth mask, and anomaly maps from the open-source category-specific baselines AnomalyDINO [6] and SubspaceAD [18], followed by Flownomaly. Flownomaly delineates defects more sharply, with fewer spurious background activations and closer agreement with the ground-truth masks on both datasets. Additional qualitative results and representative failure modes are provided in Suppl. D and B.4, respectively.
Table 2. Sample-shot anomaly detection and localization on RealIAD. Results are percentages reported as mean \pm standard deviation over 3 seeds. Bold and underlined indicate the best and second-best results, respectively.
Method
AUROC
Image-level AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
4.8. Ablation Study The ablation study examines the main design choices of Flownomaly, focusing on single-step recovery, operatingtime calibration, recovery-residual scoring, and backbone scaling. Further ablations covering the feature representation and the support-view construction are provided in the supplementary material.
1-sample shot (5 views) PatchCore [27] PromptAD [20] AnomalyDINO [6] SubspaceAD [18]
79.5±0.1 79.4±0.2 82.5±0.1 85.2±0.3
77.7±0.1 77.2±0.4 78.3±0.4 81.6±0.4
71.5±0.0 71.4±0.1 73.9±0.1 76.1±0.0
96.9±0.0 95.9±0.1 97.6±0.0 98.8±0.0
84.3±0.1 81.7±0.1 91.7±0.2 97.1±0.1
30.7±0.2 30.8±0.2 37.0±0.5 42.7±0.2
Flownomaly
88.2±0.2
84.9±0.3
78.5±0.2
99.2±0.0
97.1±0.0
50.6±0.1
Single-step recovery is sufficient. A central premise of Flownomaly is that the learned velocity field can directly serve as a conditional-mean recovery operator without integrating a complete flow trajectory. Table 3 compares singlestep recovery with Euler integration across 2, 5, 10, and 20 velocity evaluations from the same perturbed query state. All variants share the checkpoint, operating time, and initial Gaussian draw, isolating the effect of trajectory integration.
2-sample shot (10 views) PatchCore [27] PromptAD [20] AnomalyDINO [6] SubspaceAD [18]
81.6±0.4 80.6±0.5 84.2±0.1 86.3±0.2
79.7±0.2 78.5±0.7 80.1±0.2 82.8±0.2
72.9±0.1 72.3±0.4 75.2±0.2 77.1±0.2
97.3±0.0 96.2±0.1 97.9±0.0 98.9±0.0
85.9±0.1 82.6±0.4 92.3±0.0 97.2±0.0
31.7±0.4 31.7±0.7 38.0±0.3 43.7±0.2
Flownomaly
88.7±0.1
85.0±0.2
79.2±0.1
99.2±0.0
97.0±0.1
49.0±0.1
4-sample shot (20 views) PatchCore [27] PromptAD [20] AnomalyDINO [6] SubspaceAD [18]
83.3±0.4 82.1±0.3 85.8±0.1 87.1±0.2
81.4±0.2 80.1±0.4 81.8±0.1 83.7±0.2
74.4±0.3 73.2±0.1 76.7±0.2 77.8±0.1
97.7±0.0 96.4±0.1 98.1±0.0 98.9±0.0
87.0±0.1 83.2±0.3 92.8±0.1 97.3±0.0
32.4±0.4 33.0±0.6 38.8±0.3 44.5±0.2
Flownomaly
89.5±0.2
86.0±0.1
79.9±0.1
99.2±0.0
97.0±0.0
49.0±0.3
Table 3. Effect of the number of velocity-field evaluations (NFE) in the 1-shot setting.
4.7. Computational Efficiency Only the velocity network is optimized, as the encoder remains frozen. In the 1-shot setting, fitting one category takes a median of 24 s on MVTec-AD and 28 s on VisA, with 2.6 GB of peak GPU memory. At inference, the velocity network contributes 2.2 ms of the total 60.9 ms image latency (Table 3), with most computation arising from the frozen encoder. The velocity network adds 23.2 M parameters per category (\approx 88 MiB); unlike token memory banks, this footprint does not grow with k. Additional details are given in Suppl. A.4.
NFE
MVTec-AD I-AUROC P-AUROC
VisA I-AUROC P-AUROC
Latency (ms/image) Velocity Total model
1
97.8±0.9
98.0±0.1
95.3±0.7
98.7±0.0
2.2
60.9
2 5 10 20
97.8±1.0 97.8±1.0 97.8±1.0 97.8±1.0
98.1±0.1 98.1±0.1 98.1±0.1 98.1±0.1
95.2±0.7 95.1±0.8 95.1±0.8 95.1±0.8
98.7±0.0 98.7±0.0 98.7±0.0 98.7±0.0
3.7 8.0 15.1 29.2
62.4 66.7 73.8 87.9
Increasing NFE from 1 to 20 changes image- and pixellevel AUROC by at most 0.2 pp while raising velocitynetwork latency by 13.3\times , from 2.2 to 29.2 ms/image. Total model latency increases from 60.9 to 87.9 ms/image. Therefore, full trajectory integration provides negligible detection benefit despite substantially higher computational cost, empirically supporting the single-step recovery formulation. 7
Table 4. Effect of the scoring rule (1-shot setting), with all other factors fixed. Best results are in bold.
Operating-time robustness and normal-only selection. The label-free JGN calibration is assessed by sweeping t\in \mathcal T . This reveals how sharply detection depends on t and whether the selected time lies in a high-performing region. For each category and metric (image-level AUROC or AUPR), the retrospective regret at t is the gap between the best value over \protect \mathcal T and the value at t. Figure 4 reports this regret averaged across categories. Test labels are used only to define the retrospective reference.
Mean regret across categories (pp)
AUROC regret
1.5
AUPR regret
MVTec-AD
MVTec-AD I-AUROC P-AUROC
VisA I-AUROC P-AUROC
Recovery residual
97.8±0.9
98.0±0.1
95.3±0.7
98.7±0.0
Velocity norm Cosine residual
96.9±0.9 96.7±0.6
97.3±0.1 97.9±0.1
94.3±0.2 90.2±0.4
98.4±0.0 97.8±0.2
Backbone scaling. The accuracy–latency trade-off is evaluated across DINOv2-S, -B, -L, and -g. For each backbone, the velocity-network bottleneck width is set to half the encoder’s token embedding dimension (d/2). Table 5 illustrates that scaling from the DINOv2-S configuration to the DINOv2-g improves image AUROC by 3.1 pp on MVTecAD and 3.5 pp on VisA, while model latency increases from 18.1 to 60.9 ms/image. A comparison in Suppl. C.1 shows that DINOv3-7B [30] does not improve over DINOv2-g in this setting.
Median JGN selection
VisA
1.0 0.5 0.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
Operating time t
Scoring rule
Operating time t
Table 5. Backbone-scale ablation in the 1-shot setting. Best results are in bold.
Figure 4. Operating-time robustness on MVTec-AD and VisA in the 1-shot setting. Curves show mean category-wise image-level regret; lower is better. The dashed lines mark the median categorywise JGN selection at t=0.65.
Both datasets exhibit a broad low-regret interior, indicating robust performance across a wide range of operating times. The median category-wise JGN selection is 0.65 on both datasets and lies within this region. Category-wise JGN selection yields median image-AUROC regrets of 0.06 and 0.14 pp on MVTec-AD and VisA relative to the retrospective oracle. Across alternative feature configurations, JGN selects operating times from 0.60 to 0.85 on both datasets (Suppl. B.3), rather than returning a fixed value. Additional calibration analysis is provided in Suppl. B.2.
MVTec-AD I-AUROC P-AUROC
VisA I-AUROC P-AUROC
18.1 25.5 51.9
94.7±1.3 96.4±1.0 97.3±0.9
97.7±0.1 97.8±0.1 97.9±0.1
91.8±1.0 93.4±0.8 94.3±0.8
98.0±0.1 98.3±0.0 98.5±0.0
60.9
97.8±0.9
98.0±0.1
95.3±0.7
98.7±0.0
Backbone
Latency (ms)
DINOv2-S DINOv2-B DINOv2-L DINOv2-g
5. Conclusion This work has presented Flownomaly, which reframes category-specific FSAD as normal-counterpart recovery in frozen DINOv2 feature space. Its central insight is that the conditional-mean structure of straight-path CFM enables a normality-biased counterpart to be estimated in a single recovery step, without trajectory integration. Residuals between query features and their recovered counterparts provide the anomaly signal for both detection and localization. Field fitting and checkpoint selection rely exclusively on support-derived normal data, while the normal-only Jacobian gain-to-noise criterion calibrates the operating time without anomalous validation data. Flownomaly achieves state-of-the-art results on VisA and Real-IAD, while leading most evaluated comparisons on MVTec-AD. Additional field evaluations provide negligible detection benefit, while performance remains stable across a broad range of operating times. Because token-wise residual scoring does not explicitly enforce global structural constraints, logical anomalies such as incorrect part counts remain challenging (Suppl. B.4). Future work will investigate category-agnostic recovery fields, explicit modeling of such global constraints, and more compact feature extractors.
Recovery-residual scoring. Table 4 evaluates whether the proposed recovery residual provides a more informative anomaly signal than alternative quantities derived from the same recovery process, under otherwise identical settings. The recovery residual explicitly compares the displacement implied by the perturbed query with the velocity predicted by the normal model. The velocity norm measures only the magnitude of that prediction, while the scale-invariant cosine discrepancy measures angular disagreement between the query token and its recovered counterpart. Replacing the recovery residual with the velocity norm reduces image AUROC by 0.9/1.0 pp on MVTec-AD/VisA, while the cosine discrepancy reduces it by 1.1/5.1 pp. These results show that the full recovery discrepancy is more informative than either alternative. 8
Acknowledgements
[12] Denis Gudovskiy, Shun Ishizaka, and Kazuki Kozuka. Cflowad: Real-time unsupervised anomaly detection with localization via conditional normalizing flows. In 2022 IEEE/CVF winter conference on applications of computer vision (WACV), pages 1819–1828. IEEE, 2022. 2 [13] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020. 4 [14] Chaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang, Michael Spratling, and Yan-Feng Wang. Registration based few-shot anomaly detection. In European conference on computer vision, pages 303–319. Springer, 2022. 1, 2 [15] Michael F Hutchinson. A stochastic estimator of the trace of the influence matrix for laplacian smoothing splines. Communications in Statistics-Simulation and Computation, 18(3): 1059–1076, 1989. 12 [16] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang, Avinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 19606–19616, 2023. 1, 2, 6 [17] Le Jiang, Yan Huang, Zhen Xu, Yong Xu, Hau-San Wong, and Si Wu. Defect cue-preserved structural feature refinement for few-shot anomaly detection. In 2026 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2026), pages 35607–35616, 2026. 2, 6 [18] Camile Lendering, Erkut Akdag, and Egor Bondarau. Subspacead: Training-free few-shot anomaly detection via subspace modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 28557–28566, 2026. 1, 2, 3, 5, 6, 7, 15, 16, 17, 18 [19] Liangwei Li, Lin Liu, Hanzhe Liang, Juanxiu Liu, Jing Zhang, Ruqian Hao, Xiaohui Du, Yong Liu, and Pan Li. Time-reversed flow matching with worst transport in highdimensional latent space for image anomaly detection. arXiv preprint arXiv:2508.05461, 2025. 3 [20] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen, Yanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16838–16848, 2024. 2, 6, 7 [21] Yufei Li, Long Tian, Yuyang Dai, Wenchao Chen, Liang Bao, and Xiyang Liu. Fastref: Fast prototype refinement for few-shot industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 43040–43049, 2026. 2 [22] Zhong Li, Qi Huang, Yuxuan Zhu, Lincen Yang, Mohammad Mohammadi Amiri, Niki van Stein, and Matthijs van Leeuwen. Scalable, explainable and provably robust anomaly detection with one-step flow matching. Advances in Neural Information Processing Systems, 38:87834–87899, 2026. 3 [23] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. 1, 3, 4 [24] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified
This work is supported by the STRUCTURE ITEA 24017 project.
References [1] Michael Albergo, Nicholas M Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209): 1–80, 2025. 1, 3, 4 [2] Haim Avron and Sivan Toledo. Randomized algorithms for estimating the trace of an implicit symmetric positive semidefinite matrix. Journal of the ACM (JACM), 58(2):1–34, 2011. 12 [3] Farzad Beizaee, Sina Hajimiri, Ismail Ben Ayed, Gregory Lodygensky, Christian Desrosiers, and Jose Dolz. Reflect: Rectified Flows for Efficient Brain Anomaly Correction Transport . In proceedings of Medical Image Computing and Computer Assisted Intervention – MICCAI 2025. Springer Nature Switzerland, 2025. 3 [4] Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad–a comprehensive real-world dataset for unsupervised anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9592–9600, 2019. 1, 2, 5 [5] Shengzhe Chen, Mehrdad Moradi, Kamran Paynabar, and Hao Yan. Flow mismatching: Unsupervised anomaly detection via velocity discrepancies in flow matching models. arXiv preprint arXiv:2605.23070, 2026. 3 [6] Simon Damm, Mike Laszkiewicz, Johannes Lederer, and Asja Fischer. Anomalydino: Boosting patch-based few-shot anomaly detection with dinov2. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 1319–1329. IEEE, 2025. 1, 2, 5, 6, 7, 15, 16, 17, 18 [7] Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In International conference on learning representations, pages 2632–2652, 2024. 5 [8] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse distillation from one-class embedding. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 9727–9736. IEEE, 2022. 2 [9] Bradley Efron. Tweedie’s formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011. 4 [10] Zheng Fang, Xiaoyang Wang, Haocheng Li, Jiejie Liu, Qiugui Hu, and Jimin Xiao. Fastrecon: Few-shot industrial anomaly detection via fast feature reconstruction. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 17435–17444. IEEE, 2023. 1, 2 [11] Yaoxuan Feng, Wenchao Chen, Yuxin Li, Bo Chen, Yubiao Wang, Zixuan Zhao, Hongwei Liu, and Mingyuan Zhou. OmiAD: One-step adaptive masked diffusion model for multiclass anomaly detection via adversarial distillation. In Fortysecond International Conference on Machine Learning, 2025. 2
9
flow. In The Eleventh International Conference on Learning Representations, 2023. 1, 3 [25] 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. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9974–9983. IEEE, 2025. 2 [26] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. Featured Certification. 3, 5 [27] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 14318–14328, 2022. 1, 2, 5, 6, 7, 15 [28] Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. In International Conference on Learning Representations, 2022. 4 [29] Jungwook Seo, Minjeong Kim, Younkwan Lee, Seungho Shin, and Sungyong Baik. Anomaly as non-conformity via training-free graph laplacian energy minimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 21336–21345, 2026. 1, 2, 5, 6, 15 [30] Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3. arXiv preprint arXiv:2508.10104, 2025. 8, 14 [31] Chengjie Wang, Wenbing Zhu, Bin-Bin Gao, Zhenye Gan, Jiangning Zhang, Zhihao Gu, Shuguang Qian, Mingang Chen, and Lizhuang Ma. Real-iad: A real-world multi-view dataset for benchmarking versatile industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22883–22892, 2024. 2, 5 [32] Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu, Yu Zheng, and Xinyi Le. A unified model for multi-class anomaly detection. Advances in Neural Information Processing Systems, 35:4571–4584, 2022. 1, 2 [33] Jiawei Yu, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu, Rui Zhao, and Liwei Wu. Fastflow: Unsupervised anomaly detection and localization via 2d normalizing flows. arXiv preprint arXiv:2111.07677, 2021. 2 [34] Guangyao Zhai, Yue Zhou, Xinyan Deng, Lars Heckler-Kram, Nassir Navab, and Benjamin Busam. Foundation visual encoders are secretly few-shot anomaly detectors. In International Conference on Learning Representations, pages 97353– 97376, 2026. 2 [35] Hui Zhang, Zheng Wang, Dan Zeng, Zuxuan Wu, and YuGang Jiang. Diffusionad: Norm-guided one-step denoising
diffusion for anomaly detection. IEEE transactions on pattern analysis and machine intelligence, 47(8):7140–7152, 2025. 2 [36] Yixuan Zhou, Xing Xu, Jingkuan Song, Fumin Shen, and Heng Tao Shen. Msflow: Multiscale flow-based framework for unsupervised anomaly detection. IEEE transactions on neural networks and learning systems, 36(2):2437–2450, 2024. 2 [37] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, and Onkar Dabeer. Spot-the-difference self-supervised pretraining for anomaly detection and segmentation. In European conference on computer vision, pages 392–408. Springer, 2022. 2, 5
10
Flownomaly: Single-Step Conditional-Mean Recovery for Few-Shot Anomaly Detection Supplementary Material width d/2, and also provides the scale and shift used to modulate each of four residual blocks. After projection back to d dimensions, a learned scalar function of t gates an inputaligned skip from z_t . The output projection and skip gate are initialized at zero. The resulting velocity network contains 23.2 M trainable parameters. The network is optimized with AdamW, weight decay 10^{-4} , and a cosine learningrate schedule from 10^{-3} to 10^{-6} for at most 1000 epochs. Training employs batches of 10,240 tokens, mixed precision, and gradient-norm clipping at 1.0. Fixed-draw validation is performed every three epochs; early stopping operates with a patience of ten evaluations and requires an improvement of at least 10^{-4} .
This supplement provides implementation, optimization, and efficiency details (Sec. A); additional analyses covering feature ablations, operating-time calibration, recovery contraction diagnostics, and qualitative failure modes (Sec. B); additional evaluations covering full-shot benchmarking and backbone comparisons (Sec. C); extended qualitative localization results across datasets (Sec. D); and per-category few-shot and sample-shot performance tables (Sec. E) supporting the main paper.
A. Implementation and Efficiency A.1. Support Sampling Flownomaly results in the main paper are reported over three support samplings, generated with random seeds 42, 43, and 44. For each sampling and category, the selected k defectfree images determine all fitting, validation, and calibration views. The three pools are built from the same k images but from disjoint sets of augmentations. The fitting pool contains each support image together with 30 rotations drawn uniformly from 0^\circ –345^\circ ; the validation and calibration pools contain three rotations each. The three sets of angles are sampled from separate random streams for fitting, checkpoint selection, and calibration. Rotation introduces padding regions that carry no object content: those tokens are masked out of every pool, and therefore out of the standardization statistics \mu _\ell ,\sigma _\ell , the fitting batches, the validation loss, and the calibration statistics.
A.3. Calibration and Scoring Operating-time calibration takes three calibration views per support image, giving M=3k total views in the k-shot setting. These views are independent rotations when rotation augmentation is enabled and identity views otherwise. In the full-shot setting, M instead denotes the number of images in the held-out calibration partition. Calibration evaluates J=4 independent Gaussian-noise repetitions and B=4 random probes per token, with the numericalstability constant set to \delta =10^{-8} . All candidate times in \protect \mathcal T=\{0.05,0.10,\ldots ,0.95\} share the same noise draws and probe directions, reducing sampling variation in comparisons between candidates. Definitions. Let m\in \{1,\ldots ,M\} index calibration views, \protect \mathcal P_m the positions of view m whose tokens are valid, that is, outside augmentation padding, and x_{m,p}^{\mathrm {cal}} the token at position p of view m. For each view, j\in \{1,\ldots ,J\} indexes independent Gaussian draws \epsilon _{m,j,p}\sim \mathcal N(0,I_d), one per token. With
Standardized multi-depth tokens. With h_p^{(\ell )}(I)\in \mathbb R^d denoting the DINOv2 token at position p of block \ell , the standardized multi-depth token x_p(I) is defined as x_p(I) = \frac {1}{|\mathcal B|} \sum _{\ell \in \mathcal B} \frac {h_p^{(\ell )}(I)-\mu _\ell }{\sigma _\ell +\eta }, \label {eq:supp_semantic_token}
(S1)
\rho _t(x;\epsilon ) = x-\mathcal R_{\widehat {\theta },t}\!\left (tx+(1-t)\epsilon \right ) \label {eq:supp_residual_function}
(S2)
denoting the residual of the main paper, where \protect \mathcal R_{\widehat \theta ,t}(z)=z+(1-t)v_{\widehat \theta }(z,t) is the recovery operator, and J_{\rho _t}(x;\epsilon )=\partial \rho _t(x;\epsilon )/\partial x its Jacobian with respect to the token while holding \epsilon fixed, the two terms of the JGN ratio are
where \protect \mathcal B is the set of selected blocks, \mu _\ell \in \mathbb R^d and \sigma _\ell \in \mathbb R^d are the channel-wise mean and standard deviation of block \ell evaluated over valid tokens of the fitting views, and \eta >0 ensures numerical stability. Only the fitting views define \mu _\ell and \sigma _\ell , which are then applied unchanged to validation, calibration, and query tokens.
\mathcal G_{m,j}(t) &= \operatorname *{mean}_{p\in \mathcal P_m} \mathbb E_u \left \| J_{\rho _t}\!\left ( x_{m,p}^{\mathrm {cal}};\epsilon _{m,j,p} \right )u \right \|_2^2 , \label {eq:supp_gain_term}\\ \mathcal F_{m,j}(t) &= \operatorname {TopMean}_{1\%} \left \{ \left \| \rho _t\!\left (x_{m,p}^{\mathrm {cal}};\epsilon _{m,j,p}\right ) \right \|_2^2 :p\in \mathcal P_m \right \}, \label {eq:supp_residual_floor}
A.2. Architecture and Optimization (S4)
The velocity network receives z_t and a shared 256dimensional sinusoidal embedding of t. The time embedding is concatenated with z_t before projection to a bottleneck of
where the expectation in Eq. (S3) is over random unit directions u\in \mathbb R^d . The gain term therefore averages over 11
positions and directions, whereas the upper-tail term aggregates only over positions to summarize the largest residuals produced by a normal view. Why the ratio is well posed. Both the residual and its Jacobian contain a factor 1-t, so \protect \mathcal G_{m,j}(t) and \protect \mathcal F_{m,j}(t) share a (1-t)^2 factor. Apart from the stabilizer \delta , this factor cancels in their ratio, preventing a trivial preference induced by remaining-time scaling: a criterion built on the gain alone would drift toward small t purely through this scaling. Estimating the direction-averaged Jacobian gain. The probes u_{m,j,p,b}\in \mathbb R^d , with b\in \{1,\ldots ,B\}, are Rademacher vectors with entries drawn uniformly from \ifmmode \lbrace \else \textbraceleft \fi -1/\sqrt d,+1/\sqrt d\}, so each probe has unit norm and \protect \mathbb E[uu^\top ]=I_d/d. For any matrix J,
discarded as warm-up. In the 1-shot setting, velocity-field fitting takes a median of 24 s per category on MVTec-AD and 28 s on VisA (maxima 37 and 72 s, scaling linearly with k), while JGN calibration adds 14 s; feature extraction takes 2 s. Peak GPU memory across all stages is 2.6 GB. The velocity network contains 23.2 M parameters (\approx 88 MiB), while the frozen 1.1 B-parameter encoder is shared across categories; unlike token memory banks, the velocity network’s footprint does not grow with k.
B. Additional Analyses B.1. Recovery Contracts Toward Normal Support Features For the population-optimal field, single-step recovery satisfies \mathbb E[X\mid Z_t=z]=z+(1-t)v^\star (z,t).
\mathbb E_u\!\left [\lVert Ju\rVert _2^2\right ] =\mathbb E_u\!\left [\operatorname {tr}\!\left (J^\top J\,uu^\top \right )\right ] =\frac {\operatorname {tr}(J^\top J)}{d} =\frac {\lVert J\rVert _F^2}{d},
This identity motivates normality-biased recovery, but does not establish how a field learned from finite normal supports behaves on anomalous queries. This analysis examines the implied mechanism directly: tokens farther from the empirical normal set should undergo larger recovery changes, and those changes should move them toward that set. Let \protect \mathcal X_{\mathrm {sup}} denote the token bank extracted from the unrotated normal support images assigned to fitting. This finite bank serves only as an empirical reference for the following analysis; it excludes the rotation-augmented fitting views and should not be interpreted as the complete training distribution or an underlying normal manifold. Throughout this subsection, q abbreviates a query token x_p^q of the main paper and \@mathmeasure \z@ \textstyle {x}\ifdim \wd \z@ >\tw@ em\mathaccent "055B{x}\else \mathaccent "0362{x}\fi (q) its recovered counterpart. For each query token, its nearest-support distance is evaluated before and after recovery:
so the probe average is an unbiased estimator of the directionaveraged squared gain, in the manner of stochastic trace estimation applied to J^\top J [2, 15]. Replacing the expectation in Eq. (S3) by its B-probe estimate gives the quantity actually computed, \widehat {\mathcal G}_{m,j}(t) = \operatorname *{mean}_{\substack {p\in \mathcal P_m\\ b\in \{1,\ldots ,B\}}} \left \lVert J_{\rho _t}\!\left ( x_{m,p}^{\mathrm {cal}};\epsilon _{m,j,p} \right )u_{m,j,p,b} \right \rVert _2^2 ,
where each Jacobian–vector product is obtained by one forward-mode automatic-differentiation pass through the residual, so the full Jacobian is never materialized. The finite-probe estimate \@mathmeasure \z@ \textstyle {\mathcal G}\ifdim \wd \z@ >\tw@ em\mathaccent "055B{\mathcal G}\else \mathaccent "0362{\mathcal G}\fi _{m,j}(t) is substituted for \protect \mathcal G_{m,j}(t) when computing JGN. JGN is computed through the complete recovery mapping, including the time-dependent input skip. Rademacher probes are adopted because anomaly directions are unavailable under normal-only calibration, so isotropic unit probes evaluate the direction-averaged response by construction. Operating-time selection. The final operating time t^\star selects the earliest candidate maximizing the median of the JGN ratio \protect \mathcal C_{m,j}(t)=\mathcal G_{m,j}(t)/(\mathcal F_{m,j}(t)+\delta ) across noise draws and calibration views:
\begin {aligned} d_{\mathrm {before}}(q) &= \min _{x\in \mathcal X_{\mathrm {sup}}}\|q-x\|_2,\\ d_{\mathrm {after}}(q) &= \min _{x\in \mathcal X_{\mathrm {sup}}} \|\widehat {x}(q)-x\|_2. \end {aligned} \label {eq:support_distances} (S6)
These are distances to the finite support set, not to an assumed underlying normal manifold. Let x_{\mathrm {NN}}(q) = \operatorname *{arg\,min}_{x\in \mathcal X_{\mathrm {sup}}}\|q-x\|_2.
t^\star = \min \!\left ( \operatorname *{arg\,max}_{t\in \mathcal T} \left [ \operatorname *{median}_{m} \operatorname *{median}_{j} \mathcal C_{m,j}(t) \right ] \right ). \label {eq:supp_operating_time_selection} (S5) Recovery dynamics are characterized via At inference, the residual map is Gaussian-smoothed with \sigma =0.8 token widths before bilinear upsampling. Image scoring aggregates the unsmoothed upsampled map.
\begin {aligned} r(q) &= \|q-\widehat {x}(q)\|_2^2,\\ \gamma (q) &= \frac {d_{\mathrm {after}}(q)} {d_{\mathrm {before}}(q)},\\ a(q) &= \frac { \bigl (\widehat {x}(q)-q\bigr )^\top \bigl (x_{\mathrm {NN}}(q)-q\bigr ) }{ \|\widehat {x}(q)-q\|_2 \|x_{\mathrm {NN}}(q)-q\|_2 }. \end {aligned} \label {eq:support_diagnostics} (S7)
A.4. Runtime, Memory, and Model Size All measurements are conducted on a single NVIDIA H100 GPU with mixed precision, reported as category-wise medians for a single seed (spread is across categories). Latency is measured from preprocessed input tensors with the first batch
The correlation between r(q) and d_{\mathrm {before}}(q) measures whether distance from normal support is reflected in the 12
Table S1. Retrospective image-AUROC regret of the normalonly JGN selection, measured in percentage points relative to the category-wise test-label oracle. Regret statistics are computed over categories for seed 42; the t^\star column reports the range of percategory selections across all three seeds.
anomaly score. A ratio \gamma (q)<1 indicates contraction toward the support set, while a(q)>0 indicates that the recovery update has a component pointing toward the nearest support token. Statistics are computed separately within each category and then summarized across categories. This prevents categories with more test tokens from dominating the analysis. For the binned curves, distances and residuals are normalized by their category-wise normal-token medians. Ground-truth masks serve only for this post-hoc stratification of normal and anomalous tokens. Figure S1 reveals the same pattern on both datasets. The recovery residual increases monotonically across nearestsupport-distance bins, with median category-wise Spearman correlations of 0.825 on MVTec-AD and 0.817 on VisA. The association remains strong within normal tokens (0.803/0.809) and anomalous tokens (0.921/0.918), rather than arising only from differences between the two groups. Recovered counterparts generally contract toward the normal support features. The median d_{\mathrm {after}}/d_{\mathrm {before}} is 0.861/0.826 for normal tokens and 0.760/0.782 for anomalous tokens on MVTec-AD/VisA. Relative to each category’s normal-token distance scale, the absolute contraction is 2.8\times /2.2\times larger for anomalous tokens. Recovery is directionally consistent with this contraction: median cosine alignment with the nearest-support direction is 0.503/0.558 for normal tokens and 0.635/0.605 for anomalous tokens. Therefore, larger residuals are associated with greater support distance, while recovery updates are generally directed toward empirical normal support features. Although this does not constitute an anomaly-separation guarantee, the observed behavior is consistent with the normality-biased recovery mechanism underlying Flownomaly.
Regret (pp) Dataset
t^\star range
MVTec-AD 0.60–0.75 VisA 0.65–0.70
Mean Median Maximum 0.15 0.54
0.06 0.14
0.82 4.82
Table S2. Category-level operating-time diagnostics for seed 42. Regret is the image-AUROC difference, in percentage points, from the retrospective test-label oracle.
MVTec-AD Category
VisA
t^\star
Regret (pp)
bottle 0.75 cable 0.65 capsule 0.65 carpet 0.70 grid 0.75 hazelnut 0.70 leather 0.70 metal nut 0.65 pill 0.70 screw 0.65 tile 0.70 toothbrush 0.65 transistor 0.60 wood 0.65 zipper 0.65
0.08 0.82 0.08 0.00 0.00 0.00 0.00 0.00 0.61 0.23 0.00 0.14 0.06 0.22 0.00
Category
t^\star
Regret (pp)
candle 0.70 capsules 0.65 cashew 0.65 chewinggum 0.65 fryum 0.65 macaroni1 0.65 macaroni2 0.70 pcb1 0.65 pcb2 0.65 pcb3 0.65 pcb4 0.65 pipe fryum 0.65 — — — — — —
0.09 0.36 0.02 0.04 0.23 0.26 4.82 0.18 0.03 0.00 0.02 0.45 — — —
B.3. Feature and Support-View Ablations
B.2. Operating-Time Selection and Robustness
As shown in Table S3, feature depth has the clearest and most consistent effect. Replacing the default 40–80% depth window with shallow 20–40% blocks reduces image AUROC by 12.1 pp on MVTec-AD and 9.3 pp on VisA, while pixel AUROC decreases by 2.1 and 5.2 pp. Retaining only the block at 80% depth preserves MVTec-AD performance but lowers VisA image AUROC by 3.3 pp. Removing layer-wise standardization has little effect on MVTec-AD but reduces VisA image AUROC by 1.3 pp. Removing rotation-derived views reduces image AUROC by 4.0 pp on MVTec-AD and 2.0 pp on VisA. This ablation also removes view diversity from the validation and calibration pools, therefore measuring the complete support-view construction rather than only fitting. The JGN-selected operating time also changes with the feature representation: the median t^\star shifts from 0.60 for shallow features to 0.85 without layer standardization, with the same ordering on both datasets, showing that the selected operating time responds to changes in the feature representa-
JGN calibrates a category-specific operating time t^\star from support-derived normal calibration views alone. To assess selection quality, retrospective regret is evaluated relative to an optimistic test-label oracle (the candidate time maximizing test image AUROC, evaluated strictly post hoc). As reported in Table S1, median regret is only 0.06 percentage points (pp) on MVTec-AD and 0.14 on VisA. VisA’s larger mean and maximum (4.82 pp) are driven by macaroni2, whose empirical test curve favors an earlier operating time. These regret statistics, together with the category-wise diagnostics in Table S2, are computed for seed 42; the percategory median selection for this sampling is 0.65 on both datasets. Figure S2 pools all category–seed pairs from seeds 42–44. Selections remain confined to t\in [0.60,0.75] on MVTecAD and [0.65,0.70] on VisA. Pooled over all 45 MVTec-AD pairs, the 0.65 and 0.70 bins are near-evenly populated (18 and 21 selections); on VisA, 0.65 accounts for 28 of 36 pairs.
13
Recovery reduces support distance Normal tokens
Median dafter/dbefore
1.0
100
0.8 0.6 0.4 0.2
2
23
1.5
1.5
.2
1.2
1
11
0.8
0.6
0.8
0.0
00
Anomalous tokens
Recovery points toward normal support 1.0 Median cosine alignment
MVTec-AD VisA
.6
Median recovery residual (× category normal median)
Residual increases with support distance
0.6 0.4 0.2 0.0
VisA
AD VTec-
M
Normal tokens Anomalous tokens
0.8
c-AD
MVTe
VisA
Support-token kNN distance (× category normal median)
Figure S1. Recovery relative to the support-derived normal token set. Left: recovery residual versus pre-recovery support distance, with both quantities normalized by their category-wise normal-token medians and aggregated equally across categories. Middle: d_{\mathrm {after}}/d_{\mathrm {before}} , where values below one indicate contraction toward the normal support features. Right: cosine alignment between the recovery update and the direction toward the nearest support token, where positive values indicate movement toward the normal support features. Bars and error bars report the median and interquartile range across categories. Ground-truth masks serve only for post-hoc stratification. Table S3. Feature and support-view ablations in the 1-shot setting. AUROC results are mean \pm standard deviation over three seeds. The final column reports the median selected t^\star over categories for MVTec-AD/VisA under seed 42. ^\dagger Disabling rotations also removes diversity from the support-derived validation and calibration pools.
Configuration
MVTec-AD I-AUROC P-AUROC
VisA I-AUROC P-AUROC
Default: 40–80%, standardized Single block at 80% depth Shallow blocks at 20–40% depth Without layer standardization Without rotation-derived views^\dagger
97.8±0.9 97.6±1.2 85.7±0.9 97.7±1.3 93.8±1.4
95.3±0.7 92.0±0.7 86.0±1.7 94.0±0.9 93.3±0.5
Category seed selections
MVTec-AD
VisA n = 45
21
20
18
15 10 3
3
0.60
0.65
0.70
0.75
5 0
JGN-selected operating time t
8 0 0.60
0.65
0.70
98.7±0.0 98.9±0.0 93.5±0.3 98.8±0.0 98.5±0.0
0.65/0.65 0.70/0.70 0.60/0.60 0.85/0.85 0.60/0.60
• Logical anomalies: In MVTec-AD cable with swapped wires (top), individual wire segments appear locally normal, producing near-zero residuals and an empty anomaly map despite the invalid configuration. • Missing components: In VisA pcb3 (bottom), the missing component reveals the same background as previously seen in normal support views; because the observed tokens remain compatible with the normal distribution, the predicted anomaly map is blank.
n = 36
28
20
10
0
30 25
15
5
98.0±0.1 98.0±0.0 95.9±0.1 98.2±0.1 97.4±0.1
Median t^* (MVTec-AD/VisA)
0 0.75
JGN-selected operating time t
Figure S2. Distribution of category-specific operating times selected by JGN, pooled across three seeds. Each observation represents one category–seed pair.
C. Additional Evaluations C.1. Backbone Comparison
tion rather than remaining fixed.
Table S4 complements the Table 5 of the main paper by comparing against DINOv3-7B [30]. DINOv3 employs a 16\times 16 patch size (versus DINOv2’s 14\times 14), so the default 672\times 672 input resolution produces a 42\times 42 patch token grid. To ensure a direct comparison on an identical feature map resolution, DINOv3 is additionally evaluated at a higher resolution of 768\times 768, matching the default 48\times 48 grid (768/16=48). As shown in Table S4, DINOv3-7B does not
B.4. Qualitative Failure Modes Flownomaly scores token-wise feature discrepancies against the support-derived normal distribution. While effective for localized defects, it does not explicitly model object-level relations, part counts, or global configurations. Figure S3 illustrates two representative failure cases where the predicted anomaly map remains empty:
14
Query
Ground-Truth
Table S5. Full-shot anomaly detection and localization on MVTecAD. Rotation augmentations are disabled in the full-shot setting. All values are percentages. Bold denotes the best result, and underlined denotes the second-best result.
Flownomaly
Method Query
Ground-Truth
Flownomaly
672^2 672^2 768^2
MVTec-AD VisA I-AUROC P-AUROC I-AUROC P-AUROC 97.8±0.9 96.1±1.0 96.0±1.6
98.0±0.1 98.0±0.1 97.9±0.1
95.3±0.7 94.8±0.1 94.9±0.2
99.2 99.5 99.2 99.4
99.8 99.8 99.6 99.7
98.8 99.0 98.3 98.5
98.1 98.2 98.2 98.2
92.6 95.0 95.6 96.4
59.3 64.3 64.7 67.8
Flownomaly
99.7
99.9
99.0
98.7
96.4
67.2
Image-level AUROC AUPR F_{1,\max }
Pixel-level AUROC AUPRO
F_{1,\max }
PatchCore [27] AnomalyDINO [6] SubspaceAD [18] ANoCo [29]
92.8 97.6 98.2 98.7
91.4 98.0 98.3 98.9
88.0 94.5 95.0 96.1
98.5 98.8 99.1 99.2
91.1 96.1 96.9 95.3
43.7 53.8 53.0 54.7
Flownomaly
98.9
98.9
96.5
99.3
97.0
54.8
ples further illustrate the model’s localization performance across diverse object categories and anomaly types under the 1-shot (and 1-sample) settings, confirming that Flownomaly consistently achieves sharp defect delineation while suppressing background responses.
Table S4. DINOv3 vs. DINOv2 backbone ablation in the 1-shot setting across MVTec-AD and VisA. DINOv3 (16\times 16 patch size) is evaluated at 672\times 672 (42\times 42 token grid) and at 768\times 768 to match DINOv2’s 48\times 48 token grid.
DINOv2-g DINOv3-7B DINOv3-7B
F_{1,\max }
PatchCore [27] AnomalyDINO [6] SubspaceAD [18] ANoCo [29]
Method
improve over DINOv2-g at either resolution, consistent with findings reported by SubspaceAD [18]. As in the DINOv2 ablation, the velocity-network bottleneck width is half the encoder’s token embedding dimension (d/2).
Res.
Pixel-level AUROC AUPRO
Table S6. Full-shot anomaly detection and localization on VisA. Rotation augmentations are disabled in the full-shot setting. All values are percentages. Bold denotes the best result, and underlined denotes the second-best result.
Figure S3. Failure modes where the predicted anomaly map remains essentially empty. Columns show the query image, groundtruth mask, and Flownomaly anomaly map. Top: Logical anomaly with swapped wires (MVTec-AD cable). Bottom: Missing component revealing previously seen background (VisA pcb3).
Backbone
Image-level AUROC AUPR F_{1,\max }
98.7±0.0 98.5±0.0 98.5±0.0
C.2. Full-Shot Evaluation Although Flownomaly is designed for FSAD, performance is also evaluated across all available normal training images. Rotations are disabled, and the images are partitioned into fitting, validation, and calibration pools. For n normal training images, validation and calibration each receive \qopname \relax m{max}(4,\lceil 0.05n\rceil ) images. Tables S5 and S6 report the aggregate results on MVTec-AD and VisA, respectively.
D. Additional Qualitative Results To complement the qualitative results in the main paper, this section provides an extended set of qualitative comparisons, presenting detailed anomaly maps for representative samples from the MVTec-AD dataset in Fig. S4, the VisA dataset in Fig. S5, and the Real-IAD dataset in Fig. S6. These exam15
Ground-Truth
AnomalyDINO
SubspaceAD
Flownomaly
Wood
Transistor
Toothbrush
Tile
Screw
Carpet
Query Image
Figure S4. Additional qualitative localization results on representative MVTec-AD samples under the 1-shot setting. Columns show the input image, ground-truth mask, baseline anomaly maps (AnomalyDINO [6], SubspaceAD [18]), and Flownomaly’s predicted anomaly map.
16
Ground-Truth
AnomalyDINO
SubspaceAD
Flownomaly
Fryum
PCB 4
Pipe Fryum
Chewing Gum
Cashew
Capsules
Query Image
Figure S5. Additional qualitative localization results on representative VisA samples under the 1-shot setting. Columns show the input image, ground-truth mask, baseline anomaly predictions (AnomalyDINO [6], SubspaceAD [18]), and Flownomaly.
17
Ground-Truth
AnomalyDINO
SubspaceAD
Flownomaly
Zipper
Regulator
Porcelain Doll
Phone Battery
Bottle Cap
Audiojack
Query Image
Figure S6. Qualitative localization results on representative Real-IAD samples under the 1-sample setting (spanning five multi-view captures of a single normal physical sample). Columns show the input query image, ground-truth mask, baseline anomaly maps (AnomalyDINO [6], SubspaceAD [18]), and Flownomaly.
18
E. Per-Category Few-Shot and Sample-Shot Results Tables S7 and S8 report per-category results on MVTec-AD and VisA under the 1-, 2-, and 4-shot settings. For Real-IAD, due to the 30-category scale, per-category results are partitioned across two separate tables: Table S9 reports the 1- and 2-sample settings, and Table S10 reports the 4-sample setting. Table S7. Per-category anomaly detection and localization results on MVTec-AD under the 1-, 2-, and 4-shot settings. Results are mean and sample standard deviation over three seeds. All values are percentages. MVTec-AD AUROC
Image-level AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
1-shot
bottle cable capsule carpet grid hazelnut leather metal nut pill screw tile toothbrush transistor wood zipper
99.9±0.0 94.3±0.6 88.1±13.7 100.0±0.0 100.0±0.0 99.5±0.8 100.0±0.0 100.0±0.0 97.6±0.2 91.4±0.3 100.0±0.0 98.6±2.4 97.9±0.2 99.9±0.2 99.8±0.0
100.0±0.0 97.2±0.3 96.7±4.2 100.0±0.0 100.0±0.0 99.7±0.4 100.0±0.0 100.0±0.0 99.6±0.0 97.0±0.1 100.0±0.0 99.4±0.9 97.1±0.5 100.0±0.1 99.9±0.0
99.2±0.0 92.2±0.6 95.2±2.3 100.0±0.0 100.0±0.0 98.2±2.6 100.0±0.0 100.0±0.0 97.3±0.2 91.3±0.3 100.0±0.0 97.4±3.2 91.7±1.6 99.5±0.9 98.6±0.2
98.9±0.1 96.2±0.2 98.4±0.2 99.5±0.0 99.6±0.0 99.6±0.1 99.3±0.0 97.9±0.2 96.1±0.6 99.4±0.0 98.2±0.1 99.5±0.2 91.3±1.8 97.5±0.3 99.3±0.1
97.5±0.1 91.6±0.5 97.6±0.8 98.6±0.0 98.2±0.1 96.7±1.3 98.8±0.0 96.7±0.2 98.1±0.2 97.2±0.1 95.6±0.1 97.4±0.4 73.9±2.9 96.8±0.1 98.0±0.2
78.2±0.7 66.8±2.3 50.7±8.7 70.4±0.4 59.0±1.1 78.2±1.5 43.2±0.9 82.8±1.8 57.5±1.6 60.5±1.3 76.2±0.5 70.0±6.7 46.5±3.4 68.7±0.1 70.4±1.0
2-shot
bottle cable capsule carpet grid hazelnut leather metal nut pill screw tile toothbrush transistor wood zipper
100.0±0.0 94.6±0.9 92.9±5.5 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 97.9±0.4 93.7±1.6 100.0±0.0 99.4±0.7 98.3±1.5 99.7±0.1 99.9±0.1
100.0±0.0 97.4±0.3 98.4±1.4 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 99.6±0.1 97.8±0.5 100.0±0.0 99.8±0.3 97.6±2.2 99.9±0.0 100.0±0.0
99.7±0.5 92.8±0.2 95.0±2.3 100.0±0.0 100.0±0.0 99.5±0.4 100.0±0.0 100.0±0.0 97.5±0.0 92.4±1.3 100.0±0.0 98.3±1.7 92.3±5.3 98.6±0.5 99.0±0.2
99.0±0.0 96.5±0.3 98.6±0.0 99.5±0.0 99.6±0.0 99.6±0.0 99.3±0.0 98.1±0.2 96.3±0.3 99.5±0.0 98.2±0.1 99.4±0.2 93.3±0.8 97.5±0.3 99.3±0.1
97.5±0.1 92.4±0.4 98.0±0.1 98.6±0.0 98.3±0.1 97.2±0.6 98.8±0.1 97.0±0.2 98.1±0.1 97.7±0.1 95.6±0.2 97.4±0.3 78.4±2.5 96.8±0.1 98.0±0.2
78.9±0.2 70.3±0.1 53.7±3.5 70.2±0.4 59.4±1.1 78.7±0.8 43.5±1.0 84.2±1.5 58.0±0.8 60.8±1.4 76.2±0.6 67.9±5.3 52.0±1.1 68.6±0.5 70.3±0.4
4-shot
bottle cable capsule carpet grid hazelnut leather metal nut pill screw tile toothbrush transistor wood zipper
100.0±0.0 94.4±1.1 91.9±6.3 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 98.6±0.5 94.4±1.5 100.0±0.0 100.0±0.0 98.0±1.7 99.7±0.1 99.9±0.1
100.0±0.0 97.4±0.4 98.1±1.6 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 99.7±0.1 97.8±0.8 100.0±0.0 100.0±0.0 97.4±2.1 99.9±0.0 100.0±0.0
99.7±0.5 92.7±0.7 95.4±2.4 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 100.0±0.0 97.9±0.4 93.2±0.2 100.0±0.0 100.0±0.0 91.5±4.3 98.6±0.5 99.3±0.2
99.1±0.0 96.8±0.4 98.7±0.1 99.4±0.0 99.6±0.0 99.6±0.0 99.3±0.0 98.1±0.1 97.1±0.4 99.5±0.0 98.2±0.1 99.5±0.1 94.1±1.1 97.6±0.2 99.3±0.0
97.5±0.0 93.0±0.5 98.1±0.2 98.5±0.0 98.3±0.0 97.6±0.3 98.8±0.1 97.0±0.2 98.3±0.1 98.0±0.2 95.4±0.2 97.6±0.3 80.8±2.4 96.9±0.1 97.9±0.1
79.6±0.4 71.6±0.3 53.3±3.7 69.6±0.5 59.6±0.3 78.5±0.5 42.9±1.2 85.3±0.6 61.0±1.5 59.5±2.5 76.0±0.6 69.3±2.7 54.4±3.2 68.7±0.4 69.0±0.3
Setup
Category
19
Table S8. Per-category anomaly detection and localization results on VisA under the 1-, 2-, and 4-shot settings. Results are mean and sample standard deviation over three seeds. All values are percentages. VisA Image-level AUROC AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
1-shot
candle capsules cashew chewinggum fryum macaroni1 macaroni2 pcb1 pcb2 pcb3 pcb4 pipe fryum
95.3±0.6 98.6±0.5 97.8±0.3 99.6±0.2 97.1±0.5 94.0±0.9 84.1±7.6 95.3±0.3 93.7±1.3 93.1±1.1 99.5±0.1 96.1±0.7
95.7±0.4 99.2±0.2 98.9±0.2 99.8±0.1 98.8±0.2 94.5±0.9 83.1±8.0 94.0±0.2 93.2±1.2 92.6±1.4 99.4±0.1 98.0±0.4
90.4±0.7 95.7±0.9 94.7±0.4 97.8±0.8 94.3±1.0 87.2±2.1 79.1±6.1 92.7±0.7 88.7±2.0 88.1±0.6 97.7±0.3 94.5±1.5
99.6±0.0 99.1±0.2 99.1±0.0 99.8±0.0 96.8±0.2 99.8±0.0 99.7±0.2 99.4±0.0 97.6±0.0 96.6±0.2 98.0±0.0 99.0±0.1
97.2±0.2 98.1±0.2 98.0±0.3 96.4±0.2 94.5±0.4 98.1±0.4 97.0±1.7 95.7±0.2 94.1±0.2 94.0±0.5 95.0±0.4 98.0±0.1
49.3±0.9 61.3±1.1 59.0±0.5 73.2±0.8 47.1±0.4 36.8±1.1 36.3±1.5 74.9±0.6 53.5±0.1 53.7±1.9 47.0±0.3 55.6±3.1
2-shot
candle capsules cashew chewinggum fryum macaroni1 macaroni2 pcb1 pcb2 pcb3 pcb4 pipe fryum
95.3±0.4 99.1±0.4 98.4±0.1 99.6±0.1 98.2±0.1 95.6±1.1 87.7±2.3 94.4±1.0 94.2±0.7 94.6±1.6 99.4±0.2 96.6±0.6
95.4±0.5 99.4±0.3 99.2±0.1 99.8±0.0 99.2±0.1 95.5±0.9 84.9±2.3 93.1±0.6 92.5±1.6 94.6±1.6 99.3±0.2 98.2±0.3
89.8±0.2 97.0±0.5 95.5±0.6 97.7±0.3 95.5±0.3 90.5±2.2 83.2±1.9 91.6±0.8 90.0±0.8 90.5±1.6 97.7±0.7 94.6±1.3
99.7±0.0 99.2±0.2 99.3±0.1 99.8±0.0 97.0±0.1 99.8±0.0 99.8±0.1 99.5±0.0 97.7±0.0 97.3±0.2 98.2±0.1 99.1±0.1
97.6±0.1 98.5±0.1 98.1±0.1 96.4±0.2 94.5±0.1 98.2±0.3 97.7±0.6 95.9±0.2 94.1±0.2 94.9±0.6 94.9±0.4 97.9±0.1
49.8±0.2 58.5±0.9 61.3±1.3 73.2±0.6 48.1±0.4 35.5±0.2 37.0±1.6 75.5±0.6 52.9±0.4 56.0±2.6 46.9±1.3 56.3±2.1
4-shot
candle capsules cashew chewinggum fryum macaroni1 macaroni2 pcb1 pcb2 pcb3 pcb4 pipe fryum
94.9±1.1 98.8±0.8 99.0±0.3 99.5±0.1 98.6±0.4 95.7±1.6 88.4±3.7 94.4±0.5 93.8±1.3 95.1±1.1 99.4±0.1 98.2±0.1
94.8±1.1 99.3±0.5 99.5±0.1 99.8±0.0 99.4±0.2 95.7±1.3 85.2±5.2 92.4±0.5 91.9±2.8 94.9±0.9 99.3±0.1 99.0±0.1
89.5±2.4 96.9±1.2 97.2±0.7 97.6±0.5 95.7±0.7 90.4±3.0 83.5±2.7 92.0±0.6 89.8±0.4 90.1±1.7 97.6±0.5 96.7±0.7
99.7±0.0 99.3±0.1 99.4±0.0 99.8±0.0 97.3±0.1 99.8±0.0 99.8±0.0 99.5±0.0 97.8±0.1 97.8±0.0 98.4±0.2 99.3±0.0
97.6±0.1 98.5±0.2 97.9±0.2 96.3±0.1 94.6±0.1 98.3±0.0 98.2±0.2 96.2±0.0 94.6±0.2 95.3±0.4 95.4±0.1 97.9±0.1
49.0±1.0 54.0±2.9 63.1±1.0 73.2±0.9 48.7±0.2 34.7±1.4 36.6±0.5 76.1±0.3 51.5±1.3 56.5±1.7 47.8±1.8 59.6±1.3
Setup
Category
20
Table S9. Per-category anomaly detection and localization results on Real-IAD under the 1- and 2-sample settings. Under the sample-shot protocol, each physical sample comprises five fixed multi-view captures (5 and 10 support images, respectively). Results are mean and sample standard deviation over three seeds. All values are percentages. 1-sample Category audiojack bottle cap button battery end cap eraser fire hood mint mounts pcb phone battery plastic nut plastic plug porcelain doll regulator rolled strip base sim card set switch tape terminalblock toothbrush toy toy brick transistor1 u block usb usb adaptor vcpill wooden beads woodstick zipper
Image-level AUROC AUPR 79.2±6.7 91.2±0.3 87.0±0.7 86.4±2.0 92.9±0.9 88.0±0.7 83.0±1.6 86.9±0.2 88.9±0.7 90.3±1.0 87.0±2.3 84.3±1.7 87.3±3.1 76.5±1.6 93.5±3.1 95.8±0.2 89.1±2.1 96.8±0.3 89.7±0.8 85.9±1.5 80.5±1.2 82.4±1.5 90.5±0.6 85.5±1.3 87.9±1.2 88.3±1.0 91.4±2.2 88.9±0.8 90.9±0.9 98.7±0.2
67.1±9.7 88.8±0.4 88.8±0.6 88.1±0.8 89.9±0.9 80.5±1.1 83.3±1.3 75.9±1.1 92.9±0.8 86.6±2.2 76.4±3.7 75.7±2.2 76.7±5.5 65.3±2.3 96.2±2.0 96.5±0.1 91.3±1.8 95.4±0.5 91.4±0.5 88.0±2.0 85.8±1.2 76.9±2.8 90.8±1.0 71.5±2.3 83.4±1.7 84.2±1.2 90.2±2.4 87.5±1.1 82.0±1.0 99.1±0.1
2-sample
F_{1,\max }
Pixel-level AUROC AUPRO
62.9±5.8 81.0±0.4 83.3±0.7 83.0±2.1 82.3±1.5 73.8±1.0 74.0±1.5 74.2±1.1 84.2±0.1 79.8±1.0 71.4±3.5 71.2±1.6 72.3±2.8 56.7±1.0 91.2±1.9 90.3±0.6 81.0±2.1 88.3±1.1 82.4±1.3 80.7±1.1 77.8±0.8 71.4±1.4 87.1±0.4 71.1±2.0 78.9±0.9 75.4±2.7 80.2±2.8 78.6±0.7 74.4±0.7 96.0±0.2
99.0±0.1 99.9±0.0 99.4±0.0 99.5±0.1 99.9±0.0 99.8±0.0 99.5±0.0 99.5±0.0 99.7±0.0 99.9±0.0 99.9±0.0 98.4±0.1 99.6±0.1 99.6±0.0 99.9±0.0 99.9±0.0 96.3±0.1 99.9±0.0 99.6±0.0 98.1±0.1 94.2±0.2 99.1±0.0 99.2±0.1 99.7±0.0 98.8±0.1 99.8±0.0 99.5±0.1 99.6±0.0 99.6±0.0 99.5±0.0
94.1±0.4 99.3±0.1 96.0±0.1 98.5±0.2 99.3±0.0 98.4±0.2 95.3±0.2 98.8±0.0 97.9±0.0 99.0±0.0 99.2±0.2 93.3±0.8 98.4±0.6 96.9±0.1 99.3±0.1 99.0±0.1 94.8±0.0 99.5±0.0 99.1±0.0 94.6±0.4 91.7±0.4 92.6±1.4 96.5±0.4 98.5±0.2 97.0±0.2 98.4±0.2 97.5±0.8 95.2±1.6 96.9±0.1 98.7±0.1
F_{1,\max }
Image-level AUROC AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
42.6±7.7 43.6±0.2 47.9±1.0 38.8±1.5 51.0±1.1 52.5±1.3 37.1±0.9 48.1±0.8 59.8±1.4 67.9±0.9 48.0±1.4 41.5±1.0 40.5±3.2 49.7±0.7 54.4±0.6 64.7±0.6 56.8±1.0 60.5±0.5 57.3±0.5 45.3±1.5 37.2±0.3 46.5±0.6 54.4±0.9 37.6±1.8 45.7±0.8 42.3±0.1 67.8±0.9 54.4±0.9 60.2±0.6 64.7±1.3
79.3±9.8 91.5±0.9 88.2±1.2 88.4±0.1 92.9±0.6 87.6±0.7 83.7±1.1 87.2±0.2 88.9±0.8 89.8±0.7 87.6±0.8 83.6±2.2 85.3±2.2 79.6±4.8 94.3±2.6 96.0±0.2 90.3±0.9 97.1±0.3 89.3±0.8 85.7±3.0 83.1±1.6 83.1±0.1 92.4±1.7 87.2±1.0 87.6±0.2 88.1±0.7 92.8±1.1 89.7±0.5 91.0±0.6 98.4±0.2
64.0±6.3 81.2±0.4 84.6±1.5 84.5±0.6 82.1±0.7 73.6±0.6 74.4±1.3 75.1±1.0 84.4±0.2 79.8±0.3 71.7±1.3 71.8±2.4 71.7±1.8 60.1±5.8 92.2±1.7 90.5±0.5 82.3±0.7 88.5±0.7 82.8±0.5 80.6±1.2 79.7±1.2 71.7±0.1 88.3±0.4 72.5±0.9 78.8±0.4 74.8±1.7 82.5±1.7 79.9±0.8 74.4±1.7 95.7±0.1
99.0±0.1 99.9±0.0 99.4±0.0 99.6±0.0 99.9±0.0 99.8±0.0 99.5±0.0 99.5±0.0 99.6±0.0 99.9±0.0 99.9±0.0 97.6±0.3 99.5±0.0 99.6±0.0 99.8±0.0 99.9±0.0 96.6±0.1 99.9±0.0 99.6±0.0 98.1±0.1 93.9±0.1 99.0±0.1 99.3±0.0 99.7±0.0 98.8±0.1 99.8±0.0 99.5±0.0 99.6±0.0 99.6±0.0 99.5±0.0
94.0±0.5 99.3±0.1 95.9±0.2 98.7±0.0 99.3±0.0 98.3±0.3 95.6±0.1 98.8±0.0 97.8±0.1 98.9±0.0 99.3±0.1 90.2±1.2 97.9±0.3 97.3±0.1 99.2±0.1 98.9±0.1 95.1±0.2 99.5±0.0 99.0±0.0 94.3±0.2 91.6±0.2 91.4±0.6 96.9±0.2 98.6±0.2 96.9±0.1 98.2±0.2 97.7±0.2 95.4±0.9 96.8±0.3 98.6±0.0
42.9±5.9 42.0±0.5 46.5±0.9 37.5±1.0 50.1±0.7 51.8±1.5 36.3±0.4 46.7±1.2 59.6±1.2 65.2±1.4 45.8±1.1 16.6±5.1 37.3±1.5 51.3±1.9 51.2±0.8 64.0±0.3 57.0±1.1 59.3±1.1 55.7±0.2 45.3±2.5 37.6±0.1 45.9±0.8 55.0±1.5 39.0±1.4 44.4±0.2 40.7±0.4 67.8±0.3 53.5±0.8 59.1±2.2 63.8±0.4
21
65.9±13.7 89.4±1.0 89.0±0.8 89.3±0.4 89.8±0.6 80.0±1.3 84.0±0.8 76.5±0.9 92.9±0.7 84.9±2.2 77.1±1.2 71.1±2.3 70.9±4.3 69.3±6.2 96.6±1.7 96.5±0.1 92.2±0.8 95.4±0.5 90.8±0.9 87.5±4.1 88.0±1.5 77.8±0.9 93.0±2.5 74.8±2.5 82.6±0.3 83.8±1.1 91.6±1.3 88.4±0.9 81.7±1.5 98.9±0.2
Table S10. Per-category anomaly detection and localization results on Real-IAD under the 4-sample setting. Under the sample-shot protocol, each physical sample comprises five fixed multi-view captures (20 support images). Results are mean and sample standard deviation over three seeds. All values are percentages. 4-sample Category audiojack bottle cap button battery end cap eraser fire hood mint mounts pcb phone battery plastic nut plastic plug porcelain doll regulator rolled strip base sim card set switch tape terminalblock toothbrush toy toy brick transistor1 u block usb usb adaptor vcpill wooden beads woodstick zipper
Image-level AUROC AUPR
F_{1,\max }
AUROC
Pixel-level AUPRO
F_{1,\max }
80.8±5.5 93.0±0.3 89.9±0.7 89.3±0.3 94.1±0.6 88.8±0.2 84.2±0.1 87.7±0.5 89.2±0.6 90.2±1.8 89.0±0.9 83.6±0.6 86.3±1.0 83.7±1.7 96.4±1.3 96.0±0.4 89.2±0.7 97.1±0.3 87.7±0.6 87.8±0.2 84.3±1.7 84.4±0.6 93.6±2.1 88.2±0.7 87.0±0.7 88.3±0.6 93.8±0.3 90.2±0.5 91.7±0.8 98.7±0.1
64.5±5.3 82.9±0.4 86.5±1.1 85.2±0.2 83.9±0.8 75.0±0.5 74.8±0.2 75.8±0.8 84.2±0.5 80.5±1.2 73.3±1.2 71.8±1.2 72.7±1.1 63.7±1.6 93.5±0.9 90.5±0.8 81.0±0.6 88.8±0.5 82.4±0.8 81.7±0.4 80.4±1.4 73.3±0.5 89.1±1.9 74.3±1.1 77.8±0.5 75.2±1.0 83.7±0.5 80.3±0.8 75.4±1.5 96.3±0.0
99.0±0.0 99.9±0.0 99.4±0.0 99.6±0.0 99.9±0.0 99.8±0.0 99.6±0.0 99.5±0.0 99.6±0.0 99.9±0.0 99.9±0.0 97.3±0.2 99.5±0.0 99.7±0.0 99.8±0.0 99.9±0.0 96.5±0.1 99.9±0.0 99.6±0.0 98.1±0.1 93.2±0.2 99.1±0.1 99.3±0.1 99.7±0.0 98.6±0.1 99.7±0.0 99.6±0.0 99.7±0.0 99.7±0.0 99.5±0.0
94.0±0.1 99.4±0.0 96.1±0.1 98.7±0.1 99.3±0.0 98.4±0.1 95.6±0.0 98.8±0.0 97.4±0.1 98.9±0.1 99.3±0.1 89.2±0.8 98.1±0.2 97.4±0.2 99.2±0.1 98.8±0.1 94.8±0.2 99.5±0.0 98.9±0.0 94.5±0.4 90.9±0.5 91.5±0.9 96.8±0.2 98.7±0.1 96.4±0.2 97.9±0.3 97.9±0.3 96.1±0.7 97.0±0.2 98.6±0.0
47.2±2.1 41.2±0.3 46.6±1.4 37.9±0.6 49.4±0.9 53.5±1.5 35.7±0.2 45.8±0.8 59.6±0.7 63.4±2.8 45.5±1.1 14.1±13.0 37.4±1.5 52.2±0.5 49.8±0.2 64.2±0.5 56.7±1.1 58.7±0.7 55.0±0.2 46.5±0.3 37.7±0.2 46.7±1.6 55.8±1.1 38.8±0.9 44.0±0.9 40.5±0.4 67.9±0.6 53.7±0.4 60.2±1.3 63.6±0.4
70.2±6.6 91.1±0.4 89.9±0.6 90.3±0.4 91.2±1.5 81.9±0.4 84.2±0.0 77.6±1.2 93.4±0.4 84.9±4.5 79.5±2.1 70.3±1.6 72.5±2.6 73.6±2.2 97.9±0.9 96.4±0.3 91.6±0.7 95.4±0.5 89.1±0.5 90.1±0.4 89.4±1.1 79.6±1.7 94.6±2.6 75.8±1.3 82.4±1.0 84.1±0.9 92.6±0.5 88.9±0.7 82.9±1.6 99.1±0.1
22
Related documents
- Flownomaly: Single-Step Conditional-Mean Recovery for Few-Shot Anomaly Detection#1448479
- CF-YOLO: Context-Aware Feature Refinement for Camouflaged Industrial Micro-Defect Detection#784834
- CF-YOLO: Context-Aware Feature Refinement for Camouflaged Industrial Micro-Defect Detection#783244
- LACToS: Local Anomaly Detection via Conditional Typicality of Superpixels#1424656
- LACToS: Local Anomaly Detection via Conditional Typicality of Superpixels#1417835
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive