DISCA: A Digital In-memory Stochastic Computing Architecture Using A Compressed Bent-Pyramid Format

Shady Agwa, Yikang Shen, Shiwei Wang, Themis ProdromakisarXiv 2025 · DOI

Introduction

Modern Artificial Intelligence (AI) workloads, particularly those involving large-scale Transformers, are defined by billions of Matrix-Matrix Multiplication (MatMul) operations. In traditional Von Neumann architectures, the constant movement of data between memory and processing units creates a significant energy bottleneck known as the "memory wall." To address this, researchers have proposed DISCA, a digital in-memory computing (IMC) architecture that combines the robustness of standard SRAM with the computational simplicity of stochastic computing.

The Memory Wall and the IMC Solution

In-memory computing aims to perform calculations directly where data is stored. Currently, two primary approaches exist:

  1. Analog IMC: Utilizes physical properties (like Ohm’s Law in RRAM) for high efficiency but suffers from noise, device variability, and the high power consumption of Analog-to-Digital Converters (ADCs).
  2. Digital IMC: Uses standard CMOS/SRAM logic. While reliable, performing complex binary multiplications in-memory typically requires numerous clock cycles, limiting throughput.

DISCA bridges this gap by implementing a digital IMC that mimics the simplicity of analog math through stochastic logic, achieving high energy efficiency without the reliability pitfalls of emerging analog devices.

Methodology: The Three Pillars of DISCA

DISCA's architecture is built upon three core innovations designed to streamline MatMul operations:

1. Bitline Computing

Instead of reading data out to a separate processor, DISCA activates two wordlines within an SRAM array simultaneously. This allows the bitlines to perform bitwise AND and NOR operations directly. This hardware-level logic forms the basis for the multiplication process.

2. Stochastic Computing (SC)

In the stochastic domain, multiplying two numbers—represented as probabilities—is reduced to a simple bitwise AND operation. By converting binary values into stochastic bitstreams, DISCA transforms a complex multi-cycle multiplier into a single-cycle logic gate operation within the memory array.

DISCA architecture showing GEMM algorithm and bitline logic.

3. Compressed Bent-Pyramid (BP8) Format

Traditional stochastic computing often relies on long, random bitstreams that lead to high latency and inaccuracy. DISCA utilizes the Bent-Pyramid (BP) format, a structured, deterministic quasi-stochastic representation. The authors specifically developed a compressed 8-bit version (BP8). This format provides the computational accuracy of a 10-bit stream while significantly reducing hardware overhead and improving throughput.

The Bent-Pyramid and Compressed Bent-Pyramid formats.

Key Insights and Hardware Implementation

  • Deterministic Approximation: Unlike random stochastic streams, the Bent-Pyramid format is deterministic. This ensures that identical inputs always produce identical outputs, allowing AI models to be more effectively tuned for the architecture's inherent approximations.
  • Hybrid Accumulation: To avoid the accumulation bottlenecks common in pure stochastic systems, DISCA uses a digital SC-to-Binary Accumulator. This peripheral circuitry uses parallel counters and adder trees to sum the bitline results efficiently.
  • Shared Infrastructure: The design employs a hierarchical decoder where a single address logic block is shared across multiple subarrays, minimizing the energy overhead associated with memory addressing.

Results and Performance

The DISCA architecture was implemented and evaluated in a 180nm process, yielding the following results:

  • Energy Efficiency: Achieved 3.59 TOPS/W per bit at a clock frequency of 500 MHz.
  • Throughput: A 128KB DISCA engine reached a peak throughput of 7.9 TOPS per bit.
  • Scaling Potential: Projections using the DeepScaleTool suggest that scaling the architecture to a 22nm node could improve energy efficiency by approximately 100x, positioning it as a superior alternative to existing state-of-the-art digital IMCs.
  • Low Peripheral Overhead: The conversion from stochastic results to binary accumulation consumes only 243.28 fJ/bit, ensuring the logic doesn't become a power bottleneck.

Conclusion and Future Work

DISCA demonstrates that stochastic computing, when paired with structured data formats like BP8, can transform standard SRAM into a high-performance AI accelerator. While the current implementation shows significant promise, future work will focus on increasing "code density" to improve computational density per square millimeter and scaling the architecture to advanced technology nodes for full-scale multi-array engines. DISCA offers a robust, scalable path forward for energy-constrained edge AI hardware.

Summary updated

BibTeX
@misc{agwa2025disca,
  author = {Shady Agwa and Yikang Shen and Shiwei Wang and Themis Prodromakis},
  title = {{DISCA: A Digital In-memory Stochastic Computing Architecture Using A Compressed Bent-Pyramid Format}},
  year = {2025},
  eprint = {2511.17265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.17265},
}
Figure