BlockCopy: High-Resolution Video Processing with Block-Sparse Feature Propagation and Online Policies

Thomas Verelst, Tinne Tuytelaars

Abstract

High-resolution video processing using standard Convolutional Neural Networks (CNNs) is computationally expensive due to the redundant processing of static image regions. We present BlockCopy, a framework that accelerates inference by selectively executing computations only on dynamic regions. BlockCopy utilizes a block-sparse execution strategy and a lightweight policy network trained via online reinforcement learning. By leveraging an "Information Gain" reward signal, the system adapts to specific video streams without requiring ground-truth annotations, achieving significant speedups with minimal accuracy loss across tasks like pedestrian detection and instance segmentation.

1. Introduction

Modern video analysis often treats frames as independent entities, ignoring the massive temporal redundancy inherent in video streams. In high-resolution footage, such as that from autonomous driving sensors, large portions of the frame (backgrounds, stationary objects) remain unchanged between consecutive frames. While existing methods attempt to exploit this via optical flow or pixel-wise sparse convolutions, they often introduce high computational overhead or struggle with hardware acceleration on standard GPUs.

BlockCopy addresses these challenges by introducing a practical, block-level sparse execution framework. It avoids the complexities of optical flow and the inefficiencies of pixel-level sparsity, providing a deployable solution for real-time high-resolution video processing.

2. Methodology

2.1 Block-Sparse Execution

BlockCopy optimizes a frozen, pre-trained "task network" (e.g., Mask R-CNN or DeepLabV3+) by partitioning the input frame into a grid of blocks. Instead of a full forward pass, the system employs custom CUDA operations to perform convolutions only on a subset of these blocks. For the remaining blocks, the network propagates (copies) feature maps from the previous frame. This approach significantly reduces the total number of floating-point operations (FLOPs) while remaining compatible with standard GPU architectures.

2.2 The Policy Network

To decide which blocks require computation and which can be copied, BlockCopy employs a lightweight policy network—a small 8-layer ResNet. This network processes the current frame, the state of the previous frame, and previous outputs to generate a binary decision (execute vs. transfer) for each block in the grid.

2.3 Online Reinforcement Learning and Information Gain

Because the binary decision-making process is non-differentiable, the policy network is trained using the REINFORCE algorithm. A critical innovation is the use of Information Gain as a reward signal. Information Gain measures the difference in the task network's output when a block is executed versus when it is copied.

If executing a block leads to a change in the output (e.g., a new bounding box appears or an object moves), the policy receives a positive reward. If the output remains identical, the policy is penalized for the wasted computation. This self-distilled, label-free training allows the policy to adapt to new environments on-the-fly during deployment.

3. Experimental Setup

The framework was evaluated on high-resolution driving datasets, specifically Cityscapes (for instance and semantic segmentation) and CityPersons (for pedestrian detection). It is important to note that while ground-truth labels were used for final accuracy benchmarking, they were not required for the online training of the BlockCopy policy network.

4. Results and Discussion

4.1 Efficiency and Accuracy

BlockCopy demonstrates a favorable trade-off between computational cost and task performance:

  • Pedestrian Detection: Using a 30% compute target, BlockCopy reduced inference time from 0.330s to 0.151s per frame with only a 0.4% increase in miss rate.
  • Instance Segmentation: Integration with Mask R-CNN improved processing speeds from 6.7 FPS to 11.0 FPS, with a negligible drop in Average Precision (31.7 AP vs. 32.0 AP baseline).
  • Semantic Segmentation: The method achieved competitive mIoU against optical-flow-based baselines while maintaining significantly lower latency.

4.2 Controllable Compute Budgets

The reward function incorporates a target cost parameter ($\tau$), allowing users to define a specific computational budget. The policy network dynamically adjusts its execution threshold to meet this target, providing a flexible mechanism for balancing performance and power consumption.

4.3 Hardware Considerations

By operating at the block level rather than the pixel level, BlockCopy avoids the overhead typically associated with sparse convolutions. This makes the framework particularly effective for high-resolution tasks where the savings from skipped convolutions far outweigh the 10-30ms overhead introduced by the policy network.

5. Conclusion and Future Work

BlockCopy provides a robust framework for accelerating high-resolution video processing through intelligent feature propagation. Its primary strength lies in its ability to adapt to specific video streams without manual labeling. While most effective in scenarios with relatively stable backgrounds, such as fixed-camera surveillance or highway driving, its online adaptation capabilities suggest broad utility in real-time robotics and edge computing. Future research may explore extending this block-sparse logic to more diverse architectures and highly dynamic camera environments.

Summary updated

BibTeX
@inproceedings{verelst2021blockcopy,
  author = {Thomas Verelst and Tinne Tuytelaars},
  title = {{BlockCopy: High-Resolution Video Processing with Block-Sparse Feature Propagation and Online Policies}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00511},
}
Figure