|国家预印本平台
首页|FreqKV: Frequency Domain Key-Value Compression for Efficient Context Window Extension

FreqKV: Frequency Domain Key-Value Compression for Efficient Context Window Extension

FreqKV: Frequency Domain Key-Value Compression for Efficient Context Window Extension

来源:Arxiv_logoArxiv
英文摘要

Frequency-domain compression has proven effective in reducing redundancies for spatial signals. In this work, we propose FreqKV, a novel frequency domain key-value (KV) compression technique that enables efficient context window extension for decoder-only large language models (LLMs). Our approach is motivated by a key observation that, in the frequency domain, the energy distribution of the KV cache is predominantly concentrated in low-frequency components. By discarding high-frequency components, we achieve efficient compression of the KV cache with minimal information loss. FreqKV iteratively compresses the increasing KV cache to a fixed size in the frequency domain, allowing models to process lengthy contexts efficiently. Introducing no additional parameters or architectural modifications, FreqKV is applicable to both fine-tuning and inference. With minimal fine-tuning, LLMs can learn to leverage the limited cache that is compressed in the frequency domain and extend the context window. Experiments on a range of long context language modeling and understanding tasks demonstrate the efficiency and effectiveness of the proposed method.

Zhouhan Lin、Jushi Kai、Boyi Zeng、Yixuan Wang、Haoli Bai、Ziwei He、Bo Jiang

计算技术、计算机技术

Zhouhan Lin,Jushi Kai,Boyi Zeng,Yixuan Wang,Haoli Bai,Ziwei He,Bo Jiang.FreqKV: Frequency Domain Key-Value Compression for Efficient Context Window Extension[EB/OL].(2025-05-01)[2025-05-23].https://arxiv.org/abs/2505.00570.点此复制

评论