arXiv:2609.09823cs.ARSep 2026

Manuscript Offprint

arXiv:2609.09823

AMEND: Audited Margins Enable Nonblocking Drops in GPU-PIM LLM Decoding

Zuxiong Tan, Will Wei-Jen Wang, Wei Shao, Ali Karkehabadi, Houman Homayoun, Avesta Sasan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zuxiong Tan*

Department of Electrical and Computer Engineering University of California, Davis Davis, California, USA zxtan@ucdavis.edu

Ali Karkehabadi

Department of Electrical and Computer Engineering University of California, Davis Davis, California, USA akarkehabadi@ucdavis.edu

Will Wei-Jen Wang

Department of Electrical and Computer Engineering University of California, Davis Davis, California, USA www@ucdavis.edu

Houman Homayoun

Department of Electrical and Computer Engineering University of California, Davis Davis, California, USA hhomayoun@ucdavis.edu

Wei Shao

Department of Computer Science University of California, Davis Davis, California, USA wayshao@ucdavis.edu

Avesta Sasan

Department of Electrical and Computer Engineering University of California, Davis Davis, California, USA asasan@ucdavis.edu

Abstract

Autoregressive large language model (LLM) decoding re-reads a growing key-value (KV) cache at every step, so long-context attention is bound by graphics processing unit (GPU) memory bandwidth. Block-sparse attention skips low-contribution KV blocks, but a selector that decides after the current query-key (QK) product, such as max-relative block thresholding (BLASST), still reads every K block, and a processing-in-memory (PIM) filter that decides from the current query places a serial PIM stage on the critical path. We present AMEND, a GPU-PIM attention design that removes both dependencies. AMEND predicts each block's BLASST verdict from margins audited at earlier steps, so the GPU fetches only predicted survivors while near-bank PIM units in high-bandwidth memory (HBM) concurrently score the omitted complement. A stack-level controller merges both observations, updates the predictor, and eagerly generates the next step's mask, so every predicted drop is re-observed without blocking the current token. Operating points are selected offline by constrained Bayesian optimization under a false-drop budget. Across LongBench and RULER runs, AMEND preserves near-baseline task quality; in simulation at batch size 8, it achieves 1.40–3.63× end-to-end decode speedup and 28–66% lower dynamic decode energy than dense attention across 8K–64K contexts.

CCS Concepts: • Computer systems organization → Heterogeneous (hybrid) systems; Parallel architectures.

Keywords: large language model inference, sparse attention, KV cache, processing-in-memory, long-context decoding

1 Introduction

Large language models (LLMs) decode one token per step. Each decoder layer scores the current query against every cached key (query-key, QK) and weights cached values by the normalized scores (probability-value, PV). The key-value (KV) cache grows with the sequence while the query stays fixed in size, so decode attention is bound by graphics processing unit (GPU) memory bandwidth [33] and dominates long-context decode [42]. Processing in memory (PIM) places general matrix-vector multiplication (GEMV) units beside the DRAM banks that hold the cache; integrated with high bandwidth memory (HBM), HBM-PIM exposes bank-level parallelism and internal bandwidth that the GPU interface cannot reach [18]. PIM-GPT, AttAcc, NeuPIMs, and PAPI demonstrate near-data attention for LLM inference [12, 13, 27, 36], and recent GPU-PIM systems extend it to long-context serving [17, 23].

Sparse attention retains important KV regions and omits the rest. Eviction methods keep a bounded token set [22, 38, 48]; current-query methods rank pages or estimate scores with the query at hand [5, 16, 31, 33]; BLASST thresholds each block's exact QK maximum against the exclusive-prefix maximum [46]; and near-memory designs move selection next to the cache [10, 20, 30, 45]. These masks differ in when they become available (Figure 1). A post-QK selector such as BLASST (Figure 1a) skips softmax, V loading, and PV for dropped blocks but has already read every K block to reach that verdict; at 90% block sparsity, K still accounts for about 91% of its remaining logical K+V traffic. A current-query PIM filter (Figure 1b–c) forms the mask before the GPU fetches K, but it still depends on the current query, so the PIM stage only joins the same serial chain from query to scores to mask to attention. A GPU-PIM system, however, has two engines that can run at once; using both means breaking that chain.

*Corresponding author.

Figure

Figure 1. Four paths to a sparse-attention mask. (a) A full-QK GPU filter (e.g., BLASST) forms its mask after all-K QK. (b) A full-QK PIM filter and (c) a proxy-QK PIM filter form the current mask from the current query. (d) AMEND uses audited history to generate an early survivor mask; GPU survivor attention overlaps PIM QK over globally omitted blocks, and the resulting audit drives eager next-mask generation. Arrows denote dependencies.

If the verdict is predicted from earlier steps rather than computed from the current query, the GPU starts on predicted survivors with zero delay and no K traffic for predicted drops, while PIM audits the prediction in parallel and feeds the next step instead of gating the current one (Figure 1d).

Earlier steps carry usable evidence: adjacent steps change the query and context incrementally, so the regions that matter persist. Scissorhands formulates this persistence, and AttentionPredictor and LFPS reuse temporal attention patterns [24, 41, 43]; FACT also predicts correlations before QK, but from the current layer input rather than from earlier steps [28]. In our traces, 89.2% of eligible BLASST verdicts remain unchanged at the next step, and the continuous margin behind each verdict separates a block far below threshold from one barely below it. Prediction alone, however, opens an observation hole: a dropped block is never scored again, so an incorrect drop removes the very evidence that could correct it, an instance of the selective-labels problem [7]. Guess-Verify-Refine (GVR) and PRR verify or repair the current step's selection [6, 35]. AMEND instead audits every predicted drop, a block the predictor removes from the GPU path before current QK, concurrently with survivor attention, and folds the result into the next prediction; in a controlled ablation, this feedback lowers the false-drop rate by 68%.

AMEND builds this predict-and-audit loop into a GPU-PIM execution contract with three ideas. First, it predicts each block's BLASST verdict from audited margins, verified block-to-threshold distances from earlier steps, and generates a survivor mask before the current QK. Second, the GPU runs QK, online softmax, and PV over survivors only, while AttAcc-derived power-capped near-bank GEMV units concurrently compute QK for the globally omitted blocks [27]. Third, a stack-level controller merges GPU and PIM observations, updates predictor state, and generates the following

step's mask; this eager next-mask generation re-observes every predicted drop without blocking the current token.

Four properties make the design nontrivial. A predicted drop is irreversible for the current token, so incorrect drops must be bounded, not repaired. A predictor that observes only survivors censors its own signal, so the audit must cover the entire omitted set. The audit must finish within the step it overlaps, bounding local PIM work and controller reconstruction. Finally, five mixed-type predictor knobs interact through a cross-token recursion, so we select operating points with Scalable Constrained Bayesian Optimization (SCBO) under an empirical false-drop constraint [9].

LongBench and RULER runs [3, 14] show near-baseline task quality. In simulation at batch size 8, AMEND achieves 1.40–3.63× end-to-end decode speedup, 28–66% lower dynamic decode energy than Dense, and 8.4–11.3× attention-path speedup across 8K–64K contexts.

Contributions. This paper makes four contributions:

  • It identifies the K-traffic gap between post-QK sparsity and pre-QK masks and quantifies the fraction of BLASST verdicts that history predicts.

  • It introduces causal pre-QK verdict prediction, a complement audit that reconstructs BLASST evidence for every predicted drop, and eager next-mask generation.

  • It gives a model-level mapping of survivor attention, omitted-complement QK, and audit-state reconstruction onto an AttAcc-derived HBM-PIM substrate.

  • It adapts SCBO to select five mixed-type predictor parameters under an empirical false-drop constraint.

Code availability. Core code for AMEND attention emulation and trace-based GPU/PIM simulation is available at https://github.com/Miketan1/AMEND_code.

References (12)