Every Microsecond Matters: Achieving Near Speed-of-Light Latency in GPU Collectives
Siyuan Shen, Anton Korzh, John Bachan, Tiancheng Chen, Arnav Goel, Ludwig Schneider, Pouya Kousha, Zhenhao He, Sylvain Jeaugey, Kamil Iskra, Nishank Chandawala, Jeff R. Hammond, Torsten Hoefler
Abstract
GPU collective communication is typically optimized for bandwidth, yet many emerging workloads are increasingly limited by latency. Long-context decode-heavy large language model (LLM) inference is a prime example, where serving large models requires multiple GPUs, and many small collectives lie directly on the critical path of token generation. Therefore, even microsecond of overhead can impact performance and cost. In this work, we study how to approach the hardware Speed-of-Light (SoL) lower bound for GPU collectives within a scale-up network. We identify key principles for near-optimal designs, including barrier-free synchronization and efficient use of symmetric memory and multicast. Building on NCCL's device-side API, we develop low-latency interfaces for constructing custom collective kernels and use them to implement new symmetric collectives in NCCL. Microbenchmarks show substantial latency reductions for small and medium messages, reducing overhead to within 7% of the absolute SoL lower bound. When integrated into real applications, these kernels improve inter-token latency and throughput in LLM inference and accelerate cuSOLVERMp, demonstrating benefits for both AI inference and traditional HPC workloads.
Create a lesson
Related papers
Isonomy: Isolating Every Request from Timing Side Channels at Nearly Full-Sharing Throughput in Multi-Instance LLM Prefill
Shared title terminologycs.DCBowen Sun, Chaowei Xiao
A Matter of Stages: Energy-Latency Trade-offs in Multimodal LLM Serving
Shared title terminologycs.DCYifan Sun, Jiantong Jiang, Zhexiang Zhang et al.
Joule is FLOP: Optimizing Tensor-Core Kernels Beyond Latency Hiding at the GPU Power Wall
Shared title terminologycs.DCTaowen Liu, Zhiwen Mo, Hongxiang Fan et al.
Collecting Infrastructure-Level Measures for Energy Analysis in Modern Computing Infrastructures
Shared title terminologycs.DCIsac Pasianotto, Stefano Cozzini, Niccolo Tosato
Hermes: Low Tail-Latency Via Prefix Consensus
Shared title terminologycs.DCAlejandro Ranchal-Pedrosa, Dakai Kang, Neil Giridharan et al.
LA-IMR: Latency-Aware, Predictive In-Memory Routing and Proactive Autoscaling for Tail-Latency-Sensitive Cloud Robotics
Shared title terminologycs.DCEunil Seo, Chanh Nguyen, Erik Elmroth