Region Masking to Accelerate Video Processing on Neuromorphic Hardware

Sreetama Sarkar, Sumit Bam Shrestha, Yue Che, Leobardo Campos-Macias, Gourav Datta, Peter A. Beerel

TL;DR

While Spiking Neural Networks (SNNs) using sigma-delta encoding excel at cutting out temporal redundancy in video processing, they still waste energy computing insignificant spatial events. This paper introduces an input region masking strategy that combines static, dataset-derived masks with dynamic, frame-by-frame attention masks to skip unimportant regions entirely. Deployed on Intel's Loihi 2 neuromorphic processor, this approach cuts the energy-delay product by up to 1.65× with just a ~1.09% drop in detection accuracy.

What Problem Does This Paper Address?

Edge video processing on resource-constrained devices (like wearables or drones) demands ultra-low latency and extreme energy efficiency. Spiking Neural Networks (SNNs) implemented on neuromorphic hardware are a promising solution because they process information using sparse, event-driven "spikes."

To save energy, state-of-the-art SNNs often use sigma-delta encoding, which exploits temporal redundancy by only transmitting and computing pixels that have changed from the previous frame. However, a major gap remains: even if a pixel changes, that change might be completely irrelevant to the task at hand (e.g., rustling leaves in the background of a traffic scene). Current SNNs still waste significant computation and data movement processing these insignificant events. The authors set out to eliminate this waste by filtering out unimportant spatial regions right at the input layer.

Methods

The authors propose a hardware-aware input region masking framework that decides which patches of a video frame to process and which to skip. The core innovation lies in combining two distinct types of masks:

  1. Static Mask ($Mask_{stat}$): Built offline from the training dataset, this mask creates a statistical heatmap of where objects typically appear (e.g., roads and lanes in driving datasets). It ensures spatial consistency across consecutive frames, which keeps hardware data movement minimal.
  2. Dynamic Mask ($Mask_{dyn}$): Because static masks can miss unexpected objects, a lightweight Mask Generator Network (MGNet) processes a downsampled version of the current frame in real-time. MGNet uses a single transformer block and a self-attention layer to compute attention scores for non-overlapping $p \times p$ patches, dynamically flagging regions of interest (RoIs).

The final input mask is a union of the static and dynamic masks.

The overall pipeline integrates this masking module directly into an inference loop on the Intel Loihi 2 neuromorphic chip, feeding the masked frames into a customized, quantized Tiny-YOLOv3 architecture optimized for spiking hardware (YOLO-KP).

Fig. 1. Inference pipeline on Loihi 2 using region masking. The Region Masking module applies masking to the RGB frames generated by the Data Generator and transmits the masked frame to the Quantizer module for further processing.

Datasets

The approach was evaluated using three standard video object detection benchmarks:

  • KITTI Tracking: An autonomous driving dataset spanning 9 object categories.
  • BDD100K: A diverse driving dataset featuring 11 object categories.
  • ImageNet-VID: A large-scale, general object detection video dataset.

Key Insights and Ideas

  • The Sigma-Delta Dynamic Masking Dilemma: A fascinating "aha" moment in the paper highlights a unique quirk of neuromorphic hardware. While dynamic masking yields the best accuracy, it actually provides limited hardware efficiency when used alone. Because a dynamic mask changes boundaries frame-by-frame, it inadvertently introduces artificial "delta events" (spikes) to nullify old regions and activate new ones.
  • The Power of the Union: By combining the static mask (which anchors consistency) with the dynamic mask (which handles surprises), the authors successfully balanced accuracy and hardware efficiency, mitigating the communication overhead caused by purely dynamic masking.
  • Sparsity Propagation: Inducing sparsity at the very first layer doesn't just save input bandwidth; it cascades through the network. The paper demonstrates that masking the input significantly drops the event rate across all subsequent intermediate layers of the SNN.
Fig. 3. Layerwise event-rate for different input mask sparsity on ImageNet-VID using Tiny-YOLO. This demonstrates how inducing sparsity at the input propagates to the intermediate layers.

Key Results

The combined masking strategy ($Mask_{stat+dyn}$) was benchmarked on physical Loihi 2 hardware:

  • KITTI: Masking ~58% of the input frame reduced the Energy-Delay Product (EDP) by 1.65× and boosted throughput by 1.22× (from 436 to 534 samples/second), with an accuracy ([email protected]) degradation of only 1.09%.
  • BDD100K: At 61% input sparsity, the system achieved a 1.4× improvement in EDP with less than a 1% drop in mAP.
  • Efficiency of the Masker: The MGNet overhead is remarkably low, costing only 0.161 GMACs—roughly 15% of the primary YOLO-KP network's computational cost.
Fig. 4. (From left) The input frame before masking, input frame after masking and the delta-encoded frames for static (first row), dynamic (second row) and combined (third row) masking. Dynamic masking shows a few additional patches in the delta-encoded frame (second row right image), which leads to increased computational cost.

Limitations and Future Work

Despite the impressive gains, the authors note that the current implementation on Loihi 2 hits an inter-chip communication bottleneck when handling the dynamic mask updates. Preliminary analysis suggests that future neuromorphic generations with optimized sequencing could unlock up to a 3.8× improvement in runtime and a 9.35× improvement in EDP.

Additionally, the current method still requires the camera to capture and transmit the full frame before it is masked. The authors suggest that a compelling future direction is to move this masking logic directly onto reconfigurable CMOS image sensors, eliminating the readout energy for skipped patches entirely at the hardware level.

Summary updated

Abstract

The rapidly growing demand for on-chip edge intelligence on resource-constrained devices has motivated approaches to reduce energy and latency of deep learning models. Spiking neural networks (SNNs) have gained particular interest due to their promise to reduce energy consumption using event-based processing. We assert that while sigma-delta encoding in SNNs can take advantage of the temporal redundancy across video frames, they still involve a significant amount of redundant computations due to processing insignificant events. In this paper, we propose a region masking strategy that identifies regions of interest at the input of the SNN, thereby eliminating computation and data movement for events arising from unimportant regions. Our approach demonstrates that masking regions at the input not only significantly reduces the overall spiking activity of the network, but also provides significant improvement in throughput and latency. We apply region masking during video object detection on Loihi 2, demonstrating that masking approximately 60% of input regions can reduce energy-delay product by 1.65x over a baseline sigma-delta network, with a degradation in [email protected] by 1.09%.
BibTeX
@inproceedings{sarkar2025region,
  author = {Sreetama Sarkar and Sumit Bam Shrestha and Yue Che and Leobardo Campos-Macias and Gourav Datta and Peter A. Beerel},
  title = {{Region Masking to Accelerate Video Processing on Neuromorphic Hardware}},
  booktitle = {ISQED},
  year = {2025},
  doi = {10.1109/isqed65160.2025.11014411},
}
Figure