Pimba: A Processing-in-Memory Acceleration for Post-Transformer Large Language Model Serving

Divya Mahajan, Wonung Kim, Yubin Lee, Yoonsung Kim, Jinwoo Hwang, Seongryong Oh, Jiyong Jung, Aziz Huseynov, Woong Gyu Park, Chang Hyun Park, Divya Mahajan 0001, Jongse ParkarXiv 2025 · DOI

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.

LLM Comparison and Roofline Analysis showing the memory-bound nature of state updates in post-transformer models.

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.

Latency breakdown across various post-transformer models, highlighting the significant overhead of state update operations.

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

BibTeX
@misc{mahajan2025pimba,
  author = {Divya Mahajan and Wonung Kim and Yubin Lee and Yoonsung Kim and Jinwoo Hwang and Seongryong Oh and Jiyong Jung and Aziz Huseynov and Woong Gyu Park and Chang Hyun Park and Divya Mahajan and Jongse Park},
  title = {{Pimba: A Processing-in-Memory Acceleration for Post-Transformer Large Language Model Serving}},
  year = {2025},
  eprint = {2507.10178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.10178},
}
Figure