Lune

ASPLOS2023顶会

TLP: A Deep Learning-Based Cost Model for Tensor Program Tuning

Yi Zhai, Yu Zhang, Shuo Liu, Xiaomeng Chu, Jie Peng, Jianmin Ji, Yanyong Zhang

摘要

Tensor program tuning is a non-convex objective optimization problem, to which search-based approaches have proven to be effective. At the core of the search-based approaches lies the design of the cost model. Though deep learning-based cost models perform significantly better than other methods, they still fall short and suffer from the following problems. First, their feature extraction heavily relies on expert-level domain knowledge in hardware architectures. Even so, the extracted features are often unsatisfactory and require separate considerations for CPUs and GPUs. Second, a cost model trained on one hardware platform usually performs poorly on another, a problem we call cross-hardware unavailability.

In order to address these problems, we propose TLP and MTL-TLP. TLP is a deep learning-based cost model that facilitates tensor program tuning. Instead of extracting features from the tensor program itself, TLP extracts features from the schedule primitives. We treat schedule primitives as tensor languages. TLP is thus a Tensor Language Processing task. In this way, the task of predicting the tensor program latency through the cost model is transformed into a natural language processing (NLP) regression task. MTL-TLP combines Multi-Task Learning and TLP to cope with the crosshardware unavailability problem.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor Programs 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • LLMulator: Generalizable Cost Modeling for Dataflow Accelerators with Input-Adaptive Control Flow 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning 引用了 Enabling Tensor Language Model to Assist in Generating High-Performance Tensor Programs for Deep Learning
  • Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning 引用了 FlexTensor: An Automatic Schedule Exploration and Optimization Framework for Tensor Computation on Heterogeneous System
  • Enabling Tensor Language Model to Assist in Generating High-Performance Tensor Programs for Deep Learning 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • Enabling Tensor Language Model to Assist in Generating High-Performance Tensor Programs for Deep Learning 引用了 Language Models are Few-Shot Learners
  • Enabling Tensor Language Model to Assist in Generating High-Performance Tensor Programs for Deep Learning 引用了 FlexTensor: An Automatic Schedule Exploration and Optimization Framework for Tensor Computation on Heterogeneous System
  • FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core Connection 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core Connection 引用了 FlexTensor: An Automatic Schedule Exploration and Optimization Framework for Tensor Computation on Heterogeneous System
  • Ansor: Generating High-Performance Tensor Programs for Deep Learning 引用了 FlexTensor: An Automatic Schedule Exploration and Optimization Framework for Tensor Computation on Heterogeneous System
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Enabling Tensor Language Model to Assist in Generating High-Performance Tensor Programs for Deep LearningYi Zhai, Sijia Yang, Keyu Pan, Renwei Zhang 等OSDI 2024 · 19 次引用
  2. CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor ProgramsHanpeng Hu, Junwei Su, Juntao Zhao, Yanghua Peng 等EuroSys 2024 · 7 次引用
  3. Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program TuningLiang Qiao, Jun Shi, Xiaoyu Hao, Xi Fang 等ASPLOS 2025 · 5 次引用
  4. LLMulator: Generalizable Cost Modeling for Dataflow Accelerators with Input-Adaptive Control FlowKaiyan Chang, Wenlong Zhu, Shengwen Liang, Huawei Li 等MICRO 2025 · 1 次引用
  5. FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core ConnectionZiyu Huang, Yangjie Zhou, Zihan Liu, Xinhao Luo 等HPCA 2026

它引用的 Paper7

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang 等EMNLP Findings 2020 · 1,787 次引用
  3. Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu 等OSDI 2020 · 551 次引用
  4. FlexTensor: An Automatic Schedule Exploration and Optimization Framework for Tensor Computation on Heterogeneous SystemSize Zheng, Yun Liang, Shuo Wang, Renze Chen 等ASPLOS 2020 · 171 次引用
  5. Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network CompilationByung Hoon Ahn, Prannoy Pilligundla, Amir Yazdanbakhsh, Hadi EsmaeilzadehICLR 2020 · 90 次引用

相关 Paper

  1. Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor ProgramsYaoyao Ding, Cody Hao Yu, Bojian Zheng, Yizhi Liu 等ASPLOS 2023 · 27 次引用
  2. Tensor Program Optimization with Probabilistic ProgramsJunru Shao, Xiyou Zhou, Siyuan Feng, Bohan Hou 等NeurIPS 2022 · 85 次引用
  3. Felix: Optimizing Tensor Programs with Gradient DescentYifan Zhao, Hashim Sharif, Vikram S. Adve, Sasa MisailovicASPLOS 2024 · 13 次引用
  4. Crop: An Analytical Cost Model for Cross-Platform Performance Prediction of Tensor ProgramsXinyu Sun, Yu Zhang, Shuo Liu, Yi ZhaiDAC 2024 · 2 次引用
  5. DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network CompilationMinjia Zhang, Menghao Li, Chi Wang, Mingqin LiICLR 2021 · 18 次引用
黄昏的海面,两侧是细线勾勒的悬崖