MCTS-GEB: Monte Carlo Tree Search is a Good E-graph Builder
Not on the map. Why?
Abstract (arXiv)
Rewrite systems [6, 10, 12] have been widely employing equality saturation [9], which is an optimisation methodology that uses a saturated e-graph to represent all possible sequences of rewrite simultaneously, and then extracts the optimal one. As such, optimal results can be achieved by avoiding the phase-ordering problem. However, we observe that when the e-graph is not saturated, it cannot represent all possible rewrite opportunities and therefore the phase-ordering problem is re-introduced during the construction phase of the e-graph. To address this problem, we propose MCTS-GEB, a domain-general rewrite system that applies reinforcement learning (RL) to e-graph construction. At its core, MCTS-GEB uses a Monte Carlo Tree Search (MCTS) [3] to efficiently plan for the optimal e-graph construction, and therefore it can effectively eliminate the phase-ordering problem at the construction phase and achieve better performance within a reasonable time. Evaluation in two different domains shows MCTS-GEB can outperform the state-of-the-art rewrite systems by up to 49x, while the optimisation can generally take less than an hour, indicating MCTS-GEB is a promising building block for the future generation of rewrite systems.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 6 of its 15 references that are in the map. First posted on arXiv 8 Mar 2023.
Builds on
6 of 15 references.
References · 6
- 2017Ray: A Distributed Framework for Emerging AI Applicationscited by 527
- 2021Monte Carlo Tree Search: A Review of Recent Modifications and Applicationscited by 161
- 2021Navigating to the Best Policy in Markov Decision Processescited by 29
- 2021Equality Saturation for Tensor Graph Superoptimizationcited by 27
- 2018Watch the Unobserved: A Simple Approach to Parallelizing Monte Carlo Tree Searchcited by 13
- 2020SPORES: Sum-Product Optimization via Relational Equality Saturation for Large Scale Linear Algebracited by 5
Built on by
Citing papers per year: 2024: 3; 2025: 1; 2026: 1.
5 papers.
- 2024Learning Evolving Tools for Large Language Modelscited by 16
- 2024Optimizing Tensor Computation Graphs with Equality Saturation and Monte Carlo Tree Searchcited by 1
- 2024Automated Strategy Invention for Confluence of Term Rewrite Systemscited by 0
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworkscited by 0
- 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturationcited by 0
- 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturation19 Apr 2026
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworks12 Sep 2025
- 2024Automated Strategy Invention for Confluence of Term Rewrite Systems10 Nov 2024
- 2024Learning Evolving Tools for Large Language Models9 Oct 2024
- 2024Optimizing Tensor Computation Graphs with Equality Saturation and Monte Carlo Tree Search7 Oct 2024