English

Kwai Summary Attention Technical Report

Computation and Language 2026-04-28 v1 Artificial Intelligence Information Retrieval Machine Learning

Abstract

Long-context ability, has become one of the most important iteration direction of next-generation Large Language Models, particularly in semantic understanding/reasoning, code agentic intelligence and recommendation system. However, the standard softmax attention exhibits quadratic time complexity with respect to sequence length. As the sequence length increases, this incurs substantial overhead in long-context settings, leading the training and inference costs of extremely long sequences deteriorate rapidly. Existing solutions mitigate this issue through two technique routings: i) Reducing the KV cache per layer, such as from the head-level compression GQA, and the embedding dimension-level compression MLA, but the KV cache remains linearly dependent on the sequence length at a 1:1 ratio. ii) Interleaving with KV Cache friendly architecture, such as local attention SWA, linear kernel GDN, but often involve trade-offs among KV Cache and long-context modeling effectiveness. Besides the two technique routings, we argue that there exists an intermediate path not well explored: {Maintaining a linear relationship between the KV cache and sequence length, but performing semantic-level compression through a specific ratio kk}. This O(n/k)O(n/k) path does not pursue a ``minimum KV cache'', but rather trades acceptable memory costs for complete, referential, and interpretable retention of long distant dependency. Motivated by this, we propose Kwai Summary Attention (KSA), a novel attention mechanism that reduces sequence modeling cost by compressing historical contexts into learnable summary tokens.

Keywords

Cite

@article{arxiv.2604.24432,
  title  = {Kwai Summary Attention Technical Report},
  author = {Chenglong Chu and Guorui Zhou and Guowang Zhang and Han Li and Hao Peng and Hongtao Cheng and Jian Liang and Jiangxia Cao and Kun Gai and Lingzhi Zhou and Lu Ren and Qi Zhang and Ruiming Tang and Ruitao Wang and Xinchen Luo and Yi Su and Zhiyuan Liang and Ziqi Wang and Boyang Ding and Chengru Song and Dunju Zang and Hui Wang and Jiao Ou and Jiaxin Deng and Jijun Shi and Jinghao Zhang and Junmin Chen and Lejian Ren and Minxuan Lv and Qianqian Wang and Qigen Hu and Shiyao Wang and Siyang Mao and Tao Wang and Xingmei Wang and Zhixin Ling and Ziming Li and Zixing Zhang},
  journal= {arXiv preprint arXiv:2604.24432},
  year   = {2026}
}

Comments

Work in progress

R2 v1 2026-07-01T12:37:10.060Z