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

Efficient Video Classification Using Fewer Frames.

Shweta Bhardwaj, Mukundhan Srinivasan, Mitesh M. Khapra

Abstract

Recent advancements in video classification have focused on memory-efficient models (<1 GB), yet these models remain computationally expensive due to their frame-by-frame processing nature. This work introduces a compute-efficient approach using knowledge distillation. We train a "see-very-little" student network to mimic a "see-it-all" teacher network. By processing only a fraction of the video frames (e.g., 1 in 20), the student achieves a 90% reduction in FLOPs and a 30% reduction in inference time with negligible performance loss.

Introduction

Standard video classification models, such as Recurrent Neural Networks (RNNs) and cluster-and-aggregate architectures like NetVLAD, scale their computational load linearly with video length. While memory-efficient variants exist, the high number of floating-point operations (FLOPs) remains a barrier for real-time deployment on mobile and edge devices. This paper shifts the focus from memory footprint to compute efficiency, proposing a method to skip redundant frames without sacrificing global context.

Methodology: The Teacher-Student Framework

The proposed solution utilizes a Teacher-Student distillation framework designed for temporal sub-sampling. A high-capacity "Teacher" model processes all $N$ frames to generate a comprehensive internal representation ($E_T$). A "Student" model, sharing the same architecture, processes only every $j$-th frame to produce a representation ($E_S$).

The Teacher-Student framework for temporal distillation. The student learns from the teacher's internal representations and predictions.

The student is trained using three primary loss functions:

  1. Representation Loss ($L_{rep}$): Minimizes the squared error between $E_S$ and $E_T$.
  2. Prediction Loss ($L_{pred}$): Aligns the class probability distributions of the student and teacher.
  3. Cross-Entropy Loss ($L_{CE}$): Standard classification loss against ground truth labels.

Experiments indicated that "Serial Training"—where the student first learns to mimic the teacher's internal state before fine-tuning for classification—provides the best stability and accuracy.

Experimental Results

The framework was evaluated on the YouTube-8M dataset. The results demonstrate that video frames are highly redundant; a student seeing only 30 frames can approximate the performance of a teacher seeing 300, provided it is guided by distillation.

Comparison of Global Average Precision (GAP) across training epochs for different loss combinations. Distillation significantly bridges the gap between the student and the teacher baseline.

Key findings include:

  • Efficiency: The student network reduced FLOPs by approximately 90% and inference latency by 30% on a Tesla K80 GPU.
  • Accuracy: Using the NeXtVLAD architecture with 30 frames, the student achieved a GAP of 0.818, compared to the teacher's 0.831.
  • Distillation Advantage: Students trained via distillation consistently outperformed models trained from scratch on the same reduced frame set, highlighting the importance of the teacher's "global hint."

Conclusion

This research provides a practical path for deploying sophisticated video AI on resource-constrained hardware. By leveraging temporal redundancy and knowledge distillation, we can significantly reduce the computational cost of video understanding while maintaining high classification accuracy. Future work may involve intelligent frame selection using reinforcement learning to further optimize efficiency.

Summary updated

BibTeX
@inproceedings{bhardwaj2019efficient,
  author = {Shweta Bhardwaj and Mukundhan Srinivasan and Mitesh M. Khapra},
  title = {{Efficient Video Classification Using Fewer Frames.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=Hj-wglQgd6S},
}
Figure