VEGETA: Vertically-Integrated Extensions for Sparse/Dense GEMM Tile Acceleration on CPUs

Geonhwa Jeong, Sana Damani, Abhimanyu Rajeshkumar Bambhaniya, Eric Qin, Christopher J. Hughes, Sreenivas Subramoney, Hyesoon Kim, Tushar Krishna · DOI

Introduction

Deep Learning (DL) workloads are fundamentally driven by General Matrix Multiplication (GEMM). As neural networks grow in complexity, researchers have increasingly turned to "sparsity"—the practice of pruning zero-valued weights—to improve computational efficiency. While specialized accelerators like NVIDIA’s Tensor Cores have successfully integrated hardware support for sparsity, general-purpose CPUs have primarily focused on "dense" matrix engines, such as Intel’s Advanced Matrix Extensions (AMX).

This paper introduces VEGETA, a vertically-integrated framework designed to bridge the gap between CPU generality and sparse-compute efficiency. VEGETA provides a comprehensive solution spanning new Instruction Set Architecture (ISA) extensions, specialized registers, and a novel microarchitecture to accelerate sparse GEMM operations on CPUs.

The Challenge of CPU Sparsity

Modern CPUs face a significant dilemma: they must remain versatile enough for general-purpose computing while providing the high throughput required for DL. Existing dense matrix engines are highly efficient for full matrices but become wasteful when processing sparse data, as they expend power and cycles on "multiplying by zero."

Supporting sparsity on CPUs is difficult because:

  1. Rigidity: Specialized hardware for specific sparse patterns (like fixed 2:4 sparsity) often lacks the flexibility needed for diverse models.
  2. Complexity: Supporting "unstructured" (random) sparsity requires complex interconnects and scheduling logic that can exceed the area and power budgets of a standard CPU core.

The VEGETA Framework

VEGETA addresses these challenges through a three-layered approach that integrates software flexibility with hardware efficiency.

ISA and Register Extensions

VEGETA introduces a set of new tile registers to handle compressed data and its associated metadata:

  • treg, ureg, vreg: These registers store the compressed non-zero values of the sparse matrices.
  • mreg (Metadata Registers): These store the indices that describe the original positions of the non-zero values, allowing the hardware to reconstruct the logical matrix structure during execution.

Flexible Row-wise N:M Sparsity

Unlike previous hardware that enforced a single sparsity ratio across an entire layer or network, VEGETA supports row-wise N:M structured sparsity. In this model, each row within a matrix tile can have a different ratio of non-zeros (e.g., one row might be 2:4 while another is 1:4). This fine-grained granularity allows the hardware to adapt to the local characteristics of the data, maximizing both compute utilization and model accuracy.

Sparse Processing Element (SPE) Microarchitecture

The core of the VEGETA engine is a modified systolic array. The researchers transformed standard processing elements into Sparse Processing Elements (SPEs). These SPEs utilize metadata-driven multiplexers to dynamically "pick" the correct input data for each non-zero weight. By using a "broadcast factor" to share data across multiple Multiply-Accumulate (MAC) units, the design reduces the total number of pipeline registers required, keeping the hardware footprint small.

Software Transformation

To ensure compatibility with existing models, the authors developed a software-based mapping method. This allows unstructured sparse matrices to be losslessly mapped onto the row-wise N:M hardware, effectively enabling the CPU to accelerate even random sparsity patterns.

Evaluation and Methodology

The researchers evaluated VEGETA using representative layers from three major DL domains:

  • Computer Vision: ResNet50.
  • Natural Language Processing: BERT.
  • Large Language Models: GPT-3.

Performance was measured using MacSim, a cycle-accurate simulator, while area and power overheads were estimated via RTL synthesis using Synopsys Design Compiler (DC).

Key Results

VEGETA demonstrates significant performance gains over state-of-the-art (SOTA) dense matrix engines:

  • Dense (4:4) Layers: 1.09x speedup.
  • 2:4 Structured Sparsity: 2.20x speedup.
  • 1:4 Structured Sparsity: 3.74x speedup.
  • 95% Unstructured Sparsity: 3.28x speedup.

Importantly, these gains do not come at a high cost. The most balanced VEGETA configuration adds only 6% area overhead compared to a dense baseline. This minimal footprint makes it a viable candidate for integration into future general-purpose CPU architectures.

Conclusion and Future Work

VEGETA proves that high-performance sparse acceleration is possible within the constraints of a CPU. By moving to row-wise granularity and integrating the solution vertically from the ISA to the microarchitecture, VEGETA provides a "sweet spot" of flexibility and efficiency.

Future research directions include addressing dynamic sparsity (zeros in activations that appear at runtime) and integrating VEGETA into mainstream software ecosystems like Intel’s oneDNN or the TVM compiler stack. Additionally, as compute speeds increase, further investigation into memory hierarchy bottlenecks will be essential to sustain these performance leaps.

Summary updated

BibTeX
@inproceedings{jeong2023vegeta,
  author = {Geonhwa Jeong and Sana Damani and Abhimanyu Rajeshkumar Bambhaniya and Eric Qin and Christopher J. Hughes and Sreenivas Subramoney and Hyesoon Kim and Tushar Krishna},
  title = {{VEGETA: Vertically-Integrated Extensions for Sparse/Dense GEMM Tile Acceleration on CPUs}},
  booktitle = {HPCA},
  year = {2023},
  url = {https://openreview.net/forum?id=SDXWxbzbg1},
}
Figure