[Paper Review] AdaFrame: Adaptive Frame Selection for Fast Video Recognition
AdaFrame proposes a reinforcement learning-based frame selection framework that adaptively chooses informative video frames for fast video recognition. Using an LSTM with global memory to guide frame selection and policy gradient training, it achieves state-of-the-art accuracy with only 8.21 and 8.65 frames on FCVID and ActivityNet, reducing computation by up to 90.6% while maintaining performance.
We present AdaFrame, a framework that adaptively selects relevant frames on a per-input basis for fast video recognition. AdaFrame contains a Long Short-Term Memory network augmented with a global memory that provides context information for searching which frames to use over time. Trained with policy gradient methods, AdaFrame generates a prediction, determines which frame to observe next, and computes the utility, i.e., expected future rewards, of seeing more frames at each time step. At testing time, AdaFrame exploits predicted utilities to achieve adaptive lookahead inference such that the overall computational costs are reduced without incurring a decrease in accuracy. Extensive experiments are conducted on two large-scale video benchmarks, FCVID and ActivityNet. AdaFrame matches the performance of using all frames with only 8.21 and 8.65 frames on FCVID and ActivityNet, respectively. We further qualitatively demonstrate learned frame usage can indicate the difficulty of making classification decisions; easier samples need fewer frames while harder ones require more, both at instance-level within the same class and at class-level among different categories.
Motivation & Objective
- To reduce computational cost in video recognition without sacrificing accuracy by selecting only relevant frames per input video.
- To address the challenge of weakly-supervised video classification where frame importance is not explicitly labeled.
- To learn dynamic, input-dependent frame usage policies that adapt to video complexity and category difficulty.
- To enable adaptive inference at test time by predicting future utility of observing additional frames.
- To demonstrate that frame usage correlates with recognition difficulty across and within classes.
Proposed method
- AdaFrame employs an LSTM network augmented with a global memory module that stores context from downsampled video frames to guide frame selection.
- The model uses policy gradient reinforcement learning to train frame selection policies, maximizing a reward function that increases confidence with each additional frame.
- At each time step, the agent predicts the next frame to observe, generates a classification output, and computes the expected future utility of continuing inference.
- During inference, the model leverages predicted utility scores to decide when to stop, enabling adaptive lookahead that reduces computation.
- The global memory is constructed from a fixed number of downsampled frames, with ablation showing 16 frames as optimal for accuracy-overhead trade-off.
- A novel reward function is used that measures the improvement in ground-truth class confidence over time, encouraging selection of informative frames.
Experimental results
Research questions
- RQ1Can a reinforcement learning agent learn to select a minimal set of frames that maintain high recognition accuracy for diverse video inputs?
- RQ2How does the inclusion of global memory improve frame selection policy learning in weakly-supervised video recognition?
- RQ3To what extent does frame usage correlate with the intrinsic difficulty of video classification tasks?
- RQ4Can adaptive inference based on predicted utility outperform fixed or entropy-based stopping criteria?
- RQ5How does AdaFrame's performance compare to uniform sampling and other frame selection baselines on large-scale benchmarks?
Key findings
- AdaFrame achieves state-of-the-art mean average precision (mAP) on both FCVID and ActivityNet, matching or exceeding uniform sampling baselines while using only 8.21 and 8.65 frames on average, respectively.
- The framework reduces computational cost by 58.9% and 63.3% on average compared to uniform sampling on FCVID and ActivityNet, with peak savings reaching 90.6%.
- Frame usage varies significantly across categories and within the same class, with harder samples (e.g., videos with camera motion or cluttered backgrounds) requiring more frames to classify correctly.
- AdaFrame demonstrates flexibility by occasionally jumping backward in time (42.8% of videos on FCVID) to re-express past information, indicating effective temporal reasoning.
- Ablation studies confirm that the global memory improves performance, with 16 frames providing the best accuracy-overhead trade-off.
- The proposed reward function, which measures confidence gain over time, outperforms alternatives based solely on current prediction confidence or transition differences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.