Optimal Kernel Orchestration for Tensor Programs with Korch
Muyan Hu, Ashwin Venkatram, Shreyashri Biswas, Balamurugan Marimuthu, Bohan Hou, Gabriele Oliaro, Haojie Wang, Liyan Zheng, Xupeng Miao, Jidong Zhai, Zhihao Jia
摘要
Kernel orchestration is the task of mapping the computation defined in different operators of a deep neural network (DNN) to the execution of GPU kernels on modern hardware platforms. Prior approaches optimize kernel orchestration by greedily applying operator fusion, which fuses the computation of multiple operators into a single kernel, and miss a variety of optimization opportunities in kernel orchestration.
This paper presents Korch, a tensor program optimizer that discovers optimal kernel orchestration strategies for tensor programs. Instead of directly fusing operators, Korch first applies operator fission to decompose tensor operators into a small set of basic tensor algebra primitives. This decomposition enables a diversity of fine-grained, inter-operator optimizations. Next, Korch optimizes kernel orchestration by formalizing it as a constrained optimization problem, leveraging an off-the-shelf binary linear programming solver to discover an optimal orchestration strategy, and generating an executable that can be directly deployed on modern GPU platforms. Evaluation on a variety of DNNs shows that Korch outperforms existing tensor program optimizers by up to 1.7× on V100 GPUs and up to 1.6× on A100 GPUs. Korch is publicly available at https://github.com/humuyan/Korch.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Elk: Exploring the Efficiency of Inter-core Connected AI Chips with Deep Learning Compiler Techniques 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Elk: Exploring the Efficiency of Inter-core Connected AI Chips with Deep Learning Compiler Techniques 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
- VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination 引用了 EfficientViT: Lightweight Multi-Scale Attention for High-Resolution Dense Prediction
- VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
- VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination 引用了 Mirage: A Multi-Level Superoptimizer for Tensor Programs
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs 引用了 Mirage: A Multi-Level Superoptimizer for Tensor Programs
- EfficientViT: Lightweight Multi-Scale Attention for High-Resolution Dense Prediction 引用了 SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Mirage: A Multi-Level Superoptimizer for Tensor Programs 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
引用它的顶会 Paper9
- Mirage: A Multi-Level Superoptimizer for Tensor ProgramsMengdi Wu, Xinhao Cheng, Shengyu Liu, Chunan Shi 等OSDI 2025 · 49 次引用
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor ProgramsXinhao Cheng, Zhihao Zhang, Yu Zhou, Jianan Ji 等OSDI 2026 · 20 次引用
- Elk: Exploring the Efficiency of Inter-core Connected AI Chips with Deep Learning Compiler TechniquesYiqi Liu, Yuqi Xue, Noelle Crawford, Jilong Xue 等MICRO 2025 · 2 次引用
- QFactory: Accelerating Quantized Large Language Model Serving with Qtile GraphsQihao Zhang, Mingshu Zhai, Rui Sun, Jidong ZhaiUSENIX ATC 2025 · 2 次引用
- VTC: DNN Compilation with Virtual Tensors for Data Movement EliminationMuyan Hu, Ahan Gupta, Jiachen Yuan, Vima Gupta 等OSDI 2026
它引用的 Paper12
- SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar 等NeurIPS 2021 · 9,661 次引用
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar 等ICLR 2021 · 1,270 次引用
- Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu 等OSDI 2020 · 551 次引用
- EfficientViT: Lightweight Multi-Scale Attention for High-Resolution Dense PredictionHan Cai, Junyan Li, Muyan Hu, Chuang Gan 等ICCV 2023 · 265 次引用
相关 Paper
- EINNET: Optimizing Tensor Programs with Derivation-Based TransformationsLiyan Zheng, Haojie Wang, Jidong Zhai, Muyan Hu 等OSDI 2023 · 19 次引用
- Felix: Optimizing Tensor Programs with Gradient DescentYifan Zhao, Hashim Sharif, Vikram S. Adve, Sasa MisailovicASPLOS 2024 · 13 次引用
- Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor ProgramsYaoyao Ding, Cody Hao Yu, Bojian Zheng, Yizhi Liu 等ASPLOS 2023 · 27 次引用
- ROLLER: Fast and Efficient Tensor Compilation for Deep LearningHongyu Zhu, Ruofan Wu, Yijia Diao, Shanbin Ke 等OSDI 2022 · 84 次引用
- AKG: automatic kernel generation for neural processing units using polyhedral transformationsJie Zhao, Bojie Li, Wang Nie, Zhen Geng 等PLDI 2021 · 81 次引用
