[Paper Review] Circuit Routing Using Monte Carlo Tree Search and Deep Neural Networks
This paper proposes an end-to-end circuit routing approach using Monte Carlo Tree Search (MCTS) guided by a deep neural network (DNN) to model routing as a sequential decision-making problem. By combining DNN-guided depth-first search rollouts with a maximum-reward-based UCT selection, the method achieves higher success rates and lower wire redundancy than vanilla MCTS or baseline algorithms, even on complex, previously unsolvable single-layer circuits.
Circuit routing is a fundamental problem in designing electronic systems such as integrated circuits (ICs) and printed circuit boards (PCBs) which form the hardware of electronics and computers. Like finding paths between pairs of locations, circuit routing generates traces of wires to connect contacts or leads of circuit components. It is challenging because finding paths between dense and massive electronic components involves a very large search space. Existing solutions are either manually designed with domain knowledge or tailored to specific design rules, hence, difficult to adapt to new problems or design needs. Therefore, a general routing approach is highly desired. In this paper, we model the circuit routing as a sequential decision-making problem, and solve it by Monte Carlo tree search (MCTS) with deep neural network (DNN) guided rollout. It could be easily extended to routing cases with more routing constraints and optimization goals. Experiments on randomly generated single-layer circuits show the potential to route complex circuits. The proposed approach can solve the problems that benchmark methods such as sequential A* method and Lee's algorithm cannot solve, and can also outperform the vanilla MCTS approach.
Motivation & Objective
- To address the limitations of manually crafted, heuristic-based routing algorithms that are hard to adapt and maintain as design rules evolve.
- To develop a general-purpose routing framework that does not rely on domain-specific heuristics or manual tuning.
- To enable automatic learning of routing strategies through training on routed circuits, reducing dependency on expert knowledge.
- To improve search efficiency and solution quality in large-scale routing problems using MCTS enhanced by deep reinforcement learning.
- To create a flexible, extensible routing system where design constraints and optimization goals can be modified via reward function changes without altering core code.
Proposed method
- Models circuit routing as a sequential decision process where each action adds a vertex or edge to a grid graph, analogous to placing a stone in Go.
- Employs Monte Carlo Tree Search (MCTS) with a maximum-reward-based Upper Confidence Bound for Trees (Max-UCT) to prioritize nodes with higher routing success potential.
- Uses a convolutional neural network (CNN) to predict high-quality routing actions, guiding the rollout policy and reducing the search space.
- Combines DNN-based action prediction with depth-first search (DFS) as the rollout policy to efficiently explore promising paths during simulation.
- Introduces a reward function that differentiates between successful and failed routings, enabling the algorithm to learn from both outcomes.
- Preserves and reuses search knowledge across different routing tasks, though current implementation does not yet support cross-state knowledge transfer.
Experimental results
Research questions
- RQ1Can a deep neural network effectively guide MCTS in solving complex circuit routing problems without relying on handcrafted heuristics?
- RQ2Does using a maximum-reward-based UCT selection improve routing success and solution quality compared to average-reward-based UCT?
- RQ3Can the proposed MCTS-DNN framework route circuits that are unsolvable by standard algorithms like A* or Lee’s algorithm?
- RQ4How does the integration of DNN-guided rollouts affect search efficiency and wire length optimization?
- RQ5To what extent can the framework be extended to multi-layer designs or other routing constraints without architectural changes?
Key findings
- The proposed MCTS with DNN-guided rollout achieved 100% success rate on complex single-layer circuits after 1,000 iterations, outperforming baseline methods that failed entirely.
- With 5,000 iterations, the method reduced wire redundancy ratio to 4.5%, significantly lower than the 76.7% average for vanilla MCTS using average-reward UCT.
- The Max-UCT variant showed a monotonic decrease in wire redundancy with increasing iterations, while the Avg-UCT variant did not, indicating better convergence and optimization.
- The DNN-DFS rollout policy enabled 93.33% average success rate at 500 iterations and 100% at 1,000 iterations, demonstrating strong scalability and guidance quality.
- The approach successfully routed circuits that were unsolvable by sequential A* and Lee’s algorithm, proving its capability on challenging instances.
- The framework is highly adaptable: changing design rules or optimization goals only requires modifying the reward function, not the algorithm or codebase.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.