This paper, a collaboration between NVIDIA Research and the University of Maryland, presents a significant milestone in AI-assisted engineering: the first self-evolving framework for Electronic Design Automation (EDA). By leveraging Large Language Model (LLM) agents, the researchers have created a system that autonomously rewrites and improves the source code of ABC, the industry-standard open-source logic synthesis tool, at a million-line scale.
TL;DR
Researchers have developed a multi-agent LLM framework that autonomously evolves the C source code of the ABC logic synthesis tool. By iteratively proposing code edits, verifying them with formal equivalence checking, and evaluating hardware performance, the system achieved an 8.3% improvement in Quality of Results (QoR) over human-engineered baselines.
What Problem Does This Paper Address?
Logic synthesis is the process of transforming abstract Boolean logic into a physical network of gates—a critical step in chip design. For decades, the ABC framework has been the bedrock of this field. However, ABC is a "monolithic beast" containing over 1.2 million lines of C code.
Improving such a tool is incredibly difficult for humans because:
- Complexity: Small changes in one module can have unpredictable, far-reaching effects on others.
- Saturation: Human-designed heuristics (rules of thumb for optimization) have reached a plateau.
- Engineering Barrier: Implementing and testing new ideas in low-level C is slow and error-prone.
While previous AI efforts have optimized small code kernels, this paper tackles the challenge of evolving a massive, production-grade repository autonomously.
Methods
The authors implemented a multi-agent architecture powered by Claude 4.5 Sonnet. The system operates in a closed-loop "evolutionary iteration":
- Planning Agent: Acts as the coordinator, interpreting performance feedback and deciding which subsystem to evolve next.
- Specialized Coding Agents: Three distinct agents focus on different parts of the ABC codebase:
- Flow Agent: Optimizes the sequence of synthesis commands.
- Mapper Agent: Refines technology mapping heuristics (how logic is bound to physical cells).
- Logic Minimization Agent: Improves core AIG (And-Inverter Graph) rewriting algorithms.
- Formal Verification (CEC): Before any code is tested for performance, it must pass a Formal Equivalence Check. This ensures the LLM hasn't "hallucinated" a change that alters the logic's functionality.
- QoR Evaluation: Validated code is compiled and run against a massive benchmark suite on a cluster of 87 CPU nodes to measure area, delay, and power.
Datasets
The system was evaluated using a comprehensive set of standard hardware synthesis benchmarks:
- ISCAS 85/89/99: Classic circuit benchmarks.
- EPFL: A modern combinational benchmark suite.
- VTR (Verilog-to-Routing): Used for FPGA-style benchmarks.
- IWLS 2005 & Arithmetic Blocks: Complex logic structures like adders and multipliers.
- ASAP7 7nm PDK: A predictive technology library used to simulate real-world 7nm chip manufacturing conditions.
Key Insights and Ideas
- Scaling to Millions of Lines: The breakthrough isn't just that an LLM wrote code, but that it managed a 1.2M-line repository. This was achieved by "bootstrapping" the agents with structured Markdown tutorials and repository profiling rather than just dumping raw code into a prompt.
- Formal Feedback as a Guardrail: Using ABC’s own internal tools (
cecanddsat) to provide immediate corrective feedback to the agents proved essential. It prevented the system from wasting time on "broken" optimizations. - Beyond Constant Tuning: The agents didn't just tweak numbers; they learned to restructure the synthesis process, discovering new tie-breaking rules and conditional heuristics that human experts had overlooked.
- Native Style Convergence: Interestingly, the agents autonomously adopted the specific coding style, naming conventions, and macro patterns of the original ABC developers, making the generated patches look like human-written code.
Key Results
The "All Evo" version of the tool—where all three subsystems were evolved jointly—showed the strongest performance gains.
- Overall QoR Improvement: An 8.3% reduction in the area-delay product compared to the vanilla ABC baseline.
- Timing Gains: Worst Negative Slack (a measure of chip speed) improved by 8% to 9% on average, with some arithmetic circuits seeing improvements up to 15%.
- Synergy Matters: As shown in the ablation study (Table 2), evolving subsystems together yielded better results than the sum of their parts, proving the agents were finding cross-module optimizations.
Limitations and Future Work
- The "Scaffolding" Requirement: The authors note that agents currently perform well only when guided by significant domain knowledge. They are excellent at refining existing paradigms but less reliable at inventing entirely new algorithmic structures from scratch.
- Initial Cost: The "pre-evolution" stage (profiling the repo) is token-intensive, costing about $1,400 of the total $2,400 project budget. However, once primed, subsequent iterations are relatively cheap ($60-$80 per cycle).
- Future Directions: The authors suggest this framework could be applied to other EDA domains like physical placement and routing, potentially leading to a fully autonomous chip design flow.
Summary updated