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 YinIEEE Trans. Circuits Syst. Artif. Intell 2024

Abstract

Modern AI applications are evolving from single-model tasks into complex, multi-stage "Orchestrated AI Workflows" (OAWs). These workflows exhibit "Dual Dynamicity"—unpredictable execution patterns at both coarse and fine granularities—which challenge traditional static-mapping spatial architectures. This paper presents Octopus, a scale-out spatial architecture featuring decentralized, proactive scheduling. By decoupling control and data planes and employing adaptive load balancing, Octopus achieves a 2.50x geomean speedup and maintains high hardware utilization across diverse real-world AI benchmarks.

Introduction: The Challenge of Orchestrated AI Workflows

As AI moves into production, applications are increasingly structured as pipelines rather than monolithic models. An emotion recognition system, for example, must decode video, detect faces, normalize images, and then perform inference—often with conditional logic that skips steps if no face is found. The authors define these as Orchestrated AI Workflows (OAWs).

These workflows are characterized by Dual Dynamicity:

  1. Fine-grained dynamicity: Individual tasks (Task Blocks) have varying execution times based on input data (e.g., image sparsity).
  2. Coarse-grained dynamicity: The frequency and sequence of tasks change based on runtime logic (e.g., the number of detected faces determines how many inference tasks are spawned).
Figure 1: Orchestrated AI Workflow Example for Emotion Recognition, illustrating the pipeline and the inherent dual dynamicity at coarse and fine granularities.

Traditional spatial architectures, such as CGRAs, typically rely on static mapping determined at compile-time. When faced with OAWs, these systems suffer from "Indiscriminate Resource Allocation" and "Contagious PEA Idleness," where bottlenecks in one processing element ripple through the entire chip, severely degrading performance.

Octopus: Decentralized and Proactive Architecture

To address these challenges, the authors propose Octopus, a tiled architecture composed of Task Block Processing Units (TBUs) for computation and Control Block Processing Units (CBUs) for logic and routing. Octopus separates control logic into a dedicated Control Flow Plane, enabling agile, decentralized decision-making.

The architecture employs three novel scheduling strategies:

  • Discriminate Dual-Scheduling: Partitions the workflow into sub-graphs to manage coarse and fine dynamicity independently.
  • Adaptive TBU Scheduling: Individual TBUs autonomously trigger task switches by monitoring their own data streams, avoiding the latency of a central controller.
  • Proactive Cluster Scheduling: Uses a "Diffusive Load-Balancing Model" where clusters communicate with neighbors to redistribute workloads before stalls occur.
Figure 4: An example of coarse-grained dynamicity where the 'Expand' operation leads to dynamic execution frequencies for downstream Task Blocks in an emotion recognition workflow.

Evaluation and Key Results

Octopus was evaluated using real-world AI workflows from the ModelArts platform, including tasks like Emotion Recognition (ER), Optical Character Recognition (OCR), and Video Object Segmentation (OSVOS). Unlike standard single-model benchmarks, these include the full pre-processing and logical branching logic of production systems.

Key findings include:

  • Performance: Octopus achieved a geomean speedup of 2.50x over a state-of-the-art "Plasticine-like" baseline, with peak gains of 4.26x.
  • Utilization: The system maintained an average hardware utilization of 83.5%, significantly outperforming traditional architectures that often drop below 50% in dynamic scenarios.
  • Scalability: Simulation of a wafer-scale system (16 Octopus dies) demonstrated that proactive scheduling effectively mitigates long-distance data movement overheads.

Conclusion

Octopus demonstrates that decentralized, proactive scheduling is essential for the next generation of AI hardware. By moving away from rigid central control and embracing a "diffusive" approach to load balancing, Octopus provides the flexibility needed to handle the inherent unpredictability of orchestrated AI workflows. Future work will focus on automating the tuning of scheduling parameters to further optimize performance across even more irregular workloads.

Summary updated

BibTeX
@article{deng2024efficient,
  author = {Jinyi Deng and Xinru Tang and Zhiheng Yue and Guangyang Lu and Qize Yang and Jiahao Zhang and Jinxi Li and Chao Li and Shaojun Wei and Yang Hu and Shouyi Yin},
  title = {{Efficient Orchestrated AI Workflows Execution on Scale-Out Spatial Architecture}},
  journal = {IEEE Trans. Circuits Syst. Artif. Intell.},
  year = {2024},
}
Figure