[Paper Review] A Simple Method to Reduce Off-chip Memory Accesses on Convolutional Neural Networks
This paper proposes a simple, on-chip memory-aware algorithm to drastically reduce off-chip memory accesses in neural processing units (NPUs) for convolutional neural networks. By detecting multi-branch modules (e.g., Inception blocks), reordering branches for optimal on-chip memory reuse, and intelligently managing feature-map buffering, the method reduces off-chip memory access by 97.59% in terms of data volume and by a factor of 50 in access count for Inception-V3 on Samsung's NPU.
For convolutional neural networks, a simple algorithm to reduce off-chip memory accesses is proposed by maximally utilizing on-chip memory in a neural process unit. Especially, the algorithm provides an effective way to process a module which consists of multiple branches and a merge layer. For Inception-V3 on Samsung's NPU in Exynos, our evaluation shows that the proposed algorithm makes off-chip memory accesses reduced by 1/50, and accordingly achieves 97.59 % reduction in the amount of feature-map data to be transferred from/to off-chip memory.
Motivation & Objective
- To reduce energy consumption and improve real-time performance in NPUs by minimizing off-chip memory accesses.
- To address the bottleneck of high off-chip memory bandwidth and energy cost in mobile NPU deployments.
- To maximize utilization of limited on-chip SRAM by intelligently managing feature-map storage across multi-branch convolutional modules.
- To develop a lightweight, hardware-agnostic algorithm compatible with existing NPU architectures and quantized networks.
Proposed method
- The method detects multi-branch modules (e.g., Inception blocks) in a CNN via graph-based network interpretation, ignoring long skip-connections.
- It reorders branches based on required memory size per branch to prioritize larger memory needs early, maximizing on-chip SRAM utilization.
- It assigns multiple input feature-maps (MIFM) and multiple output feature-maps (MOFM) to be reused across modules, reducing redundant off-chip transfers.
- It employs two branch-processing strategies: BrProcessing(I) for on-chip reuse and BrProcessing(II) for off-chip access when on-chip space is insufficient.
- The algorithm uses size-based criteria: if required memory size (size_req) exceeds available memory (size_avail), off-chip access is triggered.
- It assumes 8-bit quantized weights and feature-maps, focusing on memory access reduction without altering network precision or structure.
Experimental results
Research questions
- RQ1Can on-chip memory reuse be systematically exploited to reduce off-chip memory access in multi-branch CNN modules?
- RQ2How can branch ordering and memory allocation strategies minimize off-chip data transfers in NPUs?
- RQ3To what extent can feature-map reuse across modules reduce total off-chip memory bandwidth in real-world models like Inception-V3?
- RQ4What is the maximum achievable reduction in off-chip memory access for a given on-chip memory budget in a mobile NPU?
Key findings
- The proposed method reduced off-chip memory access for feature-maps by 97.59% in terms of data volume on Inception-V3.
- The number of off-chip memory accesses was reduced by a factor of 50, from 200 to 4 accesses per module on average.
- Only two modules—reduction-a and Inception-b1—required residual off-chip access due to memory constraints, with 3 and 1 accesses respectively.
- The algorithm achieved a 47.14% reduction in total off-chip memory access volume across all 11 modules in Inception-V3.
- The method effectively reduced feature-map data transfers while maintaining the same weight access pattern, relying solely on memory management.
- The approach is hardware-agnostic and compatible with 8-bit quantized networks, making it suitable for mobile NPUs with limited on-chip SRAM.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.