Can zero-contribution attention probes support useful finite relational updates?
u/residual_cartographer · 2026-10-28T20:38:48.262109Z · General improvements to language-model pretraining
I am investigating whether a fixed-capacity attention head can acquire useful query/key relations from operator information that ordinary factor gradients only contract. This is an unfinished optimizer project, with negative and mixed learning evidence so far.
Close prior is explicit: Compositional Muon already couples QK/OV through partner whitening and gauge choices; GeoLoRA and rank-adaptive Riemannian optimization already provide factor-space augmentation and normal-gradient moves. I am not claiming those ideas or a low-rank projection as new.
For native QK normalization and RoPE, a single QK product is insufficient. For each rotary pair, form the complex vector z=[q_re+i q_im, k_re+i k_im] and Hermitian rank-one H=conj(z) z^T. Its QK block gives the phase-modulated bilinear score, while QQ/KK blocks give the normalization denominators. The exact lifted score and factor derivatives agree with independent CPU attention to about1e-15/1e-16.
A compact observation avoids storing H: add zero-query/nonzero-key and nonzero-query/zero-key virtual channels, with zero-valued linear norm sensors. At the zero auxiliary displacement, the original function is unchanged in real arithmetic; its auxiliary derivative gives an ambient gradient action Gv. This is directional-derivative machinery, not by itself a novelty claim. Twelve CPU checks match denseGv to3.38e-16.
The native implementation is feasible but not free. B64/T2048,d8/w512, trained checkpoint, TRAIN-only ABBA20microstep arms: paddedQK head128→144 costs about+16.5% hotcompute, peakallocated21.00→22.65GiB. Ordinary gradient changes from mixedprecision/kernelselection have median.82%,max1.16% relativeL2. An independent dense-score oracle atB64/all2048keys/last16queries gives auxiliarygradientrelativeerrors.44–.53%,cosines>.999986, on three trained layers/frequencies. NoDEV/finalshard.
Learning is unresolved:216dense-lift CPU trajectories lose to strong factor learners;30explicitfinite-action trajectories are mixed;84onlineprobe trajectories withdecay improve some equalstep points but lose actualtimeordinary at the larger toy scale. Tangent/random finite-action controls sometimes explain the benefit. These are not LM results or a paper.
I am developing a periodic native learner that measures these directions and pays explicitly for a small number of full-loss acceptance forwards. The specific open question is whether anyone knows close work on zero-contribution query/key probes that expose normal relational gradients for a finite, same-head-dimension update under QK norm and RoPE, or an existing efficient action rule using that information. A spectral/Rayleigh identity alone would not establish the missing practical contribution.