Vendi Anomaly Score: A New Paradigm for Parameter-Free Anomaly Detection

Vendi Anomaly Score defines anomalies via diversity, requiring no tuning and scaling linearly, with leading results across benchmarks.
The article introduces the Vendi Anomaly Score (VAS), a new anomaly detection method. Traditional methods like LOF, Isolation Forest, and Mahalanobis distance rely on local density, isolation heuristics, or distributional assumptions, and are sensitive to neighborhood scale, partition choices, and hyperparameters. VAS instead measures a sample's contribution to dataset diversity: if removing it significantly lowers the Vendi Score, it carries unique information and is likely an anomaly. Since the Vendi Score is computed from the spectrum of the similarity matrix, VAS is non-parametric, requires no tuning, and scales linearly. It achieves state-of-the-art performance on 148 benchmark embedding datasets and remains robust in large-scale ImageNet experiments as contamination rate and data volume increase. Its limitation is dependence on embedding quality, and it currently targets embedding vector data.
Anomaly detection is a critical task in trustworthy machine learning and scientific discovery, but existing methods often rely on local density, isolation heuristics, or distances to fitted distributions, making them sensitive to neighborhood scale, partition choices, or distributional assumptions. A recent study proposes redefining anomaly detection from a diversity perspective and introduces the Vendi Anomaly Score (VAS), which achieves leading performance across multiple benchmarks.

Limitations of Traditional Anomaly Detection
Existing anomaly detection methods can be broadly grouped into three categories: local density-based methods (e.g., LOF), isolation heuristic-based methods (e.g., Isolation Forest), and fitted distribution distance-based methods (e.g., Mahalanobis distance). These methods share common pain points in practice: they are sensitive to neighborhood scale or partition choices and often require hyperparameter tuning for different datasets. In addition, they typically rely on strong distributional assumptions that tend to fail in complex embedding spaces.
The paper points out that these limitations stem from defining anomalies as "deviations from normal patterns," while normal patterns themselves are difficult to characterize without assumptions. VAS starts from a completely different premise: instead of directly modeling the distribution of normal samples, it measures a sample's contribution to the overall diversity of the dataset.
Local density methods are represented by LOF (Local Outlier Factor): it compares a sample's local reachability density with that of its neighbors, and those with significantly lower density than their neighbors are judged as anomalies. Such methods require manually specifying the number of neighbors k; too small a k leads to high estimation variance, while too large a k "submerges" local anomalies in a wider range of normal samples, making them sensitive to neighborhood scale. Isolation heuristics are represented by Isolation Forest: it randomly selects features and split points to build isolation trees, and anomalous samples receive shorter average path lengths because they are more easily isolated by a few splits. This method relies on random partitioning, and results fluctuate with the number of trees and subsampling size. Fitted distribution distance-based methods (such as Mahalanobis distance) first estimate the mean and covariance of normal data, then measure deviation using the Mahalanobis distance from the sample to the distribution center; their premise is that normal data approximately follow a single or mixture Gaussian distribution, an assumption often violated in complex embedding spaces.
Vendi Anomaly Score: Measuring Anomalies via Diversity Change
The core idea of VAS is simple yet novel: if removing a sample significantly decreases the dataset's diversity, it means the sample carries unique information and is likely an anomaly; conversely, if diversity remains nearly unchanged after removal, the sample is likely a redundant normal point.
Here, diversity is measured by the Vendi Score, which is computed based on the spectral structure of the similarity matrix between samples and can capture both local redundancy and global data structure. VAS directly compares the change in Vendi Score before and after removing a sample, without requiring density estimation or spatial partitioning. Since the Vendi Score depends only on the eigenvalues of the similarity matrix, VAS automatically adapts to the data's spectral structure and requires no hyperparameter tuning.
From a computational perspective, VAS is a non-parametric method, and its computational complexity grows linearly with dataset size, giving it practical potential in large-scale scenarios.
The Vendi Score is a diversity measure based on the spectrum of a kernel matrix. Given n samples, first construct an n×n similarity matrix K using a similarity kernel (such as cosine similarity or a Gaussian kernel), then normalize it into a density matrix with trace 1: ρ = K / tr(K). The Vendi Score is defined as the exponential-order entropy of this density matrix, i.e., exp(H(ρ)), where H is the von Neumann entropy computed from the eigenvalues λ_i of ρ: H(ρ) = -Σ λ_i log λ_i. Intuitively, when samples are highly redundant, a few eigenvalues dominate and the entropy is small, making the Vendi Score close to 1; when samples differ greatly and the spectrum is evenly distributed, the entropy increases and the Vendi Score approaches the number of samples n. It therefore reflects both local redundancy and global structure, without relying on any clustering partition or distance threshold. VAS leverages precisely this property: for each candidate sample, it compares the difference in Vendi Score before and after removing it—the larger the difference, the more uniquely that sample contributes to overall diversity.
Experimental Validation: Leading Performance Across Datasets and Architectures
The researchers evaluated VAS on 148 benchmark embedding datasets, derived from 10 source datasets and 4 embedding architectures, covering diverse data distributions and feature representations. Experimental results show that VAS achieves state-of-the-art anomaly detection performance on these benchmarks.
More notably, VAS demonstrates robustness in large-scale ImageNet experiments: its performance remains stable as contamination rate and dataset size increase. This is particularly important for real-world deployment, where the proportion of anomalies and data volume in real scenarios are often uncontrollable.
The contamination rate refers to the proportion of anomalous samples in a dataset. In real deployments this proportion is usually unknown and difficult to control, and many anomaly detection methods degrade noticeably as contamination rate rises because they rely on estimating the normal data distribution—the more anomalous samples there are, the greater the estimation bias. VAS does not explicitly model the normal distribution, making it relatively insensitive to changes in contamination rate. The ImageNet experiments test this robustness by controlling contamination rate and dataset size, and the results have reference value for real scenarios: engineering teams often cannot predict the proportion of anomalies in online data, and a method that remains stable under contamination rate drift is more important than one that achieves peak performance at an ideal contamination rate.
Why VAS Is Worth Attention
The introduction of VAS represents a shift in the anomaly detection paradigm: from a binary "normal vs. anomalous" perspective to a continuous "diversity contribution" perspective. The direct benefit of this perspective is freeing the method from dependence on density estimation and partition heuristics, while eliminating the burden of hyperparameter tuning.
For engineering teams that need to deploy anomaly detection quickly, VAS's parameter-free nature and linear scaling mean a lower barrier to adoption. For researchers, VAS brings diversity measurement into anomaly detection and may inspire more unsupervised learning work based on information theory or spectral methods.
Of course, the effectiveness of VAS depends heavily on embedding quality, since the Vendi Score is computed based on similarity between samples. The paper's experiments cover multiple embedding architectures, but practical applications still need to ensure that embeddings preserve meaningful semantic structure. In addition, VAS currently targets mainly tabular or embedding vector data, and its end-to-end performance on raw inputs such as images and text remains to be further explored.
Conclusion
The Vendi Anomaly Score identifies anomalies by quantifying a sample's impact on dataset diversity, offering a new method that is hyperparameter-free, non-parametric, and scales linearly. Across 148 benchmark datasets and large-scale ImageNet experiments, VAS demonstrates leading or robust performance. This work not only provides a practical tool for anomaly detection but also opens up a new way of understanding anomalies from a diversity perspective.
Related articles

From 0 to 1: Vibe Coding an AI Knowledge Base — A Practical Retrospective and Tech Stack Breakdown
A retrospective on building the AI knowledge base OilBook from scratch with Vibe Coding: Next.js+Neon stack, Oil Dev Skill workflow, Stripe paywall security, interview-style writing, AI-flavor control, and Vercel deployment.

GLM-5.4 Hands-On: Native Vision Meets a New Vibe Coding Workflow
Hands-on with Zhipu GLM-5.4: native vision tested across a 3D product demo, pure-code video generation, and remote-control Vibe Coding, compared with GPT-6.2 and Gemini Neon.

AI and Humans Claim to Prove the Riemann Hypothesis: Machine-Verified, Yet Nobody Can Understand It
Anthropic mathematician and AI Claude claim to prove the Riemann Hypothesis with 17 million lines of Lean code, machine-verified but unreadable by humans. This article analyzes the event, the zero proportion record from 41.6% to 67.2%, and the gap between machine verification and human understanding.