Abstract
Vision-and-Language (VL) modeling typically relies on Transformers with self-attention, incurring a quadratic computational cost relative to input length. We present PERCEIVER-VL, which adapts the Perceiver architecture to VL tasks using iterative latent cross-attention. This approach reduces complexity from quadratic to linear, enabling efficient processing of high-dimensional data like long videos. PERCEIVER-VL achieves state-of-the-art efficiency—lowest GFLOPs and latency—while maintaining competitive performance on major benchmarks.
Introduction
The dominant architecture in Vision-and-Language (VL) modeling is the Transformer. While powerful, Transformers rely on self-attention, which has a quadratic computational cost $O(M^2)$ relative to the input length $M$. This "quadratic tax" becomes a massive bottleneck when dealing with high-dimensional inputs. For example, a short video clip can easily result in thousands of visual patches. If you double the number of frames or the image resolution, the computational requirements quadruple. This makes it extremely difficult for standard models to scale to long-form video or high-resolution imagery without significant downsampling or heavy compute clusters.
Architecture and Methodology
The authors propose PERCEIVER-VL, which leverages the Perceiver design to decouple the processing complexity from the input size.
Iterative Latent Attention
Instead of every input token attending to every other token, the model maintains a small, fixed-size latent array (size $N$, typically 128). This latent array "queries" the large input array (size $M$, often >1000) via cross-attention. The complexity becomes $O(NM)$, which is linear with respect to the input size $M$.
Encoder-Decoder Structure
The encoder consists of blocks containing one cross-attention layer (input to latent) followed by several self-attention layers (latent to latent). The decoder then uses task-specific queries to extract information from the final latent representation.
LayerDrop and Elastic Depth
To further boost efficiency, the authors apply LayerDrop during training. This allows them to "drop" cross-attention layers at inference time, effectively providing a "compute budget" slider that lets users trade a tiny bit of accuracy for significantly lower latency. This makes the model "elastic," allowing it to run on various hardware without retraining.
Mixed-Stream Architecture
For retrieval tasks, they introduce a "mixed-stream" approach. It sits between "multi-stream" models (fast but less accurate) and "single-stream" models (accurate but slow), offering a better accuracy-latency trade-off by processing modalities separately before a final joint decoding step.
Experiments and Results
The model was pretrained on Conceptual Captions (3M image-text pairs) and Webvid-2.5M (2.5M video-text pairs). Evaluation spanned video-text retrieval (MSRVTT, DiDeMo, LSMDC, ActivityNet), video QA (TGIF-QA, MSRVTT-QA), and image-text tasks (Flickr30k, VQAv2, NLVR2).
Efficiency and Performance
PERCEIVER-VL achieved the lowest GFLOPs and latency among all compared models. On the MSRVTT benchmark, it used only 43.9 GFLOPs and had a latency of 72ms, compared to competitors like ClipBERT (340 GFLOPs / 700ms) or Frozen-in-Time (89 GFLOPs / 260ms). Despite the massive reduction in compute, the model maintained competitive results. For instance, on MSRVTT retrieval (R@1), it scored 32.6, outperforming the closely related Frozen-in-Time (31.0).
Key Insights
- Linear Scaling: As video length or frame size increases, standard Transformers see an exponential explosion in GFLOPs, while PERCEIVER-VL’s growth remains nearly flat.
- Latent Bottleneck Flexibility: The size of the latent array can be decreased during finetuning with minimal impact on accuracy, suggesting VL information can be compressed into very compact bottlenecks.
- Initialization: Knowledge transfer from models like CLIP required a two-stage training process—first training only the new cross-attention layers while freezing the rest.
Conclusion and Future Work
While highly efficient, a performance gap remains compared to massive models trained on 400M+ pairs. Future work includes improving weight initialization for the Perceiver architecture and exploring more sophisticated modality aggregation strategies. The linear scaling advantage of PERCEIVER-VL makes it a prime candidate for extremely long-form video tasks where quadratic complexity is prohibitive.
Summary updated