LLM-Guided Strategy Synthesis for Scalable Equality Saturation
Chenyun Yin, Youwei Xiao, Yuze Luo, Yuyang Zou, Yun Liang

TL;DR
EggMind leverages large language models to automate the synthesis of reusable strategies for equality saturation, significantly improving efficiency and resource usage in compiler optimization tasks.
Contribution
Introduces a novel LLM-guided framework with a domain-specific language for efficient, stable, and reusable equality saturation strategy synthesis.
Findings
Reduced final cost by 45.1% on vectorization benchmarks.
Lowered peak RAM usage by 69.1%.
Transferred methodology effectively to tensor compiler and logic synthesis.
Abstract
Equality saturation (EqSat) is a powerful optimization paradigm that compactly represents many equivalent programs in an e-graph and delays commitment until extraction selects a lowest-cost program. Making EqSat effective, therefore, requires not only domain-specific rewrite rules but also domain-specific strategies. Today, much of this strategy design is still manual, making it a major obstacle to automating e-graph-based compilers. Recent rule-synthesis frameworks can automatically infer large rewrite vocabularies from semantic specifications, but they also enlarge the rewrite space and further exacerbate e-graph explosion. Although large language models (LLMs) make automated strategy synthesis plausible, directly evolving backend code remains ineffective in practice. The search lacks reusable strategy abstractions and actionable feedback, and can easily trigger e-graph explosion or…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
