NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Streaming Task Graph Scheduling for Dataflow Architectures

Tiziano De Matteis, Lukas Gianinazzi, Johannes de Fine Licht, Torsten Hoefler · DOI

In the post-Moore’s Law era, specialized dataflow architectures—such as Google’s TPUs, Coarse-Grained Reconfigurable Architectures (CGRAs), and the Cerebras Wafer Scale Engine—have emerged as the primary engines for high-performance computing. Unlike traditional CPUs, these architectures minimize energy-intensive memory movement by allowing data to flow directly between processing elements (PEs). However, the complexity of scheduling applications onto these devices remains a significant bottleneck.

A recent study from researchers at ETH Zurich, presented at ACM HPDC’23, introduces a novel framework designed to bridge this gap. By utilizing a new abstraction called canonical task graphs, the researchers provide a method for scheduling that treats pipelining as a first-class citizen, optimizing for latency and ensuring deadlock-free execution.

The Challenge: Latency and Deadlocks

Traditional scheduling models for dataflow hardware often prioritize throughput—the number of program iterations completed per second. However, for real-time or interactive applications, latency—the time taken for a single iteration to finish—is the critical metric.

Optimizing for latency requires aggressive pipelining, where consumer tasks begin processing data before producer tasks have finished. While efficient, this approach introduces two major risks:

  1. Deadlocks: If communication buffers between tasks are sized incorrectly, the pipeline can stall indefinitely.
  2. Computational Complexity: Existing modeling tools, such as Cyclo-static Dataflow (CSDFG), are mathematically rigorous but computationally expensive, often taking hours to solve for complex graphs.

The Canonical Task Graph Framework

The researchers propose a multi-step methodology to address these challenges through a streamlined abstraction:

1. Abstraction and Steady-State Analysis

The framework defines canonical task graphs, where nodes have specific production rates. This allows the model to represent element-wise operations (1:1 data ratio), downsamplers (reductions), and upsamplers (data replication). By calculating "streaming intervals"—the average time between data elements on an edge—the framework determines the Streaming Depth, a metric representing the minimum possible execution time given infinite resources.

2. Spatial Block Partitioning

Because physical hardware has a finite number of PEs, the framework partitions the task graph into "spatial blocks." Tasks within a single block run concurrently and stream data to one another. These blocks are then executed sequentially (temporal multiplexing), allowing the system to handle graphs much larger than the physical chip.

3. Mathematical Deadlock Prevention

To ensure reliability, the framework identifies undirected cycles within the task graph. It uses a mathematical model to determine the minimum FIFO buffer space required to ensure the pipeline never stalls, providing a safety guarantee that is often missing in heuristic-based schedulers.

Experimental Evaluation

The authors evaluated their framework using two distinct workload categories:

  • Synthetic Benchmarks: 100 randomly generated graphs based on common patterns like Fast Fourier Transform (FFT), Gaussian Elimination, and Tiled Cholesky Factorization.
  • Real-World ML Workloads: Large-scale graphs extracted via the DaCeML framework, including ResNet-50 (54,000+ nodes) and a Transformer encoder layer (~5,000 nodes).

Key Results

  • Performance Gains: The streaming approach achieved a 1.3x to 1.5x speedup for ResNet-50 and a 1.4x to 2.0x speedup for the Transformer encoder compared to traditional non-streaming (buffered) scheduling.
  • Computational Efficiency: The analysis was 2-3 orders of magnitude faster than state-of-the-art CSDFG tools (like SDF3 and Kiter). While traditional tools often timed out after an hour on complex ML graphs, the canonical graph analysis finished in seconds with negligible loss in schedule quality.
  • Resource Utilization: Streaming schedules consistently demonstrated higher PE utilization, particularly as the number of available PEs increased, proving the scalability of the approach.

Conclusion and Future Work

The canonical task graph framework demonstrates that by choosing the right level of abstraction, it is possible to achieve near-optimal dataflow schedules with significantly reduced computational overhead. While the current model assumes a contention-free Network-on-Chip (NoC) and homogeneous PEs, it provides a robust foundation for future research.

Upcoming iterations of this work may address physical placement and routing constraints, heterogeneous System-on-Chip architectures, and the challenges of inter-device communication in multi-accelerator clusters.

Summary updated

BibTeX
@inproceedings{matteis2023streaming,
  author = {Tiziano De Matteis and Lukas Gianinazzi and Johannes de Fine Licht and Torsten Hoefler},
  title = {{Streaming Task Graph Scheduling for Dataflow Architectures}},
  booktitle = {HPDC},
  year = {2023},
  doi = {10.1145/3588195.3592999},
}
Figure