acceptodds
Published as a conference paper at NeurIPS 2026

Basis-Mediated Bilinear Attention: A New Method for Greatly Reducing Query–Key Pathway Parameters

Wei Chen, Wenhao Jiang, Yiying Yang

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 , 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 to . 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. Relative to standard multi-head attention, our method family reduces query-key parameters by up to %$ $ while remaining competitive with the baseline on both benchmarks.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Top 24%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.67 over 3 reviews, above 76% of the others.
Reviewer_Y74GOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper points out that existing Transformer architectures contain a large amount of redundant parameters, that the excessive number of queries and keys significantly increases computational overhead, and that they overlook the possible existence of a low-dimensional pathway structure. To address this issue, the authors designed BMB, which maps all tokens into a new shared low-dimensional space and learns a bilinear interaction matrix on this basis, thereby reducing the parameter count. Furthermore, with computational efficiency in mind, they proposed BMBUV, a variant obtained via lowrank factorization that is compatible with efficient attention kernels. Through comparative experiments, the BMB family of methods proposed in the paper significantly reduces the computational parameter count with minimal accuracy loss.

Strengths and weaknesses

Strengths: 1.Through numerous detailed figures, charts, and mathematical formulations, the paper excellently articulates its main innovations and the detailed algorithm flow, making the process clear and easy to follow. 2.BMB-UV achieves significant parameter compression while maintaining full compatibility with mainstream attention kernels. This method balances parameter compression with engineering compatibility. 3. BMB-UV demonstrates faster early-stage convergence compared to standard MHA and competing methods.Here is the English translation. This is particularly attractive for scenarios with limited computational budgets.

Weaknesses: 1.The completeness of experiments on models with different parameter sizes is limited. The experiments in the paper are all conducted on models with approximately 100M parameters and have not been extended to other scales. 2.The theoretical novelty of the paper is limited. The core idea is essentially a combination of low-rank decomposition and parameter sharing, lacking a breakthrough mathematical framework. 3.In the experimental section, only accuracy and parameter count are considered, but other metrics such as inference efficiency are not compared.

Questions

1.The model parameter sizes used in the comparative experiments are too homogeneous. It is recommended to include models of other parameter scales, as well as additional evaluation metrics such as inference efficiency, to validate the generalizability of the method. 2.For long-sequence generation tasks, the KV cache is often the bottleneck. Do the BMB family of methods improve KV cache efficiency? 3.The sensitivity analysis of the hyperparameters r and s is insufficient. It is recommended to supplement the experimental content with empirical data to justify the hyperparameter selection strategy. 4.In the experimental section of the paper, there are no figures or charts demonstrating that after replacing the standard query and key projections with a shared basis approximation, the actual token ranking remains unchanged. However, preserving the ranking is crucial for the feasibility of the shared basis. Although the subsequent experiments achieve high accuracy, this could also result from other dynamic training effects and does not directly prove the effectiveness of the shared basis. It is recommended to supplement with relevant content to address this issue.

Limitations

Yes

Paper formatting concerns

No

Final justification

The authors' responses are very thorough and comprehensive, addressing almost all major concerns. The new experimental data (multi-scale training, inference efficiency, hyperparameter ablation) significantly enhance the completeness and persuasiveness of the paper. My current recommendation is acceptance.Look forward to seeing the final revised manuscript. Congratulations on completing a solid and insightful work.

1 comment

Thank you for the careful and encouraging review. We sincerely appreciate your recognition of the paper's clarity, BMB-UV's parameter efficiency and kernel compatibility, and its faster early convergence. We agree that the submitted evidence was limited in scale, inference measurements, rank sensitivity, and direct ranking analysis. We address each point below.


1. Additional model scale and downstream evaluation

To partially address this concern, we added from-scratch Small and XL GQA+BMB-UV training on FineWeb-Edu under the public TPA protocol [C], each processing approximately 49.15B tokens.

Table 1. Added GQA+BMB-UV training and downstream results

ScaleL / width / Q heads / KV headsr / sParamsVal CE / PPL0-shot2-shot
Small12 / 768 / 22 / 264 / 320.11B2.691 / 14.7544.7946.31
XL48 / 1,600 / 48 / 2128 / 321.33B2.473 / 11.8654.4256.34

The downstream columns average nine tasks, including ARC, HellaSwag, PIQA, WinoGrande, and MMLU. At XL, reported GQA [C] obtains 54.33/56.49 versus our 54.42/56.34, while ours uses 14.54% fewer total parameters and 92.00% fewer QK parameters/layer. This is protocol-matched external comparison, not a same-seed control; we therefore call the result competitive, not superior.

The runs match token budget but not optimizer trajectory. They trained stably and improved validation/downstream results at the tested 1.33B scale; this is not a universal scaling law.


2. Inference efficiency and KV cache

We apologize that the paper did not distinguish two cases clearly. In submitted MHA with s=dks=d_k, BMB-UV does not reduce KV size. MQA/GQA [2,3] reduce the number of KV heads HkvH_{kv}; added GQA+BMB-UV additionally reduces each key's width, s=32<dk=64s=32<d_k=64. These are orthogonal axes: decoding stores

Kcache∈RN×Hkv×T×s,Vcache∈RN×Hkv×T×dv.K_{cache}\in\mathbb{R}^{N\times H_{kv}\times T\times s},\qquad V_{cache}\in\mathbb{R}^{N\times H_{kv}\times T\times d_v}.

Thus cache width changes from Hkv(dk+dv)H_{kv}(d_k+d_v) to Hkv(s+dv)H_{kv}(s+d_v): 128 to 96 elements per KV head/token. This gives 25.00% less logical KV on top of GQA and 1.33×1.33\times equal-memory context.

We measured both methods on one RTX 6000D (BF16, batch 1) with the same 48-layer non-QK topology, inputs, static cache, and FlashAttention-4 [5].

Table 2. Controlled XL inference measurements on one RTX 6000D

MethodQK/layerKV at 1M16K prefill16K decode1M-cache decodePeak at 1M
Dense GQA5.12M22.89 GiB16.30K tok/s34.91 ms/tok1,753.87 ms/tok25.93 GiB
GQA+BMB-UV0.41M17.17 GiB20.46K tok/s35.62 ms/tok1,334.64 ms/tok19.79 GiB

At 16K, ours gives 25.52% higher prefill throughput, with an acceptable 2.03% decode overhead because serial xB→zUxB\rightarrow zU launches are not amortized. At a 1M cache, decode latency falls 23.90% and peak allocation 23.70%, close to the 25% narrower K+V scan. Because BMB-UV still materializes explicit Q/K, these gains preserve the standard FlashAttention contract rather than requiring a latent-cache kernel. This architecture-level control uses identically initialized models; trained quality is in Table 1. The 1M test uses a preallocated synthetic cache and excludes initialization, so it is long-cache decoding, not 1M prefill or production serving.


3. Sensitivity and interpretation of r and s

We agree that the sweep was limited. The paper reports (r,s)=(32,32)/(64,64)(r,s)=(32,32)/(64,64) and Figure 7's layerwise diagnostics, but not all intermediate pairs. New runs use (64,32)/(128,32)(64,32)/(128,32), confirming that r=sr=s is unnecessary and avoiding the misleading impression that equality is an architectural requirement.

The ranks have different roles: rr controls shared-basis capacity; ss controls head-specific rank and explicit Q/K width:

PQK=dr+(Hq+Hkv)rs,rank⁡(UhQ(UjK)⊤)≤s.P_{QK}=dr+(H_q+H_{kv})rs,\qquad \operatorname{rank}(U^Q_h(U^K_j)^\top)\leq s.

With GQA, ss also determines key-cache width. We choose ss from parameter/cache and kernel constraints, estimate rr from shared-QK spectra or a pilot, then validate a local grid. We lack evidence for a universal rule across architectures/data and will state this limitation explicitly.


4. Token ranking: preserving a dense solution versus learning a useful one

Thank you for raising this point; it deserves a careful distinction. The paper currently provides three relevant pieces of evidence. First, Section 3.2, Equations (3)-(7), constructs the optimal rank-rr shared left subspace of the stacked dense Q/K projections and quantifies its residual energy. Second, Propositions 1-2 in Appendix A give sufficient local-margin conditions under which score perturbation cannot change token ordering, while Appendix B connects projection residual to QK-kernel error. Third, Figure 7 shows that the learned basis and head-specific interactions use a non-degenerate rank budget, and the BB ablation shows that the head-specific bilinear component is load-bearing. However, you are correct that these analyses are not a direct same-checkpoint ranking-agreement chart. Our theory states when preservation follows; the submitted experiments do not measure how often that condition holds token by token. We will clarify this limitation.

The phrase "after replacing" may suggest post-training replacement, but Algorithm 1 trains BB, UQU^Q, and UKU^K jointly from initialization. Dense-MHA ranking is therefore not a ground-truth target: heads can permute and representations can co-adapt. The relevant feasibility question is whether optimization can learn useful ranking rules within the shared-basis constraint, not whether it reproduces a separately trained dense model.

We agree that final quality may partly arise from changed dynamics or compensation elsewhere. For post-hoc compression, accuracy alone would not prove dense-ranking reconstruction. For our training-time claim, however, such co-adaptation is intended and encouraging. The non-QK topology is unchanged and no compensating parameters are added; optimization reorganizes existing capacity around a much smaller QK pathway. Thus the removed QK degrees of freedom are not indispensable to tested end-to-end performance, even if rankings differ from dense MHA.

Practically, learning with s=32<dk=64s=32<d_k=64 retains competitive downstream quality while reducing K+V cache by 25% beyond GQA. The model may discover more task-relevant selection rules in a narrower space, increasing useful capability per QK degree of freedom. We view this "intelligence density" interpretation as a hypothesis, not a mechanism proven by accuracy.

To isolate the separate post-hoc approximation question, the appropriate diagnostic is to hold the dense checkpoint and inputs fixed, construct BrB_r from the top-rr left singular vectors of its stacked Q/K projections, and compare original versus projected logits using top-1 agreement, top-kk overlap, Kendall correlation, and the margin-certificate rate from Appendix A. We have not completed this checkpoint-level measurement and therefore do not claim that exact dense-ranking preservation has been empirically established. We sincerely appreciate the suggestion because it helps us state more precisely what our current evidence supports.


5. Novelty and significance

We agree that low rank and sharing are established tools. Our contribution is their specific QK coupling: a learned layer-local common left basis with separate head-specific UQ/UKU^Q/U^K interactions. This differs from post-training low-rank compression [6-8], complete/partial QK tying [10,11], and KV-head sharing [2,3]. The BB ablation shows the head-specific interaction is load-bearing; explicit Q/K preserves RoPE and SDPA/FlashAttention [5], and the added experiment demonstrates GQA compatibility.

More broadly, we believe this work is meaningful because it challenges a basic architectural assumption of modern attention: that every head must carry a fully independent dense QK projector. Our contribution offers a different training-time perspective, combining a learned layer-local shared latent basis with head-specific Q/K factors while retaining explicit attention computation. This opens a broader question about how much QK freedom is truly necessary for useful intelligence, and about whether structured parameterization can increase capability per learned degree of freedom. With further validation of quality and systems design, we believe this direction could potentially extend today's 1M-token memory regime toward 2M tokens or beyond. We sincerely appreciate the constructive questions and hope this perspective motivates wider discussion and future investigation.


References

  • [2] N. Shazeer. Fast Transformer Decoding: One Write-Head Is All You Need. ICML 2019.
  • [3] J. Ainslie et al. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. EMNLP 2023.
  • [5] T. Dao et al. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. NeurIPS 2022.
  • [6] X. Wang et al. SVD-LLM: Truncation-Aware Singular Value Decomposition for Large Language Model Compression. ICLR 2025.
  • [7] P. H. Chen et al. DRONE: Data-Aware Low-Rank Compression for Large NLP Models. NeurIPS 2021.
  • [8] J. T. H. Wong et al. A3: An Analytical Low-Rank Approximation Framework for Attention. ICML 2025.
  • [10] N. Kitaev et al. Reformer: The Efficient Transformer. ICLR 2020.
  • [11] K. Yang et al. Partially Shared Query-Key for Lightweight Language Models. NeurIPS ENLSP Workshop 2024.
  • [C] Y. Zhang et al. Tensor Product Attention Is All You Need. NeurIPS 2025.
Reviewer_SHuxOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
3
Read review
Summary

The paper proposes BMB, a method for reparameterization of the query-key pathway in multi-head attention. Instead of each head having its own WQW^Q and WKW^K, all heads in a layer share a single learned basis Bl∈Rd×rB_l ∈ R^{d×r} , and each head gets a small bilinear interaction matrix Ml,h∈Rr×rM_l,h ∈ R^{r×r}, so the per-head QK kernel becomes S=BMBTS = B M B^T, dropping per-layer QK parameter count drops from 2d² to dr + 2Hrs.

Their motivation comes from empirically observing that stacked QK projections across heads are spectrally concentrated with most of their Frobenius energy sits in a low-rank subspace. They test on ViT-B/16 (ImageNet-1K, 30 epochs) and GPT-2-small (C4 RealNewsLike), comparing against standard MHA, full/partial QK sharing, and a naive low-rank baseline. They also provide some theoretical propositions around ranking stability and softmax rank.

Strengths and weaknesses

Paper Strengths:

S1 Clean factorization and an intuitive design space: The shared-basis + per-head bilinear kernel is a clean intuitive decomposition. The r/s knobs give a smooth parameter-accuracy tradeoff. The dictionary-atom interpretation of s columns is a helpful way to think about what each head retains.

S2 Informative ablations: The BB ablation shows a ~3.8 pp accuracy drop on ImageNet, confirming that the per-head bilinear term is load-bearing and the shared basis alone is insufficient.

Weaknesses:

W1 Limited scaling: No scaling past ~100M parameters on either vision or text make the obtained results much less convincing. The claim that "QK geometry is low-dimensional" may not hold at larger scale, where attention heads tend to specialize more and this is not very difficult to test empirically. Recent work evaluates at 1B+ ([A],[B], [C]).

W2 Narrow evaluation: Only two relatively simple tasks are evaluated: ViT-B/16 on ImageNet-1K (30 epochs) and GPT-2-small on C4 with no downstream benchmarks (zero-shot reasoning, recall, etc.). Recent attention variant papers at comparable scale evaluate much more broadly: e.g. [A] uses 340M and 1.3B models on HellaSwag, PIQA, ARC, WinoGrande;

  • [A] Gated Linear Attention Transformers with Hardware-Efficient Training. Yang et al., ICML 2024.
  • [B] Multi-matrix Factorization Attention. Hu et al., ACL Findings 2025.
  • [C] Tensor Product Attention Is All You Need. Zhang et al., NeurIPS 2025
Questions

See weaknesses

Limitations

Yes, the paper discusses them in detail

Paper formatting concerns

N/A

Final justification

W1 and W2 were partly addressed by the rebuttal

1 comment

Thank you for the thoughtful and constructive review. We appreciate both your recognition of the shared-basis/head-specific decomposition and your direct concerns about scale and downstream breadth. We agree that evidence only at approximately 100M parameters and on two experimental settings leaves an important question open: whether this QK reparameterization remains trainable and useful as model size and training compute increase. Your comments prompted the additional experiments reported below.


1. Clarifying the scope of our hypothesis

We would first like to clarify our wording, because the submission may not have made its intended scope sufficiently clear. We did not intend to assert that "QK geometry is low-dimensional" as a general fact about all trained LLMs. The exact wording in our Introduction is a qualified hypothesis: the QK pathway "may admit a shared low-dimensional geometry." Appendix A, Remark 1 further states that our results "do not prove that every trained transformer must admit such a compression at a fixed small rank," and Appendix C notes that the same rr is not guaranteed to suffice for arbitrarily wide or deep models. We apologize if this distinction was not clear enough in the main text.

We understand your central concern to be the following important question: under this shared QK constraint, can a model continue to optimize and learn useful, transferable representations as model size and compute increase? We agree that the submitted experiments did not settle this question. The computational-scaling perspective discussed in Sutton's The Bitter Lesson [D] is relevant here as motivation: the meaningful test is whether the method continues to benefit from additional computation. We use it only to frame the question, not as evidence for our method.


2. Relation to prior work

We also want to emphasize that we are not the first to question whether fully independent, dense QK projections are always necessary. As discussed in our Introduction, several peer-reviewed works provide related, although distinct, evidence:

  • SVD-LLM [6] (ICLR 2025) and DRONE [7] (NeurIPS 2021) show that trained Transformer projections can admit substantial post-training low-rank compression.
  • A3 [8] (ICML 2025) directly constructs a compact approximation of the fused per-head QK interaction.
  • Michel et al. [9] (NeurIPS 2019) demonstrate substantial redundancy among attention heads.
  • Reformer [10] (ICLR 2020) shows that useful attention behavior can remain possible when query and key vectors are shared in its LSH attention pathway.

These works study different settings and do not prove our hypothesis. We view them as converging motivation for asking whether QK independence can be relaxed during training. Our narrower contribution is a training-time reparameterization that learns a shared layer-local basis while retaining head-specific factors:

WQ,(h)=BUQ,(h),WK,(h)=BUK,(h).W^{Q,(h)}=BU^{Q,(h)},\qquad W^{K,(h)}=BU^{K,(h)}.

Thus, BMB-UV does not force different heads to use identical Q/K projections. The shared BB captures reusable layer-local structure, while UQ,(h)U^{Q,(h)} and UK,(h)U^{K,(h)} retain head-specific interactions. The BB ablation you highlighted supports the importance of this distinction: removing the head-specific bilinear component causes a substantial accuracy drop, so the shared basis alone is not sufficient.


3. Added evidence at larger scale

Within our available compute, we added from-scratch Small and XL GQA+BMB-UV training on FineWeb-Edu. Both runs follow the public TPA data protocol [C] and use approximately the same 49.15B-token budget. The added results are:

Table 1. From-scratch GQA+BMB-UV results at two model scales

ScaleL / width / Q heads / KV headsr / sParamsTokensVal CE / PPL
Small12 / 768 / 22 / 264 / 320.11B49.15B2.691 / 14.75
XL48 / 1,600 / 48 / 2128 / 321.33B49.15B2.473 / 11.86

Small used 4 A800 GPUs, global batch 480, and 100,000 steps; XL used 24 A800 GPUs, global batch 1,440, and 33,334 steps. The runs therefore match the approximate token budget, but not the exact optimizer trajectory. Both completed stably, and validation CE decreased from 2.691 to 2.473 from Small to XL. This is encouraging evidence at the tested 1.33B scale, but we do not interpret two model sizes as establishing a universal scaling law or as testing data scaling.


4. Added downstream evaluation

We evaluated both checkpoints on the public TPA nine-task suite: ARC-Easy, ARC-Challenge, BoolQ, HellaSwag, OpenBookQA, PIQA, WinoGrande, MMLU, and SciQ. Table 2 reports unweighted mean accuracy.

Table 2. Nine-task mean accuracy under the public TPA protocol

ScaleMethodParams0-shot2-shot
SmallGQA [C]0.12B45.0447.16
SmallTPA [C]0.12B46.2147.93
SmallGQA+BMB-UV0.11B44.7946.31
XLGQA [C]1.55B54.3356.49
XLTPA [C]1.55B55.0156.28
XLGQA+BMB-UV1.33B54.4256.34

At XL scale, GQA+BMB-UV differs from the GQA result reported by [C] by +0.09/-0.15 points in 0/2-shot evaluation, while using 14.54% fewer total parameters and 92.00% fewer QK parameters per layer. From Small to XL, its mean scores increase by 9.63/10.03 points. Because the GQA/TPA rows are reported by [C] and ours use its public protocol, this is an external protocol-matched comparison rather than a same-seed controlled experiment. We therefore describe the XL result as competitive, not superior.


5. Significance and closing

Thank you again for raising this concern. It helped us separate more clearly what the paper proposes, what the existing literature motivates, and what our current experiments actually support. The added 1.33B result does not close the scaling question, but it provides initial evidence beyond the approximately 100M scale that GQA+BMB-UV can train stably and retain competitive downstream performance under substantial QK compression.

We believe the broader significance of this work is not a claim that every trained QK matrix has a universally fixed low rank. Rather, it challenges a basic design assumption of current attention: that every head must learn fully independent dense QK projectors. GQA+BMB-UV offers a different training-time parameterization, with a learned layer-local basis and head-specific UQ/UKU^Q/U^K, while preserving explicit Q/K computation and compatibility with existing attention infrastructure. At the tested XL scale, it retains competitive downstream quality while reducing total parameters by 14.54% and per-layer QK parameters by 92.00%.

More broadly, these results motivate further study of capability per learned degree of freedom, or "intelligence density," alongside raw parameter scaling. We hope this perspective encourages discussion of when structured compression can preserve useful computation rather than merely remove capacity. Testing larger models, larger data budgets, and additional modalities remains important future work. We sincerely appreciate your comments and welcome further discussion and validation by the community.


References

  • [6] X. Wang et al. SVD-LLM: Truncation-Aware Singular Value Decomposition for Large Language Model Compression. ICLR 2025.
  • [7] P. H. Chen et al. DRONE: Data-Aware Low-Rank Compression for Large NLP Models. NeurIPS 2021.
  • [8] J. T. H. Wong et al. A3: An Analytical Low-Rank Approximation Framework for Attention. ICML 2025.
  • [9] P. Michel et al. Are Sixteen Heads Really Better Than One? NeurIPS 2019.
  • [10] N. Kitaev et al. Reformer: The Efficient Transformer. ICLR 2020.
  • [C] Y. Zhang et al. Tensor Product Attention Is All You Need. NeurIPS 2025.
  • [D] R. S. Sutton. The Bitter Lesson. 2019.
Reviewer_weSpOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

Summary

This paper proposes Basis-Mediated Bilinear Attention (BMB), a new training-time reparameterization of the attention query-key (QK) pathway. Its practical implementation, BMB-UV, represents QK projections using a shared low-rank basis together with lightweight head-specific factors. The core hypothesis is that query and key projections across different heads share a common low-dimensional geometry and are therefore substantially over-parameterized, an intuition motivated by recent observations such as Thin Keys, Full Values. Experimental results on ViT-B/16 trained on ImageNet-1K and GPT-2 Small trained on C4 demonstrate promising parameter reductions while maintaining competitive accuracy and perplexity.

Strengths and weaknesses

Strengths

  1. Well-motivated hypothesis. The paper presents a clear and intuitive motivation that the QK pathway mainly performs token selection rather than content representation, suggesting that it may require a much lower intrinsic dimensionality than the value pathway. This hypothesis is well connected to recent literature.
  2. Clear formulation. The mathematical formulation of BMB and BMB-UV is precise and easy to follow. The derivation from a shared latent basis to explicit query/key projections is presented cleanly, and the implementation-friendly BMB-UV variant preserves compatibility with existing attention kernels such as FlashAttention.
  3. Strong parameter-efficiency results. Under identical training budgets, the proposed method achieves substantial reductions in QK parameters while remaining competitive with previous parameter-sharing and low-rank baselines on both vision and language benchmarks.

Weaknesses

  1. Limited experimental scale and practical relevance. The evaluation is restricted to relatively small-scale settings (ViT-B/16 and GPT-2 Small). It remains unclear whether the proposed parameterization continues to be effective for modern LLMs and VLMs (e.g., Llama, Qwen, or multimodal models). Moreover, current inference bottlenecks are increasingly dominated by KV-cache memory and bandwidth, whereas BMB primarily reduces training-time QK parameters. Consequently, the practical inference impact on today’s large models appears limited. In particular, it is unclear how BMB represents keys during autoregressive decoding. Does BMB-UV cache the projected latent keys or the reconstructed keys? From the implementation and discussion, it appears that the standard KV cache is still materialized in order to maintain FlashAttention compatibility, suggesting that KV-cache memory remains unchanged. Clarifying this design would strengthen the paper.
  2. Missing evaluation under GQA. The experiments only consider standard multi-head attention (MHA), whereas Grouped Query Attention (GQA) has become the dominant architecture in modern LLMs and VLMs. Since BMB modifies the QK pathway, evaluating its compatibility and effectiveness under GQA would substantially improve the paper’s practical relevance.
  3. Limited ablation on rank selection. Most experiments use fixed configurations (e.g., (r=s=32) or (64)). Since rank is the central design parameter of the proposed method, a more systematic study over different values of (r) and (s), together with accuracy-parameter trade-offs, would provide stronger empirical support and practical guidance.
Questions

Questions for the Authors

  1. For GPT-2 experiments, is the head dimension fixed at 64 with (r=s=64) (or 32 for the compressed variant)? Were intermediate rank choices evaluated?
  2. During autoregressive inference, what representation is actually stored in the KV cache? Is the shared cached key stored in the latent basis or reconstructed into the original head dimension?
  3. Can BMB be naturally combined with GQA? If so, have the authors evaluated such a combination?
  4. Have the authors evaluated larger-scale pretrained models (e.g., Llama or Qwen) to verify whether the shared latent geometry hypothesis continues to hold?
Limitations

yes

Paper formatting concerns

No

Final justification

Addressed my concerns with thorough experiments and discussions, hope the rebuttal will be included in the final version

1 comment

We sincerely thank you for the careful review and recognition of our hypothesis. We agree that scaling, GQA, and KV-cache practicality are important concerns, and apologize that the submission did not explain cache semantics and GQA integration clearly enough.

1. What is cached, and how GQA is combined with BMB-UV

Regarding your question, the submitted method uses explicit Q/K. We apologize if Appendix H, Table 7 suggested otherwise: it distinguishes our QK-parameter-efficiency objective from KV-cache-specific methods. Our primary contribution is QK-projector reparameterization through a learned layer-local shared latent basis.

Following Algorithm 1, BB is a learned layer weight, Z=XBZ=XB is intermediate, and Q/K are materialized explicitly. Under GQA, let HqH_q query heads share HkvH_{kv} KV heads, with γ(h)=⌊(h−1)/(Hq/Hkv)⌋+1\gamma(h)=\lfloor(h-1)/(H_q/H_{kv})\rfloor+1:

Z=XB,Qh=ZUhQ,Kj=ZUjK,Vj=XWjV,Oh=softmax(QhKγ(h)⊤s)Vγ(h).Z=XB,\quad Q_h=ZU_h^Q,\quad K_j=ZU_j^K,\quad V_j=XW_j^V,\quad O_h=\mathrm{softmax}\left(\frac{Q_hK_{\gamma(h)}^\top}{\sqrt{s}}\right)V_{\gamma(h)}.

BMB-UV reparameterizes Q/K projectors, whereas GQA/MQA share K/V heads; they are therefore architecturally composable. The bilinear product UhQ(Uγ(h)K)⊤U_h^Q(U_{\gamma(h)}^K)^\top is learned through direct training-time reparameterization, not post-hoc decomposition. Per-layer QK parameters decrease from d(Hq+Hkv)dkd(H_q+H_{kv})d_k to dr+(Hq+Hkv)rsdr+(H_q+H_{kv})rs.

During decoding, current-token Q is transient; for each KV head jj, the projected, position-encoded K and V are appended:

K(t,j)=RoPE⁡(x(t)BUK,(j);t),V(t,j)=x(t)WV,(j).K(t,j)=\operatorname{RoPE}(x(t)BU^{K,(j)};t),\qquad V(t,j)=x(t)W^{V,(j)}.

K∈RN×HKV×T×s,V∈RN×HKV×T×dV.\mathcal{K}\in\mathbb{R}^{N\times H^{KV}\times T\times s},\qquad \mathcal{V}\in\mathbb{R}^{N\times H^{KV}\times T\times d^{V}}.

The explicit interface preserves composition with GQA/MQA, RoPE, accelerated-attention interfaces, quantization, paging, and sliding windows. Cache width changes from Hkv(dk+dv)H_{kv}(d_k+d_v) to Hkv(s+dv)H_{kv}(s+d_v), saving 1−(s+dv)/(dk+dv)1-(s+d_v)/(d_k+d_v). It is unchanged when s=dks=d_k, but narrows when s<dks<d_k. Our XL setting (Hkv=2H_{kv}=2, dk=dv=64d_k=d_v=64, s=32s=32) reduces K by 50.00% and total K+V by 25.00% beyond GQA.

2. Regarding the "projected latent keys" interpretation

You ask, "Does BMB-UV cache the projected latent keys or the reconstructed keys?" The submitted method caches Algorithm 1's explicit K. If "projected latent keys" means caching zt=xtBz_t=x_tB once per token and moving the key factor to the current query, we did consider this alternative, although we are unsure whether this matches your intended meaning.

Before position-dependent transformations, it is mathematically equivalent. Let Z≤t=[z1;…;zt]Z_{\leq t}=[z_1;\ldots;z_t]:

q^t,h=ztUhQ(Uγ(h)K)⊤,K^≤t=Z≤t,q^t,hK^≤t⊤=qt,hK≤t,γ(h)⊤.\widehat q_{t,h}=z_tU_h^Q(U_{\gamma(h)}^K)^\top,\quad \widehat K_{\leq t}=Z_{\leq t},\quad \widehat q_{t,h}\widehat K_{\leq t}^\top=q_{t,h}K_{\leq t,\gamma(h)}^\top.

Associativity gives exact score equivalence, enabled by BMB-UV's common latent; GQA alone does not factor all key projectors through one shared low-dimensional representation. This mode stores r+Hkvdvr+H_{kv}d_v scalars/token/layer, versus Hkv(s+dv)H_{kv}(s+d_v) for explicit GQA+BMB-UV and Hkv(dk+dv)H_{kv}(d_k+d_v) for GQA. It improves on them when r<Hkvsr<H_{kv}s and r<Hkvdkr<H_{kv}d_k, respectively. Our XL satisfies neither condition, so does not use this mode. With Hkv=8H_{kv}=8 and dk=dv=r=128d_k=d_v=r=128, however, it analytically saves 43.75% total KV over GQA; this is illustrative, not measured serving performance.

Deploying it requires redesigned/validated RoPE, rr-dimensional scoring, and FlashAttention/paged-cache K/V layouts. Because it would not inherit BMB-UV's direct compatibility without substantial engineering, we omitted it as a separate future direction. If this is not your intended interpretation, we would sincerely welcome clarification.

3. Added approximately 1.5B-scale evidence

To address scaling within our compute budget, we pretrained GQA+BMB-UV from scratch at two scales, including 1.33B parameters (1.55B for its dense-GQA counterpart). Tables 1-3 report training, downstream quality, and systems evidence at the tested scale.

Table 1. From-scratch GQA+BMB-UV training (approximately 49.15B tokens)

ScaleParams (B)HardwareGlobal batchStepsTokens (B)Val CEPPL
Small (r=64, s=32)0.114x A800480100,00049.152.6914.75
XL (r=128, s=32)1.3324x A8001,44033,33449.152.4711.86

Table 2. Nine-task mean accuracy under the public TPA protocol

ScaleMethodParams (B)0-shot2-shot
SmallGQA (TPA paper)0.1245.0447.16
SmallTPA (TPA paper)0.1246.2147.93
SmallGQA+BMB-UV0.1144.7946.31
XLGQA (TPA paper)1.5554.3356.49
XLTPA (TPA paper)1.5555.0156.28
XLGQA+BMB-UV1.3354.4256.34

At XL, ours differs from reported GQA by +0.09/-0.15 (0/2-shot), i.e., competitive quality. GQA/TPA values are from TPA; ours follow its public protocol, so this is protocol-matched, not a same-seed control.

Table 3. Controlled full-model XL systems measurements on one RTX 6000D (BF16, batch 1)

MethodQK/layer (M)Logical KV@1M (GiB)16K prefill (K tok/s)16K decode (ms/tok)1M-cache decode (ms/tok)Peak alloc.@1M (GiB)
Dense GQA5.1222.8916.3034.911,753.8725.93
GQA+BMB-UV0.4117.1720.4635.621,334.6419.79

Controls share the 48-layer XL non-QK topology, inputs, BF16 stack, FlashAttention-4, and static-cache protocol; only method-defined QK parameterization/dimensions differ. Logical KV is exact shape-derived capacity; Peak is measured allocation including weights, KV, and temporaries. 16K prefill runs the full projection/cache-write path. The 1M test measures 128 full-model steps over a preallocated synthetic cache, excluding initialization; it is controlled long-cache decoding, not 1M prefill or production serving.

At 16K, ours improves prefill by 25.52% but incurs an acceptable 2.03% decode overhead: batch-1's serial xB→(zUQ,zUK)xB\rightarrow(zU^Q,zU^K) and extra launches are not yet amortized by cache savings. At 1M, narrowing K+V from 128 to 96 reduces logical KV by 25.00%, closely matching the 23.90% latency reduction; peak allocation falls 23.70% (including smaller weights and cache). This favors GQA+BMB-UV in long-context, KV-bandwidth-bound regimes while imposing modest short-context overhead. Table 3 is a systems control; trained quality is in Table 2.

4. Choice of r and s

Yes, GPT-2 uses dk=64d_k=64, primarily with (r,s)=(64,64)(r,s)=(64,64) and (32,32)(32,32). Beyond our reported rank analysis, we admit that we did not exhaustively sweep all intermediate pairs. Our new Small/XL runs use (64,32)(64,32) and (128,32)(128,32), confirming r=sr=s is unnecessary.The considerations we didn't do such a sweep is that we don't think such a sweep could answer a meaningful question of densify a local sensitivity curve, and we do not expect it to yield a robust, transferable rank-selection rule under limited scale, architect, and hyperparameters.

Local sweeps usefully characterize a fixed architecture, but our claim does not require one optimal rank: rr controls shared-basis capacity; ss controls head-specific rank and explicit Q/K width. Their choice depends on architecture, Hq/HkvH_q/H_{kv}, data/compute, positional encoding, kernels, and the parameter-quality-cache objective. A large GPT-2 sweep would densify a local Pareto curve, not establish a transferable rank law.

Practically, we choose ss from the QK/cache budget and supported kernel dimensions, estimate rr from shared-QK spectral concentration or a pilot, then validate a compact local grid. A predictive cross-model rule remains open; our central question is whether a shared layer-local QK basis retains quality under substantial compression.

5. Significance and closing

We sincerely thank you again. GQA+BMB-UV reparameterizes QK projectors with a learned layer-local latent and head-specific UQ/UKU^Q/U^K, while retaining explicit Q/K/V compatibility. In XL, s<dks<d_k reduces total KV by 25.00% and gives 1.33×1.33\times equal-memory context. These gains follow directly from (s+dv)/(dk+dv)=96/128(s+d_v)/(d_k+d_v)=96/128, independent of allocator/benchmark details. More aggressive latent-cache settings may extend 1M-token memory toward 2M or beyond, but quality and kernel efficiency there remain future direction rather than the original paper submitted.

We sincerely thank you again. GQA+BMB-UV reparameterizes QK projectors with a learned layer-local latent and head-specific UQ/UKU^Q/U^K, while retaining explicit Q/K/V compatibility. In XL, s<dks<d_k reduces total KV by 25.00% and gives 1.33×1.33\times equal-memory context. These gains follow directly from (s+dv)/(dk+dv)=96/128(s+d_v)/(d_k+d_v)=96/128, independent of allocator/benchmark details.

More broadly, we believe our work is meaningful because it challenges the apparent over-parameterization of current attention and invites a wider discussion of large sparse parameterizations versus intelligence density through compression. It also has practical potential: with suitable rank/head choices and dedicated systems design, latent caching could move a 1M-token KV-memory envelope toward 2M under the same cache budget, although quality and kernel efficiency at that scale remain future work. We hope this work motivates broader discussion and validation at larger scales, and we sincerely welcome further exchange.

Hope my response could help. Thank you!

Comments on the paper

1 comment
Meta-review

This paper proposes Basis-Mediated Bilinear Attention (BMB), a training-time reparameterization of the query–key (QK) pathway of multi-head attention. The core hypothesis is that per-head query/key projections across heads share a common low-dimensional geometry and are therefore substantially over-parameterized. Instead of each head learning independent WQW^Q and WKW^K, all heads in a layer share a single learned basis and each head retains a small head-specific bilinear interaction matrix, reducing per-layer QK parameters from 2d22d^2 to dr+2Hrsdr + 2Hrs. Experiments on ViT-B/16 (ImageNet-1K, 30 epochs) and GPT-2-small (C4 RealNewsLike) compare BMB against MHA, full/partial QK sharing, and a naive low-rank baseline, reporting up to 95.83% QK-parameter reduction while remaining competitive with the baseline on both benchmarks.

There are some strengths mentioned by the reviewers:

  • Well-motivated, clearly formulated method (weSp, SHux, Y74G): the hypothesis that the QK pathway performs token selection and admits a lower intrinsic dimensionality than the value pathway is intuitive and well connected to recent literature; the shared-basis + per-head bilinear kernel factorization and the BMB-UV derivation are clean and easy to follow, with a helpful dictionary-atom interpretation.
  • Strong parameter-efficiency results with a smooth trade-off (weSp, SHux, Y74G): under identical training budgets, BMB achieves substantial QK-parameter reductions while staying competitive with prior parameter-sharing/low-rank baselines on both vision and language, and the r/s knobs give a controllable accuracy–parameter trade-off.
  • Engineering compatibility and faster early convergence (weSp, Y74G): BMB-UV preserves compatibility with mainstream attention kernels (FlashAttention/SDPA) and shows faster early-stage convergence than MHA, which is attractive for compute-limited settings.
  • Informative ablations (SHux): the BB ablation (removing the per-head bilinear term) causes a ~3.8 pp accuracy drop on ImageNet, confirming that the head-specific bilinear term is load-bearing and the shared basis alone is insufficient.

However, the reviewers are concerned about:

  • Limited experimental scale (weSp, SHux, Y74G): evaluation is confined to ~100M-parameter models (ViT-B/16, GPT-2-small); it is untested whether the low-dimensional QK-geometry hypothesis and gains hold at modern LLM/VLM scale (1B+), where heads may specialize more.
  • Narrow evaluation and limited practical inference relevance (weSp, SHux): only two tasks are used, with no downstream benchmarks (zero-shot reasoning/recall); BMB reduces training-time QK parameters, but modern inference bottlenecks are dominated by KV-cache memory/bandwidth, and it is unclear whether BMB improves KV-cache efficiency or what is stored in the cache during autoregressive decoding.
  • No evaluation under GQA (weSp): experiments use standard MHA, whereas Grouped-Query Attention dominates modern LLMs/VLMs; BMB's compatibility/effectiveness under GQA is unassessed.
  • Limited rank/hyperparameter ablation (weSp, Y74G): most runs fix r=s=32 or 64; since rank is the central design parameter, a systematic study over r/s with accuracy–parameter trade-offs is lacking.
  • Limited theoretical novelty (Y74G): the core idea is essentially a combination of low-rank decomposition and parameter sharing, without a breakthrough framework.
  • Insufficient direct validation of the shared-basis mechanism (Y74G): no results directly demonstrate that token ranking is preserved after the shared-basis approximation; high accuracy could stem from other training dynamics rather than the shared basis itself.
  • Missing efficiency metrics (Y74G): only accuracy/perplexity and parameter counts are compared; inference-efficiency metrics are largely absent.

The rebuttal has resolved most of the concerns from the reviewers, and all reviewers are positive (two accepts and one weak accept) on this submission except some partial resolved concerns from SHux. The AC is aligned with the reviewers and recommends accept. The authors should reflect the rebuttal in the final camera ready. In addition, the proceeding information of the reference, "Fast transformer decoding: One write-head is all you need", is wrong. Please fix it and double check all references in this submission.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.