Why FFN Neurons Take the Sparsity Cut

The same paper states that pruning, quantization, and knowledge distillation are three conventional methodologies to compress AI models.

In https://arxiv.org/pdf/2412.12178v2 (arXiv:2412.12178v2; version line “arXiv:2412.12178v2 [cs.LG] 31 Jan 2025”), Nobel Dhar, Bobin Deng, Md Romyull Islam, Kazi Fahim Ahmad Nasif, Liang Zhao, and Kun Suo enforce activation sparsity on feed-forward network (FFN) neurons rather than attention for two reasons stated in Section II-C. FFN layers “store most of the LLM’s parameters,” so enforcing sparsity there “can substantially reduce the number of active neurons, leading to less computing and memory usage.” Section II-B calls those layers “essentially the storage and computing bottleneck.” Attention is excluded by an accuracy argument, not by a matched ablation: attention layers “are typically susceptible to being modified because they aim to capture the dependencies of all elements in a sequence. Introducing sparsity in attention layers makes it more possible to degrade model accuracy,” with the citation to Pires, Lopes, Assogba, and Setiawan, “One wide feedforward is all you need” (2023). This PDF does not report an experiment that applies the same threshold to attention.

That choice is limited by the premise they call critical: “the critical premise of enforcing activation sparsity is that the LLM accuracy should not be obviously reduced.” The reported test is inference-time zeroing on pretrained checkpoints. Section II does not describe a fine-tuning step before the perplexity sweep. Values in the gate, up, and down projections are set to zero when their magnitude is below a per-layer percentile, and accuracy is Wikitext perplexity. At 30% sparsity, the three models in Figure 8, LLama-3-8B, Phi-3-mini-128k-instruct, and Mistral-7B, almost keep the same perplexity as at 0%, which Section IV calls “only negligible accuracy loss.” At 50%, perplexity generally rises. LLama-3-8B rises steepest, and “the maximum PPL from LLama-3-8B is still less than 11,” which that paragraph says “is considered acceptable in many application scenarios.” That judgment is the authors’ reading of one metric on those plot labels. It does not measure attention sparsity, downstream tasks, or whether low-magnitude neurons can be ignored outside that perplexity.

Key Claims

  • Observed, not interventional, in https://arxiv.org/pdf/2412.12178v2: based on WikiText, Dhar et al. report no natural sparsity for Mistral-7B, LLama-3-8B, and Phi-3-3.8B. OPT-6.7B (ReLU) is highly sparse in every FFN layer from Layer 0 through Layer 31; Layer 30, the minimum, has 92.83% natural sparsity. The introduction says ReLU-based natural activation sparsity can reach up to around 95%. That 95% sentence is not the Layer 30 measurement.
  • Author argument, not a measured comparison: attention is set aside because modifying it is judged more likely to degrade accuracy. The citation is Pires et al. (2023), as used by Dhar et al. This PDF does not reproduce that paper’s numbers.
  • Causal intervention, narrow metric: zeroing small-magnitude FFN activations, without a described retraining step, left Wikitext perplexity almost unchanged at 30% sparsity for the three models in Figure 8. At 50%, perplexity generally rises. Section IV calls 30% “negligible” and calls the LLama-3-8B perplexity, still less than 11, acceptable in many application scenarios. The abstract and conclusion use “negligible” for a 50% claim. That stronger wording is author interpretation, not a second printed perplexity.
  • Not shown in that PDF: a profiled memory or latency saving, a held-out split for the threshold, or any security property of the zeroed neurons. The Microsoft Research blog report on dormant-neuron reprogramming is a different intervention and is not evidence about this compression result.

Why the cut is on FFN neurons, not attention

The same paper states that pruning, quantization, and knowledge distillation are three conventional methodologies to compress AI models (https://arxiv.org/pdf/2412.12178v2). In a decoder-only transformer they diagram as Figure 1, “Architecture of state-of-the-art decoder-only LLMs,” each block has self-attention and an FFN. The FFN components they name are gate projection, up projection, down projection, and the activation; the order can differ by model. Activation sparsity, in their usage, means a fraction of FFN neuron outputs are zero, so those neurons pass nothing onward and their weights need not be fetched or multiplied.

The locus follows from where the weights sit. Section II-C says that because “FFN layers store most of the LLM’s parameters,” enforcing sparsity there “can substantially reduce the number of active neurons, leading to less computing and memory usage.” Section II-B calls FFN layers “essentially the storage and computing bottleneck” after stating that they contribute a large share of parameters on average, citing Liu et al. (2022) on FFN layer tuning. The same pages print that share as “around 23” in the abstract and “about 23” in Section II-B. Those characters are not a usable fraction, so this account does not treat “23” as a measured parameter share and does not replace it with a fraction from another paper. No model width is re-derived here.

Natural sparsity versus an enforced cut. Dhar et al. define natural activation sparsity as sparsity that “directly comes from the pre-trained LLM instead of from enforcing sparsity.” Enforced sparsity is an added rule: values below a magnitude threshold are set to zero. They enforce the cut because the non-ReLU models in the study do not supply usable natural zeros. The cut is not weight pruning, not attention-head dropping, and not a learned mask.

The attention exclusion is a separate accuracy argument, not a parameter-count argument. Section II-C says attention layers “are typically susceptible to being modified because they aim to capture the dependencies of all elements in a sequence. Introducing sparsity in attention layers makes it more possible to degrade model accuracy.” The sentence is hedged (“typically,” “more possible”) and is pinned to citation [13], Pires, Lopes, Assogba, and Setiawan, “One wide feedforward is all you need” (2023). Dhar et al. then say they focus on FFN layers “to alleviate the storage and computing bottleneck.”

That is author interpretation plus an external citation. The experiments that follow collect and threshold FFN activations only. There is no matched condition that zeros query, key, value, or output projections at the same percentile and reports the perplexity delta. A reader cannot treat the FFN locus as an empirical finding that attention sparsity hurts more. It is a design choice constrained by an accuracy premise they did not test on attention.

The accuracy premise that limits the choice

The premise is stated in https://arxiv.org/pdf/2412.12178v2 before the attention sentence: “the critical premise of enforcing activation sparsity is that the LLM accuracy should not be obviously reduced.” It does two jobs. It is the condition under which any enforced cut, including the FFN cut, is allowed. It is also why they refuse the attention locus: they write that attention sparsity makes accuracy degradation more possible, so they do not spend the cut there.

The mechanistic assumption underneath the premise is magnitude-as-importance. After collecting activations they flatten each layer, take absolute values, and treat smaller magnitudes as less important, “instead of signs.” They write that enforcing sparsity on the smaller-magnitude neurons “should have minimum difference compared to original output.” That “should” is a hypothesis. The Wikitext perplexity curves are the test they report, and only for FFN thresholding.

What “not obviously reduced” does not specify. The paper never pre-registers a perplexity delta, a downstream-task floor, or a statistical test. “Negligible” and “acceptable” are applied after looking at one benchmark. The reported sweep runs from 0% to 50%, and Section IV defends the 50% point as acceptable perplexity. The premise does not, by itself, identify 50% as a safe operating point for other models, tasks, or layers.

The same premise also explains why they enforce zeros rather than swap in ReLU. OPT-6.7B already emits mostly zeros because ReLU clamps negative pre-activations. The SwiGLU models in the study do not. Replacing the activation, the ReLUfication line of work they discuss in Section VI, is a different intervention, one they explicitly decline. Their rule keeps the original nonlinearity and only omits low-magnitude values. Whether that omission “obviously” reduces accuracy is then an empirical question about perplexity, not a property of the activation function.

Checkpoints, layers, and the zeroing rule

Table I of https://arxiv.org/pdf/2412.12178v2 lists pretrained Hugging Face models chosen for activation-function diversity. The PDF does not print repository revision hashes, so the exact checkpoints are not recoverable from the text alone. Figure labels also drift: Table I says “Phi 3-mini-128k,” while the perplexity plot says “Phi-3-mini-128k-instruct.” Those strings are not evidence that the runs used the same revision.

Models named in Table I of https://arxiv.org/pdf/2412.12178v2. Parameter counts are the paper’s labels, not remeasured widths. Layer counts below are from later prose, not from Table I.
Table I name Version label Activation Parameters (as labeled) Role in the sparsity argument
Llama 3 not further specified in the table SwiGLU 8B No natural sparsity reported for LLama-3-8B. Included in the enforced-sparsity perplexity plot as LLama-3-8B. The text says LLaMA-3-8B has 32 layers.
Mistral 0.1 SwiGLU 7B No natural sparsity reported. Perplexity plot uses Mistral-7B. Gate-projection CDF is described for all 32 layers.
Phi 2 NewGELU 2.7B Natural FFN sparsity only: maximum, Layer 3, is still less than 6%; the majority of layers are less than 1%. Not in the perplexity tradeoff plot.
Phi 3-mini-128k SwiGLU 3.8B No natural sparsity reported under the label Phi-3-3.8B. CDF uses Phi-3-3.8B, 32 layers, Gate-Up projection. Perplexity plot label is Phi-3-mini-128k-instruct.
OPT 1 ReLU 6.7B Natural sparsity only, Layers 0–31. Not used to justify the 50% enforced cut.

Logging ran on a local Lambda server with four NVIDIA GeForce RTX 2080 Ti GPUs and a custom PyTorch hook script. That hardware is a condition of measurement, not a latency result. The benchmark named for inputs is Wikitext-2, chosen because it is widely used, not because it represents edge-agent tasks. Later sections also write “WikiText” and “the Wikitext benchmark.”

Hooks store per-layer activations over the token sequence in HDF5. For sparsity level α, the threshold in layer l is the lowest α-th percentile of absolute activations after flattening and sorting. Neurons in the gate, up, and down projections whose values fall below that threshold in magnitude are deactivated. The paper does not say that the texts used to set thresholds were disjoint from the texts used to score perplexity. Overlap is an open reproducibility issue, not a documented control.

Ai,l = fl(xi)

Tl,α = Pα(Asortedl)

Athresholdedi,l = 0 if |Ai,l| < Tl,α; otherwise Ai,l

Symbols, as defined in Section II-D of https://arxiv.org/pdf/2412.12178v2: xi is input token i in a sequence of N tokens; fl is written as the activation function of layer l; Ai,l is the hooked activation; Asortedl is the ascending sort of absolute flattened activations in layer l; Pα is the percentile function at sparsity α; Tl,α is that percentile, described as the lowest α-th percentile. The inequality is strict. Values equal to the threshold are kept. Signs are discarded before the percentile is taken, because importance is tied to magnitude. Equation (1) is written at layer granularity, while the implementation paragraph applies the zeroing to gate, up, and down projection values. A reproduction that thresholds only the nonlinearity output would not match Section II-D3.

α in the perplexity sweep is a percentage of activations forced to zero, from 0% to 50%, not one global absolute cutoff. Cumulative-distribution remarks elsewhere are separate author readings. For Phi-3-3.8B Gate-Up, they write that a cutoff at 0.6 could result in around 50% activation reduction. For LLaMA-3-8B gate projection, a threshold at 0.5 would discard 50% of FFN neurons. For Mistral-7B gate projection, a cutoff at 1.1 would potentially omit 60% of FFN neurons. Those sentences are not identified as the thresholds behind Figure 8. Figure 8’s x-axis is the percentage of activations enforced to zero, which is the percentile procedure, and the absolute cutoffs already differ by model, layer, and which projection was plotted.

Evaluation conditions

Accuracy in https://arxiv.org/pdf/2412.12178v2 means Wikitext perplexity. Lower is better. The comparison point is the same model at 0% enforced sparsity. The sweep is reported for three models only: LLama-3-8B, Phi-3-mini-128k-instruct, and Mistral-7B. OPT-6.7B and Phi-2 are not in that plot, so their natural-sparsity behavior cannot be read as evidence that a 30% or 50% enforced cut preserves perplexity.

No fine-tuning step is described for that sweep. The procedure in Section II-D logs activations and enforces sparsity during inference on the pretrained models. Separately, the authors say the pattern-prediction approach they sketch does not require retraining or fine-tuning. The perplexity result therefore does not speak to sparsity learned during training. No second benchmark, no generation-quality metric, and no safety evaluation is reported for the thresholded models. Perplexity can stay in a range the authors accept while token-level behavior that matters for an agent changes. The paper does not test that distinction.

What the perplexity curves show

Every percentage in this section is stated by Dhar et al. in https://arxiv.org/pdf/2412.12178v2. None of these figures is taken from Madhyastha et al. Weight histograms (Figure 2, four models: Mistral-7B, LLama-3-8B, OPT-6.7B, and Phi-2) are the negative result that pushes them off weight sparsity. Many weights have small magnitude; a very small number are absolute zeros. They describe this as holding for all four models. Compression via sparsity, on their account, has to come from activations.

Natural FFN activation sparsity then splits by activation function. On WikiText, OPT-6.7B (ReLU) is highly sparse in every FFN layer from Layer 0 through Layer 31, with a slight drop in deeper layers; Layer 30, the minimum, has 92.83% natural sparsity (https://arxiv.org/pdf/2412.12178v2). The introduction says ReLU-based natural activation sparsity can reach up to around 95%. Phi-2 (NewGELU) is not in that regime: the maximum, Layer 3, is still less than 6%, and the majority of layers are less than 1%. Dhar et al. write that they do not observe any natural sparsity in Mistral-7B, LLama-3-8B, and Phi-3-3.8B, evaluated based on WikiText. An insight sentence later says natural activation sparsity is also observed in “NewGELU-based LLMs (e.g., OPT-6.7B)” and that the level is too low for effective compression. That example contradicts Table I and the observation paragraphs, which assign ReLU to OPT-6.7B and NewGELU to Phi-2. The measurements, not that sentence, are the evidence.

Magnitude distributions for the three SwiGLU models are skewed toward small values, more so in the first layers, but they do not land on zero. The authors read the CDFs as permission to zero a large lower tail. Those readings are descriptions of activation histograms. They do not, by themselves, show that the tail is causally unimportant. The causal comparison is the perplexity sweep.

Figure 8, “Tradeoffs between Activation Sparsity and Perplexity (PPL) Scores,” compares the same three models at enforced sparsity from 0% to 50% on the Wikitext benchmark (https://arxiv.org/pdf/2412.12178v2). Axis ticks on that figure are not results. The text does not print perplexity at each step. What it states is below.

Figure 8 observations as stated in Section IV of https://arxiv.org/pdf/2412.12178v2. The only printed endpoint bound is that LLama-3-8B perplexity at 50% sparsity is still less than 11. Other endpoint perplexities are not printed.
Figure 8 label At 30% enforced sparsity At 50% enforced sparsity Accuracy language in the paper
LLama-3-8B Included in “all models almost keep the same PPL with 0% sparsity.” “the steepest increase in PPL”; “the maximum PPL from LLama-3-8B is still less than 11.” That less-than-11 perplexity “is considered acceptable in many application scenarios.”
Phi-3-mini-128k-instruct Included in the same “all models” sentence. No model-specific perplexity is printed. No endpoint perplexity is printed. Section IV says perplexity “generally rises for all models.” Included in the 30% sentence “only negligible accuracy loss” for all three models. No separate 50% perplexity is printed.
Mistral-7B Included in the same “all models” sentence. No model-specific perplexity is printed. “most stable when changing activation sparsity.” No endpoint perplexity is printed. Same 30% grouping. Stability is comparative, not a printed delta.

Section IV’s observation and its insight are not the same strength (https://arxiv.org/pdf/2412.12178v2). The observation says that at 30% sparsity all three models obtain “only negligible accuracy loss,” that perplexity generally rises with sparsity, and that LLama-3-8B’s maximum perplexity at 50% “is still less than 11” and “is considered acceptable in many application scenarios.” The insight says an extra 50% activation sparsity can be obtained “while maintaining acceptable PPL/accuracy.” The abstract says the analysis demonstrates that “we can obtain around 50% of main memory and computing reductions for critical FFN components with negligible accuracy degradation.” The conclusion says they can “safely secure 50% extra sparsity in FFN layers with a negligible accuracy loss.” “Negligible” attached to 50% is author interpretation. The plotted description says the curve moves, and moves most for LLama-3-8B.

The quantity actually plotted is perplexity under forced zeros. A 50% cut in active FFN neurons implies that those neurons need not be fetched or multiplied, if the runtime can skip them. That implication is not a profiled memory trace or an edge-device latency measurement. Section V later says that effective activation-pattern prediction and prefetching “can compress 50% of LLMs from system resources’ perspective.” That is a further inference. It is not entailed by 50% of FFN activations, because the same paper says FFN layers store most of the parameters, not that an FFN activation cut is a measured cut of the entire model. No profiled whole-model compression is reported.

Pattern match rates in Section V do not answer the locus question (https://arxiv.org/pdf/2412.12178v2). They are a proposed systems use of the FFN cut: predict inactive FFN neurons and prefetch only the rest. The predictability check uses LLaMa-3-8B, 12 samples of 2048 tokens each, and six variants per sample at 95% to 70% input similarity. Table II reports Layer 1 match rates. Even with 70% input similarity, 9 of 12 samples have 100% match rates. The worst rate they state is a 53% activation match at 70% input similarity. A misprediction is described as an extra latency penalty, because missed weights must still be fetched, and “is not a correctness issue.” That fallback is an architectural assumption. It was not a measured prefetcher, and it was not run on attention.

Separate findings that should not be merged in

A later pretraining paper, Madhyastha, Haziza, Cai, Ardalani, Bu, and Wu, https://arxiv.org/pdf/2602.06183v1 (arXiv:2602.06183v1; printed Date line February 9, 2026; arXiv stamp 5 Feb 2026), also sparsifies the FFN rather than attention, for a different reason and with a different method. The abstract says a large portion of pretraining matrix multiplications happens in the FFN, “and this portion increases for larger models, up to 50% of the total pretraining floating point operations.” Section 3.2 separately states that for large model sizes the FFN share “can be up to 80% of total floating point operations as illustrated in Figure 1.” Figure 1’s caption states a scaling point, not that 80% arithmetic: for a fixed pretraining sequence length, larger models spend more FLOPS in the FFNs, because scaled dot-product attention scales linearly with the model dimension while the linear layers scale quadratically. The text does not print the dimensions that produce either ceiling, so this account does not recompute 50% or 80%. Both ceilings are author statements, and the text does not reconcile them. They are not measurements of the Dhar et al. checkpoints, and they are not a substitute for the parameter-share phrase printed as “around 23” and “about 23” in https://arxiv.org/pdf/2412.12178v2.

The Madhyastha et al. text reviewed here does not report a head-to-head threshold experiment on attention. In related work they write that “Sparse attention remains challenging particularly in the long context scenario since dropping elements results in loss of contextual information.” That is the same family of concern Dhar et al. cite, again as a reason to stay in the FFN, again without a matched threshold experiment. Their own accuracy recovery uses a combination of sparse and dense training steps on Llama-3 model variants at 1B and 7B scale, with squared ReLU, 2:4 weight soft-thresholding, and Venom activation sparsity. That protocol is not Dhar et al.’s inference-time percentile zeroing on the pretrained SwiGLU checkpoints in Figure 8. A loss change under the Madhyastha training recipe neither confirms nor refutes the Wikitext curves in Figure 8.

For safety readers, inactive is not the same claim as harmless. Dimitris Papailiopoulos’s Microsoft Research blog post, published November 10, 2026, is about reprogramming dormant neurons. The post states, “Dormant neurons can be turned into trigger detectors.” That sentence is the blog’s framing, not a measurement reported by Dhar et al., and this page does not adopt it as its own finding. The blog does not discuss Dhar et al. Dhar et al. zero small forward-pass magnitudes and score Wikitext perplexity; they report no weight-integrity or agent-safety evaluation. Preserving Wikitext perplexity under that cut does not speak to weight integrity.

How the measurements were produced

Figure images are not remeasured here. No experiment was added for this account. The November 10, 2026 dormant-neuron sentence is taken only from the Microsoft Research blog and is not used as a result about either paper’s sparsity method.

Dhar et al. produced the sparsity evidence by running the Table I models on Wikitext-2, hooking activations, setting per-layer magnitude percentiles, zeroing sub-threshold gate, up, and down values, and recomputing perplexity. The 0% condition is the comparison point they plot. CDF cutoffs are descriptive. The attention exclusion is an argument citing Pires et al. (2023), whose quantitative results are not in this PDF. Checkpoint revisions, a threshold-versus-evaluation split, error bars, and seeds are not stated. The parameter-share characters “23” are not used as a figure here.

This evidence does not establish that attention sparsity would reduce accuracy more than FFN sparsity, that 50% FFN sparsity preserves accuracy beyond Wikitext perplexity on the three plotted models, that memory traffic or latency falls by 50%, or that zeroed neurons are irrelevant to security. It also does not establish the same perplexity result for a different model width or a different activation than the ones named in Table I.

Limitations, conflicts inside the paper, and a proposed test

Section V then says prediction and prefetching can compress 50% of LLMs from the system-resources perspective once a predictor works. Those are successively stronger claims. Only the perplexity comparison is a reported intervention result, and only inside 0–50% on three models and one benchmark.

Neither paper reports an independent replication of the Dhar et al. percentile protocol. Madhyastha et al., in https://arxiv.org/pdf/2602.06183v1, report that a different FFN sparsification, applied during pretraining, raised training loss in sparse-only ablations relative to their dense baseline, and that dense steps after sparse steps were what recovered accuracy on their benchmarks. That is a caution against generalizing “no fine-tuning, percentile zeroing, Wikitext” to other sparsity methods. It is not a failed replication of Figure 8.

Two further limits matter for anyone who would ship the cut. First, the importance ranking is fit to activation magnitudes from the same broad data source used for scoring, with no stated held-out split, so the threshold may be tuned to the evaluation distribution. Second, skipping inactive neurons saves memory only if the runtime knows they are inactive before the fetch. The paper’s own match rates show that similar prompts often share a pattern and sometimes do not: 9 of 12 Layer 1 comparisons were 100% matches at 70% input similarity, and the worst stated rate was 53%. Until a prefetcher is measured, the memory claim remains a consequence of perfect skipping, not an observed system result.

Proposed replication, not a result of either paper. On the same named families, with published Hugging Face revisions, compute α-percentile thresholds on a split disjoint from evaluation. Apply that rule, at 30% and 50%, separately to FFN gate, up, and down projections and to attention query, key, value, and output projections. Score Wikitext-2 perplexity and at least one downstream suite these papers did not use for this comparison. A larger degradation under attention zeroing would support Dhar et al.’s accuracy premise. A similar degradation would leave the FFN locus standing only on parameter share, which is the part of their argument this PDF actually motivates, and would reject the claim that attention was spared because it is known to be more fragile.

  1. Why the cut is on FFN neurons, not attention
  2. The accuracy premise that limits the choice
  3. Checkpoints, layers, and the zeroing rule
  4. Evaluation conditions
  5. What the perplexity curves show
  6. Separate findings that should not be merged in
  7. How the measurements were produced
  8. Limitations, conflicts inside the paper, and a proposed test
Reading map: section order only, not a causal sequence or experimental result.
Editorial Team

Editorial Team

Editorial Team

Publisher description: The J-Space Editorial Team curates and synthesizes cutting-edge research in mechanistic interpretability, AI alignment, and cognitive science. With a commitment to precision, empirical rigor, and clear exposition, the team distills complex technical developments into accessible yet authoritative analyses for researchers, engineers, and policymakers working at the frontier of artificial intelligence.