REGAL: Transfer Learning For Fast Optimization of Computation Graphs

05/07/2019
by   Aditya Paliwal, et al.
14

We present a deep reinforcement learning approach to optimizing the execution cost of computation graphs in a static compiler. The key idea is to combine a neural network policy with a genetic algorithm, the Biased Random-Key Genetic Algorithm (BRKGA). The policy is trained to predict, given an input graph to be optimized, the node-level probability distributions for sampling mutations and crossovers in BRKGA. Our approach, "REINFORCE-based Genetic Algorithm Learning" (REGAL), uses the policy's ability to transfer to new graphs to significantly improve the solution quality of the genetic algorithm for the same objective evaluation budget. As a concrete application, we show results for minimizing peak memory in TensorFlow graphs by jointly optimizing device placement and scheduling. REGAL achieves on average 3.56 previously unseen graphs, outperforming all the algorithms we compare to, and giving 4.4x bigger improvement than the next best algorithm. We also evaluate REGAL on a production compiler team's performance benchmark of XLA graphs and achieve on average 3.74 others. Our approach and analysis is made possible by collecting a dataset of 372 unique real-world TensorFlow graphs, more than an order of magnitude more data than previous work.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/15/2021

FOGA: Flag Optimization with Genetic Algorithm

Recently, program autotuning has become very popular especially in embed...
research
11/03/2017

Genetic Policy Optimization

Genetic algorithms have been widely used in many practical optimization ...
research
06/20/2019

Placeto: Learning Generalizable Device Placement Algorithms for Distributed Machine Learning

We present Placeto, a reinforcement learning (RL) approach to efficientl...
research
04/07/2004

Optimizing genetic algorithm strategies for evolving networks

This paper explores the use of genetic algorithms for the design of netw...
research
02/26/2021

Genetic Algorithm based hyper-parameters optimization for transfer Convolutional Neural Network

Hyperparameter optimization is a challenging problem in developing deep ...
research
09/14/2019

Employing Genetic Algorithm as an Efficient Alternative to Parameter Sweep Based Multi-Layer Thickness Optimization in Solar Cells

Conventional solar cells are predominately designed similar to a stacked...
research
05/30/2019

Reinforcement Learning and Adaptive Sampling for Optimized DNN Compilation

Achieving faster execution with shorter compilation time can enable furt...

Please sign up or login with your details

Forgot password? Click here to reset