← Back to Paper Radar

Archived This paper is outside Paper Radar's one-year feed. More archived papers

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

Wonung Kim, Yubin Lee, Yoonsung Kim, Jinwoo Hwang, Seongryong Oh, Jiyong Jung, A. Huseynov, Woong Gyu Park, Chang Hyun Park, Divya Mahajan, Jongse Park
Micro | 2025

Reading guide · Based on sections of the original paper

The authors argue that state updates in post-transformer LLMs (SSMs, linear attention, RNNs) are memory-bandwidth-bound like attention, and they propose Pimba, a processing-in-memory design that serves both kinds of operation through bank-shared processing units and MX8 quantized arithmetic.

Why read this

Useful for practitioners serving Mamba-2-style or hybrid models who want evidence on where decode time goes and which low-precision state formats preserve accuracy.

What the authors found

  • In simulation with A100-class bandwidth and 2,048/2,048 input/output lengths, Pimba averaged 1.9× the generation throughput of a GPU baseline and 1.4× that of GPU+HBM-PIM. Peak gains were 4.1× and 2.1×, across four SU-LLMs, Zamba2 and OPT. Under an H100 configuration, the average gains were 1.8× and 1.3×. 6.2. Results
  • State quantization behaves differently from KV-cache quantization. On WikiText-2, 8-bit floating-point formats sharply raised SU-LLM perplexity (8,114 for GLA with e4m3), while transformer perplexity barely changed. The authors attribute this to swamping during accumulation and report that stochastic rounding helps substantially. Int8 and MX8 avoided the degradation. 3.2. Quantization Analysis for SU-LLMs
  • With MX8 and stochastic rounding, Pimba's downstream accuracy stayed close to the GPU baseline across six models. The geomean changes ranged from −0.3 to +0.1 points. 6.2. Results

Main limitation

Gains depend on how much of the latency comes from state updates. HGRN2 at batch size 32 saw only a 1.2× latency reduction. All performance numbers come from a cycle-accurate simulator, and area figures were scaled from 45nm synthesis. 6.2. Results

Where to start

3.2. Quantization Analysis for SU-LLMs · The comparison of int8, fp8, and MX8 state formats with stochastic rounding, which matters for quantizing SSM states on any hardware.

Abstract

Transformers are the driving force behind today’s Large Language Models (LLMs), serving as the foundation for their performance and versatility. Yet, their compute and memory costs grow with sequence length, posing scalability challenges for long-context inferencing. In response, the algorithm community is exploring alternative architectures—such as state space models (SSMs) (e.g., Mamba-2), linear attention, and recurrent neural networks (RNNs)—which we refer to as post-transformers. This shift presents a key challenge: building a serving system that efficiently supports not only emerging post-transformer LLMs but also existing transformer models within a unified framework. To address this challenge, we analyze the performance characteristics of transformer and post-transformer LLMs. Despite their algorithmic differences, both are largely bounded by memory bandwidth under batched inference—due to attention in transformers and state updates in post-transformers. Inspired by this finding, we propose Pimba, an accelerator solution that aims to address the memory bottleneck by jointly leveraging (1) Processing-in-Memory (PIM) paradigm and (2) LLM quantization. Further analyses suggest two additional insights: (1) state update operations, unlike attention, incur high hardware cost, making per-bank PIM acceleration inefficient, and (2) different low-precision arithmetic methods offer varying accuracy-area tradeoffs, while we identify Microsoft’s MX as a Pareto-optimal choice. Building on these insights, we design the architecture of Pimba as an array of State-update Processing Units (SPUs), each shared between two banks to enable interleaved access. Each SPU includes a State-update Processing Engine (SPE) that comprises element-wise multipliers and adders using MX-based quantized arithmetic, enabling efficient execution of state update and attention operations. Our evaluation shows that, compared to LLM-optimized GPU and GPU+PIM systems, Pimba achieves up to 4.1 × and 2.1 × higher generation throughput, respectively.

Generated automatically from paper sections on 2026-11-28.