# Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection

Vendi Anomaly Score flags samples whose removal most reduces dataset diversity

Amey Pasarkar, Adji Bousso Dieng · arXiv · 2026-11-9

- **Problem** Local density, isolation and distribution-fit detectors depend on neighborhood scale or distributional assumptions that embedding data may violate. Deep unsupervised detectors need a new model trained for each dataset.
- **Method** VAS, the Vendi Anomaly Score, scores each sample by how much removing it lowers the dataset's Vendi Score. Instead of refitting per sample, it approximates all leave-one-out changes with one batched quadratic form.
- **Results** VAS achieves state-of-the-art anomaly detection across 148 benchmark embedding datasets, with paired Wilcoxon p-values of at most 1.34e-08 against each baseline.

![Figure 1: Overview of V AS. Left: A multimodal dataset contaminated with an anomaly. Right: Removing a rare anomalous point induces a larger change in the eige…](https://refivu.com/papers/806f5b70-4ff5-4846-a82b-db852262f953/figures/figure-4e9eb0efda5aa07e6dd88e7522282249.png?thumb=512)

**Figure 1** : Overview of V AS. Left: A multimodal dataset contaminated with an anomaly. Right: Removing a rare anomalous point induces a larger change in the eigenvalue spectrum than removing a normal sample. V AS detects these shifts by estimating the change in Vendi Score, derived from the Rényi entropy of orderqof the spectrum (Eq. 1).

[Original paper](https://arxiv.org/abs/2611.12871v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Amey Pasarkar, Adji Bousso Dieng · Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection · Original paper figure · Extracted the figure area from page 2 of the original PDF.

## Where neighborhood and density detectors get stuck

Unsupervised anomaly detection fits a detector directly to the unlabeled dataset under analysis, which suits data curation where anomalies are hard to collect. Clean reference sets are often impractical to build for every domain, so unsupervised detectors become the practical choice. Most classical scores rest on isolation, local density, or distance from a fitted distribution.

These approaches require neighborhoods of fixed size, so they are sensitive to scale and struggle with multimodal distributions.

Deep unsupervised detectors learn more flexible notions of abnormality, such as SLAD and DTE. However, each dataset requires training a model, which adds computational cost and deployment challenges.

## Measuring how much a sample adds to diversity

VAS scores each sample by how far the dataset's Vendi Score drops when that sample is removed. The Vendi Scores measure diversity through the entropy of the eigenvalues of a similarity matrix, normalized so that its trace equals 1. For order q, the score is the exponential of a Rényi entropy of those eigenvalues, written as VSq(K) = exp((1/(1−q)) log Σ λi(K)^q).

At q equal to 1, this reduces to the exponential Shannon entropy. Smaller values of q put more emphasis on the tail of the spectrum, while larger values emphasize the leading eigenmodes.

With ℓ2-normalized features and a cosine kernel, the similarity matrix K = XXᵀ/N shares its non-zero eigenvalues with the smaller D by D matrix XᵀX/N. VAS therefore computes the spectrum from XᵀX/N, which costs O(D²N + D³). Since only the ordering of the scores matters, any monotone transform of a score gives an equivalent ranking. Let ρ = (1/N) XᵀX be the feature covariance matrix for the cosine kernel.

Removing sample xi gives ρ−i = (1/(N−1)) X₋ᵢᵀX₋ᵢ, and the anomaly score is Δ(xi) = log VSq(ρ) − log VSq(ρ−i). A sample that holds unique structure lowers diversity more when removed, so it gets a larger Δ(xi).

Computing Δ(xi) directly needs a new spectrum of ρ−i for every sample, which costs O(N D³) time. Each removal is a rank-one perturbation of ρ of size O(1/N), so the change can be approximated instead. Proposition 3.1 approximates the change in log Vendi Score by a quadratic form in xi, with an error of O(1/N²). Because the trace term is the same for every sample, ranking samples only requires computing xiᵀ Gq xi for each sample.

## Turning leave-one-out changes into a quadratic form

Deleting one sample from the dataset changes the feature covariance by a rank-one term of size O(1/N). Proposition 3.1 uses this structure to replace each leave-one-out change with a single quadratic form in the sample. The authors write G\_q as q over (1 − q) Tr(ρ^q) times ρ^(q−1) when q is not 1, and as −(log ρ + I) when q is 1. The leave-one-out change equals x\_i^T G\_q x\_i minus a term that is the same for every sample, with error O(1/N^2).

The shared term is the trace Tr(G\_q ρ) scaled by N−1, so it doesn't change how samples rank. VAS therefore only needs x\_i^T G\_q x\_i for each sample, which is the diagonal of X G\_q X^T. Equation 2 computes all N scores as one batched product instead of a separate spectrum per sample. The differentiability assumption excludes zero eigenvalues, so the authors compute every spectral quantity on the positive eigenspace of ρ.

The authors interpret VAS as a spectral quadratic score, which links it to Mahalanobis distance and PCA reconstruction error. Those classical methods fix their weighting of variation directions in advance, while VAS takes its weighting from each sample's influence on diversity. The total cost is one eigendecomposition of the D×D matrix ρ plus batched products, giving O(ND^2 + D^3) time.

Memory is O(ND + D^2), and naive per-sample recomputation would instead need N eigendecompositions at O(ND^3) time.

The experiments apply this scoring to ADBENCH image and text embeddings from ResNet18, ViT, BERT and RoBERTa. The benchmark covers rare class detection on CIFAR-10 and SVHN, where one class is normal and the others form anomalies. It also covers distributional corruption such as MNIST versus MNIST-C, and semantic anomalies such as MVTec-AD.

## Setting q from the spectrum

VAS has one hyperparameter, the Vendi Score order q, which sets how the score weighs different directions of variation. Earlier Vendi-based work usually fixed q across experiments or swept a range of q values to trace diversity profiles. In unsupervised AD, the best q can shift a lot with the geometry of the embedding space, so a fixed choice is risky.

The authors also have no validation set, so they can't tune q against labels.

The parameter q sets how strongly the score emphasizes the tail of the eigenvalue spectrum. In concentrated embeddings such as BERT text, most variance sits in the leading eigenmode, which gives a large principal eigenvalue λ1. That regime needs the spectral tail amplified, so smaller q values work better there. Isotropic image embeddings spread variance more evenly, which leads to a smaller λ1 and calls for larger q.

The authors define q = max(2(1 − λ1), 0.1), where λ1 is the principal eigenvalue of the trace-normalized similarity matrix.

A smaller λ1 gives a larger q, and the 0.1 floor keeps ρ^(q-1) numerically stable at small q. On the benchmark, NLP embeddings show larger principal eigenvalues than CV embeddings, so the rule picks smaller q for text. Proposition 3.2 gives the expected score of a component in closed form, with π\_c and VS\_q(ρ\_c) inside the expression.

## Which subpopulations the score flags

The authors ask what VAS assigns to samples drawn from one subpopulation of a mixture. They use a stylized orthogonal mixture model, where each component lives on its own subspace. For a sample from component c, the expected score is q over (1 minus q) times Tr(rho^q), times (pi\_c over VS\_q(rho\_c)) to the power q minus 1. So the expected score depends on the ratio of component mass pi\_c to the component's diversity VS\_q(rho\_c).

A small component that is spectrally diffuse can therefore get a high score, even when its samples aren't isolated from each other.

The authors test this lens on ImageNet embeddings from DINOv3 ViT-B/16, with anomalous images drawn from classes disjoint from the normal ones. In the first sweep, 25,000 normal images from 25 classes are contaminated at anomaly rates from 1 to 30 percent. In the second sweep, the anomaly rate stays at 20 percent while the normal data grows to 100k images.

The authors explain that these anomalies are not isolated outliers, so they can form coherent local neighborhoods in feature space.

VAS instead scores each sample by its diversity influence, which depends on both component mass and internal diversity. This lets VAS detect rare but coherent anomalous subpopulations, which matches the behavior predicted by Proposition 3.2. The authors also test three further anomaly types on ADBENCH embeddings: locally class-confusable samples, global directional perturbations, and disrupted feature dependencies.

## Does the approximation keep the ranking

The authors first check the one-step VAS score against the exact leave-one-out Vendi Score change on synthetic data. For every order q they test, the Spearman rank correlation is 1.00, so the approximation preserves the sample ranking. Figure 2 plots the VAS diversity influence against the exact change for q values of 0.1, 0.5, 1, and 2.

![Figure 2: V AS provides accurate and efficient diversity influence measurements. Left: V AS diversity influence compared against the exact leave-one-out Vendi…](https://refivu.com/papers/806f5b70-4ff5-4846-a82b-db852262f953/figures/figure-260cde3df2e0519b18524b91357b23d2.png?thumb=512)

**Figure 2** : V AS provides accurate and efficient diversity influence measurements. Left: V AS diversity influence compared against the exact leave-one-out Vendi Score change for multiple orders of q. Spearman rank correlation ρ is shown for each choice of q. Right: Varying dataset sizes shows that V AS provides orders of magnitude speedup over the exact approach.

[Original paper](https://arxiv.org/abs/2611.12871v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

A speed gain only helps if the ranking holds, so the authors check the approximation further.

They repeat the comparison against the exact leave-one-out change on all 148 ADBENCH benchmark instances. The approximation keeps the anomaly rankings closely, with an average Spearman correlation over 0.98 across all tested benchmarks. The text points to Table 2 for the detailed per-instance results.

So the speed gain comes at little cost in ranking on these tests. The check measures agreement with the exact score, not detection accuracy against labels.

## ADBENCH results across families and encoders

The ADBENCH experiments cover image and text embeddings, with ResNet18 and ViT for images and BERT and RoBERTa for text. Each method is trained on the contaminated unlabeled set and then scores those same samples, which matches the standard unsupervised setting. The authors measure AUROC and Average Precision, where higher values mean better detection.

Baselines run with default settings from their reference implementations, while VAS picks its order q adaptively with no label tuning.

Across the 148 dataset-split and encoder instances, the paired Wilcoxon p-values against each baseline are all at most 1.34e-08. The authors report VAS significantly ahead of the competing methods under the signed-rank test, for both AUROC and AP.

A grid search lets each baseline's hyperparameters overfit the evaluation sets, and VAS still gives the strongest results. That smaller q makes VAS more sensitive to variation in the spectral tail. Table 3 gives the matching AP results, and Figure 5 shows how the adaptively selected q values are distributed. These results cover only ADBENCH embeddings, so they say little about other data modalities.

## ImageNet contamination and scale results for VAS

The first sweep fixes 25,000 normal images from 25 classes and varies the number of anomalous images from 25 disjoint classes. The anomaly rate in this sweep runs from 1 to 30 percent, measured on the AUROC axis of Figure 3. The second sweep fixes the anomaly rate at 20% and adds normal classes in steps of 10, reaching 100,000 normal images.

Anomalies in the second sweep come from an equal number of disjoint classes, so dataset size and semantic diversity grow together.

VAS uses the same adaptive choice of q as in the ADBENCH experiments in both sweeps. SLAD is the most competitive baseline, but it is orders of magnitude slower than VAS. The authors explain that the anomalies are not isolated outliers, since they come from a few ImageNet classes and form coherent local neighborhoods.

![Figure 3: V AS achieves accurate ImageNet AD. We construct contaminated datasets by sampling normal and anomalous images from disjoint ImageNet classes. Left:…](https://refivu.com/papers/806f5b70-4ff5-4846-a82b-db852262f953/figures/figure-361f0094169f8fdd4e33c25bffa3fc20.png?thumb=512)

**Figure 3** : V AS achieves accurate ImageNet AD. We construct contaminated datasets by sampling normal and anomalous images from disjoint ImageNet classes. Left: AUROC as the anomaly rate varies with 25,000 normal images from 25 classes. Right: AUROC as dataset size increases at a fixed 20% anomaly rate, adding normal samples in increments of 10,000 . V AS performs best across both sweeps, showing robustness to increasing contamination and scale. Results are averaged over 5 replications, with standard deviation bars included.

[Original paper](https://arxiv.org/abs/2611.12871v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The behavior matches the mixture analysis of Proposition 3.2, where the expected VAS score depends on the ratio πc/VSq(ρc). Under that structure, VAS scores each sample by its diversity influence, which depends on component mass and internal diversity. The authors argue this lets VAS detect rare but coherent anomalous subpopulations. The mixture analysis is stylized, so it explains the pattern without proving it on real ImageNet data.

## Runtime against dataset size and dimension

VAS's cost comes from one eigendecomposition of a D×D matrix, followed by batched scoring, instead of a separate spectrum for each sample. Naively recomputing the Vendi Score after each removal would need N separate eigendecompositions, giving O(N D3) time. The total runtime is O(N D2 + D3), with memory complexity O(N D + D2). The rank-one perturbation view and the quadratic form in Proposition 3.1 remove the need to recompute the spectrum for each removal.

The latency tests use simulated Gaussian data on a single NVIDIA A6000 GPU. The authors time both the fit and the scoring of all samples for each method. For ADERH, LODA, and LOF, the authors used custom GPU-friendly implementations and checked that their outputs match the originals.

This follows from its batched quadratic-form computation once the matrix Gq has been formed. Embedding dimension is fixed by the pretrained model, so the authors focus on growing N at fixed D.

The ImageNet section reported that SLAD is orders of magnitude slower than VAS. The authors didn't test dimensions beyond those shown in Figure 4.

## Where VAS stops: embedding dependence, the q heuristic, and scope of evidence

If anomalies look like normal samples under that embedding or cosine similarity, VAS can't detect them. The scalar score doesn't explain what makes a sample anomalous, only how strongly it ranks. A sample's rank tells the curator where to look, not why it stands out.

The q rule sets q from the principal eigenvalue, with 0.1 as a lower bound for numerical stability. Other rules for selecting q were compared in Appendix G, and the heuristic performed comparably to several alternatives.

The latency results come from simulated Gaussian data on a single NVIDIA A6000 GPU. VAS's dependence on embedding dimension is stronger than IForest or LODA, though the dimension is fixed by the pretrained model.

## Paper info

- **Authors**: Amey Pasarkar, Adji Bousso Dieng
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-11
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.12871
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.12871v1) · [PDF ↗](https://arxiv.org/pdf/2611.12871v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Anomaly detection (AD) is a critical for trustworthy machine learning and scientific discovery. Existing methods typically define anomalies through local density, isolation heuristics, or distance from a fitted distribution, making them sensitive to neighborhood scale, partitioning choices, or restrictive distributional assumptions. In this work, we introduce a new paradigm by formulating anomaly detection from a diversity perspective. We propose the $\\textit{Vendi Anomaly Score}$ (VAS), which detects anomalies by quantifying how much a sample changes the diversity of the dataset, as measured by the Vendi score, when removed. VAS captures both local redundancy and global data structure without relying on density estimation or partitioning heuristics. Moreover, VAS requires no hyperparameter tuning, instead adapting automatically to the spectral structure of the data. VAS is non-parametric and scales linearly with dataset size. Across 148 benchmark embedding datasets derived from 10 source datasets and 4 embedding architectures, VAS achieves state-of-the-art AD performance. We further validate VAS on large-scale ImageNet experiments, where it remains robust as both contamination rate and dataset scale increase.

## Quote from the paper

Amey Pasarkar, Adji Bousso Dieng (2026). Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection. arXiv:2611.12871v1. https://arxiv.org/abs/2611.12871v1

**BibTeX**

```
@misc{pasarkar2026vendi,
  title = {{Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection}},
  author = {Amey Pasarkar and Adji Bousso Dieng},
  year = {2026},
  eprint = {2611.12871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12871v1}
}
```

## Other paper commentary

- [SWAM: Scaling World Action Models with Cross-Modal Alignment](https://refivu.com/en/papers/e8b2ba32-9c65-4ad1-b595-af05643ccc37-swam-scaling-world-action-models-with-cross-modal.md)
- [WanderBench: Can World Models Explore Dynamic Worlds from Video?](https://refivu.com/en/papers/7abb23d2-6e66-4d6d-975e-edf2604d3c4d-wanderbench-can-world-models-explore-dynamic-worlds-from.md)
- [The Deception Archive as a repository of standardized datasets for large-scale verbal deception detection research](https://refivu.com/en/papers/f95b76de-44ef-4fb8-8569-db8fbbd13737-the-deception-archive-as-a-repository-of-standardized.md)
- [MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction](https://refivu.com/en/papers/43f71184-5ad3-4e22-907b-780780aa57a8-mood-benchmarking-post-hoc-ood-detection-for-materials.md)
- [Benchmarking CNNs, Vision Transformers, and Foundation Models for Explainable Brain Tumor MRI Classification: Calibration, Decision Analysis, and External Validation](https://refivu.com/en/papers/7a2d0525-ea26-4e79-9cd4-6a0e30e443ef-benchmarking-cnns-vision-transformers-and-foundation-models.md)
- [Map2SLAM: From Streaming Map Prediction to Real-Time SLAM](https://refivu.com/en/papers/bb1368e0-4956-4656-a723-87cdafb34923-map2slam-from-streaming-map-prediction-to-real-time.md)
- [Programming Prescience: Issues in Human Construction of Forecasting Bots](https://refivu.com/en/papers/34469e6b-3cef-4c1e-b57c-1b0537e2c995-programming-prescience-issues-in-human-construction-of.md)
- [NIFT-SQL: Customer-Supervised Table Scoring for Enterprise Text-to-SQL Retrieval](https://refivu.com/en/papers/4bdb368e-e707-4125-b931-bc549ccf2559-nift-sql-customer-supervised-table-scoring-for-enterprise.md)
- [A local language model layered with rule-based and neural detectors for clinical text de-identification: an open-source toolkit and evaluation](https://refivu.com/en/papers/fdc65999-433c-47b0-9041-21262993a56a-a-local-language-model-layered-with-rule-based.md)
- [Hidden Tails: Certifying Tail-Risk Claims under Selective Labels](https://refivu.com/en/papers/75cb6ab3-f9c1-4466-b415-44269638d62a-hidden-tails-certifying-tail-risk-claims-under-selective.md)
- [Agnostic Marginal-Nonuniform Learning](https://refivu.com/en/papers/016f1038-e984-4177-99de-fa3e2feb1567-agnostic-marginal-nonuniform-learning.md)
- [A Lattice-Based HMM Approach to Aruz Scansion of Ottoman Poetry](https://refivu.com/en/papers/81004ad8-5641-430f-b487-3d295b983eee-a-lattice-based-hmm-approach-to-aruz-scansion.md)

## Terms in this paper

- [AUROC](https://refivu.com/en/terms/096f06e69425-auroc)
- [Average Precision](https://refivu.com/en/terms/1764eaa249a6-average-precision)
- [ImageNet-1k](https://refivu.com/en/terms/d8d6444bd460-imagenet-1k)
- [Vendi Score](https://refivu.com/en/terms/b20b0c222150-vendi-score)
- [Rényi entropy](https://refivu.com/en/terms/bc53b154239e-renyi-entropy)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/806f5b70-4ff5-4846-a82b-db852262f953-vendi-anomaly-scores-for-efficient-and-accurate-anomaly)
