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

AgentDRC: Multi-Agent Algorithms for Spatially-Aware Automated DRC Correction

Pengju Liu, Nuo Xu, Winso Chen, Peijun Li, Yang, Zhao, Yu Cao, Caiwen Ding

TL;DR

Before a microchip can be manufactured, its microscopic geometric layout must pass strict physical rules—a final hurdle where automated tools routinely get stuck, leaving human engineers to spend weeks manually nudging wires. AgentDRC introduces the first multi-agent LLM system capable of automatically fixing these stubborn layout errors. By translating messy coordinate lists into human-like, hierarchical spatial relationships, it teaches AI to reason geometrically without breaking neighboring circuitry.

What Problem Does This Paper Address?

Think of designing a modern microchip like planning a multi-story metropolis at the nanometer scale. Before sending the blueprint to the factory ("tape-out"), it must pass Design Rule Checking (DRC)—a strict physical building code dictated by manufacturing physics (e.g., "wires on metal layer 1 must be at least 7 nm wide and 20 nm apart").

Even after state-of-the-art Electronic Design Automation (EDA) tools finish routing a chip, residual DRC violations inevitably remain. Fixing them is a massive bottleneck, often requiring weeks of tedious manual surgery by human engineers.

Why haven't Large Language Model (LLM) agents solved this yet? If you hand a standard LLM a raw chip layout file, it hits three walls:

  1. Context overload: A tiny error region contains dozens of shapes across multiple 3D layers, most of which have nothing to do with the bug.
  2. Coordinate blindness: LLMs are notoriously bad at looking at raw (x, y) coordinates and figuring out spatial relationships like "Shape A is 5 nm to the upper-left of Shape B."
  3. Flat representations: Dumping sequential lists of polygon vertices strips away the structural hierarchy needed to fix one wire without accidentally shorting out its neighbor.
Figure 1: Illustration of challenges in Agent-based DRC error understanding and resolution: (1) redundant surrounding shapes that distract the agent from constraint-related ones; (2) limited ability to infer spatial relationships and corrective actions from coordinate data; and (3) difficulty extracting meaningful geometric or semantic information from flat, sequential representations.

Methods

Rather than throwing a single LLM at raw layout files, AgentDRC mimics how a human chip designer actually debugs a layout, coordinating four specialized agents in an iterative loop.

Figure 2: Overview of the proposed multi-agent algorithm, AgentDRC, for automatic DRC error fixing.

First, the Observation Agent perceives the layout using a novel multi-level, multi-modal representation (combining text and rendered images). Just like an engineer zooming in and out in a CAD viewer, the geometry is split into three levels: shapes directly touching the error marker (Level 1), shapes inside the immediate cell's bounding box (Level 2), and shapes just outside it to catch collision risks (Level 3).

Next, AgentDRC partitions its tool actions into two paths:

  • Semantic Branch (Non-geometric actions): If the agent just wants to query layout info or run a DRC check, a lightweight checker ensures it is inspecting all relevant adjacent layers and pointing to the latest layout file.
  • Geometric Branch (Layout modifications): If the agent proposes moving a cell or reshaping a wire, the heavy artillery steps in:
  • Context Selection Agent: Filters dozens of surrounding shapes down to the violating targets plus at most $k=4$ constraint-relevant neighbors.
  • Spatial-Awareness Agent: Computes exact bounding-box math and translates raw coordinates into plain-English spatial cues—specifically minimum distance, relative direction, and containment (e.g., "Shape 1 is to the upper-right of Shape 0").
  • Checker Agent: Armed with these spatial cues, it verifies that the proposed move goes in the right direction, moves far enough to clear the rule, and doesn't crash into those $k=4$ neighbors—auto-correcting the plan before executing it in KLayout.
Figure 3: Structured Spatial Relations. The Spatial-Awareness Agent transforms raw geometric coordinates around a DRC error into structured spatial relations.

Datasets

Because no public benchmark existed for automated DRC fixing, the authors built a new two-tier benchmark using Verilog designs processed through the open-source OpenROAD flow under the ASAP7 (7-nm) PDK:

  • Level 1 (L1): Manually constructed errors testing basic tool use and rule comprehension (ranging from widening a single isolated wire to fixing an injected error inside a dense gcd circuit layout).
  • Level 2 (L2): Real-world, gnarly DRC violations left unresolved by OpenROAD's built-in auto-fixer. These range from single-step fixes requiring multi-layer awareness to tricky root-cause puzzles where the optimal fix requires modifying a completely different layer than the one flagged in the error report.

Key Insights and Ideas

  • Less context is more: In spatial reasoning, extra context actively hurts. Increasing the neighbor selection budget from $k=4$ shapes to $k=10$ caused pass@5 accuracy to drop from 55.7% down to 40.9%. Filtering out irrelevant polygons is the single most critical piece of the pipeline (removing it caused the largest ablation drop of 10.4%).
  • Generic multi-agent setups can backfire: Standard "Planner-Actor" multi-agent baselines actually performed worse than a single-agent ReAct loop across all strong models. Modern LLMs already couple planning and tool-calling tightly; splitting them naively introduces communication misalignment. Multi-agent systems here only win when roles are carved around domain-specific bottlenecks (filtering noise and computing geometry).
  • If an agent starts down the wrong alley, more time rarely saves it: Performance jumps sharply from 4 to 6 iterations, then plateaus. When the initial geometric intuition is right, AgentDRC solves the puzzle within 6 steps; when it starts on a flawed trajectory, extra iterations mostly lead to over-exploration rather than recovery.

Key Results

  • Tackling unresolved errors (L2): Paired with GPT5-mini, AgentDRC achieves 30.4% pass@1 and 55.7% pass@5 (meaning a completely DRC-clean layout with zero new errors introduced), beating the best baseline by 13.8% on pass@5. It also boosts Gemini-2.0 and DeepSeek-V3.1 by 9.3% and 8.6%, respectively.
  • Small models struggle at the starting line (L1): Large models (GPT5-mini, Gemini-2.0, DeepSeek-V3.1) easily clear basic L1 tasks (94.2%–99.2% pass@5), whereas 7B–8B open-source models (Qwen-2.5-7B, Llama-3.1-8B) fail frequently (13.1%–27.7% pass@5) due to malformed tool calls.
  • Hierarchy + Vision wins: Moving from flat coordinate text to multi-level hierarchical text plus visual renderings boosts AgentDRC's pass@5 (on Gemini-2.0) from 14.2% to 41.3%.
  • Low cost: Running the default 6-iteration loop costs an average of just $0.060 per run in API fees.

Limitations and Future Work

The authors do not include a dedicated limitations or future work section, though several boundaries are apparent from their experiments:

  • Reliance on frontier models: Smaller 7B–8B parameter models lack the tool-calling reliability to serve as base agents without specialized fine-tuning.
  • Early-trajectory lock-in: As noted in the iteration experiments, tasks that begin on an incorrect reasoning path rarely recover even given 10 iterations, leaving over 40% of complex L2 tasks unsolved at pass@5.
  • The authors plan to open-source all code and their newly constructed L1/L2 DRC benchmark tasks upon paper acceptance.

Summary updated

BibTeX
@misc{liu2026agentdrc,
  author = {Pengju Liu and Nuo Xu and Winso Chen and Peijun Li and Yang and Zhao and Yu Cao and Caiwen Ding},
  title = {{AgentDRC: Multi-Agent Algorithms for Spatially-Aware Automated DRC Correction}},
  year = {2026},
  eprint = {2611.31876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31876},
}
Figure