Dataflow architecture

On this page 7

A dataflow architecture is a computer design in which an operation executes as soon as its input data are available, rather than when a program counter reaches the next instruction. The program is expressed as a graph of operations connected by data dependencies, and the hardware moves values along the edges of that graph. In AI hardware, dataflow architecture describes accelerators that map a neural network graph spatially onto the chip and stream tensors between compute units with minimal trips to off-chip memory.

The idea dates back to research machines of the 1970s and 1980s, which struggled with the overhead of matching tokens at fine granularity. Modern AI accelerators revived it at a coarser granularity, where whole tensor operations rather than single instructions form the nodes of the graph, which makes the approach practical for the regular, predictable workloads of deep learning.

How dataflow execution works

Dataflow execution replaces a central instruction stream with data-driven firing rules. A compiler takes the computation graph of a model, partitions it into operators, and assigns each operator to a region of compute units, memory and on-chip network. During execution, each unit fires when its operands arrive and passes results directly to the next unit.

  • Graph compilation: the framework graph, for example from PyTorch, is lowered into operators, tiled and scheduled.
  • Spatial placement: operators are pinned to physical compute and memory tiles so that consecutive layers sit next to each other.
  • On-chip routing: a configurable interconnect carries tensors between tiles without writing them to external memory.
  • Pipelined streaming: different layers process different slices of data at the same time, similar to an assembly line.

The central benefit is reduced data movement. Moving a value from external DRAM can cost one to two orders of magnitude more energy than an arithmetic operation on it, so keeping intermediate activations on chip directly improves both throughput and TOPS per watt.

Dataflow compared with other processor architectures

Dataflow architecture sits at one end of a spectrum that runs from instruction-driven to data-driven control. The table compares it with the designs it most often competes against in AI hardware.

ArchitectureControl modelData movementMain strength
Von Neumann CPUProgram counter, sequential instructionsThrough caches and registersFlexibility for arbitrary code
Data-center GPUMany threads issuing instructionsKernel by kernel through HBMMature software, broad workloads
Systolic arrayFixed rhythmic data pulsesNeighbor to neighbor in a gridDense matrix multiplication
Coarse-grained dataflowOperators fire on data arrivalTile to tile across the chipFused pipelines, low memory traffic
Fine-grained dataflowSingle instructions fire on tokensToken matching networkMaximum parallelism, high overhead
Dataflow architecture compared with related designs

A systolic array is itself a narrow, fixed form of dataflow, usually serving as one building block inside a larger chip. A full dataflow architecture generalizes the principle to the whole model graph, including activations, normalization and data routing between layers.

Spatial versus temporal mapping of neural networks

The defining design choice in a dataflow accelerator is how much of the model is mapped spatially. In temporal mapping, one set of compute units runs layers one after another, as a GPU does with successive kernels. In spatial mapping, different layers occupy different parts of the chip at the same time.

StrategyHow layers are placedBenefitCost
Fully spatialEvery layer has its own regionNo intermediate writes to DRAMModel must fit on chip or across chips
Layer pipeliningGroups of layers in stagesHigh throughput for streamsPipeline fill and drain latency
Temporal reuseSame tiles run several layersFits larger modelsMore reconfiguration and memory traffic
HybridSpatial within a block, temporal across blocksBalances capacity and efficiencyComplex compiler scheduling
Mapping strategies on dataflow hardware

Large language models exceed the on-chip memory of any single die, so practical systems combine spatial mapping with high-bandwidth memory or with scaling across many chips. Wafer-scale designs push the spatial approach furthest by giving a model tens of gigabytes of on-wafer SRAM spread across hundreds of thousands of cores.

Where dataflow architecture appears in AI chips

Several AI chip families describe themselves as dataflow or spatial architectures, although the degree of dataflow control varies. The SambaNova RDU uses reconfigurable compute and memory units joined by a programmable switch fabric. The Cerebras Wafer-Scale Engine routes activations across a mesh of cores that react to arriving data. The Graphcore IPU pairs many cores with distributed on-chip memory and compiler-planned exchanges, while the Groq LPU relies on fully static, compiler-determined scheduling.

The common thread is that the compiler carries most of the complexity. Instead of hardware caches and dynamic thread schedulers, these chips depend on software that knows in advance where every tensor will be and when it moves. This determinism enables predictable latency, which is valuable for real-time inference.

Trade-offs, limitations and common mistakes

Dataflow designs deliver their best results on static, regular graphs and lose ground when computation becomes irregular. The table lists typical problems and how teams address them.

LimitationCauseTypical mitigation
Long compile timesPlacement and routing of large graphsCaching compiled graphs, fixed input shapes
Poor fit for dynamic shapesStatic schedules assume known sizesPadding, bucketing of sequence lengths
Capacity limitsOn-chip SRAM is finiteMulti-chip pipelines, off-chip HBM tiers
Weaker ecosystemSmaller user base than GPUsFramework plug-ins and vendor libraries
Low utilization at small batchPipeline stages sit idleBatching or stream-level parallelism
Limitations of dataflow accelerators

A frequent mistake is to compare dataflow chips with GPUs using peak TOPS alone. Peak numbers ignore the memory wall; a fairer comparison uses sustained throughput on a specific model, energy per token or per inference, and benchmarks such as MLPerf that fix the workload and accuracy target.

The simple explanation

A normal processor works like a cook reading a recipe one line at a time. It does step one, then step two, then step three. A dataflow chip works more like a factory assembly line. Each station starts the moment a part reaches it, then passes the part along.

AI models are a fixed chain of steps repeated millions of times. That suits an assembly line very well. Parts stay on the line instead of going back to a distant warehouse. The result is faster work with less energy, as long as the recipe does not change often.

How it is used in practice

A financial services company runs a fraud-scoring language model that must answer within 50 milliseconds for every card transaction. On its existing GPU servers, latency varies widely because each layer writes activations to memory and kernel launches compete with other workloads, so peak periods push some responses past the limit.

The infrastructure team tests a dataflow accelerator that compiles the fixed model graph once and pins every layer to a dedicated region of the chip. Input sequences are padded to two standard lengths to keep the schedule static. After deployment, latency becomes tightly predictable, staying well under the 50-millisecond target, and the team reports lower energy per inference. The trade-off is a longer compile step whenever the model is retrained, which the team accepts because updates happen monthly.