NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Vcc: Scaling Transformers to 128K Tokens or More by Prioritizing Important Tokens

Zhanpeng Zeng, Cole Hawkins, Mingyi Hong, Aston Zhang, Nikolaos Pappas, Vikas Singh, Shuai Zheng · DOI

Introduction

Standard Transformer architectures are fundamentally limited by a "quadratic tax": as the input sequence length ($n$) increases, the computational and memory requirements grow by $n^2$. While various "efficient" Transformers—such as Longformer or Big Bird—have attempted to reduce this complexity to linear growth, they often struggle when sequences exceed 16,000 tokens. To manage these "ultra-long" contexts, researchers frequently resort to truncation, a blunt method that discards potentially vital information from the end of a document.

This paper introduces VIP-token Centric Compression (VCC), a novel scheme designed to process sequences of 128,000 tokens or more. By aggressively compressing unimportant segments while maintaining high fidelity for task-critical tokens, VCC achieves a 3x efficiency gain over competitive baselines while simultaneously improving accuracy on long-context benchmarks.

The VCC Framework

The core philosophy of VCC is that in most natural language tasks, only a small subset of tokens is critical for the final prediction. These are designated as VIP-tokens. For instance, in a classification task, the [CLS] token is the VIP; in question-answering (QA), the tokens comprising the question itself are the VIPs.

Selective and Multi-Resolution Compression

VCC operates by identifying these VIP-tokens and preserving them in their entirety. The remaining "non-VIP" tokens are subjected to a "coarse-to-fine" compression strategy. Rather than applying uniform compression across the entire document, VCC skims the sequence and allocates higher resolution (less compression) to segments that exhibit high attention scores relative to the VIP-tokens. This ensures that the model retains the most relevant context while discarding noise.

The $\mathcal{T}(C)$ Data Structure

To avoid the computational overhead of decompressing sequences at every layer, the authors developed a specialized tree-like data structure, $\mathcal{T}(C)$. This structure allows the model to update hidden states and compute attention without ever fully materializing the original long sequence in intermediate layers. This "wrapper" approach allows VCC to be integrated into existing pretrained models like RoBERTa or T5 with minimal continuous pretraining.

Experimental Evaluation

The authors evaluated VCC across a diverse range of benchmarks to test its versatility and scaling limits.

  • Encoder-only Tasks: VCC was tested on HotpotQA, QuALITY, and WikiHop. On QuALITY and WikiHop, VCC outperformed 4K-length RoBERTa, Longformer, and Big Bird.
  • Encoder-decoder Tasks: The model was applied to the SCROLLS benchmark, including datasets like CNN/Dailymail, GovReport, and Qasper.
  • Ultra-Long Scaling: Using NarrativeQA, the authors tested scaling from 16K to 128K tokens on a single NVIDIA A100 GPU. The results showed a monotonic improvement in performance: as the sequence length increased from 16K to 128K, the F1 score rose from 16.6 to 19.6. This demonstrates that VCC effectively "finds the needle in the haystack" even as the haystack grows eightfold.

Key Insights

The Skimming Hypothesis

The success of VCC supports the "Skimming Hypothesis": high-fidelity representations of an entire document are unnecessary for specific downstream tasks. Instead, a model only needs high-fidelity representations of the relevant parts. By focusing resolution where it matters most, VCC bypasses the limitations of standard attention mechanisms.

Efficiency and Pretraining

VCC achieved over 3x efficiency gains compared to competitive baselines at 4K and 16K sequence lengths. Furthermore, during continuous pretraining, VCC reduced log perplexity significantly faster than Longformer or Big Bird. This suggests that the "VIP" inductive bias helps the model learn long-range dependencies more effectively than uniform sparse attention patterns.

Limitations and Future Work

While VCC represents a significant step forward in long-context processing, it has specific limitations:

  1. Task Dependency: The system requires the user to pre-identify VIP-tokens. While straightforward for QA or classification, it is less clear how to define VIPs for general language modeling where every token may be equally important.
  2. Short Sequence Overhead: For sequences under 512 tokens, the compression overhead of VCC may not provide a meaningful speedup over standard Transformers.
  3. Decoder Extension: Currently, VCC is primarily optimized for the encoder. Extending this multi-resolution compression to the decoder to handle long-form generation remains a promising area for future research.

Conclusion

VCC provides a scalable, efficient path for Transformers to handle ultra-long sequences. By prioritizing task-critical information and utilizing a specialized data structure, it breaks the quadratic barrier without sacrificing the accuracy required for complex, long-form document understanding.

Summary updated

BibTeX
@inproceedings{zeng2023vcc,
  author = {Zhanpeng Zeng and Cole Hawkins and Mingyi Hong and Aston Zhang and Nikolaos Pappas and Vikas Singh and Shuai Zheng},
  title = {{Vcc: Scaling Transformers to 128K Tokens or More by Prioritizing Important Tokens}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Ozc8XVzwd4},
}
Figure