AIM: Adapting Image Models for Efficient Video Action Recognition

Taojiannan Yang, Yi Zhu, Yusheng Xie, Aston Zhang, Chen Chen, Mu Li

Introduction

The standard operating procedure in computer vision often follows a "pre-train then fine-tune" paradigm. Researchers take a massive model trained on millions of static images (like ImageNet or CLIP) and update all of its internal weights to handle video tasks. While this approach has driven significant progress in video action recognition, it introduces two major bottlenecks:

  1. Prohibitive Computational Cost: Fully fine-tuning a video model is exceptionally expensive. Some state-of-the-art models require over 1,200 GPU hours to train, making them inaccessible to many researchers and practitioners.
  2. Knowledge Destruction: Foundation models possess incredibly generalized representations. Forcing them to adapt entirely to a specific video dataset can inadvertently "break" or overwrite the highly useful features they learned during their extensive image pre-training.

To address this, researchers have introduced AIM (Adapting Image Models), a breakthrough framework that transforms pre-trained image transformers into high-performance video models without the massive computational cost of full fine-tuning.

Comparison of traditional full fine-tuning versus AIM's efficient tuning, alongside a performance chart on Kinetics-400.

By freezing the image backbone and adding lightweight "Adapters," AIM achieves state-of-the-art video recognition accuracy while tuning up to 99% fewer parameters than traditional methods.

Methods: The AIM Architecture

The core challenge AIM solves is granting an image model "temporal vision"—the ability to understand movement over time—without rebuilding the entire model from scratch. AIM achieves this by keeping the original image model frozen and introducing three types of lightweight Adapters. These Adapters are small bottleneck layers consisting of two fully connected layers and a non-linearity.

Detailed block diagrams showing the Adapter structure and how Spatial, Temporal, and Joint adaptations are integrated into the frozen ViT blocks.
  • Spatial Adaptation: An adapter is placed after the self-attention layer to help the model refine its understanding of objects within individual frames.
  • Temporal Adaptation: Instead of adding a complex new temporal module, AIM ingeniously re-uses the pre-trained spatial self-attention layer. It reshapes the input to look at the same "patch" across different time frames. A dedicated temporal adapter then helps the model learn how these patches change over time.
  • Joint Adaptation: A final adapter is placed in parallel with the model's MLP (Multi-Layer Perceptron) layer to fuse spatial and temporal information together for final reasoning.

By only training these tiny adapters and the final classification head, the vast majority of the model remains untouched.

Key Insights and Performance

The researchers evaluated AIM on four major video action recognition benchmarks: Kinetics-400 (K400), Kinetics-700 (K700), Something-Something-v2 (SSv2), and Diving-48. The results highlight several powerful advantages of the AIM framework:

  • Heavyweight Performance, Lightweight Footprint: On Kinetics-400, AIM (ViT-L) achieved an impressive 87.5% top-1 accuracy. It outperformed much larger models like MTV-L (which has 876M parameters) while using only 38M tunable parameters.
  • Efficiency Gains: Compared to the popular VideoSwin model, AIM reduced the memory footprint by 50% and cut training time by 42%.
  • The Power of Weight Re-use: One of the most surprising findings is that self-attention weights learned for static images are already remarkably good at modeling time. By simply changing the "view" of the data, the model can reason about motion using its existing "spatial" brain.
  • Robustness in Low-Data Regimes: Because AIM has so few tunable parameters, it is highly resistant to overfitting. When trained on only 1% of the Kinetics-400 dataset, AIM outperformed the fully fine-tuned TimeSformer by a staggering 9% absolute accuracy.
  • Fine-Grained Mastery: On the Diving-48 dataset—a fine-grained benchmark requiring precise temporal understanding to distinguish between subtle dive types—AIM set a new state-of-the-art with 90.6% accuracy.

Limitations and Future Work

While AIM performs admirably across most tasks, it still slightly trails some fully fine-tuned models on "temporal-heavy" datasets like Something-Something-v2, where the interaction (e.g., "putting something next to something") matters more than the objects themselves. This suggests that simply re-using spatial attention might not capture the most complex, nuanced temporal evolutions.

However, AIM opens the door to a fascinating future direction: a more modular, "Lego-like" approach to building AI. If we can adapt image models for video so efficiently, it raises the possibility of re-using pre-trained weights from text or audio models to further enhance machine understanding of video, paving the way for highly efficient, multi-modal foundation models.

Summary updated

BibTeX
@inproceedings{yang2023aim,
  author = {Taojiannan Yang and Yi Zhu and Yusheng Xie and Aston Zhang and Chen Chen and Mu Li},
  title = {{AIM: Adapting Image Models for Efficient Video Action Recognition}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=CIoSZ_HKHS7},
}
Figure