Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/3583133.3590536acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
poster

Two-point Crossover Operator in Genetic Algorithm for Deep Learning Compiler

Published: 24 July 2023 Publication History

Abstract

The wide usage of tensor computation in deep neural networks (DNNs) has boosted the high demand for high-performance and flexible library implementation on different hardware platforms, which is time-cost and inefficient. Deep learning compilers (DLCs) are therefore proposed, such as Ansor, to search the optimization computation combinations automatically. Ansor can generate high-performance tensor programs by employing Genetic Algorithm (GA) in its auto-tuning process. However, the structure information of an individual is easily destroyed by the uniform crossover operator, which leads to low search efficiency. In this paper, we propose a two-point crossover operator applied in Ansor called Ansor-TPC, which can optimize tensor computation with higher efficiency. The tensor expression can be computed with random schedules regarded as individuals. When performing the crossover operator, Ansor-TPC exchanges parent genes at two points instead of every point, which can preserve the structure information of programs and find the optimal schedule combination in the large search space. A high-performance program is generated for targeted hardware based on the optimized schedule configuration. Ansor-TPC is compared with the benchmarks at different levels. In terms of average performance, Ansor-TPC achieves 1.07--23.2× performance speedup. In terms of the best performance, Ansor-TPC outperforms by up to 1.06--23.0×.

References

[1]
Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Haichen Shen, Meghan Cowan, Leyuan Wang, Yuwei Hu, Luis Ceze, et al. {TVM}: An automated {End-to-End} optimizing compiler for deep learning. In 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18), pages 578--594, 2018.
[2]
Nicolas Vasilache, Oleksandr Zinenko, Theodoros Theodoridis, Priya Goyal, Zachary DeVito, William S Moses, Sven Verdoolaege, Andrew Adams, and Albert Cohen. Tensor comprehensions: Framework-agnostic high-performance machine learning abstractions. arXiv preprint arXiv:1802.04730, 2018.
[3]
Nadav Rotem, Jordan Fix, Saleem Abdulrasool, Garret Catron, Summer Deng, Roman Dzhabarov, Nick Gibson, James Hegeman, Meghan Lele, Roman Levenstein, et al. Glow: Graph lowering compiler techniques for neural networks. arXiv preprint arXiv:1805.00907, 2018.
[4]
Scott Cyphers, Arjun K Bansal, Anahita Bhiwandiwalla, Jayaram Bobba, Matthew Brookhart, Avijit Chakraborty, Will Constable, Christian Convey, Leona Cook, Omar Kanawi, et al. Intel ngraph: An intermediate representation, compiler, and executor for deep learning. arXiv preprint arXiv:1801.08058, 2018.
[5]
Chris Leary and Todd Wang. Xla: Tensorflow, compiled. TensorFlow Dev Summit, 2017.
[6]
Lianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu, Cody Hao Yu, Ameer Haj-Ali, Yida Wang, Jun Yang, Danyang Zhuo, Koushik Sen, et al. Ansor: Generating {High-Performance} tensor programs for deep learning. In 14th USENIX symposium on operating systems design and implementation (OSDI 20), pages 863--879, 2020.
[7]
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770--778, 2016.

Index Terms

  1. Two-point Crossover Operator in Genetic Algorithm for Deep Learning Compiler

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    GECCO '23 Companion: Proceedings of the Companion Conference on Genetic and Evolutionary Computation
    July 2023
    2519 pages
    ISBN:9798400701207
    DOI:10.1145/3583133
    Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the owner/author(s).

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 24 July 2023

    Check for updates

    Author Tags

    1. deep learning compiler
    2. genetic algorithm
    3. crossover operator

    Qualifiers

    • Poster

    Conference

    GECCO '23 Companion
    Sponsor:

    Acceptance Rates

    Overall Acceptance Rate 1,669 of 4,410 submissions, 38%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 73
      Total Downloads
    • Downloads (Last 12 months)36
    • Downloads (Last 6 weeks)7
    Reflects downloads up to 18 Nov 2024

    Other Metrics

    Citations

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media