Introduction
State-of-the-art deep learning models, such as GoogLeNet or VGG, have revolutionized object recognition but remain computationally prohibitive for real-time video classification. While these "oracle" models can identify thousands of classes, they are often overkill for specific video segments. This paper introduces Windowed $\epsilon$-Greedy (WEG), an algorithm designed to exploit the inherent "short-term class skew" in video streams to achieve significant speedups with minimal accuracy loss.
The Problem: Global Diversity vs. Local Skew
Traditional classification speed-up methods, like the Viola-Jones cascade, rely on permanent data biases (e.g., the prevalence of background over faces). However, general object recognition lacks a single dominant global class. The authors observe that while the global distribution of objects is diverse, local temporal windows are highly skewed. A five-minute scene in a kitchen, for instance, will repeatedly feature a tiny subset of possible objects like plates and cutlery.
As shown in Figure 1, the authors found that in over 90% of 1-minute video windows, 90% of the objects belong to a set of 25 or fewer classes. The challenge lies in identifying and exploiting this skew dynamically without manual intervention.
Methodology: The Oracle Bandit Problem
The authors frame this challenge as the Oracle Bandit Problem (OBP). In this variation of the multi-armed bandit problem, one "arm" is an expensive oracle model that provides ground truth, which is then used to train and validate "cheap" specialized models (the other arms).
Their solution, Windowed $\epsilon$-Greedy (WEG), operates in three distinct phases:
- Window Initialization: The heavy oracle model runs on a small window of frames to identify currently dominant classes.
- Template Selection: The system estimates if a "compact" model (a pared-down architecture) can achieve sufficient accuracy on these specific classes. If viable, it performs a "fast retrain" of the final layers in seconds.
- Specialized Classification: The compact model acts as a front-end cascade. If it predicts a dominant class with high confidence, the system exits early. Otherwise, it falls back to the oracle. To account for scene changes (non-stationarity), the algorithm occasionally invokes the oracle ($\epsilon$-greedily) to verify the skew.
Key Results and Ablation
The WEG algorithm delivers massive efficiency gains across various hardware and tasks. In face recognition tasks, it achieved end-to-end speedups of 2.4–7.8x on GPUs and 2.6–11.2x on CPUs compared to standard models like VGGFace. In real-world tests on television shows, the system maintained accuracy within 1% of the oracle baseline.
An ablation study (Figure 6) highlights that the success of WEG is not due to any single trick but the combination of adaptive windowing and dynamic training skew. Simpler strategies, such as "simple exit" or fixed windows, either suffer from significant accuracy drops or fail to provide meaningful speedups.
Conclusion
By recognizing that video content is locally redundant, the WEG algorithm allows for the deployment of tiny, specialized models that can outperform general-purpose oracles in specific contexts. While the system currently requires a skew to last approximately 20 seconds to offset retraining overhead, it represents a major step toward bringing heavyweight deep learning capabilities to real-time, resource-constrained environments.
Summary updated