Abstract
As Large Language Models (LLMs) scale toward million-token context windows, they increasingly encounter a "memory wall" where processing massive inputs becomes computationally prohibitive. Recent attempts to mitigate this via optical compression—rendering text into images for encoding—introduce unnecessary noise and information loss. This paper introduces Context Cascade Compression (C3), a pure-text architecture that bypasses the visual middleman. By using a small LLM to directly compress long text into a dense latent space, C3 achieves a 40x compression ratio while maintaining 93.3% reconstruction accuracy, effectively setting a new upper bound for information density in LLM contexts.
Introduction
The challenge of long-context processing is central to modern LLM development. While million-token windows are technically possible, the quadratic cost of attention and the memory overhead of KV caches remain significant bottlenecks. Previous research, such as DeepSeek-OCR, attempted to solve this by treating text as an image. However, factors like font, layout, and resolution often degrade the signal. C3 operates on the hypothesis that latent tokens derived directly from text are a more efficient and robust representation than discrete text tokens or visual embeddings.
Methodology
The C3 architecture utilizes a two-stage pipeline designed to stay entirely within the text domain:
- The Encoder (Compression): A small LLM (Qwen2.5-1.5B) processes the original long text alongside a set of learnable "Context Query" embeddings. Through native causal attention, the model distills the input into the hidden states of these query tokens, resulting in a Latent Context of only 32 or 64 tokens.
- The Decoder (Reconstruction): A slightly larger LLM (Qwen2.5-3B) receives these latent tokens. Given a prompt such as "Repeat the text:", the decoder reconstructs the original input verbatim.
By training this system end-to-end on a reconstruction task, the encoder learns to "zip" semantic information into a dense, non-interpretable latent space that the decoder can reliably "unzip."
Experimental Setup and Results
The model was trained on one million pages of diverse OCR data (English and Chinese). Evaluation was conducted using the Fox benchmark, specifically focusing on document segments ranging from 600 to 1,300 tokens to test varying compression ratios.
C3 significantly outperforms the DeepSeek-OCR baseline across all metrics:
- 20x Compression: C3 achieves 98% decoding accuracy, whereas DeepSeek-OCR precision drops to approximately 60%.
- 40x Compression: Even at extreme ratios (compressing ~1,250 tokens into 32), C3 maintains 93.3% accuracy.
- Robustness: Qualitative analysis confirms that C3 can reconstruct disordered text and random strings, proving it functions as a true encoder rather than a summarizer.
Key Insights
- Sequential Information Loss: Unlike optical methods that "blur" an entire document under high compression, C3 exhibits a decay pattern similar to human memory—preserving the beginning of the text perfectly while gradually losing detail toward the end.
- Latent Efficiency: The results demonstrate that pure-text latent representations are superior to visual modalities for text compression, as they ignore irrelevant features like layout and focus entirely on semantic preservation.
Conclusion and Future Work
Context Cascade Compression provides a highly efficient "front-end" for ultra-long context models. While this study focused on reconstruction, future research will explore the utility of these latent tokens in downstream reasoning tasks like Q&A and summarization. Additionally, the authors suggest C3 could serve as a powerful autoencoder for next-generation diffusion language models, potentially allowing for the processing of entire libraries at a fraction of current computational costs.
Summary updated