CERES: Making Equality Saturation Memory-Scalable
Equality saturation is an increasingly popular term rewriting technique that uses equivalence graphs (e-graphs). Modern equality saturation engines are fast and extensible, leading to the development of several e-graph applications across multiple domains, including compiler optimization and program synthesis. However, equality saturation engines are not memory scalable, forcing application designers to choose between practicality and expression quality.
In this paper, we present CERES, a new rewrite scheduler to improve the memory scalability of equality saturation. The core of CERES is a novel algorithm to approximate the subset of important rewrites to apply at each iteration. We evaluate CERES on Herbie, a widely used application that utilizes equality saturation for improving the accuracy of floating-point expressions. We show that CERES achieves similar expression quality for e-graphs in Herbie’s Hamming benchmark within an 8–12× lower memory budget, and, for the same memory budget, CERES achieves a 40–62% reduction in expression cost over the default Backoff Scheduler.
At the EGRAPHS workshop, we’ll present CERES and its benefits across multiple e-graph applications. We hope to work with the e-graph community to integrate CERES with upstream repositories of egg and egglog for wider adoption.
Mon 15 JunDisplayed time zone: Mountain Time (US & Canada) change
13:40 - 15:20 | |||
13:40 25mTalk | Rewrite System Showdown: Stochastic Search vs. EqSat EGRAPHS Qiantan Hong Stanford University, Rupanshu Soi Stanford University, Yihong Zhang University of Washington, Alex Aiken Stanford University Pre-print | ||
14:05 25mTalk | A Joint Approach to Instruction Scheduling and Algebraic Rewriting with E-Graphs EGRAPHS | ||
14:30 25mTalk | Answer Set Programming for Egg Extraction and More EGRAPHS Pre-print | ||
14:55 25mTalk | CERES: Making Equality Saturation Memory-Scalable EGRAPHS Akash Pardeshi University of Illinois at Urbana-Champaign, Devansh Jain University of Illinois at Urbana-Champaign, Saatvik Lochan University of Illinois Urbana-Champaign, Mihir Tandon University of Illinois Urbana-Champaign, Marco Frigo University of Illinois at Urbana-Champaign, Chamika Sudusinghe University of Illinois at Urbana-Champaign, Damitha Lenadora University of Illinois at Urbana-Champaign, Charith Mendis University of Illinois at Urbana-Champaign | ||