arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.00599cs.ARcs.DC
收藏

COMET:一个使用显式集合通信对复合操作数据流进行建模的框架

COMET: A Framework for Modeling Compound Operation Dataflows with Explicit Collectives

Shubham Negi, Manik Singhal, Aayush Ankit, Sudeep Bhoja, Kaushik Roy

AI总结:

本文提出 COMET 框架,通过显式建模空间集群集合通信及 GEMM/非 GEMM 依赖,优化复合操作数据流,在多种加速器配置下取得显著加速。

摘要:

现代机器学习加速器旨在通过优化数据移动、存储层次结构和计算吞吐量来高效执行深度神经网络(DNN)。然而,大语言模型、状态空间模型等新兴 DNN 模型越来越依赖复合操作——即多个基本操作的结构化组合——这给数据流优化和最小化片外存储流量带来了新的挑战。此外,随着模型规模持续增长,跨空间分布的计算集群进行部署变得至关重要,这需要频繁且复杂的集合通信。现有数据流优化框架和性能模型要么只关注单一操作,要么缺乏对集合通信成本的显式建模,从而限制了它们对现代工作负载的适用性。为解决这些局限,我们提出了 COMET,这是一个用于在机器学习加速器上对复合操作的数据流进行建模和优化的框架。COMET 引入了一种新颖的表示形式,可对跨空间集群的集合通信进行显式建模,并提供同时考虑复合操作中 GEMM 与非 GEMM 操作层级依赖关系的延迟和能源成本模型。我们展示了 COMET 在边缘和云加速器配置下分析并优化 GEMM–Softmax、GEMM–LayerNorm 和自注意力等复合操作数据流的能力。我们的集合通信感知建模能够探索更广泛的映射空间,从而提升性能和能源效率。具体而言,与未融合的基线相比,我们优化后的数据流在 GEMM-Softmax 上实现了最高 1.42 倍加速,在 GEMM-LayerNorm 上实现了 3.46 倍加速,并在自注意力上实现了 1.82 倍加速。

英文摘要:

Modern machine learning accelerators are designed to efficiently execute deep neural networks (DNNs) by optimizing data movement, memory hierarchy, and compute throughput. However, emerging DNN models such as large language models, state space models increasingly rely on compound operations-structured compositions of multiple basic operations-which introduce new challenges for dataflow optimization and minimizing off-chip memory traffic. Moreover, as model size continues to grow, deployment across spatially distributed compute clusters becomes essential, requiring frequent and complex collective communication. Existing dataflow optimization frameworks and performance models either focus on single operations or lack explicit modeling of collective communication cost, limiting their applicability to modern workloads. To address these limitations, we propose, a framework for modeling and optimizing dataflow for compound operations on machine learning accelerators. COMET introduces a novel representation that explicitly models collective communication across spatial clusters, along with latency and energy cost models that account for both GEMM and non-GEMM operation level dependencies within compound operations. We demonstrate COMET's capabilities to analyze and optimize dataflows for compound operations such as GEMM--Softmax, GEMM--LayerNorm, and self-attention, across both edge and cloud accelerator configurations. Our collective-aware modeling enables exploration of a broader mapping space, leading to improved performance and energy efficiency. Specifically, our optimized dataflows achieve up to 1.42$\times$ speedup for GEMM-Softmax, 3.46$\times$ for GEMM-LayerNorm and 1.82$\times$ for self-attention compared to unfused baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑