Efficient Orchestrated AI Workflows Execution on Scale-out Spatial Architecture
Jinyi Deng, Xinru Tang, Zhiheng Yue, Guangyang Lu, Qize Yang, Jiahao Zhang, Jinxi Li, Chao Li, Shaojun Wei, Yang Hu, Shouyi Yin
TL;DR
This work defines Orchestrated AI Workflows (OAW) and formalizes their Dual Dynamicity through the Orchestrated Workflow Graph (OWG), which captures how Task Blocks and Control Blocks interact through Task Flows. To address the two-level dynamicity, the authors propose Octopus, a scale-out spatial architecture with TBUs and CBUs and a decoupled control plane, equipped with Discriminate Dual-Scheduling, Adaptive TBU Scheduling, and Proactive Cluster Scheduling. Their cycle-level simulations and wafer-scale experiments show Octopus achieving an average 2.50× speedup (up to 4.26×) over a baseline and robust scalability, including a wafer-scale demonstration with diffusion-based load balancing. The results indicate that combining fine-grained TB scheduling with coarse-grained cluster-level planning yields significant gains in utilization and performance for dynamic Orchestrated AI Workloads, enabling practical deployment on large-scale hardware.
Abstract
Given the increasing complexity of AI applications, traditional spatial architectures frequently fall short. Our analysis identifies a pattern of interconnected, multi-faceted tasks encompassing both AI and general computational processes. In response, we have conceptualized "Orchestrated AI Workflows," an approach that integrates various tasks with logic-driven decisions into dynamic, sophisticated workflows. Specifically, we find that the intrinsic Dual Dynamicity of Orchestrated AI Workflows, namely dynamic execution times and frequencies of Task Blocks, can be effectively represented using the Orchestrated Workflow Graph. Furthermore, the intrinsic Dual Dynamicity poses challenges to existing spatial architecture, namely Indiscriminate Resource Allocation, Reactive Load Rebalancing, and Contagious PEA Idleness. To overcome these challenges, we present Octopus, a scale-out spatial architecture and a suite of advanced scheduling strategies optimized for executing Orchestrated AI Workflows, such as the Discriminate Dual-Scheduling Mechanism, Adaptive TBU Scheduling Strategy, and Proactive Cluster Scheduling Strategy. Our evaluations demonstrate that Octopus significantly outperforms traditional architectures in handling the dynamic demands of Orchestrated AI Workflows, and possesses robust scalability in large scale hardware such as wafer-scale chip.
