[Paper Review] Mitigating the Bandwidth Wall via Data-Streaming System-Accelerator Co-Design
The paper presents MatrixFlow, a 16x16 systolic-array matrix accelerator that streams 4 KB page-aligned tiles from host memory via PCIe DMA, integrated with Gem5-AcceSys to co-design the system and accelerator for transformer inference. The approach achieves substantial end-to-end speedups by balancing data movement with compute and memory hierarchy without large on-chip SRAMs or ISA changes.
Transformers have revolutionized AI in natural language processing and computer vision, but their large computation and memory demands pose major challenges for hardware acceleration. In practice, end-to-end throughput is often limited by paged data movement and interconnect bandwidth rather than raw MAC count. This work proposes a unified system-accelerator co-design approach for transformer inference that jointly optimizes a matrix accelerator and its system integration through paged streaming dataflows and explicit overlap of compute and transfer. On the hardware side, we introduce MatrixFlow, a loosely coupled 16x16 systolic-array accelerator with a page-aligned block matrix multiplication method using 4 KB tiles, a small on-chip buffer of about 20 KB, and a pipelined schedule of DMA, compute, and DMA-out to utilize interconnect bandwidth efficiently. On the system side, we develop Gem5-AcceSys, an extension of the gem5 full-system simulator that explores standard interconnects such as PCIe and configurable memory hierarchies including Direct Memory, Direct Cache, and Device Memory modes with SMMU/TLB effects. We evaluate the co-design using gem5 simulations on representative transformer models including BERT and ViT across multiple data types and system setups. Results show up to 22x end-to-end speedup over a CPU-only baseline and 5x to 8x gains over state-of-the-art loosely and tightly coupled accelerators. We further show that a standard PCIe-based host-memory design can achieve about 80 percent of the performance of on-device HBM. Overall, paged streaming and pipeline overlap, rather than large local SRAMs, are the most effective levers for efficient transformer inference under realistic system constraints.
Motivation & Objective
- Address the bandwidth and data-movement bottlenecks in transformer inference beyond raw compute.
- Propose a dataflow- and system-aware accelerator design that minimizes on-chip storage while maximizing streaming throughput.
- Integrate a lightweight, PCIe-based accelerator with a full-system simulator to capture realistic interconnect and memory effects.
- Co-optimize software runtime, interconnect, and memory hierarchy to sustain high utilization of the matrix engine.
Proposed method
- Introduce MatrixFlow, a 16×16 systolic-array accelerator with three 4 KB SRAM buffers and page-aligned 4 KB tiles for A, B, and C.
- Stream data directly from host memory via PCIe DMA with an SMMU for VA/PA translation.
- Develop Gem5-AcceSys to model PCIe interconnects, DMA engines, SMMU, and a Linux driver for end-to-end evaluation.
- Adopt a page-blocked data layout with row-major A and row-striped B to enable single-page DMA bursts and reduce TLB overhead.
- Evaluate across DM, DC, and DevMem modes to study data movement and locality effects on performance.
- Compare against CPU baseline and state-of-the-art loosely and tightly coupled accelerators in Gem5 simulations.
Experimental results
Research questions
- RQ1How does streaming, page-aligned data movement impact transformer inference throughput on a matrix accelerator?
- RQ2Can a loosely coupled accelerator with minimal on-chip storage achieve high utilization when paired with an optimized system design?
- RQ3What are the performance trade-offs of DM, DC, and DevMem memory access modes in end-to-end transformer workloads?
- RQ4To what extent can full-system co-design close the gap between CPU baselines and specialized accelerators for BERT and ViT models?
Key findings
- Up to 22× speedup in end-to-end inference over a CPU-only baseline.
- MatrixFlow outperforms state-of-the-art loosely coupled accelerators by >5× and tightly coupled accelerators by >8× in delivered throughput.
- A standard PCIe-based host memory design achieves ~80% of the performance of on-device HBM memory.
- Paged streaming and pipeline overlap, not large local SRAMs, are the most effective knobs for efficient transformer inference under realistic constraints.
- A 16×16 INT8/FP16/FP32 tensor engine with 20 KB on-chip SRAM can approach roofline performance when dataflow and interconnect are co-optimized.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.