paper-with-me

홈 › Papers

Equality Saturation for Tensor Graph Superoptimization

2021-01-05 · Yichen Yang, Phitchaya Mangpo Phothilimtha, Yisu Remy Wang, Max Willsey, Sudip Roy, Jacques Pienaar

One of the major optimizations employed in deep learning frameworks is graph rewriting. Production frameworks rely on heuristics to decide if rewrite rules should be applied and in which order. Prior research has shown that one can discover more optimal tensor computation graphs if we search for a better sequence of substitutions instead of relying on heuristics. However, we observe that existing approaches for tensor graph superoptimization both in production and research frameworks apply substitutions in a sequential manner. Such sequential search methods are sensitive to the order in which the substitutions are applied and often only explore a small fragment of the exponential space of equivalent graphs. This paper presents a novel technique for tensor graph superoptimization that employs equality saturation to apply all possible substitutions at once. We show that our approach can find optimized graphs with up to 16% speedup over state-of-the-art, while spending on average 48x less time optimizing.

📄 PDF Abstract BibTeX arXiv:2101.01332

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Optimizing Tensor Computation Graphs with Equality Saturation and Monte Carlo Tree Search

2024-10-07 · Jakob Hartmann, Guoliang He, Eiko Yoneki

The real-world effectiveness of deep neural networks often depends on their latency, thereby necessitating optimization techniques that can reduce a model's inference time while preserving its performance. One popular ap…

Compiler Optimization

Learned Graph Rewriting with Equality Saturation: A New Paradigm in Relational Query Rewrite and Beyond

2024-06-19 · George-Octavian Bărbulescu, Taiyi Wang, Zak Singh, Eiko Yoneki

Query rewrite systems perform graph substitutions using rewrite rules to generate optimal SQL query plans. Rewriting logical and physical relational query plans is proven to be an NP-hard sequential decision-making probl…

Decision Makingreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1

Prism: Symbolic Superoptimization of Tensor Programs

2026-04-16 · Mengdi Wu, Xiaoyu Jiang, Oded Padon, Zhihao Jia arxiv

This paper presents Prism, the first symbolic superoptimizer for tensor programs. The key idea is sGraph, a symbolic, hierarchical representation that compactly encodes large classes of tensor programs by symbolically re…

Graph Generation

LLM-Guided Strategy Synthesis for Scalable Equality Saturation

2026-04-19 · Chenyun Yin, Youwei Xiao, Yuze Luo, Yuyang Zou 외 arxiv

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 effectiv…

Learning to superoptimize programs - Workshop Version

2016-12-04 · Rudy Bunel, Alban Desmaison, M. Pawan Kumar, Philip H. S. Torr 외

Superoptimization requires the estimation of the best program for a given computational task. In order to deal with large programs, superoptimization techniques perform a stochastic search. This involves proposing a modi…

reinforcement-learningReinforcement LearningReinforcement Learning (RL)