Introduction
Modern Vision-Language Models (VLMs), such as LLaVA, have demonstrated remarkable capabilities by integrating visual information into large language models (LLMs). However, this integration often involves prepending thousands of visual tokens to text prompts. For instance, a single high-resolution image can generate nearly 3,000 tokens, dwarfing typical text inputs. Given that transformer attention complexity scales quadratically with sequence length, this visual token explosion creates a significant computational bottleneck during both training and inference.
Existing approaches to mitigate this issue, such as token dropping or external resamplers, face limitations. Token dropping methods like FastV often rely on attention matrices, making them incompatible with optimized kernels like FlashAttention. External resamplers add architectural complexity and can lead to substantial performance degradation. This paper introduces Victor (Visual Compact Token Registers), a streamlined method that leverages the LLM's internal layers to compress visual information into a tiny set of learnable registers.
The Victor Framework
Victor addresses visual redundancy by summarizing information directly within the language tower. The process is integrated into the standard VLM pipeline through four key steps:
- Append Registers: A small set of learnable "register tokens" (typically 8 to 64) is appended to the projected visual tokens.
- Early Summarization: The combined sequence of visual tokens, registers, and text passes through the first $k$ layers of the LLM (usually the first 3 layers).
- Token Discarding: After layer $k$, the original, redundant visual tokens are discarded.
- Efficient Inference: The remaining layers process only the compact registers and the text tokens, drastically reducing the sequence length for the majority of the model.
Unlike previous methods, Victor does not require auxiliary loss functions. The model naturally learns to distill essential visual features into the registers during standard instruction fine-tuning to minimize prediction error.
Experimental Evaluation
The authors evaluated Victor using the LLaVA-1.5 framework across a diverse set of 12 benchmarks, including VQAv2, GQA, ScienceQA, and MMMU. The models were pre-trained on the LLaVA CC3M dataset and fine-tuned on the LLaVA-v1.5-mix665K instruction set. Victor was tested across various language backbones, including Vicuna, Llama-3, Mistral, and Qwen-2, demonstrating its broad applicability.
Key Results
Victor achieves a superior balance between efficiency and accuracy compared to existing state-of-the-art methods.
- Throughput and Training Efficiency: By reducing the visual representation to just 8 registers (~1% of original tokens), Victor achieves a 3.3x increase in inference throughput and a 43% reduction in training time.
- Performance Retention: Despite extreme compression, Victor maintains high accuracy. At the 8-register level, the model experiences less than a 4% drop in average benchmark scores compared to the full-token baseline.
- Pareto Dominance: As shown in the results, Victor consistently outperforms FastV and Perceiver-based resamplers, particularly in high-compression regimes where other methods' performance tends to collapse.
Discussion and Insights
A core insight of this work is that the LLM can serve as its own compressor. Analysis of the model's internal states revealed that visual tokens are highly redundant, often exhibiting near-perfect cosine similarity. By using the early layers as a "summarization hub," Victor captures the necessary context without the overhead of thousands of tokens.
Furthermore, because Victor maintains a fixed-length sequence after the discarding step, it is fully compatible with high-performance attention kernels like FlashAttention. This compatibility ensures that theoretical complexity reductions translate into real-world wall-clock speedups, a common pitfall for dynamic token-dropping schemes.
Conclusion
Victor provides a simple, effective, and lightweight solution to the visual token bottleneck in VLMs. By adding a negligible number of parameters (0.03% of a 7B model), it enables significant gains in training and inference efficiency with minimal impact on reasoning capabilities. Future work may explore dynamic register counts and the application of this summarization technique to long-context text processing.
Summary updated