paper-with-me

홈 › 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 approach is to sequentially rewrite the input computation graph into an equivalent but faster one by replacing individual subgraphs. This approach gives rise to the so-called phase-ordering problem in which the application of one rewrite rule can eliminate the possibility to apply an even better one later on. Recent work has shown that equality saturation, a technique from compiler optimization, can mitigate this issue by first building an intermediate representation (IR) that efficiently stores multiple optimized versions of the input program before extracting the best solution in a second step. In practice, however, memory constraints prevent the IR from capturing all optimized versions and thus reintroduce the phase-ordering problem in the construction phase. In this paper, we present a tensor graph rewriting approach that uses Monte Carlo tree search to build superior IRs by identifying the most promising rewrite rules. We also introduce a novel extraction algorithm that can provide fast and accurate runtime estimates of tensor programs represented in an IR. Our approach improves the inference speedup of neural networks by up to 11% compared to existing methods.

📄 PDF Abstract BibTeX arXiv:2410.05534

Code (0)

등록된 구현이 없습니다.

Tasks

Compiler Optimization

Similar Papers 제목 키워드 기반

Equality Saturation for Tensor Graph Superoptimization

2021-01-05 · Yichen Yang, Phitchaya Mangpo Phothilimtha, Yisu Remy Wang, Max Willsey 외

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

Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworks

2025-09-12 · Kahfi S. Zulkifli, Wenbo Qian, Shaowei Zhu, Yuan Zhou 외 arxiv

Modern machine learning frameworks support very large models by incorporating parallelism and optimization techniques. Yet, these very techniques add new layers of complexity, introducing silent errors that severely degr…

Relational Reasoning

Reinforced Genetic Algorithm Learning for Optimizing Computation Graphs

2019-05-07 · ICLR 2020 1 · Aditya Paliwal, Felix Gimeno, Vinod Nair, Yujia Li 외

We present a deep reinforcement learning approach to minimizing the execution cost of neural network computation graphs in an optimizing compiler. Unlike earlier learning-based works that require training the optimizer o…

Deep Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1

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

On McDiarmid's Inequality under Dependence via Approximate Tensorization of Entropy

2026-06-10 · Valentin Roth arxiv

We argue that dependent versions of McDiarmid's inequality are a useful but underutilized tool in mathematical statistics, learning theory and theoretical computer science. To make this point, we first highlight that app…