Daily AI News · Nov 27, 2026
Research

Query normalization shortcut raises loss in a small Transformer study

Published · Source dated

In an arXiv preprint, Yuanqi Zhang, Haocheng Wang, Congping Lin and colleagues analyze what happens when training treats the query normalization denominator as constant during backpropagation. The forward calculation stays the same, while the authors show that the shared query projection changes how gradients update query directions across tokens and what signal reaches earlier layers. In paired runs on a small Transformer language model, the shortcut raised test loss across the hardware, evaluation datasets and learning rates tested. With a learnable scale, the researchers could no longer resolve a difference in loss.

Why it matters

Two implementations that produce identical attention scores on the forward pass can yield different training outcomes. The learnable-scale result shows that the observed loss penalty depended on the training setup.

Sources

More on this day

Comments