PolarQuant: Leveraging Polar Transformation for Efficient Key Cache Quantization and Decoding Acceleration
2025-02-01
状态已发表
摘要The KV cache in large language models is a dominant factor in memory usage, limiting their broader applicability. Quantizing the cache to lower bit widths is an effective way to reduce computational costs; however, previous methods struggle with quantizing key vectors due to outliers, resulting in excessive overhead. We propose a novel quantization approach called PolarQuant, which efficiently addresses the outlier challenge. We observe that outliers typically appear in only one of two dimensions, which are rotated together by a specific angle when rotary position embeddings are applied. When represented as two-dimensional vectors, these dimensions exhibit well-structured patterns, with radii and angles smoothly distributed in polar coordinates. This alleviates the challenge of outliers on per-channel quantization, making them well-suited for quantization. Thus, PolarQuant divides key vectors into groups of two-dimensional sub-vectors, encoding them as the corresponding quantized radius and the polar angle, rather than quantizing original key vectors directly. PolarQuant achieves the superior efficiency in KV cache quantization and accelerates the decoding process by turning the query-key inner product into a table lookup, all while maintaining the downstream performance of full-precision models.
语种英语
DOIarXiv:2502.00527
相关网址查看原文
出处Arxiv
收录类别PPRN.PPRN
WOS记录号PPRN:121095670
WOS类目Computer Science, Artificial Intelligence ; Computer Science, Interdisciplinary Applications
文献类型预印本
条目标识符https://kms.shanghaitech.edu.cn/handle/2MSLDSTB/507029
专题信息科学与技术学院_硕士生
通讯作者Yin, Guojun; Yan, Rui
作者单位
1.Renmin Univ China, Beijing, Peoples R China
2.ShanghaiTech Univ, Shanghai, Peoples R China
3.Meituan, Beijing, Peoples R China
推荐引用方式
GB/T 7714
Wu, Songhao,Lv, Ang,Feng, Xiao,et al. PolarQuant: Leveraging Polar Transformation for Efficient Key Cache Quantization and Decoding Acceleration. 2025.
条目包含的文件
条目无相关文件。
个性服务
查看访问统计
谷歌学术
谷歌学术中相似的文章
[Wu, Songhao]的文章
[Lv, Ang]的文章
[Feng, Xiao]的文章
百度学术
百度学术中相似的文章
[Wu, Songhao]的文章
[Lv, Ang]的文章
[Feng, Xiao]的文章
必应学术
必应学术中相似的文章
[Wu, Songhao]的文章
[Lv, Ang]的文章
[Feng, Xiao]的文章
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
暂无评论
 

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。