[Paper Review] CBinfer: Change-Based Inference for Convolutional Neural Networks on Video Data
This paper proposes CBinfer, a change-based inference method for convolutional neural networks (CNNs) on video from static cameras, which exploits spatio-temporal sparsity of pixel changes to accelerate processing. By selectively computing only on changed regions across frames, it achieves 8.6× speedup over cuDNN with <0.1% accuracy loss and 10× higher energy efficiency (328 GOp/s/W) on the Tegra X1 platform, enabling real-time CNN inference on embedded systems without retraining.
Extracting per-frame features using convolutional neural networks for real-time processing of video data is currently mainly performed on powerful GPU-accelerated workstations and compute clusters. However, there are many applications such as smart surveillance cameras that require or would benefit from on-site processing. To this end, we propose and evaluate a novel algorithm for change-based evaluation of CNNs for video data recorded with a static camera setting, exploiting the spatio-temporal sparsity of pixel changes. We achieve an average speed-up of 8.6x over a cuDNN baseline on a realistic benchmark with a negligible accuracy loss of less than 0.1% and no retraining of the network. The resulting energy efficiency is 10x higher than that of per-frame evaluation and reaches an equivalent of 328 GOp/s/W on the Tegra X1 platform.
Motivation & Objective
- To enable real-time, energy-efficient CNN inference on high-resolution video for embedded systems with limited power and compute.
- To address the challenge of high computational cost in CNN inference for video surveillance and similar applications.
- To exploit spatio-temporal sparsity in pixel changes from static cameras to reduce redundant computation.
- To achieve significant speedup and energy efficiency gains without retraining the network or sacrificing accuracy.
- To demonstrate feasibility of on-device, near-sensor processing for applications like smart surveillance and UAV monitoring.
Proposed method
- The method performs change-based inference by detecting pixel changes between consecutive frames using a thresholded difference operation.
- It propagates changes through each convolutional layer by computing only the output updates for changed input regions, avoiding full-layer recomputation.
- A matrix multiplication-based approach computes updated feature maps using the changed input patches and corresponding filters, leveraging cuBLAS for GPU-optimized computation.
- Change detection is applied at every layer to maintain accuracy and prevent error propagation, with thresholds tuned to minimize misclassification.
- The algorithm processes only the changed pixels in each layer, significantly reducing the number of multiply-accumulate operations.
- The framework is implemented on GPU using optimized kernels and integrates seamlessly with existing CNN inference pipelines.
Experimental results
Research questions
- RQ1Can spatio-temporal sparsity in pixel changes from static cameras be exploited to accelerate CNN inference without retraining?
- RQ2What is the maximum achievable speedup and energy efficiency gain using change-based inference compared to full-frame processing?
- RQ3How does change propagation affect accuracy, and what thresholds ensure negligible accuracy loss?
- RQ4Can the method maintain high throughput while reducing computational load on embedded platforms?
- RQ5What is the trade-off between throughput and accuracy when adjusting change detection parameters?
Key findings
- CBinfer achieves an average speed-up of 8.6× over a cuDNN baseline on a realistic urban video surveillance benchmark with less than 0.1% accuracy loss.
- The energy efficiency is improved by 10×, reaching 328 GOp/s/W on the Tegra X1 platform, compared to 32.0 GOp/s/W for the baseline.
- The computational overhead of change detection is minimal, accounting for only 22% of the total time in Layer 3, and is outweighed by the gains from reduced computation.
- Change detection at every layer reduces the number of changed pixels by 6.8× in Layer 2 (from 7.57% to 1.11%) and 1.33× in Layer 3 (from 2.58% to 1.94%).
- The majority of compute time shifts to later layers (polling and classification), which now account for 36% of total time, indicating new optimization targets.
- The method maintains high GPU utilization by focusing computation on changed regions, with the GPU fully loaded on multiply-accumulate operations for updated outputs.
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.