Abstract: Deep convolutional networks have recently achieved great success in video recognition, yet their practical realization remains a challenge due to the large amount of computational resources required to achieve robust recognition. Motivated by the effectiveness of quantization for boosting efficiency, in this paper, we propose a dynamic network quantization framework, that selects optimal precision for each frame conditioned on the input for efficient video recognition. Specifically, given a video clip, we train a very lightweight network in parallel with the recognition network, to produce a dynamic policy indicating which numerical precision to be used per frame in recognizing videos. We train both networks effectively using standard backpropagation with a loss to achieve both competitive performance and resource efficiency required for video recognition. Extensive experiments on four challenging diverse benchmark datasets demonstrate that our proposed approach provides significant savings in computation and memory usage while outperforming the existing state-of-the-art methods.
Introduction
Deep learning models for video recognition are notoriously resource-intensive. While 2D and 3D CNNs have achieved high accuracy, their computational and memory requirements make deployment on edge devices like smartphones or IoT cameras difficult. Most efficiency research focuses on architecture design or frame sampling, but these methods typically use standard 32-bit floating-point precision for every processed frame.
We argue that this is wasteful. In a video of a "Long Jump," the moment of the jump is highly informative and deserves high precision, while frames of the athlete walking are redundant and can be processed at lower bit-widths or skipped entirely. To address this, we introduce VideoIQ (Video Instance-aware Quantization), a framework that dynamically chooses the optimal bit-precision for every frame.
Methodology
VideoIQ consists of two main components working in tandem to achieve instance-aware efficiency:
- The Policy Network: A lightweight "manager" (MobileNetV2 + LSTM) that analyzes a low-resolution version of the video. For each frame, it outputs a discrete decision: 32-bit, 4-bit, 2-bit, or Skip (0-bit).
- The Any-Precision Recognition Network: A single backbone (e.g., ResNet-50) trained to be "bit-flexible." Instead of storing multiple models, VideoIQ uses a single set of weights and achieves lower precision by truncating the least significant bits of weights and activations.
Technical Innovations
- Differentiable Policy Learning: We use the Gumbel-Softmax trick to make discrete bit-width selection end-to-end trainable via standard backpropagation.
- Joint Training & Distillation: The model is trained with a multi-objective loss balancing accuracy and FLOPs. Knowledge Distillation from a pre-trained 32-bit "teacher" model helps guide the lower-precision "student" versions to maintain performance.
Experiments and Results
We evaluated VideoIQ on four diverse benchmarks: ActivityNet-v1.3, FCVID, Mini-Sports1M, and Mini-Kinetics. VideoIQ consistently outperformed uniform baselines and state-of-the-art dynamic inference methods like AR-Net and AdaFuse.
- Accuracy vs. Efficiency: On ActivityNet, VideoIQ achieved 74.8% mAP using only 28.1 GFLOPs. In contrast, a standard 32-bit uniform model achieved lower accuracy (72.5%) while requiring more than double the computation (65.8 GFLOPs).
- Memory Savings: By using a single any-precision network rather than multiple specialized models, VideoIQ reduced memory usage by approximately 55.8% compared to competitive baselines.
Key Insights
- Precision as a Learnable Dimension: Bit-width should be a dynamic, per-instance decision based on visual content rather than a static hyperparameter.
- Confidence Effect: Qualitatively, the model often uses high precision at the start of a video to identify the action. Once it becomes confident, it automatically drops precision for remaining frames to save energy.
- Policy Transferability: Policy networks trained on one dataset perform well on others, suggesting the model learns a general concept of "visual informativeness."
Conclusion and Future Work
VideoIQ demonstrates that dynamic quantization provides significant savings in computation and memory while maintaining or improving accuracy. While theoretical savings are substantial, future work will focus on hardware acceleration, as current commodity GPUs are not yet optimized for per-frame bit-precision switching. Additionally, exploring layer-wise quantization within a single frame could yield even higher efficiency gains.
Summary updated