Rust in Everything
← Papers

PCBRouteAgent: How Close Are LLM Agents to Becoming PCB Routing Engineers?

Yue Zhang, Jilei Sun, Liqiang Jing, Yijie Wei, Ruohan Yang

2026-11-09▲ 30arXiv 2611.08175v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

PCBRouteAgent coordinates a multimodal global routing planner with KiCad-native detailed routing execution and feedback-driven guide revision to improve clean-pass PCB routing on PCBWorld-Bench.

Problem

PCB routing is a coupled physical-design problem: each trace or via decision affects remaining nets, space, layer use, and design-rule clearance. LLM agents in PCBWorld can call native routing operations and receive design-rule feedback, but they still lag rule-based routers on complex real-world boards. Access to tools and feedback alone does not provide board-level coordination of connection priority, routing space, and layer transitions. The paper targets failures that need strategy revision rather than more local routing attempts.

Method

PCBRouteAgent separates a Global Routing Planner from a Detailed Routing Executor. The planner builds a multimodal representation from board images, structured pad/layer/net/design-rule data, and connectivity clusters. It forms each net's connection topology with an MST over clusters, initializes routing order by shorter estimated spanning-tree length, and provides corridors from expanded bounding boxes plus via-transition regions for layer changes. The executor compiles guide edges into tasks and uses KiCad's native PNS router with selected anchors, waypoints, and via candidates, then verifies electrical connectivity. Failed tasks undergo bounded local recovery with walkaround, shove, alternative waypoints, A* detours, backtracking, and alternative anchors; unresolved failures become structured feedback packets, accepted routes are preserved by rollback, and the planner returns validated guide patches for targeted replanning.

Results

  • PCBRouteAgent achieves clean-pass rates on D2, D3-A, D3-B, and D3-C of 100%, 94.9%, 100%, and 40%, respectively. §Abstract
  • On the three real-world subsets, PCBRouteAgent outperforms the best evaluated baseline in clean-pass rate by 13.9, 36, and 10 percentage points, respectively. §Abstract
  • On D3-C, PCBRouteAgent reaches 94.9% mean routability and reduces the average design-rule violation count from Freerouting's 32.0 to 6.3 per board. §1
  • The introduction reports Freerouting clean-pass rates of 75%, 64%, and 30% on D3-A, D3-B, and D3-C, with PCBRouteAgent improvements of 19.9, 36, and 10 percentage points; the published PCBWorld GPT-5.4 agent is reported at 42% on D3-A and 0% on D3-B. §1
  • Under the same local conditions with Claude Haiku 5.5 on D2, PCBRouteAgent has clean-pass 1.000 at 0.8 s and cost 0.0002 per board, compared with PCBWorld's 0.633 at 188.0 s and 0.0240. §C

Limitations

  • Conclusion states that large-board completion and routing compactness remain important challenges.
  • The reported D3-C clean-pass rate is 40%, so complex real-board routing is not fully solved on that subset.
  • On D3-C, the average design-rule violation count is reduced to 6.3 per board, not to zero, leaving rule-clean routing incomplete on those boards.
  • Future work lists more effective spatial and layer planning, adaptive recovery budgets, and routing refinement that preserves completed connections as open directions.

Key points

  • The board representation uses images I_layout, I_front, I_back, and I_demand plus structured text for pads, layers, nets, clusters, and design rules. §3.2.1
  • Connectivity planning treats each net's disconnected clusters as vertices in a weighted graph and uses an MST to produce K_n - 1 connection tasks. §3.2.2
  • Initial routing order prioritizes nets with shorter total estimated spanning-tree connection length. §3.2.2
  • Same-layer corridors come from axis-aligned bounding boxes expanded by margin δ; layer changes split the connection at its midpoint with two corridors and a via-transition region. §3.2.3
  • The replanning LLM outputs a structured guide patch from fixed initial images, structured board data, current guide, feedback packets, and connectivity summaries. §3.2.4
  • The Detailed Routing Executor uses KiCad's native PNS router, selects source and target anchors, advances by waypoints and via candidates, and verifies connectivity-based task completion. §3.3.1
  • Local recovery includes walkaround, shove, alternative waypoints, A* detours, backtracking, and alternative source anchors under retry and execution budgets. §3.3.2
  • Unresolved failures are rolled back to checkpoints and returned as structured feedback while accepted routes outside the affected scope are preserved. §3.3.2

Mind map

PCBRouteAgent
Problem
Coupled PCB routing decisions
LLM agents lag rule-based routers
Native tools and feedback insufficient
Need board-level plan revision
Global Routing Planner
Multimodal board representation
MST connection topology
Shorter-net routing order
Corridors and via regions
Guide patch validation
Detailed Routing Executor
KiCad PNS task execution
Waypoints and via candidates
Connectivity verification
Bounded local recovery
Structured failure feedback
Feedback Loop
Rollback preserves accepted routes
LLM replans unresolved edges
Patch merged and tasks recompiled
Evaluation
PCBWorld-Bench 247 boards
Clean-pass 100 94.9 100 40 percent
Real-world baseline gains
D3-C DRC 32.0 to 6.3
Lower cost than PCBWorld on D2
Limitations
Large-board completion
Routing compactness
D3-C clean pass only 40 percent
Future adaptive recovery budgets