Reproduce “E-Graphs as Circuits, and Optimal Extraction via Treewidth” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Glenn Sun, Yihong Zhang, Haobin Ni

Researchers at the University of Washington formally establish an equivalence between e-graphs and weighted cyclic monotone circuits, which enables an optimal extraction algorithm parameterized by treewidth. Extensive circuit simplification techniques are shown to substantially reduce problem size and treewidth for real-world e-graphs, enhancing the algorithm's practical applicability.

Key insights

  • E-graphs can be formally represented as weighted cyclic monotone circuits, bridging program analysis with established circuit theory and enabling the transfer of circuit algorithms.
  • Treewidth, a measure of graph 'tree-likeness,' is an effective parameter for developing exact, albeit parameterized, algorithms for the NP-hard optimal e-graph extraction problem.
  • Applying circuit simplification prior to the treewidth-based algorithm is critical for practical performance, as it dramatically reduces problem size and treewidth, making more instances tractable.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.