cs.ARNov 19, 2026

SGLayout: Schema-Guided Closed-Loop Refinement for LLM-Driven Parameterized Layout Generation

Authors: Siyang Chen, Yuan Pu, Yuhan Qin, Zhaotan Lin, Siyuan Liang, Zhuolun He, Lining Zhang, Bei Yu

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

Explore similar work

CardsList
  1. The Code Behind the Layout: AI Agents for Analog Layout Generators

    Oct 28, 2026Minxing Chu, Anhang Li, Martins Atilla +2Electronic Design AutomationAgentic Code Generation

  2. SG-Layout: Structured Scene Graph-Guided Layout Generation with LLMs

    Aug 2, 2026Junsheng Wang, Chao Chen, Mengying Xie +2Indoor Scene Generation

  3. ReLay: Bidirectional Layout-Code Translation and Library Evolution for Reusable and Process-Portable Analog Design

    Nov 19, 2026Minxing Chu, Quan Cheng, Anhang Li +5Electronic Design AutomationProgram Synthesis