DINOv2 way worse than SigLIP in k-NN. Is this expected? [R]

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Computer Vision · Depth: Advanced, short

Summary

A user conducting a bachelor thesis on fine-grained car classification observed a significant performance disparity between DINOv2 and SigLIP when using a frozen encoder with weighted k-NN. On a small dataset (175 train / 132 test), SigLIP achieved 91% accuracy, while DINOv2 only reached 41%, a 50-point difference. This gap persisted even after checking for cosine vs. Euclidean similarity with L2-normalized embeddings. Explanations suggest DINOv2, a self-supervised semantic model, struggles with fine-grained distinctions due to augmentations creating invariances and lacking a contrastive component to separate similar objects. In contrast, SigLIP's contrastive training with language labels likely provides crucial fine-grained signal, potentially encoding features like color. An update noted that DINOv2 and CLIP can achieve up to 90% accuracy when used as backbones with a classification layer, such as an SVM head. DINOv3 is suggested as a superior alternative for retrieval, addressing DINOv2's patch embedding issues.

Key takeaway

Machine Learning Engineers choosing a vision backbone for fine-grained tasks should note that frozen self-supervised models like DINOv2 can underperform contrastive models such as SigLIP. If your application demands fine-grained distinctions, consider using DINOv2 or CLIP as a backbone. Pair it with a trained classification head, like an SVM, to achieve higher accuracy. Alternatively, evaluate DINOv3; it is noted to offer superior performance for retrieval.

Key insights

Self-supervised vision models like DINOv2 may underperform contrastive models like SigLIP in fine-grained k-NN retrieval without a trained head.

Principles

Method

Use a frozen encoder for embeddings with weighted k-NN, or a frozen backbone (DINOv2/CLIP) with a classification layer (e.g., SVM) for better fine-grained results.

In practice

Topics

Best for: AI Engineer, Computer Vision Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Student

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.