arXiv Machine Learning By Shing Wai Pun, Kai Wu, Pengfei Xia, Hui Zang, Wei Guo, Yong Liu

Optimize the Cob, Then the Kernel: Optimizing Beam Search for Generative Recommendation Inference

Read the original on arXiv Machine Learning →

The paper presents a holistic optimization of beam search for generative recommendation inference, addressing inefficiencies in existing LLM serving engines like vLLM. By concatenating beams along the sequence dimension with Tree Attention and applying techniques such as pre-generated partial-attention masks, static KV cache allocation, loop-unrolled dispatch, TorchAir graph compilation, operator fusion, and vocabulary-constrained decoding, the authors reduce redundant KV cache accesses and host-side overhead. Their approach achieves up to 25× lower end-to-end latency on Ascend NPUs without custom kernels, matching state‑of‑the‑art performance that typically relies on kernel development.

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 Machine Learning.

arXiv AI
Sep 4

GrowPage: On-Demand KV Budgeting for Efficient LLM Reasoning Serving

GrowPage is an on‑demand key–value (KV) budgeting framework designed to improve large language model (LLM) reasoning serving. It treats KV capacity as a runtime resource, using lightweight dual‑timescale query summaries to track recent and long‑term attention patterns and estimate demand evolution. At each capacity boundary, GrowPage either compresses KV states within the current allocation or acquires an additional physical page, integrating with PagedAttention’s page‑level memory abstraction to maintain continuous batching and prefix caching.

By Qiankun Ma, Yanjiang Zhou, Zinan Xiong, Haofei Wang, Zhen Song, Yang Xiang, Ziyao Zhang, Hairong Zheng
arXiv Machine Learning
Oct 8

SPIN: Shadow Predictive Indexer for Sparse Attention

SPIN (Shadow Predictive Indexer) is a new method for sparse attention that reduces the overhead of scoring the entire key-value (KV) cache during decoding. By using lightweight, history-based predictions to identify important KV blocks, SPIN avoids full cache scoring at each step and treats KV blocks and speculative decoding as core design elements. Experiments on long-context and agentic benchmarks show 30‑40% sparsity with maintained task quality, and in vLLM serving it boosts throughput by up to 14.9% while cutting median inter‑token latency by up to 13.2%.

By Yao Fu, Cyrus Chang, Ritchie Zhao, Bryce Long, Yueying Li, Mahdi Kamani, Samkit Jain, Rahul Raman, Tara Safavi, Shreya Gupta, Parsa Ashrafi Fashi, Minseok Lee, Julien Demouth, Bita Darvish Rouhani