Abstract
Visual Large Language Models (VLLMs) face significant computational challenges due to the high volume of visual tokens generated from input images, which often dwarf the accompanying text prompts. While existing token reduction methods alleviate this "visual token tax," they frequently suffer from information loss, particularly in fine-grained tasks like OCR and object grounding. This paper presents Window Token Concatenation (WiCo), a method that reduces visual token counts by 75% using a 2D sliding window approach. By incorporating Token Decomposition (WiCo+) in the final layers of the LLM, the model recovers spatial resolution for high-level reasoning, maintaining or even exceeding the performance of full-token baselines while significantly improving training and inference efficiency.
Introduction
In current VLLM architectures like LLaVA, a standard 336×336 image is typically decomposed into 576 visual tokens. Compared to a typical text prompt of 40 tokens, the visual component dominates the transformer's sequence length. Because the computational complexity of the self-attention mechanism grows quadratically with sequence length, this imbalance leads to substantial memory and time overhead during both training and inference.
Previous attempts to mitigate this issue generally fall into three categories: token selection (dropping patches), token merging (averaging similar patches), or cross-attention resamplers. While effective for coarse-grained semantic tasks (e.g., general image captioning), these methods often destroy the local spatial details necessary for fine-grained tasks, such as reading small text or precise object localization. There remains a critical need for a compression method that preserves spatial integrity without the full computational cost.
Methodology
Window Token Concatenation (WiCo)
WiCo introduces a 2D sliding window approach to token reduction. Instead of simple averaging or selection, WiCo concatenates adjacent visual tokens within a local window. To ensure these concatenated features remain coherent for the LLM, the authors fine-tune the final layers of the vision encoder (e.g., CLIP). This optimization encourages the encoder to produce spatially "smooth" features, where neighboring tokens share complementary information, making them more amenable to grouping without significant loss of detail.
Unlike previous 1D concatenation methods that process tokens row-by-row, WiCo’s 2D windowing better respects the natural spatial locality of images, ensuring that the relationship between vertically and horizontally adjacent pixels is preserved.
Token Decomposition (WiCo+)
Recognizing that different stages of the LLM have different "token appetites," the authors developed WiCo+. The core insight is that while the majority of the LLM layers can operate on compressed representations to save computation, the final stages of reasoning benefit from a larger perception field.
In WiCo+, the compressed tokens (reduced by 4x) are processed through the bulk of the LLM layers. However, in the final few layers of the decoder, the tokens are "unpacked" or upsampled back to their original count. This allows the model to perform high-resolution reasoning immediately before generating an answer, effectively providing the benefits of high-resolution input at a fraction of the total computational cost.
Experimental Setup
The proposed methods were evaluated using two primary VLLM architectures: LLaVA-1.5 for general visual question answering and Shikra for object grounding and localization. The evaluation suite included:
- General VQA: VQAv2, ScienceQA, TextVQA, POPE, MME, and MMBench.
- Grounding: RefCOCO, RefCOCO+, and RefCOCOg.
Results and Discussion
Efficiency Gains
WiCo achieves a 75% reduction in visual tokens, moving from 576 down to 144 tokens per image. This reduction translated to a significant decrease in training time; for LLaVA-1.5, training time dropped from approximately 15.75 hours to 11.5 hours on identical hardware configurations.
Performance Benchmarks
Despite the massive reduction in tokens, WiCo and WiCo+ demonstrated competitive, and sometimes superior, performance compared to full-token models:
- ScienceQA: WiCo+ achieved a score of 70.6, outperforming the standard LLaVA-1.5 score of 69.3.
- Fine-Grained Tasks: On TextVQA and MME, where detail is paramount, WiCo consistently outperformed other reduction baselines like "Token Filter" and "Perceiver" resamplers.
- Grounding: The method maintained high accuracy on RefCOCO benchmarks, proving that the 2D concatenation and late-stage decomposition successfully preserved spatial coordinates.
Key Insights
The research highlights that coarse-grained tasks are highly resilient to token reduction, whereas fine-grained tasks are sensitive to the "granularity" of the tokens. The success of WiCo+ suggests that high resolution is most critical during the final stages of the transformer's reasoning process, rather than the initial feature processing stages.
Conclusion and Future Work
WiCo provides a robust framework for scaling VLLMs by addressing the visual token bottleneck. By combining 2D spatial concatenation with late-stage token decomposition, the model achieves a 4x compression ratio without sacrificing performance on detail-oriented tasks. Future research will focus on scaling these findings to larger models (13B to 30B+ parameters) and exploring the application of windowing techniques to the temporal dimension in video-based Large Language Models.
Summary updated