Abstract
Adapting massive image-language models to video tasks usually requires expensive full fine-tuning or adding complex new modules. This paper introduces Token Mixing, a parameter-efficient strategy that enables cross-frame interactions by simply "mixing" tokens from different frames within existing transformer layers. By fine-tuning only a minimal subset of parameters (7.1M), Token Mixing achieves state-of-the-art performance on video retrieval and captioning benchmarks, matching or exceeding the performance of significantly larger models while maintaining architectural simplicity.
Introduction
Large-scale pre-trained image-language models, such as CLIP or BLIP, have revolutionized computer vision. However, adapting these static models to dynamic video presents two major hurdles: the temporal gap, where models lack an inherent understanding of motion, and computational cost, as full fine-tuning of models with hundreds of millions of parameters is prohibitively expensive.
Existing solutions typically involve "plug-in" temporal blocks or adapters. While effective, these often require updating millions of parameters or add significant architectural complexity. Token Mixing seeks to enable temporal reasoning without adding any new components to the model backbone.
Methodology: Token Mixing Attention
The core innovation is Token Mixing Attention. In a standard Vision Transformer (ViT), each frame is processed independently. Token Mixing breaks this independence by modifying the existing Multi-Head Attention (MHA) mechanism to allow information exchange across time steps.
As illustrated in the architectural comparison, unlike methods like ViViT or ST-Adapter that introduce new attention layers or adapter modules, Token Mixing repurposes the existing attention flow. For a specific token in a frame, the model selects a "key" and "value" set from other frames using a uniform sampling strategy. This enables temporal interaction within the existing layers of the pre-trained model.
This approach is highly parameter-efficient. The authors found that fine-tuning only a single modified transformer layer—specifically the Feed-Forward Network (FFN) and task-specific heads—is sufficient. This reduces the updated parameter count in the visual encoder to just 7.1M, compared to over 226M for full fine-tuning.
Experimental Results
The authors evaluated Token Mixing using the BLIP (ViT-B/16) backbone on standard video-language benchmarks including MSRVTT, VATEX, and MSVD.
The results demonstrate a superior trade-off between performance and efficiency. On the MSVD video captioning benchmark, Token Mixing achieved a 146.9 CIDEr score with only 7.1M parameters, nearly matching the 149.1 achieved by full fine-tuning (ViViT) which requires updating 30x more parameters. In video retrieval on MSRVTT, it achieved a 47.1 R@1 score, outperforming other efficient methods like BitFit (42.1) and matching the performance of standard Adapters while being more architecturally elegant.
Key insights from the study include:
- Depth Matters: Applying Token Mixing to deeper layers is more effective, suggesting the model needs high-level spatial features before integrating them across time.
- FFN Tuning is Key: Fine-tuning only the FFN part of the "mixed" layer provides the best balance of performance and efficiency.
Conclusion
Token Mixing demonstrates that the general architecture of transformers is powerful enough to handle temporal data with minimal modification. By changing how tokens "talk" to each other across frames rather than adding new modules, the method provides a lightweight yet powerful solution for video-language transfer learning. Future work may explore more complex, learnable token selection strategies and the scalability of this approach to long-form video content.
Summary updated