AI Hardware & Software Stack

Which describes the "weight-stationary" dataflow used in AI accelerators?

  1. AWeights are reread from memory each time while inputs stay fixed
  2. BWeights are kept fixed inside each unit while input values stream through for successive multiply-accumulates, reducing weight reads
  3. CComputation proceeds without weights
Show answer and explanation

Answer: B. Weights are kept fixed inside each unit while input values stream through for successive multiply-accumulates, reducing weight reads

For matrix products, dataflows differ by which of weights, inputs or outputs stays inside the units for reuse. In weight-stationary dataflow, each unit loads one weight and holds it while many inputs stream through for continuous multiply-accumulates. For convolutions and large-batch work where the same weight serves many inputs, this greatly reduces the energy of reading weights.

  • A. Keeping inputs fixed is a different dataflow.
  • B. Correct. It is one of the dataflows commonly used in systolic arrays.
  • C. Weights are needed for computation.