TL;DR
Researchers have developed a new way to train Large Language Models (LLMs) to generate hardware designs (RTL code) that aren't just functional, but also optimized across multiple competing goals like power, speed, and area. By using a reward system based on Hypervolume Contribution (HVC), the model learns to provide designers with a diverse "menu" of Pareto-optimal circuits, allowing them to choose the best trade-off for their specific needs.
What Problem Does This Paper Address?
In digital circuit design, there is no such thing as a "perfect" circuit. You usually have to trade off PPA: Power, Performance (latency/delay), and Area. A circuit that is incredibly fast might consume too much power for a mobile device, while a tiny circuit might be too slow for a data center.
Current AI methods for generating Register Transfer Level (RTL) code typically use Reinforcement Learning (RL) to optimize a single score. They "scalarize" PPA—meaning they squash power, delay, and area into one number. The problem? This forces the AI to find one "best" compromise, often ignoring other valid designs that might be better in specific scenarios. Furthermore, when asked to generate multiple options, these models often suffer from "reward hacking," simply repeating the same high-scoring circuit over and over rather than exploring new trade-offs.
Methods
The authors propose a novel training pipeline that treats circuit generation as a sequential set-improvement problem. Instead of asking the LLM to "make one good circuit," they train it to "make a circuit that improves the current collection of options."
Key components include:
- Sequential Generation Pipeline: The model is prompted with a "circuit history"—a list of circuits it has already generated for a specific task along with their PPA scores. It is then tasked with generating a new circuit that offers a different or better trade-off.
- Hypervolume Contribution (HVC) Reward: To guide the RL, the authors use HVC. In a multi-objective space, the "Hypervolume" represents the total region covered by the current best solutions (the Pareto front). The reward for a new circuit is exactly how much new volume it adds to this frontier.
- Dataset Reconstruction: The authors use a feedback loop where successful generations are added back into the training data. This teaches the model how to handle increasingly long histories and continue exploring the design space effectively.
Datasets
- Training: The models were trained on a filtered subset of the VeriReason dataset. They specifically extracted 78 complex problems where a clear trade-off between area and delay existed, providing a rich signal for multi-objective learning.
- Evaluation: The primary benchmark was RTLLM v2, a standard for natural-language-to-Verilog tasks. The authors evaluated 45 distinct problems where PPA estimation tools (like OpenROAD and Yosys) could successfully run.
Key Insights and Ideas
- History is the Key to Exploration: By including previous attempts in the prompt, the model "sees" what it has already done. This prevents it from getting stuck in a loop and encourages it to try something different.
- HVC vs. Scalarization: Traditional scalar rewards (like $Power \times Area \times Delay$) often lead to a single point of convergence. HVC naturally rewards diversity; if a model generates a circuit identical to one in its history, the HVC reward is zero.
- Generalization Beyond Training: Interestingly, even though the model was only trained on histories of up to 5 circuits, it continued to improve and find new Pareto-optimal solutions even when allowed to generate up to 10 circuits at test time.
Key Results
The proposed method, Sequential HVC, significantly outperformed both standard base models and single-objective RL baselines:
- Relative Hypervolume (rHV): On the VeriReason-3B base model, Sequential HVC achieved a 32.4% rHV, a massive jump over the base model (19.1%) and the single-objective PPA method (18.0%).
- Win Rate: In head-to-head comparisons, the HVC-trained model achieved the highest hypervolume in almost all iterations, especially as the number of generated candidates increased.
- Diversity: The HVC method generated the highest number of unique PPA solutions, whereas baselines often "collapsed" and generated the same circuit multiple times.
Limitations and Future Work
While promising, the work has a few hurdles to clear before hitting production:
- Computational Cost: Calculating HVC and running PPA simulations (Yosys/OpenROAD) during the RL training loop is computationally expensive.
- Context Window Limits: LLMs have a finite memory (context length). You can't feed an infinite history of previous circuits into the prompt, which limits how many Pareto-optimal candidates the model can consider at once.
- Objective Scaling: This study focused on 3 objectives (PPA). Scaling this to 5 or 10 objectives (e.g., adding thermal constraints or testability) would significantly increase the complexity of the Hypervolume calculations.
- Data Scale: The multi-objective training was performed on a relatively small set of 78 problems; future work will need to verify these results on much larger, more diverse datasets.
Summary updated