VRG CTU NTUA University of Crete Athena Research Center FORTH

Attention, Please!

Revisiting Attentive Probing Through the Lens of Efficiency
1 VRG, FEE, Czech Technical University in Prague · 2 National Technical University of Athens · 3 University of Crete · 4 Archimedes, Athena RC · 5 IACM-FORTH · 6 IARAI · 7 IIT, NCSR “Demokritos”* equal contribution
ICLR 2026 Standing benchmark · 37 frozen encoders
EP (efficient probing) reads a frozen encoder with a handful of learnable queries that attend directly to its patch tokens: no query and no key projections, a fraction of the parameters of existing attentive probes, up to +24.3 top-1 over linear probing, attention maps that split an object into parts, and a standing ImageNet-1k benchmark of k-NN vs linear vs efficient probing that anyone can extend.

Live leaderboard

The benchmark outgrew the paper. Every frozen encoder is read three ways on ImageNet-1k under one protocol: k-NN (nothing trained), LP (a linear layer on the encoder's own global token) and EP (the same linear layer plus EP32 over the patch tokens). The gap between them separates how good the features are from how much learned aggregation matters.

37
frozen encoders
five pre-training paradigms, ViT-S to ViT-7B
–
best EP top-1
–
–
encoders where EP beats LP
same classifier, same epochs, same backbone
–
largest EP − LP gain
–
#FamilyModelPre-training dataRes.k-NNLPEPEP − LPEP head
Loading results.csv…
Top-1 accuracy (%) on ImageNet-1k val, best epoch of a 90-epoch schedule (LARS, base lr 0.1, effective batch 4096). Every number links to the training log that produced it; the EP head column downloads the trained probe (peak: the best epoch, reproduces the number exactly; final: the last epoch). Click a column header to sort.
† EP read the [CLS] token alongside the patch tokens, because the encoder's pre-training objective is defined on it (self-distillation family). ‡ no [CLS] token exists, so LP and k-NN use global average pooling. § the encoder's pooled output comes from its own learned attention pooling (SigLIP, SigLIP2, PE-Core), so LP and k-NN use GAP to measure the features rather than the pretrained pooler. Rows at a resolution other than 224 are not exactly like-for-like; RADIO's LP reads three concatenated [CLS] tokens, 3× wider than what EP pools. Full notes in the repository README.

Each point is one frozen encoder. Points above the dotted line gain from EP over linear probing; the further from the line, the more of the encoder's knowledge lives in the patch tokens rather than its global token. Hover a point for its numbers.

EP − LP in top-1 points, sorted. Masked-image-modelling and generative encoders gain the most; encoders trained to produce a strong [CLS] token (DINO, iBOT, CLIP ViT-B) gain little, and RADIO's LP arm is not a like-for-like comparison.

The same table and plots as a Gradio app on Hugging Face, with an About · submit · cite tab. It takes a few seconds to boot. Open it in a new tab if it does not load here.

Add your encoder

The table is meant to grow. Run LP and EP with the fixed protocol, add one line to results.csv and open a pull request with your logs. Merged rows appear here and on the Hugging Face Space automatically.

  1. Probe for 90 epochs with LARS, --blr 0.1, effective batch size 4096; report the best epoch.
  2. LP: --cls_features cls, or pos (GAP) with a ‡/§ marker if the encoder has no [CLS] or pools with its own attention head. Decide by inspecting the architecture, never by keeping the higher number.
  3. EP: --ep_queries 32 to stay comparable, --cls_features ep, or ep_all when the pre-training objective is defined on [CLS].
  4. Run python tools/gen_leaderboard.py to regenerate the README tables, and open the PR with links to the logs.
family,method,arch,pretrain,eval,image_size,lp,lp_gap,ep
Hybrid,MyModel,ViT-L/14,LVD-142M,IN-1K,224,85.0,no,86.2
Contributing a row
one CSV line, your logs, a pull request
fixed protocolevery number links to its logheads downloadableImageNet packs into ~80 files

The idea

Fine-tuning is becoming impractical at scale, so frozen encoders are judged by probes. But a linear probe on a single global token understates encoders whose pre-training optimizes local patch representations. Attention can read those patches, if it is done without the usual baggage.

Global vs local pre-training

Joint-embedding and vision-language models push information into a [CLS] or pooled token. Masked image modelling, autoregressive and diffusion models do not: what they know is spread over patch tokens, and a [CLS]-only probe never sees it.

Attentive probing, unified

AIM, CAE, V-JEPA, CLIP, SigLIP, CoCa, CaiT, SimPool, AbMILP, DELF and more all aggregate patches with attention. We write them as instances of one framework, benchmark them under one protocol, and find that most spend parameters on projections that do not buy accuracy.

Efficient probing

EP learns M query vectors directly in the encoder's feature space. The query and key projections disappear by mathematical equivalence, a single value projection and a linear classifier remain. Same accuracy as multi-head cross-attention, far fewer parameters, and queries that specialize in object parts.

Where the information lives, and what each protocol reads

Click through the two explorers. frozen   trained

How the encoder was pre-trained

What the evaluation protocol reads

Read the abstract

As fine-tuning becomes impractical at scale, probing is emerging as the preferred evaluation protocol. However, standard linear probing can understate the capability of models whose pre-training optimizes local representations rather than an explicit global representation. This motivates attentive probing, an alternative that uses attention to selectively aggregate patch-level features. Despite growing adoption, attentive probing is still underexplored: existing approaches are often over-parameterized and computationally inefficient. In this work, we revisit attentive probing through the lens of the accuracy vs. parameter-efficiency trade-off. We present the first comprehensive study of existing methods, analyzing their design choices and benchmarking their performance. Building on these insights, we propose efficient probing (EP), a lightweight yet effective multi-query cross-attention mechanism that eliminates redundant projections and reduces the number of trainable parameters. Across multiple benchmarks and pre-training paradigms, EP consistently outperforms linear probing and previous attentive probing methods, and remains effective when combined with parameter-efficient fine-tuning. Beyond evaluation, our analysis uncovers emerging properties of EP, including complementary attention maps, which open new directions for leveraging probing beyond protocol design.

Method

Start from vanilla multi-head cross-attention over the frozen patch tokens X ∈ ℝDi×N, then remove what the maths says is redundant.

Multi-head cross-attention (MHCA)

  • An input vector u is projected to a query, q = WQu; the tokens to keys, K = WKX.
  • Each head j attends in a da-dimensional subspace: aj = softmax(Kj⊤qj).
  • Attention predictor cost: Da(2Di+1) parameters O(N Da Di) ops
  • With a learnable query the WQ projection is already redundant. Dropping WK naively, however, costs accuracy (75.1 → 72.9 on MAE ViT-B): each head would only see a slice of the feature space.

Efficient probing (EP): multi-query cross-attention

  • Learn the effective queries uj := WKj⊤qj ∈ ℝDi directly: aj = softmax(X⊤uj).
  • No WQ, no WK: every query interacts with the full representation space, exactly as in MHCA.
  • Attention predictor cost: Di M parameters N Di M ops, with M one to two orders of magnitude below Da.
  • Mathematically equivalent to MHCA with a learnable query: EP12 and AIM12 both reach 75.1% on MAE ViT-B, with 1.36M vs 1.95M trainable parameters.
1
Freeze the encoder

Take the N patch tokens X of a pre-trained ViT-style backbone. Nothing in the backbone is ever updated.

2
Attend with M queries

Each learnable query uj produces a softmax attention map aj over the patches with a single matrix–vector product.

3
Pool the values

A value projection WV splits into M slices; query j pools its slice, yj = Vjaj. Keeping WV matters (75.1 → 72.1 without it).

4
Classify

Concatenate the yj into y ∈ ℝDo and train a linear classifier. M and Do are the two knobs that trade accuracy for parameters.

The landscape of attentive pooling

Existing methods as aligned steps of the same framework (Table 1 of the paper). Blue: learnable. σm: softmax, σp: softplus, φ(x) = W2 GeLU(W1x).

MethodQuery sourceKey transformValue transformAttentionPooling
MHCAqj ∈ ℝdaKj = WKjXVj = WVjXaj = σm(Kj⊤qj)yj = Vjaj
AbMILPq ∈ ℝDiK = XV = Xa = σm(K⊤q)y = Va
AIMqj ∈ ℝdaKj = WKj BN(X)Vj = WVj BN(X)aj = σm(Kj⊤qj)yj = Vjaj
DELFq ∈ ℝDiK = ReLU(WX)V = WXa = σp(K⊤q)y = Va
SimPoolq = WQu, u = ⅟N X⊤1K = WK LN(X)V = LN(X)a = σm(K⊤q)y = Va
V-JEPAqj = WQju, u ∈ ℝDiKj = WKj LN(X)Vj = WVj LN(X)aj = σm(Kj⊤qj)y = φ(WPVjaj)
EP (ours)qj ∈ ℝDiK = XVj = WVjXaj = σm(K⊤qj)yj = Vjaj

CLIP, CaiT, SigLIP, CAE and CoCa are further MHCA variants that keep WQ and add output projections, MLP blocks or self-attention; they are described in Appendix B of the paper and included in every benchmark below.

How many parameters does a probe add?

Trainable parameters on top of a frozen backbone, including the C-way classifier. Biases and normalization layers are omitted, so counts are approximate.

Attention predictors: MHCA with a learnable input vector costs Da(2Di+1), MHCA with a learnable query (AIM) Da(Di+1), EP DiM, all with Da = Di. Every attentive method also trains WV (DoDi) and the classifier (DoC); linear probing trains only the classifier on the [CLS] token. On MAE ViT-B the paper reports 1.36M for EP12 and 1.95M for AIM12 at identical 75.1% accuracy.

Results

ImageNet-1k top-1 accuracy, 90 epochs of probing on frozen backbones. The gains are largest exactly where linear probing is weakest: masked image modelling and generative pre-training.

+24.3
top-1 over linear probing
DiT-XL/2 (diffusion): 32.7 → 57.0. SimMIM +13.6, MAE ViT-S +17.2
75.6%
MAE ViT-B with EP64
under 1.4M trainable parameters; linear probing on [CLS] gives 67.7%
> 10×
less compute than a ViT block
at higher accuracy; EP48 with Do = Di/8 reaches 70.3% with ≈200k parameters, 4× fewer than LP
+9.8
MaxBoxAccV2 localization
averaged EP attention maps, no extra training, vs [CLS] attention over seven backbones

Top-1 accuracy vs trainable parameters

Every attentive probe on the same frozen tokens, drawn from the paper's plot data. EP variants are colored by output width Do; the dashed line is the Pareto frontier of the existing methods and the shaded area the region they dominate. Hover a point for the exact numbers.

MethodArch.Pre-trainingk-NNLP# par.EP# par.GainFT†# par.
MIM · masked image modelling
MAEViT-S/16IN-1K26.747.40.4M64.60.5M+17.280.622M
MAEViT-B/16IN-1K46.167.70.8M75.61.4M+7.983.687M
MAEViT-L/16IN-1K58.276.01.0M79.32.1M+3.385.9304M
BEiTv2ViT-B/16IN-1K74.879.00.8M81.71.4M+2.785.087M
SimMIMViT-B/16IN-1K15.151.50.8M65.11.4M+13.683.887M
CAPIViT-L/14IN-1K76.781.51.0M83.62.1M+2.1–304M
JEA · joint-embedding
BYOLRN-50IN-1K64.874.32.0M75.16.3M+0.877.726M
DINOViT-B/16IN-1K76.177.30.8M77.81.4M+0.582.887M
Hybrid · MIM + JEA
iBOTViT-B/16IN-1K77.078.70.8M79.21.4M+0.584.087M
DINOv2ViT-B/14LVD-142M81.883.20.8M84.01.4M+0.8–87M
DINOv2ViT-L/14LVD-142M83.585.21.0M85.62.1M+0.4–304M
FrancaViT-L/14IN-21K82.283.81.0M84.32.1M+0.5–304M
DINOv3ViT-B/16LVD-1689M83.084.00.8M84.41.4M+0.4–87M
DINOv3ViT-L/16LVD-1689M85.386.61.0M87.12.1M+0.5–304M
VLM · vision-language
CLIPViT-L/14WIT77.282.30.8M83.42.1M+1.1–305M
SigLIPViT-L/16WebLI83.784.1‡1.0M86.12.1M+2.0–305M
SigLIP2ViT-L/16WebLI84.485.2‡1.0M87.02.1M+1.8–305M
GEN · generative
DiTDiT-XL/2IN-1K8.332.7‡1.2M57.02.5M+24.3–676M
AIMv2ViT-L/14DFN-2B + COYO + HQITP80.884.8‡1.0M85.92.1M+1.1–304M

Table 2 of the paper, ImageNet-1k top-1 (%). # par.: trainable parameters including the classifier; EP is EP32. † Fine-tuning numbers from the official papers, under a different setup (e.g. augmentations); ‡ linear probe on global average pooling, the encoder has no usable [CLS]. EP changes the ranking of methods relative to LP and k-NN: MAE overtakes BYOL and CAPI overtakes CLIP. The standing benchmark above re-runs every row under one fixed protocol and keeps growing.

Probing vs parameter-efficient fine-tuning on a frozen MAE ViT-B/16

Drawn from the paper's plot data (Figure 4). Crosses are fine-tuning methods, dots are probes; hover any point for its configuration and exact numbers.

  • More than 40 LoRA variants (per-layer and all-layer, ranks 8–64, WQ/WK/WV combinations), BitFit and LayerNorm tuning, against [CLS], AbMILP, DELF, AIM and EP at several Do.
  • Single-layer LoRA, BitFit and LayerNorm tuning improve on linear probing but are dominated by EP: EP with Do = Di/2 gets 74.9% with 750K parameters, where the best single-layer LoRA needs about 1.2M.
  • All-layer LoRA reaches up to 76.7%, at 1.95M parameters, and changes the representation much more than EP does: in cross-dataset k-NN, EP features transfer better out of domain while LoRA wins in domain.
76.99%
LoRA + EP with 850K parameters
better than the best pure EP (75.58% at 1.38M) and the best all-layer LoRA (76.72% at 1.95M)
71.99%
LoRA + EP with 250K parameters
+4.3 over [CLS] linear probing (67.66%) with over 3× fewer parameters

LoRA adapts the representation; EP selectively aggregates it. The hybrid configurations form a new dominant frontier in the accuracy–parameter plane, so EP is complementary to PEFT rather than redundant with it.

Earlier layers: EP finds what LP cannot

MAE ViT-B, ImageNet-1k top-1 from the patch tokens of intermediate blocks. LP falls from 67.7 at block 12 to 45.8 at block 6; EP stays within 6 points of its best from block 9 on and gains +23.8 over LP at block 6.

Less data, faster convergence

ImageNet-1k subsetLPEPFTLP→FT gap closed
5% of train49.660.964.774.8%
10% of train55.965.268.971.5%
100% of train67.775.683.649.7%
ConvergenceEP @ 10 ep.LP @ 90 ep.EP @ 90 ep.
MAE ViT-B/1660.067.775.6
BEiTv2 ViT-B/1680.079.081.7
CAPI ViT-L/1482.381.583.6
iBOT ViT-B/1678.678.779.2

Low-shot probing of MAE ViT-B (top): EP closes most of the gap from linear probing to full fine-tuning when labels are scarce. Convergence (bottom): after 10 epochs EP already matches 90-epoch linear probing on BEiTv2, CAPI and iBOT.

Unsupervised localization, out of the box

ImageNet-1k MaxBoxAccV2 (WSOL protocol). The averaged EP attention maps, taken as they are after ImageNet probing, localize objects better than the last-block [CLS]→patch attention of the same backbones: +9.8 on average, +14.8 for SimMIM.

Zero-shot retrieval with EP features

BackboneCUB200 R@1+EPCars196 R@1+EP
MAE ViT-B16.357.112.734.2
BEiTv2 ViT-B57.068.248.344.2
iBOT ViT-B51.862.131.540.1
CLIP ViT-L75.080.379.679.8
SigLIP ViT-L60.876.785.890.4

Recall@1 with the frozen backbone's own global feature vs the EP-pooled feature of a probe trained once on ImageNet-1k, never on the target dataset. Every image is a query; both datasets are fully unseen.

Emerging properties

EP's queries are not interchangeable heads. Each one settles on a different part of the object, consistently across images and across backbones, and the sharper and more object-focused a query's attention, the more the classifier depends on it.

Attention maps of EP8 on MAE ViT-B

Hover or tap a query to isolate its attention. Tails, beaks, feet and backgrounds are picked up by the same query in every image.

Eight EP queries, each in its own color, over a grid of bird images

The same behaviour across backbones, at the benchmark's Q = 32

Recomputed from the published EP heads of the leaderboard (Q = 32) on the same eight ImageNet validation images. The 32 query maps are clustered into eight groups by what they attend to, once for all images, so a colour means the same group of queries in every panel. Hover a group to isolate it. Backbones from four pre-training families, ViT-S to ViT-L.

How the queries split up as Q grows

One ImageNet validation image, MAE ViT-B, each query's attention drawn separately. With two queries one takes the head and one the body; with sixteen the head alone is split into beak, eye and crown. Pick Q.

What other probes look at on the same image

Attention of each probing method on one ImageNet validation image, MAE ViT-B; multi-head methods show the mean over heads. The [CLS] column is the backbone's own last-block attention.

Complementarity of attention maps

One minus the average pairwise cosine similarity between attention distributions, matched numbers of predictors. The internal last-block [CLS]→patch heads of every backbone are far more redundant than the external EP queries. On MAE ViT-B, EP (0.65) also beats V-JEPA heads (0.55) and AIM heads (0.59); the best internal block scores 0.37.

Localization drives accuracy

Replace one predictor's attention with a uniform distribution and measure the accuracy drop. Across AIM, V-JEPA and EP, the predictors that hurt most when removed are the ones whose attention mass sits inside the ground-truth box and has the lowest entropy. Shrinking Do lowers accuracy not only through capacity but through blurrier attention.

The practical consequences are in the results above: EP's maps localize objects without any training for it (+9.8 MaxBoxAccV2), and its pooled features retrieve fine-grained classes they were never trained on (+40.8 R@1 on CUB200 for MAE). An auxiliary loss that pushes the maps apart speeds up early training but ends at the same accuracy: the complementarity emerges on its own.

parts, not shortcutslower entropy → higher accuracyno auxiliary loss needed

Use EP

A drop-in attentive pooling for any ViT-style encoder: a small bank of queries, one key-free attention, identity values, one output descriptor plus interpretable attention maps.

Minimal integration

from poolings.ep import EfficientProbing

# in your model.__init__ (EP_32):
self.ep = EfficientProbing(dim=embed_dim, num_queries=32)

# in your model.forward, tokens from a FROZEN backbone,
# shape (B, 1+N, D) with [CLS] or (B, N, D) without:
patch_tokens = tokens[:, 1:, :]   # or `tokens` if no [CLS]
pooled = self.ep(patch_tokens)    # (B, D)
logits = self.head(pooled)        # your linear classifier

Freeze the backbone and train only EfficientProbing and the head. num_queries trades speed for accuracy (8, 16, 32…); the output stays (B, D). Pass all tokens instead to include [CLS] among the values. The attention (B, Q, N) is available for visualization.

Reproduce a benchmark row

git clone https://github.com/billpsomas/efficient-probing
pip install -r requirements.txt     # timm pinned at 0.9.16

torchrun --nproc_per_node=4 main_linprobe.py \
  --amp bfloat16 --epochs 90 --optimizer lars --batch_size 1024 \
  --model vit_base_patch16 --finetune vit_base_patch16_224.mae \
  --dataset_name imagenet1k --nb_classes 1000 --data_path /path/to/imagenet \
  --cls_features ep --ep_queries 32 \
  --output_dir ./outputs/linprobe_mae_vitb_ep_imagenet1k

--cls_features picks what the probe reads (cls, pos, ep, ep_all); --knn_eval swaps training for the k-NN protocol; --finetuning does full fine-tuning. The exact command behind every leaderboard row is generated in the README's Commands block, and every trained head is on 🤗 efficient-probing-heads.

BibTeX

@inproceedings{psomas2026attention,
  title     = {Attention, Please! Revisiting Attentive Probing Through the Lens of Efficiency},
  author    = {Bill Psomas and Dionysis Christopoulos and Eirini Baltzi and Ioannis Kakogeorgiou and Tilemachos Aravanis and Nikos Komodakis and Konstantinos Karantzalos and Yannis Avrithis and Giorgos Tolias},
  booktitle = {The Fourteenth International Conference on Learning Representations (ICLR)},
  year      = {2026},
  url       = {https://openreview.net/forum?id=PXo0gtT7Al}
}

Questions: vasileios.psomas@fel.cvut.cz · dxristopoulos@mail.ntua.gr

Institutions
Czech Technical University in Prague National Technical University of Athens University of Crete Archimedes, Athena RC IACM-FORTH IARAI IIT, NCSR Demokritos