ELSE: Efficient Deep Neural Network Inference Through Line-Based Sparsity Exploration

Zeqi Zhu, Alberto García-Ortiz, Luc Waeijen, Egor Bondarev, Arash Pourtaherian, Orlando MoreiraECCV 2024

Introduction

Deep Neural Networks (DNNs) are increasingly deployed on edge devices such as smartwatches and mobile sensors. However, their high computational and power demands remain a significant barrier. While event-driven processors (neuromorphic hardware) offer a solution by processing only non-zero activations, current efficiency techniques face a trade-off. Activation suppression methods aim for sparsity within frames, while temporal suppression methods calculate only the changes between consecutive frames.

Although temporal methods are highly efficient, they impose a heavy "memory tax." To compute differences between frames, the hardware must store the entire previous activation map (the "state"). On many embedded chips, this state memory exceeds available on-chip SRAM, necessitating energy-expensive off-chip DRAM access. ELSE (Efficient Deep Neural Network Inference through Line-based Sparsity Exploration) addresses this by exploiting spatial correlations within a single activation map, providing the benefits of differential processing without the massive memory overhead.

Methodology: Spatial $\Delta$-$\Sigma$ Line Suppression

The core innovation of ELSE is the application of $\Delta$-$\Sigma$ modulation spatially rather than temporally. Instead of comparing frame $t$ to frame $t-1$, ELSE compares line $j$ to line $j-1$ within the same activation map.

Spatial Redundancy

Neighboring pixels in natural images—such as those representing a road or a vehicle—are highly correlated. By calculating the difference between adjacent lines, ELSE captures spatial redundancy that standard activation suppression misses. After quantization, these differences are often zero, leading to high sparsity.

Event Suppression Training

To maximize this effect, the authors introduce a specialized loss function during training. This function penalizes non-zero values in both the original activation maps and the line-based differential maps. This "teaches" the network to produce outputs that are inherently sparse in their spatial transitions.

Mixed-Strategy Mapping

Recognizing that different layers have varying memory and compute requirements, ELSE utilizes Integer Linear Programming (ILP) to determine the optimal strategy for each layer. A hybrid Mix(ELSE, Temporal) approach can be employed, using temporal suppression for smaller layers and ELSE for memory-intensive layers to remain within strict hardware memory budgets.

Evaluation and Results

The researchers evaluated ELSE on object detection (UA-DETRAC dataset) and human pose estimation (MPII dataset) using various architectures, including MobileNetV1/V2-SSD and ResNet-18/50.

Computational Efficiency

ELSE achieved a 3.14× to 6.49× reduction in event-triggered computations (MACs) for object detection compared to conventional processing. When compared to STAR, a state-of-the-art spatial suppression method, ELSE provided an average of 37% additional computation savings.

Figure 1: Comparison of conventional processing versus ELSE for car detection, showing a reduction from 1.22 to 0.19 GMAC/frame.

Memory Breakthrough

One of the most significant advantages of ELSE is its compatibility with depth-first inference. Because it only requires the previous line to calculate the current one, it allows hardware to deallocate memory quickly. In spatio-temporal mixed models, ELSE reduced the state memory footprint by over 2× compared to pure temporal methods.

Figure 4: Memory footprint analysis across various models and the performance of the Mixed-Strategy (ELSE, Temporal) approach.

Conclusion

ELSE demonstrates that the mathematical benefits of delta processing are not restricted to the temporal dimension. By shifting the focus to line-based spatial sparsity, ELSE achieves significant compute and memory savings, making high-performance DNNs more viable for memory-constrained edge devices. Future work may explore more complex spatial patterns or neural architecture search (NAS) specifically optimized for line-based suppression.

Summary updated

BibTeX
@inproceedings{zhu2024else,
  author = {Zeqi Zhu and Alberto García-Ortiz and Luc Waeijen and Egor Bondarev and Arash Pourtaherian and Orlando Moreira},
  title = {{ELSE: Efficient Deep Neural Network Inference Through Line-Based Sparsity Exploration}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73247-8\_24},
}
Figure