Reducing Query--Key Pathway Parameters with Basis-Mediated Bilinear Attention
Wei Chen ⋅ Yiying Yang ⋅ Wenhao Jiang
Abstract
Large language models and their vision counterparts have achieved remarkable capabilities, yet their wider deployment is increasingly constrained by the computational and memory demands of Transformer architectures. Much recent work improves Transformer efficiency, but the query-key pathway is still typically parameterized by fully independent per-head projections, which place a substantial parameter burden on attention. Motivated by the view that token selection may admit a shared low-dimensional geometry, we propose *Basis-Mediated Bilinear Attention* (BMB), a training-time reparameterization of the query-key pathway in which all heads within a layer share a latent basis while retaining head-specific interactions. A practical explicit variant, BMB-UV, materializes per-head query and key tensors through a shared basis and lightweight head-specific factors, reducing the query-key parameter count from $2d^2$ to $dr+2Hrs$. We evaluate our method family on ViT-Base image classification on ImageNet-1K and on GPT-2 small pretraining on the C4 RealNewsLike subset, and compare it against recent query-key parameter-sharing and low-rank baselines. At $r=s=32$, BMB-UV uses **95.83%** fewer query--key parameters than standard multi-head attention, while reducing ImageNet-1K top-1 accuracy by only $1.49$ percentage points. Combined with GQA at 1.33B parameters, BMB-UV uses **92.00%** fewer QK parameters per layer than the published 1.55B GQA reference, with a two-shot nine-task mean accuracy decrease of only $0.15$ percentage points. In a separate decoding benchmark with a synthetic one-million-token cache, GQA+BMB-UV uses **25%** less logical KV storage and reduces per-token latency by **23.9%** (**1.31**$\times$ speedup) relative to a dense GQA control.
Successful Page Load