Skip to main content
QUICK REVIEW

[Paper Review] Efficient Video Classification Using Fewer Frames

Shweta Bhardwaj, Mukundhan Srinivasan|arXiv (Cornell University)|Feb 27, 2019
Human Pose and Action RecognitionComputer Science25 references4 citations
TL;DR

This paper proposes a distillation-based method to build compute-efficient video classification models that process only a subset of video frames, significantly reducing FLOPs and inference time. By training a lightweight student network to mimic a compute-heavy teacher that processes all frames, the approach achieves ~90% reduction in FLOPs and 30% faster inference with negligible accuracy drop on YouTube-8M.

ABSTRACT

Recently,there has been a lot of interest in building compact models for video classification which have a small memory footprint (<1 GB). While these models are compact, they typically operate by repeated application of a small weight matrix to all the frames in a video. E.g. recurrent neural network based methods compute a hidden state for every frame of the video using a recurrent weight matrix. Similarly, cluster-and-aggregate based methods such as NetVLAD, have a learnable clustering matrix which is used to assign soft-clusters to every frame in the video. Since these models look at every frame in the video, the number of floating point operations (FLOPs) is still large even though the memory footprint is small. We focus on building compute-efficient video classification models which process fewer frames and hence have less number of FLOPs. Similar to memory efficient models, we use the idea of distillation albeit in a different setting. Specifically, in our case, a compute-heavy teacher which looks at all the frames in the video is used to train a compute-efficient student which looks at only a small fraction of frames in the video. This is in contrast to a typical memory efficient Teacher-Student setting, wherein both the teacher and the student look at all the frames in the video but the student has fewer parameters. Our work thus complements the research on memory efficient video classification. We do an extensive evaluation with three types of models for video classification,viz.(i) recurrent models (ii) cluster-and-aggregate models and (iii) memory-efficient cluster-and-aggregate models and show that in each of these cases, a see-it-all teacher can be used to train a compute efficient see-very-little student. We show that the proposed student network can reduce the inference time by 30% and the number of FLOPs by approximately 90% with a negligible drop in the performance.

Motivation & Objective

  • Address the high computational cost of video classification models despite low memory usage.
  • Reduce inference time and FLOPs in compact video models that still process all frames.
  • Develop a distillation framework where a student model learns from a teacher that sees all frames but the student only processes a sparse subset.
  • Demonstrate effectiveness across multiple video classification architectures: RNNs, NetVLAD, and NeXtVLAD.
  • Enable deployment of efficient video models on low-power devices without sacrificing accuracy.

Proposed method

  • Train a compute-heavy teacher network that processes every frame in the video to produce a final video representation.
  • Train a lightweight student network to process only k frames (e.g., every j-th frame) to minimize FLOPs.
  • Use knowledge distillation with multiple loss functions: representation similarity loss ($L_{rep}$), classification cross-entropy loss ($L_{CE}$), and prediction distribution loss ($L_{pred}$).
  • Apply both serial and parallel training paradigms to optimize student learning from the teacher.
  • Use feature-level and output-level supervision to align student predictions and hidden representations with those of the teacher.
  • Evaluate the student on the YouTube-8M dataset using mAP and GAP as metrics, comparing against uniform sampling baselines and skyline models.
Figure 1 : Architecture of Teacher-Student network for video classification
Figure 1 : Architecture of Teacher-Student network for video classification

Experimental results

Research questions

  • RQ1Can a student model that processes only a fraction of video frames achieve performance comparable to a teacher model that sees all frames?
  • RQ2Does distillation from a full-frame teacher improve the accuracy of a sparse-frame student model compared to random or uniform frame sampling?
  • RQ3What is the optimal combination of distillation losses ($L_{rep}$, $L_{CE}$, $L_{pred}$) for aligning student and teacher representations and predictions?
  • RQ4Does matching intermediate representations (hidden states) at multiple timesteps improve student performance over matching only the final representation?
  • RQ5Can this distillation approach be generalized across different video classification architectures, including RNNs, NetVLAD, and NeXtVLAD?

Key findings

  • The student model reduces FLOPs by approximately 90% and inference time by 30% compared to the full-frame teacher (skyline model) when using k=30 frames.
  • The student model outperforms the uniform sampling baseline (Uniform-k) in both mAP and GAP across all evaluated models, including NetVLAD and NeXtVLAD.
  • The best performance is achieved when combining $L_{rep}$ and $L_{pred}$ losses, with the serial training strategy yielding the most consistent results.
  • Matching intermediate representations during training provides no significant benefit over matching only the final representation, suggesting final representation alignment is sufficient.
  • The student model maintains near-skyline performance: mAP drops by only 0.9–2% and GAP by 0.5–0.9% when k=30, despite processing only a fraction of frames.
  • The method is effective across diverse architectures, including memory-efficient models like NeXtVLAD, demonstrating broad applicability.
(a) Training with $L_{rep}$
(a) Training with $L_{rep}$

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.