Most compilers for machine learning (ML) frameworks need to solve many correlated optimization problems to generate efficient machine code. Current ML compilers rely on heuristics based algorithms to solve these optimization problems one at a time. However, this approach is not only hard to maintain but often leads to sub-optimal solutions especially for newer model architectures. Existing learning based approaches in the literature are sample inefficient, tackle a single optimization problem, and do not generalize to unseen graphs making them infeasible to be deployed in practice. To address these limitations, we propose an end-to-end, transferable deep reinforcement learning method for computational graph optimization (GO), based on a scalable sequential attention mechanism over an inductive graph neural network. GO generates decisions on the entire graph rather than on each individual node autoregressively, drastically speeding up the search compared to prior methods. Moreover, we propose recurrent attention layers to jointly optimize dependent graph optimization tasks and demonstrate 33%-60% speedup on three graph optimization tasks compared to TensorFlow default optimization. On a diverse set of representative graphs consisting of up to 80,000 nodes, including Inception-v3, Transformer-XL, and WaveNet, GO achieves on average 21% improvement over human experts and 18% improvement over the prior state of the art with 15x faster convergence, on a device placement task evaluated in real systems.
Boosting Transferable Adversarial Attacks against Deep Reinforcement Learning
Nanyang Technological University(南洋理工大学);University of California, Riverside(加利福尼亚大学河滨分校);University of Connecticut(康涅狄格大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))
MLComp: A Methodology for Machine Learning-based Performance Estimation and Adaptive Selection of Pareto-Optimal Compiler Optimization Sequences
Institute of Computer Engineering, Technische Universität Wien (TUWien)(维也纳技术大学计算机工程学院);TU Wien(维也纳技术大学);ABIX GmbH(ABIX有限公司);Division of Engineering, New York University Abu Dhabi(纽约大学阿布扎比分校工程学院)
ensmallen: a flexible C++ library for efficient function optimization
Delhi Technological University(德里理工大学);RelationalAI(RelationalAI公司);Free University of Berlin(柏林自由大学);Data61, CSIRO(澳大利亚联邦科学与工业研究组织数据61研究所);University of Queensland(昆士兰大学)