Abstract
As Large Language Models (LLMs) scale to accommodate increasingly long context windows, the computational and memory overhead of processing thousands of tokens has become a critical bottleneck. This paper introduces VIST (Vision-centric Token Compression), a novel "slow-fast" framework inspired by human psycholinguistics. VIST renders distant, low-salience text into images and "skims" them using a lightweight vision encoder, while maintaining a high-resolution text path for proximal context. By employing a frequency-based masking strategy to focus on high-information tokens, VIST achieves a 2.3× reduction in token count and a 50% reduction in memory usage while outperforming state-of-the-art text-based compression methods in accuracy.
1. Introduction
The expansion of LLM context windows to hundreds of thousands of tokens has enabled breakthroughs in long-form document understanding and complex reasoning. However, the quadratic complexity of self-attention and the linear growth of Key-Value (KV) caches make long-context inference unsustainable. Existing compression techniques, such as soft prompts or token selection, often require the heavy LLM itself to determine token importance, leading to an efficiency paradox. Furthermore, traditional subword tokenization is often brittle and language-dependent.
To address these challenges, we propose VIST. Inspired by the human tendency to "fixate" on rare, content-rich words while skimming high-frequency function words, VIST treats distant context as visual information. This approach bypasses the vocabulary bottlenecks of traditional tokenizers and provides a more robust, compressed representation of long-form data.
2. The VIST Framework
VIST operates via a dual-pathway architecture designed to balance efficiency with semantic precision:
2.1 The Slow-Fast Circuit
- The Fast Path (Skimming): Distant or secondary context is rendered into images. These images are processed by a frozen, lightweight vision encoder (CLIP ViT-L/14) and a trainable Perceiver Resampler. This process compresses extensive textual data into a small, fixed set of "visual tokens."
- The Slow Path (Cognitive Focus): The proximal text window—the information most immediate to the generation task—is fed directly into the LLM as raw tokens, ensuring fine-grained reasoning capabilities where they matter most.
2.2 Probability-informed Visual Enhancement (PVE)
To ensure that visual tokens capture the most relevant semantic information, we introduce Probability-informed Visual Enhancement. During the training phase, we utilize a Frequency-based Masking (FM) strategy. Based on Shannon Information Theory, rare tokens carry higher information gain than common ones. By masking 50% of the most frequent tokens (e.g., function words like "the" or "and") in the visual input, we force the Perceiver Resampler to prioritize the dense, rare tokens that define the "gist" of the context.
3. Experimental Evaluation
3.1 Setup
VIST was pretrained on a 1B token subset of the RedPajama dataset, spanning domains such as ArXiv, C4, and GitHub. Evaluation was conducted across three primary categories:
- Language Modeling: Perplexity scores on ArXiv, PG19, and Code.
- In-Context Learning (ICL): Performance on 11 text-classification benchmarks (e.g., SST2, AgNews).
- Open-domain QA: Accuracy on TriviaQA, Natural Questions (NQ), and PopQA.
3.2 Results and Efficiency
VIST demonstrates superior performance across both efficiency and accuracy metrics:
- Computational Efficiency: VIST reduces the total token count by 2.3× compared to standard text processing. This results in a 16% reduction in FLOPs and a 50% reduction in memory consumption.
- Task Performance: In open-domain QA, VIST outperformed CEPE (a leading text-encoder compression method) by an average of 7.6%. Notably, on the TriviaQA dataset, VIST achieved an Exact Match (EM) score 9.11 points higher than CEPE under identical constraints.
- Context Stability: Unlike standard models that often suffer from performance degradation as context windows fill, VIST maintained stable accuracy and showed improved performance as more demonstrations were added via the visual "fast path."
4. Discussion and Future Work
VIST represents a shift toward unified, vision-centric processing for long-context LLMs. By treating text as an image, the model becomes resilient to character-level noise (typos) and simplifies the processing of diverse scripts (e.g., Chinese or Japanese) without complex tokenization rules.
While the current study focuses primarily on English, the visual nature of VIST suggests significant potential for multilingual efficiency. Future research will explore the application of visual skimming to highly technical domains and broader generative tasks, as well as optimizing the alignment phase between the vision encoder and the LLM embedding space.
5. Conclusion
VIST successfully demonstrates that "skimming" distant context through a vision-centric lens is not only more efficient than traditional text-based compression but also more effective. By leveraging information density to guide visual attention, VIST provides a scalable path forward for the next generation of long-context large language models.
Summary updated