potentialpaper

Attending on Attention ($A^2$): Smaller Self-Supervised ViTs Localize Better Than Larger Ones

Sreehari Rammohan, Huy Ha, Carl Vondrick

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Smaller Self-Supervised ViTs localize objects better than larger ones; A^2 exploits this by using a small ViT to choose crops and a large ViT to embed them.

Abstract. Robust visual classification often depends on localizing the main foreground objects in an image while ignoring contextual distractors. Surprisingly, we find that the last layer attention maps of smaller self-supervised ViTs localize foreground objects better than those of larger ViTs. However, we still need large ViTs, because they extract richer representations from each patch. To get the best of both worlds, good localization and rich representations, we propose A2A^2, a simple method that leverages this inverse scaling finding by decoupling where to look (a small attention model) from what to extract (a large embedding model): we crop around the attention peaks of a small model and embed the crops with a larger model. A2A^2 uses entirely pretrained features, requires no group labels, and does not require per-dataset attention or backbone training. Across 5 benchmarks, A2A^2 is competitive with backbone-matched loss-level methods like DFR, and outperforms end-to-end attention training under stronger distribution shifts. Code can be found here: https://github.com/SreehariRamMohan/A2

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper needs clarification. Reviewers find the inverse-scaling observation surprising and potentially valuable, but the cause and scope of the effect are not yet sufficiently isolated.

Please focus the rebuttal on four points:

  1. Clarify whether localization differences come from model size, patch size, pretraining objective, or training data. In particular, address the DINO/MAE results, the opposite OpenCLIP trend, and the patch-size confound.
  2. Show that the gains come from the proposed small-model attention rather than cropping alone. Comparisons with random crops, large-model attention, or another localization method would be useful if available.
  3. Explain how a task-agnostic attention model selects task-relevant regions, especially when foreground objects and relevant attributes differ, as in CelebA. Please state the method’s expected scope and failure cases.
  4. Report the computational cost and sensitivity to crop number, crop size, and resizing. Multiple large-model passes may materially change the practical value of the method.

Developing a new self-supervised training method is beyond rebuttal scope. Convincing evidence on the inverse-scaling cause, crop-selection control, and computational cost would strengthen the case for acceptance.

Final justification

The rebuttal substantially addresses the reviewers’ concerns through controlled patch-size experiments, validation across five SSL model families, layer-wise analyses, and stronger crop-selector baselines. These results support the original finding that smaller self-supervised ViTs can localize better and show that the gains are not explained by cropping alone. Although the method is mainly applicable to images with a salient, spatially separable object, and the inverse-scaling mechanism remains incompletely understood, the reviewers agree that the finding is original and potentially valuable. I therefore recommend acceptance.

Area Chair 5pzn · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper needs clarification. Reviewers find the inverse-scaling observation surprising and potentially valuable, but the cause and scope of the effect are not yet sufficiently isolated.

Please focus the rebuttal on four points:

  1. Clarify whether localization differences come from model size, patch size, pretraining objective, or training data. In particular, address the DINO/MAE results, the opposite OpenCLIP trend, and the patch-size confound.
  2. Show that the gains come from the proposed small-model attention rather than cropping alone. Comparisons with random crops, large-model attention, or another localization method would be useful if available.
  3. Explain how a task-agnostic attention model selects task-relevant regions, especially when foreground objects and relevant attributes differ, as in CelebA. Please state the method’s expected scope and failure cases.
  4. Report the computational cost and sensitivity to crop number, crop size, and resizing. Multiple large-model passes may materially change the practical value of the method.

Developing a new self-supervised training method is beyond rebuttal scope. Convincing evidence on the inverse-scaling cause, crop-selection control, and computational cost would strengthen the case for acceptance.

Final justification

The rebuttal substantially addresses the reviewers’ concerns through controlled patch-size experiments, validation across five SSL model families, layer-wise analyses, and stronger crop-selector baselines. These results support the original finding that smaller self-supervised ViTs can localize better and show that the gains are not explained by cropping alone. Although the method is mainly applicable to images with a salient, spatially separable object, and the inverse-scaling mechanism remains incompletely understood, the reviewers agree that the finding is original and potentially valuable. I therefore recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

We thank the AC for their review, and would like to summarize key points from the rebuttal briefly.

AC-1: Size vs. patch size vs. objective vs. data

Controlling for patch size, pretraining objective, and training data, we find that inverse scaling of localization persists across five SSL families (DINOv1, DINOv2, DINOv3, iBOT, MAE) up to 6.7B parameters.

Full discussion in responses to VzUy and hPfC (with the objective, pretraining data, and patch size confounds).

In response to hPfC, we directly tested the patch size confound by comparing localization abilities of DINOv1/16 and DINOv1/8. We found that while smaller patch sizes improve localization (ViT-S/8 > ViT-S/16 and ViT-B/8 > ViT-B/16), within each patch size family, inverse scaling persists. Therefore, the plateau of MAE in localization when going from MAE ViT-L/16 to MAE ViT-H/14 is likely due to the smaller patch size (16 vs. 14). MAE B/16 --> MAE L/16 declines -0.098 in Waterbirds mass in bbox (with the patch size held constant this decrease is inverse scaling), but MAE L/16 to MAE H/14 slightly increases +0.002 in Waterbirds mass in bbox because the patch size decrease slightly overpowers the inverse scaling effect.

The OpenCLIP "opposite" trend is also not stable, varying the pretraining data and comparing OpenCLIP vs. OpenAI CLIP (LAION-2B vs. WIT-400M) leads us to believe that image-text pretrained ViTs show no consistent trend. The same architecture and objective trained on two different corpuses yield wildly different attention hit rates (0.815 vs. 0.172). We also note that in both steps going from /16 to /14 patch size, the attention mass and hit rate increase within family (from B/16 to L/14), which is exactly the patch size confound we discussed earlier. Full table in response to VzUy.

Large SSL models still learn strong localization, just not at the final layer

Large SSL models do learn strong localization, it just peaks at an intermediate layer and degrades over the final blocks while small SSL models peak in localization at or near their last layer. Using the peak localization layer to select crops in large models can help recover some of the downstream performance. Please see our response to hPfC for a full discussion.

AC-2: Small model attention vs. cropping alone

In response to VzUy, we compare small model crop selection to random crops, large model attention, and GradCAM (task-conditioned) crop selection.

We hold the embedder constant (DINOv2 ViT-G) and vary the selector used to choose crops. Besides a random selector and center selector, we also show a GradCAM selector (wrt to a trained linear task probe) and ViT-G selector where we use the layer shown to be best at localizing (in the response to hPfC we showed that large self supervised ViTs localize best in intermediate layers).

GradCAM inherits the task bias from the linear probe and the spurious features (like the background) merge into the representations, causing the selector to choose background crops over salient ones focused on the main subject.

Random cropping performs poorly, underperforming small model attention significantly.

AC-3: Task agnostic attention, scope

First, in response to rxrD, we define the method's scope. Next, we show that the pretrained attention in SSLs naturally selects task relevant regions, performing better than a task-conditioned selector (GradCAM) where biases can easily bleed into the representations. CelebA is a good example of a failure case where the hair type (blond vs. not blond) is not the primary salient foreground object, requiring a small 3,000 parameter adapter to redirect attention (WGA 23.3 --> 66.1).

AC-4: Computational cost, sensitivity to hyperparameters

In response to rxrD, we run experiments reporting the computational cost, sensitivity to crop size & number and the specific resizing (of the original image and crop) options.

We run a fixed, shared configuration of k=2 crops of sizes [64, 32] on all datasets and show that this configuration matches or exceeds our per-dataset choices.

We measure FLOPs, showing that A^2 with k=1 (ViT-S to select and ViT-G to embed) costs only 1.02x the FLOPs of ViT-G on the full image while outperforming in accuracy and WGA on Waterbirds. With the same backbone for the selector and embedder A^2 ViT-S with k=2 crops (19 GFLOPs) outperforms S^2 ViT-S (31 GFLOPs) on all 5 datasets and ViT-S@518^2 (47 GFLOPs) on Spawrious O2O & M2M.

We also try passing the top-k attention ranked patches (instead of using square crops) to the embedder, finding that square crops are a better inductive bias for the model to focus on contiguous regions and avoid including artifact or spurious patches.

While developing a new self supervised training paradigm is out of scope, in response to hPfC we share some ideas on how our findings can be applied to self supervised training (getting the robustness benefits of A^2 in a single forward pass).

Reviewer VzUyOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors observe that, within self-supervised ViT families, smaller models produce attention maps that align better with foreground objects than larger models. Based on this observation, the authors propose A squared, a simple framework that uses a small model to select image crops and a larger model to extract features from those crops. The method relies entirely on pretrained models and is evaluated on several benchmarks.

Strengths and weaknesses

Strengths:

  • The paper's motivational observation is genuinely unexpected. The common intuition is that larger models should perform better at almost everything, yet the paper finds the opposite trend for attention-based localization within self-supervised ViT families.

  • The proposed method is easy to understand, the pipeline is straightforward.

  • The paper is well written, the story makes sense, the experiments are well conducted, nice read!

Weaknesses:

  • Authors argue that smaller self-supervised ViTs localize better than larger ones. However, the effect is only demonstrated for DINOv2 and MAE, while it does not really hold for OpenCLIP. This could raise the possibility that the observed trend is tied to the pretraining objective (self-distillation, reconstruction, contrastive learning) rather than model size itself.

  • A core assumption of the paper is that attention maps correspond to object localization. However, this assumption is not always valid. Prior works have shown that attention maps can contain artifacts and may not directly correspond to semantic object regions (e.g., the ViT Needs Registers paper). More generally, attention is often an imperfect explanation mechanism.

  • The paper attributes improvements to better localization by smaller models. But, cropping removes background information and may already explain a large fraction of the gains. It would be interesting to compare against other crop-selection mechanisms (random or other)

  • The empirical observation is interesting, but the authors do not provide a enough explanation for why localization quality appears to decrease with model size in self-supervised ViTs. Understanding the cause of this inverse-scaling effect would strengthen the paper.

  • Minor: there is a missing word in line 144 (page 5)

Questions
  • Could you explicitly discuss the role of pretraining data and pretraining objectives? I mean, does the observed effect persist when controlling for architecture size, training dataset size, training objective etc. ?

  • How could you be sure the attention maps are truly localizing semantic objects? DId you consider comparing agaisnt GradCAM-style approaches for example?

  • The crop-selection procedure could be described more clearly. Specifically, is there any adaptive thresholding for the attention maps?

  • How is the number of crops fixed? The method appears to use a fixed number of crops for every image. Why is a fixed number appropriate? I mean some images may contain multiple (or only one) relevant object.

  • How would the method work in a multi-label setting, where multiple objects or attributes are simultaneously relevant? Would it make sense to look at each head before aggregation?

Limitations

Yes

Final justification

The additional experiments directly address my main concerns and make the empirical evaluation more convincing. I therefore support accepting the paper.

Formatting concerns

None

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Reviewer VzUy

Notation:

AC-{N} references the AC's N'th point.

W-{N} references the reviewer's N'th weakness.

Q-{N} references the reviewer's N'th question.

Could you explicitly discuss the role of pretraining data and pretraining objectives? Does the observed effect persist when controlling for architecture size, training dataset size, training objective etc.? (W-1, Q-1, AC-1)

Yes, we walk through each of the factors (size, pretraining objective, and pretraining data) below. Patch size is discussed in the response to hPfC (first response)

1. Size Each row represents a pretraining family where the objective, patch size, and training corpus are fixed. The Smallest and the Largest columns represent the smallest and the largest models in the family.

For the Waterbirds benchmark with ground truth annotated bounding boxes around the bird, we show the attention mass within the bounding box for the smallest and largest model in each family. The Delta mass column shows the difference between the two.

SSL family (objective; corpus) Smallest Largest Delta mass
DINOv1 (self-distill; IN-1k) S/16: 0.689 B/16: 0.649 −0.040
DINOv2 (self-distill; LVD-142M) S/14: 0.820 g/14: 0.608 −0.212
DINOv3 (self-distill; LVD-1689M) S/16: 0.767 7B/16: 0.577 −0.190
iBOT (MIM + distill; IN-1k) S/16: 0.696 L/16: 0.557 −0.139
MAE (reconstruction; IN-1k) B/16: 0.474 L/16: 0.376 −0.098

Across the 5 families we see a downward sloping trend.

2. Objective, everything else held constant

Attention hit rate is a measure of how often the argmax of the attention map falls within the ground truth bounding box. We compare DeiT-S/16 (supervised) vs. DINOv1 ViT-S/16 (self-distilled), these models share the same architecture, patch size, and pretraining data (ImageNet-1K) but differ in pretraining objective. The self supervised training in DINO ViT-S improves localization significantly.

Both ViT-S/16, both IN-1k Waterbirds mass / hit ImageNet mass / hit
DeiT-S (supervised) 0.394 / 0.157 0.442 / 0.301
DINO ViT-S (self-supervised) 0.689 / 0.939 0.681 / 0.849

3. Pretraining data, everything else held constant

We do not have a publicly released SSL family that is trained with one training recipe on two different data corpuses. Instead, we show inverse scaling when (1) the training corpus is fixed but the objective varies (row 1) and (2) the objective is fixed but the training corpus grows. Delta mass refers to the difference in the largest and smallest attention mass that lies in the ground truth bounding boxes.

Pretraining-data control Setup Delta mass, Waterbirds Delta mass, ImageNet val
Corpus fixed (IN-1k), objective varies DINOv1 / iBOT / MAE −0.040 / −0.139 / −0.098 −0.021 / −0.092 / −0.044
Corpus grows 1.3M --> 1.7B images, objective class fixed DINOv1 --> v2 --> v3 −0.040 / −0.212 / −0.190 −0.021 / −0.069 / −0.074

3.1 The opposite trend in OpenCLIP (AC-1) Our paper claims inverse scaling in self-supervised ViTs. Our paper observed a weak positive trend for image-text pretrained ViTs (OpenCLIP). Varying the pretraining data and comparing OpenCLIP vs. OpenAI CLIP (LAION-2B vs. WIT-400M) leads us to believe that image-text pretrained ViTs show no consistent trend.

Image-text contrastive B/16 (86M) L/14 (304M) H/14 (632M) g/14 (1.0B)
OpenCLIP (LAION-2B) 0.480 / 0.166 0.561 / 0.815 0.526 / 0.431 0.522 / 0.585
OpenAI CLIP (WIT-400M) 0.426 / 0.166 0.483 / 0.172 — —

Are attention maps valid localizers? (W-2)

We agree that attention maps are imperfect as an explanation mechanism and can often contain artifacts, we build on this skepticism rather than making this assumption broadly.

Section 2 measures attention localization against ground truth bounding boxes and our central claim is that the strength of localization varies within SSL models: it is strong in small SSL models and degrades with size. On Waterbirds a ViT-S selector used to choose crops for downstream A^2 outperforms using the GT bounding boxes for a selector to choose crops (because the GT boxes are placed at the bird centroid, while the ViT-S attention focuses on including the most salient part of the bird).

The main DINOv2 results use registers to avoid the attention artifact issue you mentioned, but our method does not hinge on this, re running without registers reproduces Waterbirds exactly (98.2 / 94.4) and scores higher on Spawrious O2O (91.7 / 82.1 vs. 89.2 / 79.9).

Understanding why localization quality appears to decrease with model size in self-supervised ViTs (W-4, AC-1)

Large SSL models do learn strong localization, it just peaks at an intermediate layer and degrades over the final blocks while small SSL models peak in localization at or near their last layer. For example, in Waterbirds the attention mass in the GT boxes drops from 0.74 (block 32/40 DINOv2 ViT-G) to 0.61 and in iBOT ViT-L it drops from 0.72 (block 15/24) to 0.56 by the final block. These results show the patch attention drifting away from the salient foreground objects. In DINOv2, this decline coincides with the attention shifting onto the register tokens in later layers.

Using the peak localization layer to select crops in large models can help recover some of the downstream performance (but is more expensive than using a small model and requires ground truth bounding boxes to find the best layer).

Cropping removes background which may explain the gains. Compare to other crop selection mechanisms (GradCAM, AC-2). How can we be sure the attention is localizing to semantic objects? (W-3, Q-2, AC-2)

We show that the gains come from the proposed small-model attention rather than cropping alone.

We hold the embedder constant (DINOv2 ViT-G) and vary the selector used to choose crops. Besides a random selector and center selector, we also show a GradCAM selector (wrt to a trained linear task probe) and ViT-G selector where we use the layer shown to be best at localizing (in the response to hPfC we showed that large self supervised ViTs localize best in intermediate layers).

Selector Spawrious O2O Acc/WGA Waterbirds Acc/WGA
Random placement (5 seeds) 39.6 +/- 1.1 / 25.9 +/- 1.8 76.5 +/- 0.3 / 47.4 +/- 2.0
Center placement (same config as ours) 61.4 / 43.5 96.3 / 86.3
GradCAM w.r.t. task probe 61.4 / 49.2 79.3 / 62.9
DeiT-S attention (supervised) 29.9 / 19.9 73.6 / 40.5
ViT-G attention, last layer 82.6 / 73.8 95.8 / 89.9
ViT-G attention, best layer 87.1 / 79.2 97.7 / 94.5
GT-box crop — 97.9 / 93.8
ViT-S attention (ours) 89.2 / 79.9 98.2 / 94.4

GradCAM inherits the task bias from the linear probe and the spurious features (like the background) merge into the representations, causing the selector to choose background crops over salient ones focused on the main subject.

Random cropping performs poorly, underperforming small model attention significantly.

The crop-selection procedure could be described more clearly. Specifically, is there any adaptive thresholding for the attention maps? (Q-3)

No adaptive thresholding is done. We choose the crops so as to maximize the attention mass within each one in a greedy fashion. We greedily select the largest crop first and then select each subsequent one so as to not overlap with a previously placed crop. We will make this more clear in the revision.

How is the number of crops fixed? The method appears to use a fixed number of crops for every image. Why is a fixed number appropriate? I mean some images may contain multiple (or only one) relevant object. (Q-4)

The number of crops (1 or 2) was chosen based on an estimate of the amount of spurious features in the task (see Appendix Crop Count Ablation). We found however that the sensitivity to crops count is low, we re ran the same configuration (k=2, sizes [64, 32]) on every dataset and this matches or exceeds the published numbers.

How would the method work in a multi-label setting, where multiple objects or attributes are simultaneously relevant? Would it make sense to look at each head before aggregation? (Q-5)

While this is out of scope, non overlapping greedy crop selection partially allows us to select multiple salient regions and your suggestion of looking at each head's attention prior to attention aggregation seems like one potential solution.

Minor manuscript edits (W-5)

We will fix the missing word in the revision, thank you for catching it.

We hope these additions (the GradCAM, registers, inverse scaling experiments your comments prompted) have made the paper more complete. If you believe we have addressed your concerns we would appreciate your continued support in the discussion phase. Thank you!

Reviewer rxrDOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors first demonstrated that pre-trained ViTs can use attention maps to isolate foreground objects. Moreover, they made the interesting and original observation that smaller self-supervised ViTs are better at focusing on the relevant objects, but the same does not hold for CLIP-trained ViTs. They then utilized this finding to propose a framework for reducing spurious correlations and improving classification accuracy: the framework first uses a small ViT to generate an attention map over the entire image, then create a set of square crops that cover the most attention mass. The crops are each resized to 224x224 and fed to a large ViT, and their CLS token outputs are concatenated and used for classification through logistic regression. The proposed method was evaluated over several datasets designed for spurious correlations, and the proposed method achieved strong performance against baselines. In addition, they proposed a method for adapting the attention model to better align with the task by adding an MLP trained end-to-end through DPS. Extensive implementation and experimentation details were logged in the appendix.

Strengths and weaknesses

Strengths:

  1. The paper presented some very surprising original findings. It is really interesting to observe that smaller self-supervised ViTs actually has attention focus better on target objects compared to larger self-supervised ViTs, but the same does not hold for CLIP ViTs. This property have high potential for future research directions, both in exploiting this finding to use smaller ViTs for localization and in theoretical understanding of visual representation learning from different objectives.

  2. The proposed method is extensively evaluated over several spurious-related image classification datasets, and the proposed method achieved strong performance without needing grouped labels.

Weaknesses:

  1. One thing about this paper that fundamentally confuses me is that, since the attention model is just a pretrained general-purpose ViT and the prediction task is not given to the attention model, how does the attention model possibly know which part of the image to focus on? For example, in Figure 1, if the attention model does not know that we are doing a "horse vs cow" prediction, how can it possibly focus so much on the cows and completely ignore the human?

  2. The proposed method seem to have quite a bit of dataset-specific hyperparameters that it is sensitive to, as its crop sizes and crop counts needs to be carefully tuned for each dataset for it to work well. Therefore, when this method is applied to general-purpose vision encoders with fixed hyperparameters, the combined pipeline may lose its generality over certain domains.

  3. The proposed method seem to add significant computational overhead, especially when crop count is large (as each crop is resized to 224x224, so the total compute of the emb step is equivalent to doing full forward pass through the emb model crop_count times)

  4. The paper could benefit from additional ablation studies, as certain design choices are currently unjustified. For example, (1) is it better to have each crop resized to 224x224 rather than keeping its cropped size and fed into emb model with fewer patches? Or resized to intermediate sizes like 112x112? Does the classification performance really benefit from resizing a small crop into a blurry large image? (2) What if instead of using square crops, we simply take the patches with highest attention and feed them to the emb model? Does forcing square patching improve performance?

Questions
  1. Please provide more details about resizing each crop to 224x224. Since you resize the original image to 224x224 before inputting into the attention model (let's call this step "orig-resize"), do you resize the crop starting from the post-orig-resize image or pre-orig-resize image? For example, if the original image is 448x448, and crop size is 64, then do you directly resize the 64x64 crop to 224x224 or do you first map the 64x64 crop region back to the original image (so it will have 128x128 resolution) before resizing it to 224x224 to be fed to the emb model? If it is the first case, wouldn't the resized 224x224 image be really blurry?

  2. There is detailed description about how attention map was extracted in Appendix A, but from the main text the appendix was only referenced starting from section 3. Is the same attention extraction method used for analysis in section 2?

Limitations

Yes

Final justification

The rebuttal has clarified most of my concerns, so I improved clarity score from 2 to 3. My score remains at 4 because I believe this paper's findings are interesting and can be useful or inspiring for future research, but its scope of application still seems limited (as it only works with images with a clearly dominant object).

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Reviewer rxrD

Notation:

AC-{N} references the AC's N'th point.

W-{N} references the reviewer's N'th weakness.

Q-{N} references the reviewer's N'th question.

How can task-agnostic attention know what to focus on (W-1, AC-3)

The attention model does not know the task, but DINO [R1] showed that self supervised ViT last layer attention maps can be used to segment foreground objects. In the "cow vs. horse" example, the model chooses to focus most attention on the cow because the cow is the most salient foreground object in the image.

We ran an experiment where we used GradCAM [R2] (standard pytorch-grad-cam using ViT defaults) to learn a task conditioned selector. We found that the spurious correlations and distractor information bleed into the GradCAM representations, causing it to select crops that are not salient and do not improve accuracy. The attention model being task agnostic allows it to avoid inheriting task biases.

A^2 helps when (1) the label is associated with the dominant foreground object and (2) the distractor or irrelevant aspects of the image can be spatially separated. CelebA is a good example of a failure case where our 3,000 parameter adapter is needed to redirect attention. It does not suffer the same fate as the GradCAM selector due to it taking in a frozen attention map and only deciding how to re-weight said map to influence where to look.

Crop selector (same ViT-G embedder, same crop config) Waterbirds Acc/WGA Spawrious O2O Acc/WGA
GradCAM w.r.t. task probe (task-conditioned) 79.3 / 62.9 61.4 / 49.2
ViT-S attention (task-agnostic, A^2) 98.2 / 94.4 89.2 / 79.9

Dataset specific hyperparameters (W-2, AC-4)

A^2 has two: crop count and crop sizes. To measure the sensitivity of these hyperparameters we run one shared configuration (k=2 crops, sizes [64, 32], ViT-S attention to select crops and ViT-G to embed crops) on all datasets

Shared config O2O M2M Waterbirds Cat vs. Dog Animals
Acc / WGA(WC) 89.2 / 79.9 86.0 / 64.6 98.3 / 95.3 77.3 / 76.6 88.9 / 70.8

This configuration coincides with our per-dataset choices on four of the five datasets. This configuration on Waterbirds exceeds our published k=1 numbers (95.3 vs. 94.4 WGA). For a new dataset, a user of A^2 can start from these defaults (k=2, sizes [64, 32]), this configuration matches or exceeds every per-dataset choice we made.

Computational Overhead (W-3, AC-4)

Measured using (fvcore FLOPs, fp32, one A100, batch 1)

Cross model: A^2 ViT-S (to select) x ViT-G (to embed)

Configuration GFLOPs End-to-end latency
ViT-G@224^2 full-image probe 304 54 ms
A^2, k=1 311 (1.02x) 98 ms
A^2, k=2 615 (2.02x) 153 ms
ViT-G@518^2 (high-res) 1790 (5.9x) 251 ms

Zero-shot (OpenCLIP ViT-L/14 embedder):

Configuration GFLOPs End-to-end latency
Full-image CLIP ZS 52 16 ms
AZS2A^2_\text{ZS}, ViT-S selector, k=1 58 (1.12x) 60 ms
TTR (2 full CLIP passes) 104 (2.0x) 31 ms + clustering

Same backbone: A^2 ViT-S x ViT-S (to select and embed)

Configuration GFLOPs End-to-end latency
ViT-S@224^2 full-image probe 6.2 5 ms
A^2, k=1 12 (2.0x) 48 ms
A^2, k=2 19 (3.0x) 53 ms
S^2 [R3] (5×224^2 via s2wrapper) 31 (5.0x) 12 ms
ViT-S@518^2 (high-res) 47 (7.5x) 11 ms

The ViT-S attention pass adds only 2.0% of the FLOPs (See the first cross-model table). The latency overhead beyond FLOPs is the CPU greedy crop selection (39 ms/image in our unoptimized implementation) plus the sequential crop passes. Same-backbone A^2 (19 GFLOPs) is cheaper than S^2 [R3] (31 GFLOPs / 11.8 ms) and ViT-S@518^2 (47 GFLOPs) while outperforming both (O2O: 91.0 vs. 82.2 vs. 86.2). In the zero-shot table, TTR costs 2x full-image CLIP while AZS2A^2_\text{ZS} costs 1.12x but AZS2A^2_\text{ZS} outperforms TTR on 4/5 datasets.

Additional Ablation Studies (W-4, AC-4)

(1) is it better to have each crop resized to 224x224 rather than keeping its cropped size and fed into emb model with fewer patches? Or resized to intermediate sizes like 112x112? Does the classification performance really benefit from resizing a small crop into a blurry large image?

Yes, resizing to 224x224 (even if blurry) is better than feeding the crop into the embedder in its cropped size (possibly to better match training distribution input). Intermediate sizes for the resize like 112x112 do not seem to help.

We explore intermediate resizing (112x112) for various crop sizes and also cropping from the original vs. squashed 224x224 image.

Name Crop pixels from Fed to embedder as Waterbirds Acc / WGA
Paper squashed 224^2 frame upsampled to 224^2 (256 tokens) 98.2 / 94.4
No upsample squashed 224^2 frame own size (~25 tokens) 97.3 / 92.5
112^2 target squashed 224^2 frame resized to 112^2 (64 tokens) 97.9 / 93.1
Crop from original, upsample original resolution resized to 224^2 98.4 / 94.9
Crop from original original resolution own size (~80 tokens) 98.0 / 93.8

A comprehensive table of the full grid: crop sizes {32, 64, 128} with resize targets {112^2, 224^2, no resize} on Waterbirds and Spawrious O2O is below. In this table, the crops are taken from the squashed 224x224 image. Columns are the crop sizes and the rows are the different configurations. In Waterbirds we use one [s] sized crop and in Spawrious O2O we use two [s, s/2] crops.

WGA s=32 s=64 s=128
Waterbirds, resize to 112^2 87.5 93.1 94.2
Waterbirds, resize to 224^2 (paper) 89.9 94.4 93.8
Waterbirds, no resize 54.4 92.5 93.9
Spawrious O2O, resize to 112^2 76.6 78.4 68.9
Spawrious O2O, resize to 224^2 (paper) 76.5 80.0 76.6
Spawrious O2O, no resize 64.8 74.8 64.7

(2) What if instead of using square crops, we simply take the patches with highest attention and feed them to the emb model?

We ran this experiment, comparing the top-k attention ranked patches fed to the frozen embedder (with their position embeddings) to the pixel-matched patch crops.

Benchmark Square crops (paper) Top-K tokens
Waterbirds (K=21) 98.2 / 94.4 97.7 / 94.9
Spawrious O2O (K=26) 89.2 / 79.9 86.7 / 79.7
Spawrious M2M (K=26) 86.0 / 64.6 82.3 / 50.9
MetaShift Cat-vs-Dog (K=26) 77.3 / 76.6 77.0 / 75.8
MetaShift Animals (K=26) 88.9 / 70.8 89.1 / 70.1

Square cropping is an inductive bias that forces the model to focus its attention at a continuous unimodal, bimodal, or k-modal region(s) of the image. With topk selection, the model runs the risk of selecting artifacts or disjoint regions of the image which can lead it astray (as it does in Spawrious M2M)

Square crops are also nice because they do not require any special hacking to the embedder and can be used off the shelf with A^2 CLIP-ZS. The top-k option has the efficiency argument of avoiding multiple forward embedding passes. We will give this comparison greater consideration in the revision.

More details about resizing each crop to 224x224 (Q-1)

The original image is resized to 224x224 (not preserving aspect ratio) and attention and crops are all taken from that 224x224 resized image. The SxS crop is then resized back to 224x224, and you are correct that it is blurry.

To thoroughly isolate the optimal image to crop from (original image, resized to 224x224) and whether the blurriness of the crop leads to decreased performance we run a targeted experiment. See the first table in Additional Ablation Studies (W-4, AC-4) above.

The blurriness of the crop only marginally hurts performance, costing 0.5 WGA on Waterbirds. We note that on our other benchmarks, cropping from native resolution shows no consistent benefit over the existing paper pipeline. Upsampling the crop to 224^2 is helpful over processing in the crop native size.

Is the same attention extraction method used for analysis in section 2? (Q-2)

Yes, and we will make this clear in the revision.

We will be around during the discussion to answer any remaining questions. If you believe we have addressed your concerns surrounding paper clarity (in particular the resizing and ablation experiments) we would be grateful if you could express that in your assessment. Thank you!

[R1] Caron et al. Emerging Properties in Self-Supervised Vision Transformers. 2021.

[R2] Selvaraju et al. Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization. 2016.

[R3] Shi et al. When Do We Not Need Larger Vision Models? 2024.

Reviewer rxrD · CommentOpenReview ↗

Thank you very much for your response! My score remains positive, and increased clarity score from 2 to 3

Reviewer hPfCOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper makes the empirical observation that the localization ability of self-supervised ViT models depends on model size, with smaller models localizing better. Based on this observation, the authors propose a two-stage approach in which a DINOv2 ViT-S is used to localize regions for cropping based on its attention heatmap. These cropped regions are then passed to a larger model, such as DINOv2 ViT-G, where a linear probe is fitted for classification, or to OpenCLIP ViT-L-14, where zero-shot classification is performed. Experiments on spurious-correlation benchmarks show that this two-stage approach improves classification performance in all cases.

However, this appears to hold only for self-supervised models, as OpenCLIP shows the opposite effect: larger ViT backbones are generally better at localization than their smaller counterparts. Additionally, an ablation on the CelebA dataset shows that the localization observation does not always hold. In this case, smaller ViTs attend more to the person’s face than to hair color, which is the task-relevant attribute in the dataset. Correcting this requires training an MLP adapter to shift the attention toward the hair instead of the face.

The authors then discuss their work in relation to the shape bias of ViTs and its impact on spurious-correlation tasks. They also discuss how end-to-end attention training can overfit, and argue that scaling alone is not sufficient to address spurious correlations.

Strengths and weaknesses

Strengths

The observation that smaller SSL-pretrained ViTs, such as DINO, are better at localizing based on attention is interesting and appears to be novel. The only related finding seems to be from https://arxiv.org/abs/2312.00878, which finds that GEM-ViT-B/16 consistently outperforms GEM-ViT-L/14 on localization tasks. It may be worth discussing this in the related work section.

The discussion and demonstration of cases where localization fails, such as CelebA and CLIP models, are appreciated and add to the completeness of the paper and the proposed method. Although this does weaken the impact and significance of the core results somewhat, its inclusion results in a stronger paper overall.

The creation of MetaShift Animals is noteworthy, as datasets are always helpful to the community. I believe this should be highlighted as a contribution in the introduction and discussed in more detail in the paper.

Weaknesses

I believe the paper’s results lack sufficient impact to justify main conference acceptance. However, I am open to the authors’ rebuttal and to the opinions of other reviewers on this matter. I find the core finding—that simply using a ViT-S attention map to select where to crop, and then passing the crop through the model again—compelling, particularly given the improvement from such a simple method. In some cases, it can even outperform a ViT-G on the full image. Could this be used as a form of self-supervised training to improve the model’s single-forward-pass performance? If something along these lines had been explored, I believe it would strengthen the case for accepting the paper to the main conference.

I think the paper is missing an investigation into whether the better localization is simply due to the coarser patching used by smaller ViTs. For the DINO ViTs in particular, which are used primarily in the paper, the most significant change in attention mass inside the bounding box and hit rate appears to correspond to the change in patch size from 16×16 pixels for ViT-B to 14×14 pixels for ViT-L. Could this be due to ViT-L having 33% more patches?

The flow of results in Section 4 is somewhat awkward and difficult to follow, although the earlier sections are clear. The main issue is that, when discussing the experiments and results in Section 4, many tables are referenced in dense parts of the text. This can make it unclear where the reader should direct their attention. I would recommend using one table and a brief discussion of its results per paragraph, so the reader can more easily digest the authors’ intended conclusions. Additionally, as far as I can tell, Table 4 is not referenced in the main body text and is only referenced in the caption of Figure 4. I would not recommend this, as Table 4 appears before Figure 4, leaving the reader without context for why those results are being presented.

Minor correction on line 79: change “dotted” to “the CLS token’s query dot product with all possible keys,” or something similar. “Dotted” sounds too casual.

Questions

I would be mainly curious to know the authors thoughts on why smaller ViTs are better at localization, is it due to reduced parameter count forcing abstraction? Or simply due to a more coarse tokenization of the image? Or something else?

Limitations

yes

Final justification

The rebuttal substantially addresses my main concerns, particularly through controlled experiments ruling out patch size as the sole explanation for the inverse-scaling trend, broader validation across five SSL model families, and the layer-wise localization analysis. The additional responses to other reviewers further strengthen the paper through crop-design, hyperparameter-sensitivity, computational-cost, and alternative-selector ablations.

I have updated my score to 4 (borderline accept). Beyond the technical clarifications, the consistent assessment across reviewers that the core empirical finding is surprising and original increases my confidence that it will be valuable to the community and motivate useful follow-up work. Its applicability remains bounded by settings with salient, spatially separable task-relevant objects, but I believe the reasons to accept now outweigh the limitations.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Reviewer hPfC

Notation:

AC-{N} references the AC's N'th point.

W-{N} references the reviewer's N'th weakness.

Q-{N} references the reviewer's N'th question.

Why smaller ViTs are better at localization, is it due to reduced parameter count forcing abstraction? Or simply due to a more coarse tokenization of the image? Or something else? (AC-1, Q-1, W-2)

We run experiments to understand whether differences from localization are attributed to model size, patch size, pretraining objective, or training data.

First on patch size, to clarify, DINOv2 uses patch size 14 at every scale from S to G. The downward trend persists at constant patch size in DINOv3 (all /16: Waterbirds mass in GT bounding boxes 0.767 --> 0.577 from 21M to 6.7B) and iBOT (all /16: 0.696 --> 0.557). To directly test the influence of patch size, we run an experiment comparing DINOv1 ViT-S/8 and ViT-B/8 to DINOv1 ViT-S/16 and ViT-B/16.

Mass is the fraction of attention that lies in the ground truth bounding boxes, and hit is the fraction of images where the argmax of the attention map lies in the ground truth bounding box.

DINO (IN-1k) Waterbirds mass / hit ImageNet mass / hit
ViT-S/16 0.689 / 0.939 0.681 / 0.849
ViT-S/8 0.757 / 0.978 0.720 / 0.868
ViT-B/16 0.649 / 0.934 0.659 / 0.829
ViT-B/8 0.671 / 0.950 0.677 / 0.842

We see that ViT-S/8 > ViT-S/16 and ViT-B/8 > ViT-B/16 consistent with the idea that the /8 models have finer patch tokenization and are better at localization. However, within each patch size, we see inverse scaling of localization with model size.

Next we look at pretraining objective. We compare DeiT-S/16 (supervised) with DINOv1 ViT-S/16 (self-distilled), these models are identical except for the objective (both trained on ImageNet-1K).

Model (both ViT-S/16, both IN-1k) Waterbirds mass / hit ImageNet mass / hit
DeiT-S (supervised) 0.394 / 0.157 0.442 / 0.301
DINO ViT-S (self-distilled) 0.689 / 0.939 0.681 / 0.849

A small ViT alone is not sufficient for good localization, the pretraining objective (self supervision) is important. The supervised ViT-S localizes poorly and DINOv1 ViT-S has a hit rate +78 points.

Within self-supervised families, larger models lose localization in their final blocks. Looking at every layer's attention map, larger ViTs do contain strong localization in intermediate layers, localization peaks before the final block. Small models have these localization abilities peak at their last or near last block.

Per-layer Peak block (mass) Last block (mass) Delta mass
DINOv2-reg ViT-S (12 blocks) last (0.82) 0.82 0
DINOv2-reg ViT-B (12 blocks) last (0.76) 0.76 0
DINOv2-reg ViT-L (24 blocks) last−2 (0.77) 0.65 −12
DINOv2-reg ViT-G (40 blocks) last−7 (0.74) 0.61 −13
iBOT ViT-S (12 blocks) last−2 (0.73) 0.70 −3
iBOT ViT-B (12 blocks) last−2 (0.67) 0.64 −3
iBOT ViT-L (24 blocks) last−8 (0.72) 0.56 −16

In DINOv2, the degradation in localization at late layers coincides with the model devoting a greater fraction of attention to register tokens instead of patch tokens.

We can construct a ViT-G selector that uses the peak localization layer to select patches ("ViT-G peak selector") and recover much of the downstream A^2 performance. Note that in order to find the best layer, we needed to use the ground truth bounding boxes and that a ViT-G selector costs 49x a ViT-S selector (304 vs. 6.2 GFLOPs) so a small model is still preferable.

Choice of Selector using ViT-G embedder Waterbirds Acc / WGA Spawrious O2O Acc / WGA
ViT-G attention, last block 95.8 / 89.9 82.6 / 73.8
ViT-G attention, peak block 97.7 / 94.5 87.1 / 79.2
ViT-S attention, last block A^2 98.2 / 94.4 89.2 / 79.9

Significance (W-1)

While using this finding for self-supervised training or distilling small model attention into large models is out of scope for this paper (per AC), we think it is a promising direction for future work.

We have strengthened the impact of the paper in four ways

(1) We have broadened the inverse scaling finding to 5 pre-training families (DINOv1, DINOv2, DINOv3, MAE, iBOT) up to 6.7B parameters.

(2) In trying to understanding inverse scaling of localization, we ruled out patch size, objective, and training corpus through targeted experiments. To the best of our knowledge, we are also the first to observe that large models experience a premature "peak" in localization at intermediate layers before the final block, while small models peak at or very close to the last block. This observation can be potentially utilized in future self supervised model training to improve attention map quality and mitigate the effects of inverse scaling. For example, using the peak localization layer attention map as a distillation target for the final layer attention. It would be interesting to see if doing this gives large SSL models some of the robustness benefits of A^2 in a single forward pass.

(3) We have added FLOP and latency calculations to quantify the benefits of our approach (see response to rxrD). ViT-S selects crops that lead to slightly higher downstream A^2 performance than ground truth bounding boxes on Waterbirds (these are centered at the centroid of the bird rather than placing the box around the most salient portion). ViT-S forward pass is 2% the cost of ViT-G forward and A^2 using ViT-S to select and ViT-G to embed can outperform ViT-G on the full image (98.2/94.4 vs. 97.8/92.8 on Waterbirds, 89.2/79.9 vs. 87.8/77.7 on Spawrious O2O).

(4) We will promote MetaShift Animals to a contribution and move the dataset card to the main paper. We believe this dataset is important because it is one of the few datasets where the train and test set spurious contexts (backgrounds and co-occurring objects) are entirely disjoint.

If these points have addressed your concerns, we would be grateful if you would reconsider your assessment.

Manuscript Edits (W-3, W-4)

We thank the reviewer for pointing us to [R1]. We will add it to the related works. We will also mention the new dataset as a contribution and move more of its discussion from Appendix B to the main paper. We will also replace the informal use of the word "dotted".

We agree that the manuscript layout can be improved. We have consolidated all results to two tables, one for worst group accuracy and one for accuracy. We have also removed Table 4 from the main paper, instead plotting model size vs. accuracy for all families in a single figure relative to the smallest model in each family (to make inverse scaling easier to see).

[R1] Bousselham et al. Grounding Everything: Emerging Localization Properties in Vision-Language Transformers. 2023.

Authors · CommentOpenReview ↗

Dear Reviewer hPfC, as the discussion period is closing, we wanted to check whether our response addressed your concerns. We provided supporting evidence for each point you raised. Specifically, we added an explanation as to why smaller ViTs localize better (in the process testing the patch size confound you mentioned), restructured Section 4 to improve the flow, and broadened the finding to 5 pretraining families up to 6.7B parameters. If these resolve your concerns, we would be grateful if you would consider updating your score. If any questions remain, we would be happy to clarify further.

Comments on the paper

1 comment
Area Chair 5pzn · CommentOpenReview ↗

Dear Reviewers,

With the discussion period closing tomorrow, please ensure you carefully read through the authors' rebuttal.

Please thoughtfully assess whether your questions have been resolved. If any concerns persist, please take a moment to clearly articulate them to the authors so they understand what is still lacking.

Thank you for your careful attention to this process!

Thanks,

AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…