NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Paying More Attention to Motion: Attention Distillation for Learning Video Representations

Miao Liu, Xin Chen, Yun Zhang, Yin Li, James M. RehgarXiv 2019

Abstract

Action recognition in video typically relies on two-stream architectures that process both RGB frames and pre-computed optical flow. While accurate, computing optical flow is computationally expensive, often creating a 100x speed bottleneck. This paper introduces Attention Distillation, a method to enhance RGB-only models by teaching them to focus on motion-critical regions identified by a teacher flow network. By distilling attention maps instead of raw features, the proposed model achieves state-of-the-art performance for single-stream models while maintaining the efficiency of RGB-only inference.

Introduction

The primary challenge in video action recognition is effectively capturing motion information without the prohibitive cost of optical flow. While deep models excel at learning appearance from RGB pixels, they often struggle to extract fine-grained temporal dynamics directly. Previous attempts at feature distillation—forcing RGB features to match flow features—often lead to "catastrophic forgetting," where the network loses valuable appearance information. This work explores whether distilling where to look (attention) is a more effective signal than distilling what to see (features).

Methodology

The proposed framework utilizes a teacher-student paradigm where a pre-trained flow network guides an RGB-based student network.

Dual Attention Architecture

The student network, built on an I3D backbone, is augmented with two distinct attention modules: one for Appearance and one for Motion. This separation allows the model to preserve static context while specifically learning to track dynamic elements.

Probabilistic Soft Attention

To improve robustness, the authors employ a probabilistic approach to attention. During training, attention maps are sampled using the Gumbel-Softmax trick and regularized against a uniform distribution, resulting in smoother and more generalized maps.

Attention Distillation

The core of the method is the distillation process. A pre-trained "Reference Motion Model" (teacher) generates attention maps from optical flow. The student's motion attention head is then trained via Kullback-Leibler (KL) divergence loss to mimic these maps. This provides a spatial "hint" to the RGB network about which regions are motion-significant.

Overview of the Attention Distillation framework, showing the reference motion model (a), the attention module (b), and the final distilled RGB model (c).

Experiments and Results

The method was evaluated on four diverse benchmarks: UCF101, HMDB51, EGTEA Gaze+, and the large-scale 20BN-V2 (Something-Something).

Performance and Efficiency

The "Prob-Distill" model consistently improves the baseline I3D RGB model by approximately 1% across general benchmarks and by 2.6% on the temporally-demanding 20BN-V2 dataset. Crucially, the model maintains the inference speed of a standard RGB network, making it roughly 100 times faster than traditional two-stream models.

Comparison of the proposed method (Prob-Distill) against state-of-the-art video recognition models on UCF101 and HMDB51 datasets.

Discussion and Key Insights

A key finding is that attention is a superior distillation signal compared to raw features. It provides a spatial guide without forcing the RGB network to replicate the numerical distribution of flow data, which is fundamentally different in nature. Furthermore, the model proves robust even with "weak" teachers; in egocentric datasets where flow is noisy due to camera movement, the distilled attention maps still provide useful cues for action localization.

Limitations

Despite improvements, the model still lags behind true flow-based networks in "arrow of time" tests (e.g., distinguishing forward vs. backward video). This suggests that while the model learns where motion occurs, capturing the precise temporal direction remains a challenge for RGB-only architectures.

Conclusion

Attention Distillation offers a powerful and efficient way to bridge the gap between RGB-only and two-stream models. By leveraging the spatial insights of optical flow during training and discarding it during inference, the proposed method achieves a high-performance, low-latency solution for real-world video recognition tasks.

Summary updated

BibTeX
@misc{liu2019paying,
  author = {Miao Liu and Xin Chen and Yun Zhang and Yin Li and James M. Rehg},
  title = {{Paying More Attention to Motion: Attention Distillation for Learning Video Representations}},
  year = {2019},
  eprint = {1904.03249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.03249},
}
Figure