arXiv AI By Lenore Mulin, Gaetan Hains

MoA-Structured Decode Attention DNF Derivation, KV-Cache Accumulation, GQA/MQA, and OpenACC Kernel

Read the original on arXiv AI →

arXiv:2607. 19456v1 Announce Type: cross Abstract: We derive four memory-optimal inference artifacts for transformer attention using the Mathematics of Arrays (MoA), each following directly from the forward-pass Denotational Normal Form (DNF) of with the query-row index fixed to the current decode step.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
Oct 9

The Missing Fourth Term for the Emulation Tensor Memory Equilibrium (TME) Model: The Residue Deconstruction Cost

The paper identifies a missing cost term in the Tensor‑Memory Equilibrium (TME) model for emulating fp64 on GPUs: the per‑input deconstruction cost required before matrix multiplication can proceed. By adding this term and calibrating it against cuBLAS, the authors derive a closed‑form operational‑intensity threshold (OI*) below which emulation cannot match native fp64 performance. On an NVIDIA B300 GPU, this threshold is about 0.56 FLOP/B, limiting the speed‑ups of memory‑bound kernels such as GEMV, SpMV, and low‑batch GEMV to 0.3–0.9× native, and reducing the 7‑point stencil speed‑up from 3.1× to 1.8×, while dense GEMM remains unaffected.

By Harun Bayraktar, John Gunnels, Peter Caday
arXiv Computation and Language
5d ago

Storing the Gemma 4 K=V Cache Once: Exact Global-KV Memory Savings in a Paged Serving Engine with Unchanged Attention Kernels

The paper demonstrates a method to reduce the global key‑value (KV) cache size in Gemma 4’s attention layers by storing a single 640‑value row instead of separate full key and value tensors. Using an unchanged paged attention kernel that views this row as both key and value, the authors achieve bit‑identical outputs to the stock implementation while cutting per‑request KV memory usage by 34–40% for 32K–64K token prompts. In a vLLM prototype, the compact engine improves decode throughput by up to 38% and matches the stock engine’s outputs for most prompts, though it incurs a modest 4–9% slowdown in eager steps. whyItMatters":"By storing a single compact KV row, the method achieves exact memory savings without altering attention kernels, enabling more efficient deployment of large language models on limited GPU resources."

By Kushagra Bainsla
arXiv AI
Oct 15

Virtual Head Attention

Virtual Head Attention (VHA) is a lightweight attention mechanism that improves long‑context large language models by adding two linear operations—Q Premix and Linear Postmix—to recover head diversity and fuse inter‑head features without nonlinearities. VHA reduces KV cache size, training and prefill FLOPs, and maintains or surpasses model quality compared to existing methods such as GQA, MLA, and MFA across multiple scales and benchmarks. The design allows VHA to be folded into standard GQA inference pipelines, enabling efficient deployment with only two KV heads and full exploitation of Tensor Core parallelism.

By Xibo Ding, Guoxia Wang, Jinle Zeng, Jiabin Yang, Sirui Tao, Chao Yang, Dianhai Yu