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

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

15 Jul 2024arXiv:2407.10964archive 2025-07-28

Walter Simoncini, Spyros Gidaris, Andrei Bursuc, Yuki M. Asano

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.10964")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

waltersimoncini/fungivision officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
5ran
5unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from waltersimoncini/fungivision. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_layer_type waltersimoncini/fungivision/fungivision/gradients/base_extractor.py official repository ran · our draft was wrong MIT (permissive) · 104dacd44ae83925 · report
generate_projection_matrix WalterSimoncini/fungivision/fungivision/utils/compression.py official repository ran MIT (permissive) · 1f2b26d7aa212e61 · report
is_supported WalterSimoncini/fungivision/fungivision/utils/autograd_hacks.py official repository ran MIT (permissive) · 01e52b8e916acca2 · report
model_feature_dim WalterSimoncini/fungivision/fungivision/utils/misc.py official repository ran MIT (permissive) · 3db9ee14869a6845 · report
preprocess_layer_paths WalterSimoncini/fungivision/fungivision/utils/autograd_hacks.py official repository ran MIT (permissive) · 30d027ce5196ab7c · report
rgetattr waltersimoncini/fungivision/fungivision/gradients/base_extractor.py official repository ran · our draft was wrong MIT (permissive) · 7adb31904977e81b · report
suggested_scaling_factor WalterSimoncini/fungivision/fungivision/utils/compression.py official repository ran MIT (permissive) · ba88ce6fa6ae61d3 · report
BaseGradientExtractor waltersimoncini/fungivision/fungivision/gradients/base_extractor.py official repository unverified MIT (permissive) · 8c517a7e744ed152 · report
clear_backprops waltersimoncini/fungivision/fungivision/gradients/base_extractor.py official repository unverified MIT (permissive) · 30dc14b4b04ac056 · report
compute_grad1 waltersimoncini/fungivision/fungivision/gradients/base_extractor.py official repository unverified MIT (permissive) · 546242bc466400c2 · report
rsetattr WalterSimoncini/fungivision/fungivision/utils/misc.py official repository unverified MIT (permissive) · 4632ca8fbf0dd221 · report
symsqrt WalterSimoncini/fungivision/fungivision/utils/autograd_hacks.py official repository unverified MIT (permissive) · 56afcb3496c8fd91 · report

Tasks

AllImage RetrievalRetrievalScene UnderstandingSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionDINODense ConnectionsLayer NormalizationLinear LayerMulti-Head AttentionResidual ConnectionSoftmaxVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections