- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
None
Final justification
The additional experiments directly address my main concerns and make the empirical evaluation more convincing. I therefore support accepting the paper.
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.
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.
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.
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.
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).
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!