ATiM: Autotuning Tensor Programs for Processing-in-DRAM
Yongwon Shin, Dookyung Kang, Hyojin Sung
摘要
Processing-in-DRAM (DRAM-PIM) has emerged as a promising technology for accelerating memory-intensive operations in modern applications, such as Large Language Models (LLMs). Despite its potential, current software stacks for DRAM-PIM face significant challenges, including reliance on hand-tuned libraries that hinder programmability, limited support for high-level abstractions, and the lack of systematic optimization frameworks. To address these limitations, we present ATiM, a search-based optimizing tensor compiler for UPMEM. Key features of ATiM include: (1) automated searches of the joint search space for host and kernel tensor programs, (2) PIM-aware optimizations for efficiently handling boundary conditions, and ( 3) improved search algorithms for the expanded search space of UPMEM systems. Our experimental results on UPMEM hardware demonstrate performance gains of up to 6.18× for various UPMEM benchmark kernels and 8.21× for GPT-J layers. To the best of our knowledge, ATiM is the first tensor compiler to provide fully automated, autotuning-integrated code generation support for a DRAM-PIM system. By bridging the gap between high-level tensor computation abstractions and low-level hardware-specific requirements, ATiM establishes a foundation for advancing DRAM-PIM programmability and enabling streamlined optimization.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Bringing Near Data Processing Into the Low-Bit Floating-Point Era 引用了 Pathfinding Future PIM Architectures by Demystifying a Commercial PIM Technology
- PIM-Malloc: A Fast and Scalable Dynamic Memory Allocator for Processing-In-Memory (PIM) Architectures 引用了 Pathfinding Future PIM Architectures by Demystifying a Commercial PIM Technology
- TensorIR: An Abstraction for Automatic Tensorized Program Optimization 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
- DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures 引用了 Pathfinding Future PIM Architectures by Demystifying a Commercial PIM Technology
- DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
- DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures 引用了 TensorIR: An Abstraction for Automatic Tensorized Program Optimization
- DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures 引用了 Tensor Program Optimization with Probabilistic Programs
- Tensor Program Optimization with Probabilistic Programs 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
引用它的顶会 Paper3
- DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory ArchitecturesPeiming Yang, Sankeerth Durvasula, Ivan Fernandez, Mohammad Sadrosadati 等ISCA 2026 · 3 次引用
- PIM-Malloc: A Fast and Scalable Dynamic Memory Allocator for Processing-In-Memory (PIM) ArchitecturesDongjae Lee, Bongjoon Hyun, Youngjin Kwon, Minsoo RhuHPCA 2026 · 1 次引用
- Bringing Near Data Processing Into the Low-Bit Floating-Point EraTongxin Xie, Mingyu Gao, Zehao Wang, Zhihao Jia 等ISCA 2026
它引用的 Paper11
- Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu 等OSDI 2020 · 551 次引用
- Tensor Program Optimization with Probabilistic ProgramsJunru Shao, Xiyou Zhou, Siyuan Feng, Bohan Hou 等NeurIPS 2022 · 85 次引用
- TensorIR: An Abstraction for Automatic Tensorized Program OptimizationSiyuan Feng, Bohan Hou, Hongyi Jin, Wuwei Lin 等ASPLOS 2023 · 80 次引用
- iPIM: Programmable In-Memory Image Processing Accelerator Using Near-Bank ArchitecturePeng Gu, Xinfeng Xie, Yufei Ding, Guoyang Chen 等ISCA 2020 · 77 次引用
- Pathfinding Future PIM Architectures by Demystifying a Commercial PIM TechnologyBongjoon Hyun, Taehun Kim, Dongjae Lee, Minsoo RhuHPCA 2024 · 62 次引用
相关 Paper
- QiMeng-Tensify: Scaling Up Tensor Computation Optimization via Architecture-Aware LLM-Guided MCTSShouyang Dong, Jun Bi, Yuanbo Wen, Xiyue Yu 等ISCA 2026
- Tempo: Compiled Dynamic Deep Learning with Symbolic Dependence GraphsPedro F. Silvestre, Peter R. PietzuchSOSP 2025
- IANUS: Integrated Accelerator based on NPU-PIM Unified Memory SystemMinseok Seo, Xuan Truong Nguyen, Seok Joong Hwang, Yongkee Kwon 等ASPLOS 2024 · 57 次引用
- PAISE: PIM-Accelerated Inference Scheduling Engine for Transformer-based LLMHyojung Lee, Daehyeon Baek, Jimyoung Son, Jieun Choi 等HPCA 2025 · 10 次引用
- Enhancing LLM to Decompile Optimized PTX to Readable CUDA for Tensor ProgramsXinyu Sun, Fugen Tang, Yu Zhang, Han Shen 等ASE 2025
