Skip to main content

Research paper

Sparse InferenceNeuron SpecializationScaling LawsEfficient Transformers

Sparse Pathways: Profiling Domain-Specific FFN Activation

Activation profiles suggest that some feed-forward neurons could be skipped for particular domains. The reported compute estimates and output similarity do not establish measured inference speed or task accuracy.

Updated September 22, 2026 · Editorial correction dated 2026-09-22; no new experiment or independent reproduction. The linked PDF is the original version and does not include these web corrections.

Paper

Scope Reported activation profiles across several model families; a three-model scale table and separate output-similarity measurements at 5-15% sparsity. Limitations and artifacts

Abstract

We profile domain-specific feed-forward neuron activations in several transformer models. The scale table reports 30.9% specialization for Phi-2, 30.2% for Phi-3.5-mini and 68.2% for K2-Think, with theoretical compute ratios of 1.45x, 1.43x and 3.14x. Separate masking experiments report output cosine similarity of at least 0.999 at 5-15% sparsity. These are activation and similarity measurements, not evidence of exact output preservation, downstream task equivalence or wall-clock speedup. The original scaling statistic requires reconciliation of its model population, estimator and architecture effects before it can support a scaling-law claim.

On this page
  1. Introduction
  2. Method
  3. Neuron activation profiling
  4. Negative selection strategy
  5. Findings
  6. Finding 1: Specialization in the reported scale comparison
  7. Finding 2: Layer-wise activation profiles
  8. Finding 3: Differences between the tested architectures
  9. Finding 4: Candidate masking in layer 0
  10. Connection to expert-level sparsity
  11. Reported output similarity
  12. Connection to MoE
  13. Conclusion

Introduction

Dense transformer feed-forward layers compute many neuron activations per token. This report asks whether domain-dependent activation profiles can identify computations worth skipping, and how those profiles vary across the tested models. Preserving task quality is a separate question requiring downstream evaluation.

The reported profiles suggest opportunities for selective computation. Model family, architecture, size and profiling inputs vary together, so this comparison cannot isolate a scaling law.

Method

Neuron activation profiling

We profile neuron activations across diverse inputs to measure domain-specific activation strengths. For each model layer, we compute mean absolute activation per neuron across representative inputs.

A neuron is specialized if its activation for one domain far exceeds its average activation — the same neuron may be critical for one domain and negligible for another.

Negative selection strategy

For domain d in layer ℓ, the proposed rule marks a neuron as a candidate for masking when its profiled activation is below a percentile threshold. Low activation in a profile does not guarantee that the neuron is unnecessary on a new input. The threshold therefore needs validation on held-out task data.

Findings

Finding 1: Specialization in the reported scale comparison

ModelParamsAvg SpecializedTheoretical compute ratio
phi-22.7B30.9%1.45x
Phi-3.5-mini3.8B30.2%1.43x
K2-Think32B68.2%3.14x

Average share of specialized neurons

the three models in the scale table

phi-22.7B parameters
30.9%
Phi-3.5-mini3.8B parameters
30.2%
K2-Think32B parameters
68.2%
Figure 1. Three models, which differ in family and architecture as well as size. Specialization falls slightly between the first two, so these points do not by themselves show a scaling trend.

The compute ratios are estimates associated with skipping operations. The report does not show how they account for kernel efficiency, memory traffic, profiling and routing overhead, or unchanged model operations. They are not measured wall-clock speedups.

Finding 2: Layer-wise activation profiles

The original 32B profile lists the following values and proposed interpretations. The PDF describes 61 layers in its setup but includes L62 here; the checkpoint and layer-index convention need reconciliation. These values are preserved from the report:

DepthLayerSpecializationProposed role
3%L214.4%Syntax recognition
28%L1879.6%Domain knowledge
53%L3472.9%Domain computation
88%L5686.6%Peak specialization
97%L6276.9%Output preparation

Reported specialization by layer in the 32B profile

five listed layers, ordered by depth

L23% depth
14.4%
L1828% depth
79.6%
L3453% depth
72.9%
L5688% depth
86.6%
L6297% depth
76.9%
Figure 2. Only these five layers are listed in the report. The layer numbering still needs reconciling with the 61 layers described in the PDF.

These profiles motivate testing different masking budgets per layer. They do not establish that 70–90% masking preserves task quality, or that the proposed semantic roles are causal findings.

Finding 3: Differences between the tested architectures

Domain specialization varies significantly across architectures:

ArchitectureModelAvg Specialized
Gemmagemma-2b51.8%
QwenQwen1.5-1.8B47.6%
LlamaTinyLlama-1.1B7.4%

The tested Gemma and Qwen examples have higher reported specialization than TinyLlama. Different model sizes, training and architectures prevent extending this ranking to entire families.

Finding 4: Candidate masking in layer 0

Analysis of Layer 0 across domains (Phi-3.5-mini):

DomainCandidate neurons to skipTheoretical layer compute ratio
Math90.4%10.47x
Code72.9%3.70x
Factual52.1%2.08x
Language48.3%1.88x

These percentages identify candidates from Layer 0 activation profiles. They do not establish safe masking rates on unseen queries, and the layer-only ratios are not whole-model speedups.

Connection to expert-level sparsity

The original report discusses Kimi K2.5 as an expert-level sparsity example, listing 1T parameters and 8 active experts out of 384 (2.1%). This architectural comparison is separate from the dense-neuron measurements above. It does not validate the neuron-masking method or its task quality at 1T scale.

Reported output similarity

At 5–15% sparsity with domain-aware selection, the report gives cosine similarity of 0.999+ between dense and masked outputs. This indicates close vector directions in that measurement. It is not exact equality, does not bound output magnitude differences, and does not establish unchanged predictions or downstream task accuracy. The article does not identify the evaluated tensor, sample count or tolerance needed to reproduce this comparison.

Connection to MoE

MoE and sparse pathways are complementary:

  • MoE: Coarse-grained sparsity (choose 8 of 384 experts)
  • Sparse Pathways: Fine-grained sparsity (choose neurons within layers)
  • Combined: Experts + intra-expert neuron sparsity = even more efficient inference

Conclusion

The reported activation profiles motivate domain-aware neuron masking experiments. Establishing a scaling relationship requires a defined analysis population and controls for architecture; establishing practical savings requires measured runtime and held-out task accuracy. The linked PDF remains the original preprint version, including stronger claims corrected in this web revision. No new measurements were added.

Paper record

Scope

Reported activation profiles across several model families; a three-model scale table and separate output-similarity measurements at 5-15% sparsity.

Author-reported results

Limitation

No measured end-to-end speedup or task-preservation result is supplied. The scaling statistic and model/layer accounting remain unresolved.

Artifacts

Original preprint PDF available. This record does not identify a code release, dataset snapshot or runnable benchmark revision.

Citation

Use this record when citing the current public version.

Andrew Young (2026). Sparse Pathways: Profiling Domain-Specific FFN Activation. Automate Capture Research. https://research.automate-capture.co/journals/sparse-pathways-neuron-routing/