Introduction
Video recognition has long been a computationally intensive task, primarily due to the high-dimensional nature of video data. While significant research has focused on mitigating temporal redundancy—identifying and skipping frames that contribute little to the overall understanding of an action—the issue of spatial redundancy remains largely unaddressed. In a typical video frame, the relevant action is often confined to a small, localized region, while the surrounding background remains static or irrelevant. Processing these non-informative pixels at high resolution leads to substantial computational waste.
To address this, the AdaFocus (Adaptive Focus) framework introduces a "glance-and-focus" mechanism. By utilizing a lightweight network to identify task-relevant regions and a high-capacity network to process only those specific patches, AdaFocus achieves state-of-the-art accuracy with significantly reduced computational overhead.
The AdaFocus Framework
The core philosophy of AdaFocus is to allocate computational resources where they matter most. The pipeline consists of four primary components that work in tandem to process video sequences efficiently.
1. Global "Glance" Network ($f_G$)
The process begins with a lightweight Global CNN, such as MobileNet-V2. This network takes a downsampled version of the full frame to extract coarse global features. This "glance" provides the context necessary to understand the general scene and identify potential areas of interest without the cost of high-resolution processing.
2. Recurrent Policy Network ($\pi$)
Because objects in videos typically move in a continuous and predictable manner, AdaFocus employs a Gated Recurrent Unit (GRU) as its policy network. The GRU takes the features from the Global CNN and determines the optimal coordinates for a high-resolution patch to be cropped from the current frame. By maintaining a hidden state across frames, the policy network can effectively track moving subjects and maintain spatial consistency.
3. Local "Focus" Network ($f_L$)
Once the policy network selects a region, a high-capacity Local CNN (e.g., ResNet-50) processes only that small, high-resolution patch. Since a $96 \times 96$ patch requires only approximately 18% of the FLOPs needed for a standard $224 \times 224$ frame, this targeted approach yields massive efficiency gains.
4. Feature Fusion and Classification ($f_C$)
Finally, the framework aggregates features from both the global "glance" and the local "focus" across all frames. This fusion ensures that the model retains both the fine-grained details of the action and the broader context of the environment. Reusing the "glance" features for classification has been shown to improve accuracy by 1-1.5% without additional cost.
Training via Reinforcement Learning
A significant challenge in this architecture is that the cropping operation is non-differentiable, preventing standard backpropagation through the coordinate selection process. To overcome this, the authors utilize Proximal Policy Optimization (PPO), a reinforcement learning algorithm. The policy network is rewarded based on its ability to select patches that increase the model's confidence in the correct label. The training process is structured in three stages: a warm-up phase, RL-based policy training, and final fine-tuning of the entire system.
AdaFocus+: Combining Spatial and Temporal Efficiency
Building upon the base model, the authors introduced AdaFocus+. This version incorporates an additional policy network designed to detect temporal redundancy. It decides whether to skip the "focus" step entirely for frames that are deemed uninformative, further optimizing the balance between accuracy and speed. This demonstrates that spatial focus and temporal skipping are complementary strategies.
Experimental Evaluation
The performance of AdaFocus was validated across five diverse video recognition benchmarks: ActivityNet-v1.3, FCVID, Mini-Kinetics, and Something-Something (V1 & V2). These datasets cover a wide range of scenarios, from untrimmed long-form videos to fine-grained human-object interactions.
Key Results
- Efficiency Gains: On the ActivityNet dataset, AdaFocus achieved a mean Average Precision (mAP) of 75.0% using only 26.6 GFLOPs. This outperforms existing methods like AR-Net, which requires 33.5 GFLOPs for a lower mAP of 73.8%.
- Temporal Integration: When combined with the Temporal Shift Module (TSM), AdaFocus-TSM maintained baseline accuracy while providing a 1.5x reduction in GFLOPs and a 1.3x practical speedup on mobile CPU hardware.
- AdaFocus+ Performance: By integrating temporal skipping, AdaFocus+ achieved computation reductions of 2.1x to 3.2x compared to AR-Net while maintaining competitive accuracy levels.
Discussion and Limitations
While AdaFocus provides massive theoretical FLOPs reduction, the authors note that practical speedups on GPUs are currently lower than the theoretical gains. This is because modern GPUs are optimized for large, contiguous tensor operations rather than processing small, varying patches. Additionally, the three-stage training process is more complex than standard end-to-end supervised learning.
Conclusion
AdaFocus demonstrates that spatial redundancy is a significant and largely untapped resource for video recognition optimization. By intelligently focusing on relevant regions, the framework achieves a superior accuracy-efficiency trade-off compared to purely temporal methods. Future work may focus on optimizing these operations for specialized hardware and exploring methods to handle multiple informative regions simultaneously.
Summary updated