Explore the research collection
000
1 entry · Follow this search
- Paper
Do Transformers Need Three Projections? Systematic Study of QKV Variants
Evaluates Q=K≠V, Q≠K=V, and Q=K=V (plus 2D-PE + variants for non-causal tasks) against standard QKV. On language modeling, Q≠K=V cuts KV cache 50% at +3.1% val PPL (300M) and +2.48% (1.2B) vs QKV; Q=K≠V has no cache benefit, Q=K=V degrades ~25%. Combining Q≠K=V with GQA-4/MQA reaches 87.5%/96.9% cache reduction. K and V projections are highly similar (cosine 0.73) while Q stays distinct, so K=V preserves directional QK^T. Code https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections.