AI Accelerator Interview Questions: Dataflow, Memory Bandwidth, Systolic Arrays
When an accelerator layer runs far below peak throughput, look first at data movement and reuse, since moving data through DRAM dominates the cost. Then use the roofline: compare the layer's arithmetic intensity with the chip's ridge point to see whether it is memory-bound or compute-bound, and check how well the layer fills the array.
Practice these questions live in a mock interview with a verified chip design engineer. Find an expert
You are handed a chip with a huge peak throughput number and told that one layer of a model runs at a few percent of it. Where do you look first? Most accelerator interviews, at some point, circle back to that question, even when it arrives disguised as something about systolic arrays or HBM.
This guide draws on Google's public TPU papers and documentation, the Sze et al. survey of efficient DNN processing, the Eyeriss v2 paper, the NERSC roofline documentation, and the JAX scaling book. The practice prompts and the worked scenario are ours, not questions reported from any employer.
Where do the energy and time go in an AI accelerator?
The Sze survey makes the central point plainly: each multiply-accumulate needs several operand reads and a write, and moving that data through DRAM dominates the cost. It describes DRAM access as costing up to several orders of magnitude more energy than the arithmetic, and a small on-chip memory as roughly two orders of magnitude cheaper per access than DRAM. Its AlexNet example shows 724 million MACs that could require close to 3,000 million DRAM accesses without reuse.
So a good opening answer to almost any accelerator question is about reuse. Which data gets used more than once, where does it live between uses, and what does it cost to fetch it again? Framed that way, the systolic array, the buffers, and the dataflow names all answer one problem.
What is a systolic array, in plain terms?
Google's public TPU blog post describes the first TPU's matrix unit as a 256 by 256 systolic array, 65,536 8-bit multiply-accumulators, with intermediate results passed between neighboring units without going back to memory. The TPU paper abstract gives the same MAC count, a 92 TOPS peak, and 28 MiB of software-managed on-chip memory. Cloud TPU documentation describes matrix units of 128 by 128 or 256 by 256 depending on generation, with bfloat16 multiplies and FP32 accumulation.
Wires only connect adjacent cells, so each operand fetched from the buffer feeds many MACs before it is discarded. The cost is flexibility: Google's post says the unit is not well suited to general-purpose computation. Expect to be asked what happens when a layer does not fill the array. Utilization, not peak, is the honest number, and the TPU paper abstract itself notes low utilization for some applications.
Dataflow styles: what stays put
The Sze survey sorts dataflows by what stays in a processing element's local storage:
- Weight stationary keeps weights local and streams inputs and partial sums.
- Output stationary keeps partial sums local and streams inputs while weights are broadcast.
- No local reuse skips per-PE storage and uses that area for a bigger global buffer.
- Row stationary, used by Eyeriss, runs a one-dimensional row convolution in each PE to reuse all three data types at the register level.
In the survey's AlexNet comparison, row stationary had the lowest total energy for convolution layers, about 1.4 to 2.5 times lower than the others, while weight stationary minimized weight energy and output stationary minimized partial-sum energy. For fully connected layers, weight reads dominated everywhere because there is little reuse. No dataflow rescues a layer that has little to reuse.
What do roofline and arithmetic intensity tell you about a layer?
NERSC defines arithmetic intensity as operations per byte moved, and the roofline as an envelope set by peak compute, peak bandwidth, and that intensity. Below the machine balance point you are memory-bound; above it, compute-bound. The JAX scaling book gives TPU v5e as an example: about 1.97e14 FLOPs per second against 8.2e11 bytes per second, a critical intensity near 240. For a small-batch matmul, intensity is roughly the batch size.
| Topic | What the sources say | Practice prompt |
|---|---|---|
| Systolic array | Neighbor-to-neighbor results, no memory access mid-multiply | What happens to utilization when a matrix is smaller than the array? |
| Dataflow | Choice trades weight, input, and partial-sum energy | Which dataflow would you pick for fully connected layers, and why might none help? |
| Roofline | Ridge point is peak compute divided by bandwidth | Where does a batch 1 matmul land, and what moves it? |
| Quantization | 8-bit multiply uses about 15.5 times less energy than 32-bit fixed point (survey) | What do you gain besides arithmetic energy? |
| Sparsity | Zero skipping saves energy but needs compressed formats (survey, Eyeriss v2) | What does irregular sparsity cost the control logic? |
Illustrative scenario: a memory-bound layer
Everything below uses invented numbers for a hypothetical chip, so treat it as practice, not a measurement.
Suppose the chip has 200 TFLOPs of bf16 compute and 1 TB/s of HBM bandwidth, so the ridge point is 200 FLOPs per byte. A fully connected layer is 4096 by 4096 and runs at batch 8.
- Weights are 4096 times 4096 times 2 bytes, about 33.5 MB. Work is 2 times 8 times 4096 times 4096, about 268 MFLOPs.
- Intensity is about 8 FLOPs per byte, far left of the ridge. Attainable throughput is about 8 TFLOPs, roughly 4 percent of peak.
- Time is dominated by streaming weights: about 33.5 microseconds at 1 TB/s.
- Options: int8 weights (intensity about doubles), a bigger batch, weights held in on-chip SRAM, or fusion with neighboring operations.
- State the catch for each. Int8 needs accuracy checks, a bigger batch hurts latency, and 33.5 MB may not fit in SRAM.
The Sze survey reports 8-bit weights with 10-bit activations on AlexNet at about 0.4 percent accuracy loss without fine-tuning. Do not generalize that to modern models. Say what you would measure.
Sparsity, scheduling, and compilers
Keep this part conceptual unless the posting says otherwise. The survey reports AlexNet post-ReLU activations 19 to 63 percent sparse, and Eyeriss v2 processes compressed weights and activations directly, reporting 12.6 times higher throughput than the original Eyeriss on sparse MobileNet in 65 nm. The catch to mention is that irregular zeros complicate load balancing and addressing.
On the software side, the survey says reported throughput should reflect real mapping and bandwidth limits, not peak figures. Carry that into a compiler question: someone has to tile the layer so data fits the buffers and the array stays busy. Our posts on Google TPU and custom silicon preparation and AI chip startup interviews cover how teams describe this work publicly.
Where this fits in your preparation
Bandwidth questions often continue into packaging, so read chiplets and advanced packaging interview prep and memory design interviews. If your background is CPU, CPU design versus GPU design interviews helps, and training chip versus inference chip design picks up the precision and batch tradeoffs above.
Practice the roofline argument out loud, then book a mock interview on MockVise to have someone push back on your assumptions.
Sources: Google TPU paper abstract (arXiv), Google Cloud blog on the first TPU, Cloud TPU architecture docs, Sze et al. DNN survey (arXiv), Eyeriss v2 abstract (arXiv), NERSC roofline documentation, JAX scaling book: roofline. This article is general technical preparation guidance, not an official process or reported company questions; the scenario uses invented numbers and the practice prompts are MockVise's own. Confirm details with your recruiter and the primary sources. MockVise is not affiliated with or endorsed by Google, NVIDIA, the authors of the cited papers, or NERSC.FAQ
Q: Why do accelerator interviews focus so much on memory and data movement? The Sze survey says each multiply-accumulate needs several operand reads and a write, and that moving data through DRAM dominates the cost. A good opening answer is about reuse: which data gets used more than once, where it lives between uses, and what it costs to fetch again.
Q: What is the downside of a systolic array? The cost is flexibility. Google's post says the unit is not well suited to general-purpose computation, and utilization suffers when a layer does not fill the array. Expect to be asked what happens in that case.
Q: How can I tell whether a layer is memory-bound or compute-bound? Compare its arithmetic intensity, operations per byte moved, with the ridge point, which is peak compute divided by bandwidth. Below that point you are memory-bound, and for a small-batch matmul the intensity is roughly the batch size.
Q: Is there one best dataflow for an accelerator? No. In the survey's AlexNet comparison, row stationary had the lowest total energy for convolution layers, while weight stationary minimized weight energy and output stationary minimized partial-sum energy. For fully connected layers, weight reads dominated everywhere because there is little reuse.
Related guides
RISC-V Interview Questions: ISA, Privilege Levels, and Extensions
Prepare for RISC-V discussions with a practical guide to the base ISA, standard extensions, privilege modes, CSRs, traps, and the memory model, grounded in the public RISC-V International specifications.
Cache Coherence and Memory System Interview Questions
Prepare for CPU, SoC, and architecture interviews with cache organization, AMAT, MESI, false sharing, memory consistency, and TLB basics, grounded in public university course notes.
CPU Microarchitecture Interview Questions: Pipelines, Hazards, and Branch Prediction
Prepare for CPU design and architecture interviews with a clear walk through pipeline hazards, forwarding, branch prediction, the reorder buffer, and IPC, grounded in public university lecture notes.
Training Chip vs Inference Chip Design: How the Work and the Interviews Differ
Compare training and inference accelerator design roles using public Google, AWS, Microsoft, and NVIDIA documentation, with questions to ask each team before you choose.
Practice with engineers who've run these interviews
Book a 1-on-1 mock interview with verified experts from Intel, NVIDIA, Qualcomm, and Apple. Practice these questions live in a mock interview with a verified chip design engineer.
Find your expertAlready running these interviews at work? Get paid to run them on MockVise, anonymously and on your own hours. Become an expert