Tue 14 Jun 2022 09:05 - 09:35 at Toucan - Opening Chair(s): Max Willsey
Tue 14 Jun 2022 21:05 - 21:35 at Toucan - Opening

Equality saturation allows to optimize programs by growing an e-graph using rewrite rules, efficiently exploring many equivalent programs. Unfortunately, some optimizations remain out of reach: the e-graph grows too big as they require long rewrite sequences and explosive combinations of rewrite rules (e.g. associativity and commutativity).

In this talk, we propose sketch-guided equality saturation to factor unfeasible equality saturations into a sequence of simpler, feasible equality saturations. The programmer guides rewriting by providing a sequence of sketches, describing how the program should evolve during optimization.

Sketch-guided equality saturation is evaluated by performing seven realistic optimizations of matrix multiplication expressed in a functional array language called Rise. Unguided equality saturation cannot discover the five most complex optimizations, even with an hour of compilation time and 60GB of RAM. By specifying three or fewer sketch guides, all seven optimizations are found in seconds of compilation time, using under 1GB of RAM, and generating high performance code.

Slides (slides.pdf)1.17MiB

Tue 14 Jun

Displayed time zone: Pacific Time (US & Canada) change

09:00 - 10:00
OpeningEGRAPHS at Toucan +12h
Chair(s): Max Willsey University of Washington
09:00
5m
Day opening
Welcome
EGRAPHS
Max Willsey University of Washington
09:05
30m
Talk
Sketch-Guided Equality Saturation
EGRAPHS
Thomas Koehler University of Glasgow
Pre-print File Attached
09:35
25m
Talk
Synthesizing Mathematical Identities with E-graphs
EGRAPHS
Ian Briggs University of Utah, Pavel Panchekha University of Utah
Link to publication Pre-print
21:00 - 22:00
OpeningEGRAPHS at Toucan
21:00
5m
Day opening
Welcome
EGRAPHS
Max Willsey University of Washington
21:05
30m
Talk
Sketch-Guided Equality Saturation
EGRAPHS
Thomas Koehler University of Glasgow
Pre-print File Attached
21:35
25m
Talk
Synthesizing Mathematical Identities with E-graphs
EGRAPHS
Ian Briggs University of Utah, Pavel Panchekha University of Utah
Link to publication Pre-print