Table of Contents
Fetching ...

How to keep pushing ML accelerator performance? Know your rooflines!

Marian Verhelst, Luca Benini, Naveen Verma

TL;DR

This paper addresses the challenge of sustaining ML accelerator performance as model size and data movement grow. It extends the roofline model to two objectives—throughput and energy—by incorporating arithmetic intensity across memory levels, enabling a unified view of compute and memory bottlenecks. The key contributions include an enhanced dual-roofline framework, analysis of dominant energy- and compute-contributing factors, and a survey of techniques (parallelism, data reuse, quantization, sparsity, near-/in-memory compute, and IMC) that shift workloads toward or along the rooflines. It also discusses design-space exploration tools and practical trade-offs between compute and memory resources, guiding future accelerator architectures toward higher utilization and broader workload flexibility. The work’s significance lies in providing a structured lens to navigate architectural choices (e.g., IMC/NMC, quantization, sparsity) and to anticipate open challenges in scale-out memory systems and programmable yet efficient accelerators.

Abstract

The rapidly growing importance of Machine Learning (ML) applications, coupled with their ever-increasing model size and inference energy footprint, has created a strong need for specialized ML hardware architectures. Numerous ML accelerators have been explored and implemented, primarily to increase task-level throughput per unit area and reduce task-level energy consumption. This paper surveys key trends toward these objectives for more efficient ML accelerators and provides a unifying framework to understand how compute and memory technologies/architectures interact to enhance system-level efficiency and performance. To achieve this, the paper introduces an enhanced version of the roofline model and applies it to ML accelerators as an effective tool for understanding where various execution regimes fall within roofline bounds and how to maximize performance and efficiency under the rooline. Key concepts are illustrated with examples from state-of-the-art designs, with a view towards open research opportunities to further advance accelerator performance.

How to keep pushing ML accelerator performance? Know your rooflines!

TL;DR

This paper addresses the challenge of sustaining ML accelerator performance as model size and data movement grow. It extends the roofline model to two objectives—throughput and energy—by incorporating arithmetic intensity across memory levels, enabling a unified view of compute and memory bottlenecks. The key contributions include an enhanced dual-roofline framework, analysis of dominant energy- and compute-contributing factors, and a survey of techniques (parallelism, data reuse, quantization, sparsity, near-/in-memory compute, and IMC) that shift workloads toward or along the rooflines. It also discusses design-space exploration tools and practical trade-offs between compute and memory resources, guiding future accelerator architectures toward higher utilization and broader workload flexibility. The work’s significance lies in providing a structured lens to navigate architectural choices (e.g., IMC/NMC, quantization, sparsity) and to anticipate open challenges in scale-out memory systems and programmable yet efficient accelerators.

Abstract

The rapidly growing importance of Machine Learning (ML) applications, coupled with their ever-increasing model size and inference energy footprint, has created a strong need for specialized ML hardware architectures. Numerous ML accelerators have been explored and implemented, primarily to increase task-level throughput per unit area and reduce task-level energy consumption. This paper surveys key trends toward these objectives for more efficient ML accelerators and provides a unifying framework to understand how compute and memory technologies/architectures interact to enhance system-level efficiency and performance. To achieve this, the paper introduces an enhanced version of the roofline model and applies it to ML accelerators as an effective tool for understanding where various execution regimes fall within roofline bounds and how to maximize performance and efficiency under the rooline. Key concepts are illustrated with examples from state-of-the-art designs, with a view towards open research opportunities to further advance accelerator performance.

Paper Structure

This paper contains 23 sections, 6 equations, 22 figures, 1 table.

Figures (22)

  • Figure 1: Evolution of ML model size, GPU performance and Moore's law across the last decade. Data from george2023visualizing and dally2024trends.
  • Figure 2: Typical architecture of an ML accelerator. Note that the amount of PE's in the datapath, the number of memory levels in the memory hierarchy and type of memory at each level (registers, SRAM, DRAM) can vary from system to system. Illustrative bandwidth and energy numbers are from a 22 nm technology.
  • Figure 3: Example roofline models for performance and energy efficiency. (Assumptions: $N_{op}$=2048, $E_{op}$=0.50pJ/op, $E_{L1}$=0.100pJ/byte, $E_{L2}$=3pJ/byte, $E_{L3}$=100pJ/byte, $B_L1$=128B/cycle, $B_{L2}$=32B/cycle, $B_{L3}$=8B/cycle and for the aggregated energy roofline: $AI$=$AI_{L3}/16$=$AI_{L2}$=$AI_{L1}*16$.)
  • Figure 4: Overview of various architectural and mapping techniques to maximize performance by raising the rooflines and more closely approaching the rooflines.
  • Figure 5: Evolution of the rooflines of the different TPU generations, together with the impact on Arithmetic Intensity of a typical GeMM workload. Data from TPU
  • ...and 17 more figures