Temporal-attentive Covariance Pooling Networks for Video Recognition

Zilin Gao, Qilong Wang, Bingbing Zhang, Qinghua Hu, Peihua Li

Introduction

Standard video recognition models typically rely on Global Average Pooling (GAP) at the final stage to produce a global representation of a video clip. While computationally efficient, GAP suffers from two fundamental limitations: it only captures first-order statistics (means), discarding rich feature correlations, and it is inherently "temporal-blind," treating video frames as an unordered collection rather than a dynamic sequence. This paper proposes Temporal-attentive Covariance Pooling (TCP), a plug-and-play module designed to capture complex video dynamics through second-order statistics and explicit temporal modeling.

The TCP Framework

The TCP module can be integrated into various deep video architectures to enhance their representational power. The process involves three distinct stages:

  1. Temporal Attention Module (TAM): This module "calibrates" features before pooling to emphasize motion-relevant information. It consists of Channel Attention, which uses temporal differences between adjacent frames to weight feature channels, and Spatial Attention, which employs a query-key-value mechanism across consecutive frames to model spatial dependencies guided by temporal smoothness.
  2. Temporal Covariance Pooling: Unlike standard covariance pooling that only considers intra-frame correlations, TCP utilizes a sliding window to calculate inter-frame cross-correlations. This allows the model to explicitly represent the evolution of features over time, capturing the "visual tempo" of actions.
  3. Fast Matrix Power Normalization: To project covariance matrices (which reside on a Riemannian manifold) into a space suitable for linear classifiers, the authors implement a fast, GPU-friendly normalization using iterative Newton-Schulz mapping to compute the matrix square root.
Overview of the TCP architecture and its attention sub-modules.

Experimental Results and Insights

The researchers evaluated TCPNet across six major benchmarks, including Kinetics-400 and Something-Something V1. The results demonstrate that moving beyond first-order statistics provides a significantly more expressive signature for video content.

  • Performance Gains: On Mini-Kinetics, TCP achieved 76.1% Top-1 accuracy, a substantial improvement over the 71.9% GAP baseline. On the motion-critical Something-Something V1 dataset, adding TCP to a standard TSN backbone resulted in a staggering 18.6% accuracy boost.
  • Efficiency: The module is remarkably lightweight. For a ResNet-50 backbone, it adds only approximately 13.6% more parameters and a negligible 3.6% increase in FLOPs.
  • Model Agnostic: TCP proved effective across various backbones, including 2D CNNs (TSN), specialized temporal models (TEA), and 3D CNNs (X3D).
Comparison of accuracy and parameter overhead between GAP and Covariance Pooling (GCP/TCP) across feature dimensions.

Conclusion

Temporal-attentive Covariance Pooling addresses the core weaknesses of traditional pooling methods in video recognition. By respecting the Riemannian geometry of feature correlations and explicitly modeling temporal dynamics, TCPNet achieves state-of-the-art performance with minimal computational overhead. Future work may explore higher-order statistics and the integration of these pooling techniques into Video Vision Transformers (ViTs).

Summary updated

BibTeX
@inproceedings{gao2021temporal,
  author = {Zilin Gao and Qilong Wang and Bingbing Zhang and Qinghua Hu and Peihua Li},
  title = {{Temporal-attentive Covariance Pooling Networks for Video Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=hMqBUKvvzKc},
}
Figure