PipeThreader: Software-Defined Pipelining for Efficient DNN Execution
Yu Cheng, Lei Wang, Yining Shi, Yuqing Xia, Lingxiao Ma, Jilong Xue, Yang Wang, Zhiwen Mo, Feiyang Chen, Fan Yang, Mao Yang, Zhi Yang
摘要
To effectively utilize heterogeneous specialized hardware units in modern GPUs, such as TensorCores and Tensor Memory Accelerators, this paper introduces PipeThreader, a new DNN compiler. PipeThreader proposes shifting scheduling functionality from hardware to software so as to enable more efficient and sophisticated computation pipelining with minimal manual effort. This is achieved through sTask-graph, a new DNN computation abstraction, a hierarchical hardware abstraction that captures the capabilities of specialized units, and new scheduling primitives. As a result, PipeThreader can discover efficient pipeline scheduling for well-studied DNN architectures like FlashAttention, achieving comparable or even superior performance. Additionally, it can uncover novel pipeline schemes for emerging models like Mamba2, delivering significantly better performance compared to stateof-the-art hand-crafted implementations. The code is opensourced at https://github.com/tile-ai/tilelang.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EGG: An Expert-Guided Agent Framework for Kernel Generation 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- EGG: An Expert-Guided Agent Framework for Kernel Generation 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs 引用了 FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Accelerating Sparse Transformer Inference on GPU 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Accelerating Sparse Transformer Inference on GPU 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Accelerating Sparse Transformer Inference on GPU 引用了 FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Sparse Attention Adaptation for Long Reasoning 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Sparse Attention Adaptation for Long Reasoning 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- Sparse Attention Adaptation for Long Reasoning 引用了 FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
- Sparse Attention Adaptation for Long Reasoning 引用了 Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
引用它的顶会 Paper6
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor ProgramsXinhao Cheng, Zhihao Zhang, Yu Zhou, Jianan Ji 等OSDI 2026 · 20 次引用
- Sparse Attention Adaptation for Long ReasoningYizhao Gao, Shuming Guo, Shijie Cao, Yuqing Xia 等ICLR 2026 · 17 次引用
- Optimal Software Pipelining and Warp Specialization for Tensor Core GPUsRupanshu Soi, Rohan Yadav, Fredrik Kjolstad, Alex Aiken 等OSDI 2026 · 9 次引用
- Accelerating Sparse Transformer Inference on GPUWenhao Dai, Haodong Deng, Mengfei Rong, Xinyu Yang 等PPoPP 2026 · 1 次引用
- EGG: An Expert-Guided Agent Framework for Kernel GenerationYaochen Han, Ke Fan, Hongxu Jiang, Wanqi Xu 等ICML 2026
它引用的 Paper15
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
- Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space DualityTri Dao, Albert GuICML 2024 · 1,407 次引用
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisionJay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar 等NeurIPS 2024 · 727 次引用
相关 Paper
- Rammer: Enabling Holistic Deep Learning Compiler Optimizations with rTasksLingxiao Ma, Zhiqiang Xie, Zhi Yang, Jilong Xue 等OSDI 2020 · 192 次引用
- Task-Based Tensor Computations on Modern GPUsRohan Yadav, Michael Garland, Alex Aiken, Michael BauerPLDI 2025 · 5 次引用
- Mosaic: Exploiting Instruction-Level Parallelism on Deep Learning Accelerators with iTex TessellationJianxing Xu, Yuanbo Wen, Zikang Liu, Ruibai Xu 等ASPLOS 2025 · 2 次引用
- Effectively Scheduling Computational Graphs of Deep Neural Networks toward Their Domain-Specific AcceleratorsJie Zhao, Siyuan Feng, Xiaoqiang Dan, Fei Liu 等OSDI 2023 · 9 次引用
- Welder: Scheduling Deep Learning Memory Access via Tile-graphYining Shi, Zhi Yang, Jilong Xue, Lingxiao Ma 等OSDI 2023 · 64 次引用
