We derive an exact gradient-step representation of the RoPE-softmax forward pass. For every deterministic RoPE-softmax attention head with arbitrary affine projection weights, we construct a query-dependent effective matrix ΔMi satisfying yi=μi+ui⊤ΔMi, where μi is the uniform mean of the attended values and ui is the augmented query input. The construction applies the classical exponential divided difference ρ=φ1 to retain the softmax exactly. Its positive coefficients give a unit gradient-step representation on a query-conditioned quadratic objective. The same function connects the RoPE generator to exact positional finite differences. We derive a tokenwise formula for the error of reusing one query's matrix and prove that a nonconstant finite-cache head cannot admit a globally exact affine query readout. Reconstruction checks and frozen-reuse calibration on one pretrained Qwen2.5-0.5B layer verify the representation and quantify the correction required when one query's matrix is reused.
Figures & tables
Predictor
Anchor 0
All anchors
Constant anchor output
0.047787
0.045672
Cache mean ( ΔM=0 )
0.124573
0.124513
Frozen anchor matrix
0.324970
0.356763
Linearised softmax
0.161842
0.162068
Table 1: Frozen-reuse calibration: pooled MSE of the combined projected prefix write. Anchor 0 is the observed next token. All anchors averages the 32 possible anchors within each of the 16 contexts. Matrices use the original-score gauge.