TL;DR
The HAVE (Hierarchical Adaptive Multi-Task Reinforcement Learning) framework automates the design of multiplier circuits—critical components in CPUs and AI accelerators. By employing a hierarchical approach with a meta-agent that explores different design preferences and a multi-task agent that shares knowledge across designs, HAVE achieves up to a 28% improvement in design quality (hypervolume) over existing state-of-the-art methods.
The Challenge of Multiplier Design
Designing a multiplier circuit is a classic "tug-of-war" between two conflicting goals: area (how much physical space it occupies on a chip) and delay (how fast it performs calculations). This combinatorial optimization problem features a massive search space that grows exponentially as the bit-width of the multiplier increases.
Traditional methods rely on manual heuristics (like Wallace trees) or algorithmic searches, but these often fail to find the true "Pareto front"—the set of optimal designs where you cannot improve area without sacrificing speed, and vice versa. Recent Reinforcement Learning (RL) approaches have attempted to bridge this gap but suffer from sample inefficiency. They typically train a separate agent for every specific preference (e.g., prioritizing 70% speed and 30% area), which wastes computational resources and ignores the shared structural logic across different design tasks.
The HAVE Framework
To address these inefficiencies, the authors introduce HAVE, a two-stage hierarchical framework designed to explore the entire preference space comprehensively and efficiently.
- Pareto-Driven Meta-Agent: This high-level agent learns to generate diverse "preferences" (weights for area vs. delay). Instead of picking weights randomly, it adaptively targets under-explored regions of the Pareto front to maximize overall design variety.
- Adaptive Multi-Task Agent: This lower-level agent optimizes the actual circuit structure. Crucially, it uses a single network to handle multiple preferences simultaneously, allowing it to share knowledge across different design goals.
Technical "Secret Sauce"
- Factored Q-function: Instead of treating every possible circuit modification as a unique action, HAVE decomposes actions into independent components (e.g., "which column to change" and "what type of compressor to use"). This drastically simplifies the learning process.
- Restore-then-Explore: To prevent the agent from getting stuck in dead ends, the system maintains a pool of elite (high-performance) circuit states. It occasionally restores the agent to these states to kickstart new explorations.
- Asynchronous Training with Relabeling: The framework trains in parallel across multiple threads. It uses "data relabeling" to take a transition experienced under one preference and apply it to train the agent for other preferences, maximizing the utility of every simulation.
Key Insights and Results
The framework was evaluated on eight distinct multiplier design problems, spanning various input widths (8-bit to 64-bit) and architectures (standard AND-gate and complex Booth encoding). HAVE uses actual physical synthesis tools (OpenROAD/OpenSTA) in the loop to get ground-truth metrics, ensuring the designs are viable for real-world silicon.
HAVE consistently outperformed all baselines, including human-designed Wallace trees and the previous state-of-the-art RL method, RL-MUL.
- Hypervolume Improvement: HAVE achieved up to 28.08% larger hypervolume than RL-MUL and up to 89.05% improvement over traditional Wallace trees.
- Pareto Dominance: As shown in the resulting Pareto curves, HAVE's designs consistently push the boundary "lower and to the left" (better area and better delay) compared to competing methods.
- Ablation Success: The authors demonstrated that every component—Restore-then-explore, Factoring, Multi-tasking, and the Meta-agent—contributed significantly to the final performance, particularly for larger 32-bit and 64-bit designs.
Limitations and Future Work
While HAVE represents a major step forward, the synthesis process—running the circuit through Electronic Design Automation (EDA) tools to extract area and delay metrics—remains the primary time bottleneck. Future work could integrate faster ML-based predictors to accelerate this feedback loop. Additionally, the hierarchical multi-task approach is highly generalizable and could be applied to other critical circuit components like adders, encoders, or entire logic blocks.
Summary updated