No Train, all Gain: Self-Supervised Gradients Improve Deep Frozen Representations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Simoncini, Walter, Gidaris, Spyros, Bursuc, Andrei, Asano, Yuki M.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910686316068864
author Simoncini, Walter
Gidaris, Spyros
Bursuc, Andrei
Asano, Yuki M.
author_facet Simoncini, Walter
Gidaris, Spyros
Bursuc, Andrei
Asano, Yuki M.
contents This paper introduces FUNGI, Features from UNsupervised GradIents, a method to enhance the features of transformer encoders by leveraging self-supervised gradients. Our method is simple: given any pretrained model, we first compute gradients from various self-supervised objectives for each input. These gradients are projected to a lower dimension and then concatenated with the model's output embedding. The resulting features are evaluated on k-nearest neighbor classification over 11 datasets from vision, 5 from natural language processing, and 2 from audio. Across backbones spanning various sizes and pretraining strategies, FUNGI features provide consistent performance improvements over the embeddings. We also show that using FUNGI features can benefit linear classification, clustering and image retrieval, and that they significantly improve the retrieval-based in-context scene understanding abilities of pretrained models, for example improving upon DINO by +17% for semantic segmentation - without any training.
format Preprint
id arxiv_https___arxiv_org_abs_2407_10964
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle No Train, all Gain: Self-Supervised Gradients Improve Deep Frozen Representations
Simoncini, Walter
Gidaris, Spyros
Bursuc, Andrei
Asano, Yuki M.
Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
This paper introduces FUNGI, Features from UNsupervised GradIents, a method to enhance the features of transformer encoders by leveraging self-supervised gradients. Our method is simple: given any pretrained model, we first compute gradients from various self-supervised objectives for each input. These gradients are projected to a lower dimension and then concatenated with the model's output embedding. The resulting features are evaluated on k-nearest neighbor classification over 11 datasets from vision, 5 from natural language processing, and 2 from audio. Across backbones spanning various sizes and pretraining strategies, FUNGI features provide consistent performance improvements over the embeddings. We also show that using FUNGI features can benefit linear classification, clustering and image retrieval, and that they significantly improve the retrieval-based in-context scene understanding abilities of pretrained models, for example improving upon DINO by +17% for semantic segmentation - without any training.
title No Train, all Gain: Self-Supervised Gradients Improve Deep Frozen Representations
topic Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
url https://arxiv.org/abs/2407.10964