Comparative Study of DINOv2, I-JEPA, and ViT Embeddings for Unsupervised Anomaly Detection
Сравнительное исследование эмбеддингов DINOv2, I-JEPA и ViT для неконтролируемого обнаружения аномалий
2025-11-19
SCID: 54.1/tuycaqav
Discuss with AI
DINOv2I-JEPAVision Transformersk-Means clusteringunsupervised anomaly detection
Figures from the paper
Abstract (AI)
This paper presents a unified, unsupervised framework for Visual Anomaly Detection (VAD) in dynamic, fixed-view scenes, leveraging modern Vision Transformers (ViTs) without additional fine-tuning. We investigate whether embeddings from backbones like a generic ViT, DINOv2, and I-JEPA, combined with a simple clustering approach, are sufficient for identifying anomalies. Our methodology extracts both global (CLS token) and local (patch-level) embeddings, applies clustering (k-Means, HDBSCAN) to model the distribution of normal scenes, and uses a scalable vector database (ChromaDB) for efficient similarity search. The three backbones delivered comparable performance, with the generic ViT showing a small but consistent advantage in balanced accuracy. Although local embeddings provided a 3 % gain in balanced accuracy, their sequential processing time is considerably higher. This limitation could be mitigated through parallelization, potentially bringing their efficiency closer to that of global embeddings. In contrast, global embeddings deliver comparable performance while being approximately 256 times faster, enabling near real-time batch processing of 15 s video segments. The <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{k}$</tex>-Means clustering and the proposed retrieval strategy proved most effective, achieving a practical operational trade-off with a balanced accuracy of 82 %. These results suggest that ViT embeddings are effective for separating normal and anomalous patterns. Local embeddings appear to capture complementary and pertinent information, and we expect that with modest adjustments in the detection strategy, they could be further leveraged to improve anomaly detection performance.
Key Findings
1
A unified unsupervised VAD framework using ViT backbones (generic ViT, DINOv2, I-JEPA) without fine-tuning can detect anomalies in fixed-view dynamic scenes.
2
Generic ViT embeddings achieved a small but consistent advantage in balanced accuracy compared to DINOv2 and I-JEPA.
3
Global (CLS token) embeddings delivered comparable detection performance while being approximately 256 times faster, enabling near real-time batch processing of 15 s video segments.
4
Local (patch-level) embeddings provided a 3% absolute gain in balanced accuracy over global embeddings but incurred much higher sequential processing time.
5
Local embeddings capture complementary information and, with modest detection-strategy adjustments or parallelization, could further improve anomaly detection performance.
6
Using a scalable vector database (ChromaDB) for similarity search enables efficient modeling and retrieval of normal-scene distributions.
7
k-Means clustering combined with the proposed retrieval strategy achieved a balanced accuracy of 82%, representing an effective operational trade-off.
Research Object
Vision Transformer (ViT) backbone embeddings (global CLS and local patch-level) from DINOv2, I-JEPA, and generic ViT used for unsupervised visual anomaly detection in dynamic, fixed-view scenes
Research Subject
Effectiveness and performance trade-offs of these ViT embeddings (global vs. local) combined with clustering and retrieval (k-Means, HDBSCAN, ChromaDB) for separating normal and anomalous patterns, measured by balanced accuracy and processing time
Publication Details
Publication Date
2025-11-19
Journal
Publisher
ISSN
Cited by
1
Access Type
Author Information
Download PDF
Subscribe to digest