arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18654cs.LGcs.AIcs.IR
收藏

Kwai Summary Attention V2 技术报告

Kwai Summary Attention V2 Technical Report

Kwai(快手)
OneRec Team, Chenglong Chu, Guohong Mu, Guowang Zhang, Hao Peng, Hui Wang, Jian Liang, Jiangxia Cao, Jiao Ou, Jiaxin Deng, Lu Ren, Muhao Wei, Ruiming Tang, Tian… 展开作者

OneRec Team, Chenglong Chu, Guohong Mu, Guowang Zhang, Hao Peng, Hui Wang, Jian Liang, Jiangxia Cao, Jiao Ou, Jiaxin Deng, Lu Ren, Muhao Wei, Ruiming Tang, Tianle Xu, Wenwu Ou, Xingmei Wang, Zhixin Ling, Zhiyuan Liang, Ziqi Wang, Chaoyi Ma, Haixiao Gao, Kuo Cai, Renpu Liu, Ruochen Yang, Wenlong Xu, Xinqi Jin, Yan Sun, Yifan Wang, Yingzhi He, Yiyu Wang, Yusen Huo, Zhaojie Liu, Zihan Zhou

AI总结:

该研究针对混合 KSA-Full 架构的瓶颈,开发了 KSA V2,实现更灵活的 KV 缓存压缩并降低全注意力层计算成本,发现摘要 token 可充当 KV 内存和稀疏索引器。

摘要:

摘要-token 架构如 Kwai Summary Attention(KSA)会将每个块中的远程上下文压缩为可学习的摘要 token,混合变体则将这些层与全注意力层交错,以保留对原始文本的完全访问权限。在这类混合 KSA-Full 架构中,交错插入的摘要 token 在不同层间充当流角色。尽管有效,但它也引入了一些瓶颈:(1)不同层的摘要压缩块必须相同,因此难以实现灵活的 KV 缓存压缩,例如不同层设置不同的摘要压缩块窗口;(2)在全注意力层中,摘要 token 引入了额外的计算成本,但该层忽略它们,仍需支付二次方的预填充成本,因此对计算端不友好。受这些问题驱动,我们开发了 KSA V2,它不仅实现了更灵活的 KV 缓存内存压缩,还降低了全注意力层的计算成本。具体而言,我们发现摘要 token 可充当两个角色:KV 内存和稀疏索引器。

英文摘要:

Summary-token architectures such as Kwai Summary Attention (KSA) compress distant context into learnable Summary token per chunk, and hybrid variants interleave these layers with full attention to retain exact access to the original text. In such hybrid KSA-Full architecture, the interleaving inserted summary tokens are served as a streaming flow role across different layers. Although effective, however, it also introduce some bottlenecks: (1) the different layers summary compression chunk must be same, therefore hard to reach a flexible KV Cache compression, e.g., different layer set different summary compression chunk window. (2) in the full-attention layers, the summary token introduced additional computation cost, but such layer ignore them and still pay quadratic prefilling, therefore unfriendly to the computation side. Motivated by them, we developed the KSA V2, which not only achieves a more flexible KV cache memory compression but also reduces the computation cost in Full attention layer. Specifically, we found that the summary tokens can serve two roles: the KV memory and sparse indexer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑