TL;DR
AM Flow (Attention Map Flow) is a parameter-efficient method that transforms frozen image foundation models into high-performance video classifiers. By extracting motion cues from the differences between consecutive frames' attention maps, the authors achieve state-of-the-art results on major benchmarks while requiring up to 10x fewer training epochs than traditional full-finetuning.
What Problem Does This Paper Address?
Training video foundation models from scratch is a massive undertaking, requiring enormous datasets and thousands of GPU hours. While researchers have tried to "recycle" pretrained image models (like ViT) for video tasks using adapters—small, trainable modules added to a frozen backbone—these often struggle to capture fine-grained temporal relationships or require complex 3D convolutions that negate the efficiency gains.
The core challenge is: How can we give a frozen image model "motion vision" without re-training the whole thing?
Methods
The authors introduce two key innovations to bridge the gap between static images and dynamic video:
-
AM Flow (Attention Map Flow): Instead of trying to learn motion from raw pixels, the model looks at the attention maps generated by the Transformer blocks. By taking the absolute difference between the attention maps of two consecutive frames ($t$ and $t+1$), the model identifies which "patches" of the image have changed their relationship to the rest of the scene. This provides a simplified, encoded signal of motion.
Figure 1: Intuition of AM flow. No motion in the videos (frames) and minimal change in the attention map are repre- sented by white/transparent. Here, rows with changes in the attention map correspond to input patches with motion, for example second and third patches have motion and the sec- ond and third rows of the attention maps have change. Note: the attention map is hand-crafted only for explanation and the colours have no intended meaning. -
Temporal Processing Adapters: The authors modify standard parallel adapters to accept this AM Flow signal. This "informs" the spatial adapters about local movement. These are paired with a Temporal Processing Unit (TPU)—which can be an LSTM, TCN, or a small Transformer—to aggregate these signals across the entire video.
- Handling Camera Motion (Aligning Encoder): If the camera is moving, a simple difference between frames is noisy. To fix this, the authors propose an "Aligning Encoder" (a small transformer) that learns to align relevant information in the attention maps before the subtraction happens, effectively stabilizing the "flow" signal.
Datasets
The model was evaluated on three diverse benchmarks:
- Something-Something v2 (SSv2): A dataset requiring strong temporal reasoning (e.g., "putting something next to something").
- Kinetics-400 (K400): A large-scale dataset of human actions, often characterized by significant camera movement.
- Toyota Smarthome: A smaller, real-world dataset of daily activities (e.g., "drinking tea") captured from fixed cameras.
Key Insights and Ideas
- Attention Maps are Motion Sensors: Even though image models are trained on static photos, their internal attention mechanisms are naturally sensitive to the pixels that would move in a video. AM Flow exploits this "latent" knowledge.
- Decoupling Space and Time: The paper shows that you don't need to process space and time simultaneously in every layer. By keeping the spatial backbone frozen and using adapters to handle the temporal "flow," the model converges much faster.
- Efficiency is King: Because the backbone is frozen, the number of trainable parameters is tiny compared to the total model size. This allows the model to reach SOTA performance with significantly less compute (e.g., 160 GPU hours vs. 9600 for some competing models).
Key Results
The AM Flow approach achieved impressive results across the board:
- SSv2: Reached 74.8% Top-1 accuracy, outperforming many full-tuned models and other parameter-efficient methods like ST-Adapter.
- Kinetics-400: Achieved 89.6% Top-1 accuracy using a ViT-B backbone, rivaling models with billions of parameters.
- Training Speed: The authors note that their method achieves comparable performance to full finetuning but with 10 times fewer training epochs.
- Ablation: Removing the AM Flow component dropped accuracy on K400 from 88.8% to 74.3%, proving that the motion signal is doing the heavy lifting.
Limitations and Future Work
While highly efficient, the authors acknowledge a few areas for improvement:
- Aligning Encoder Overhead: The current Aligning Encoder used for moving cameras is somewhat resource-intensive. The authors plan to explore lighter machine learning alternatives.
- Nuance in Motion: Currently, AM Flow uses a simple difference. Adding "memory" to the flow calculation could help the model understand more complex, multi-step actions.
- Task Expansion: The current work focuses on classification; the authors suggest extending this to video object detection in the future.
Summary updated