OpEvo:张量算子优化的一种进化方法
OpEvo: An Evolutionary Method for Tensor Operator Optimization
摘要:
深度神经网络的训练和推理效率高度依赖于张量算子在硬件平台上的性能。手动优化张量算子在支持新算子或硬件平台方面存在局限性。因此,自动优化张量算子的设备代码配置变得越来越有吸引力。然而,由于组合搜索空间的限制,目前的张量算子优化方法通常存在样本效率低的问题。在这项工作中,我们提出了一种新的进化方法,OpEvo,它有效地探讨了张量算子的搜索空间,通过引入一个拓扑感知变异操作的基础上q-随机游走,利用拓扑结构的搜索空间。我们的综合实验结果表明,与最先进的(SOTA)的方法相比,OpEvo可以找到最好的配置与最低的方差和最少的努力,在试验次数和挂钟时间。这项工作的所有代码都可以在网上找到。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。