arXiv:2611.12871cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12871

Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection

Amey Pasarkar, Adji Bousso Dieng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 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. Code to reproduce our results is openly available at https://github.com/vertaix/vendi-anomaly-scores.

1 Introduction

Anomaly detection (AD) is essential for analyzing and curating machine learning datasets and for discovery [Chandola et al., 2009, Campolongo et al., 2025]. In particular, by identifying samples that are corrupted, mislabeled, out-of-distribution, or otherwise irrelevant, AD helps maintain data quality and improve model reliability [Ahmed et al., 2017, Nassif et al., 2021]. Since modern datasets are increasingly inspected through learned embeddings that encode semantic relationships, effective data curation requires AD methods that operate directly in these embedding spaces [Pang et al., 2021, Reiss et al., 2021, Cao et al., 2025].

AD algorithms are commonly categorized by the supervision available during training. Supervised methods fit detectors using labeled mixtures of normal and anomalous samples [Ma et al., 2016, Vargaftik et al., 2021], while semi-supervised methods assume access to clean data and identify deviations from this reference set [Dai et al., 2024]. Unsupervised AD instead fits directly to the dataset being analyzed, making it especially attractive for modern data curation. As datasets increasingly span diverse modalities, it is often impractical to collect data on anomalies or to construct clean reference sets for every domain, making unsupervised detectors appealing.

Unsupervised AD methods typically define anomalies through isolation [Liu et al., 2008], local density [Breunig et al., 2000], or distance from a fitted distribution [Rippel et al., 2021]. Isolation-based methods score points by how easily they can be separated from the rest of the data, with classical examples including isolation forests (iForest) [Liu et al., 2008], extended isolation forests (EIF) [Hariri et al., 2019], and robust random cut forests (RRCF) [Guha et al., 2016], as well as

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

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 qq of the spectrum (Eq. 1).

geometric variants such as the hypersphere ensembles of INNE [Bandaragoda et al., 2014] and ADERH [Durani et al., 2025]. Other approaches use local neighborhood structure, including kk-nearest neighbor scoring [Bergman et al., 2020] and local outlier factor (LOF) [Breunig et al., 2000], or fitted feature-space distributions [Rippel et al., 2021]. These methods are often effective, but their performance depends on certain implicit assumptions: isolation methods seek points that are easy to separate based on some heuristic, local methods depend on a chosen neighborhood scale, and distributional methods rely on the adequacy of the fitted density model. On the other hand, deep unsupervised detectors can learn more flexible notions of abnormality [Xu et al., 2023a,b, Goodge et al., 2022], but they require training a model for each dataset, which adds computational cost and other deployment-related challenges. How can we develop AD methods that retain the efficiency of classical detectors while making fewer assumptions about the geometry of embedding data?

Contribution. In this paper, we answer this question and make several contributions and findings that we summarize below.

  • We introduce a new paradigm for AD based on diversity. We propose the Vendi Anomaly Score (VAS), which builds on the Vendi Scores (VS), a family of similarity-based diversity metrics [Friedman and Dieng, 2022, Pasarkar and Dieng, 2023], and defines anomaly through changes in the eigenvalue spectrum of the embedding similarity matrix (Figure 1).

  • We make VAS practical and easy to deploy. We derive an efficient approximation to the exact leave-one-out score, allowing VAS to scale to large embedding datasets. With a simple heuristic, our method also automatically adjusts to different data geometries, eliminating the need for neighborhood selection, fitting clusters, or estimating parametric densities.

  • We demonstrate the effectiveness of VAS across diverse embedding datasets and large-scale contamination experiments. On ADBENCH image and text benchmarks [Han et al., 2022], spanning 148 total datasets, VAS outperforms all other baselines. We also evaluate VAS on controlled ImageNet experiments with up to 100k samples [Deng et al., 2009], showing that VAS is especially effective for detecting contaminating subpopulations at scale.

References (100)

Couldn't load all references. Reload the page to try again.