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.
- 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.
- 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.
- 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$).
- 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.
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.
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