NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Capstan: A Vector RDA for Sparsity

Alexander Rucker, Matthew Vilim, Tian Zhao, Yaqi Zhang, Raghu Prabhakar, Kunle OlukotunMICRO 2021

Abstract

This paper proposes Capstan: a scalable, parallel-patterns-based, reconfigurable dataflow accelerator (RDA) for sparse and dense tensor applications. Instead of designing for one application, we start with common sparse data formats, each of which supports multiple applications. Using a declarative programming model, Capstan supports application-independent sparse iteration and memory primitives that can be mapped to vectorized, high-performance hardware. We optimize random-access sparse memories with configurable out-of-order execution to increase SRAM random-access throughput from 32% to 80%.

Introduction: The Challenge of Sparse Tensors

In high-performance computing, sparse tensors—data structures where most elements are zero—are essential for representing massive datasets like social networks or pruned neural networks efficiently. However, they present a significant challenge for traditional hardware. CPUs and GPUs are optimized for dense, regular data. Sparse data is irregular, requiring "pointer chasing" to locate non-zero values, which leads to random memory access patterns and unpredictable control flow.

Current solutions typically fall into two categories: flexible but inefficient general-purpose hardware (CPUs/GPUs) or hyper-specialized, brittle ASICs. Capstan aims to bridge this "programmability gap" by providing an architecture as flexible as a reconfigurable dataflow engine but as efficient as a specialized sparse accelerator.

Architecture and Methods

Capstan builds upon the Plasticine dense RDA, introducing three critical sparsity-aware components to handle irregular data efficiently.

Capstan Architecture Overview: (a) Overall architecture, (b) Sparse Memory Unit (SpMU), (c) Allocation logic, (d) Shuffle Network, (e) Merge Algorithm, and (f) Vectorized Scanner.

Declarative Programming and Vectorized Scanners

Programmers use a high-level Scan primitive, allowing the hardware to manage the complexities of sparse iteration. Specialized Vectorized Scanners process sparse metadata, such as bit-vectors, in a single cycle. These units can perform union or intersection operations across 256 bits simultaneously, enabling the hardware to "skip" zeros at high speed.

Sparse Memory Unit (SpMU)

The SpMU is the core innovation for handling random access. Traditional banked memories often stall due to bank conflicts. The SpMU utilizes a reordering pipeline and a multi-priority allocator to schedule requests out-of-order. This mechanism dramatically improves hardware utilization by allowing the memory to process requests as they become available rather than in a strict, stall-prone sequence.

SRAM Utilization Comparison: Out-of-order execution in the SpMU increases utilization from ~32% (arbitrated/ordered) to nearly 80% (unordered).

Shuffle Networks

To facilitate cross-tile communication, Capstan employs a butterfly-topology shuffle network. This allows for dynamic merging and routing of requests between compute units (CUs) and memory units, maintaining high throughput even with irregular access patterns.

Evaluation and Results

Capstan was evaluated across a diverse suite of workloads, including sparse linear algebra (SuiteSparse), graph analytics (web-Stanford, flickr), and machine learning (pruned ResNet-50).

  • Performance: Capstan (with HBM2) achieves a 16x speedup over an Nvidia V100 GPU and is 18x faster than a multi-core CPU across sparse applications.
  • Efficiency: Compared to its dense predecessor, Plasticine, Capstan is 7.6x to 365x faster for sparse workloads while incurring only a 16% area and 12% power overhead.
  • ASIC Comparison: Capstan outperforms specialized accelerators like SCNN (1.4x) and MatRaptor (17.9x). While it is slower than EIE (0.53x), EIE's performance relies on the assumption that the entire model fits in on-chip SRAM, a constraint Capstan relaxes.

Key Insights

A major contribution of Capstan is the integration of irregular sparse access into a positional dataflow architecture. By using reordering buffers and shuffle networks, Capstan allows "messy" sparse accesses to occur out-of-order while presenting a synchronized interface to compute units. Furthermore, the ability to "fuse" sparse and dense kernels on-chip avoids the "DRAM tax"—the energy and time cost of frequent main memory accesses.

Conclusion and Future Work

While Capstan significantly advances sparse acceleration, its performance remains tied to DRAM bandwidth for extremely large models. Future work includes automating the complex mapping process for arbitrary sparse formats and optimizing for "hyper-sparse" data (less than 1% density) where bit-vectors become less efficient.

Summary updated

BibTeX
@inproceedings{rucker2021capstan,
  author = {Alexander Rucker and Matthew Vilim and Tian Zhao and Yaqi Zhang and Raghu Prabhakar and Kunle Olukotun},
  title = {{Capstan: A Vector RDA for Sparsity}},
  booktitle = {MICRO},
  year = {2021},
  doi = {10.1145/3466752.3480047},
}
Figure