NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structural Verification for Reliable EDA Code Generation without Tool-in-the-Loop Debugging

Dinithi Jayasuriya, Aravind Saravanan, Nilesh A. Ahuja, Amanda Rios, Amit Ranjan TrivediarXiv 2026

TL;DR

This paper tackles the challenge of generating reliable code for Electronic Design Automation (EDA) workflows using Large Language Models (LLMs). They propose a novel "structural verification" approach that enforces design constraints before code execution, eliminating the need for slow, iterative "tool-in-the-loop" debugging and significantly improving accuracy and efficiency.

What Problem Does This Paper Address?

Modern EDA workflows involve complex, stateful interactions with design databases and specialized APIs. While LLMs show promise in automating these tasks by translating natural language into executable scripts, ensuring the generated code actually works is a major hurdle. Failures often stem not from simple syntax errors, but from subtle violations of implicit structural dependencies within the design objects and their relationships. Existing methods rely on "tool-in-the-loop" debugging, where code is generated, run in the EDA tool, and then iteratively repaired based on runtime feedback. This process is slow, scales poorly with task complexity, and doesn't explicitly model the underlying structural rules, leading to inefficient trial-and-error.

Methods

The core innovation is structural verification, which shifts the focus from post-execution debugging to pre-execution validation. The authors' framework works as follows:

  1. Structural Dependency Graph Construction: Each EDA task is represented as a graph that explicitly models the required object acquisition paths, type constraints, and action dependencies. This graph acts as an "execution contract."
  2. Graph-Conditioned Synthesis: Code generation is guided by this structural graph, ensuring that the LLM retrieves relevant API usage patterns and generates code that adheres to the structural constraints.
  3. Staged Pre-Execution Verification: A multi-layer verifier checks the generated code against the structural graph and API schemas. This includes syntax checks, causal flow verification (correct acquisition order, null handling), and API alignment.
  4. Diagnosis-Driven Repair: If violations are found, the verifier provides structured diagnostics, allowing for localized repair of the code before it's ever run in the EDA tool.
  5. Uncertainty Estimation: To further refine reliability, they introduce post-verification uncertainty measures that estimate the likelihood of a program failing even after passing the verifier. This allows for filtering out potentially unreliable candidates.

This approach aims to eliminate the need for repeated tool invocations, making the process much faster and more scalable.

Datasets

The authors evaluate their framework on OpenROAD tasks. They also construct a new benchmark of 100 complex multi-step query-action prompts using an adversarial self-play method to ensure challenging and diverse test cases.

Key Insights and Ideas

  • Structural Violations are the Root Cause: The paper strongly argues that most failures in EDA code generation are due to structural, not syntactic, errors. This reframes the problem and justifies the proposed pre-execution verification approach.
  • Execution Contract is Key: Representing tasks as explicit structural dependency graphs provides a formal contract that guides synthesis and verification, decoupling correctness from expensive tool execution.
  • Pre-Execution Verification is More Efficient: By catching errors before running the code, the framework avoids the high latency and poor scalability of tool-in-the-loop methods, especially for complex, multi-step tasks.
  • Generalization is Enhanced: The structural approach, being less tied to specific prompt phrasing and more focused on underlying design rules, leads to better generalization across different designs, process design kits (PDKs), and EDA flow stages.

Key Results

  • Single-Step Tasks: The full pipeline achieves an 82.5% pass rate, outperforming LLM+RAG (73.0%) and tool-in-the-loop (76.0%).
  • Multi-Step Tasks: The framework achieves a 70.0% pass rate, significantly improving to 84.0% with trajectory-level reflection.
  • Efficiency: The proposed method requires only one tool call per task, reducing total tool calls by more than 2x compared to tool-in-the-loop methods. Latency is also significantly reduced.
  • Verifier Precision: Uncertainty-aware filtering improves verifier precision from 80.0% to 93.3% and reduces false positives from 20.0% to 6.7%.
  • Generalization: Consistent high performance is observed across various designs, PDKs, and OpenROAD flow stages (floorplanning, placement, CTS, routing, timing).

Limitations and Future Work

  • Residual Failures: Despite improvements, some programs passing the verifier still fail in execution. The authors address this with uncertainty estimation, but acknowledge that perfect prediction remains a challenge.
  • Complexity of Graph Extraction: While accurate, the structural graph extraction can become more challenging for very complex prompts, leading to lower exact match rates. However, this approximation still provides a sufficient prior for verification.
  • Future Work: The authors suggest exploring more sophisticated uncertainty modeling and potentially integrating this framework into broader agentic systems for more complex EDA tasks. They also highlight the potential for this structural approach to be applied to other domains with similar structured execution requirements.

Summary updated

BibTeX
@misc{jayasuriya2026structural,
  author = {Dinithi Jayasuriya and Aravind Saravanan and Nilesh A. Ahuja and Amanda Rios and Amit Ranjan Trivedi},
  title = {{Structural Verification for Reliable EDA Code Generation without Tool-in-the-Loop Debugging}},
  year = {2026},
  eprint = {2604.18834},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.18834},
}
Figure