arXiv Machine Learning
Sep 21

Programming AMD XDNA NPUs with Open-source Compiler Tools: A FlashAttention Case Study

The paper reports on programming AMD XDNA NPUs for the FlashAttention workload using open‑source IRON and MLIR‑AIR compiler tools. It compares four reference designs on XDNA 1 and XDNA 2, showing that a fused kernel that keeps QKᵀ scores in local memory achieves 3.62 TFLOP/s on XDNA 2, doubling throughput and greatly improving energy efficiency over the IRON design and the integrated GPU. Roofline analysis guides when to fuse or stream operators based on each device’s ridge points, and the authors release the reference designs as open source.

By Erwei Wang, Ephrem Wu, Victor J. B. Jung, Jiajie Li, Andre Rosti, Joseph Melber, Samuel Bayliss
arXiv Machine Learning
Oct 28

One Megakernel is Not Enough: Predicting Where to Cut for Streaming Inference

The paper investigates how to optimally partition streaming inference models into megakernels and conventional graph components. It introduces a framework that predicts the best megakernel composition without full end‑to‑end runs, showing that multiple megakernels or a fully conventional graph often outperform a single megakernel across various models and batch sizes. The study defines four model categories based on megakernel stability and demonstrates significant latency and throughput gains on an H100 NVL GPU using a three‑megakernel design.

By Aditya Chatterjee, Anand Joseph X M, Sanjay Singh Chauhan
arXiv Machine Learning
Nov 6

FastAFD: When Does Attention-FFN Disaggregation Pay on Rack-Scale NVLink?

FastAFD is an attention‑FFN disaggregation engine designed for rack‑scale NVLink systems such as GB200 NVL72. It overlaps the mixture‑of‑experts computation of one microbatch with the attention of another, achieving up to 1.17× higher throughput than the best wide‑expert‑parallelism vLLM configuration on Qwen3 and Qwen3.5, and matching it on MiniMax‑M2.5. An analytical model predicts AFD performance within 3% using only colocated vLLM profiles, revealing that speedup comes from batch and overlap gains that outweigh disaggregation costs, and that speculative decoding further boosts performance for light‑expert models.

By Yichao Fu, Yuxuan Zhang, Minshen Zhang, Ruitian Wang, Junda Chen, Hao Zhang