Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection

Amey Pasarkar, Adji Bousso DiengarXiv 2026

TL;DR

The Vendi Anomaly Score (VAS) introduces a new paradigm for unsupervised anomaly detection by treating it as a diversity problem. Instead of looking for "isolated" points, VAS identifies anomalies by measuring how much a sample’s removal changes the overall diversity of a dataset. It is non-parametric, requires no hyperparameter tuning, and scales linearly with dataset size, achieving state-of-the-art performance across 148 benchmark datasets.

What Problem Does This Paper Address?

Traditional unsupervised anomaly detection (AD) methods usually fall into three camps: they look for points in low-density regions (like Local Outlier Factor), points that are easy to isolate (like Isolation Forests), or points far from a fitted distribution (like GMMs).

However, these methods often struggle with modern, high-dimensional embedding data. They are sensitive to neighborhood scales, rely on arbitrary partitioning heuristics, or make restrictive distributional assumptions. Furthermore, many "deep" AD methods require training a new model for every single dataset, which is computationally expensive and difficult to deploy at scale. The authors ask: Can we build an efficient detector that makes fewer assumptions about the geometry of embedding data?

Methods

The authors propose the Vendi Anomaly Score (VAS), which leverages the Vendi Score (VS)—a similarity-based diversity metric.

  1. The Diversity Perspective: The Vendi Score measures diversity via the entropy of the eigenvalues of a similarity matrix. If a point is "redundant" (similar to many others), removing it doesn't change the diversity much. If a point is "anomalous" (unique or rare), its removal induces a significant shift in the dataset's eigenvalue spectrum.
  2. The VAS Score: Formally, the anomaly score for a point $x_i$ is the log-difference in the Vendi Score of the dataset before and after removing that point.
  3. Fast Approximation: Calculating this "leave-one-out" score exactly for every point would require $N$ separate eigendecompositions, which is $O(ND^3)$—prohibitive for large datasets. The authors derive a first-order approximation using rank-one perturbation theory. This reduces the problem to a single global eigendecomposition followed by a fast quadratic form computation ($x^T G_q x$), allowing the method to scale linearly with the number of samples ($N$).
  4. Adaptive Tuning: The Vendi Score has a parameter $q$ that controls sensitivity to different parts of the spectrum. Rather than requiring manual tuning, VAS uses a data-dependent heuristic based on the largest eigenvalue ($\lambda_1$) to automatically adjust $q$ to the data's geometry.
Figure 1: Overview of VAS. 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. VAS detects these shifts by estimating the change in Vendi Score, derived from the Rényi entropy of order q of the spectrum (Eq. 1).

Datasets

The authors evaluated VAS against 11 baselines across a massive suite of benchmarks:

  • ADBENCH: 148 embedding-based datasets derived from 10 source datasets (including CIFAR-10, MNIST-C, SVHN, 20Newsgroups, and Amazon Reviews) using four architectures (ResNet18, ViT, BERT, and RoBERTa).
  • ImageNet-1K: Large-scale experiments with up to 100,000 samples using DinoV3 ViT-B/16 embeddings to test robustness against increasing contamination rates and dataset scale.
  • Synthetic Data: 512-dimensional Gaussian mixtures used to verify the accuracy and latency of the mathematical approximation.

Key Insights and Ideas

  • Anomalies as Spectral Disruptors: The core "aha" moment is that anomalies aren't just "far away" in Euclidean space; they are points that uniquely contribute to the global spectral structure of the data.
  • The Power of the Tail: In highly concentrated datasets (like BERT text embeddings), anomalies often hide in the "tail" of the eigenvalue spectrum. By adaptively choosing a small $q$, VAS can amplify these subtle signals without being drowned out by the dominant modes of the data.
  • Efficiency via Linear Algebra: By transforming the leave-one-out diversity change into a quadratic form, the authors turned a complex global metric into a local score that can be computed in parallel on a GPU.
Figure 2: VAS provides accurate and efficient diversity influence measurements. Left: VAS 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 VAS provides orders of magnitude speedup over the exact approach.

Key Results

  • State-of-the-Art Performance: On the ADBENCH benchmark, VAS achieved the highest average rank in both AUROC and Average Precision, significantly outperforming classical methods like Isolation Forest and modern deep learning baselines like SLAD.
  • Scalability: VAS exhibits linear scaling with the number of points. In tests with 100k samples, it remained robust and efficient, while many competing methods became computationally impractical.
  • Robustness: Unlike density-based methods that can fail when anomalies form small, coherent clusters (subpopulations), VAS successfully detects these "rare but structured" groups because they still represent a unique contribution to the dataset's diversity.

Limitations and Future Work

  • Embedding Dependency: Like all embedding-based AD, VAS is only as good as the underlying representation. If the encoder maps anomalies and normal points to the same region, VAS cannot distinguish them.
  • Interpretability: While VAS provides a principled ranking, the scalar score doesn't inherently explain why a point is anomalous (e.g., which features contributed to the score).
  • Heuristic Optimality: The adaptive rule for $q$ is a heuristic. While it works well across 148 tasks, there may be specific data geometries where a more principled selection rule is needed.
  • Future Directions: The authors suggest extending VAS to use learned or task-specific kernels and exploring its utility in other data curation tasks like coreset selection and duplicate detection.

Summary updated

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.
BibTeX
@misc{pasarkar2026vendi,
  author = {Amey Pasarkar and Adji Bousso Dieng},
  title = {{Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection}},
  year = {2026},
  eprint = {2611.12871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12871},
}
Figure