Chips & architecture · Research feature

High Utilization Energy-Aware Real-Time Inference Deep Convolutional Neural Network Accelerator

A new deep learning accelerator reduces data access and boosts energy efficiency by reusing layer outputs and optimizing data flow in edge devices.

Adapted from research by Kuan-Ting Lin, Ching-Te Chiu, Jheng-Yi Chang and colleagues.

arXiv preprint revision · 2025-09-06 · Attribution & reuse
In this article
Fig. 7: System overview of the proposed accelerator and methods.
Fig. 7: System overview of the proposed accelerator and methods.

Editor’s introduction

The study evaluates a real-time inference accelerator designed for deep convolutional neural networks, focusing on energy efficiency, hardware utilization, and computation speed. It compares the proposed design to state-of-the-art models including VGG16 and MobileNet, measuring reductions in external DRAM access and improvements in hardware utilization.

INTRODUCTION

Since the large energy cost of GPU, many research of CNN accelerator design have been conducted. The first CNN accelerator is implement on the FPGA board, but with the limited performance. Then, uses loop-tiling technique to optimize the performance and the communication to computation ratio for the accelerator and use the roofline model for find out the best tiling factors in loop tiling. In the family of DianNao, they use the internal buffer to reduce the of chip data access for decrease the energy consumption. In use the ping-pong SRAM to reduce the data access amount from external memory. The most important, shows that if we want to optimize convolution, not only design the hardware accelerator but the model structure.

The rest of this thesis is organized as follows: Chapter II describes the basic of CNN, some prior works and the embedded CNN structure. Chapter III introduces the proposed accelerator architecture and the proposed methods. Chapter IV the theoretical evaluation and the implementation of proposed accelerator have been provided. Finally, Chapter V presents our conclusions.

Proposed Methods

In this chapter, we describe the proposed accelerator system architecture and all methods we use for reduce DRAM data access amount and maintain the high utilization of hardware resource. In section III-A, we present our proposed methods and techniques to improve the energy efficiency, keep the high hardware utilization and make our system more flexible to support different kernel sizes and strides. In section III-B, we give an overview of the proposed system architecture and talk about our design concept. In section III-C, we introduce the important hardware component of our system.

Proposed Methods

We notice that the key factor to improve the computation performance is to improve the hardware utilization of the convolution core module as much as possible. Therefore, we proposed ring streaming dataflow and input channel decomposition techniques to maintain the high utilization. On the other hand, we proposed the loop tiling and reuse strategy to optimize our parameters of hardware resource and reduce the data access amount.

Loop Tiling

Different tiling factors pairs will produce different computation performance and data access amount. The appropriate tiling factors pairs can increase the computation efficiency and data reuse, so we integrate the reuse strategy in section III-A2 and simulate all possible factor pairs to find out the highest computation performance with the lower data access amount with a program.

Tiling Factor

We use the loop tiling technique and output reuse strategy to research optimal tiling factors with the limitation of MAC number smaller than 1152. Then use the program to find the pair of factors, have highest computation performance with the lowest data access amount of each convolution layers in RGBD eCNN. As shown in table I.

For the bank number of each SRAM, according to the tiling factors, each SRAM in data unit needs 32 banks to store the data by channel parallelly. In addition, the proposed data init use two same size feature SRAM (FSRAM) to build up ping-pong FSRAM.

Input Channel Decomposition

Convolution layer 1 with only three input channels is a big issue for CNN accelerator utilization. In order to maintain high utilization in layer 1, we propose the input channel decomposition technique. Input channel decomposition can be divided into two steps, using the size tiling factor that we introduce in section III-A1 to split convolution into several tasks then assign these tasks to each process element array column as evenly as possible.

System Overview

As shown in table II, RGBD eCNN has been quantized from 32 bits to 8 bits to reduce the data access amount and the SRAM size. And we quantized the VGG-16 from 32 bits to 8 bits and only decreased 0.54% accuracy. Therefore, we set the bit width of convolution of the proposed accelerator to 8 bits.

Take an example for the flow of convolution with red line in Fig. III-B. Kernel and input feature map will be loaded to WSRAM and FSRAM 1 and transfer kernel and data to CCM to perform convolution. Each cycle CCM write a partial sum back to FSRAM 2 then after the convolution if there is a pooling layer after current layer, FSRAM 2 will transfer output feature map to pooling module to perform the max pooling. Finnaly, pooling module will write the results back to FSRAM1 or DRAM.

We discover the most important thing for optimizing the energy efficiency is to reduce the power consumption of our proposed accelerator. Hence, the excessive energy consumption part in convolution computation is the external DRAM access. That is to say, if we can reduce the external DRAM access amount when computing convolution, we can obtain higher energy efficiency. And the greater hardware utilization can also reduce the inference latency, this would further be beneficial to reduce energy consumption.

Third, with the two issues mentioned above, we can find out that hardware utilization is the most predominant issue. The reason that the current accelerators can not maintain high utilization is there are too many different convolution types of the state-of-the-art CNN models. Therefore, our proposed accelerator design needs to meet the requirement of flexible convolution. The following three convolution types are supported by the proposed accelerator, zero padding in input feature map, stride two in convolution layer and two prevalent kernel size.

For the design of zero padding in input feature map, we design an innovative SRAM placement, Double Pixels per Row (DDPR), which can handle padding more suitable to reduce loading latency and memory space to store zero. Next, the solution for striding two in convolution layer is that we use dual-port SRAM and Double Pixels per Row to conquer this question with no negative affection. Lastly, the issue of different kernel sizes, the proposed accelerator design uses 1x1 computing component for basic block. So we can process the convolution of 1x1 kernel size without sacrificing a great quantity of hardware utilization.

Convolution Core Module

In order to realize the proposed ring streaming dataflow, we need to design four different kinds of dataflow. Our proposed process element array can shift in three direction, left, right and up. Each direction has the interrelated dataflow in the design of our process element array.

The proposed reuse module consists of two register arrays, and each array can store 222 pixels. The reason of the pixel number can be split as (221+1) pixels, 221 pixels for pixels can be reuse in each row of feature map, and 1 for stagger the the read and write operation. The data, which can be reused, will be transferred from process element array. And the reuse data will be read out in the next inverted shifting.

Data Unit

Each feature SRAM consists of 32 dual-ports SRAM banks to store the input feature map parallelly by channel. Weight SRAM consists of 32 SRAM banks to store the kernel weights parallelly by channel, too. Reuse SRAM consists of two parts of SRAM banks, feature reuse SRAM and pooling reuse SRAM, which has different purposes. At last, we use the controller to decide the dataflow in different situations.

The purpose of feature reuse SRAM (FRSRAM) is to store the data of input feature map, which can be reuse. For tiling input feature map, we need to hold two rows in the end of the section of split input feature map. We store the input feature map by column in each row of feature reuse SRAM. Because of this data placement, we can transfers two pixels from feature reuse SRAM and one pixel from feature SRAM to process element array. Therefore, our proposed convolution core module still can calculate one output pixel in each cycle at the front shifting.

For the pooling reuse SRAM (PRSRAM), it is utilized to store the output feature map from the previous section. Each row of pooling reuse SRAM bank stores two output pixels. After the convolution of next section have a final sum in feature SRAM, pooling reuse SRAM will transfer two pixels and feature SRAM will transfer two corresponding pixels to the proposed pooling module to perform the 2x2 max pooling.

Pooling Module

Here, we introduce the proposed on-fly max pooling. If there has a max pooling layer after the current convolution layer, On-fly max pooling can do max pooling and convolution in the same time. Therefore, the we don’t need to write back the whole original output feature map to the external DRAM for perform the max pooling. For the above reasons, the proposed on-fly max pooling can reduce the latency of inference and the data access amount of the external DRAM.

Experimental Results

In this chapter, we evaluate our proposed accelerator in three issues, energy efficiency, hardware utilization and computation performance. For the energy efficiency, we will discuss with the external DRAM access amount in section IV-A. Then, discuss the hardware utilization in section IV-B and computation performance in section IV-C. We use three state-of-the-art models in our evaluation, RGBD eCNN, VGG-16 and MobileNet v1. In section IV-D, we present the hardware implementation result of the proposed accelerator. Finally, we compare the implementation result of our proposed CNN accelerator with other works in section IV-E.

External DRAM Access Amount

For model VGG-16, we compare the DRAM access amount with the baseline paper, ’s approach. Because of the data precision in is 16 bits, we halve the DRAM access amount of each convolution layer to make the comparison equitable. As table V shows, our output reuse strategy can reduce more DRAM data access amount than. And the proposed on-fly pooling and ping-pong feature SRAM can further reduce the DRAM data access amount to about 72.33 MB. Overall our methods can reduce about 252x of the DRAM access amount than the ’s approach.

For model MobileNet v1, we compare the DRAM access amount with the our methods and case with no any reuse strategy. Since MobileNet does not use the max pooling layer to reduce the size of input feature map, so the proposed on-fly pooling method will not work on this model. As shown in table VI, we use the output reuse strategy and the ping-pong feature SRAM to reduce the DRAM access amount.

Hardware Utilization

Because of the model structure of RGBD eCNN, we can maintain 100% utilization in whole convolutional time. Since the full utilization of hardware resource, our computation performance can reach to the peak throughput of the proposed accelerator.

For MobileNet v1, depthwise convolution consist of separable convolution and pointwise convolution. Pointwise convolution is a normal convolution with 1x1 kernel, but the separable convolution only need to process each channel of input feature map with one 3x3 kernel. Therefore, separable convolution only can use one process element array in a row of convolution core module.

The hardware utilization of separable convolution is only 25%, and the hardware utilization of pointwise convolution can reach 89%. However, the computation of separable convolution only accounted for 30% in whole depthwise convolution, so the hardware utilization of depthwise convolution still can reach 70% as MobileNet layer 2 for example.

Computation Performance

Since our high utilization in RGBD eCNN, the proposed accelerator can reach the peak throughput in real condition. Table VII shows the comparison of inference latency on RGBD eCNN with CPU, GPU, and two kinds RGBD eCNN accelerator, eCNN and eCNN Lite. Compare the inference latency with the eCNN Lite CNN accelerator, the proposed accelerator can speed up about 2.57x.

As shown in table VIII, Our proposed accelerator has 1152 PE number, 6.8x more than and. However, ours accelerator can has 7.54x speed up than that is because the proposed input channel decomposition can improve the hardware utilization in layer 1 to reduce the inference latency. In addition, the inference latency of the proposed accelerator is 13.35 ms means we can inference VGG-16 with 75 FPS. In other words, the proposed accelerator can real-time inference VGG-16.

Conclusion

Compared the proposed CNN accelerator to on VGG16, we have higher hardware utilization in convolution layer 1 to speed up the inference time about 7.5x and reduce the data access amount of external DRAM about 1.4x, which is the most energy consumption part for the accelerator inference the CNN model. Therefore, the energy efficiency of the proposed accelerator reach 2.08 Tops/W, which is 1.92x higher than.