potentialpaper

Attention Regulates Resolution, Not Sharpness: A Diffraction Limit for the Softmax Scale

Anonymous authors

ICLR 2027

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. Query–key geometry absorbs the softmax scale to hold a constant logit margin under autoregression. One fixed scale, predicted by theory, beats the canonical $1/\sqrt{D}$ baseline on text and RNA.

Abstract. While the canonical softmax scale 1/D1/\sqrt{D} preserves variance at initialization, it fails to capture the operating regime of trained attention. With normalized queries and keys, logits factor exactly into a cosine similarity and an explicit scale ss, where the canonical choice corresponds to setting s=Ds=\sqrt{D}. Because the learned geometry can spread its cosines to offset an imposed scale, the scale and the geometry are redundant; we sweep ss on a logarithmic grid to examine how autoregressive training resolves this redundancy. Training absorbs much of the imposed scale into the learned geometry, yielding a rank correlation of −0.97-0.97 across a 32-fold sweep, and conserves a logit margin rather than a scale. Indeed, eight public models with learned scales ranging from 11 to 73 maintain nearly the same margin. At the optimum, this margin sits at or just past the diffraction limit, defined as the threshold ln⁡N\ln N at which a single key claims half the attention weight against NN equal competitors, a property we formalize and verify in Lean~4. Thus, while the scale dictates sharpness, the margin normalized by the diffraction limit dictates resolution, and next-token prediction regulates resolution rather than sharpness. Empirically, the loss-optimal scale sits at s=16s=16 from 25M to 393M block parameters, across context lengths from 512 to 2048 tokens and vocabularies from 6 to 32,768 tokens, on text and RNA, with one slight exception. At this fixed scale, 64-dimensional heads nearly match 128-dimensional heads, and learned global, per-layer, or per-head scales fail to outperform the constant value. Degradation under the canonical s=Ds=\sqrt{D} grows quadratically with its log-distance from this optimum, a distance set by the head dimension alone, and steepens as the context lengthens. These findings show that comparisons across head sizes under the canonical scale conflate a systematic scale artifact with architectural capacity, and that freezing s=16s=16 decouples attention resolution from head size.

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
18 Sep 2026ICLR 2027 (under review)submittedICLR 2027Under reviewforumreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Under review · 3 reviews · OpenReview

Updated 24 Nov 2026, 17:16 UTC.

Reviewer mZQ5OpenReview ↗
Rating
3/4
Confidence
2/4
Soundness
2/3
Presentation
3/3
Informativeness
3/3
Read review
Summary

The paper studies attention-logit scaling in gain-free QK-normalized transformers and its confounding effects on comparisons across head dimensions and model shapes. Controlled sweeps across model sizes, context lengths, and text/RNA settings identify a near-optimal scale around 16 in most tested settings, with fixed scaling reducing performance gaps attributed to architecture. The paper also examines training-induced angular-margin compensation and introduces a margin normalized by ln(T-1), motivated by an equal-competitor softmax threshold.

Strengths
  1. Controlled evidence for scale effects: Matched architectures, training budgets, and three paired seeds support the principal findings, including an approximately 0.0094 improvement at head dimension 64.
  2. Quantifying an approximately 2.2x amplification of the wide–deep performance gap by default scaling demonstrates why architecture comparisons should control attention scale.
  3. Comparisons between retraining, inference-only temperature adjustment, and global, layerwise, and headwise learnable scales help distinguish representation adaptation from simple temperature calibration.
Weaknesses
  1. The general half-mass threshold requires a competing-logit dispersion correction, while top-key mass near 0.29 and 96–98% margin retention after key shuffling weaken the proposed task-relevant interpretation. The normalized margin should remain an empirical diagnostic unless corrected-threshold and null-control analyses establish its connection to prediction loss.
  2. Nonuniform channelwise gains change directions and introduce input-dependent norms, so public-checkpoint effective scales are not automatically comparable with the gain-free global scale.
Questions for the authors

See weaknesses.

Reviewer 9VMbOpenReview ↗
Rating
1/4
Confidence
3/4
Soundness
1/3
Presentation
1/3
Informativeness
1/3
Read review
Summary

The paper studies the attention-logit scale in autoregressive transformers with qk-norm. The authors argue that a scale independent of the head dimension DD can outperform the conventional choice s=Ds=\sqrt{D}. They pretrain small transformers from scratch with different fixed scales and find that s=16s=16 achieves the lowest or nearly lowest prediction loss across their tested configurations. To interpret this finding, they introduce a simplified model based on the threshold required for one informative key to receive half the attention weight when other competing keys have equal smaller logits. They observe that training partially compensates for changes in the scale. They also test their theory on pretrained OLMo-2 and Qwen3.

Strengths

None

Weaknesses

While I appreciate the authors' effort to motivate a constant attention-logit scale, the presentation is difficult to follow and requires substantial revision. The idea of developing a theory by assuming a constant logit gap has been repeatedly rediscovered in different settings under different names, which is unsurprising. The training experiments are limited to relatively small models, leaving the applicability of the findings at larger scales uncertain. The open-source models evaluated in the paper are also not up to date, and it does not resolve this concern on training.

Questions for the authors

I don't have any question.

Reviewer YhafOpenReview ↗
Rating
3/4
Confidence
3/4
Soundness
2/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

This paper proposed to use a fixed scalar ss to replace the conventional D\sqrt{D} rule attention with qk-normalization. The authors sweep a wide range of ss and report that the loss optimum is generally s=16s=16, rather than D\sqrt D.

Strengths
  1. The main empirical question is precise and important. Once QK normalization removes norm variation, setting the effective temperature to D\sqrt D is not obviously justified.

  2. The finding that same approximate optimum appearing across size, shape, context, tokenization, and two modalities is interesting.

Weaknesses

The proposed theoretic interpretation does not lead to s=16s=16. The paper establishes three observations: i) the trained geometry changes when ss changes; ii) the optimal models have a certain cosine gap; iii) their normalized margin lies near a softmax threshold. However, it does not derive why optimization selects that cosine gap or why the loss optimum should occur at the half-mass threshold. The paper explicitly leaves “why training pins the gap” as an open conjecture.

Questions for the authors

Does s=16s=16 remain optimal at longer context, such as 8K, 32K or even longer?

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

Missing a submission?

Loading the discussion…

This paper is under review