Manuscript Offprint
arXiv:2609.03826Witnesses Explain Anomalies
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Lamine Diop
EPITA Research Laboratory, Le Kremlin-Bicêtre FR-94276, France, lamine.diop@epita.fr
Abstract—Unsupervised anomaly detection scores each point of an unlabelled, contaminated sample in a single pass, and increasingly must also explain why a point is flagged. Yet the dominant detectors give a score with no account of which features drive it, and explanations are bolted on post-hoc with SHAP or LIME, which re-query the detector thousands of times per point and only approximate it. We introduce WAND, an unsupervised tabular anomaly detector that is explainable by design. WAND organises its computation around directions on the unit sphere, scoring each point by how far its projection escapes a sub-Gaussian extreme-value baseline. The originality of our approach is that the witness directions that flag a point, being vectors in feature space, are its explanation, a per-feature attribution obtained at no cost over scoring and, since the score is differentiable, recoverable by gradients. Scoring is linear in the sample size, and a probe-efficiency bound guarantees every anomaly a witness, hence an explanation. Across 47 ADBench datasets WAND attains the best mean Friedman rank at ROC-AUC parity with 16 unsupervised baselines, so the gain is interpretability at no accuracy cost; its native explanations are more accurate and faithful than post-hoc SHAP/LIME and ECOD at a fraction of the query cost. WAND is thus a practical, interpretable solution for explainable anomaly detection.
Index Terms—anomaly detection, explainable AI, witness directions, feature attribution, differentiable algorithms
I. INTRODUCTION
We study unsupervised anomaly detection on tabular data: assign each point of an unlabelled, contaminated sample a real-valued score in a single pass, and, increasingly, explain why a point is flagged. The dominant detectors (Isolation Forest [1], LOF [2], OCSVM [3], KNN [4], PCA [5], ECOD [6]/COPOD [7]) return a score but no account of which features drive it; explanations are bolted on post-hoc with SHAP [8]/LIME [9], which re-query the detector thousands of times per point and only approximate it. We introduce WAND, a detector that is explainable by construction, down to raw-pixel saliency when an encoder is available (Fig. 1).
WAND organises its computation around directions on the unit sphere: for each, it measures how far the projected sample's extreme exceeds a sub-Gaussian baseline (calibrated by median/MAD, robust to up to half the data being contaminated), and aggregates these excesses into a per-point score. Anomalies have low halfspace depth [10], so one or more directions expose them as extreme, and those witness directions are, literally, the explanation: vectors in feature space whose large coordinates name the responsible features. A per-feature attribution thus falls out of scoring at no extra cost, and, since the score is differentiable, the same explanation is recoverable by gradients (and the score can serve as a loss in a learnable pipeline). The geometry also bounds cost on two axes. Scoring runs in time, linear in the sample size; and the number of directions K needed to expose every anomaly scales with the answer size (anomaly count and depth margin), not the sample size [11]. This latter is a probe-efficiency guarantee: each direction still requires a full scan of the data, so it bounds a budget rather than promising sub-linear runtime, and is most useful in low-to-moderate dimension (Section VII).
The main contributions of the paper are as follows:
-
We propose WAND, an unsupervised tabular anomaly detector that is explainable by design. It scores each point by aggregating, over directions on the unit sphere, the excess of the projected sample's extreme over a sub-Gaussian baseline, and the witness directions that flag a point, read in feature space, are its per-feature explanation, obtained at no cost over scoring (Section IV-H). Since the score is differentiable, the same explanation is also recoverable by gradients.
-
We establish the guarantees of the method. We prove that scoring is linear in the sample size, and that the number of directions needed to expose every anomaly is bounded by the anomaly count and a halfspace-depth margin, independently of the sample size (Theorem 1); equivalently, this bounds the budget at which every anomaly is guaranteed a witness, hence an explanation. We pair this with a median/MAD-calibrated tail statistic of breakdown (Theorem 3).
-
We present an extensive empirical study on 47 ADBench datasets, comparing detection against sixteen unsupervised baselines and explanation quality against post-hoc (SHAP, LIME) and AD-native (ECOD) explainers, under both synthetic ground truth and real deletion/insertion faithfulness. WAND is competitive for detection while producing more accurate and more faithful explanations at a fraction of the query cost, and stays effective on heavy-tailed inliers and against deep detectors (Section VI).
The remainder of the paper is organised as follows. Section II reviews related work on unsupervised and explainable anomaly detection. Section III introduces the basic definitions and the formal problem statement. We present WAND and its directional-witness explanations in Section IV, and analyse the method's guarantees in Section V. We evaluate our approach in Section VI and conclude in Section VII.

Fig. 1. Pixel-level explanation (where in the image). Saliency for three flagged ANOCUB anomalies and a normal inlier (far right), on a shared scale, via autograd through a frozen ResNet-18 encoder (SmoothGrad): strong and localised on the anomalies, weak on the inlier. WAND detects here at AUC 0.99 (no whitening). Contrast the encoder-free concept-level view (Fig. 5), which names which concepts are responsible.
Unsupervised shallow detectors.: The classical workhorses learn a score directly from the contaminated sample, in three flavours. Isolation/proximity-based scores (Isolation Forest [1], LOF [2], OCSVM [3], KNN [4], PCA-reconstruction [5], INNE [12]) measure how isolated a point is from its neighbourhood. Distribution-aware tail estimators (HBOS [13], ECOD [6], COPOD [7], kernel density [14], LODA [15]) read off the inlier distribution through marginals or copulas. Geometric and ensemble variants (ABOD [16], COF [17], SOD [18], LSCP [19], SUOD [20]) sharpen the score with directional or subspace structure. All these methods consume the sample directly and score it in one pass, matching our regime, but each pays linear cost in regardless of how few anomalies are actually present; none gives a probe-count guarantee tied to the anomaly count.
Robust statistics and projection-pursuit ancestors.: Two threads underpin our per-direction statistic. Tukey halfspace depth [10] formalises being an extreme along some direction with breakdown [21], but exact computation [22] has kept it out of practical pipelines. Projection pursuit [23] optimises an index over directions for non-Gaussianity; we re-use the directional formulation with a MAD-calibrated tail-excess statistic of per-direction breakdown [24]. The closest projection-pursuit predecessors, LODA [15] and PIDForest [25], neither calibrate against an explicit extreme-value baseline nor give an output-sensitive probe bound; we list more recent tree- and OT-based detectors among the limitations of our baseline coverage below.
Deep detectors.: A separate family trains a network, typically on an assumed-clean sample, deep one-class [26], reconstruction [27], adversarial/transformer [28], self-supervised contrastive [29], graph [30], and diffusion/flow [31] variants; TABADM [32] is a diffusion density model with a rejection scheme that tolerates a contaminated training set. These need a separate scoring pass and give no native explanation; we list them in Table I for positioning and compare against deep unsupervised baselines (AutoEncoder, VAE, Deep SVDD) in Section VI.
Explaining anomaly detectors.: Once a detector flags a point, practitioners ask which features are responsible. The de-
fault answer is post-hoc, model-agnostic attribution: SHAP [8] (Shapley values estimated by sampling feature coalitions) and LIME [9] (a local linear surrogate fitted to perturbations) both treat the detector as a black box and re-query it hundreds to thousands of times per explained point, returning an approximation of its behaviour whose quality degrades with dimension and budget. Anomaly-specific explainers largely inherit this stance, attributing a score to features post-hoc [33], [34] or isolating outlying subspaces [18], [35]. In contrast, a handful of detectors are explanatory by construction: marginal methods like ECOD/COPOD expose a per-feature tail probability, and subspace/tree methods point at the axes that isolate a point. SYRAN [36] goes furthest, learning closed-form symbolic invariants whose violation is the explanation, a global account, whereas WAND reads a per-point attribution free from the score. WAND is of this second kind, but its witnesses are arbitrary directions, not single features, so it explains anomalies that no axis-aligned method can name; and the explanation is read directly from the score, not a sampled approximation.
Positioning.: Differentiable surrogates for sort/argmax [37] supply our soft-extreme operator, and output-sensitive analysis [11] motivates the probe-count (not runtime) budget. WAND stays in the unsupervised shallow regime (contaminated, single-pass, clean-data-free) but uniquely combines all of: native sampling-free witness attribution, a probe-efficient budget with a coverage guarantee, a MAD-calibrated -breakdown statistic, and end-to-end differentiability (Table I).
III. BACKGROUND AND SETTING
A. Problem Statement
We observe drawn i.i.d. from a contaminated mixture
where is the (unknown) inlier law and is arbitrary. The unsupervised anomaly-detection task is to produce a score such that, with high probability, the highest-scored points coincide with the outlier subset
TABLE I
METHOD PROFILES. Native expl.: BUILT-IN, EXACT FEATURE ATTRIBUTION (● = AXIS-ONLY); Probe eff.: ANOMALY-COUNT-BOUNDED PROBE BUDGET. THE SHALLOW FAMILY IS OUR COMPARISON SET.
| Clean | Train | Diff. | Native expl. | Probe eff. | |
|---|---|---|---|---|---|
| Unsupervised shallow (comparison set) | |||||
| IForest, LOF, OCSVM, KNN, PCA | no | no | no | no | no |
| HBOS, ECOD, COPOD, KDE | no | no | no | (●) | no |
| ABOD, COF, SOD, INNE, LODA, LSCP | no | no | no | (●) | no |
| PIDForest [25] | no | no | no | (●) | no |
| Deep (different regime) | |||||
| Deep one-class [26] | yes | ✓ | ✓ | no | no |
| Reconstruction [27] | yes | ✓ | ✓ | no | no |
| Adversarial / transformer [28] | yes | ✓ | ✓ | no | no |
| Self-supervised [29] | yes | ✓ | ✓ | no | no |
| Graph / diffusion [30], [31] | yes | ✓ | ✓ | no | no |
| WAND (ours) | no | no | ✓ | ✓ | ✓ |
. We evaluate s by ROC-AUC, which is invariant to monotone re-scaling.
Throughout, denotes a unit direction, the corresponding projection, and med, MAD the (univariate) median and median absolute deviation. We write for the positive part and for probability and expectation under .
B. Inlier Assumption
We make a single distributional assumption on , weaker than Gaussianity and stable under affine transformations:
Assumption 1 (Isotropic-tail inlier). is centered and -sub-Gaussian, i.e. for every direction and every ,
Assumption 1 is the standard high-dimensional prerequisite for projection-based methods [38]; it is satisfied by Gaussian mixtures, log-concave laws, sub-exponential tails after a robust standardisation, and any bounded distribution. It is not satisfied by power-law tails (e.g. Pareto), but in such regimes the median/MAD rescaling inside WAND effectively truncates extreme inlier draws back into a sub-Gaussian regime.
C. The Sub-Gaussian Anti-Concentration Baseline
The key quantity that drives both the algorithm and the analysis is the following population-level extreme-value bound:
Proposition 1 (Extreme-value baseline). Under Assumption 1 and zero contamination,
uniformly in , where
is the sub-Gaussian extreme envelope (used as a deterministic upper bound, not as a tight Gumbel limit). In practice is replaced by the empirical-null quantile of (8), so the precise constant inside does not affect implemented results.
Proof. See the supplementary material.
Uniformity in holds because the bound uses only the direction-independent proxy ; numerically runs for (a clean max sits a few MADs above the median). We use (2) as a constant in the per-direction score (3), and replace it by an empirical bootstrap quantile when calibrating direction weights (Section IV).
D. Anomaly Definition
Proposition 1 motivates a margin-based notion of anomaly that is direction-existential rather than direction-universal:
Definition 1 (-margin anomaly). For a margin , a point is a -margin anomaly iff there exists a direction such that
We write for this set, and abbreviate .
Definition 1 is the finite-sample analogue of low halfspace depth [10], [21]: the witness direction defines a closed halfspace that separates from the inlier bulk by a -margin in MAD-units. The advantage over plain Tukey depth is that we only require one witness direction per anomaly, which is what makes the output-sensitive sample-complexity bound of Theorem 1 possible.
On the margin . It is the only unobserved quantity in the framework, yet we never specify it: the threshold is replaced by an empirical null quantile from a Gaussian copy of (Algorithm 1); controls the inlier-tail/outlier gap and appears only in the theoretical bound.
IV. METHOD
A. Pipeline Overview
WAND produces an anomaly score by four stages, each addressing a specific failure mode of naïve halfspace probing. Figure 2 summarises the data flow.
(P1) Per-direction tail-excess (Section IV-B). For each candidate direction , every point receives a non-negative excess that measures how far lies beyond the sub-Gaussian baseline of Proposition 1. A complementary 1D -spacings component (Section IV-C) handles multi-modal projections that defeat plain MAD-z.
(P2) Pathway split (Section IV-E). A uniform pool of probes on and a fixed set of axis-aligned probes are scored separately, then combined by a guarded additive rule, the key engineering step that prevents a single noisy axis from dominating the score.
(P3) Seed averaging (Section IV-F). To suppress Monte-Carlo variance, we average S independently-seeded passes.
The complete pipeline is Algorithm 1. The whole score is differentiable in the data X through a soft-extreme surrogate (Section IV-G), enabling end-to-end use inside larger trainable systems.

Fig. 2. WAND pipeline: per-direction tail-excess (P1), guarded mix of uniform-sphere and axis pathways (P2), seed averaging (P3).
B. Per-Direction Tail-Excess
The atomic statistic of WAND is, for each direction and projection ,
We use (not ) so u and -u contribute symmetrically, and the median/MAD rescaling gives breakdown per direction [21], no single outlier can inflate the scale. The direction-level excess is
By Proposition 1, uniformly over under the inlier null, so any direction with is statistical evidence of a -margin anomaly along .
Why median/MAD. Mean/std has breakdown 0 (one moved point can drive the standardised score to 0 for all others); MAD's constant-factor efficiency loss under the Gaussian null (ARE ) is absorbed by the empirical-null calibration of .
C. Spacings: Multi-Modal Robustness
Equation (4) fails when is well-separated into two or more modes, because the inter-mode gap inflates MAD and crushes even for the rarest mode. To recover the rare-mode signal we add a non-parametric k-spacings component.
For each direction , sort the projections , and let be the two-sided -th order spacing,
with the rank of and edge clamps at the endpoints. A point sitting alone in a sparse region has a wide relative to the median; this defines
We set , the classical choice in 1D density estimation [39]. The two components are combined by an evidence-disjunction:
with rescaling ( ) so the two components live on a common scale and the rescaling is well-defined when the projection is degenerate. Maximum rather than average prevents either component from diluting the other when only one has signal.
D. Direction Sampling
We draw the direction probes uniformly on . The output-sensitive guarantee of Theorem 1 already holds under uniform sampling, and we observed no measurable mean-AUC gain on the ADBench suite from adaptive (posterior-targeting) samplers; we therefore adopt uniform draws as the default. The direction-excess statistic defined in (4) still parameterises the weight each direction receives in the aggregation step (8).
E. Split Pathway and Guarded Additive Mix
A purely random direction set systematically misses anomalies confined to a single feature (the regime where marginal methods like ECOD/COPOD [6], [7] dominate). We therefore also probe the axis-aligned directions . However, the two probe families have different failure modes: uniform-sphere probes are vulnerable to high-dimensional noise; axis probes are vulnerable to feature-level outliers that are not the labelled anomalies. We address this by scoring the two pathways separately and combining them additively with a mixing weight
where is the pathway score normalised to , and each pathway score is obtained by the weighted aggregation
Here is the empirical -quantile of on a covariance-matched Gaussian copy with having i.i.d. entries and the Cholesky factor of the Ledoit–Wolf-regularised covariance . The same probe set is re-applied to so the null is matched to the sampler; throughout. When the denominator of (8) vanishes we use the uniform-weighted mean . The sample-covariance is itself not robust; adversarial guarantees rely on the MAD breakdown (Theorem 3), not on .
Default . We use additive guarded mixing rather than element-wise maximum (unstable when one pathway is noisy, e.g. a non-anomalous axis outlier on musk); keeps the uniform-sphere pathway primary while letting axis probes boost signal. Mean AUC is flat ( ) over ; we fix .
Algorithm 1 WAND score.
Require: data ; probe budget ; mix weight ; spacing
1: -quantile of on Gaussian copy
Build probe pools:
2: with
3: (standard-basis vectors)
Per-direction excess (each pool separately):
4: for each pool , each do
5: Compute via (3)
6: Compute via (5)
7:
8:
9: end for
Per-pathway aggregation, then mix:
10: Compute via (8) over
11: Compute via (8) over
12:
13: return
F. Seed Averaging
The reported WAND score is the mean over S calls of Algorithm 1 driven by the protocol-level RNG seeds (Section VI); the same S drives the stochastic baselines, so the variance-reduction budget is shared.
G. Cluster-Free Design and Differentiability
WAND relies only on (i) inner products , (ii) the univariate median and MAD of , (iii) the 1D order statistics defining , and (iv) a Gaussian-copy bootstrap for . It does not compute kernel densities, kNN graphs, clusters, or covariance whitening. Three consequences follow: (a) the median/MAD primitives give a per-direction breakdown of 1/2 and a joint breakdown of [21]; (b) the method is well-defined when (where covariance estimators degenerate); and (c) every operator in the pipeline admits a smooth relaxation (soft-max for , sorting networks [37] for the rank distances ), so the gradient exists almost everywhere. This gradient does double duty: it lets WAND act as a differentiable inner loop in a larger trainable model, and it is the engine of the gradient explanation (10), which we use and validate in Section VI-F rather than leaving differentiability as an unexercised claim.
H. Directional Witnesses as Explanations
The aggregation (8) writes the score of a point as a weighted sum, over directions, of how far that point's projection escapes the baseline: with normalised weights . The directions carrying that sum are not internal bookkeeping: is a vector in feature space, so the directions that fire on already say which feature combinations make it anomalous. We turn this into a feature attribution at no cost over scoring.
Definition 2 (Witness set). For a point , its witness contribution along direction is , and its dominant witness is with . The witnesses are the directions with above a chosen mass threshold.
a) Witness attribution (gradient-free): The centred projection along decomposes over features as (up to the scalar offset), so the feature-j share of the firing evidence is , where is the per-feature median reference. Weighting by how much each direction fires and summing gives
The factor localises the explanation to the features this point actually deviates on, which is what keeps it accurate when the probes live on a Mahalanobis-whitened sphere (there is read in ambient coordinates as , with the covariance root; (9) is unchanged otherwise). Equation (9) is computed from quantities already formed during scoring, the per-direction weights and excesses , so an explanation costs zero extra detector evaluations. The deviation also gives a sign for free: flags each responsible feature as anomalously high or low (“too high” vs. “too low”), leaving the magnitudes unchanged.
b) Gradient attribution.: Because s is differentiable (Section IV-G), a second, independent explanation is the saliency
with the background statistics frozen so the derivative is a clean per-point quantity. Equations (9) and (10) are different functionals, one reads off the geometry, the other differentiates the score, yet they agree strongly in practice (mean rank correlation 0.80 across ADBench, Section VI-F), which is exactly the consistency one wants between the witness picture and the differentiable surrogate.
c) Coverage.: The probe-budget theorem below has an explanation reading: with K directions drawn as in Theorem 1, every -margin anomaly has, with high probability, at least one witness direction, so (9) is non-vacuous for every anomaly the budget is designed to expose. Probe efficiency is thus also explanation-coverage efficiency.
V. THEORETICAL ANALYSIS
A. Output-Sensitive Sample Complexity
Let be the set of -margin anomalies (Definition 1) with . For each let be the witness cone, i.e. the set of directions for which . We derive the lower bound on the spherical measure of in Lemma 1 below.
Lemma 1 (Spherical-cap lower bound on ). Under Assumption 1 with sub-Gaussian proxy , for any anomaly with displacement , the witness cone
contains a spherical cap of half-angle around , hence
Proof. See Appendix A.
Magnitudes. is only even at , so the displacement threshold is a few ; the cap half-angle shrinks with , the source of the high-d looseness.
Theorem 1 (Output-sensitive probe budget). Under Assumption 1, Definition 1 and the displacement hypothesis of Lemma 1, for any drawing
probe directions uniformly from is sufficient so that, with probability at least , every anomaly in is exposed by at least one drawn direction. The bound depends on the anomaly count , the margin , and the dimension through , but not on the sample size .
Proof. Fix with witness cone . Lemma 1 gives with and , so for small . Let and define the bad event . By independence, , using . The failure event is ; union-bounding, . Setting gives .
Remark 1 (Probe efficiency, not runtime; regime in ). We are explicit about scope. Theorem 1 bounds the number of directions, not the wall-clock runtime: revisiting data points per direction and sorting once for the -spacings step gives a total cost , so the “output-sensitive” qualifier refers strictly to and confers no runtime advantage on its own (it would, paired with a sub-linear per-probe index; Section VII-0a). Moreover from Lemma 1, so the worst-case -bound is sample-size-free in but grows with for fixed ; it is informative in low-to-moderate , and in high- rows we rely on empirical scaling (a fixed budget suffices in practice, evidence that real witness cones are far larger than the worst case). The value of the theorem in this paper is as much the coverage statement of Section IV-H, every anomaly is guaranteed a witness, hence an explanation, as the budget itself.
B. Consistency and Convergence Rate
Theorem 2 (Plug-in consistency, unweighted variant). Let be the unweighted Monte-Carlo estimator with probe directions drawn uniformly on , and let be the population mean. Then
for an absolute constant depending only on . The implemented weighted aggregator (8) replaces by data-dependent weights summing to 1; the same Hoefding union-bound argument gives the same rate up to constants under the conditioning event that at least one direction exceeds the null threshold.
Proof. See the supplementary material.
C. Differentiability
The exact algorithm composes non-smooth primitives (median, MAD, sort, rank, max, ), used in all our empirical results. For end-to-end training each primitive is replaced by a standard relaxation: (soft-extreme); med and MAD by soft-quantile relaxations [40]; the spacing sort by a differentiable sorting network [37]. The resulting surrogate is continuously differentiable in X and converges to the exact score as ; only this surrogate mode enables WAND to act as a loss inside an upstream learnable pipeline.
D. Adversarial Robustness
Theorem 3 (Per-direction breakdown). The MAD-z statistic has breakdown per direction. The uniform-sphere pathway is rotation-equivariant and inherits a joint breakdown from a composition with Tukey halfspace depth [21]. The full estimator additionally uses a fixed axis-aligned pathway that is not affine-equivariant, so a tight bound on the mixed estimator requires direct analysis and is left open.
Proof. Step 1 (per-direction). Fix and let . For any contaminated sample obtained by replacing entries of by arbitrary values, the order statistics still satisfy and for indices unchanged by the corruption, since at most contaminating entries cannot occupy both halves of the order statistic. Hence remains finite. The same argument applied to the absolute deviations gives , bounded away from 0, so stays bounded, proving the breakdown. Step 2 (uniform-sphere pathway). The Donoho–Huber composition principle [41] gives, for an affine-equivariant functional built from sub-functionals with continuous composition, . Here is per-direction (breakdown ) and is the rotation-equivariant aggregation (8) over , which shares the breakdown of Tukey halfspace depth [21]; composition gives . Step 3 (mixed pathway). The fixed axis set is not transformed under a change of basis, so affine equivariance is broken and the Step 2 composition does not lift to the mixed estimator; a direct contamination analysis is left open.
VI. EXPERIMENTS
A. Datasets and Baselines
We use the 47 ADBench [42] tabular anomaly tasks, spanning n from 80 to 619,326, d from 3 to 1,555, and contamina-
TABLE II DETECTION SUMMARY OVER 47 ADBENCH DATASETS, SORTED BY MEAN FRIEDMAN RANK (BEST/SECOND). FULL PER-DATASET ROC-AUC IN THE SUPPLEMENT.
| Method | Mean AUC | Mean rank | Wins |
|---|---|---|---|
| WAND (ours) | 0.777 | 5.64 | 7.4 |
| IForest | 0.762 | 6.04 | 5.4 |
| INNE | 0.759 | 6.71 | 7.2 |
| COPOD | 0.748 | 7.23 | 6.2 |
| HBOS | 0.743 | 7.40 | 1.2 |
| PIDForest | 0.750 | 7.43 | 1.2 |
| KNN | 0.729 | 7.54 | 2.0 |
| ECOD | 0.744 | 7.79 | 2.2 |
| PCA | 0.741 | 7.81 | 2.2 |
| LSCP | 0.727 | 8.65 | 0.0 |
| KDE | 0.708 | 8.69 | 6.0 |
| OCSVM | 0.730 | 8.80 | 0.0 |
| LOF | 0.658 | 10.11 | 0.0 |
| LODA | 0.655 | 10.13 | 2.0 |
| SOD | 0.688 | 10.14 | 1.0 |
| ABOD | 0.655 | 10.29 | 1.0 |
| COF | 0.624 | 11.57 | 2.0 |
tion from 0.03% (donors) to 39.9% (SpamBase); features are z-score normalised after dropping zero-variance columns.
We compare against 15 unsupervised PyOD [43] baselines, IFOREST [1], LOF [2], OCSVM [3], KNN [4], PCA [5], HBOS [13], ECOD [6], COPOD [7], ABOD [16], COF [17], SOD [18], INNE [12], LODA [15], LSCP [19], KDE [14], plus the projection-pursuit predecessor PIDFOREST [25] (16 baselines in total).
B. Protocol and Metrics
All methods are unsupervised. Each method's -score is computed on the same used to fit it; ROC-AUC is taken against the ground-truth label. We use WAND with the single default configuration above (no per-dataset tuning). Every reported AUC and runtime is the mean over runs with RNG seeds , applied uniformly to WAND and every stochastic baseline (IForest, PCA, INNE, LSCP). All runs use a single CPU core on a commodity x86-64 workstation (Intel Xeon, 16GB RAM, NumPy / PyTorch CPU, no GPU). Code and benchmark drivers are at https://github.com/Output-Sensitive/wand; baselines come unmodified from PyOD [43] (except PIDFOREST, from the reference implementation of [25]) on the 47 ADBench [42] tabular tasks.
We use a single default configuration in all experiments, with no per-dataset tuning: probe budget , spacing , axis probes on, mix weight , empirical-null level , and seed replicates. Each value is dimensionless/data-adaptive or sits at a one-knob plateau (e.g. halving to 512 shifts mean AUC by ); the full table and per-knob justification are in the supplement.
C. Main Results
Table II reports the main result over all 47 ADBench datasets. On the fair-comparison subset where Isolation Forest completes within budget, WAND attains the best mean Friedman rank (5.64) and a mean ROC-AUC (0.777) at parity with the strongest classical baselines (IForest 0.762, INNE

Fig. 3. Critical-difference diagram (ROC-AUC; Nemenyi, , CD = 3.60): a bar joins methods that are not significantly different. The AUPR/AP diagram is in the supplement.
0.759, PIDFOREST 0.750). The Nemenyi post-hoc test in Figure 3 places WAND in a top cluster of methods that are not statistically distinguishable at , so the rank advantage reflects WAND's consistency across datasets rather than frequent per-row wins, where it sits in a close pack with INNE on the per-row best-AUC tally. The AUPR ranking mirrors the ROC ordering (WAND best mean AUPR rank 5.57, mean AUPR 0.395, second to OCSVM 0.401; diagram in the supplement).
a) Across the full suite.: Using the batched path, WAND scores all 47 datasets in min of single-CPU time, including the giants donors (k, 16s) and census (k, , 17s); 18 rows reach . Each PyOD baseline gets a 5 min budget; quadratic-cost methods are auto-skipped on , so on the largest rows only the sub-quadratic family and WAND complete. The scorer is linear in (, independent of ): calibrated once, it streams points in 164 s (47 s at ) on an 8-core CPU, so WAND scales to high-throughput streams (supplement).
b) Per-dataset hyperparameter oracle (ceiling only.): As a diagnostic, not a comparator, selecting per dataset the best value of a single knob with test-label access raises WAND's mean AUC from 0.777 to 0.800 (+0.023), concentrated on a few datasets where one knob dominates (annthyroid, vertebral). This oracle is unachievable unsupervised; we report it only to bound the default-vs.-per-dataset gap and use the single published default elsewhere.
D. Ablation
Table III attributes the gain mechanism-by-mechanism. The Base configuration is already competitive at AUC 0.750 and mean rank 4.00; the split-pathway axis probes give the largest single AUC jump (+0.007), and the seed averaging closes the gap to the published configuration. The spacing component slightly lowers the suite-wide mean (); we
TABLE III INCREMENTAL ABLATION; EACH ROW ADDS ONE MECHANISM. MEAN RANK AMONG THE TABLE II METHODS (1 = BEST).
| Variant | Mean AUC | Mean rank | Wall time |
|---|---|---|---|
| Base (MAD-z, uniform probes) | 0.750 | 4.00 | 0.10 s |
| + Spacing component (5) | 0.745 | 4.39 | 2.83 s |
| + Axis probes (split pathway) | 0.752 | 4.13 | 2.85 s |
| + Seed averaging (S=3, full) | 0.756 | 3.87 | 8.63 s |
TABLE IV
EXPLANATION QUALITY: SYNTHETIC ATTRIBUTION-AUC (AXIS / OBLIQUE REGIMES), MEAN DELETION/INSERTION FAITHFULNESS OVER 33 ADBENCH DATASETS (≥SHAP WIN-RATE), AND PER-EXPLANATION COST. SHAP/LIME EXPLAIN WAND; ECOD AND IFOREST EXPLAIN THEMSELVES (DETECTION AUCS IN TEXT). †DEPTH-WEIGHTED SPLIT ATTRIBUTION, READ FROM THE FITTED ENSEMBLE (APPENDIX D).
| Method | Synthetic attr-AUC | Real faithfulness | Cost / expl. | |||
|---|---|---|---|---|---|---|
| axis | oblique | mean | ≥SHAP | queries | ms | |
| WAND-witness | 0.977 | 0.660 | 0.629 | 85% | 0 | 0.04 |
| WAND-gradient | 0.993 | 0.680 | 0.595 | 82% | 0 | 0.05 |
| ECOD (native) | 0.968 | 0.635 | 0.290 | 21% | 0 | 0.00 |
| SHAP (post-hoc) | 0.887 | 0.632 | 0.515 | — | 9,745 | 229.94 |
| LIME (post-hoc) | 0.585 | 0.504 | 0.337 | 21% | 600 | 18.96 |
| IForest (native)† | 0.498 | 0.499 | 0.031 | 3% | 0 | 5.93 |
| Random | — | — | -0.004 | 3% | 0 | 0.00 |
keep it on by default for its per-dataset upside on the multi-modal projections (anthyroid, vertebral), a deliberate trade-off that the suite-wide number reports transparently. A lite configuration without spacing and with recovers AUC at s and is a sensible alternative when wall-clock matters more than rank. The cumulative effect is AUC and rank over Base, while also buying the entire theoretical apparatus of Section V (output-sensitive , differentiability, robustness), none of which the Base inherits. The wall-time penalty for the full method (8.6 s vs. 0.1 s on the ablation subset) is sizeable in relative terms but remains under 10 s per dataset in absolute terms.
E. Probe Budget in Practice
Sweeping the probe budget on the highest-hull-complexity datasets, AUC saturates at ( the soft-extreme hull size), confirming the budget tracks output complexity rather than ; WAND sits at the top-left of the AUC–runtime Pareto frontier: it attains the best mean AUC of all methods on this shared subset, and the fastest baseline within 0.02 AUC of it, IForest, is only faster (Fig. 9, Table XI).
F. Explanation Quality
We now evaluate the central claim of the paper: that WAND's witness directions yield explanations that are accurate, faithful, and essentially free. Every explainer below, WAND-witness (9), WAND-gradient (10), and post-hoc SHAP [8] and LIME [9], explains the same WAND score, so the comparison isolates the explainer. Table IV and Figure 4 summarise; Figure 5 is a case study on image data.

Fig. 4. Explanation quality and heavy-tail robustness. (a) Attribution-AUC by regime (axis vs. oblique). (b) Faithfulness vs. detector queries (log ): native WAND is top-left, most faithful at zero extra cost. (c) Under heavy-tailed inliers (Student-t, heavier tails to the left) WAND detection stays ahead of IForest/ECOD down to Cauchy, and (d) its witness attribution-AUC stays high.
a) Synthetic ground truth (two regimes). Inliers follow a strongly low-rank correlated Gaussian; each anomaly deviates on a known random subset , which a correct explanation should rank first. We use two anomaly regimes: axis-aligned (independent per-feature shifts on , the regime marginal methods own) and oblique, a displacement along the minimum-variance direction of , i.e. a correlation violation that is jointly extreme but marginally near-normal. Averaged over , and three seeds (Table IV): on axis-aligned anomalies WAND-gradient and WAND-witness lead (attribution-AUC 0.99/0.98), with the AD-native marginal explainer ECOD also strong (0.97) and SHAP/LIME behind (0.89/0.59). The decisive case is oblique: ECOD's detection collapses to chance (AUC 0.53 vs. WAND's 0.91), so it never surfaces these points and its attribution is moot, whereas WAND still leads on attribution (0.68). A marginal native explainer is structurally blind to the correlation anomalies that directional methods exist for; WAND handles both regimes.
b) Faithfulness on real data.: With no labels, we use the standard deletion/insertion protocol [44]: mask the most-attributed features of each flagged point (replacing them by the per-feature median) and measure how fast the score collapses (deletion), and symmetrically how fast it recovers when those features are re-inserted (insertion). Each curve is normalised by the point's own score and clipped to , so faithfulness = insertion – deletion is bounded and no single dataset dominates; we average over 33 ADBench datasets. Each native

Fig. 5. Concept-level explanation (which attributes), encoder-free. ANOCUB witness attribution in CUB's named-concept space: the three top-scored birds (flagged: pelican, frigatebird, mallard, 99.5–99.9th pct) with witness directions mapped to body-part keypoints (hotter = more responsible) and the top attribute named, beside the most-normal bird (sparrow, 0th pct). Unlike Fig. 1, no encoder is needed and concepts are named, not pixel locations.
explainer is evaluated against its own detector (ECOD against ECOD), SHAP/LIME against WAND. A random control sits at , confirming the metric. WAND's better native mode is at least as faithful as SHAP on 29/33 datasets, and witness beats ECOD's native attribution on 31/33; mean faithfulness is 0.63 (witness) and 0.59 (gradient), versus 0.52 (SHAP), 0.34 (LIME) and 0.29 (ECOD), ECOD's marginal explanation, strong on synthetic axis anomalies, does not transfer to real anomalies that are rarely purely marginal. A second native baseline, Isolation Forest's depth-weighted split attribution (Table IV), performs near chance on both protocols, so being native to a strong detector is not on its own sufficient for a faithful explanation.
c) Cost, agreement, coverage.: The native explanations require zero extra detector queries (they reuse quantities formed during scoring), versus scorer evaluations per point for SHAP and for LIME at the budgets above, a reduction in wall-clock per explanation (Fig. 4b). The two native modes agree (mean rank correlation 0.80). The probe budget guarantees a witness for every -margin anomaly (Section IV-H), so every flagged point has an explanation.
d) Robustness to heavy tails.: Assumption 1 asks for sub-Gaussian inliers; real data is often heavier-tailed. We test this directly: inliers are multivariate Student- with degrees of freedom swept from Gaussian () to Cauchy (1), anomalies are axis shifts in MAD units (Fig. 4). WAND degrades gracefully and stays clearly ahead of Isolation Forest and ECOD throughout (e.g. at df=2: AUC 0.94 vs. 0.86 and 0.75; even at Cauchy, 0.85 vs. 0.79 and 0.68), and witness attribution-AUC remains . The median/MAD calibration thus keeps the detector and its explanations effective well outside the sub-Gaussian regime, though we do not claim formal guarantees there (Section VII-0a).
e) Comparison with deep detectors.: On a representative 16-dataset subset we add three PyOD deep baselines trained on the contaminated sample. WAND is competitive: mean ROC-AUC 0.821, matching VAE (0.821), ahead of AutoEncoder (0.790) and Deep SVDD (0.798); IForest leads (0.854). As in ADBench [42], deep tabular detectors do not dominate strong shallow ones, and none offers a native explanation.
f) Case study: explaining image anomalies.: To show the explanation on raw inputs we build ANOCUB from CUB-200-2011 [45]: each bird image is represented by its 312 named attributes (the class-level concept profile), inliers are the sparrow species and anomalies a few birds from very different families (pelican, frigatebird, mallard, hummingbird). WAND separates them perfectly (AUC 1.0); Figure 5 asks whether its flags are justified. The three highest-scored birds (left) are unmistakably non-sparrows (pelican, frigatebird, mallard, 99.5–99.9th percentile) while the most-normal bird (right) is a typical sparrow (0th). For each flagged bird the witness names the responsible attribute (bill shape/length) and, mapped to CUB's 15 keypoints, grounds it on the bird's body, at no extra cost and using no pixels or labels. The pixel-level view of Fig. 1 instead scores a frozen ResNet-18 embedding of the same task and reaches comparable detection (AUC 0.99 vs. 1.0 in the named-concept space): the concept representation explains by name, the embedding adds spatial pixel maps. (A named-feature medical case study, Breast Cancer Wisconsin, is in the supplement.)
VII. CONCLUSION
WAND detects anomalies and explains them with the same object: the witness directions along which a point escapes a sub-Gaussian baseline. Each direction lives in feature space, so the witnesses are a native attribution, free over scoring, gradient-recoverable, and more faithful than post-hoc SHAP/LIME at a fraction of the cost, and the geometry bounds the probe count by the anomaly count, guaranteeing every anomaly an explanation.
a) Limitations.: (i) Probe efficiency bounds directions, not runtime. The scorer stays linear in ; a wall-clock speed-up needs a sub-linear per-probe index, left to future work. (ii) The worst-case bound loosens in high , shrinks with , so the guarantee is informative in low-to-moderate ; a fixed still suffices empirically at , and a structure-adaptive bound is open. (iii) Assumptions are verified empirically beyond their proven range. Sub-Gaussianity holds only within Assumption 1; under heavy tails the method stays effective empirically (Fig. 4), and the Gaussian-copy null uses a non-robust covariance that can inflate (Waveform). (iv) The breakdown proof covers the uniform-sphere pathway. The bound is established there; the axis-augmented estimator awaits direct analysis (Theorem 3). (v) Detection is at parity. WAND has the best mean rank and top mean ROC-AUC but sits in the Nemenyi top cluster; the contribution is native explanation at detection parity, not a wide accuracy margin. (vi) Faithfulness is model-relative. On real data the deletion/insertion metric certifies consistency with WAND's own score; objective correctness is tested on synthetic ground truth (Section VI-F).
b) Acknowledgment.: This work was supported by French state aid managed by the National Research Agency under the France 2030 program, with the reference “PAN-DORA” (ANR-24-CE23-0950).
REFERENCES
[1] F. T. Liu, K. M. Ting, and Z.-H. Zhou, “Isolation forest,” in Proc. IEEE Int. Conf. on Data Mining (ICDM), 2008, pp. 413–422.
[2] M. M. Breunig, H.-P. Kriegel, R. T. Ng, and J. Sander, “LOF: Identifying density-based local outliers,” in Proc. ACM SIGMOD, 2000, pp. 93–104.
[3] B. Schölkopf, J. C. Platt, J. Shawe-Taylor, A. J. Smola, and R. C. Williamson, “Estimating the support of a high-dimensional distribution,” Neural Computation, vol. 13, no. 7, pp. 1443–1471, 2001.
[4] S. Ramaswamy, R. Rastogi, and K. Shim, “Efficient algorithms for mining outliers from large data sets,” in Proc. ACM SIGMOD, 2000, pp. 427–438.
[5] M.-L. Shyu, S.-C. Chen, K. Sarinnapakorn, and L. Chang, “A novel anomaly detection scheme based on principal component classifier,” in Proc. IEEE Foundations and New Directions of Data Mining, 2003.
[6] Z. Li, Y. Zhao, X. Hu, N. Botta, C. Ionescu, and G. H. Chen, “ECOD: Unsupervised outlier detection using empirical cumulative distribution functions,” IEEE Trans. Knowl. Data Eng., 2022.
[7] Z. Li, Y. Zhao, N. Botta, C. Ionescu, and X. Hu, “COPOD: Copula-based outlier detection,” in Proc. IEEE Int. Conf. on Data Mining (ICDM), 2020, pp. 1118–1123.
[8] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems (NeurIPS), 2017.
[9] M. T. Ribeiro, S. Singh, and C. Guestrin, “why should i trust you?”: Explaining the predictions of any classifier,” in ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2016.
[10] J. W. Tukey, “Mathematics and the picturing of data,” Proc. Int. Cong. of Math., pp. 523–531, 1975.
[11] B. Chazelle, “An optimal convex hull algorithm in any fixed dimension,” Discrete Comput. Geom., vol. 10, no. 1, pp. 377–409, 1993.
[12] T. R. Bandaragoda, K. M. Ting, D. Albrecht, F. T. Liu, Y. Zhu, and J. R. Wells, “Isolation-based anomaly detection using nearest-neighbor ensembles,” Computational Intelligence, vol. 34, no. 4, pp. 968–998, 2018.
[13] M. Goldstein and A. Dengel, “Histogram-based outlier score (HBOS): A fast unsupervised anomaly detection algorithm,” in Proc. German Conf. on AI (KI), Poster and Demo Track, 2012, pp. 59–63.
[14] E. Parzen, “On estimation of a probability density function and mode,” Ann. Math. Stat., vol. 33, no. 3, pp. 1065–1076, 1962.
[15] T. Pevnyj, “LODA: Lightweight on-line detector of anomalies,” Machine Learning, vol. 102, no. 2, pp. 275–304, 2016.
[16] H.-P. Kriegel, M. Schubert, and A. Zimek, “Angle-based outlier detection in high-dimensional data,” in Proc. ACM SIGKDD, 2008, pp. 444–452.
[17] J. Tang, Z. Chen, A. W.-c. Fu, and D. W. Cheung, “Enhancing effectiveness of outlier detections for low density patterns,” in Proc. PAKDD, 2002, pp. 535–548.
[18] H.-P. Kriegel, P. Kröger, E. Schubert, and A. Zimek, “Outlier detection in axis-parallel subspaces of high dimensional data,” in Proc. PAKDD, 2009, pp. 831–838.
[19] Y. Zhao, Z. Nasrullah, M. K. Hryniewicki, and Z. Li, “LSCP: Locally selective combination in parallel outlier ensembles,” in Proc. SIAM Int. Conf. on Data Mining (SDM), 2019, pp. 585–593.
[20] Y. Zhao, X. Hu, C. Cheng, C. Wang, C. Wan, W. Wang, J. Yang, H. Bai, Z. Li, C. Xiao et al., “SUOD: Accelerating large-scale unsupervised heterogeneous outlier detection,” in Proc. MLSys, 2021, pp. 463–478.
[21] D. L. Donoho and M. Gasko, “Breakdown properties of location estimates based on halfspace depth and projected outlyingness,” Ann. Stat., vol. 20, no. 4, pp. 1803–1827, 1992.
[22] G. Aloupis, “Geometric measures of data depth,” DIMACS Series in Discrete Math. and Theoretical Comp. Sci., vol. 72, pp. 147–158, 2006.
[23] J. H. Friedman and J. W. Tukey, “A projection pursuit algorithm for exploratory data analysis,” IEEE Trans. Comput., vol. C-23, no. 9, pp. 881–890, 1974.
[24] P. J. Rousseeuw and C. Croux, “Alternatives to the median absolute deviation,” Journal of the American Statistical Association, vol. 88, no. 424, pp. 1273–1283, 1993.
[25] P. Gopalan, V. Sharan, and U. Wieder, “PIDForest: Anomaly detection via partial identification,” in Advances in Neural Information Processing Systems (NeurIPS), 2019.
[26] L. Ruff, R. A. Vandermeulen, N. Goernitz, L. Deecke, S. A. Siddiqui, A. Binder, E. Müller, and M. Kloft, “Deep one-class classification,” in Proc. Int. Conf. on Machine Learning (ICML), 2018.
[27] B. Zong, Q. Song, M. R. Min, W. Cheng, C. Lumezanu, D. Cho, and H. Chen, “Deep autoencoding gaussian mixture model for unsupervised anomaly detection,” in Proc. Int. Conf. on Learning Representations (ICLR), 2018.
[28] S. Tuli, G. Casale, and N. R. Jennings, “TranAD: Deep transformer networks for anomaly detection in multivariate time series data,” in Proc. VLDB Endow., 2022.
[29] J. Yin, Y. Qi, Q. Chen, and Y. Qu, “MCM: Masked cell modeling for anomaly detection in tabular data,” in Proc. Int. Conf. on Learning Representations (ICLR), 2024.
[30] A. Goodge, B. Hooi, S.-K. Ng, and W. S. Ng, “LUNAR: Unifying local outlier detection methods via graph neural networks,” in Proc. AAAI Conf. on Artificial Intelligence, 2022.
[31] V. Livernoche, V. Jain, Y. Hezaveh, and S. Ravanbakhsh, “On diffusion modeling for anomaly detection,” in Proc. Int. Conf. on Learning Representations (ICLR), 2024.
[32] G. Zamberg, M. Salhov, O. Lindenbaum, and A. Averbuch, “TabADM: Unsupervised tabular anomaly detection with diffusion models,” arXiv preprint arXiv:2307.12336, 2023.
[33] N. Takeishi, “Shapley values of reconstruction errors of PCA for explaining anomaly detection,” IEEE International Conference on Data Mining Workshops (ICDMW), 2019.
[34] L. Antwarg, R. A. Müller, B. Shapira, and L. Rokach, “Explaining anomalies detected by autoencoders using SHAP,” Expert Systems with Applications, vol. 186, p. 115736, 2021.
[35] B. Micenková, R. T. Ng, X.-H. Dang, and I. Assent, “Explaining outliers by subspace separability,” in IEEE International Conference on Data Mining (ICDM), 2013.
[36] M. M. Hossain, T. Katzke, S. Klüttermann, and E. Müller, “Unsupervised symbolic anomaly detection,” arXiv preprint arXiv:2603.17575, 2026.
[37] M. Blondel, O. Teboul, Q. Berthet, and J. Djolonga, “Fast differentiable sorting and ranking,” in Proc. Int. Conf. on Machine Learning (ICML), 2020, pp. 950–959.
[38] R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018.
[39] D. O. Loftsgaarden and C. P. Quesenberry, “A nonparametric estimate of a multivariate density function,” Annals of Mathematical Statistics, vol. 36, no. 3, pp. 1049–1051, 1965.
[40] M. Cuturi, O. Teboul, and J.-P. Vert, “Differentiable ranks and sorting using optimal transport,” in Advances in Neural Information Processing Systems (NeurIPS), 2019.
[41] D. L. Donoho and P. J. Huber, “The notion of breakdown point,” A Festschrift for Erich L. Lehmann, pp. 157–184, 1983.
[42] S. Han, X. Hu, H. Huang, M. Jiang, and Y. Zhao, “ADBench: Anomaly detection benchmark,” in Advances in Neural Information Processing Systems (NeurIPS), 2022.
[43] Y. Zhao, Z. Nasrullah, and Z. Li, “PyOD: A Python toolbox for scalable outlier detection,” J. Mach. Learn. Res., vol. 20, no. 96, pp. 1–7, 2019.
[44] V. Petsiuk, A. Das, and K. Saenko, “RISE: Randomized input sampling for explanation of black-box models,” in British Machine Vision Conference (BMVC), 2018.
[45] C. Wah, M. Branson, P. Welinder, P. Perona, and S. Belongie, “The Caltech-UCSD birds-200-2011 dataset,” California Institute of Technology, Tech. Rep. CNS-TR-2011-001, 2011.
This appendix collects extended tables, figures, and a second case study, plus the two longer deferred proofs. Theorem, proposition, equation, and section numbers below refer to the main text above. Theorem 1 and Theorem 3 are proved in place in the main text; the three supporting proofs are collected here.
APPENDIX A
DEFERRED PROOFS
Proof of Proposition 1 (Extreme-value baseline)
Fix and let . By Assumption 1 the variables are i.i.d. sub-Gaussian with proxy variance bounded by (projection onto preserves the sub-Gaussian property with the operator-norm constant ). By the maximal sub-Gaussian inequality [1], , and concentration around the expectation gives
with probability [2]. Substituting and adding the envelope slack produces with residual (the slack is a chosen constant, not the Gumbel expansion, used only for a clean deterministic upper bound). For the location/scale rescaling, classical results [3] give and under our sub-Gaussian assumption with continuous CDF; dividing the displayed bound by absorbs the residual into since . Uniformity over uses an -net of cardinality [5]: as is -Lipschitz, replacing by its nearest net point changes by uniformly in , so makes the net slack while the union bound costs , absorbed into the residual.
Proof of Lemma 1 (Spherical-cap lower bound on )
Decompose , . Proposition 1 gives and uniformly in . Hence , which exceeds under the displacement hypothesis whenever . The cap-measure bound [6] closes the argument.
Proof of Theorem 2 (Plug-in consistency)
Fix any ; the per-point score is with the , and . Under Assumption 1 the per-direction excess satisfies the deterministic envelope with , by combining Proposition 1 with the MAD-z definition of . Hoeffding's inequality [38] on the bounded summands gives . Union-bounding over the points and choosing yields with probability , as stated.
APPENDIX B
EXTENDED TABLES
A. Default hyper-parameters
Table V lists the single default configuration used in all experiments (no per-dataset tuning).
TABLE V
WAND DEFAULT HYPER-PARAMETERS USED IN ALL EXPERIMENTS.
| Symbol | Default |
|---|---|
| K (probe budget) | 1024 |
| Spacing k (NN rank) | |
| Axis probes | on |
| Mix weight | 0.25 |
| Seed replicates S | 3 |
B. Per-dataset detection results
Table VI reports per-dataset ROC-AUC for all 16 unsupervised detectors over the 47 ADBench tasks (Table II in the main text reports the aggregate summary).
C. Pixel-level explanation on raw images
WAND's score is differentiable in its input features, so when those features come from a differentiable encoder , is obtained by autograd through , with no training. We embed the ANOCUB images with a frozen pre-trained ResNet-18, fit WAND on the 512-d embeddings (z-scored, no whitening; detection AUC 0.99), and back-propagate the anomaly score of a flagged bird to its pixels (SmoothGrad). Fig. 1 in the main text shows the resulting saliency for three flagged anomalies and a normal inlier on a shared scale: it concentrates on the anomalies' discriminative body/bill regions and is weak on the inlier. This realises the pixel-level explanation; embedding-space detection (AUC 0.99) is on par with the named concept space (1.0), the trade-off being only that embedding dimensions are not individually named, so the map is spatial-only. Note that, as in the concept space, we fit WAND without Mahalanobis whitening: on the contaminated 512-d embedding covariance, whitening suppresses the anomaly directions and drops AUC to 0.88.
D. The ANOCUB dataset
ANOCUB is the explainable-AD benchmark we derive from CUB-200-2011 [45]. Each bird image is represented by its 312 named binary attributes (the class-level concept profile); inliers are the sparrow species and anomalies are a small set of birds from very different families (pelican, frigatebird, mallard, hummingbird), giving a task with 15 anomalies. As ANOCUB is not a standard download, we release the construction script, which regenerates the exact task (anocub_task.npz) from the public CUB archive, together with the embedding/saliency scripts below.
TABLE VI ROC-AUC OVER 47 ADBENCH DATASETS FOR 16 UNSUPERVISED DETECTORS. BOLD = BEST PER ROW, UNDERLINE = SECOND. “–” = BUDGET / MEMORY EXHAUSTED. Dataset n d Contam. IForest LOF OCSVM KNN PCA HBOS ECOD COPOD ABOD COF SOD INNE LODA LSCP KDE PIDForest WAND breastw 683 9 35.0% 0.988 0.443 0.951 0.977 0.956 0.985 0.991 0.994 – 0.428 0.934 0.697 0.986 – 0.984 0.975 0.990 glass 214 7 4.2% 0.788 0.770 0.599 0.864 0.654 0.812 0.705 0.755 0.843 0.868 0.887 0.774 0.655 0.799 0.820 0.776 0.787 Hepatitis 80 19 16.2% 0.732 0.719 0.721 0.727 0.752 0.775 0.739 0.804 0.566 0.479 0.631 0.621 0.623 0.777 0.649 0.713 0.790 Ionosphere 351 32 35.9% 0.842 0.866 0.849 0.928 0.784 0.561 0.728 0.789 0.921 0.860 0.884 0.890 0.788 0.813 0.938 0.797 0.907 Lymphography 148 18 4.1% 0.999 0.993 0.995 0.995 0.996 0.995 0.995 0.996 0.979 0.995 0.934 0.984 0.877 0.994 0.989 0.978 0.998 Pima 768 8 34.9% 0.664 0.601 0.624 0.709 0.648 0.709 0.594 0.654 0.667 0.591 0.582 0.681 0.601 0.638 0.723 0.675 0.687 Stamps 340 9 9.1% 0.895 0.591 0.872 0.774 0.907 0.904 0.876 0.930 0.762 0.540 0.772 0.841 0.883 0.832 0.890 0.876 0.901 vertebral 240 6 12.5% 0.352 0.445 0.420 0.378 0.377 0.305 0.420 0.335 0.365 0.473 0.387 0.383 0.295 0.351 0.317 0.277 0.259 WBC 223 9 4.5% 0.995 0.821 0.992 0.986 0.993 0.988 0.995 0.995 0.935 0.758 0.977 0.933 0.990 0.974 0.973 0.992 0.995 WDBC 367 30 2.7% 0.987 0.982 0.983 0.974 0.986 0.992 0.971 0.994 0.885 0.947 0.947 0.975 0.980 0.990 0.950 0.991 0.983 wine 129 13 7.8% 0.795 0.879 0.696 0.519 0.806 0.915 0.733 0.867 0.417 0.302 0.446 0.785 0.834 0.907 0.582 0.812 0.939 WPBC 198 33 23.7% 0.486 0.520 0.485 0.500 0.482 0.548 0.481 0.523 0.490 0.474 0.474 0.500 0.502 0.530 0.489 0.537 0.564 annthyroid 7200 6 7.4% 0.832 0.727 0.681 0.811 0.673 0.620 0.789 0.776 – 0.708 0.794 0.700 0.465 0.731 0.684 0.879 0.777 cardio 1831 21 9.6% 0.926 0.546 0.935 0.686 0.950 0.840 0.935 0.922 – 0.567 0.623 0.913 0.893 0.712 0.748 0.860 0.923 Cardiotoco. 2114 21 22.0% 0.665 0.524 0.696 0.491 0.752 0.620 0.785 0.663 0.452 0.539 0.492 0.666 0.675 0.563 0.503 0.609 0.653 fault 1941 27 34.7% 0.567 0.596 0.539 0.720 – 0.572 0.469 0.455 0.699 0.563 0.661 0.573 0.495 0.575 0.731 0.571 0.486 landsat 6435 36 20.7% 0.472 0.547 0.424 0.576 0.364 0.559 0.368 0.421 0.503 0.543 0.577 0.541 0.380 0.560 0.625 0.456 0.575 letter 1600 32 6.2% 0.648 0.899 0.598 0.901 0.525 0.588 0.572 0.560 0.886 0.889 0.909 0.700 0.533 0.850 0.924 0.664 0.688 PageBlocks 5393 10 9.5% 0.904 0.716 0.915 0.834 0.905 0.760 0.914 0.875 0.740 0.624 0.662 0.947 0.719 0.813 0.907 0.854 0.916 pendigits 6870 16 2.3% 0.947 0.499 0.931 0.743 0.936 0.926 0.927 0.905 0.657 0.523 0.659 0.894 0.924 0.705 0.891 0.927 0.926 satellite 6435 36 31.6% 0.695 0.542 0.664 0.665 0.601 0.754 0.583 0.633 0.549 0.536 0.599 0.742 0.615 0.638 0.760 0.649 0.781 satimage-2 5803 36 1.2% 0.993 0.536 0.997 0.932 0.977 0.978 0.965 0.974 0.759 0.559 0.771 0.998 0.982 0.859 0.964 0.983 0.993 thyroid 3772 6 2.5% 0.978 0.665 0.959 0.959 0.956 0.950 0.977 0.939 – 0.587 0.876 0.971 0.816 0.788 0.958 0.967 0.980 vowels 1456 12 3.4% 0.767 0.943 0.778 0.977 0.610 0.677 0.593 0.496 0.966 0.960 0.914 0.898 0.635 0.921 0.956 0.740 0.885 Waveform 3443 21 2.9% 0.705 0.706 0.672 0.723 0.640 0.694 0.603 0.734 0.639 0.697 0.650 0.748 0.635 0.742 0.751 0.629 0.566 Wilt 4819 5 5.3% 0.441 0.701 0.317 0.613 0.434 0.349 0.394 0.345 0.634 0.723 0.595 0.359 0.403 0.598 0.334 0.507 0.427 yeast 1484 8 34.2% 0.394 0.457 0.420 0.406 0.396 0.399 0.444 0.381 0.416 0.449 0.477 0.394 0.504 0.434 0.383 0.413 0.397 ALOI 49534 27 3.0% 0.539 – – – 0.548 0.530 0.530 0.515 – – – 0.558 0.509 – – 0.538 0.542 celeba 202599 39 2.2% 0.687 – – – 0.784 0.749 0.757 0.751 – – – 0.757 0.627 – – 0.654 0.782 cover 286048 10 1.0% 0.882 – – – 0.934 0.712 0.920 0.884 – – – 0.959 0.833 – – 0.933 0.855 donors 619326 10 5.9% 0.768 – – – 0.824 0.742 0.888 0.815 – – – 0.733 0.968 – – 0.628 0.909 fraud 284807 29 0.2% 0.951 – – – 0.953 0.954 0.950 0.947 – – – 0.956 0.621 – – 0.947 0.941 http 567498 3 0.4% 0.999 – – – 0.996 0.994 0.979 0.992 – – – 0.998 0.281 – – 0.992 0.994 magic.gamma 19020 10 35.2% 0.719 0.693 – 0.811 0.667 0.712 0.638 0.681 0.784 0.638 0.746 0.735 0.649 – 0.722 0.744 0.681 mammography 11183 6 2.3% 0.861 0.719 – 0.838 0.894 0.830 0.906 0.905 – 0.717 0.805 0.824 0.891 0.741 0.865 0.843 0.881 shuttle 49097 9 7.2% 0.997 – – – 0.990 0.984 0.993 0.995 – – – 0.989 0.641 – – 0.972 0.996 skin 245057 3 20.8% 0.667 – – – 0.417 0.595 0.489 0.471 – – – 0.722 0.432 – – 0.727 0.894 smtp 95156 3 0.0% 0.904 – – – 0.808 0.800 0.880 0.912 – – – 0.925 0.829 – – 0.918 0.956 backdoor 95329 193 2.4% 0.742 – – – – 0.740 0.846 0.789 – – – 0.905 0.237 – – 0.733 0.894 campaign 41188 62 11.3% 0.699 0.625 – 0.741 – 0.766 0.770 0.783 0.724 – – 0.731 0.500 – – 0.781 0.667 census 299285 500 6.2% 0.607 – – – – – – – – – – 0.665 – – – 0.532 0.672 InternetAds 1966 1555 18.7% 0.701 0.609 – 0.652 0.615 0.696 0.677 0.676 0.585 0.614 0.562 0.610 0.523 – 0.616 0.648 0.619 mnist 7603 78 9.2% 0.809 0.673 – 0.837 0.850 0.576 0.746 0.774 0.755 0.635 0.675 0.858 0.426 0.643 0.798 0.621 0.849 musk 3062 166 3.2% 1.000 0.636 – 0.616 1.000 1.000 0.956 0.946 0.050 0.560 0.601 1.000 0.992 0.915 0.071 1.000 1.000 optdigits 5216 62 2.9% 0.733 0.537 – 0.395 0.515 0.869 0.605 0.682 0.513 0.511 0.512 0.615 0.608 0.569 0.323 0.794 0.576 SpamBase 4207 57 39.9% 0.627 0.457 – 0.489 0.550 0.662 0.656 0.688 0.400 0.447 0.500 0.543 0.372 0.566 0.495 0.650 0.582 speech 3686 400 1.7% 0.466 0.509 – 0.491 0.469 0.476 0.470 0.491 0.763 0.532 0.570 0.478 0.496 – 0.451 0.472 0.446 Avg. AUC 0.762 0.658 0.730 0.729 0.741 0.743 0.744 0.748 0.655 0.624 0.688 0.759 0.655 0.727 0.708 0.750 0.777 Avg. rank 6.04 10.11 8.80 7.54 7.81 7.40 7.79 7.23 10.29 11.57 10.14 6.71 10.13 8.65 8.69 7.43 5.64 Share of wins 5.4 0 0 2 2.2 1.2 2.2 6.2 1 2 1 7.2 2 0 6 1.2 7.4 a) Whitening ablation.: On the ResNet-18 embedding used for the pixel-level view (Fig. 1), Mahalanobis whitening on the contaminated covariance suppresses the anomaly directions; turning it off recovers detection (Table VII), no backbone change is needed. TABLE VII ANOCUB DETECTION AUC: RESNET-18 EMBEDDING, WITH/WITHOUT MAHALANOBIS WHITENING. ResNet-18 embedding whiten=ON whiten=OFF raw 0.882 0.980 z-scored 0.881 0.989 b) Backbone.: Among lightweight ImageNet backbones (z-scored embeddings, no whitening), ResNet-18 gives the best embedding-space detection (Table VIII); we therefore keep it for the pixel-level explanation. TABLE VIII ANOCUB DETECTION AUC BY LIGHTWEIGHT BACKBONE (Z-SCORED, NO WHITENING). backbone dim AUC ResNet-18 512 0.989 EfficientNet-B0 1280 0.975 MobileNetV3-small 576 0.971
E. Explanation gallery and failure modes
Figure 6 illustrates both explanation modes on the same task and is deliberately fair about where each is weak.
a) What is, and is not, missed.: In the named-concept space all 15 anomalies rank in the top 15 (detection AUC 1.0), so there is no detection miss; 14/15 attribute most strongly to bill length, which maps to the beak keypoint and localises cleanly. The lone exception is a Mallard whose top concept is the global “duck-like” shape ( of its attribution mass falls on global attributes with no keypoint): the part-grounded view cannot pin it to a location, even though the named reason is still correct and human-readable. In the ResNet-18 embedding space detection is near-perfect (AUC 0.99): the cross-family large birds (pelican, frigatebird, mallard) are flagged at the 99th percentile with crisp saliency, but the small hummingbirds are harder, one Anna Hummingbird drops to the 90th percentile (about 130 sparrow inliers score above it) because at it embeds close to the sparrows. We report these openly: neither mode dominates, and the concept- and pixel-level views are complementary rather than redundant, the case each one struggles with is handled by the other.
F. Case study: named-feature medical data
On Breast Cancer Wisconsin (benign cases as inliers, a few malignant cases as anomalies; AUC 0.933, no labels used), WAND attributes flagged malignant cases to mean radius, mean/worst perimeter, worst area, and mean concavity, the clinically recognised malignancy markers, read directly off the witness directions (Figure 7).
G. Critical-difference diagram (AUPR / AP)
The main text ranks the detectors by ROC-AUC; to check that the ordering is not an artefact of that metric, Figure 8 repeats the Nemenyi post-hoc analysis on AUPR / average precision, which weighs the positive (anomaly) class more heavily. The two rankings agree.
H. AUC vs. runtime
Beyond accuracy alone, Figure 9 plots detection quality against wall-clock cost, restricted to the 22 datasets that every method completes so the per-method means cover the same tasks. WAND lands on the top-left Pareto frontier: no baseline is at once faster and more accurate on this shared subset.
I. Scalability to large n
WAND is inductive: it calibrates once on a reference sample (per-direction median/MAD, weights, and the sub-Gaussian baseline), then scores arbitrary points in a single pass. The probe budget K is independent of n, so the deployed scorer is , linear in n, the same complexity class as Isolation Forest / ECOD / HBOS and unlike the neighbour methods. Points are scored independently against the frozen background, so scoring streams in constant-memory chunks (bit-for-bit identical to a single call: on points) and is embarrassingly parallel over rows. Figure 10 confirms this on synthetic data (d=20, an 8-core CPU): after a 1.1 s calibration on 50k points, the default K=1024 scorer processes points in 164 s ( pts/s) and the lite K=256 setting in 47 s ( pts/s); throughput is flat in n, so wall-clock grows strictly linearly out to . The probe budget K is therefore a direct speed/quality knob, and WAND scales to high-throughput streams, the probe-efficiency guarantee is a budget, not a runtime, claim, but the runtime itself is linear and small.
J. Dataset statistics
Table IX lists the 47 ADBench tasks.
APPENDIX C ADDITIONAL CLARIFICATIONS
This section collects detailed answers to natural questions about cost, calibration, and scope. We are explicit about what we have measured and what we leave to future work.
a) Cost of the spacings step and memory footprint.: For each of the directions we (i) form the projections in and (ii) sort them once, . The single sort yields all order statistics , and from them every two-sided -spacing in one pass over ranks; the MAD branch reuses the same sorted array for the median/MAD, so no second sort is needed. The per-direction cost is therefore and the total (Remark 1); the axis probes reuse the coordinates directly. The working set is per direction (the projected/sorted vector), and directions are processed independently, so the footprint is beyond the input rather than , and scoring streams in constant-memory chunks.
b) The null gate , contamination, and heavy tails.: enters only as a per-direction weight gate in (8): it reweights directions and never enters the per-point statistic , whose breakdown is carried by the median/MAD (Theorem 3), not by . We keep a Ledoit–Wolf Gaussian-copy quantile because it serves only as a relative reference, and the aggregation falls back to a uniform-weighted mean when the gate is empty. We did not run robust-covariance or permutation-based nulls; since only orders directions while robustness is decoupled into the MAD statistic, we expect low sensitivity, consistent with WAND remaining effective on heavy-tailed inliers (main text), but a systematic robust-null study is future work.
c) High-dimensional regime and witness-cone sizes.: The worst-case probe bound (Lemma 1) is loose in high d, yet a fixed uniform budget K = 1024 suffices empirically up to the highest-dimensional ADBench tasks (d up to ), direct evidence that real witness cones are far wider than the adversarial cap. We tested adaptive (posterior-targeting) direction sampling and saw no measurable mean-AUC gain over uniform draws (Section IV-D), so we keep uniform sampling. A structure-adaptive scheme that aligns probes with the empirical principal directions is a promising way to tighten high-d behaviour and is among our stated future directions; we have not yet evaluated it.

Fig. 6. ANOCUB explanation gallery and failure modes. Top: concept-level part heatmaps (witness attribution mapped to CUB keypoints, hotter = more responsible). Bottom: pixel-level saliency through a frozen ResNet-18 (shared scale). Green titles = clean, red = where that mode is weak. The two modes have complementary blind spots. The small Anna Hummingbird the embedding nearly misses (bottom right, 90th pct: a perched hummingbird fills a sparrow-sized region and lands near the inlier manifold, so its saliency is weak and diffuse) is flagged cleanly in concept space (top middle, 99th pct, localised to the bill). Conversely the Mallard whose single most-responsible concept is the global "duck-like" shape, which has no body-part keypoint, so the part heatmap cannot localise it (top right), is sharply localised by pixel saliency (bottom middle).

Fig. 7. Breast Cancer Wisconsin. (a) Witness attribution for one flagged malignant case; (b) aggregate over detected cases, WAND witness vs. SHAP, both concentrate on size/shape malignancy markers.
d) Why the spacings penalty is small, and adaptive switching.: The MAD and spacings components are combined per point and per direction by an evidence-disjunction (6), so the spacings term contributes only where its rescaled signal exceeds the MAD term. This maximum already acts as a local, per-direction switch, which is why enabling spacings shifts mean AUC only slightly. We did not add a dataset-level gate; a cheap multimodality test (e.g. a dip statistic on ) that enables spacings only on multi-modal projections is a sensible heuristic to remove the residual penalty, which we leave to future work.
e) Affine transformations and the axis pathway.: Features are standardised (per-feature centring and scaling) before probing, so per-feature rescaling does not change the scores,

Fig. 8. Critical-difference diagram on AUPR / AP (Nemenyi post-hoc, , CD = 3.60); the ROC-AUC diagram is Figure 3 in the main text. The AP ranking mirrors the ROC ordering.
and the uniform-sphere pathway is rotation-equivariant up to the per-direction MAD calibration. The axis pathway is, by construction, not affine-equivariant: it probes the canonical axes precisely to catch single-feature anomalies that rotation-invariant probes miss (the marginal regime), so we trade equivariance for that coverage and keep it secondary through (7). Whitening before probing is not uniformly helpful: on contaminated data it can suppress the
TABLE IX
THE 47 ADBENCH TABULAR DATASETS USED IN OUR EXPERIMENTS, GROUPED BY SCALE. Samples (n), Features (d), #Anom. (NUMBER OF LABELLED OUTLIERS) AND %Anom. (THEIR FRACTION) ARE TAKEN FROM THE PUBLIC ADBENCH CLASSICAL MIRROR. DATASETS ARE REFERRED TO BY SHORT CODES IN THE REST OF THE PAPER; THE NUMERIC PREFIX MATCHES THE ADBENCH NAMING CONVENTION.
| Dataset | n | d | #Anom. | %Anom. | Code | Dataset | n | d | #Anom. | %Anom. | Code |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Small-scale (n ≤ 1,000, 12 datasets) | |||||||||||
| breastw | 683 | 9 | 239 | 34.99% | 4 | glass | 214 | 7 | 9 | 4.21% | 14 |
| Hepatitis | 80 | 19 | 13 | 16.25% | 15 | Ionosphere | 351 | 32 | 126 | 35.90% | 18 |
| Lymphography | 148 | 18 | 6 | 4.05% | 21 | Pima | 768 | 8 | 268 | 34.90% | 29 |
| Stamps | 340 | 9 | 31 | 9.12% | 37 | vertebral | 240 | 6 | 30 | 12.50% | 39 |
| WBC | 223 | 9 | 10 | 4.48% | 42 | WDBC | 367 | 30 | 10 | 2.72% | 43 |
| wine | 129 | 13 | 10 | 7.75% | 45 | WPBC | 198 | 33 | 47 | 23.74% | 46 |
| Medium-scale (1,000 < n ≤ 10,000, 15 datasets) | |||||||||||
| anthyroid | 7200 | 6 | 534 | 7.42% | 2 | cardio | 1831 | 21 | 176 | 9.61% | 6 |
| Cardiotocogr. | 2114 | 21 | 466 | 22.04% | 7 | fault | 1941 | 27 | 673 | 34.67% | 12 |
| landsat | 6435 | 36 | 1333 | 20.71% | 19 | letter | 1600 | 32 | 100 | 6.25% | 20 |
| PageBlocks | 5393 | 10 | 510 | 9.46% | 27 | pendigits | 6870 | 16 | 156 | 2.27% | 28 |
| satellite | 6435 | 36 | 2036 | 31.64% | 30 | satimage-2 | 5803 | 36 | 71 | 1.22% | 31 |
| thyroid | 3772 | 6 | 93 | 2.47% | 38 | vowels | 1456 | 12 | 50 | 3.43% | 40 |
| Waveform | 3443 | 21 | 100 | 2.90% | 41 | Wilt | 4819 | 5 | 257 | 5.33% | 44 |
| yeast | 1484 | 8 | 507 | 34.16% | 47 | ||||||
| Large-scale (n > 10,000, 11 datasets) | |||||||||||
| ALOI | 49534 | 27 | 1508 | 3.04% | 1 | celeba | 202599 | 39 | 4547 | 2.24% | 8 |
| cover | 286048 | 10 | 2747 | 0.96% | 10 | donors | 619326 | 10 | 36710 | 5.93% | 11 |
| fraud | 284807 | 29 | 492 | 0.17% | 13 | http | 567498 | 3 | 2211 | 0.39% | 16 |
| magic.gamma | 19020 | 10 | 6688 | 35.16% | 22 | mammography | 11183 | 6 | 260 | 2.32% | 23 |
| shuttle | 49097 | 9 | 3511 | 7.15% | 32 | skin | 245057 | 3 | 50859 | 20.75% | 33 |
| smtp | 95156 | 3 | 30 | 0.03% | 34 | ||||||
| High-dimensional (d > 1, 9 datasets) | |||||||||||
| backdoor | 95329 | 196 | 2329 | 2.44% | 3 | campaign | 41188 | 62 | 4640 | 11.27% | 5 |
| census | 299285 | 500 | 18568 | 6.20% | 9 | InternetAds | 1966 | 1555 | 368 | 18.72% | 17 |
| mnist | 7603 | 100 | 700 | 9.21% | 24 | musk | 3062 | 166 | 97 | 3.17% | 25 |
| optdigits | 5216 | 64 | 150 | 2.88% | 26 | SpamBase | 4207 | 57 | 1679 | 39.91% | 35 |
| speech | 3686 | 400 | 61 | 1.65% | 36 | ||||||

Fig. 9. Mean ROC-AUC vs. mean wall-clock per dataset (log x), averaged over the 22 ADBench datasets completed by every method so all means cover the same tasks. WAND sits on the AUC–runtime Pareto frontier (top-left); no other method is both faster and more accurate on this shared subset. The subset necessarily excludes the largest datasets, on which the neighbour-based methods (LOF, kNN, ABOD, COF, SOD, LSCP, KDE, OCSVM) exceed the time budget, whereas WAND runs on all 47 (Table II).
very anomaly directions, e.g. on the ANOCUB embedding Mahalanobis whitening drops AUC from 0.98 to 0.88 (Table VII); we therefore do not whiten by default.
f) Sensitivity of the faithfulness protocol.: We follow the standard deletion/insertion protocol with per-feature median replacement [44], and report the bounded, self-normalised score insertion–deletion∈[−1, 1] averaged over 33 datasets, which limits the influence of any single masking choice. We did not sweep alternative imputations (mean, marginal resampling) or feature-subset sizes; such a sensitivity analysis would further strengthen the faithfulness conclusions and is straightforward future work.
g) The differentiable score as a training loss.: We use the differentiable WAND score only to produce gradient explanations, including pixel saliency through a frozen encoder (Fig. 1); we did not back-propagate it into the encoder as a training objective. Using the score to shape upstream representations (a learned witness encoder) is an explicit future direction, and we report no empirical results on it here.
h) Empirical explanation coverage.: The coverage guarantee (every τ-margin anomaly has at least one witness) is realised in the attribution by the dominant-witness set. On ANOCUB all 15 anomalies are covered (detection AUC 1.0) and 14/15 concentrate on a single dominant witness (bill length), the lone exception spreading over global-shape attributes (Fig. 6). We do not yet report suite-wide distributions
(a) linear scan to

(b) constant throughput
Fig. 10. Large- scaling of the WAND scorer (synthetic, , 8-core CPU). (a) Scoring wall-clock vs. tracks the slope-1 (linear) reference for both probe budgets; (b) throughput is constant in , so WAND scores points in 47 s () / 164 s () after a one-time s calibration.
of the active-witness count or of the contribution mass ; tabulating, per dataset, the fraction of flagged points with at least one above-threshold witness would quantify coverage directly and is a useful addition we flag for future work.
i) Parameter robustness (, , ).: The defaults are insensitive over wide ranges. Mean AUC is flat () for , and we fix . The budget is a monotone speed/quality knob whose AUC saturates around , with the soft-extreme hull size, so sits on the plateau for the suite. The spacings order is the classical parameter-free choice [39]. Table X above tabulates the underlying per-knob sweep.
j) Comparison to recent density detectors.: Our sixteen unsupervised baselines already include strong density and marginal detectors (ECOD, COPOD, HBOS, kernel density, LODA); we did not include very recent variants such as VSDE, so we make no claim against them. Because the witness attribution needs only a differentiable score, it could in principle wrap any differentiable density model to add explanations, an interesting direction we have not evaluated.
APPENDIX D
ADDITIONAL EXPERIMENTS (POST-ACCEPTANCE)
This section reports additional experiments; these results extend, rather than revise, the main text above.
A. A native explanation baseline for a second detector
Our explanation-quality comparison (Table IV) applies SHAP/LIME only to WAND itself; a natural complement is a native explainer of a different strong detector. We add Isolation Forest's shortest-isolation-path structure as exactly that baseline.
a) Method.: For a query point flagged by a fitted Isolation Forest, we walk its decision path in every tree; each internal node the path crosses splits on one feature, and we weight that feature's vote by so splits near the root, the ones responsible for the short isolation path, count more than deep splits. Votes are averaged over trees
and -normalised per point. Like ECOD's native attribution, this is read off the fitted ensemble directly, at zero extra model queries.
b) Results.: Table IV includes this new row (IForest (native)), evaluated under the identical protocols: synthetic ground-truth attribution-AUC (Section VI-F) and real-data deletion/insertion faithfulness on the same 33 ADBench datasets used for the other rows. Isolation Forest's native attribution is close to chance on the synthetic ground truth (0.498/0.499 attr-AUC, axis/oblique, vs. 0.5 for a random ranking) and only marginally above random on real-data faithfulness (0.031 mean, beating SHAP on 3% of datasets, the same rate as the random baseline). This is a real, non-cherry-picked negative result for this particular baseline, not evidence that no native explainer can compete with WAND's: depth-weighted split voting is the simplest reading of an Isolation Forest, and more elaborate model-specific importances for tree ensembles exist (e.g. DIFFI [4]) that we have not evaluated. What the result does show is that simply being native to a strong detector is not sufficient for a faithful explanation, ECOD's native attribution (also in Table IV) is far stronger than Isolation Forest's, so the comparison is detector-specific rather than a generic native-vs-post-hoc effect, and WAND's witness attribution remains the strongest native explainer we have tested by a wide margin on both protocols.
B. Per-knob sensitivity table
Table X reports mean ROC-AUC over all 47 ADBench datasets for each knob swept individually around its default (default in bold), extending the qualitative "Parameter robustness" discussion above with the underlying numbers and justifying the specific default configuration (, spacing , axis probes on, ). All four knobs are flat to within 0.015 mean AUC across their tested ranges, confirming quantitatively that the single fixed default used throughout the paper is not a narrow optimum: no per-dataset tuning is needed to reach the reported accuracy.
TABLE X
MEAN ROC-AUC (47 ADBENCH DATASETS) AS EACH KNOB IS SWEPT WITH ALL OTHERS HELD AT THEIR DEFAULT. DEFAULT SETTING IN BOLD.
| Knob | Setting | Mean ROC-AUC (47 datasets) |
|---|---|---|
| Probe budget K | 256 | 0.7686 |
| 512 | 0.7640 | |
| 1024 | 0.7726 | |
| 2048 | 0.7779 | |
| Axis mix weight λ | 0.0 | 0.7676 |
| 0.1 | 0.7701 | |
| 0.25 | 0.7726 | |
| 0.5 | 0.7743 | |
| 1.0 | 0.7755 | |
| Spacing order factor | 0.0 | 0.7716 |
| 0.5 | 0.7732 | |
| 1.0 | 0.7726 | |
| 1.5 | 0.7734 | |
| Langevin refinement steps | 0 | 0.7768 |
| 10 | 0.7712 | |
| 20 | 0.7726 | |
| 40 | 0.7725 |
C. Compact wall-clock runtime table
Figure 9 above plots accuracy against wall-clock cost; Table XI gives the same comparison in tabular form for easier reference, mean ROC-AUC and mean wall-clock over the 22 ADBench datasets every method in the main benchmark completes (same subset as Figure 9), sorted by runtime. WAND attains the best mean AUC of all 17 methods on this shared subset in 0.220 s, and the fastest baseline within 0.02 AUC of it, IForest, is only 1.6× faster; every other method is both slower and less accurate.
TABLE XI
MEAN ROC-AUC VS. MEAN WALL-CLOCK, OVER THE 22 ADBENCH DATASETS COMPLETED BY EVERY METHOD (SAME SUBSET AS FIGURE 9), SORTED BY RUNTIME.
| Method | Mean ROC-AUC | Mean wall-clock (s) |
|---|---|---|
| HBOS | 0.719 | 0.005 |
| PCA | 0.706 | 0.005 |
| ECOD | 0.699 | 0.017 |
| COPOD | 0.710 | 0.018 |
| LODA | 0.683 | 0.023 |
| LOF | 0.693 | 0.063 |
| IForest | 0.735 | 0.139 |
| WAND | 0.755 | 0.220 |
| KNN | 0.737 | 0.263 |
| ABOD | 0.683 | 0.411 |
| INNE | 0.739 | 0.445 |
| OCSVM | 0.711 | 0.629 |
| KDE | 0.742 | 1.925 |
| COF | 0.651 | 3.429 |
| SOD | 0.692 | 4.444 |
| PIDForest | 0.721 | 8.036 |
| LSCP | 0.740 | 12.968 |
APPENDIX REFERENCES
[1] S. Boucheron, G. Lugosi, and P. Massart, Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013. [2] M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge University Press, 2019.
[3] A. W. van der Vaart, Asymptotic Statistics. Cambridge University Press, 2000. [4] M. Carletti, M. Terzi, and G. A. Susto, “Interpretable anomaly detection with DIFFI: Depth-based feature importance of isolation forest,” Engineering Applications of Artificial Intelligence, vol. 119, p. 105730, 2023. [5] R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018. [6] K. Ball, “An Elementary Introduction to Modern Convex Geometry,” in Flavors of Geometry, MSRI Publications, vol. 31, pp. 1–58, 1997.