TL;DR
TOPCELL is a new framework that uses Large Language Models (LLMs) to solve one of the most stubborn bottlenecks in chip design: transistor topology optimization. By fine-tuning LLMs with Group Relative Policy Optimization (GRPO), the system matches the layout quality of exhaustive search methods while delivering a massive 85.91x speedup and demonstrating remarkable zero-shot generalization across different technology nodes.
What Problem Does This Paper Address?
Standard cells are the fundamental building blocks of modern chips. A critical step in designing them is topology optimization—deciding how to arrange transistors to maximize "diffusion sharing" (where adjacent transistors share a single source/drain contact). Efficient sharing leads to smaller cell areas and easier routing.
However, as we move to advanced technology nodes (like 2nm), the number of transistors per cell increases, and the search space for the "perfect" arrangement explodes. Traditional methods rely on exhaustive or recursive searches that become computationally "intractable"—taking hours or even failing to find a solution for complex cells. While LLMs have shown promise in coding and logic, applying them to the physical constraints of hardware layout has remained a significant challenge.
Methods
The authors introduce TOPCELL, which reformulates topology exploration as a generative task. The framework consists of three main pillars:
- LLM-Guided Topology Permutation: Instead of asking the LLM to generate a netlist from scratch, TOPCELL prompts the LLM to identify a "pivot net" where a swap might improve routability. A deterministic graph algorithm then handles the actual rewiring. This decouples high-level strategic reasoning (the LLM) from low-level execution (the algorithm), ensuring the resulting circuit remains functionally identical to the original.
- GNN Reward Model: Since running a full industrial placement and routing (P&R) flow is too slow for training, the team built a Graph Neural Network (GNN) to act as a fast proxy. It predicts "routability" based on the netlist's graph structure.
- GRPO Post-Training: The core of TOPCELL is the use of Group Relative Policy Optimization (GRPO). Unlike standard fine-tuning, GRPO allows the model to explore multiple candidate swaps, compare their relative rewards, and iteratively improve its strategy. This is particularly effective for EDA (Electronic Design Automation) tasks where there isn't a single "golden" answer, but rather a landscape of better and worse solutions.
Datasets
The researchers constructed a topology-diverse dataset by:
- Enumerating all 254 non-trivial 3-input Boolean functions.
- Generating nearly 8,000 unique standard cell netlists using different factoring and permutation techniques.
- Processing these through an industrial 2nm P&R flow (using NVIDIA's NVCell 2) to label them as routable or unroutable.
- For evaluation, they used a separate benchmark of complex cells (16+ transistors) and a 7nm library generation task to test how well the model generalizes to different technologies.
Key Insights and Ideas
- Active Exploration Trumps Imitation: The authors found that Supervised Fine-Tuning (SFT) hits a performance ceiling because it only learns to imitate the training data. In contrast, the RL-based GRPO approach allows the model to discover novel, superior topologies that weren't in the initial dataset.
- Strategic Decoupling: By letting the LLM pick the where (the pivot) and a graph algorithm handle the how (the rewiring), the system guarantees functional correctness while reducing the "reasoning burden" on the LLM.
- Zero-Shot Generalization: Surprisingly, a model trained only on 3-input functions at the 2nm node was able to optimize 6-input functions at the 7nm node. This suggests the LLM learned fundamental physical principles of layout that transcend specific technology rules.
Key Results
- Massive Speedup: When integrated into a state-of-the-art automation flow (SO3-Cell), TOPCELL achieved an average 85.91x speedup. For complex cells that took exhaustive solvers 10 hours, TOPCELL found optimal solutions in just 2 seconds.
- Superior Routability: TOPCELL-7B achieved a 77.3% routable rate on difficult benchmarks, significantly outperforming much larger general-purpose models like GPT-5 (56.1%) and DeepSeek-V3 (56.6%).
- Performance Gains: Compared to its base model (Qwen2.5-Coder), the fine-tuned TOPCELL reduced local congestion by 8% and boosted the routable rate by over 45% (relative improvement).
Limitations and Future Work
While TOPCELL is a major step forward, the authors note some areas for growth:
- Training Constraints: The current training set is limited to 3-input functions because generating ground-truth P&R data for larger functions is computationally expensive.
- Scope: The work currently focuses on single-row standard cells. Future research could extend this to multi-row cells or more complex Design-Technology Co-Optimization (DTCO) objectives.
- Reward Accuracy: While the GNN is a great proxy, it isn't perfect. Further refining the reward signal to capture even more subtle physical effects could lead to even better topologies.
Summary updated