TL;DR
Standard video classification often treats appearance (RGB) and motion (Optical Flow) as two separate silos, only combining them at the very last step. This paper introduces Cross-Modality Attention (CMA), a plug-and-play block that allows these streams to interact hierarchically, enabling one modality to "query" the other for complementary information and significantly improving classification accuracy.
What Problem Does This Paper Address?
In video understanding, humans naturally combine static visual cues (what an object looks like) with dynamic motion cues (how it moves). For example, to distinguish between "salsa" and "tango," a single frame isn't enough; you need the trajectory of the dancers.
The current state-of-the-art approach is the "two-stream" network, which processes RGB frames and optical flow fields in parallel. However, most implementations use late fusion, simply averaging the final prediction scores of both branches. The authors argue this is suboptimal. It misses the chance for the network to learn richer, joint features where motion informs appearance (and vice versa) at intermediate stages. Furthermore, existing models often struggle to attend to subtle, discriminative details—like a sword in a "sword fighting" clip—amidst complex backgrounds.
Methods
The core contribution is the Cross-Modality Attention (CMA) block.
Inspired by the Query-Key-Value (QKV) mechanism used in Transformers and Non-Local Networks, the CMA block allows one modality to attend to all positions in the other modality.
- The Mechanism: If the RGB branch is the "query" ($Q$), it looks at the "keys" ($K$) and "values" ($V$) of the Flow branch. This allows the RGB stream to selectively absorb motion information that is most relevant to the current visual scene.
- Architecture: The CMA block is designed as a residual wrapper (see Figure 1), making it easy to insert into standard backbones like ResNet-50.
- Iterative Training: Because the Flow branch converges much slower than the RGB branch, the authors use an iterative training strategy. They first train the Flow branch, then freeze it to train the RGB branch with CMA, and then alternate to ensure both branches adapt to the cross-modal information.
Datasets
The authors evaluated their approach on two benchmark datasets:
- Kinetics: A massive dataset with over 300,000 video clips across 400 human-centric action classes.
- UCF-101: A smaller, widely-used dataset containing 13,320 clips of 101 action categories.
Key Insights and Ideas
- Global Context is Key: Unlike standard convolutions that look at local neighborhoods, CMA is global. A pixel on a boxer’s glove can attend to the movement of the opponent across the entire frame, capturing long-range dependencies.
- Motion as an Attention Guide: The authors found that motion often points to the most important objects. In "making a sandwich," the most relevant visual information is usually concentrated around the moving hands. CMA allows the model to use motion to "zoom in" on these visual details.
- Generalization of Non-Local Blocks: The authors point out that if the two modalities being compared are identical, CMA effectively becomes a standard Non-Local block. This makes CMA a more flexible generalization of self-attention for multi-modal data.
- Efficiency: Interestingly, the RGB branch alone (when enhanced with CMA blocks that query a fixed Flow branch) can outperform a standard two-stream model that uses twice the parameters.
Key Results
The CMA-enhanced models showed clear superiority over baseline two-stream and non-local architectures:
- Kinetics: The RGB branch with CMA (CMA_iter1-R) achieved 72.17% top-1 accuracy, outperforming the standard two-stream baseline (71.21%) while using significantly fewer parameters (1.8x vs 2x relative to a single ResNet-50).
- UCF-101: Through transfer learning, the model reached 96.5% top-1 accuracy, surpassing many 3D convolutional models despite using a 2D backbone.
- Qualitative Success: Visualization of attention maps (Figure 5) shows the model successfully focusing on key moving parts, such as a swimmer's body or a person's hands while tying a bow tie, even when the rest of the body is in motion.
Limitations and Future Work
- Overfitting: The authors noted that the model is somewhat prone to overfitting on smaller datasets like UCF-101.
- Background Noise: In some failure cases, if the query point is located in the background, the attention mechanism might erroneously focus on other background elements rather than the primary action.
- Expanding Modalities: The current work focuses on RGB and Flow. The authors suggest that future work could extend CMA to other modalities like audio or human pose data.
- Backbone Sophistication: The evaluations were primarily on ResNet-50; testing on more modern or complex architectures remains a future direction.
Summary updated