Batch-wise Adaptive Pruning: Periodic Neuron Activation-Aware Weight Pruning for Language Reasoning Model

arXiv cs.CL Papers

Summary

This paper proposes a training-free adaptive pruning method for large reasoning models during batched inference, using periodic top-k selection and activation memory to improve accuracy and computational efficiency.

arXiv:2608.14003v1 Announce Type: new Abstract: Large Reasoning Models (LRMs) achieve strong performance on complex tasks through extended chain-of-thought generation, but incur substantial computational costs during inference. In production settings, batched inference is essential for high throughput, yet the existing training-free adaptive pruning methods we evaluate severely degrade in this regime. Because a batch must share a single pruning mask, these methods aggregate activations across samples and then apply threshold-based selection; the threshold, calibrated offline on unaggregated activations, no longer matches the aggregated distribution, so the realized sparsity ratio drifts and accuracy on reasoning tasks collapses under batched inference. In this work, we propose a training-free adaptive pruning method designed specifically for batched inference in LRMs, built on two components. First, we replace threshold-based selection with periodic top-k selection over the aggregated importance scores, which is unaffected by the shift that aggregation induces in the activation distribution, and which runs selection once per update period rather than at every token, preserving the speedup. Second, based on the observation that important neurons re-fire periodically during long reasoning generation, we introduce an activation memory that accumulates importance across update phases so that recurring neurons are retained. Experiments on diverse reasoning benchmarks demonstrate that our method outperforms the previous state-of-the-art adaptive pruning method by 39.7 percentage points in average accuracy at batch size 4 with 50% target sparsity on DeepSeek-R1-Distill-Qwen-7B, and reaches 1.40x speedup over dense inference at 50% actual sparsity.
Original Article
View Cached Full Text

Cached at: 08/17/26, 09:50 AM

# Batch-wise Adaptive Pruning: Periodic Neuron Activation-Aware Weight Pruning for Language Reasoning Model
Source: [https://arxiv.org/html/2608.14003](https://arxiv.org/html/2608.14003)
Shota Takashiro11footnotemark:1Yusuke IwasawaTakeshi KojimaYutaka MatsuoAffiliation:The University of Tokyo

###### Abstract

Large Reasoning Models \(LRMs\) achieve strong performance on complex tasks through extended chain\-of\-thought generation, but incur substantial computational costs during inference\. In production settings, batched inference is essential for high throughput, yet the existing training\-free adaptive pruning methods we evaluate severely degrade in this regime\. Because a batch must share a single pruning mask, these methods aggregate activations across samples and then apply threshold\-based selection; the threshold, calibrated offline on unaggregated activations, no longer matches the aggregated distribution, so the realized sparsity ratio drifts and accuracy on reasoning tasks collapses under batched inference\. In this work, we propose a training\-free adaptive pruning method designed specifically for batched inference in LRMs, built on two components\. First, we replace threshold\-based selection with*periodic top\-kkselection*over the aggregated importance scores, which is unaffected by the shift that aggregation induces in the activation distribution, and which runs selection once per update period rather than at every token, preserving the speedup\. Second, based on the observation that important neurons re\-fire periodically during long reasoning generation, we introduce an*activation memory*that accumulates importance across update phases so that recurring neurons are retained\. Experiments on diverse reasoning benchmarks demonstrate that our method outperforms the previous state\-of\-the\-art adaptive pruning method by 39\.7 percentage points in average accuracy at batch size 4 with 50% target sparsity on DeepSeek\-R1\-Distill\-Qwen\-7B, and reaches1\.40×1\.40\\timesspeedup over dense inference at 50% actual sparsity\.111Our code is available at:[https://github\.com/matsuolab/batch\-wise\-prune](https://github.com/matsuolab/batch-wise-prune)

![Refer to caption](https://arxiv.org/html/2608.14003v1/figure1.png)Figure 1:\(Left\)Top: existing adaptive pruning\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14)\)selects neurons with an offline\-calibrated threshold, so the realized sparsity ratio drifts under the aggregated activation distribution and performance degrades\.Middle: top\-kkselection is unaffected by that shift, but performing it at every decoding step incurs computational overhead that erases the speedup\.Bottom: our method updates the pruning mask by top\-kkselection*periodically*and carries importance across updates through an activation memory, retaining reasoning performance while maintaining computational efficiency\.\(Right\)Activation visualization of𝐙\\mathbf\{Z\}in an FFN layer of DeepSeek\-R1\-Distill\-Qwen\-7B, where thebluehorizontal line indicates the input boundary\. Neurons with large activation magnitudes \(highlighted inred\) exhibit a high re\-firing ratio and short re\-firing period, motivating our periodic mask update strategy\.## 1Introduction

Large language models \(LLMs\) have demonstrated remarkable capabilities across a wide range of tasks\([Grattafiori et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib7);[Yang et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib25);[Team 2023](https://arxiv.org/html/2608.14003#bib.bib23)\), yet they come with substantial computational costs\. In particular, recent advances in reasoning capabilities have led to the emergence of Large Reasoning Models \(LRMs\)\([DeepSeek\-AI 2025](https://arxiv.org/html/2608.14003#bib.bib4);[OpenAI 2024](https://arxiv.org/html/2608.14003#bib.bib17)\), which employ extended chain\-of\-thought processes to solve complex problems\. While effective, these models generate substantially longer outputs, further exacerbating computational costs during inference\. These computational bottlenecks become particularly critical in production settings, where serving multiple requests simultaneously through batched inference \(processing multiple input samples together as a single batch\) is essential for achieving high serving efficiency\([Kwon et al\. 2023](https://arxiv.org/html/2608.14003#bib.bib11)\)\. To further minimize request latency, we need more lightweight models that can run efficiently in batched settings\.

A promising approach to reduce inference cost is pruning\. Existing pruning methods can be categorized as either*static*or*adaptive*\. Static methods\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5);[Sun et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib22);[Frantar & Alistarh 2023](https://arxiv.org/html/2608.14003#bib.bib6)\)fix a pruning pattern before decoding, either from calibration data or from the prompt, and reuse it throughout generation; however, we observe that this fixed approach degrades performance on reasoning tasks where activation patterns evolve during chain\-of\-thought generation\. Adaptive methods\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14);[Lee et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib12)\)address this by dynamically selecting neurons at each step based on activation magnitudes, achieving strong performance on complex reasoning tasks\.

However, existing adaptive pruning methods such as CATS\([Lee et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib12)\)and TEAL\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14)\)face a fundamental limitation in batched inference scenarios\. On GPUs, batched inference requires a single shared pruning mask across all samples in a batch, so per\-sample activations must first be aggregated into one score vector\. The failure lies in what happens after aggregation: these methods select neurons with a threshold calibrated offline on an external corpus\. That threshold is tuned to a single\-sample activation distribution, whereas aggregation across a batch shifts the distribution it is applied to, so the realized sparsity ratio drifts away from the target during generation\. Replacing this threshold with top\-kkselection, while holding every other component of our method fixed, is what allows accuracy to be maintained under batching \(Section[4\.4](https://arxiv.org/html/2608.14003#S4.SS4)\), identifying threshold\-based selection as a primary cause of TEAL’s batched collapse\. A second difficulty is specific to reasoning workloads: activation patterns evolve over thousands of generated tokens, so a mask chosen once is stale long before generation ends, while re\-selecting it at every decoding step is too expensive to leave any speedup\.

In this work, we propose a training\-free adaptive pruning method for LRMs that enables efficient batched inference while maintaining strong performance on reasoning tasks\. Our contributions are twofold\. \(i\) We are the first, to our knowledge, to empirically show that existing training\-free pruning methods we evaluate severely degrade performance on reasoning tasks under batched inference\. The two families fail for different reasons: static methods \(Wanda, Griffin; evaluated on the two DeepSeek\-R1\-Distill models\) degrade on reasoning tasks at any batch size, because a pruning pattern fixed before decoding, from calibration data for Wanda and from the prompt for Griffin, cannot track activations that evolve over a long chain of thought, while adaptive methods, which do perform well at batch size 1, collapse once a mask must be shared: TEAL loses 58\.4 to 67\.7 points of average accuracy relative to the dense model at 50% target sparsity, across all four models we evaluate\. \(ii\) We propose a method that retains substantially more accuracy in this regime through two components:*periodic top\-kkselection*, which is unaffected by the shift that aggregation induces in the activation distribution and runs selection once per update period rather than at every token; and an*activation memory*, which accumulates importance across update phases so that neurons re\-activating over time are retained, grounded in the observation that important neurons re\-fire periodically during long reasoning generation \(Figure[1](https://arxiv.org/html/2608.14003#S0.F1); extended visualizations are in Appendix[Q](https://arxiv.org/html/2608.14003#A17)\)\. Cross\-sample aggregation is a third design axis, but not one we claim as a source of our gains: we aggregate with an element\-wise maximum rather than a mean \(see Batch Aggregation in Section[3\.2](https://arxiv.org/html/2608.14003#S3.SS2)for details\), and our experiments in Section[4\.4](https://arxiv.org/html/2608.14003#S4.SS4)show that accuracy is largely insensitive to this choice\. Relying only on runtime activations further makes our method calibration\-free, whereas Wanda and TEAL must both calibrate on an external corpus before deployment\.

Through extensive experiments on various reasoning tasks, we demonstrate that our method maintains good performance in batched settings, while existing adaptive pruning methods suffer significant performance degradation\. Specifically, our approach outperforms the previous state\-of\-the\-art adaptive pruning method by 39\.7 percentage points in average accuracy at batch size 4 with 50% target sparsity on DeepSeek\-R1\-Distill\-Qwen\-7B \(DS\-R1\-Qwen\-7B\)\. Additionally, our approach achieves1\.40×1\.40\\timesspeedup over dense inference at 50% actual sparsity\. The operating regime this targets, and where it does not apply, is stated in Appendix[A](https://arxiv.org/html/2608.14003#A1)\.

Table 1:Summary of our experiments for various pruning methods across inference settings\. Our method \(∗\) uniquely maintains consistent performance across all settings, whereas existing approaches degrade on reasoning tasks or batched inference\.Task TypeBatch SizeStaticPruningExistingAdaptive PruningOursNon\-reasoning1✓✓✓≥\\geq2✓✓✓Reasoning1✗✓✓≥\\geq2✗✗✓∗
## 2Related Work

Pruning methods for large language models can be categorized along several dimensions: granularity, input dependency, and adaptivity\. Table[1](https://arxiv.org/html/2608.14003#S1.T1)summarizes key differences between existing approaches and ours\.

#### Pruning Granularity\.

Pruning reduces model size by removing redundant parameters\.Unstructured pruningremoves individual weights\([Frantar & Alistarh 2023](https://arxiv.org/html/2608.14003#bib.bib6);[Sun et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib22)\)but requires specialized hardware for acceleration\.Semi\-structured pruning\(e\.g\., N:M sparsity\) also relies on specific GPU architectures\([Frantar & Alistarh 2023](https://arxiv.org/html/2608.14003#bib.bib6);[Sun et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib22)\)\.Structured pruning\([Ma et al\. 2023](https://arxiv.org/html/2608.14003#bib.bib16);[Xia et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib24)\)typically requires post\-training\. Our method performs structured pruning through standard matrix operations, enabling acceleration on any hardware without specialized kernels or post\-training\.

#### Input\-Independent vs\. Input\-Dependent Pruning\.

Input\-independentmethods determine a fixed pruning pattern before inference using calibration data\([Sun et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib22);[Ashkboos et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib1);[Kim et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib10);[Frantar & Alistarh 2023](https://arxiv.org/html/2608.14003#bib.bib6)\), benefiting from batch compatibility but unable to exploit input\-specific activation patterns\.Input\-dependentmethods dynamically select neurons based on runtime activations\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5);[Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14);[Lee et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib12);[Song et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib21)\), but introduce challenges for batched inference, as different samples require distinct pruning patterns\.

#### Static vs\. Adaptive Pruning\.

Static pruningdetermines a fixed sparsity pattern and reuses it throughout generation\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5)\), whileadaptive pruningdynamically updates the mask during decoding\([Lee et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib12);[Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14);[Liu et al\. 2023](https://arxiv.org/html/2608.14003#bib.bib15)\)\. Static pruning cannot adapt to evolving activation patterns, leading to degradation on reasoning models with long outputs\. Existing adaptive methods rely on threshold\-based selection, which suffers from distribution shifts when aggregating across batches\. Moreover, DejaVu\([Liu et al\. 2023](https://arxiv.org/html/2608.14003#bib.bib15)\)and ProSparse\([Song et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib21)\)operate at the individual sample level, making batched inference challenging\. Our method addresses these limitations through periodic top\-kkselection combined with an activation memory that carries importance across mask updates, as detailed in Section[3](https://arxiv.org/html/2608.14003#S3)\.

Figure 2:Overview of our batch\-wise adaptive pruning approach\. \(a\) Importance scores are computed per sample and aggregated into a single score vector, since a batch must share one pruning mask; we use an element\-wise maximum as the default aggregation operator\. \(b\) The method operates in three phases: input processing, dense exploration, and periodic adaptive pruning, with an activation memory carrying importance scores across successive mask updates\.

## 3Method

In this section, we present our batch\-wise adaptive pruning approach for efficient LLM inference\. Our method is training\-free, requiring no fine\-tuning; pruning decisions are made in real time, relying solely on model activations observed during inference\. We first introduce the preliminaries on gated MLP structures \(Section[3\.1](https://arxiv.org/html/2608.14003#S3.SS1)\), which account for the majority of the parameters in modern Transformer\-based LLMs and thus are the pruning target of our method\. Next, we describe our batch\-wise importance scoring mechanism \(Section[3\.2](https://arxiv.org/html/2608.14003#S3.SS2)\), which defines the metric to determine which neurons should be pruned in the gated MLP for batched inference\. Finally, we detail our three\-phase pruning algorithm \(Section[3\.3](https://arxiv.org/html/2608.14003#S3.SS3)\), which employs periodic pruning using the defined batch\-wise importance scores\.

### 3\.1Preliminaries

Modern transformer architectures employ gated MLP structures in their feedforward blocks\([Grattafiori et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib7);[Yang et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib25)\)\. Given a sequence of input hidden states𝐗∈ℝT×D\\mathbf\{X\}\\in\\mathbb\{R\}^\{T\\times D\}whereTTis the number of tokens, each hidden state𝐱∈ℝD\\mathbf\{x\}\\in\\mathbb\{R\}^\{D\}is processed by the gated MLP:

𝐳=σ⁡\(𝐖g​𝐱\)⊙\(𝐖1​𝐱\)\\displaystyle\\mathbf\{z\}=\\sigma\(\\mathbf\{W\}\_\{g\}\\mathbf\{x\}\)\\odot\(\\mathbf\{W\}\_\{1\}\\mathbf\{x\}\)\(1\)whereσ\\sigmadenotes the SiLU activation function and⊙\\odotsignifies element\-wise multiplication\. For all weight matrices,𝐖1,𝐖g∈ℝDFF×D\\mathbf\{W\}\_\{1\},\\mathbf\{W\}\_\{g\}\\in\\mathbb\{R\}^\{D\_\{\\text\{FF\}\}\\times D\}and𝐖2∈ℝD×DFF\\mathbf\{W\}\_\{2\}\\in\\mathbb\{R\}^\{D\\times D\_\{\\text\{FF\}\}\}where typicallyDFF≫DD\_\{\\text\{FF\}\}\\gg D\. We refer to𝐳=FF1​\(𝐱\)∈ℝDFF\\mathbf\{z\}=\\text\{FF\}\_\{1\}\(\\mathbf\{x\}\)\\in\\mathbb\{R\}^\{D\_\{\\text\{FF\}\}\}as the FF activations, and the output is computed asFF2​\(𝐳\)=𝐖2​𝐳\\text\{FF\}\_\{2\}\(\\mathbf\{z\}\)=\\mathbf\{W\}\_\{2\}\\mathbf\{z\}\.

### 3\.2Batch\-wise Importance Neuron Scoring

We define an*importance score*𝐬∈ℝDFF\\mathbf\{s\}\\in\\mathbb\{R\}^\{D\_\{\\text\{FF\}\}\}as a measure of how critical each neuron in the FF layer is for the current task\. Neurons with low importance scores are pruned to reduce computational cost while retaining the most task\-relevant neurons\. As illustrated in Figure[2](https://arxiv.org/html/2608.14003#S2.F2)\(a\), following prior work on activation\-based pruning\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5)\), we compute importance scores by aggregating normalized activation magnitudes across tokens\.

For a sequence ofTTtokens, let𝐙=FF1​\(𝐗\)∈ℝT×DFF\\mathbf\{Z\}=\\text\{FF\}\_\{1\}\(\\mathbf\{X\}\)\\in\\mathbb\{R\}^\{T\\times D\_\{\\text\{FF\}\}\}denote the FF activations for the full sequence\. We first compute the relative activations𝐙¯\\overline\{\\mathbf\{Z\}\}by applying row\-wiseℓ2\\ell\_\{2\}normalization:\[𝐙¯\]t=\[𝐙\]t/‖\[𝐙\]t‖2\[\\overline\{\\mathbf\{Z\}\}\]\_\{t\}=\[\\mathbf\{Z\}\]\_\{t\}/\\\|\[\\mathbf\{Z\}\]\_\{t\}\\\|\_\{2\}for each tokentt\. This normalization ensures that we capture the relative importance of each neuron within a token, rather than being dominated by tokens with large overall activation magnitudes\. As described in Section[3\.3](https://arxiv.org/html/2608.14003#S3.SS3), our method operates in three distinct phases, and we compute importance scores at each phase separately\. The importance score at each phasennis then computed by taking the column\-wiseℓ2\\ell\_\{2\}\-norm:

𝐬n=MS​\(𝐙\)=1T​\[‖\[𝐙¯\]⋅,1‖2,…,‖\[𝐙¯\]⋅,DFF‖2\]⊤\\mathbf\{s\}\_\{n\}=\\text\{MS\}\(\\mathbf\{Z\}\)=\\frac\{1\}\{\\sqrt\{T\}\}\\left\[\\\|\[\\overline\{\\mathbf\{Z\}\}\]\_\{\\cdot,1\}\\\|\_\{2\},\\ldots,\\\|\[\\overline\{\\mathbf\{Z\}\}\]\_\{\\cdot,D\_\{\\text\{FF\}\}\}\\\|\_\{2\}\\right\]^\{\\top\}\(2\)
wherenndenotes the phase index, andMS​\(⋅\)\\text\{MS\}\(\\cdot\)denotes the batch\-wise scoring function\. Intuitively, neurons with consistently high relative activations across multiple tokens receive higher importance scores, capturing “persistently important” neurons that contribute meaningfully to the model’s computation\. Unlike prior work\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5)\)that computes importance scores over the entire sequence in a single pass, our method computes importance scores at each phase separately\. Since different phases may have varying numbers of tokens, we normalize byT\\sqrt\{T\}\(the square root of the number of tokens\) to eliminate length bias, enabling fair comparison of importance scores across phases\.

#### Batch Aggregation\.

Because all samples in a batch must share one pruning mask, the per\-sample importance scores have to be reduced to a single vector before selection; the choice of reduction operator is therefore a required design decision rather than an optional addition\. We adopt the element\-wise maximum as our default, as it is the conservative choice under a shared mask: a neuron scored highly by a single sample keeps that score after aggregation instead of being diluted by the remainingB−1B\-1samples, which is intended to reduce the chance that a neuron critical to one sample is dropped because the others do not use it\. Selection is still by top\-kk, so such a neuron survives only if its aggregated score is among the topkk\. Which operator is preferable is task\-dependent: max and mean each lead on different benchmarks and on different models, and their cross\-model averages differ by 1\.2 points \(Section[4\.4](https://arxiv.org/html/2608.14003#S4.SS4)\), so the aggregation operator is not the dominant factor in our method’s performance\. Unless stated otherwise, all experiments in this paper use the maximum\. The components responsible for the gains are the periodic top\-kkselection and the activation memory introduced below\.

For batched inference withBBsamples, we aggregate importance scores across the batch, excluding padding tokens and EOS tokens from the aggregation\. For a single sample \(B=1B\\\!=\\\!1\), we directly use𝐬n\\mathbf\{s\}\_\{n\}\. For multiple samples \(B\>1B\\\!\>\\\!1\), we aggregate using element\-wise maximum:

𝐬¯n=maxb∈\{1,…,B\}⁡𝐬n\(b\)\\displaystyle\\bar\{\\mathbf\{s\}\}\_\{n\}=\\max\_\{b\\in\\\{1,\\ldots,B\\\}\}\\mathbf\{s\}\_\{n\}^\{\(b\)\}\(3\)where𝐬n\(b\)\\mathbf\{s\}\_\{n\}^\{\(b\)\}denotes the importance score for samplebbat phasenn\. We then construct a*pruning mask*𝐌∈\{0,1\}DFF\\mathbf\{M\}\\in\\\{0,1\\\}^\{D\_\{\\text\{FF\}\}\}, a binary vector indicating which neurons to retain\. Specifically, we select the top\-kkneurons with the highest importance scores, wherek=⌊\(1−ρ\)⋅DFF⌋k=\\lfloor\(1\-\\rho\)\\cdot D\_\{\\text\{FF\}\}\\rfloorandρ∈\(0,1\)\\rho\\in\(0,1\)is the target sparsity ratio\. The shared pruning mask is then applied uniformly across all samples in the batch\. Top\-kkselection reads only the relative ordering of the aggregated scores, not their absolute scale, so it is unaffected when aggregation shifts the activation distribution\. A threshold calibrated on a different distribution is not, which is what threshold\-based selection loses under batching; Section[4\.4](https://arxiv.org/html/2608.14003#S4.SS4)isolates the effect\.

### 3\.3Batch\-wise Adaptive Pruning Algorithm

Our batch\-wise adaptive approach operates in three distinct phases during autoregressive generation, as illustrated in Figure[2](https://arxiv.org/html/2608.14003#S2.F2)\(b\)\. The key insight is that we balance computational efficiency with adaptivity by alternating between sparse and dense exploration phases\.

#### Phase 1: Input Phase\.

During the initial prompt processing withTinputT\_\{\\text\{input\}\}input tokens, we compute the FF activations𝐳t\\mathbf\{z\}\_\{t\}for each tokent=1,…,Tinputt=1,\\ldots,T\_\{\\text\{input\}\}\. Using these activations, we compute the initial importance score𝐬0\\mathbf\{s\}\_\{0\}using the batch\-wise scoring function \(Equation[2](https://arxiv.org/html/2608.14003#S3.E2)\)\.

#### Phase 2: Dense Exploration Phase\.

After the prompt, we performTinitT\_\{\\text\{init\}\}steps of dense computation\. This dense exploration phase serves two purposes: \(1\) it allows the model to generate initial tokens using full capacity, which is particularly important for establishing the direction of reasoning, and \(2\) it enables us to collect activation statistics that better reflect the generation context rather than just the input\. At the end of this phase, we compute a new importance score𝐬1\\mathbf\{s\}\_\{1\}from the collected activations and update our*activation memory*𝐦∈ℝDFF\\mathbf\{m\}\\in\\mathbb\{R\}^\{D\_\{\\text\{FF\}\}\}using an element\-wise maximum:𝐦1←max⁡\(𝐬0,𝐬1\)\\mathbf\{m\}\_\{1\}\\leftarrow\\max\(\\mathbf\{s\}\_\{0\},\\mathbf\{s\}\_\{1\}\)\. The activation memory𝐦\\mathbf\{m\}serves as a buffer that accumulates neuron importance information across phases, ensuring that neurons identified as important in earlier phases remain candidates for selection while incorporating new information from subsequent phases\. We then generate the initial pruning mask𝐌1=top\-​k​\(𝐦1,k\)\\mathbf\{M\}\_\{1\}=\\text\{top\-\}k\(\\mathbf\{m\}\_\{1\},k\)and immediately begin sparse computation\.

#### Phase 3: Periodic Adaptive Pruning Phase\.

As shown in Figure[1](https://arxiv.org/html/2608.14003#S0.F1), neurons with high activation magnitudes exhibit periodic patterns during autoregressive generation\. Based on this observation, we periodically update the pruning mask to adapt to these evolving patterns, enabling effective performance even for reasoning tasks that generate long outputs\.

After the initial dense exploration, we alternate between cycles of sparse and dense computation\. Each cyclennconsists of two stages: \(1\)*pruning*, where we performTpT\_\{p\}steps of sparse forward passes using the current pruning mask, and \(2\)*exploration*, where we performTET\_\{E\}steps of dense computation while collecting activations to update the importance scores\. At the end of each exploration stage, we update the activation memory using the maximum of the current score and the previous memory:𝐦n←max⁡\(𝐦n−1,𝐬n\)\\mathbf\{m\}\_\{n\}\\leftarrow\\max\(\\mathbf\{m\}\_\{n\-1\},\\mathbf\{s\}\_\{n\}\), and generate a new pruning mask𝐌n=top\-​k​\(𝐦n,k\)\\mathbf\{M\}\_\{n\}=\\text\{top\-\}k\(\\mathbf\{m\}\_\{n\},k\)\. This update rule accumulates importance information across multiple cycles, ensuring that persistently important neurons are retained while allowing the mask to adapt to evolving activation patterns\. Specifically, the pruning mask is updated everyTtrans=TE\+TpT\_\{\\text\{trans\}\}=T\_\{E\}\+T\_\{p\}steps, alternating between sparse pruning and dense exploration phases\. We setTtrans=20T\_\{\\text\{trans\}\}=20based on the empirically observed median firing period of important neurons; a detailed analysis is provided in Section[4\.3](https://arxiv.org/html/2608.14003#S4.SS3)\.

During the pruning stage, we leverage the pruning mask to reduce computational costs\. Given a mask𝐌\\mathbf\{M\}, we define the set of retained neuron indices asℐ=\{i:𝐌⁡\[i\]=1\}\\mathcal\{I\}=\\\{i:\\mathbf\{M\}\[i\]=1\\\}, where\|ℐ\|=\(1−ρ\)⋅DFF\|\\mathcal\{I\}\|=\(1\-\\rho\)\\cdot D\_\{\\text\{FF\}\}\. The pruned weight matrices are obtained by selecting the corresponding rows:𝐖^g,𝐖^1∈ℝk×D\\widehat\{\\mathbf\{W\}\}\_\{g\},\\widehat\{\\mathbf\{W\}\}\_\{1\}\\in\\mathbb\{R\}^\{k\\times D\}and𝐖^2∈ℝD×k\\widehat\{\\mathbf\{W\}\}\_\{2\}\\in\\mathbb\{R\}^\{D\\times k\}\. The sparse forward pass then computes:

𝐳^=σ⁡\(𝐖^g​𝐱\)⊙\(𝐖^1​𝐱\),𝐲=𝐖^2​𝐳^\\displaystyle\\widehat\{\\mathbf\{z\}\}=\\sigma\(\\widehat\{\\mathbf\{W\}\}\_\{g\}\\mathbf\{x\}\)\\odot\(\\widehat\{\\mathbf\{W\}\}\_\{1\}\\mathbf\{x\}\),\\quad\\mathbf\{y\}=\\widehat\{\\mathbf\{W\}\}\_\{2\}\\widehat\{\\mathbf\{z\}\}\(4\)where𝐳^∈ℝk\\widehat\{\\mathbf\{z\}\}\\in\\mathbb\{R\}^\{k\}\. This structured pruning approach enables efficient matrix operations on modern GPUs, as the reduced dimensions lead to proportionally smaller computations\.

## 4Experiment

### 4\.1Models and Datasets

We evaluate our proposed batch\-wise adaptive pruning method on two reasoning models: DeepSeek\-R1\-Distill\-Qwen\-7B \(DS\-R1\-Qwen\-7B\) and DeepSeek\-R1\-Distill\-Llama\-8B \(DS\-R1\-Llama\-8B\)\([DeepSeek\-AI 2025](https://arxiv.org/html/2608.14003#bib.bib4)\)\. We additionally evaluate on Qwen3\-1\.7B and Qwen3\-8B\([Yang et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib26)\), with results reported in Appendix[P](https://arxiv.org/html/2608.14003#A16)\.

For evaluation, we use diverse reasoning benchmarks following the prior work evaluation framework\([Yue et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib27)\)\. For mathematical reasoning, we use TinyGSM8K\([Cobbe et al\. 2021](https://arxiv.org/html/2608.14003#bib.bib3);[Polo et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib18)\), a 100\-sample subset of GSM8K \(grade school math word problems\) selected to reduce computational costs while maintaining evaluation reliability\. We also include MATH500\([Hendrycks et al\. 2021](https://arxiv.org/html/2608.14003#bib.bib8)\)for competition\-level mathematics, MINERVA Math\([Lewkowycz et al\. 2022](https://arxiv.org/html/2608.14003#bib.bib13)\)for scientific reasoning, and AMC23\([Hendrycks et al\. 2021](https://arxiv.org/html/2608.14003#bib.bib8)\)from the 2023 American Mathematics Competition\. For general reasoning, we use GPQA\-DIAMOND\([Rein et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib20)\), a graduate\-level science QA benchmark, following Open R1\([Hugging Face 2025](https://arxiv.org/html/2608.14003#bib.bib9)\)evaluation settings\.

Figure 3:Average accuracy across the five reasoning tasks with varying batch sizes at 50% target sparsity\. \(Left\) DeepSeek\-R1\-Distill\-Qwen\-7B, \(Right\) DeepSeek\-R1\-Distill\-Llama\-8B\.
### 4\.2Baselines

Because our proposed method is training\-free, we compare against training\-free pruning methods\. Wanda\([Sun et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib22)\)is an input\-independent method that applies 2:4 structured sparsity after calibrating on C4\. Griffin\([Dong et al\. 2024](https://arxiv.org/html/2608.14003#bib.bib5)\)employs input\-dependent but static pruning, capturing important neurons during the prompt phase and reusing the pruned weights throughout decoding\. TEAL\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14)\)is an adaptive method that uses threshold\-based selection, calibrating on C4 to extract activation thresholds and pruning neurons below the threshold during inference with uniform sparsity across all layers\. For batched evaluation, following\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14)\), we aggregate activations within a batch using mean, excluding padding and EOS tokens, then apply the single\-sample algorithm\. Since Dense and Wanda performances are batch\-size independent, we report their results using batch size 4\.

#### Target sparsity versus actual sparsity\.

Two notions of sparsity appear throughout this paper and induce different speedups, so we define both\.*Target sparsity*is the ratio specified before inference: for our method it sets how many neurons the top\-kkmask removes, for TEAL the C4\-calibrated activation threshold\.*Actual sparsity*is the fraction of parameters effectively pruned over the whole generation; it falls below the target for our method, which alternates dense and sparse steps and prunes only the FFN block, and drifts from it for TEAL whenever the runtime distribution departs from calibration\. Speedups measured under the two settings are therefore not directly comparable\. Section[4\.3](https://arxiv.org/html/2608.14003#S4.SS3)reports throughput at matched*actual*sparsity; throughput at 50%*target*sparsity is given in Appendix[F](https://arxiv.org/html/2608.14003#A6)\. We label which setting is used in every figure and table\.

### 4\.3Results

Table 2:Pruning performance comparison at 50% target sparsity with batch size 4\. Our method significantly outperforms all pruning baselines \(Wanda, Griffin, TEAL\) across multiple reasoning benchmarks on both DeepSeek\-R1\-Distill\-Qwen\-7B and DeepSeek\-R1\-Distill\-Llama\-8B models\. Bold values indicate the highest performance among all pruning methods\.ModelMethodTasksAVGGSM8KMATH500MINERVAAMC23GPQA\-DIAMONDDeepSeek\-R1\-Distill\-Qwen\-7BDense92\.091\.839\.787\.552\.572\.7Wanda59\.024\.47\.412\.515\.723\.8Griffin22\.014\.811\.010\.015\.214\.6TEAL30\.011\.24\.810\.015\.714\.3Ours89\.071\.029\.450\.030\.854\.0DeepSeek\-R1\-Distill\-Llama\-8BDense96\.091\.033\.890\.045\.571\.3Wanda9\.04\.80\.75\.07\.15\.3Griffin16\.011\.84\.82\.516\.710\.4TEAL28\.05\.42\.20\.016\.210\.4Ours75\.038\.812\.125\.021\.734\.5

#### Activation periodicity and re\-firing ratio\.

Our method updates the pruning mask periodically based on the observation that important neurons tend to re\-fire over time\. We quantify this by measuring \(1\) the re\-firing ratio, the proportion of important neurons \(with relative activation𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\) that activate at least twice during generation, and \(2\) their median firing period, using 10 samples per benchmark\.

Table 3:Median firing period and re\-firing ratio of important neurons \(𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\)\. Mean±\\pmstd over 10 samples×\\times5 benchmarks\.ModelMedian PeriodRe\-firing \(%\)DeepSeek\-R1Distill\-Qwen\-7B22\.8±\\pm1\.976\.3±\\pm2\.8DeepSeek\-R1Distill\-Llama\-8B20\.8±\\pm2\.971\.9±\\pm2\.2

As shown in Table[3](https://arxiv.org/html/2608.14003#S4.T3), the re\-firing ratio exceeds 71% across both models, with a median firing period of 20–23 tokens\. We thus setTtrans=20T\_\{\\text\{trans\}\}=20, slightly below the observed median, to refresh the mask before important neurons miss their re\-firing window\. Extended results are in Appendix[L](https://arxiv.org/html/2608.14003#A12)\.

#### Our method outperforms baselines in batched settings\.

Table[2](https://arxiv.org/html/2608.14003#S4.T2)presents the performance comparison at 50% target sparsity with batch size 4\. Our proposed method significantly outperforms all baseline approaches across multiple reasoning benchmarks on both DS\-R1\-Qwen\-7B and DS\-R1\-Llama\-8B\. On DS\-R1\-Qwen\-7B, our method achieves an average accuracy of 54\.0% across the five tasks, compared to TEAL’s 14\.3%, an improvement of 39\.7 points\. Similarly, on DS\-R1\-Llama\-8B, our approach attains 34\.5% average accuracy versus TEAL’s 10\.4%, an improvement of 24\.1 points\. We additionally evaluate on non\-reasoning benchmarks in Appendix[K](https://arxiv.org/html/2608.14003#A11), confirming that our method maintains performance within approximately 1% of the dense baseline at 50% sparsity on non\-reasoning tasks\. Static pruning methods such as Wanda and Griffin exhibit poor performance on reasoning tasks, as they cannot adapt to the evolving activation patterns during long chain\-of\-thought generation\. Griffin achieves only 14\.6% and 10\.4% average accuracy on DS\-R1\-Qwen\-7B and DS\-R1\-Llama\-8B respectively, while Wanda obtains 23\.8% and 5\.3%\. Although TEAL employs adaptive threshold\-based pruning, its performance degrades significantly in batched settings due to distribution shifts when aggregating activations across multiple samples\. We further validate our method on Qwen3\-1\.7B and Qwen3\-8B, where our method outperforms TEAL by 41\.8 and 45\.5 points on average, respectively; detailed results are provided in Appendix[P](https://arxiv.org/html/2608.14003#A16)\.

The difference is qualitative as well as numerical: at this operating point TEAL’s generations collapse into degenerate repetition loops on 96–99% of MATH500 samples across all four models, whereas ours do so on 2\.2–7\.4% and otherwise maintain coherent chain\-of\-thought \(Appendix[B](https://arxiv.org/html/2608.14003#A2)\)\.

Figure 4:Accuracy on MATH500 across sparsity ratios with batch size 4 on DeepSeek\-R1\-Distill\-Qwen\-7B\. \(Left\) Accuracy vs\. target sparsity, \(Right\) Accuracy vs\. actual sparsity\. Target sparsity refers to the intended pruning ratio set before inference, while actual sparsity indicates the proportion of parameters effectively pruned during generation\.
#### Our method maintains consistent performance across all batch sizes\.

Figure[3](https://arxiv.org/html/2608.14003#S4.F3)illustrates how average accuracy varies with batch size at 50% target sparsity\. TEAL demonstrates high performance at batch size 1 but experiences substantial degradation as batch size increases, due to the distribution shift when aggregated activations diverge from single\-sample calibration settings\. In contrast, our method maintains robust and consistent performance across all batch sizes, demonstrating its practical advantage for batched deployment\. Detailed results are in Appendix Table[9](https://arxiv.org/html/2608.14003#A5.T9)\.

#### Our method maintains strong performance up to high sparsity levels\.

Figure[4](https://arxiv.org/html/2608.14003#S4.F4)shows performance on MATH500 across different target sparsity levels with batch size 4 on DS\-R1\-Qwen\-7B\. TEAL and other baselines maintain reasonable performance at low sparsity levels, for example TEAL achieves 92\.4% and 90\.8% at 20% and 40% target sparsity, respectively\. However, they suffer from sharp performance degradation beyond 40% target sparsity; TEAL drops to 11\.2% at 50% and 2\.4% at 60%\. In contrast, our method sustains strong performance even at high sparsity, achieving 71\.0% accuracy at 50% and 51\.6% at 60% target sparsity, exhibiting a significantly more gradual and stable accuracy decline as sparsity increases compared to all baselines\. At 20% target sparsity our method is within 1\.8 points of the dense baseline, so the gap narrows as target sparsity is reduced rather than reflecting a fixed accuracy ceiling\.

Figure 5:Generation throughput speedup vs\. actual sparsity at batch size 4\. \(Left\) DeepSeek\-R1\-Distill\-Qwen\-7B, \(Right\) DeepSeek\-R1\-Distill\-Llama\-8B\.
#### Our method achieves practical speedup in batched scenarios\.

We evaluate end\-to\-end decoding speed on an NVIDIA H100 GPU following the GPT\-Fast\([PyTorch 2024](https://arxiv.org/html/2608.14003#bib.bib19)\)benchmarking setup\. Figure[5](https://arxiv.org/html/2608.14003#S4.F5)shows throughput speedup versus actual sparsity at batch size 4\. Except at low sparsity on DS\-R1\-Qwen\-7B, our method achieves higher speedup than TEAL across sparsity levels on both models\. At approximately 50% actual sparsity, our method achieves1\.29×1\.29\\timesspeedup on DS\-R1\-Llama\-8B and1\.40×1\.40\\timeson DS\-R1\-Qwen\-7B\. As batch size increases and the workload shifts from memory\-bound to compute\-bound, reducing memory loads by skipping near\-zero activations \(as in TEAL\) becomes less effective, while structurally reducing parameters via smaller weight matrices \(as in our method\) directly reduces computation, giving our method a practical efficiency advantage in batched deployment\. Furthermore, this advantage grows with both batch size and sparsity level; detailed results across batch sizes are provided in Appendix[G](https://arxiv.org/html/2608.14003#A7)\. The computational overhead of our adaptive mask computation is negligible \(<<0\.002% of dense MLP FLOPs; see Appendix[J](https://arxiv.org/html/2608.14003#A10)\)\. Detailed throughput values at 50% target sparsity and speed\-accuracy trade\-offs are provided in Appendix[F](https://arxiv.org/html/2608.14003#A6)\.

### 4\.4Ablation Study

#### Batch aggregation method\.

Top of Table[4](https://arxiv.org/html/2608.14003#S4.T4)compares batch\-wise aggregation strategies at 50% target sparsity with batch size 4\. The two are within 1\.2 points in cross\-model average and the per\-model winner is split: mean is better on DS\-R1\-Qwen\-7B \(54\.8 versus 54\.0\), max on DS\-R1\-Llama\-8B \(34\.5 versus 31\.4\)\. Per\-task differences are similarly mixed, with max ahead on GSM8K \(\+8\.5\) and AMC23 \(\+2\.5\) and mean ahead on MATH500 \(\+3\.2\) and GPQA \(\+1\.5\) points \(Appendix Table[15](https://arxiv.org/html/2608.14003#A13.T15)\)\. We report max as the default because some reduction is unavoidable under a shared mask and max is the conservative choice; selecting the operator adaptively is left to future work\.

Table 4:Performance comparison of aggregation methods \(mean/max\) and activation memory \(on/off\) at 50% target sparsity with batch size 4\. Values are averaged over 5 benchmarks\. Bold indicates best per model\.SettingDeepSeek\-R1Distill\-Qwen\-7BDeepSeek\-R1Distill\-Llama\-8BMax \(Ours\)54\.034\.5Mean54\.831\.4Memory \(Ours\)54\.034\.5No Memory45\.325\.5
#### Activation memory\.

Bottom of Table[4](https://arxiv.org/html/2608.14003#S4.T4)evaluates the effect of activation memory by comparing the proposed memory\-based approach with a memory\-free variant, where the pruning mask is reconstructed independently at every transition step\. Enabling activation memory improves average accuracy by 9\.0 points for DS\-R1\-Llama\-8B and 8\.7 points for DS\-R1\-Qwen\-7B\. This result indicates that memory stabilizes pruning decisions and improves robustness on reasoning tasks by preserving neurons that re\-activate over time\.

#### Hyperparameter and threshold ablation\.

We conduct hyperparameter ablation onTinitT\_\{\\text\{init\}\},TET\_\{E\}, andTtransT\_\{\\text\{trans\}\}, measuring accuracy and speed under each variation\. Notably, on DS\-R1\-Qwen\-7B with MATH500, our periodic configuration achieves accuracy within 17\.2 points of the most frequent update setting while being significantly faster than the dense baseline, confirming that periodic updates effectively balance accuracy and speed; detailed results are provided in Appendix[N](https://arxiv.org/html/2608.14003#A14)\. We also evaluate threshold\-based pruning calibrated on C4 following TEAL’s approach\. Since the threshold is calibrated at batch size 1, the activation distribution shifts after batch aggregation, resulting in accuracy of at most 3\.2% on every benchmark at 50% target sparsity\. Detailed results are provided in Appendix[O](https://arxiv.org/html/2608.14003#A15)\.

## 5Conclusion

In this work, we presented a training\-free batch\-wise adaptive pruning method for batched inference in LRMs\. We first showed that the training\-free pruning baselines we evaluate all degrade severely on reasoning tasks under batched inference: static methods degrade at any batch size, while adaptive methods work at batch size 1 and collapse once a mask is shared, with TEAL losing 58\.4 to 67\.7 points of average accuracy relative to the dense model at 50% target sparsity\. We traced the latter collapse to threshold\-based selection applied after cross\-sample aggregation\. We then proposed a method built on periodic top\-kkselection, which is unaffected by the shift that aggregation induces in the activation distribution while running selection only once per update period, and an activation memory that retains neurons re\-firing across update phases\.

Our experiments show that this design retains substantially more accuracy than prior methods in the high\-sparsity batched regime, and that its speedup keeps growing with sparsity where activation\-skipping methods saturate\. We view the contribution as opening batch\-wise adaptive pruning as a problem and providing a first working method in it\.

## References

- Ashkboos et al\. \(2024\)Saleh Ashkboos, Maximilian L\. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman\.SliceGPT: Compress large language models by deleting rows and columns\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*, 2024\.URL[https://iclr\.cc/virtual/2024/poster/17531](https://iclr.cc/virtual/2024/poster/17531)\.
- Cai et al\. \(2025\)Zefan Cai, Wen Xiao, Hanshi Sun, Cheng Luo, Yikai Zhang, Ke Wan, Yucheng Li, Yeyang Zhou, Li\-Wen Chang, Jiuxiang Gu, Zhen Dong, Anima Anandkumar, Abedelkadir Asi, and Junjie Hu\.R\-KV: Redundancy\-aware KV cache compression for reasoning models\.In*Advances in Neural Information Processing Systems*, 2025\.URL[https://openreview\.net/forum?id=2jwAjomEDB](https://openreview.net/forum?id=2jwAjomEDB)\.
- Cobbe et al\. \(2021\)Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman\.Training verifiers to solve math word problems\.*arXiv preprint arXiv:2110\.14168*, 2021\.URL[https://arxiv\.org/abs/2110\.14168](https://arxiv.org/abs/2110.14168)\.
- DeepSeek\-AI \(2025\)DeepSeek\-AI\.DeepSeek\-R1: Incentivizing reasoning capability in LLMs via reinforcement learning\.*arXiv preprint arXiv:2501\.12948*, 2025\.URL[https://arxiv\.org/abs/2501\.12948](https://arxiv.org/abs/2501.12948)\.
- Dong et al\. \(2024\)Harry Dong, Beidi Chen, and Yuejie Chi\.Prompt\-prompted adaptive structured pruning for efficient LLM generation\.In*First Conference on Language Modeling*, August 2024\.URL[https://openreview\.net/forum?id=4aqq9xTtih](https://openreview.net/forum?id=4aqq9xTtih)\.
- Frantar & Alistarh \(2023\)Elias Frantar and Dan Alistarh\.SparseGPT: Massive language models can be accurately pruned in one\-shot\.In*International Conference on Machine Learning, ICML 2023, 23\-29 July 2023, Honolulu, Hawaii, USA*, volume 202 of*Proceedings of Machine Learning Research*, pp\. 10323–10337\. PMLR, 2023\.URL[https://proceedings\.mlr\.press/v202/frantar23a\.html](https://proceedings.mlr.press/v202/frantar23a.html)\.
- Grattafiori et al\. \(2024\)Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al\-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al\.The llama 3 herd of models\.*arXiv preprint arXiv:2407\.21783*, 2024\.URL[https://arxiv\.org/abs/2407\.21783](https://arxiv.org/abs/2407.21783)\.
- Hendrycks et al\. \(2021\)Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt\.Measuring mathematical problem solving with the math dataset\.In*Advances in Neural Information Processing Systems*, volume 34, pp\. 9380–9392, 2021\.URL[https://datasets\-benchmarks\-proceedings\.neurips\.cc/paper/2021/hash/be83ab3ecd0db773eb2dc1b0a17836a1\-Abstract\-round2\.html](https://datasets-benchmarks-proceedings.neurips.cc/paper/2021/hash/be83ab3ecd0db773eb2dc1b0a17836a1-Abstract-round2.html)\.
- Hugging Face \(2025\)Hugging Face\.Open R1: A fully open reproduction of DeepSeek\-R1, January 2025\.URL[https://huggingface\.co/blog/open\-r1](https://huggingface.co/blog/open-r1)\.
- Kim et al\. \(2024\)Bo\-Kyeong Kim, Geonmin Kim, Tae\-Ho Kim, Thibault Castells, Shinkook Choi, Junho Shin, and Hyoung\-Kyu Song\.Shortened LLaMA: A simple depth pruning for large language models\.In*ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models \(ME\-FoMo\)*, 2024\.URL[https://iclr\.cc/virtual/2024/21212](https://iclr.cc/virtual/2024/21212)\.
- Kwon et al\. \(2023\)Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E\. Gonzalez, Hao Zhang, and Ion Stoica\.Efficient memory management for large language model serving with pagedattention\.In*Proceedings of the 29th Symposium on Operating Systems Principles, SOSP 2023*\. ACM, 2023\.URL[https://arxiv\.org/abs/2309\.06180](https://arxiv.org/abs/2309.06180)\.
- Lee et al\. \(2024\)Je\-Yong Lee, Donghyun Lee, Genghan Zhang, Mo Tiwari, and Azalia Mirhoseini\.CATS: Contextually\-aware thresholding for sparsity in large language models\.In*Conference on Language Modeling*, 2024\.URL[https://openreview\.net/forum?id=v3w2a7EInO](https://openreview.net/forum?id=v3w2a7EInO)\.
- Lewkowycz et al\. \(2022\)Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman\-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur\-Ari, and Vedant Misra\.Solving quantitative reasoning problems with language models\.In*Advances in Neural Information Processing Systems*, volume 35, pp\. 3843–3857, 2022\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2022/hash/18abbeef8cfe9203fdf9053c9c4fe191\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2022/hash/18abbeef8cfe9203fdf9053c9c4fe191-Abstract-Conference.html)\.
- Liu et al\. \(2025\)James Liu, Pragaash Ponnusamy, Tianle Cai, Han Guo, Yoon Kim, and Ben Athiwaratkun\.Training\-free activation sparsity in large language models\.In*The Thirteenth International Conference on Learning Representations*, 2025\.URL[https://iclr\.cc/virtual/2025/poster/28994](https://iclr.cc/virtual/2025/poster/28994)\.Spotlight\.
- Liu et al\. \(2023\)Zichang Liu, Jue Wang, Tri Dao, Tianyi Zhou, Binhang Yuan, Zhao Song, Anshumali Shrivastava, Ce Zhang, Yuandong Tian, Christopher Re, and Beidi Chen\.Deja vu: Contextual sparsity for efficient LLMs at inference time\.In*International Conference on Machine Learning, ICML 2023*, Proceedings of Machine Learning Research\. PMLR, 2023\.URL[https://icml\.cc/virtual/2023/poster/23704](https://icml.cc/virtual/2023/poster/23704)\.
- Ma et al\. \(2023\)Xinyin Ma, Gongfan Fang, and Xinchao Wang\.LLM\-pruner: On the structural pruning of large language models\.In*Advances in Neural Information Processing Systems 36 \(NeurIPS 2023\)*, 2023\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2023/hash/44956951349095f74492a5471128a7e0\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2023/hash/44956951349095f74492a5471128a7e0-Abstract-Conference.html)\.
- OpenAI \(2024\)OpenAI\.Learning to reason with LLMs, 2024\.URL[https://openai\.com/index/learning\-to\-reason\-with\-llms/](https://openai.com/index/learning-to-reason-with-llms/)\.
- Polo et al\. \(2024\)Felipe Maia Polo, Lucas Weber, Leshem Choshen, Yuekai Sun, Gongjun Xu, and Mikhail Yurochkin\.tinyBenchmarks: evaluating LLMs with fewer examples\.In*Proceedings of the 41st International Conference on Machine Learning*, ICML’24\. JMLR\.org, 2024\.URL[https://icml\.cc/virtual/2024/poster/33007](https://icml.cc/virtual/2024/poster/33007)\.
- PyTorch \(2024\)Team PyTorch\.Accelerating generative AI with PyTorch II: GPT, Fast, 2024\.URL[https://pytorch\.org/blog/accelerating\-generative\-ai\-2/](https://pytorch.org/blog/accelerating-generative-ai-2/)\.PyTorch Blog\.
- Rein et al\. \(2024\)David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R\. Bowman\.GPQA: A graduate\-level google\-proof q&a benchmark\.In*First Conference on Language Modeling*, 2024\.URL[https://openreview\.net/forum?id=Ti67584b98](https://openreview.net/forum?id=Ti67584b98)\.
- Song et al\. \(2025\)Yun Song, Minghui Tan, Dian Yu, Ping Huang, Ruocheng Liang, Minhao Xu, Zhangchen Gong, Pinxue Zhu, Qin He, Tianyu Wang, and Jianwei He\.ProSparse: Introducing and enhancing intrinsic activation sparsity within large language models\.*Proceedings of the 31st International Conference on Computational Linguistics*, 2025\.URL[https://aclanthology\.org/2025\.coling\-main\.180/](https://aclanthology.org/2025.coling-main.180/)\.
- Sun et al\. \(2024\)Mingjie Sun, Zhuang Liu, Anna Bair, and J\. Zico Kolter\.A simple and effective pruning approach for large language models\.In*The Twelfth International Conference on Learning Representations, ICLR 2024*, 2024\.URL[https://iclr\.cc/virtual/2024/poster/18687](https://iclr.cc/virtual/2024/poster/18687)\.
- Team \(2023\)Gemini Team\.Gemini: A family of highly capable multimodal models\.2023\.URL[https://arxiv\.org/abs/2312\.11805](https://arxiv.org/abs/2312.11805)\.
- Xia et al\. \(2024\)Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen\.Sheared llama: Accelerating language model pre\-training via structured pruning\.In*The Twelfth International Conference on Learning Representations, ICLR 2024*, 2024\.URL[https://iclr\.cc/virtual/2024/poster/19623](https://iclr.cc/virtual/2024/poster/19623)\.
- Yang et al\. \(2024\)An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al\.Qwen2 technical report\.*arXiv preprint arXiv:2407\.10671*, 2024\.URL[https://arxiv\.org/abs/2407\.10671](https://arxiv.org/abs/2407.10671)\.
- Yang et al\. \(2025\)An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, et al\.Qwen3 technical report\.*arXiv preprint arXiv:2505\.09388*, 2025\.URL[https://arxiv\.org/abs/2505\.09388](https://arxiv.org/abs/2505.09388)\.
- Yue et al\. \(2025\)Yang Yue, Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Shiji Song, and Gao Huang\.Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model?In*Advances in Neural Information Processing Systems 38*, 2025\.URL[https://neurips\.cc/virtual/2025/loc/san\-diego/poster/119944](https://neurips.cc/virtual/2025/loc/san-diego/poster/119944)\.Oral\.

## Appendix ALimitations

Our proposed method achieves efficient inference for reasoning models and tasks in batched settings by periodically pruning weights based on activation patterns observed during generation\. However, some limitations remain\.

This approach requires direct access to intermediate activations within the model, which limits its applicability to closed\-source or API\-based models where internal states are not exposed\.

In the low\-sparsity regime our method is not the best option\. Below roughly 40% target sparsity TEAL remains ahead of our method in accuracy on MATH500 \(Figure[4](https://arxiv.org/html/2608.14003#S4.F4)\), and on DS\-R1\-Qwen\-7B its activation skipping is also faster there, since our periodic updates and top\-kkselection add overhead that a low sparsity level does not yet justify\. TEAL is also ahead at batch size 1 \(Table[9](https://arxiv.org/html/2608.14003#A5.T9)\), where a per\-token mask update is essentially free for its threshold but not for our top\-kkselection, which we therefore run only once per update period\. Pruning is typically deployed at high sparsity, which is the regime this paper targets and where the ordering reverses: beyond 40% target sparsity TEAL collapses on reasoning tasks while our method retains accuracy\.

A gap to the dense model also still remains: at 50% target sparsity with batch size 4, average accuracy over the five reasoning benchmarks is 54\.0 for our method against 72\.7 for the dense model on DS\-R1\-Qwen\-7B, and 34\.5 against 71\.3 on DS\-R1\-Llama\-8B \(Table[2](https://arxiv.org/html/2608.14003#S4.T2)\)\. Maintaining accuracy under batched inference at high sparsity on reasoning tasks is intrinsically difficult, and we read this gap as reflecting the difficulty of the setting rather than a shortcoming specific to our method; it is also smaller than the gap of any prior method evaluated under the same conditions\. The gap is also concentrated on DS\-R1\-Llama\-8B: on the other three models we evaluate, our method stays within 19 to 23 points of dense, whereas TEAL loses 58 to 68 points on all four \(Table[18](https://arxiv.org/html/2608.14003#A16.T18)\)\. Closing the remaining distance to dense accuracy is an explicit direction for follow\-up work\.

## Appendix BReasoning Trajectory Quality

Average accuracy reports whether a final answer is correct, but not how the generated reasoning fails when it is wrong\. To characterize the failure modes, we measure the rate of degenerate repetition on MATH500 generations at 50% target sparsity with batch size 4\. A generation is counted as degenerate if the ratio of repeated word 4\-grams to total 4\-grams is at least 0\.8, which detects the case where decoding enters a loop and emits the same fragment until the length limit\.

Table 5:Rate of degenerate\-repetition collapse \(% of generations with word 4\-gram repetition ratio≥0\.8\\geq 0\.8; lower is better\) on MATH500 at 50% target sparsity with batch size 4\.ModelOursTEALDeepSeek\-R1\-Distill\-Qwen\-7B2\.296\.8DeepSeek\-R1\-Distill\-Llama\-8B3\.899\.2Qwen3\-1\.7B7\.498\.8Qwen3\-8B4\.696\.4Table[5](https://arxiv.org/html/2608.14003#A2.T5)shows that the two methods fail in qualitatively different ways at the same operating point\. Under TEAL, essentially every generation degenerates \(96\.4–99\.2% across the four models\), whereas under our method the rate stays below 10%\. The typical TEAL failure is a coherent prefix that diverges into a short fragment repeated until the maximum generation length is reached \(for example, the fragment “Wait, no, I\.” continued for tens of thousands of characters\), rather than a plausible chain of thought that arrives at a wrong answer\. This indicates that the accuracy collapse reported in Section[4\.3](https://arxiv.org/html/2608.14003#S4.SS3)understates the difference between the two settings: TEAL’s remaining accuracy at this sparsity does not correspond to degraded but usable reasoning, while our method continues to produce coherent chain\-of\-thought\.

Table[6](https://arxiv.org/html/2608.14003#A2.T6)illustrates this on a single MATH500 problem, comparing the end of each generation at 50% target sparsity with batch size 4 on DS\-R1\-Qwen\-7B\. TEAL reaches the correct value but never emits it as an answer: the generation enters a loop that repeats the same fragment until the length limit, ending after 28,560 characters and being graded incorrect\. Our method closes the same derivation in 13,103 characters\.

Table 6:End of the generation for MATH500 problem 75 \(level 4\), “Two fair, 6\-sided dice are thrown\. What is the probability that the product of the two numbers is a multiple of 5?”, whose answer is 11/36, at 50% target sparsity with batch size 4 on DS\-R1\-Qwen\-7B\.MethodLast characters of the generationTEAL…Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11/36\. Wait, 11
\(cut off at the generation length limit; graded incorrect\)Ours…we subtract this from 1: 1 \- 25/36 = 36/36 \- 25/36 = 11/36\. Thus, the probability that the product of the two numbers is a multiple of 5 is \\boxed\{11/36\}\.
## Appendix CComposition with KV\-Cache Compression

R\-KV\([Cai et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib2)\)addresses a different objective from ours: it reduces inference latency by compressing the KV cache, which is effective when KV\-cache memory is the dominant bottleneck, typically in long\-context or memory\-constrained serving\. In settings where KV\-cache memory is not a bottleneck, R\-KV provides no speedup\. Our method, in contrast, prunes neurons in the model weights themselves, so it accelerates inference regardless of the serving environment\.

Because the two prune along orthogonal axes, they can be applied simultaneously\. We report the composition at batch size 1, so the values for our method differ from the batch size 4 results of Table[2](https://arxiv.org/html/2608.14003#S4.T2)\.

Table 7:Composition of our pruning method with R\-KV KV\-cache compression, at batch size 1 with a KV budget of 2048\. Our method and the composition use 50% target sparsity\. Values are average accuracy over the five reasoning benchmarks\.ModelDenseOursR\-KV \+ OursDeepSeek\-R1\-Distill\-Qwen\-7B72\.755\.047\.3DeepSeek\-R1\-Distill\-Llama\-8B71\.337\.631\.4As shown in Table[7](https://arxiv.org/html/2608.14003#A3.T7), R\-KV \+ Ours achieves accuracy close to that of our method alone while additionally providing R\-KV’s KV\-cache memory savings\. The accuracy drop in the composition arises from R\-KV itself, which trades some accuracy for those savings\. Practitioners can therefore stack the two methods to trade off KV\-cache footprint against inference compute according to deployment constraints\.

## Appendix DComposition with Weight Quantization

Pruning reduces the number of FFN neurons evaluated, whereas quantization reduces the cost of each parameter, so the two act on different axes and can be applied together\. We verify that our method composes with FP8 weight quantization at 50% target sparsity with batch size 4\.

Table 8:Composition of our pruning method with FP8 weight quantization at 50% target sparsity with batch size 4\. Values are average accuracy over the five reasoning benchmarks\.ModelOurs \(BF16\)Ours \(FP8\)DeepSeek\-R1\-Distill\-Qwen\-7B54\.054\.3DeepSeek\-R1\-Distill\-Llama\-8B34\.538\.4As shown in Table[8](https://arxiv.org/html/2608.14003#A4.T8), FP8 weight quantization composes cleanly with our pruning at essentially no accuracy cost on DS\-R1\-Qwen\-7B, and on DS\-R1\-Llama\-8B accuracy even improves by 3\.9 points\. The two techniques are therefore not in competition: our method is an additional efficiency axis available on top of a quantized model, rather than an alternative to quantizing it\.

## Appendix EFull Performance Comparison

Table[9](https://arxiv.org/html/2608.14003#A5.T9)extends the main results \(Table[2](https://arxiv.org/html/2608.14003#S4.T2)\) to all batch sizes\. TEAL achieves strong performance at batch size 1 \(68\.3% on DS\-R1\-Qwen\-7B, 63\.5% on DS\-R1\-Llama\-8B\), but degrades sharply as batch size increases: on DS\-R1\-Qwen\-7B, accuracy drops to 14\.3% at BS=4, 4\.1% at BS=8, and 6\.8% at BS=16; on DS\-R1\-Llama\-8B, it falls to 10\.4% at BS=4, 2\.4% at BS=8, and 1\.3% at BS=16\. This degradation is caused by the distribution shift when aggregating activations across multiple samples, which diverges from TEAL’s single\-sample calibration setting\. In contrast, our method maintains consistent performance across all batch sizes: on DS\-R1\-Qwen\-7B, average accuracy ranges from 52\.4% to 55\.0% across BS=1–16, and on DS\-R1\-Llama\-8B, from 30\.4% to 37\.6%\. Static pruning methods \(Wanda and Griffin\) are batch\-size independent but exhibit poor performance on reasoning tasks overall, as they determine a fixed pruning pattern and cannot adapt to the evolving activation patterns during long chain\-of\-thought generation\. Wanda achieves only 23\.8% and 5\.3%, while Griffin obtains 14\.6% and 10\.4% on DS\-R1\-Qwen\-7B and DS\-R1\-Llama\-8B respectively\.

Table 9:Pruning performance comparison at 50% target sparsity across different batch sizes\. Our method significantly outperforms all pruning baselines \(Wanda, Griffin, TEAL\)\. Dense, Wanda, and Griffin results are batch\-size independent\. Bold values indicate superior performance compared to TEAL at the same batch size\.ModelMethodBatch SizeTasksAVGGSM8KMATH500MINERVAAMC23GPQA\-DIAMONDDeepSeek\-R1\-Distill\-Qwen\-7BDense–92\.091\.839\.787\.552\.572\.7Wanda–59\.024\.47\.412\.515\.723\.8Griffin–22\.014\.811\.010\.015\.214\.6TEAL191\.086\.840\.180\.043\.468\.3430\.011\.24\.810\.015\.714\.389\.03\.23\.30\.05\.04\.1160\.01\.60\.730\.01\.56\.8Ours185\.072\.026\.157\.534\.355\.0489\.071\.029\.450\.030\.854\.0884\.070\.825\.755\.026\.352\.41686\.071\.830\.145\.029\.852\.5DeepSeek\-R1\-Distill\-Llama\-8BDense–96\.091\.033\.890\.045\.571\.3Wanda–9\.04\.80\.75\.07\.15\.3Griffin–16\.011\.84\.82\.516\.710\.4TEAL195\.081\.830\.970\.039\.963\.5428\.05\.42\.20\.016\.210\.482\.03\.82\.62\.51\.02\.4161\.03\.22\.20\.00\.01\.3Ours165\.048\.014\.035\.025\.837\.6475\.038\.812\.125\.021\.734\.5869\.039\.08\.812\.522\.730\.41665\.039\.69\.625\.016\.731\.2

## Appendix FGeneration Throughput at 50% Target Sparsity

All throughput experiments in this section are conducted on NVIDIA H200 GPUs\. Tables[10](https://arxiv.org/html/2608.14003#A6.T10)and[11](https://arxiv.org/html/2608.14003#A6.T11)report the throughput at 50% target sparsity\. Note that the main text reports throughput under actual sparsity on an NVIDIA H100 GPU \(Figure[5](https://arxiv.org/html/2608.14003#S4.F5)\); this section provides the complementary comparison at identical target sparsity on an NVIDIA H200 GPU\.

Griffin achieves the highest speedup across all settings \(e\.g\.,1\.61×1\.61\\timesat BS=1 on DS\-R1\-Qwen\-7B\) because it applies a fixed pruning mask without adaptive overhead; however, as shown in Table[9](https://arxiv.org/html/2608.14003#A5.T9), its accuracy on reasoning tasks is severely degraded\. At BS=1, TEAL achieves higher speedup than our method \(1\.45×1\.45\\timesvs\.1\.32×1\.32\\timeson DS\-R1\-Qwen\-7B\), as its unstructured sparsity via near\-zero activation skipping is effective in the memory\-bound regime\. However, as batch size increases, all methods’ speedup ratios converge: at BS=16, TEAL, Griffin, and our method achieve1\.10×1\.10\\times,1\.27×1\.27\\times, and1\.10×1\.10\\timesrespectively on DS\-R1\-Qwen\-7B\.

Table 10:Generation throughput \(tokens/sec\) and speedup comparison on DeepSeek\-R1\-Distill\-Qwen\-7B at 50% target sparsity relative to Dense baseline across different batch sizes on NVIDIA H200 GPU\.MethodBS=1BS=4BS=8BS=16Dense200\.9 \(1\.00×\\times\)813\.0 \(1\.00×\\times\)1596\.0 \(1\.00×\\times\)3040\.5 \(1\.00×\\times\)TEAL290\.7 \(1\.45×\\times\)971\.1 \(1\.19×\\times\)1769\.1 \(1\.11×\\times\)3335\.9 \(1\.10×\\times\)GRIFFIN323\.5 \(1\.61×\\times\)1084\.5 \(1\.33×\\times\)2111\.0 \(1\.32×\\times\)3854\.3 \(1\.27×\\times\)Ours265\.6 \(1\.32×\\times\)925\.3 \(1\.14×\\times\)1794\.7 \(1\.12×\\times\)3331\.8 \(1\.10×\\times\)On DS\-R1\-Llama\-8B, our method maintains a consistent1\.15×1\.15\\timesspeedup across BS=4, 8, and 16, slightly outperforming TEAL \(1\.10–1\.11×1\.10\\text\{\-\-\}1\.11\\times\) at BS=8 and BS=16\.

Table 11:Generation throughput \(tokens/sec\) and speedup comparison on DeepSeek\-R1\-Distill\-Llama\-8B at 50% target sparsity relative to Dense baseline across different batch sizes on NVIDIA H200 GPU\.MethodBS=1BS=4BS=8BS=16Dense175\.0 \(1\.00×\\times\)755\.2 \(1\.00×\\times\)1471\.7 \(1\.00×\\times\)2713\.0 \(1\.00×\\times\)TEAL263\.8 \(1\.51×\\times\)837\.2 \(1\.11×\\times\)1618\.2 \(1\.10×\\times\)2997\.4 \(1\.10×\\times\)GRIFFIN269\.5 \(1\.54×\\times\)1010\.5 \(1\.34×\\times\)1957\.1 \(1\.33×\\times\)3747\.6 \(1\.38×\\times\)Ours227\.3 \(1\.30×\\times\)868\.1 \(1\.15×\\times\)1685\.9 \(1\.15×\\times\)3124\.9 \(1\.15×\\times\)
## Appendix GGeneration Throughput across Batch Sizes

Figure[6](https://arxiv.org/html/2608.14003#A7.F6)shows the relative throughput speedup versus actual sparsity across batch sizes 1, 4, 8, and 16 on an NVIDIA H100 GPU\. At batch size 1, where inference is memory\-bound, TEAL’s sparse kernel achieves higher speedup than our method across all sparsity levels\. However, as batch size increases, our method increasingly outperforms TEAL\. At batch size 8, our method surpasses TEAL at higher sparsity levels on both models\. At batch size 16, our method achieves higher speedup than TEAL across nearly all sparsity levels\. This trend confirms that structurally reducing parameters via smaller weight matrices becomes more effective than skipping near\-zero activations as the workload shifts from memory\-bound to compute\-bound\.

Figure 6:Relative generation throughput speedup vs\. actual sparsity across batch sizes on NVIDIA H100 GPU\. Each row corresponds to a different batch size\. \(Left\) DeepSeek\-R1\-Distill\-Qwen\-7B, \(Right\) DeepSeek\-R1\-Distill\-Llama\-8B\.
## Appendix HSpeed\-Accuracy Trade\-off

Figures[7](https://arxiv.org/html/2608.14003#A8.F7)and[8](https://arxiv.org/html/2608.14003#A8.F8)visualize the throughput versus accuracy trade\-off across batch sizes\. At BS=1, TEAL occupies a favorable position with high accuracy \(68\.3% on DS\-R1\-Qwen\-7B, 63\.5% on DS\-R1\-Llama\-8B\) and high throughput\. However, as batch size increases, TEAL loses both accuracy and relative speedup, dropping to 6\.8% and 1\.3% average accuracy at BS=16 on DS\-R1\-Qwen\-7B and DS\-R1\-Llama\-8B respectively\. In contrast, our method maintains consistent accuracy across all batch sizes \(55\.0% to 52\.5% on DS\-R1\-Qwen\-7B, 37\.6% to 30\.4% on DS\-R1\-Llama\-8B\) with competitive throughput, demonstrating a more favorable trade\-off in batched deployment scenarios\.

Figure 7:Throughput versus average accuracy trade\-off on DeepSeek\-R1\-Distill\-Qwen\-7B across different batch sizes at 50% target sparsity on NVIDIA H200 GPU\. Each subplot shows the speed\-accuracy relationship for a specific batch size\. Our method maintains consistent accuracy across batch sizes while achieving competitive throughput, whereas TEAL’s accuracy degrades significantly as batch size increases\.Figure 8:Throughput versus average accuracy trade\-off on DeepSeek\-R1\-Distill\-Llama\-8B across different batch sizes at 50% target sparsity on NVIDIA H200 GPU\. Each subplot shows the speed\-accuracy relationship for a specific batch size\. Our method maintains consistent accuracy across batch sizes while achieving competitive throughput, whereas TEAL’s accuracy degrades significantly as batch size increases\.
## Appendix IDataset and Model Details

We summarize the evaluation datasets and models used in this work below\.

### I\.1Dataset Details

We report the split, number of examples, and license for each dataset\.

- •TinyGSM8K: split = test, \#examples = 100, license = MIT\.
- •MATH500: split = test, \#examples = 500, license = MIT\.
- •MINERVA Math: split = test, \#examples = 272, license = MIT\.
- •AMC23: split = test, \#examples = 40, license = unspecified \(MAA copyrighted\)\.
- •GPQA\-DIAMOND: split = test, \#examples = 198, license = CC BY 4\.0\.

### I\.2Model Details

We evaluate on two reasoning models and two additional models, and use a consistent zero\-shot inference protocol\.

- •DeepSeek\-R1\-Distill\-Qwen\-7B: a distilled reasoning model \(7B\)\. License = MIT \(model weights/repository\)\. Base lineage = Qwen\-2\.5 series \(Apache 2\.0\)\. Evaluation uses the official DeepSeek\-R1 chat template, greedy decoding with temperature00\(zero\-shot\), accuracy as the metric, and maximum generation length of 16,000 tokens\.
- •DeepSeek\-R1\-Distill\-Llama\-8B: a distilled reasoning model \(8B\)\. License = MIT \(model weights/repository\)\. Base lineage = Llama\-3\.1\-8B\-Base \(Llama 3\.1 license\)\. We use the same evaluation protocol: official DeepSeek\-R1 chat template, greedy decoding with temperature00\(zero\-shot\), accuracy as the metric, and maximum generation length of 16,000 tokens\.
- •Qwen3\-1\.7B: a reasoning model \(1\.7B\) from the Qwen3 series\([Yang et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib26)\)\. License = Apache 2\.0\. Evaluation uses the Qwen3 chat template withenable\_thinking=True, greedy decoding with temperature00\(zero\-shot\), accuracy as the metric, and maximum generation length of 16,000 tokens\.
- •Qwen3\-8B: a reasoning model \(8B\) from the Qwen3 series\([Yang et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib26)\)\. License = Apache 2\.0\. We use the same evaluation protocol as Qwen3\-1\.7B: Qwen3 chat template withenable\_thinking=True, greedy decoding with temperature00\(zero\-shot\), accuracy as the metric, and maximum generation length of 16,000 tokens\.

## Appendix JComputational Overhead

Table[12](https://arxiv.org/html/2608.14003#A10.T12)reports the per\-token FLOPs for our adaptive mask computation\. All measurements are conducted in Float16\. The additional FLOPs introduced by adaptive mask computation account for less than 0\.002% of the dense MLP computation, while our method reduces approximately 45% of the MLP computation, which is close to the target sparsity\.

Table 12:Per\-token FLOPs analysis\. Overhead refers to adaptive mask computation\.ModelDense MLPOurs MLPOverheadReductionDeepSeek\-R1\-Distill\-Qwen\-7B11\.41B6\.27B212\.18K45\.0%DeepSeek\-R1\-Distill\-Llama\-8B11\.27B6\.20B183\.51K45\.0%
## Appendix KNon\-Reasoning Task Performance

Table[13](https://arxiv.org/html/2608.14003#A11.T13)reports performance on non\-reasoning benchmarks at 50% target sparsity\. Our method preserves general task performance within approximately 1% of the dense baseline across all models: the average accuracy gap is 0\.5% on DS\-R1\-Qwen\-7B \(63\.6% vs\. 64\.1%\), 0\.7% on DS\-R1\-Llama\-8B \(71\.9% vs\. 72\.6%\), 1\.2% on Qwen3\-1\.7B \(65\.2% vs\. 66\.4%\), and 1\.0% on Qwen3\-8B \(76\.0% vs\. 77\.0%\)\. Our method also outperforms TEAL on average across all four models, with both methods showing negligible degradation compared to the dense baseline on these shorter\-output tasks\.

Table 13:Non\-reasoning benchmark performance at 50% target sparsity\. Bold indicates best among pruning methods\.ModelMethodHellaSwagPIQACOPAARC\-EARC\-CBoolQAvgDeepSeek\-R1\-Distill\-Qwen\-7BDense59\.770\.270\.067\.140\.377\.664\.1TEAL60\.069\.671\.065\.338\.774\.963\.3Ours59\.670\.271\.065\.239\.676\.163\.6DeepSeek\-R1\-Distill\-Llama\-8BDense74\.877\.090\.069\.940\.783\.572\.6TEAL74\.777\.187\.069\.339\.982\.171\.7Ours74\.776\.788\.068\.840\.982\.371\.9Qwen3\-1\.7BDense60\.572\.475\.072\.940\.477\.466\.4TEAL60\.472\.275\.071\.437\.973\.465\.0Ours60\.372\.875\.070\.538\.473\.965\.2Qwen3\-8BDense74\.976\.685\.083\.355\.586\.677\.0TEAL74\.776\.484\.082\.654\.780\.275\.4Ours74\.976\.885\.081\.052\.985\.576\.0

## Appendix LExtended Periodicity Analysis

Table[14](https://arxiv.org/html/2608.14003#A12.T14)extends the periodicity analysis \(Table[3](https://arxiv.org/html/2608.14003#S4.T3)in the main text\) to all evaluated models\. Based on the observed median activation periods, we setTtrans=20T\_\{\\text\{trans\}\}=20for DS\-R1\-Qwen\-7B, DS\-R1\-Llama\-8B, and Qwen3\-8B, andTtrans=10T\_\{\\text\{trans\}\}=10for Qwen3\-1\.7B \(withTinit=64T\_\{\\text\{init\}\}=64andTE=2T\_\{E\}=2\)\.

Table 14:Periodicity analysis of important neuron activations across all evaluated models \(mean±\\pmstd across 10 samples×\\times5 benchmarks\)\.ModelMedian PeriodRe\-firing \(%\)DeepSeek\-R1\-Distill\-Qwen\-7B22\.8±\\pm1\.976\.3±\\pm2\.8DeepSeek\-R1\-Distill\-Llama\-8B20\.8±\\pm2\.971\.9±\\pm2\.2Qwen3\-1\.7B11\.8±\\pm0\.880\.7±\\pm3\.1Qwen3\-8B17\.8±\\pm1\.376\.8±\\pm2\.9
## Appendix MExtended Ablation

Table[15](https://arxiv.org/html/2608.14003#A13.T15)provides the full per\-benchmark breakdown for the design choice ablation summarized in Table[4](https://arxiv.org/html/2608.14003#S4.T4)\. The upper section compares batch aggregation methods \(max vs\. mean\), and the lower section evaluates the effect of activation memory \(on vs\. off\)\.

For aggregation, max and mean show task\-dependent strengths: in cross\-model average, max outperforms mean on GSM8K \(82\.0 vs\. 73\.5\) and AMC23 \(37\.5 vs\. 35\.0\), while mean is stronger on MATH500 \(58\.1 vs\. 54\.9\) and GPQA \(27\.8 vs\. 26\.3\)\. The cross\-model averages differ by 1\.2 points \(44\.3 vs\. 43\.1\), which we do not consider sufficient to claim that either operator is superior; the per\-model winner is likewise split \(Section[4\.4](https://arxiv.org/html/2608.14003#S4.SS4)\)\. For activation memory, enabling memory consistently improves average accuracy by 8\.7 points on DS\-R1\-Qwen\-7B \(54\.0 vs\. 45\.3\) and 9\.0 points on DS\-R1\-Llama\-8B \(34\.5 vs\. 25\.5\)\. The gains are particularly large on GSM8K and MATH500\. We note that on GPQA\-DIAMOND, the no\-memory variant slightly outperforms the memory variant on DS\-R1\-Llama\-8B \(29\.3 vs\. 21\.7\), suggesting that accumulated activation memory may occasionally over\-retain neurons from earlier phases on certain tasks\.

Table 15:Per\-benchmark performance comparison of aggregation methods \(mean/max\) and activation memory \(on/off\) at 50% target sparsity with batch size 4\. Bold indicates best per model\.SettingGSM8KMATH500MINERVAAMC23GPQA\-DIAMONDAVGDeepSeek\-R1\-Distill\-Qwen\-7BMax \(Ours\)89\.071\.029\.450\.030\.854\.0Mean83\.074\.029\.457\.530\.354\.8Memory \(Ours\)89\.071\.029\.450\.030\.854\.0No Memory76\.063\.621\.737\.527\.845\.3DeepSeek\-R1\-Distill\-Llama\-8BMax \(Ours\)75\.038\.812\.125\.021\.734\.5Mean64\.042\.213\.212\.525\.331\.4Memory \(Ours\)75\.038\.812\.125\.021\.734\.5No Memory46\.026\.28\.517\.529\.325\.5Cross\-model AverageMax \(Ours\)82\.054\.920\.837\.526\.344\.3Mean73\.558\.121\.335\.027\.843\.1Memory \(Ours\)82\.054\.920\.837\.526\.344\.3No Memory61\.044\.915\.127\.528\.635\.4

## Appendix NHyperparameter Ablation

Table[16](https://arxiv.org/html/2608.14003#A14.T16)presents hyperparameter ablation results on MATH500 with batch size 4\. IncreasingTinitT\_\{\\text\{init\}\}\(initial dense steps\) from 0 to 128 improves accuracy by 2\.8 points with minimal speed impact, as it captures post\-prompt activation shifts\. IncreasingTET\_\{E\}\(exploration steps\) from 1 to 4 yields a 9\.8 point accuracy gain but reduces throughput from 941\.0 to 896\.8 tokens/sec\. Conversely, extendingTtransT\_\{\\text\{trans\}\}\(update period\) from 10 to 30 degrades accuracy by 7\.8 points while increasing throughput from 806\.3 to 958\.7 tokens/sec\. In summary,TinitT\_\{\\text\{init\}\}primarily affects accuracy without speed penalty, whileTET\_\{E\}andTtransT\_\{\\text\{trans\}\}present accuracy\-speed trade\-offs\. Hyperparameter values can be selected based on deployment requirements\.

We additionally evaluate the most frequent update setting \(Tinit=0,TE=1,Ttrans=2T\_\{\\text\{init\}\}\\\!=\\\!0,T\_\{E\}\\\!=\\\!1,T\_\{\\text\{trans\}\}\\\!=\\\!2\), which alternates one exploration step with one pruning step\. It achieves 88\.2 accuracy on DS\-R1\-Qwen\-7B and 77\.6 on DS\-R1\-Llama\-8B for MATH500\. This configuration, however, recomputes the top\-kkmask every other step and therefore pays the selection cost far more often than a longer update period does; we do not report a throughput figure for it, and we do not adopt it, since the speedup that motivates pruning is what such frequent updates forfeit\.

Table 16:Hyperparameter ablation study on DeepSeek\-R1\-Distill\-Qwen\-7B using the MATH500 dataset with batch size 4 on NVIDIA H200 GPU, examining the effects ofTinitT\_\{\\text\{init\}\}\(initial dense steps\),TET\_\{E\}\(exploration steps\), andTtransT\_\{\\text\{trans\}\}\(update period\) on accuracy and inference speed\.TinitT\_\{\\text\{init\}\}TET\_\{E\}TtransT\_\{\\text\{trans\}\}AccuracySpeed \(token/sec\)022068\.6925\.33222070\.8925\.36422071\.0925\.312822071\.4925\.36412067\.4941\.06422071\.0925\.36442077\.2896\.86421077\.4806\.36422071\.0925\.36423069\.6958\.701288\.2\-
## Appendix OThreshold\-Based Pruning

Table[17](https://arxiv.org/html/2608.14003#A15.T17)evaluates threshold\-based pruning, where we calibrate a fixed activation threshold using 20,248 tokens from the C4 dataset, following the same protocol as TEAL\([Liu et al\. 2025](https://arxiv.org/html/2608.14003#bib.bib14)\)\. At 50% target sparsity, this approach results in severe over\-pruning with near\-zero accuracy across all benchmarks on both models, confirming that a static threshold is inadequate for our adaptive pruning framework\.

Table 17:Threshold\-based pruning at 50% target sparsity with batch size 4\. The activation threshold is calibrated on C4\.ModelMethodGSM8KMATH500MINERVAAMC23GPQA\-DIAMONDAVGDeepSeek\-R1\-Distill\-Qwen\-7BDense92\.091\.839\.787\.552\.572\.7Ours \(top\-kk\)89\.071\.029\.450\.030\.854\.0Ours \(threshold\)3\.03\.22\.90\.01\.52\.1DeepSeek\-R1\-Distill\-Llama\-8BDense96\.091\.033\.890\.045\.571\.3Ours \(top\-kk\)75\.038\.812\.125\.021\.734\.5Ours \(threshold\)3\.02\.80\.72\.50\.01\.8

## Appendix PExtended Pruning Performance

Table[18](https://arxiv.org/html/2608.14003#A16.T18)reports pruning performance on additional models at 50% target sparsity with batch size 4\. Under the hyperparameter settings guided by the periodicity analysis \(Appendix[L](https://arxiv.org/html/2608.14003#A12)\), our method achieves substantially better performance than TEAL across multiple reasoning tasks\. On Qwen3\-1\.7B, our method achieves 44\.0% average accuracy compared to TEAL’s 2\.2%, an improvement of 41\.8 points\. On Qwen3\-8B, the gap is even larger: our method attains 52\.7% versus TEAL’s 7\.2%, a 45\.5 point improvement\. Notably, TEAL’s performance collapses nearly completely on both Qwen3 models in batched settings \(e\.g\., 0\.0% on AMC23 and GPQA for Qwen3\-1\.7B\), while our method retains meaningful accuracy across all benchmarks\. For DS\-R1\-Qwen\-7B and DS\-R1\-Llama\-8B, batch size 4 results are also included in the full comparison \(Table[9](https://arxiv.org/html/2608.14003#A5.T9)\)\.

Table 18:Pruning performance comparison at 50% target sparsity with batch size 4\. Bold indicates best among pruning methods\.ModelMethodGSM8KMATH500MINERVAAMC23GPQA\-DIAMONDAVGDeepSeek\-R1\-Distill\-Qwen\-7BDense92\.091\.839\.787\.552\.572\.7TEAL30\.011\.24\.810\.015\.714\.3Ours89\.071\.029\.450\.030\.854\.0DeepSeek\-R1\-Distill\-Llama\-8BDense96\.091\.033\.890\.045\.571\.3TEAL28\.05\.42\.20\.016\.210\.4Ours75\.038\.812\.125\.021\.734\.5Qwen3\-1\.7BDense95\.085\.632\.075\.035\.464\.6TEAL7\.02\.81\.10\.00\.02\.2Ours82\.061\.018\.032\.526\.344\.0Qwen3\-8BDense95\.091\.441\.592\.554\.074\.9TEAL24\.04\.44\.02\.51\.07\.2Ours93\.061\.625\.440\.043\.452\.7

## Appendix QExtensive Activation Visualization

Figures[9](https://arxiv.org/html/2608.14003#A17.F9)–[12](https://arxiv.org/html/2608.14003#A17.F12)visualize the feedforward activations𝐙\\mathbf\{Z\}across all layers for representative samples from MATH500 and GPQA\-DIAMOND benchmarks \(neurons with𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05are shown\)\. These visualizations further demonstrate the periodic re\-firing behavior of important neurons during autoregressive generation, supporting the design of periodic mask updates in our method\.

![Refer to caption](https://arxiv.org/html/2608.14003v1/figure/activation_viz/plots/DeepSeek-R1-Distill-Qwen-7B/math500/327/masked_activation_t0.05.png)Figure 9:Visualization of feedforward activations𝐙\\mathbf\{Z\}across all layers \(𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\) of DeepSeek\-R1\-Distill\-Qwen\-7B on MATH500\. The x\-axis represents neurons and the y\-axis represents token indices from top to bottom\. The blue horizontal line indicates the last position of the prompt\.![Refer to caption](https://arxiv.org/html/2608.14003v1/figure/activation_viz/plots/DeepSeek-R1-Distill-Qwen-7B/gpqa_diamond/35/masked_activation_t0.05.png)Figure 10:Visualization of feedforward activations𝐙\\mathbf\{Z\}across all layers \(𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\) of DeepSeek\-R1\-Distill\-Qwen\-7B on GPQA\-DIAMOND\. The x\-axis represents neurons and the y\-axis represents token indices from top to bottom\. The blue horizontal line indicates the last position of the prompt\.![Refer to caption](https://arxiv.org/html/2608.14003v1/figure/activation_viz/plots/DeepSeek-R1-Distill-Llama-8B/math500/327/masked_activation_t0.05.png)Figure 11:Visualization of feedforward activations𝐙\\mathbf\{Z\}across all layers \(𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\) of DeepSeek\-R1\-Distill\-Llama\-8B on MATH500\. The x\-axis represents neurons and the y\-axis represents token indices from top to bottom\. The blue horizontal line indicates the last position of the prompt\.![Refer to caption](https://arxiv.org/html/2608.14003v1/figure/activation_viz/plots/DeepSeek-R1-Distill-Llama-8B/gpqa_diamond/35/masked_activation_t0.05.png)Figure 12:Visualization of feedforward activations𝐙\\mathbf\{Z\}across all layers \(𝐙¯\>0\.05\\bar\{\\mathbf\{Z\}\}\>0\.05\) of DeepSeek\-R1\-Distill\-Llama\-8B on GPQA\-DIAMOND\. The x\-axis represents neurons and the y\-axis represents token indices from top to bottom\. The blue horizontal line indicates the last position of the prompt\.
## Appendix RUse of Large Language Models

We employed large language models \(ChatGPT; “GPT\-5” and Anthropic Claude\) for English\-language polishing, light copy\-editing, and assisting with experimental code implementation\. The models were not used to generate research ideas or experimental design\. All technical content, claims, and experimental code were authored and verified by the authors to ensure correctness and reproducibility\. No non\-public data, confidential information, or personally identifiable information was provided to the models\.

Similar Articles