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:
- 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.
- 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.
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.
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