Context Cascade Compression: Exploring the Upper Limits of Text Compression
Fanfan Liu, Haibo Qiu
TL;DR
This paper tackles the challenge of processing ultra-long contexts in LLMs by proposing Context Cascade Compression (C3), a pure-text, two-LLM cascade that compresses long text into a fixed-length latent context using a small encoder and reconstructs the original text with a larger decoder. At 20× and 40× compression, C3 maintains high reconstruction fidelity (≈98% and ≈93%, respectively), substantially outperforming optical compression approaches like DeepSeek-OCR, which struggle at higher compression ratios. The authors provide a detailed architectural design, training setup, and extensive quantitative and qualitative evaluations on OCR data (Fox benchmark), revealing a sequential information loss pattern analogous to human memory decay rather than uniform degradation. These findings suggest a viable upper bound for text-to-visual compression and a practical path toward ultra-long-context processing, with potential extensions to latent autoencoders for next-generation generative models.
Abstract
Million-level token inputs in long-context tasks pose significant computational and memory challenges for Large Language Models (LLMs). Recently, DeepSeek-OCR conducted research into the feasibility of Contexts Optical Compression and achieved preliminary results. Inspired by this, we introduce Context Cascade Compression C3 to explore the upper limits of text compression. Our method cascades two LLMs of different sizes to handle the compression and decoding tasks. Specifically, a small LLM, acting as the first stage, performs text compression by condensing a long context into a set of latent tokens (e.g., 32 or 64 in length), achieving a high ratio of text tokens to latent tokens. A large LLM, as the second stage, then executes the decoding task on this compressed context. Experiments show that at a 20x compression ratio (where the number of text tokens is 20 times the number of latent tokens), our model achieves 98% decoding accuracy, compared to approximately 60% for DeepSeek-OCR. When we further increase the compression ratio to 40x, the accuracy is maintained at around 93%. This indicates that in the domain of context compression, C3 Compression demonstrates superior performance and feasibility over optical character compression. C3 uses a simpler, pure-text pipeline that ignores factors like layout, color, and information loss from a visual encoder. This also suggests a potential upper bound for compression ratios in future work on optical character compression, OCR, and related fields. Codes and model weights are publicly accessible at https://github.com/liufanfanlff/C3-Context-Cascade-Compression
