Introduction
As Deep Learning (DL) models continue to scale, they increasingly encounter the "memory wall"—a bottleneck where the energy and time required to move data between processors and memory far exceed the costs of actual computation. Processing-In-Memory (PIM) has emerged as a promising solution by integrating logic units directly within memory arrays. However, existing PIM systems often struggle with high communication overhead, rigid computation precision, and poor programmability.
PIMSAB addresses these challenges through a scalable, bit-serial architecture that co-designs hierarchical hardware with a specialized compiler. By optimizing for spatially-aware communication and bit-serial-aware computation, PIMSAB achieves significant performance and energy efficiency gains over traditional GPUs and state-of-the-art PIM designs.
The PIMSAB Architecture
PIMSAB utilizes a hierarchical design to manage complexity and maximize data reuse. At its core are Compute-enabled SRAMs (CRAMs), which are organized into tiles. These tiles are interconnected via a 2D mesh Network-on-Chip (NoC) for global communication.
Spatially-Aware Communication
A key innovation in PIMSAB is its spatially-aware communication infrastructure. Within each tile, an H-tree interconnect facilitates high-bandwidth data reductions, which are essential for operations like dot products in neural networks. Additionally, dedicated hardware for operand shuffling and systolic broadcasting allows weights to flow efficiently through the chip, preventing bottlenecks in the main NoC.
Bit-Serial-Aware Computation
Unlike conventional processors that operate on fixed bit-widths (e.g., 32-bit), PIMSAB processes data bit-by-bit. This bit-serial approach enables Adaptive Precision, allowing the system to use only the necessary number of bits for a given model, and Bit-Slicing, which breaks large operations into smaller parallel tasks. This flexibility allows PIMSAB to exploit "bit-level sparsity"—skipping cycles for zero bits—resulting in substantial speedups for sparse operations.
Full-Stack Co-Design
To bridge the gap between high-level DL models and low-level PIM hardware, the authors developed a programming framework based on the TVM tensor DSL. This full-stack approach allows developers to write high-level code while the compiler automatically manages the complex task of mapping data to millions of processing elements (PEs).
The compiler employs a "greedy" strategy to maximize data reuse within the CRAMs, only utilizing the NoC when necessary. This significantly reduces DRAM traffic and optimizes the execution of complex tensor operations across the hierarchical hardware.
Evaluation and Results
PIMSAB was evaluated against an NVIDIA A100 GPU and two leading PIM research prototypes, Duality Cache and SIMDRAM, using a variety of DL microbenchmarks and end-to-end networks like ResNet18.
- Performance vs. NVIDIA A100: PIMSAB achieved an average 3× speedup and 4.2× better energy efficiency. Notably, on the
firkernel, it demonstrated a 15.1× speedup due to its superior handling of unaligned memory access. - Performance vs. PIM Prototypes: PIMSAB outperformed Duality Cache (SRAM PIM) by 3.7× and SIMDRAM (DRAM PIM) by 3.88×. These gains are attributed to the efficient H-tree reductions and the superior on-chip data reuse afforded by the SRAM-based architecture.
Conclusion and Future Work
PIMSAB demonstrates that a co-designed, bit-serial PIM system can effectively overcome the memory wall for Deep Learning workloads. While the current compiler is highly effective, future work aims to improve its synchronization strategies to match hand-tuned performance in complex kernels like conv2d. Additionally, exploring PIMSAB's performance on non-tensor workloads, such as graph processing, remains an area for further investigation. Despite the added hardware complexity of H-trees and shuffle logic, the significant performance and energy gains justify the architectural investment.
Summary updated