arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.07776cs.PLcs.ARcs.LG
收藏

流式张量程序:一种用于动态并行的流式抽象

Streaming Tensor Programs: A Streaming Abstraction for Dynamic Parallelism

Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学)

Gina Sohn, Genghan Zhang, Konstantin Hossfeld, Jungwoo Kim, Nathan Sobotka, Nathan Zhang, Olivia Hsu, Kunle Olukotun

AI总结:

STeP通过引入流式抽象和动态优化技术,提升了SDA在动态张量工作负载中的效率和性能。

摘要:

动态行为在张量应用中变得普遍,例如机器学习,其中许多广泛使用的模型包含数据依赖的张量形状和控制流。然而,先前用于空间数据流加速器(SDAs)的编程抽象的表达力有限,迫使这些动态行为被静态实现和/或未优化。为了解决这些挑战,我们提出了流式张量程序(STeP),一种流式抽象,使动态张量工作负载能够高效地在SDAs上运行。STeP引入了灵活的路由运算符、显式内存层次结构和符号形状语义,这些能够暴露动态数据速率和张量维度。这些能力解锁了新的优化,如动态分块、动态并行和配置时间复用,这些优化能够使SDA执行适应动态行为,同时保持数据流效率。使用一个周期近似模拟器在代表性LLM层和一个完整模型中使用真实世界轨迹,STeP实现了:动态分块,突破了先前工作的帕累托最优前沿;动态并行,将延迟降低了约2.72倍;配置时间复用,将计算利用率提高了约2.64倍,超过了先前的SDA抽象及其实现。

英文摘要:

Dynamic behaviors are becoming prevalent in tensor applications, like machine learning, where many widely used models contain data-dependent tensor shapes and control flow. However, the limited expressiveness of prior programming abstractions for spatial dataflow accelerators (SDAs) forces these dynamic behaviors to be implemented statically and/or unoptimized. To address these challenges, we present Streaming Tensor Programs (STeP), a streaming abstraction that enables dynamic tensor workloads to run efficiently on SDAs. STeP introduces flexible routing operators, an explicit memory hierarchy, and symbolic-shape semantics that expose dynamic data rates and tensor dimensions. These capabilities unlock new optimizations, like dynamic tiling, dynamic parallelization, and configuration time-multiplexing, that adapt SDA execution to dynamic behaviors while preserving dataflow efficiency. Using a cycle-approximate simulator on representative LLM layers and a full model with real-world traces, STeP enables: dynamic tiling that breaks the Pareto-optimal frontier from prior work, dynamic parallelization that improves latency by ~2.72x, and configuration time-multiplexing that increases compute utilization by ~2.64x over prior SDA abstractions and their implementations.

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

↑