Abstract
While Transformer architectures dominate the Large Language Model (LLM) landscape, their quadratic scaling with sequence length poses significant challenges for long-context scenarios. Emerging "post-transformer" models, such as State Space Models (SSMs) and linear attention, offer constant resource demands but introduce a new bottleneck: memory-bound state update operations. We present Pimba, a Processing-in-Memory (PIM) accelerator that optimizes these operations through hardware-efficient access interleaving and MX8 quantization. Pimba achieves up to 4.1× higher generation throughput than optimized GPUs while maintaining high model accuracy.
Introduction
The evolution of LLMs has led to the development of architectures like Mamba-2 and RetNet, which aim to overcome the memory and compute costs of traditional Transformers. However, as shown in Figure 1, while these models improve throughput and memory efficiency, their core operations—specifically the "state update"—remain severely limited by memory bandwidth. Roofline analysis confirms that these operations fall deep into the memory-bound regime, necessitating a shift in hardware strategy.
The State Update Bottleneck
Post-transformer models rely on propagating information across tokens via a state update mechanism. Our analysis reveals that this operation is significantly more bandwidth-intensive than the attention mechanism in standard Transformers. As illustrated in Figure 2, the latency ratio for state updates remains high across various models and batch sizes, often dominating the execution time. This commonality across diverse architectures like RetNet, GLA, and Mamba-2 allows for a generalized hardware acceleration approach.
Pimba: Architectural Design
Pimba addresses these bottlenecks by offloading memory-intensive tasks to the DRAM. Its design is centered on two key principles:
1. Access Interleaving
To minimize hardware area overhead, Pimba employs an access interleaving technique. Instead of placing a processing unit in every memory bank—which is area-intensive and prevents simultaneous read/write—a single State-update Processing Unit (SPU) is shared between two banks. By interleaving read and write operations across these banks, Pimba halves the required hardware area (keeping overhead to 13.4%) without compromising throughput.
2. MX-based Quantized Arithmetic
Post-transformers are sensitive to precision loss, particularly "swamping effects" where small updates to the internal state are lost. Pimba utilizes the MX8 (Microscaling) format with stochastic rounding. This provides a Pareto-optimal balance between precision and area efficiency, preventing accuracy degradation while avoiding the complexity of standard floating-point dequantization logic.
Results and Discussion
Evaluations across a diverse set of benchmarks (WikiText-2, PIQA, HellaSwag, etc.) demonstrate Pimba's effectiveness. Key results include:
- Throughput: A 4.1× improvement over optimized GPU baselines and 2.1× over standard GPU+PIM systems.
- Latency: A 14.6× reduction in state update latency specifically.
- Energy Efficiency: A 2.2× reduction in energy consumption due to minimized data movement between memory and processor.
- Accuracy: Model performance remains within 0.1%–0.3% of full-precision (fp16) baselines.
Conclusion
Pimba provides a unified, area-efficient serving system for both traditional and emerging LLM architectures. By leveraging PIM and optimized quantization, it bridges the performance gap for long-context serving, offering a scalable path forward for the next generation of large language models. Future work will focus on overlapping GPU and PIM execution to further unlock performance gains.
Summary updated