CrossGET: Cross-Guided Ensemble of Tokens for Accelerating Vision-Language Transformers

Dachuan Shi, Chaofan Tao, Anyi Rao, Zhendong Yang, Chun Yuan, Jiaqi Wang

TL;DR

CrossGET is a general acceleration framework for vision-language Transformers that significantly reduces computational costs by adaptively merging redundant tokens. By introducing "cross tokens" to enable bidirectional modal guidance and a novel parallelizable matching algorithm, it achieves up to a 93% throughput increase with negligible performance loss across tasks like image captioning, retrieval, and visual reasoning.

What Problem Does This Paper Address?

Vision-Language Transformers (VLTs) like CLIP and BLIP2 have set new benchmarks in multimodal AI, but their power comes at a high price: massive computational overhead. As the number of input tokens (image patches or words) grows, the cost of self-attention layers scales quadratically.

While "token reduction" (removing or merging less important tokens) has worked for unimodal models, it’s tricky for multimodal ones. Specifically, many modern models are modality-dependent: the vision encoder processes the image first, and its output is then fed into a language model. This creates a "dependency bottleneck." How can the vision encoder know which image patches are "redundant" based on the text if the text hasn't even been processed yet? Existing methods either ignore cross-modal information or are limited to simpler, independent architectures.

Methods

CrossGET introduces two core innovations to break these bottlenecks:

  1. Cross-Guided Matching and Ensemble (CGM & CGE): To solve the dependency problem, the authors inject learnable "cross tokens" into each modality branch. These tokens act as proxies or "ambassadors." Through a specialized loss function (JS divergence), the vision cross token learns to represent the essence of the language modality, and vice versa. This allows the vision encoder to use its language-aware cross token to guide token reduction before the actual text is processed.
  2. Complete-Graph Soft Matching (CGSM): Standard token merging (like the popular ToMe) often uses bipartite matching, which splits tokens into two arbitrary groups and only allows matches between them. CrossGET proposes CGSM, which allows every token to consider every other token (a "complete graph"). It uses a non-iterative, parallelizable algorithm to find the best global matches, ensuring higher-quality reduction without slowing down the GPU.
Figure 1: Overview of CrossGET. ①CrossGET is a general multimodal token reduction framework that applies to both modality- independent and modality-dependent models. ②CrossGET jointly considers the token similarity derived from intra-modal complete-graph soft matching and the token importance indicated by cross-modal guidance to determine which tokens should be combined. The cross-modal importance is subsequently utilized to weight tokens within each stack and output their ensembles. ③Compared with the original models, CrossGET achieves considerable computation saving and acceleration with negligible performance degradation.

Datasets

The researchers evaluated CrossGET across a massive suite of benchmarks:

  • Image-Text Retrieval: Flickr30K.
  • Visual Reasoning: NLVR2.
  • Image Captioning: COCO Caption and NoCaps.
  • Visual Question Answering: VQA2.0.
  • Multimodal LLMs: 10 datasets for LLaVA-1.5 (including GQA, VisWiz, and POPE).
  • Few-shot Classification: The CoOp benchmark (11 datasets including ImageNet and OxfordPets).

Key Insights and Ideas

  • Breaking the Dependency Paradox: The most elegant "aha moment" is the use of cross tokens to bypass the sequential nature of models like BLIP2. By letting these tokens learn cross-modal priors during training, the model can make "informed" decisions about what to prune in the first modality based on what it expects to see in the second.
  • Global vs. Local Context: The shift from bipartite to complete-graph matching recognizes that token redundancy isn't just a local phenomenon. By looking at the whole "graph" of tokens, the model finds much better candidates for merging, which preserves more information at higher compression ratios.
  • Weighted Ensembling: Instead of just averaging merged tokens, CrossGET uses the cross-modal importance scores to weight the contribution of each token. This ensures that "important" features aren't washed out by redundant ones during the merge.
Figure 2: Diagram of introducing and leveraging cross-model guidance for vision-language Transformers. ①Cross tokens learn cross-modal information by closing the after-projection distance between cross tokens of different modalities. The switches indicate that it is free to choose whether to reduce tokens in different modalities and layers. ②Cross tokens provide cross-modal importance as a metric to guide token matching. ③The metric also guides the weighted summation of the stacked tokens to produce token ensemble results.

Key Results

CrossGET consistently outperforms previous state-of-the-art reduction methods like ToMe and UPop:

  • CLIP (Modality-Independent): Achieved a 42% reduction in GFLOPs and a 57% throughput boost on image-text retrieval, actually improving performance slightly (+0.2% Recall@1).
  • BLIP (Modality-Dependent): On visual reasoning tasks, it saved 57% GFLOPs and increased throughput by 93% with only a 0.2% drop in accuracy.
  • Image Generation: For auto-regressive captioning, it achieved an 86% saving in GFLOPs and a staggering 330% throughput improvement.
  • Large Models (LLaVA-1.5-13B): It nearly doubled the throughput of the 13B parameter model while maintaining over 98% of its original capabilities.

Limitations and Future Work

While highly effective, the authors note a few areas for growth:

  • Interleaved Inputs: The current framework is optimized for single image-text pairs. Extending this to "interleaved" data (multiple images and text blocks in a sequence, like in the Flamingo model) would require more complex cross-fragment guidance.
  • Training Requirements: While CrossGET can work "out of the box" without training, reaching the optimal Pareto frontier (the best balance of speed vs. accuracy) requires a fine-tuning phase to train the cross tokens.
  • Heuristic Ratios: The number of tokens to reduce per layer is currently determined by a fixed strategy; future work could explore more dynamic, per-input reduction ratios.

Summary updated

BibTeX
@inproceedings{shi2024crossget,
  author = {Dachuan Shi and Chaofan Tao and Anyi Rao and Zhendong Yang and Chun Yuan and Jiaqi Wang},
  title = {{CrossGET: Cross-Guided Ensemble of Tokens for Accelerating Vision-Language Transformers}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=CSIfCpXhCF},
}
Figure