Skip to main content
QUICK REVIEW

[Paper Review] ConfuciuX: Autonomous Hardware Resource Assignment for DNN Accelerators using Reinforcement Learning

Sheng-Chun Kao, Geonhwa Jeong|arXiv (Cornell University)|Sep 4, 2020
Advanced Neural Network ApplicationsComputer Science83 references10 citations
TL;DR

ConfuciuX proposes a reinforcement learning-based method to autonomously optimize hardware resource assignment (compute and memory) in DNN accelerators for minimal latency and energy, leveraging REINFORCE with a detailed performance cost model and fine-tuning via a genetic algorithm. It achieves 4.7–24× faster convergence than alternative optimization techniques.

ABSTRACT

DNN accelerators provide efficiency by leveraging reuse of activations/weights/outputs during the DNN computations to reduce data movement from DRAM to the chip. The reuse is captured by the accelerator's dataflow. While there has been significant prior work in exploring and comparing various dataflows, the strategy for assigning on-chip hardware resources (i.e., compute and memory) given a dataflow that can optimize for performance/energy while meeting platform constraints of area/power for DNN(s) of interest is still relatively unexplored. The design-space of choices for balancing compute and memory explodes combinatorially, as we show in this work (e.g., as large as O(10^(72)) choices for running \mobilenet), making it infeasible to do manual-tuning via exhaustive searches. It is also difficult to come up with a specific heuristic given that different DNNs and layer types exhibit different amounts of reuse. In this paper, we propose an autonomous strategy called ConfuciuX to find optimized HW resource assignments for a given model and dataflow style. ConfuciuX leverages a reinforcement learning method, REINFORCE, to guide the search process, leveraging a detailed HW performance cost model within the training loop to estimate rewards. We also augment the RL approach with a genetic algorithm for further fine-tuning. ConfuciuX demonstrates the highest sample-efficiency for training compared to other techniques such as Bayesian optimization, genetic algorithm, simulated annealing, and other RL methods. It converges to the optimized hardware configuration 4.7 to 24 times faster than alternate techniques.

Motivation & Objective

  • Address the challenge of optimizing on-chip compute and memory allocation in DNN accelerators, which is critical for performance and energy efficiency but largely unexplored.
  • Overcome the combinatorial explosion of design space (e.g., O(10^72) for MobileNet-V2) that makes exhaustive search infeasible.
  • Automate the hardware resource assignment process for both layer-sequential (LS) and layer-pipelined (LP) deployment scenarios under platform constraints.
  • Improve sample efficiency in design-space exploration compared to existing methods like Bayesian optimization, simulated annealing, and other RL approaches.
  • Enable joint exploration of hardware configuration and dataflow style to further enhance performance beyond static dataflow choices.

Proposed method

  • Employ the REINFORCE reinforcement learning algorithm to guide global search over the vast hardware configuration space, using a detailed hardware performance cost model to estimate rewards.
  • Integrate a genetic algorithm (GA) to perform local fine-tuning after a coarse solution is found, further optimizing the final configuration.
  • Formulate the resource assignment problem as a discrete, irregular optimization task where actions correspond to assigning PEs and buffers to each DNN layer.
  • Use a reward function based on end-to-end latency and energy, subject to area and power constraints, to guide the RL policy toward optimal configurations.
  • Support both layer-sequential (LS) and layer-pipelined (LP) deployment models, with distinct resource allocation strategies for each.
  • Leverage a pre-trained performance cost model to simulate hardware behavior without actual synthesis, enabling fast and scalable training of the RL agent.

Experimental results

Research questions

  • RQ1Can reinforcement learning effectively explore the massive, combinatorial design space of hardware resource assignments in DNN accelerators?
  • RQ2How does the sample efficiency of REINFORCE-based RL compare to other optimization techniques like Bayesian optimization, simulated annealing, and genetic algorithms in this context?
  • RQ3To what extent can joint exploration of hardware configuration and dataflow style further improve performance beyond fixed dataflow choices?
  • RQ4Can a hybrid approach combining RL for global search and GA for local fine-tuning achieve superior results compared to standalone methods?
  • RQ5How does ConfuciuX perform across diverse DNN models, dataflow styles, and platform constraints (e.g., IoT vs. cloud)?

Key findings

  • ConfuciuX achieves the highest sample efficiency among all evaluated optimization techniques, converging to optimal or near-optimal configurations 4.7 to 24 times faster than alternatives.
  • The REINFORCE-based RL method (Con’X(global)) successfully explores both hardware configuration and dataflow style simultaneously, improving performance by 4% to 69% over fixed dataflow baselines.
  • After coarse RL optimization, the integrated genetic algorithm further improves results by 7% to 93% through local fine-tuning of the best configurations.
  • For MobileNet-V2 with 128 PEs and 128 buffers, the design space contains approximately O(10^72) possible configurations, confirming the infeasibility of exhaustive search.
  • The study demonstrates that hardware resource assignment can have a greater impact on accelerator performance than dataflow selection, as shown by prior work cited in the paper.
  • ConfuciuX enables automated, high-efficiency design-space exploration across diverse models and deployment scenarios, including both LS and LP modes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.