Scalable and Effective Arithmetic Tree Generation for Adder and Multiplier Designs

Yao Lai, Jinxin Liu, David Z. Pan, Ping Luo

Introduction

Arithmetic circuits, specifically adders and multipliers, are the fundamental building blocks of modern computing. Their efficiency directly dictates the performance of high-level applications; for example, approximately 98.4% of a GPU's execution time when running a ResNet-152 vision model is spent performing addition and multiplication. As the scaling of Moore’s Law slows, the demand for architectural innovation in these circuits has become critical. However, the design space for these components is astronomically large—the possible configurations for a 16-bit multiplier exceed the number of board states in the game of Go. This paper introduces a novel framework that treats hardware design as a single-player tree-generation game, utilizing Reinforcement Learning (RL) to discover optimized structures that surpass human-designed and existing automated baselines.

The Complexity of Arithmetic Design

Traditional hardware design relies heavily on human-engineered heuristics or local optimization algorithms. These methods often struggle with the sheer scale of the design space and frequently become trapped in local minima. While machine learning has been applied to this domain previously, prior approaches often failed to scale to high bit-widths (such as 64-bit or 128-bit) or optimized components in isolation. Multipliers, for instance, consist of a compressor tree and a prefix tree. Optimizing one without considering the other leaves significant performance on the table. This research addresses these gaps by framing the construction of these "arithmetic trees" as a sequential decision-making process.

Methodology: AddGame and MultGame

The authors decompose the hardware design problem into two specialized environments, utilizing distinct RL agents tailored to the structural requirements of each component.

AddGame for Prefix Trees

Adders utilize prefix trees to calculate carry bits in parallel. The authors developed AddGame, where a Monte Carlo Tree Search (MCTS) agent starts with a standard human-designed adder and iteratively modifies the tree. By adding or deleting logic cells, the agent explores the trade-offs between tree depth (which determines delay) and node count (which determines area).

MultGame for Compressor Trees

Multipliers are more complex, requiring a compressor tree to reduce partial products before a final addition. In MultGame, a Proximal Policy Optimization (PPO) agent builds the compressor tree from scratch. The agent makes step-by-step decisions on whether to employ half-adders or full-adders to "squash" the partial products efficiently.

Holistic Co-Design and Fast Synthesis

A key innovation of this work is the Co-design Framework. Rather than designing components in a vacuum, the system alternates between the PPO agent (optimizing the compressor tree) and the MCTS agent (optimizing the prefix tree). This iterative process allows the agents to find synergistic designs where the two components are globally optimized for one another.

To make this search computationally feasible, the authors implemented a Two-Level Retrieval strategy. Evaluating a design's true physical performance typically requires slow Electronic Design Automation (EDA) tools. The authors created a "fast flow" that skips time-consuming routing steps, allowing the agent to evaluate thousands of candidates quickly. Only the top 10% of designs are subjected to full, high-accuracy synthesis, speeding up the reward evaluation process by 10x to 20x.

Key Insights and Results

The research demonstrates that abstract mathematical metrics (tree level and node count) correlate strongly with physical metrics (nanosecond delay and micrometer area). This allows RL agents to optimize for theoretical structures that translate effectively into real-world silicon. Furthermore, the designs discovered are highly transferable; a circuit optimized on a 45nm process node maintains its superiority when synthesized on a cutting-edge 7nm FinFET process.

Performance Gains

  • Adders: The MCTS agent discovered 128-bit adders that achieved theoretical Pareto optimality. Compared to the previous state-of-the-art RL method (PrefixRL), the new designs reduced computational delay by up to 26% and hardware area by 30%.
  • Multipliers: The co-design approach yielded even more dramatic improvements. Compared to the RL-MUL baseline, the new multipliers achieved up to a 33% reduction in delay (a 49% speed increase) and a 45% reduction in area.

Conclusion

By gamifying the design of arithmetic circuits, this work provides a scalable path toward automating hardware optimization. The combination of MCTS and PPO, supported by a co-design framework and accelerated synthesis evaluation, allows for the discovery of 64-bit and 128-bit designs that significantly outperform human-engineered standards. While the computational cost of running physical synthesis in the loop remains high—taking nearly 28 hours for a 64-bit multiplier—the results suggest that this tree-generation formulation could be extended to even more complex hardware modules, potentially revolutionizing how silicon is designed in the post-Moore’s Law era.

Summary updated

BibTeX
@inproceedings{lai2024scalable,
  author = {Yao Lai and Jinxin Liu and David Z. Pan and Ping Luo},
  title = {{Scalable and Effective Arithmetic Tree Generation for Adder and Multiplier Designs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=5pnhGedG98},
}
Figure