Aggregating Frame-level Features for Large-Scale Video Classification

Shaoxiang Chen, Xi Wang, Yongyi Tang, Xinpeng Chen, Zuxuan Wu, Yu-Gang JiangarXiv 2017

Introduction

Video classification is significantly more complex than image classification because it requires capturing temporal dynamics and auditory information alongside visual cues. While Convolutional Neural Networks (CNNs) excel at understanding individual frames, they do not naturally handle sequences.

This research addresses the constraints of the YouTube-8M dataset, where researchers must work with pre-computed features (extracted via an Inception-v3 network) rather than raw video files. This prevents the use of traditional motion features like optical flow, shifting the core challenge to effectively aggregating a sequence of pre-extracted frame-level features into a single, accurate video-level label.

Methodology

The authors employed a "strength in numbers" approach, utilizing a massive ensemble of models and sophisticated aggregation techniques. The pipeline involves transforming input features, learning temporal representations, and performing a multi-stage fusion of predictions.

Overview of the video classification pipeline, including feature transformation, model learning, and two-stage fusion.

Core Components:

  • RNN Variants: The team explored several Recurrent Neural Network architectures to model temporal dependencies, including LSTMs, GRUs, and the Recurrent Weighted Average (RWA). These were enhanced with Layer Normalization, Recurrent Dropout, and Residual Connections to improve convergence.
  • Temporal VLAD (NetVLAD): Originally designed for spatial image retrieval, NetVLAD was adapted to pool frame features across the time dimension, providing a computationally efficient alternative to RNNs.
  • Feature Transformation: To capture motion trends without raw pixels, models were trained on the differences between adjacent frame features and on different time scales via sub-sampling.
  • Two-Stage Fusion: The system first fuses predictions from different training checkpoints of the same model (Intra-model), then combines the results of different architectures (Inter-model) using weighted averages.

Dataset

The study exclusively uses the YouTube-8M Dataset, a massive benchmark containing 8 million videos and 4,716 multi-label classes. It provides pre-computed visual and audio features at 1 frame per second, with approximately 7 million samples available across training, validation, and test partitions.

Key Insights and Ideas

  • Complementarity is King: While some models (like those using frame-difference features) performed worse individually, they provided unique information that boosted the overall ensemble's accuracy.
  • Temporal VLAD as a Strong Baseline: NetVLAD proved highly competitive with complex RNNs while being significantly cheaper to compute, serving as an excellent global descriptor.
  • The "Middle" Matters: A specialized Bidirectional RNN variant was introduced to process video toward the middle, based on the intuition that the most informative content in web videos often occurs in the center.
  • Checkpoint Ensemble: Averaging predictions from different stages of the same training run is a low-cost way to significantly stabilize and improve performance.

Key Results

The primary metric for the challenge was Global Average Precision at 20 (GAP@20). The results demonstrate a clear progression in accuracy as models are fused into larger ensembles.

Comparison of Global Average Precision (GAP) scores across different model configurations and ensembles.

While a standalone NetVLAD achieved a GAP of 0.79175, the final fused ensemble reached 0.84198, securing 4th place out of 650 teams globally.

Limitations and Future Work

The system remains entirely dependent on the quality of the original Inception-v3 feature extractor, as the dataset format precludes end-to-end training. Furthermore, while individual models are efficient, the final high-performing ensemble may be too resource-intensive for real-time applications. Future work may explore more sophisticated automated methods for learning fusion weights to further optimize multi-label classification.

Summary updated

BibTeX
@misc{chen2017aggregating,
  author = {Shaoxiang Chen and Xi Wang and Yongyi Tang and Xinpeng Chen and Zuxuan Wu and Yu-Gang Jiang},
  title = {{Aggregating Frame-level Features for Large-Scale Video Classification}},
  year = {2017},
  eprint = {1707.00803},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.00803},
}
Figure