OpEvo: An Evolutionary Method for Tensor Operator Optimization

Abstract

Training and inference efficiency of deep neural networks highly rely on the performance of tensor operators on hardware platforms. Manually optimizing tensor operators has limitations in terms of supporting new operators or hardware platforms. Therefore, automatically optimizing device code configurations of tensor operators is getting increasingly attractive. However, current methods for tensor operator optimization usually suffer from poor sample-efficiency due to the combinatorial search space. In this work, we propose a novel evolutionary method, OpEvo, which efficiently explores the search spaces of tensor operators by introducing a topology-aware mutation operation based on q-random walk to leverage the topological structures over the search spaces. Our comprehensive experiment results show that compared with state-of-the-art(SOTA) methods OpEvo can find the best configuration with the lowest variance and least efforts in the number of trials and wall-clock time. All code of this work is available online.

Cite

Text

Gao et al. "OpEvo: An Evolutionary Method for Tensor Operator Optimization." AAAI Conference on Artificial Intelligence, 2021. doi:10.1609/AAAI.V35I14.17462

Markdown

[Gao et al. "OpEvo: An Evolutionary Method for Tensor Operator Optimization." AAAI Conference on Artificial Intelligence, 2021.](https://mlanthology.org/aaai/2021/gao2021aaai-opevo/) doi:10.1609/AAAI.V35I14.17462

BibTeX

@inproceedings{gao2021aaai-opevo,
  title     = {{OpEvo: An Evolutionary Method for Tensor Operator Optimization}},
  author    = {Gao, Xiaotian and Cui, Wei and Zhang, Lintao and Yang, Mao},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2021},
  pages     = {12320-12327},
  doi       = {10.1609/AAAI.V35I14.17462},
  url       = {https://mlanthology.org/aaai/2021/gao2021aaai-opevo/}
}