Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection
Amey Praveen Pasarkar, Adji Bousso Dieng
NeurIPS 2026
TL;DR. We propose a fast and highly accurate diversity-based method for anomaly detection
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 \emph{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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes diversity scores based on spectral properties of the Gram matrix of a set of points. Namely, authors define Vendi Anomaly Scores (VAS) for given data points by measuring the ratio of Vendi scores that include or not a data point to be scored. Different implementations are discussed and authors propose approximations in order to increase efficiency when estimating VAS for large sets of points. Guarantees are also presented for datasets that follow a certain structure.
The proposal tackles a relevant problem, the proposed approximations are relevant in practice and novel, and empirical evaluation shows strong performance for some datasets. Reviewers however highlighted limitations worth noting. The benchmark construction could confound the analysis and it would be important to check for different types of anomalies, specially more nuanced ones. Benchmarks such as OpenOOD for instance, offer options authors could consider. Reviewers also noted that guarantees rely on strong assumptions, and it's unclear the extent to which those are realistic. Heuristics used to select q should be ablated. Finally, the impact in performance due to approximations targeting efficiency is not measured. I'd add that there's not an efficiency axis in the reported empirical assessment, and conclusions should rather be drawn in the Pareto sense with accuracy and cost being accounted for simultaneously.
Final justification
Clarifications and new results provided during the discussion made us all a lot more confident on the potential impact of this submission. Reviewers were unanimously positive. Personally, my only remaining concern regards the diversity of the evaluations which, while somewhat broad, misses well known benchmarks in this space, but as it stands, the current empirical evidence seems sufficient to suggest the proposal can be extended to other relevant settings.
Read meta-review
Meta-review
This paper proposes diversity scores based on spectral properties of the Gram matrix of a set of points. Namely, authors define Vendi Anomaly Scores (VAS) for given data points by measuring the ratio of Vendi scores that include or not a data point to be scored. Different implementations are discussed and authors propose approximations in order to increase efficiency when estimating VAS for large sets of points. Guarantees are also presented for datasets that follow a certain structure.
The proposal tackles a relevant problem, the proposed approximations are relevant in practice and novel, and empirical evaluation shows strong performance for some datasets. Reviewers however highlighted limitations worth noting. The benchmark construction could confound the analysis and it would be important to check for different types of anomalies, specially more nuanced ones. Benchmarks such as OpenOOD for instance, offer options authors could consider. Reviewers also noted that guarantees rely on strong assumptions, and it's unclear the extent to which those are realistic. Heuristics used to select q should be ablated. Finally, the impact in performance due to approximations targeting efficiency is not measured. I'd add that there's not an efficiency axis in the reported empirical assessment, and conclusions should rather be drawn in the Pareto sense with accuracy and cost being accounted for simultaneously.
Final justification
Clarifications and new results provided during the discussion made us all a lot more confident on the potential impact of this submission. Reviewers were unanimously positive. Personally, my only remaining concern regards the diversity of the evaluations which, while somewhat broad, misses well known benchmarks in this space, but as it stands, the current empirical evidence seems sufficient to suggest the proposal can be extended to other relevant settings.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors introduce VAS, an anomaly detection method based on the observed effect of removing a datum on the dataset Vendi score, a measure of dataset diversity. VAS is evaluated on multiple benchmarks and compared to several competing baselines, and achieves significantly better results.
Strengths and weaknesses
Strengths
- The results are strong and statistically robust
- The approach is elegant and well motivated
- The material is presented well
- The authors position their contribution well with respect to related work
Weaknesses I am concerned that aspects of benchmark construction may play into the inductive bias of VAS. Proposition 3.2 suggests that VAS identifies components with low mass relative to their internal spectral diversity. Benchmarks constructed by downsampling semantic classes may favor methods that are based on detecting rare semantic modes in the embedding space by design. Strong performance in these settings could therefore to a greater extent be indicative that the geometry of the embeddings are generally conducive to the particular way the benchmarks are constructed rather than a general ability to identify anomalies of all kinds.
To the authors' credit, this benchmark construction is common in the literature, and the evaluation also includes structural anomaly and text benchmarks, and VAS appears to outperform the baselines on these benchmarks as well. This is therefore not a significant weakness in my view.
Nevertheless, I think it would be more rigorous to see the statistical analysis stratified by benchmark type (or perhaps for each benchmark and across seeds, if possible). I.e: report effect sizes and significance separately for rare-class, structural-anomaly, and text benchmarks. This would help clarify whether the observed gains are general or if they are concentrated in the settings that most closely match the theoretical behavior of VAS. If the method remains consistently superior across all benchmark categories, that would substantially strengthen the empirical case that the paper is presenting. On the other hand, if a marked reduction in effect size is onbserved outside the rare-class setting, this would suggest that the gains are more task-specific than the aggregate results currently indicate. Since there is only one structural-anomaly benchmark in the current evaluation, it may be difficult to draw strong conclusions about performance in this setting as is. Including an additional structural-anomaly dataset or two, if feasible, would further strengthen the empirical evidence.
Questions
- If feasible, can the authors stratify statistical testing according to benchmark type, or even perform tests on a per-benchmark basis? This would clarify the concern i mentioned wrt benchmark construction favouring VAS.
- How does VAS behave when the data distribution contains multiple legitimate but low-prevalence subpopulations? Does VAS tend to score these modes as anomalous, and if so, does this not potentially conflate rarity with anomaly? I suppose the difference is subtle, but in e.g. a medical setting i think it is important to distinguish between "this model predicts reliably on this rare disease class" and "this is an altogether new class of disease".
- The paper identifies embedding quality as a key limitation. Does this limitation apply for the competing approaches? Do the authors have any empirical evidence regarding the sensitivity of VAS to representation quality? For example, how stable are the gains for embedding models of differing quality or benchmarks with a meaningful domain shift vs the data used to train the embedding model?
Limitations
The authors have addressed the most significant limitation, namely that their approach assumes good embedding quality.
Final justification
I maintain my original rating. The paper is technically solid, and the response clarifies what few concerns/questions i had.
Formatting concerns
None
1 comment
Response to Reviewer s1c9
We thank the reviewer for their feedback.
Q1: VAS performance on other anomaly types
ADBench distinguishes clustered, local, global, and dependency anomalies. Several Table 1 datasets (e.g., CIFAR-10/SVHN) downsample non-normal classes, creating clustered anomalies as in Prop. 3.2.
We therefore add additional tests for the other three types of anomalies on eight settings: CIFAR-10/SVHN with ResNet-18/ViT and AgNews/20News with BERT/RoBERTa, against GMD, DN2, KPCA, LOF, and SLAD: the top-5 performing baselines by p-value in Table 1.
Local anomalies deviate from local neighborhoods. Across five trials, we split embeddings into fit/hold-out sets, fit one Gaussian per class, and assign each held-out sample to its highest-likelihood class.
For each predicted class , we form a dataset from samples assigned to . True- samples are normal; misclassified samples are anomalous. These are local anomalies because they lie in 's region rather than being globally isolated. We average AUROC across buckets.
C10=CIFAR-10; 20N=20News; Ag=AgNews; R=ResNet-18; V=ViT; B=BERT; Ro=RoBERTa. Entries are AUROC; †=best (ties marked); Rank=mean rank across settings (lower is better).
| Setting | VAS | GMD | DN2 | KPCA | LOF | SLAD |
|---|---|---|---|---|---|---|
| 20N-B | .555 | .560† | .526 | .525 | .525 | .548 |
| 20N-Ro | .604† | .560 | .560 | .561 | .536 | .538 |
| Ag-B | .661† | .608 | .609 | .609 | .620 | .632 |
| Ag-Ro | .660† | .589 | .642 | .630 | .624 | .605 |
| C10-R | .557 | .561 | .571 | .574† | .544 | .551 |
| C10-V | .733† | .723 | .719 | .721 | .659 | .727 |
| SVHN-R | .610 | .610 | .617† | .617† | .579 | .600 |
| SVHN-V | .552† | .543 | .535 | .543 | .539 | .543 |
| Avg. Rank | 1.81† | 3.63 | 3.56 | 3.06 | 5.19 | 3.75 |
Global anomalies deviate from the dataset's broad structure. For each setting, we sample 2,500 normals and create 278 anomalies (10% anomaly rate). Let be an orthonormal basis for the normalized class-centroid span and . For a real sample and , set
The anomaly keeps the norm and most of the direction of a real sample, but adds variation outside the class-centroid span. We use ; larger values are easier.
| Setting | VAS | GMD | DN2 | KPCA | LOF | SLAD |
|---|---|---|---|---|---|---|
| C10-R | .578† | .561 | .188 | .433 | .517 | .530 |
| C10-V | .526 | .531† | .194 | .215 | .521 | .488 |
| 20N-B | .996† | .719 | .727 | .746 | .919 | .924 |
| 20N-Ro | 1† | .995 | 1† | 1† | .956 | 1† |
| Ag-B | .991† | .712 | .657 | .752 | .932 | .896 |
| Ag-Ro | 1† | 1† | 1† | 1† | 1† | 1† |
| SVHN-R | .669† | .558 | .289 | .554 | .530 | .560 |
| SVHN-V | .956† | .585 | .272 | .607 | .572 | .586 |
| Avg. Rank | 1.63† | 3.69 | 5.13 | 3.75 | 3.94 | 2.88 |
Dependency anomalies preserve feature marginals while breaking feature dependence. Across five trials, for each class we use 2,500 normals and generate 278 anomalies (10% anomaly rate). We normalize and randomly rotate embeddings so four equal blocks mix all dimensions rather than reflect coordinate order. For each anomaly, we keep three blocks from one sample and replace the fourth with the corresponding block from a different same-class sample, then rotate back and renormalize. The donor block remains class-plausible, but is no longer jointly matched to the retained 75% of the sample.
| Setting | VAS | GMD | DN2 | KPCA | LOF | SLAD |
|---|---|---|---|---|---|---|
| 20N-B | .922† | .685 | .814 | .744 | .895 | .775 |
| 20N-Ro | .985† | .549 | .728 | .779 | .762 | .628 |
| Ag-B | .917† | .664 | .754 | .736 | .910 | .770 |
| Ag-Ro | .999† | .531 | .810 | .814 | .827 | .611 |
| C10-R | .825 | .789 | .844 | .864 | .894† | .747 |
| C10-V | .828 | .748 | .793 | .825 | .847† | .669 |
| SVHN-R | .858 | .778 | .851 | .841 | .879† | .791 |
| SVHN-V | .959† | .694 | .799 | .818 | .835 | .716 |
| Avg. Rank | 1.63† | 5.75 | 3.63 | 3.38 | 1.75 | 4.88 |
VAS achieves the best mean rank for all three types (1.81/1.63/1.63), so its gains are not limited to clustered anomalies.
Q2: Clarifying VAS under multiple low-prevalence subpopulations
Prop. 3.2 shows that VAS does not equate low prevalence with anomaly: scores also depend on subgroup diversity and similarity to other groups. A small, compact mode may score low, whereas a diffuse or distinct minority mode may score highly. Still, VAS measures statistical atypicality, not semantic validity or utility. Embeddings alone cannot distinguish between an error or a valid rare class/discovery. In high-stakes settings like medical data, a high VAS score should prompt review, not automatic removal. Metadata and subgroup-specific evaluation would be needed to distinguish, for example, a known rare disease from a novel one. High VAS scores indicate underrepresented structure, not invalid data.
Q3: Role of embedding quality
As noted in response to Reviewer yiED (Q1), we can use random projections to stress-test poorer representations. We see that VAS remains stable under moderate compression.
However, if the representation no longer separates normal and anomalous samples, no embedding-based detector can recover that missing information. Because all methods receive the same embeddings in our paper, this limitation is not specific to VAS.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, the authors propose an anomaly detection framework leveraging the Vendi Score with a cosine kernel. To ensure practical scalability, they derive a computationally efficient approximation that successfully preserves sample ranking, alongside a heuristic approach for selecting Vendi order hyperparameter. Empirical evaluations using Area Under the ROC Curve and Average Precision demonstrate statistically significant improvements over established baselines across diverse datasets. Furthermore, the approach proves robust to varying anomaly rates and sample sizes, while maintaining a runtime performance highly competitive with existing anomaly detection techniques.
Strengths and weaknesses
Strengths: A notable strength of this paper is its emphasis on practical accessibility. By deriving a computationally efficient approximation of the Vendi Score and introducing a reliable heuristic for hyperparameter selection, the authors ensure their proposed method can be easily adopted by practitioners. Furthermore, the approach is rigorously evaluated, with results backed by tests for statistical significance. The authors also transparently discuss the assumptions and limitations of their framework, providing valuable context for practitioners evaluating its suitability for specific real-world applications.
Weaknesses: The primary weakness of this work lies in its limited conceptual originality. As the authors acknowledge, the Vendi Score has previously been utilized in adjacent domains, such as Out-of-Distribution (OOD) detection. However, this concern is largely mitigated by the paper's technical contributions—namely, the novel approximation for calculating the Vendi Score with a cosine kernel and the accompanying hyperparameter heuristic, both of which are demonstrably effective for the novel use case in anomaly detection.
Questions
- Could the authors provide a more detailed discussion contrasting the proposed Vendi Anomaly Score framework with existing applications of the Vendi Score in other domains? Clarifying the specific methodological differences and adaptations required for the anomaly detection setting would help highlight the unique contributions of this work.
- It would be highly informative to see an evaluation of how closely the heuristically selected Vendi orders () align with the empirically optimal Vendi orders. This point would greatly strengthen the validation of the proposed heuristic.
- Please correct the typographical error in line 223: "one one class" should likely be "one class."
Limitations
Yes. The authors transparently address the method's assumptions and limitations throughout the paper, even dedicating a specific section within the conclusion to a detailed discussion of these limitations.
Final justification
During the discussion period, the authors thoroughly addressed my concerns as well as those raised by the other reviewers. In particular, they provided valuable additional analyses regarding their heuristic for selecting the hyperparameter , demonstrated that their method scales across various anomaly types, and introduced an insightful evaluation of the trade-off between efficiency and accuracy. These revisions have significantly strengthened the overall quality and rigor of the manuscript.
I initially recommended Accept, and the discussion period has only reinforced my confidence in that decision.
Formatting concerns
No Formatting Concerns
1 comment
Response to Reviewer vLUH
We thank the reviewer for their comments.
Q1: Clarifying the contributions of VAS
Incremental Vendi Score changes have appeared in several applications, but the role of these changes in VAS is fundamentally different from its role in previous work. Prior work evaluates how an external candidate would improve, diversify, or deviate from a reference collection. VAS instead asks how the diversity of one unlabeled, potentially contaminated dataset can be attributed to the samples already present. Each sample both helps define the empirical distribution and is evaluated relative to that same distribution.
In active search, incremental changes to the Vendi Score are used as part of a forward-looking acquisition utility function. These diversity changes are combined with a quality signal to greedily construct a subset of the data that is both high-quality and diverse [A].
In model guidance, incremental changes to the Vendi Score were used to evolve a generated sample toward an underrepresented region of the output space [B]. In both active search and model guidance, diversity changes are used prescriptively to select or generate new samples.
In OOD detection, incremental changes to the Vendi Score are used alongside classifier predictions and other classifier-specific statistics to determine whether a test sample lies outside a fixed, labeled training distribution. This approach assumes a distinction between a static reference set that the classifier was trained on and a newly arriving query [C].
Unlike the applications of incremental Vendi Score changes to active search, model guidance, and OOD detection, VAS uses diversity influence as a dataset diagnostic. We study an entire, unlabeled, potentially contaminated dataset in one shot and decompose its spectral diversity across the samples already present. This setting requires no quality signal, generator, classifier, labels, clean reference set, or training/test distinction. It also leads to a different leave-one-out formulation and a distinct diversity influence estimator.
We will revise our related work section to make clear that prior work establishes incremental Vendi Score changes as a broadly useful primitive, while VAS reformulates this primitive as a fully unsupervised dataset-auditing principle.
References:
[A] Nguyen, Q. and Dieng, A. B. “Quality-Weighted Vendi Scores and Their Application to Diverse Experimental Design.” ICML, 2024.
[B] Askari Hemmat, R. et al. “Improving Geo-diversity of Generated Images with Contextualized Vendi Score Guidance.” ECCV, 2024.
[C] Pasarkar, A. P. and Dieng, A. B. “Vendi Novelty Scores for Out-of-Distribution Detection.” arXiv:2602.10062, 2026.
Q2: Studying alternative choices of
We ran two ablations on all 148 ADBench dataset–encoder tasks. Our unsupervised rule is
where is the largest eigenvalue of the matrix . Thus, more concentrated spectra receive smaller .
Alternative heuristics. We compare against:
- Slope-: for , testing sensitivity to the constant .
- Top- mass: for , using several leading eigenvalues instead of only .
- Normalized :is the effective rank of , so is the normalized fraction. Concentrated spectra yield small , while a uniform spectrum yields .
We floor all rules at because smaller orders become sensitive to floating point precision errors.
Each -value below comes from a one-sided paired Wilcoxon test of whether our rule achieves higher AUROC over 148 tasks.
| Alternative rule | Slope-1 | Slope-5 | Normalized | Top-5 | Top-10 |
|---|---|---|---|---|---|
| -value | .399 | 1.5e-13 | .0058 | .371 | .0728 |
Our rule is statistically similar to slope-1, top-5, and top-10, showing robustness to reasonable changes. Slope-5 and normalized are significantly weaker. The latter selects very small because the effective spectral dimension is small relative to the ambient dimension.
Fixed- comparison. We also swept 20 fixed orders from to . A supervised oracle selects the best order per dataset using anomaly labels. Each -value tests whether our rule achieves higher AUROC than the listed fixed choice.
| Fixed choice | Oracle | ||||
|---|---|---|---|---|---|
| -value | .0248 | 2.3e-13 | 2.0e-18 | 8.1e-22 | 1 |
Our heuristic significantly outperforms every fixed order. The best order varies across datasets, while the oracle is better by construction and cannot be used without labels.
These results show that no fixed is uniformly best, while our heuristic performs favorably against more complex unsupervised alternatives.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Vendi Anomaly Score (VAS), an unsupervised anomaly detection method for embedding datasets that scores each sample by its influence on the dataset’s diversity, measured through the Vendi Score. Instead of defining anomalies via local density, isolation, or distance from a fitted distribution, VAS measures how much the spectral diversity of the dataset changes when a sample is removed. The authors derive an efficient first-order approximation that reduces the leave-one-out diversity change to a quadratic form, enabling scalable scoring with a single global eigendecomposition. Empirically, the method is evaluated on ADBENCH image and text embedding benchmarks and controlled ImageNet contamination experiments, where it reports strong performance relative to a broad set of unsupervised anomaly detection baselines.
Strengths and weaknesses
Strengths
- Novel perspective on anomaly detection. The paper introduces a compelling diversity-influence view of anomaly detection. This is meaningfully different from common density-, isolation-, reconstruction-, or distribution-fitting-based formulations.
- Computationally attractive in the intended regime. For embedding datasets with large N and moderate fixed D, VAS avoids repeated eigendecompositions and scales linearly in the number of samples after the global spectral computation.
Weaknesses
- Theoretical analysis is somewhat idealized. The orthogonal mixture model gives helpful intuition, but real embedding distributions may have overlapping components, long-tailed normal structure, and non-orthogonal semantic directions. The current theory does not fully characterize failure modes.
- Limited robustness analysis for embeddings and kernels. VAS relies heavily on the quality of the embedding space and the choice of cosine similarity, but the paper does not provide sufficient robustness or comparison experiments across different embeddings and kernels.
- Interpretability remains limited. VAS produces a scalar anomaly ranking but does not explain why a sample is anomalous. For dataset auditing, this is a practical limitation. Since the score is spectral, there may be natural ways to decompose it into eigen-direction contributions, but the paper does not develop such tools.
Questions
- Can the authors provide ablations on embedding and kernel sensitivity, for example using weaker or domain-mismatched embeddings, random projections, and alternative kernels such as linear or RBF? Such experiments would clarify whether VAS is robust beyond high-quality pretrained embeddings with cosine similarity, and whether its advantage truly comes from the proposed diversity-influence mechanism.
- Can the authors provide a more direct analysis of VAS across different types of synthetic anomalies, such as local, global, dependency, and clustered anomalies? The paper argues that VAS is particularly effective for coherent anomalous subpopulations, which is closely related to clustered anomalies, but the current experiments do not fully isolate this advantage. A controlled experiment following the ADBench-style anomaly taxonomy—where the anomaly type is varied while keeping the dataset and contamination rate fixed—would help clarify whether VAS is specifically strong for clustered/coherent anomalies, and whether it remains competitive for local, global, and dependency anomalies. This would also make the claimed advantage over local-density methods more convincing.
- Can the anomaly score be made more interpretable? Since , it seems possible to decompose the score over eigen-directions or identify which spectral components contribute most to a sample’s anomaly score. Even a preliminary analysis or visualization would make the method more useful for dataset auditing.
Limitations
yes
Final justification
The rebuttal substantially addressed most of my empirical concerns. The additional experiments across different anomaly types, kernels, spectral baselines, and the validation of the approximation on real datasets strengthen the empirical case for VAS. The eigendirection analysis also improves interpretability, and the authors provide a clearer distinction from prior Vendi-based methods. My remaining concerns are the idealized theoretical assumptions and the limited evaluation of robustness to genuinely weaker or domain-mismatched representations. Overall, I view these as limitations rather than fundamental flaws, and the positive evidence now outweighs the remaining concerns. I therefore raise my rating to Borderline Accept.
Formatting concerns
No major formatting or anonymity violations observed.
2 comments
Response to Reviewer yiED
We thank the reviewer for their feedback.
Q1: Ablations on Embedding Quality and Kernel Sensitivity
Our work studies anomaly detection over pretrained embeddings, a common image/text workflow [A–C]. Every detector receives identical embeddings, so VAS has no advantage in available semantic information.
Embedding sensitivity.
We ran new tests to understand whether VAS is particularly sensitive to embedding quality. We evaluate all methods under random projections, applying Rademacher projections to the CIFAR-10 one-vs-rest tasks, retaining 20 - 80% of dimensions. The table reports AUROC change (%) from the original embeddings for the five strongest Table 1 baselines.
| Encoder | Retained | VAS | GMD | DN2 | KPCA | LOF | SLAD |
|---|---|---|---|---|---|---|---|
| ResNet-18 | 80% | -0.5 | 0.0 | -0.7 | -0.7 | 0.1 | -0.8 |
| 60% | -0.4 | 0.1 | -0.5 | -0.5 | -0.3 | -1.0 | |
| 40% | -0.4 | 0.3 | -0.8 | -0.7 | -0.6 | -0.8 | |
| 20% | -2.7 | -0.7 | -2.4 | -2.5 | 0.1 | -3.4 | |
| ViT | 80% | 0.3 | 0.1 | 0.5 | 0.4 | -0.2 | 0.3 |
| 60% | -0.2 | -0.3 | -0.1 | 0.2 | 1.7 | 0.0 | |
| 40% | -0.3 | -1.2 | -0.9 | -0.2 | 2.3 | -0.1 | |
| 20% | -0.1 | -1.7 | 0.2 | 0.4 | 8.3 | -0.3 |
All methods are relatively robust to dimensionality reduction: VAS changes by $<3$% even at % dimensions. Only LOF improves substantially, but its AUROC remains far below VAS (.562 vs .940).
Kernel sensitivity.
We also evaluate RBF and Laplace kernels over all 148 ADBench tasks. To retain VAS's efficient implementation, we approximate each kernel using 2,048-dimensional random Fourier features and apply the same adaptive- procedure:
We test fixed values and a median heuristic, setting to median distance for RBF and for Laplace. The table reports one-sided paired Wilcoxon tests with : cosine VAS outperforms the alternative kernel ().
| Kernel | RBF .5 | RBF 1 | RBF 2 | RBF median | Laplace .5 | Laplace 1 | Laplace 2 | Laplace median |
|---|---|---|---|---|---|---|---|---|
| 2.9e-15 | 4.6e-10 | 3.4e-14 | 5.6e-11 | 1.9e-25 | 5.3e-25 | 1.1e-23 | 1.7e-18 |
Alternative kernels work with VAS but are bandwidth-sensitive. Cosine needs no tuning and outperforms every tested setting, making it the most practical default. Still, the best RBF variant is at least statistically tied with all Table 1 baselines except GMD.
References:
[A] Bergman, L., Cohen, N., and Hoshen, Y. “Deep Nearest Neighbor Anomaly Detection.” arXiv:2002.10445, 2020.
[B] Roth, K. et al. “Towards Total Recall in Industrial Anomaly Detection.” CVPR, 2022.
[C] Reiss, T. et al. “PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentation.” CVPR, 2021.
Q2: VAS on alternative anomaly types
We test VAS on the ADBENCH anomaly types in our response to Reviewer s1c9 (Q1). The results show strong detection performance for VAS across anomaly types.
Q3: Interpreting VAS scores
For normalized sample , let and be the eigenvalues of and along shared eigenvector . From Prop. 3.1, direction contributes to sample 's anomaly score
These contributions sum to the first-order change in log VS. Here, is the sample's energy in direction , while is its dataset average. Thus, shows how direction raises or lowers the anomaly score.
We add a demonstration of this on the 20News split where the computer topic is normal and all other topics are anomalous. For each anomaly, we show the three most informative high-contributing eigendirections (largest ) and excerpts from the document most aligned with each eigendirection.
| Anomaly doc. | Mode 1 | Mode 2 | Mode 3 |
|---|---|---|---|
| Medicine: “OTC preparations... combine aspirin with a diuretic. Does this actually work?” | “As a physician... when I was in medical school...” (illness) | “Cancer is pretty cool...” (disease) | “Information on oxaprozin... an anti-inflammatory.” (medication) |
| Religion: “For by grace are ye saved through faith... not of works...” | “Christians profess absolute certainty about their beliefs...” (doctrine) | “To Christians, Hell is—like Heaven—afterlife...” (afterlife) | “A very Lutheran viewpoint... reason, scripture, and faith.” (theology) |
| Medicine: “Try... Secaris, a water-soluble gel... compared to Vaseline...” | “Oxaprozin... marketed as DAYpro... an anti-inflammatory.” (medication) | “RoHypnol... a strong tranquilizer...” (pharmaceuticals) | “Aspirin with a diuretic... Does this work?” (medical advice) |
These examples show that anomalous samples can be explained by their highest-contributing eigendirections, while aligned documents reveal each direction’s semantics. This lets practitioners identify what made a sample unusual, validate detections, and diagnose recurring anomaly patterns.
Thank you for the detailed rebuttal and additional experiments. The new results across different types of anomalies address my concern that VAS may mainly benefit clustered/coherent anomalies, and the eigendirection-based analysis provides a useful first step toward improving interpretability. The kernel experiments also alleviate my concern about reliance on cosine similarity.
My concern about embedding robustness is only partially addressed, since random projections mainly test robustness to dimensionality reduction rather than to weaker or domain-mismatched representations. The theoretical analysis also remains somewhat idealized. Nevertheless, the rebuttal significantly strengthens the empirical evidence, and I am inclined to raise my overall assessment from 3 to 4.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes the Vendi Anomaly Score, an unsupervised anomaly detection method for embedding datasets. The anomaly score of a sample is defined as the change in dataset diversity, measured by the Vendi Score, when that sample is removed. The authors derive a first-order approximation that replaces per-sample eigendecompositions with a single global eigendecomposition and a batched quadratic form, giving linear scaling in the number of samples. A heuristic rule sets the Vendi order from the principal eigenvalue, so no per-dataset tuning is required. A proposition characterizes the expected score under orthogonal mixtures, linking it to component mass and internal diversity. Experiments on 148 ADBENCH embedding benchmarks and large-scale ImageNet contamination settings show that the method outperforms 11 unsupervised baselines with statistical significance and is among the fastest methods at scale.
Strengths and weaknesses
Strengths
S1. The method is simple and practical. It requires no training and no per-dataset tuning, scales linearly in the number of samples, and the derivation of the batched score from the leave-one-out objective is clean.
S2. The empirical evaluation is thorough. The method is tested on 148 benchmark instances with paired significance tests, and it remains the strongest even when baselines are allowed to select hyperparameters on the evaluation data, which is a notably fair protocol.
S3. Proposition 3.2 gives a clear characterization of which subpopulations receive high scores, and the ImageNet experiments with coherent contamination directly confirm this prediction. This connection between theory and experiment is a strength.
Weaknesses
W1. Proposition 3.1 shows that, for , VAS ranks samples using a fractional inverse-second-moment score . This is closely related to Mahalanobis and other spectral anomaly scores. The distinction from fitted-distribution methods is therefore less clear than the “new paradigm” framing suggests, especially without matched baselines such as plain Mahalanobis or fixed spectral-power scores.
W2. The first-order approximation is validated only on a large synthetic GMM. The analysis excludes spectral-boundary cases, which may be relevant in small-sample, high-dimensional datasets. Its accuracy on real datasets is therefore unclear.
W3. The adaptive rule
is heuristic. The coefficient, lower bound, and use of only the largest eigenvalue are not sufficiently justified or ablated.
W4. Prior work has already used changes in the Vendi Score to measure sample novelty or utility. While the unsupervised leave-one-out setting is different, the paper should more clearly isolate its conceptual and methodological novelty relative to these methods.
Questions
Q1. How does VAS compare with plain Mahalanobis distance and fixed scores of the form using the same normalized features?
Q2. How accurate is the approximation on real datasets, particularly in small-, high- settings?
Q3. How sensitive are the results to the constants in the adaptive rule, and does it outperform fixed choices of ?
Q4. What is the main conceptual difference from previous methods based on incremental Vendi Score changes?
Limitations
yes
Final justification
The rebuttal substantially resolves my main concerns through matched comparisons with Mahalanobis, PCA, and fixed spectral scores, real-data validation of the approximation, and a clearer account of the method’s novelty. The adaptive q rule remains heuristic and is not uniquely justified, but the sensitivity analysis indicates robustness to several reasonable alternatives, so I assign this issue limited weight.
Formatting concerns
None
1 comment
Response to Reviewer 1scr
We thank the reviewer for the feedback.
Q1: Comparisons to alternative spectral scores
VAS scores samples by their influence on diversity within a dataset. Prop. 3.1 yields an efficient spectral quadratic score related to familiar detectors.
For normalized features , define the matrix
Let be the eigenpairs of and . Any spectral function defines a quadratic score
Thus, choices of differ in how they weight spectral directions. For , VAS uses
It uses zero weight inside the top- subspace and equal weight outside; VAS instead uses smooth spectral weights without a hard cutoff.
Global similarity. Since , VAS is ranking-equivalent to negative average squared cosine similarity. For fixed , VAS has the spectral-power form , where . Crucially, this form is derived from leave-one-out Vendi influence rather than assumed, motivating adaptation to each dataset.
We ran new experiments comparing adaptive VAS with Mahalanobis, PCA (), and fixed over 148 ADBench tasks. Each -value is from a one-sided paired Wilcoxon test of whether adaptive VAS achieves higher AUROC.
| Alternative score | Mahalanobis | PCA-32 | ||||
|---|---|---|---|---|---|---|
| -value | 2.7e-15 | 1.3e-8 | .0248 | 2.3e-13 | 2.0e-18 | 8.1e-22 |
| Adaptive VAS outperforms every alternative. The Vendi derivation interprets and enables dataset-adaptive weighting rather than a fixed exponent, Gaussian model, or PCA cutoff. |
Q2: Approximation Accuracy
We ran new experiments comparing exact and approximate VAS across 148 ADBench tasks. Rows report mean AUROC change and Spearman correlation. AUROC changes by at most , while every correlation exceeds .
| Dataset | Encoder | AUROC (%) | Spearman |
|---|---|---|---|
| 20News | BERT | +.48 | .997 |
| 20News | RoBERTa | -.08 | .995 |
| CIFAR10 | ResNet18 | -.01 | 1 |
| CIFAR10 | ViT | -.02 | 1 |
| FashionMNIST | ResNet18 | -.02 | 1 |
| FashionMNIST | ViT | -.00 | 1 |
| MNIST-C | ResNet18 | +.00 | 1 |
| MNIST-C | ViT | +.01 | 1 |
| MVTec-AD | ResNet18 | -.41 | .990 |
| MVTec-AD | ViT | +1.16 | .985 |
| SVHN | ResNet18 | +.00 | 1 |
| SVHN | ViT | +.06 | 1 |
| AgNews | BERT | +.03 | 1 |
| AgNews | RoBERTa | +.01 | 1 |
| Amazon | BERT | +.00 | 1 |
| Amazon | RoBERTa | -.00 | 1 |
| IMDB | BERT | -.01 | 1 |
| IMDB | RoBERTa | -.00 | 1 |
| Yelp | BERT | +.00 | 1 |
| Yelp | RoBERTa | -.00 | 1 |
MVTec-AD tests , with – and ; correlation remains above with stable AUROC.
Q3: Sensitivity to
Our rule is , where is the largest eigenvalue of . We add new experiments to compare against:
- Slope-: for , testing sensitivity to the constant .
- Top- mass: for , using several leading eigenvalues rather than only .
- Normalized :
Here, measures the fraction of the spectrum effectively used. Concentrated spectra yield small , and a uniform spectrum yields . We floor every rule at because smaller orders become sensitive to floating point precision errors.
The table reports one-sided paired Wilcoxon tests over 148 ADBench tasks, testing whether our rule achieves higher AUROC than the alternative.
| Alternative rule | Slope-1 | Slope-5 | Normalized | Top-5 | Top-10 |
|---|---|---|---|---|---|
| -value | .399 | 1.5e-13 | .0058 | .371 | .0728 |
Our rule is statistically similar to slope-1, top-5, and top-10, showing robustness to reasonable heuristic changes. Slope-5 and normalized are significantly weaker.
Q4: Clarifying conceptual differences
We discuss our novelty in detail in response to Reviewer vLUH (Q1). Briefly, prior work uses incremental Vendi Score changes within a broader utility function, as a model-guidance term, or in a model-specific pipeline for detecting deviations from a reference training set. VAS instead uses Vendi influence directly to score samples within a single unlabeled, potentially contaminated dataset.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Meta Review
We thank the Area Chair for their feedback. We added controlled experiments and analyses addressing each question from the reviewers.
Different Types of Anomalies
To demonstrate the robustness of VAS to different types of anomalies, we performed a controlled experiment where we generated new anomaly types across eight dataset–encoder settings. This experiment is described in our response to Reviewer s1c9. The full experiment appears in our response to Reviewer s1c9. VAS achieves the best performance for all three added anomaly types, showing that its gains are not limited to clustered anomalies.
Assumptions and Their Practical Impact
Proposition 3.2 analyzes a simplified separable-cluster setting to explain one mechanism by which VAS detects anomalies; it is not an assumption required by the method. The new experiments described above show strong performance beyond this setting.
Proposition 3.1 is stated for full-rank ρ, but rank deficiency is handled by restricting the analysis to its positive eigenspace as described in our paper. This is particularly relevant when N<D. In our response to Reviewer 1scr (Q2), we compare exact and approximate VAS across all 148 ADBench tasks, including MVTec-AD settings with N<D. Spearman correlation exceeds .98 throughout and AUROC changes by at most 1.16%, indicating that the efficient implementation preserves both rankings and detection performance.
Testing different heuristics for q.
In our response to Reviewer vLUH (Q2), we compare our adaptive rule with alternative unsupervised heuristics, 20 fixed values of q, and a supervised oracle. Reasonable variants of the heuristic perform similarly, whereas every displayed fixed choice performs significantly worse. These results show that performance is robust to modest changes in the heuristic, but that adapting q to the dataset is important.
Balancing Efficiency and Accuracy
We agree that accuracy and runtime should be evaluated jointly.
Figure 4 provides information on efficiency: the only methods with comparable or lower runtime than VAS are LOF, LODA, DN2, IForest, and KPCA. However, these methods perform significantly worse than VAS on the tested benchmarks, such as in Table 1 or Figure 3.
We will revise the discussion of Figure 4 to state this Pareto comparison explicitly rather than discussing accuracy and efficiency separately.