- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This work introduces a new positional encoding, PaPE, tailored to vision applications in 2D and more dimensions. This encoding is based on an additive bias to the attention scores, which is computed as a quadratic function of inter-token distance with input-dependent, learned coefficients. The encoding enjoys a number of favorable properties, such as translation invariance, directionality, and context awareness. Experiments show the efficacy of the approach, as the proposed positional encoding outperforms previous approaches such as RoPE on a number of datasets and settings. The new encoding also shows strong extrapolation to out-of-training resolution on ImageNet.
Strengths and weaknesses
I enjoyed reading this paper; starting from an analysis of prior positional encodings for vision, it derives 5 desiderata that a vision-centric positional encoding could/should fulfill (but that no prior method does), and then discusses how PaPE fulfills these desiderata. Thus, this method fills a hole in the positional encoding landscape. The method is quite intuitive: I especially like that the decomposition of the attention scores into distance, direction, and semantics. Importantly, the authors prominently describe an equivalent formulation of PaPE that is compatible with efficient attention algorithms -- a prerequisite for this method being actually used in practice. As an additional contribution, the authors also discuss a rotation invariant version of PaPE, which could be nice to have for certain applications.
The experiments are broad, covering image, video, 3D point clouds, event cameras, RGB+lidar data, and compared to 5 other positional encoding, including the standard sincos and RoPE encodings. Experiments are run at small scale (ViT-B), which does leave open the question of whether the advantages of this encoding are preserved at scale. PoPE generally outperforms all considered alternative positional encoding. The highlight result is the extrapolation to unseen resolutions (Table 1), where PaPE degrades far less than the other encodings with increasing resolution, and for some resolutions (320-512) actually manages to benefit from the additional information provided by higher image resolutions.
My main concern with the paper is the efficiency overhead of the method and the comparability to baselines. PaPE in the default settings actually adds a lot of parameters (11.1M for ViT-B with 86.3M params), and increases the compute and VRAM significantly (up to 20%). This raises the question on much of the experimental advantage of PaPE stems from the added parameters. While the authors perform a parameter-matched comparison in 5.4, it is only on UCF101 and DvsGesture, and it is questionable how much baselines actually benefit from the added parameters (some scores do not show improvements. Possibly a retuning of hyperparameters is necessary). In addition, the parameter-matched setting should at least be run on ImageNet. Optimally, ALL baseline results in the paper would be in the parameter-matched setting. Another way of showing the superiority of PaPE would be to reduce the parameters of PaPE to match the baselines.
Moreover, the compute and memory overhead of the method should be discussed in the main text (and not only in the appendix), as it's a significant difference to the baselines.
Another concern is the parameter m of the method, which directly affects the number of parameters and compute of the method. Presentation-wise, m is never motivated, and only briefly mentioned in 5.1. The role of m should be discussed in the method section 4. There also should be an ablation on m, showing how performance varies with this parameter.
Regarding ablations: while understandably ablations are performed on the smaller ViT-S scale, it is important to have some of the baselines (sincos, RoPE) on this scale as well, to be able to judge whether PaPE falls below baseline performance without certain components. Moreover, as the extrapolation capabilities are a strength of the method, the ablations should also present the equivalent of Table 1 for each ablation. Similarly, I would like to see the resolution extrapolation in the OOD setting.
Regarding the OOD study: it's great that the authors included this. It would be great to add the ObjectNet dataset as a harder OOD test set.
Overall, I am positive about this paper's contribution, but I do have some remaining concerns regarding the experimental validation and presentation of the weaknesses (the added overhead).
Questions
- Can you present the parameter-matched setting at least for ImageNet? Can you run a small hyperparameter study for one baseline (e.g. RoPE) to make sure that the baselines can actually benefit from the added parameters?
- How does PaPE perform when matching the number of parameters of the baseline (reducing the non-PaPE parameters)?
- Can you clarify the intuition behind the parameter
m? How does PaPE perform under different values ofm? - Can you run the resolution extrapolation study for the different ablations and the OOD datasets?
Limitations
- Compute and memory overhead should be discussed in the main text and stated as a drawback of the method.
- Missing validation at scale could be mentioned as a limitation
Paper formatting concerns
n/a
Final justification
The authors addressed all my concerns in the rebuttal. Significant new results are more details on the extrapolation capabilities (OOD, ablations), ablating the impact of the m parameter, and demonstrating the advantage of PaPE in more fair settings of comparison (parameter-reduced PaPE, parameter-increased RoPE with hyperparameter scan)
Thus I recommend to accept this paper.
We thank the reviewer for their time and effort in reviewing our work. We are grateful for the praise and genuinely happy to hear that you enjoyed reading the paper. We address each point below, and will incorporate all of these results and clarifications into the camera-ready.
Q1 and Q2: parameter-matched comparisons
Thank you for your comments on how to strengthen the parameter-matching experiments.
How does PaPE perform when matching the number of parameters of the baseline (reducing the non-PaPE parameters)?
We reduce the non-PaPE parameters to match the parameter counts of the baselines by decreasing the hidden size, d, from 768 to 680, and test this on UCF101 and DvsGesture. Apart from decreasing the hidden size, d, all other hyperparameters (learning rate, m, h, etc.) are shared between full and reduced PaPE. We are also training reduced parameter versions of PaPE on GEN1, ImageNet-1K, and COCO, which we will report as soon as training is finished.
Reduced PaPE matches or slightly exceeds full PaPE on both datasets. We interpret this as evidence against the concern that PaPE's advantage comes from its extra parameters. If that were the case, we would expect the reduced parameter version to underperform the baselines.
Can you run a small hyperparameter study for one baseline (e.g. RoPE) to make sure that the baselines can actually benefit from the added parameters?
To check whether baselines simply need better tuning to use their added parameters effectively, we swept learning rate for parameter-matched RoPE on DvsGesture:
The best parameter-matched RoPE results across this sweep (93.1) does not exceed the value already reported in the main text at the default learning rate, and remains below both full and reduced parameter PaPE. Together, this supports our claim that PaPE's gains stem from the positional encoding itself rather than parameter count.
Can you present the parameter-matched setting at least for ImageNet?
ImageNet-1K is large and the models are currently training. We expect the models to be finished training around July 31st (AoE, anywhere on earth) and we will post the results as soon as they are available. Thank you for your patience.
Q3: ablation of m
Can you clarify the intuition behind the parameter
m?Thank you for asking. We appreciate that m deserves a stronger motivation in the paper and we will include this in the camera-ready.
In short. m is not intended to add model capacity (for m>min(d,p)), but to make optimization easier. Once m>min(d,p), PaPE has already spanned the representational space it needs and larger m mainly gives the optimizer more directions to discover useful patterns, rather than attaining greater capacity.
In more detail. We can view Wp as expressing the p positional dimensions through m learned basis functions. As such, m can ease training by providing more opportunities for exploring different directions than the ones defined by the unprojected p dimensions. We expand on this view below.
We can consider m as a bottleneck below and above a threshold of min(d,m).
Below the threshold (m<min(d,m)): increasing m should improve both representational capacity and the optimization landscape, since m is limiting what the model can express.
Above the threshold (m≥min(d,m)):
How does PaPE perform under different values of
m?We will answer it by following the ablation study setup for m∈{2,4,8,16,32,64}. ImageNet-1K is large and we expect full results by July 31st (AoE, anywhere on earth) and will post them as soon as they are available. Based on the intuition above, we expect a plateauing effect with performance increasing with larger m.
Q4: extrapolation and OOD
Can you run the resolution extrapolation study for the different ablations and the OOD datasets?
This is a very good question and we agree that including such ablation/OOD results will further strengthen our paper.
We have included ObjectNet and find across all 3 OOD datasets that PaPE consistently extrapolates better than every baseline, with absolute gains over the next-best method of up to 9.9% (ImageNetV2), 8.2% (ImageNet-Renditions), and 7.8% (ObjectNet) at the highest tested resolutions (1024x1024):
ImageNetV2:
ImageNet-Renditions:
ObjectNet:
These results are consistent with our in-distribution findings (Table 1). PaPE's extrapolation advantage holds up under distribution shift.
For the ablation-specific extrapolation study, due to storage constraints on our compute cluster, the original ablation checkpoints were not retained. We are currently re-training the ablations. We expect full results by July 31st (AoE, anywhere on earth) and will post them as soon as they are available.