ClusterFusion: Expanding Operator Fusion Scope for LLM Inference via Cluster-Level Collective Primitive

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Luo, Xinhao, Liu, Zihan, Zhou, Yangjie, Fang, Shihan, Huang, Ziyu, Feng, Yu, Zhang, Chen, Sun, Shixuan, Zheng, Zhenzhe, Leng, Jingwen, Guo, Minyi
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916918312566784
author Luo, Xinhao
Liu, Zihan
Zhou, Yangjie
Fang, Shihan
Huang, Ziyu
Feng, Yu
Zhang, Chen
Sun, Shixuan
Zheng, Zhenzhe
Leng, Jingwen
Guo, Minyi
author_facet Luo, Xinhao
Liu, Zihan
Zhou, Yangjie
Fang, Shihan
Huang, Ziyu
Feng, Yu
Zhang, Chen
Sun, Shixuan
Zheng, Zhenzhe
Leng, Jingwen
Guo, Minyi
contents Large language model (LLM) decoding suffers from high latency due to fragmented execution across operators and heavy reliance on off-chip memory for data exchange and reduction. This execution model limits opportunities for fusion and incurs significant memory traffic and kernel launch overhead. While modern architectures such as NVIDIA Hopper provide distributed shared memory and low-latency intra-cluster interconnects, they expose only low-level data movement instructions, lacking structured abstractions for collective on-chip communication. To bridge this software-hardware gap, we introduce two cluster-level communication primitives, ClusterReduce and ClusterGather, which abstract common communication patterns and enable structured, high-speed data exchange and reduction between thread blocks within a cluster, allowing intermediate results to be on-chip without involving off-chip memory. Building on these abstractions, we design ClusterFusion, an execution framework that schedules communication and computation jointly to expand operator fusion scope by composing decoding stages such as QKV Projection, Attention, and Output Projection into a single fused kernels. Evaluations on H100 GPUs show that ClusterFusion outperforms state-of-the-art inference frameworks by 1.61x on average in end-to-end latency across different models and configurations. The source code is available at https://github.com/xinhao-luo/ClusterFusion.
format Preprint
id arxiv_https___arxiv_org_abs_2508_18850
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ClusterFusion: Expanding Operator Fusion Scope for LLM Inference via Cluster-Level Collective Primitive
Luo, Xinhao
Liu, Zihan
Zhou, Yangjie
Fang, Shihan
Huang, Ziyu
Feng, Yu
Zhang, Chen
Sun, Shixuan
Zheng, Zhenzhe
Leng, Jingwen
Guo, Minyi
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Large language model (LLM) decoding suffers from high latency due to fragmented execution across operators and heavy reliance on off-chip memory for data exchange and reduction. This execution model limits opportunities for fusion and incurs significant memory traffic and kernel launch overhead. While modern architectures such as NVIDIA Hopper provide distributed shared memory and low-latency intra-cluster interconnects, they expose only low-level data movement instructions, lacking structured abstractions for collective on-chip communication. To bridge this software-hardware gap, we introduce two cluster-level communication primitives, ClusterReduce and ClusterGather, which abstract common communication patterns and enable structured, high-speed data exchange and reduction between thread blocks within a cluster, allowing intermediate results to be on-chip without involving off-chip memory. Building on these abstractions, we design ClusterFusion, an execution framework that schedules communication and computation jointly to expand operator fusion scope by composing decoding stages such as QKV Projection, Attention, and Output Projection into a single fused kernels. Evaluations on H100 GPUs show that ClusterFusion outperforms state-of-the-art inference frameworks by 1.61x on average in end-to-end latency across different models and configurations. The source code is available at https://github.com/xinhao-luo/ClusterFusion.
title ClusterFusion: Expanding Operator Fusion Scope for LLM Inference via Cluster-Level Collective Primitive
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
url https://arxiv.org/abs/2508.18850