NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Memory Utilization in Convolutional Neural Network Accelerators

Petar Jokic, Stéphane Emery, Luca Benini · DOI

Abstract: Modern Convolutional Neural Network (CNN) accelerators are heavily constrained by on-chip SRAM capacity, which dictates chip area and power efficiency. This paper presents a mathematical memory mapping technique that allows for the overlapping of input and output activation buffers between consecutive layers. By calculating a minimum safe offset between read and write pointers based on convolution parameters, the proposed method achieves up to 48.8% reduction in activation memory and 20% system power savings on FPGA hardware without significant logic overhead.

Introduction

Modern CNNs are massive, and their memory footprint—comprising both parameters (weights) and activations (intermediate data)—is a primary bottleneck for edge devices. To minimize energy consumption, hardware accelerators aim to store this data in on-chip SRAM to avoid the high power cost of external DRAM access. However, SRAM is expensive in terms of silicon area and leakage power.

Traditionally, designers utilize a "ping-pong" buffering strategy where Layer N's outputs are written to one memory region, while Layer N+1 reads them as inputs and writes its own outputs to a separate region. While this ensures data integrity, it is highly inefficient as it effectively doubles the required activation memory.

Overlapping Memory Mapping

The researchers propose a memory mapping method that allows the memory regions of consecutive layers to overlap. This approach leverages the spatial locality of convolution operations: once a specific input pixel has been processed by the sliding window for the final time, it is no longer required for the current layer's computation. Consequently, the output pointer can begin overwriting the input data almost immediately.

Comparison of traditional ping-pong mapping versus the proposed overlapping mapping.

Mathematical Model and Pointer Velocity

The core of the innovation is a mathematical model that tracks the "velocity" of memory pointers. During a convolution, an input pointer ($p_r$) reads data in a sliding window, and an output pointer ($p_w$) writes the results. The researchers derived equations to calculate the exact minimum "offset" (distance) required between these pointers to ensure the output never overwrites an input that is still needed for a pending calculation.

This model accounts for several critical factors:

  • Kernel size ($K_x, K_y$)
  • Stride ($s_x, s_y$)
  • Padding ($P_x, P_y$)
  • Depth-first data storage order
Visualization of read ($p_r$) and write ($p_w$) pointers at different time steps, showing how output data overwrites input data that is no longer needed.

Experimental Evaluation

The authors evaluated their model using four real-world CNN architectures: the DLIB face detector, YOLO lite, DMCNN-VD (a high-resolution de-noising network), and MobileNetv2. To validate the theory in a live system, they implemented the DLIB face detector on a FastEye FPGA-based camera (Xilinx Kintex-7), comparing the traditional ping-pong approach against their proposed overlapping method.

Key Results and Hardware Validation

The results demonstrate that the theoretical maximum savings of 50% are nearly achievable in high-resolution tasks. Key findings include:

  • Activation Memory Savings: Reductions ranged from 19.6% to 48.8% across the tested networks.
  • Total Memory Savings: Including constant parameters, total on-chip memory reduction reached up to 48.2% for the DMCNN-VD network.
  • FPGA Performance: On the FastEye camera, the overlapping method reduced Block RAM (BRAM) utilization by 23% and total system power consumption by 20%.
  • Logic Overhead: The number of Look-Up Tables (LUTs) and Flip-Flops (FFs) remained nearly constant, proving that the memory savings do not necessitate complex processing logic.

Conclusion and Future Work

This memory mapping technique offers a hardware-agnostic way to improve CNN efficiency by simply updating address generation logic. While highly effective for sequential layers, future work is needed to address the complexities of residual (skip) connections, where identity data must be held in parallel. Additionally, the authors suggest exploring further optimizations for depthwise separable convolutions where weight parameters currently dominate the memory footprint.

Summary updated

BibTeX
@article{jokic2020improving,
  author = {Petar Jokic and Stéphane Emery and Luca Benini},
  title = {{Improving Memory Utilization in Convolutional Neural Network Accelerators}},
  journal = {IEEE Embed. Syst. Lett.},
  year = {2020},
  doi = {10.1109/les.2020.3009924},
}
Figure