Invertible Query-Key Coupling Composes with Attention Mechanisms
Scaled dot-product attention computes queries and keys as independent projections, so the two never interact before the dot product that produces attention scores. We study coupled query-key dynamics, a pre-scoring transformation that evolves each token's own query and key jointly through a shared invertible coupling before standard scoring; cross-token interaction stays in the dot product as usual. We realize it as a RealNVP-style alternating affine map: the coupling is the identity at initialization, adds few parameters per head, and leaves the softmax and surrounding architecture unchanged, so it composes with existing attention methods instead of replacing them. On WikiText-103, adding coupling to Differential Attention improves on it at both 150M and 455M parameters. At 455M the gain is significant at sequence length 512 (p = 0.003, six seeds), survives a Bonferroni correction across all our tests, and replicates on a held-out test split; it also holds across rotary training lengths of 512, 1024, and 2048, where the 1024 comparison likewise survives the correction. The same additive direction appears with query-key normalization (significant at 150M) and Multi-Token Attention (directional); neither is significant at 455M, where the Differential Attention composition alone holds. Matched controls attribute the gain to the coupling itself rather than added capacity; a non-invertible variant keeps the 455M gain but is far worse than the base method at 150M, so invertibility is what makes the coupling reliable across scales. On its own, coupling lowers perplexity at 60M and 150M (one-sided Welch tests, p < 0.05, three seeds), but the gain narrows with scale and is not significant at 455M. An associative-recall study maps where coupling helps and where it degrades sharp retrieval; coupling is most useful composed with a scoring-stage method rather than as a standalone change.