arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2509.09199cs.CL
收藏

CCF:一种用于高效长序列语言建模的上下文压缩框架

CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling

Wenhao Li, Bangcheng Sun, Weihao Ye, Tianyi Zhang, Daohai Yu, Fei Chao, Rongrong Ji

AI总结:

CCF通过层次化潜在表示和高效优化策略,实现高效长上下文语言建模,提升吞吐量和内存效率。

摘要:

将语言模型扩展到更长的上下文对于捕捉扩展论述中的丰富依赖关系至关重要。然而,直接扩展上下文会带来显著的计算和内存负担,通常在训练和推理过程中导致效率低下。在本文中,我们提出CCF,一种新颖的上下文压缩框架,旨在通过学习层次化的潜在表示来实现高效的长上下文建模,这些表示在保留全局语义的同时大幅减少输入冗余。CCF结合了分段语义聚合与键值记忆编码,形成紧凑的表示,以支持准确的重建和长距离理解。为进一步提高可扩展性,我们引入了一种训练高效的优化策略,将增量分段解码与稀疏共振采样相结合,显著减少了内存开销而不影响性能。在多个长上下文语言建模基准上的实验证明,CCF在高压缩比下实现了具有竞争力的困惑度,并在吞吐量和内存效率方面显著优于现有方法。这些发现突显了结构化压缩在可扩展和有效长上下文语言建模中的潜力。

英文摘要:

Scaling language models to longer contexts is essential for capturing rich dependencies across extended discourse. However, naïve context extension imposes significant computational and memory burdens, often resulting in inefficiencies during both training and inference. In this work, we propose CCF, a novel context compression framework designed to enable efficient long-context modeling by learning hierarchical latent representations that preserve global semantics while aggressively reducing input redundancy. CCF integrates segment-wise semantic aggregation with key-value memory encoding, forming compact representations that support accurate reconstruction and long-range understanding. To further enhance scalability, we introduce a training-efficient optimization strategy that couples incremental segment decoding with sparse reservoir sampling, substantially reducing memory overhead without degrading performance. Empirical results on multiple long-context language modeling benchmarks demonstrate that CCF achieves competitive perplexity under high compression ratios, and significantly improves throughput and memory efficiency compared to existing approaches. These findings highlight the potential of structured compression for scalable and effective long-context language modeling.

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

↑