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

Dato: A Task-Based Programming Model for Dataflow Accelerators

Shihan Fang, Hongzheng Chen, Niansong Zhang, Jiajie Li, Han Meng, Adrian Liu, Zhiru ZhangarXiv 2025 · DOI

Introduction

Modern AI hardware is increasingly moving toward dataflow architectures to overcome the "memory wall"—the growing disparity between compute speed and data transfer rates. Accelerators like NPUs and FPGAs minimize external memory access by streaming data directly between on-chip processing elements. However, programming these devices remains a significant challenge, forcing a trade-off between the high performance of low-level interfaces and the productivity of high-level languages.

Dato is a Python-based programming model designed to bridge this gap. It treats data communication and hardware layout as first-class types, enabling developers to write concise code that achieves near-peak hardware performance while using significantly fewer lines of code than existing frameworks.

The Productivity-Performance Gap

Current programming models for dataflow accelerators typically fall into two categories. Low-level frameworks offer fine-grained control but require hundreds of lines of tedious code to manage buffers and ports manually. Conversely, high-level languages often abstract away communication details, preventing the compiler from optimizing dataflow and leading to hardware underutilization. Dato addresses this by allowing programmers to explicitly define data flow without the burden of hardware-specific bookkeeping.

The Dato Approach

Dato introduces several core innovations to simplify dataflow programming:

  1. First-Class Communication Types: Dato uses Stream types for point-to-point communication and Layout types to define data sharding. This allows the compiler to statically verify data shapes and detect potential deadlocks before execution.
  2. Virtual-to-Physical Mapping: Programs are written as Virtual Mapping Graphs (VMGs). The compiler then automatically maps these logical tasks onto physical processing elements (PEs) using a search algorithm.
  3. Scheduling Primitives: Developers can optimize the task graph using .bundle() for time-multiplexing and .chain() for task fusion.
Overview of the Dato compiler architecture and a code comparison between Allo and Dato demonstrating productivity gains.

The .bundle() operation merges identical tasks to run sequentially on the same hardware unit, while .chain() fuses producer and consumer tasks to eliminate intermediate storage buffers, as illustrated below:

Visual representation of the .bundle() and .chain() scheduling primitives used to optimize the task graph.

Evaluation and Results

Dato was evaluated on the AMD Ryzen AI NPU and the AMD Alveo U280 FPGA using standard benchmarks including GEMM, Multi-Head Attention (MHA), and Feed-Forward Networks (FFN).

  • Performance: Dato achieved up to 84% hardware utilization for GEMM on the NPU and 98% of theoretical peak performance on the FPGA. For MHA kernels, it delivered a 2.81× speedup over the state-of-the-art IRON framework.
  • Productivity: Dato significantly reduces code complexity. A GEMM kernel that requires 101 lines of code in IRON can be implemented in just 8 lines using Dato—a 12× reduction in code volume.

Conclusion

Dato demonstrates that high-performance dataflow programming does not have to come at the cost of developer productivity. By elevating communication to a first-class type and providing powerful scheduling primitives, Dato enables efficient utilization of modern NPUs and FPGAs with a fraction of the manual effort previously required. Future work will focus on global graph-level optimizations and expanding support to other hardware architectures like NVIDIA's Hopper GPUs.

Summary updated

BibTeX
@misc{fang2025dato,
  author = {Shihan Fang and Hongzheng Chen and Niansong Zhang and Jiajie Li and Han Meng and Adrian Liu and Zhiru Zhang},
  title = {{Dato: A Task-Based Programming Model for Dataflow Accelerators}},
  year = {2025},
  eprint = {2509.06794},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.06794},
}
Figure