Indirection Stream Semantic Register Architecture for Efficient Sparse-Dense Linear Algebra

Paul Scheffler, Florian Zaruba, Fabian Schuiki, Torsten Hoefler, Luca Benini

TL;DR

Researchers from ETH Zurich have developed Indirection Stream Semantic Registers (ISSRs), a lightweight RISC-V ISA extension that transforms "pointer-chasing" memory lookups into hardware-managed data streams. By offloading indirect address calculations to hardware, they achieved up to 80% FPU utilization and a 7.2x speedup in sparse-dense linear algebra, significantly outperforming traditional CPUs and even high-end GPUs in computational efficiency.

What Problem Does This Paper Address?

Sparse-dense linear algebra—where a matrix with mostly zeros is multiplied by a dense vector or matrix—is the backbone of modern scientific simulation, graph analytics, and machine learning. However, standard processor architectures struggle with these workloads.

The primary culprit is indirection. In formats like Compressed Sparse Row (CSR), the computer doesn't just read the next number in memory; it must first read an index, use that index to calculate a new address, and then fetch the actual data (e.g., x[A_idcs[j]]). On a standard single-issue CPU, this "pointer chasing" requires multiple integer instructions for every single floating-point operation. Consequently, the Floating Point Unit (FPU)—the part of the chip doing the actual computational work—sits idle up to 90% of the time, waiting for memory addresses to be resolved.

Methods

The authors build upon Stream Semantic Registers (SSRs). Standard SSRs allow a programmer to map a memory stream directly to a register; reading from that register automatically triggers a hardware-managed load of the next element in a linear sequence.

This paper introduces ISSRs, which add a layer of indirection to this streaming logic through a dedicated hardware address generation unit. This unit fetches indices from memory, scales them, adds them to a base address, and performs the final data fetch—all in the background.

Detailed architecture of the ISSR address generation unit, showing the hardware-managed indirection logic.

By moving address math into hardware, the CPU core only needs to issue a single instruction (like a fused multiply-add) to process a sparse element. The architecture was implemented in the Snitch RISC-V core, adding a minimal amount of hardware (only 4.4 kGE, or about 0.8% of an eight-core cluster's area) while drastically simplifying the instruction stream.

Datasets and Evaluation

The authors evaluated their architecture using:

  • SuiteSparse Matrix Collection: A standard repository of real-world sparse matrices from various domains (physics, biology, economics).
  • Synthetic Sparse Tensors: Used to benchmark performance across varying levels of sparsity and nonzero counts ($n_{nz}$).
  • Comparison Baselines: Performance was measured against optimized RISC-V assembly, the Intel Xeon Phi 7250, and a NVIDIA GTX 1080 Ti GPU running the cuSPARSE library.

Key Insights and Ideas

  • Compute vs. Control: The core realization is that for sparse data, the bottleneck is the instruction overhead of managing the math rather than the math itself. By turning indirection into a "semantic" property of a register, complex loops are reduced to single, repeating instructions.
  • Area Efficiency: Unlike massive out-of-order CPUs that attempt to hide memory latency with complex logic, ISSRs use a tiny, specialized hardware "streamer." This allows 8 small cores with ISSRs to match the peak throughput of 46 standard cores.
  • Versatility: While designed for linear algebra, ISSRs function as general-purpose "scatter-gather" units, capable of accelerating codebook decoding, sparse convolutions, and parallel radix sorts.

Key Results

The empirical results demonstrate a significant leap in efficiency and performance:

  • FPU Utilization: Single-core FPU utilization jumped from 11% (baseline) to 80% using ISSRs.
  • Speedup: The ISSR kernels achieved a 7.2x speedup on a single core and a 5.8x speedup in a multi-core cluster environment compared to optimized software baselines.
  • Energy Efficiency: On an eight-core cluster, the ISSR implementation was 2.7x more energy-efficient (measured in pJ per operation) than the baseline.
  • GPU Comparison: In double-precision (FP64) CSR matrix-vector multiplication, the ISSR-equipped Snitch cluster achieved 2.8x higher peak FPU utilization than a GTX 1080 Ti GPU.
Performance metrics including FPU utilization, speedup over baseline, and energy consumption for ISSR-equipped clusters.

Limitations and Future Work

Despite the gains, some challenges remain. Performance can be degraded by bank conflicts if multiple cores attempt to access the same TCDM memory bank simultaneously. Additionally, the current hardware shifter is optimized for power-of-two strides; handling arbitrary strides would require a full hardware multiplier, increasing area complexity. Finally, while these kernels are currently hand-optimized, future work will focus on extending compilers to automatically map high-level indirect code to ISSR instructions.

Summary updated

BibTeX
@inproceedings{scheffler2020indirection,
  author = {Paul Scheffler and Florian Zaruba and Fabian Schuiki and Torsten Hoefler and Luca Benini},
  title = {{Indirection Stream Semantic Register Architecture for Efficient Sparse-Dense Linear Algebra}},
  booktitle = {DATE},
  year = {2020},
  doi = {10.23919/date51398.2021.9474230},
}
Figure