arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02598

Activation Sparsity with Weight Approximation for Faster LLM Decoding on Offloaded Weights

JuneHyung Kim, Sankeerth Durvasula, Nandita Vijaykumar

ABSTRACT

Deploying LLMs on consumer-grade GPUs with insufficient memory to hold their weights can result in prohibitively slow inference, because decoding repeatedly transfers offloaded weights from system RAM or flash storage into GPU at much lower bandwidth than local GPU-memory access. Activation sparsity reduces these transfers by skipping weights associated with zero or near-zero activations. However, as more activation contributions are omitted, model quality eventually degrades rapidly, indicating that weights associated with small-magnitude activations collectively influence model quality sharply. In this work, we improve the trade-off between model quality and decoding performance when exploiting activation sparsity. Our key idea is to replace the binary choice of whether or not to read a weight with three options: fully retain it, approximate it using a compressed weight representation, or omit it entirely. SpAx skips weights associated with activations closest to zero, reads approximate weights for smaller-magnitude activations, and reads original weights for the largest-magnitude activations. Smaller-magnitude activations attenuate the errors introduced by approximate weights, while compressed weight representations require fewer bytes to be transferred. With weights offloaded to CPU memory, SpAx speeds up decoding by 3.86×3.86\times on average (up to 5.57×5.57\times) with 16-bit weights and 2.06×2.06\times (up to 2.74×2.74\times) with 4-bit weights, at a WikiText-2 perplexity increase of at most 10%. With weights offloaded to flash storage, the speedups are 3.31×3.31\times on average (up to 4.81×4.81\times) and 1.54×1.54\times (up to 2.03×2.03\times).

1 INTRODUCTION

Large language models (LLMs) have demonstrated strong capabilities in a wide range of tasks, from text understanding to agentic workflows such as code generation, computer use, and mathematical reasoning. Running capable LLMs locally on personal devices such as desktops or workstations gives users greater control over their data and computing. This has vital implications for task ownership and data privacy, and reduce dependence on cloud subscriptions and their dynamic pricing.

Unlike server-grade GPUs, desktop and workstation GPUs typically have limited GPU memory. We use GPU memory for VRAM, CPU memory for system DRAM, and flash storage for SSD-based storage (an NVMe SSD in our experiments). Offloaded weights reside in CPU memory or flash storage and are transferred into GPU memory as needed during decoding. These transfers are much slower than reading weights already resident in GPU memory. For example, on our workstation (Section 6), the NVIDIA RTX 4090's local memory bandwidth is about 80×80\times the bandwidth for transferring weights from CPU memory and about 150×150\times that for transferring weights from flash storage. Thus, transferring offloaded weights can dominate decoding latency (Alizadeh et al., 2024; Xue et al., 2024). Reducing this latency requires reducing the weight bytes transferred to generate each token. This requires targeting the transformer's attention projection and feed-forward network (FFN) weights. Within each projection, a weight column contains the weights multiplied by a single

∗^{*}Work done while at University of Toronto.

input activation entry (see Section 2). Activation sparsity reduces these transfers by skipping weight columns associated with zero activations. The columns that can be skipped differ across tokens.

Early methods such as Deja Vu (Liu et al., 2023) and PowerInfer (Song et al., 2024a) demonstrate that activation-dependent sparsity can accelerate LLM inference. These methods exploit sparse activations in the FFN of models that use the ReLU activation function (Nair & Hinton, 2010). However, this source of sparsity is largely absent in modern LLMs that use smooth activation functions such as SiLU and GELU (Shazeer, 2020). ReLUfication (Mirzadeh et al., 2024; Song et al., 2025; 2024b) addresses this limitation by replacing the smooth activation function with ReLU and performing continued pretraining to recover model quality. PowerInfer-2 (Xue et al., 2024) decodes such sparsified models on a smartphone with FFN weights offloaded to flash storage. Continued pretraining, however, requires access to representative training data and compute resources and produces a modified instance of the model. Training-free approaches instead induce sparsity by omitting reads of weight columns corresponding to low-magnitude activations. CATS (Lee et al., 2024) applies this approach to FFN weights in models using SiLU activation functions. CHESS (He et al., 2024) and TEAL (Liu et al., 2025a) apply magnitude-based sparsification to attention projection weights as well. These methods offer a sparsity level hyperparameter that is adjustable during deployment, allowing a trade-off between model quality and weights read per token. Increasing sparsity removes contributions of progressively higher-magnitude activations. However, beyond a certain sparsity level, even a small increase in leveraged sparsity causes model quality to drop sharply (see Section 4). This rapid degradation indicates that model quality is highly sensitive to omitting these intermediate-magnitude activations. This limits the sparsity level that can be used in practice (Szatkowski et al., 2026).

Our goal in this work is to accelerate autoregressive decoding in modern LLMs on consumer-grade GPUs where weights exceed GPU memory, without requiring continued pretraining. To this end, we propose SpAx (Sparsity with Approximation), a tiered activation-sparsity mechanism to reduce the weight data required per token, i.e., the number of weight bytes (compressed or otherwise) transferred to GPU memory, while limiting model-quality loss. The key idea of SpAx is to replace the binary choice of whether or not to read a weight column with three options: read the original weights of the weight column, read an approximation of the weight column using a compressed representation, or omit it entirely. This design builds on the observation that an activation's magnitude scales the contribution of its weight column's approximation error to the projection's output error. Because smaller-magnitude activations attenuate these errors, approximating their weight columns with compressed representations loses little accuracy while transferring far fewer bytes. This motivates omitting weights associated with activations closest to zero, approximating those of smaller-magnitude activations, and retaining the original weights for the largest-magnitude activations.

Realizing this idea requires addressing three challenges: (1) providing compressed weight approximations that preserve useful contributions and allow each selected column to be read independently; (2) choosing which columns to retain, approximate, or omit at each token under a given read budget; and (3) translating byte savings into faster decoding despite the fragmented storage reads caused by token-dependent column selection. To address (1), SpAx defines three weight approximation tiers: a top tier read in the deployment's weight format, a middle tier read from compressed representations of each weight that the GPU decompresses during decoding, and a bottom tier left unread. The middle tier encodes each weight column independently (Section 5.1). To address (2), SpAx retains the magnitude ordering used by top-k selection and introduces a second boundary to divide activation entries among the three tiers. Offline calibration allocates the read budget among matrices and between the top and middle tiers (Section 5.2). To address (3), SpAx groups matrices that share input activations and places their jointly accessed weight columns contiguously in storage. It merges adjacent selected ranges into larger read requests to reduce fragmentation (Section 5.3).

We evaluate SpAx on three models in two weight formats against four training-free activation-sparsity methods. At a WikiText-2 perplexity increase of at most 10%, with weights offloaded to CPU memory, SpAx decodes 3.86×3.86\times faster than dense on average (up to 5.57×5.57\times) in BF16 and 2.06×2.06\times (up to 2.74×2.74\times) with 4-bit weights, where TEAL reaches 1.94×1.94\times and 1.85×1.85\times on average. With flash offloading, the speedups are 3.31×3.31\times (up to 4.81×4.81\times) and 1.54×1.54\times (up to 2.03×2.03\times), where TEAL reaches 1.82×1.82\times and 1.48×1.48\times. Our contributions are as follows:

• We propose SpAx, a training-free method that leverages activation-sparsity to selectively read each offloaded weight in full precision, as compressed approximations, or not read at all, according to its activation’s magnitude.

• At the same model quality, SpAx requires significantly less weight data per token than prior work in all evaluated settings.

• SpAx supports offloading to CPU memory or flash storage, with 16- or 4-bit weights.

References (41)