SGLayout: Schema-Guided Closed-Loop Refinement for LLM-Driven Parameterized Layout Generation
Organizations: School of Electronic and Computer Engineering, Peking University, Shenzhen, China · ChatEDA Tech, Shenzhen, China · Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong SAR
Abstract
Large Language Models (LLMs) have shown strong potential in parameterized layout generation via tool-augmented code synthesis. However, LLMs lack spatial awareness, making one-shot generation unreliable. While layout quality can be evaluated with established techniques, a critical gap remains: geometric-domain evaluation outcomes cannot be directly translated into actionable code-level fixes, trapping iterative refinement in blind refactoring. We propose SGLayout, a self-refining framework that closes this gap via a schema-guided mechanism. Upon code execution, a structured schema captures the correspondence between each code-level instance and its geometric attributes, establishing a bidirectional link between code space and geometry space. Emulating engineer review practices, SGLayout evaluates layouts along two complementary dimensions: intent compliance through quantitative structural checking and qualitative vision-language assessment, and rule compliance through DRC. All identified violations are then back-projected through the schema onto precise code targets, enabling surgical repair. This closed-loop process iterates until layout convergence. On a curated benchmark of 112 parameterized layout generation tasks using GDSFactory, SGLayout achieves a 76.79% pass rate, compared with 50.89% for the strongest baseline.
Figures & tables
| Semantic Group | Total | Level 1 | Level 2 | Level 3 |
| Geometric Shape Synthesis | 26 | 9 | 14 | 3 |
| Connectivity and Routing Construction | 56 | 13 | 28 | 15 |
| Hierarchical and Parametric Composition | 30 | 4 | 4 | 22 |
| Total | 112 | 26 | 46 | 40 |
| Method | Model | Level 1 Pass Rate (%) | Level 2 Pass Rate (%) | Level 3 Pass Rate (%) | Overall Pass Rate (%) | ||||||||
| Pass@1 | Pass@3 | Final | Pass@1 | Pass@3 | Final | Pass@1 | Pass@3 | Final | Pass@1 | Pass@3 | Final | ||
| Naive | Qwen3-Coder-Plus | 73.08 | 92.31 | 96.15 | 23.91 | 34.78 | 45.65 | 7.50 | 25.00 | 27.50 | 29.46 | 44.64 | 50.89 |
| Naive | DeepSeek-V3.2 | 65.38 | 76.92 | 80.77 | 28.26 | 39.13 | 45.65 | 12.50 | 22.50 | 25.00 | 31.25 | 41.96 | 46.43 |
| Naive | GPT-5.1 | 53.85 | 57.69 | 65.38 | 23.91 | 32.61 | 34.78 | 17.50 | 25.00 | 25.00 | 28.57 | 35.71 | 38.39 |
| PhIDO | Qwen3-Coder-Plus | 42.31 | 61.54 | 65.38 | 36.96 | 41.30 | 41.30 | 17.50 | 25.00 | 27.50 | 31.25 | 40.18 | 41.96 |
| PhIDO | DeepSeek-V3.2 | 34.62 | 46.15 | 46.15 | 30.43 | 36.96 | 39.13 | 10.00 | 20.00 | 20.00 | 24.11 | 33.04 | 33.93 |
| Evaluator | # Samples | Accuracy (%) | Precision (%) | Recall (%) |
| Structural Checker | 100 | 94.00 | 95.12 | 97.50 |
| VLM Evaluator | 56 | 98.21 | 100.00 | 96.43 |
Electronic Design Automation
Electronic Design Automation uses algorithms and software to design, verify, optimize, and manufacture electronic circuits and systems.
See all 262 papers