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

Wenhao Li, Bangcheng Sun, Weihao Ye, Tianyi Zhang, Daohai Yu +2 more
9/11/2025
cs.CL

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025ccf,
  title  = {CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling},
  author = {Wenhao Li and Bangcheng Sun and Weihao Ye and Tianyi Zhang and Daohai Yu and Fei Chao and Rongrong Ji},
  year   = {2025},
  eprint = {2509.09199},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.09199v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.09199.svg)](https://codeofpaper.com/paper/2509.09199)

Discussion