A Configurable and Efficient Memory Hierarchy for Neural Network Hardware Accelerator
Oliver Bause, Paul Palomero Bernardo, Oliver Bringmann
TL;DR
This paper tackles the memory bottleneck in neural network hardware accelerators by introducing a configurable, on-demand memory hierarchy that can have up to five levels plus an optional shift register. The approach leverages per-layer memory access patterns and a pattern-driven prefetching strategy, guided by loop-nest analyses, to minimize on-chip capacity while preserving throughput. Key contributions include a detailed architecture (input buffer, multi-level hierarchy, memory-control unit, pattern calculations, and an optional output shift register), verification via cocotb and a Python model, and a UltraTrail TC-ResNet case study showing up to $62.2\%$ chip-area reduction with only $2.4\%$ performance loss. The results demonstrate practical impact for reducing chip area and enabling flexible, pattern-aware memory management in DNN accelerators, with ongoing work targeting broader pattern support and energy optimizations.
Abstract
As machine learning applications continue to evolve, the demand for efficient hardware accelerators, specifically tailored for deep neural networks (DNNs), becomes increasingly vital. In this paper, we propose a configurable memory hierarchy framework tailored for per layer adaptive memory access patterns of DNNs. The hierarchy requests data on-demand from the off-chip memory to provide it to the accelerator's compute units. The objective is to strike an optimized balance between minimizing the required memory capacity and maintaining high accelerator performance. The framework is characterized by its configurability, allowing the creation of a tailored memory hierarchy with up to five levels. Furthermore, the framework incorporates an optional shift register as final level to increase the flexibility of the memory management process. A comprehensive loop-nest analysis of DNN layers shows that the framework can efficiently execute the access patterns of most loop unrolls. Synthesis results and a case study of the DNN accelerator UltraTrail indicate a possible reduction in chip area of up to 62.2% as smaller memory modules can be used. At the same time, the performance loss can be minimized to 2.4%.
