Probabilistic State Space Enumeration in Neural Network Computation

Victor O. K. Li, Yang Han, Jacqueline C. K. LamarXiv 2026 · arXiv

This paper introduces a fresh perspective on neural network efficiency: instead of just pruning "unimportant" parts of a model, what if we treated a dense layer as a probabilistic expectation over a massive space of possible configurations?

TL;DR

The authors propose NORDER-II, an algorithm that approximates dense Transformer MLP layers by enumerating and summing only their most probable "joint states" (combinations of active channel groups). This approach significantly outperforms standard Top-k channel selection, achieving near-dense accuracy on Llama and Gemma models with negligible computational overhead.

What Problem Does This Paper Address?

Modern deep learning is "dense"—every neuron and channel is calculated for every input. To make these models faster, researchers often use "sparsity" techniques like Top-k ranking, where only the $k$ most active channels or attention heads are kept.

However, the authors identify a fundamental limitation: these methods are "atomic." They treat each channel as an independent unit. While this works well for attention layers, it fails to capture the structured, collective behavior of Feed-Forward Networks (MLPs). In MLPs, the output depends on the joint interaction of many factors.

The challenge is that the space of all possible combinations (joint states) grows exponentially. If you have $G$ groups of channels, there are $2^G$ possible inclusion/exclusion states. Sorting through billions of combinations to find the best ones is traditionally impossible at inference time.

Methods

The authors bridge this gap with a framework that reformulates dense computation as a probabilistic state-space enumeration:

  1. Probabilistic Representation: They partition MLP channels into $G$ groups and assign each an input-dependent probability of being "included." They use an importance-correction mechanism (weighting outputs by the inverse of their probability) to ensure that the mathematical expectation of these random states exactly equals the original dense output.
  2. NORDER-II Algorithm: This is the core innovation. It is an efficient algorithm that finds the most probable joint states in descending order without ever having to construct or sort the entire $2^G$ state space. It uses a priority queue to "flip" the most likely groups, exploring the state space's "high-rent district" first.
  3. Mass-Controlled Truncation: Instead of a fixed budget (like "keep 100 channels"), they use a cumulative probability mass target ($\tau$). The model keeps adding states to the sum until it has covered, say, 95% of the total probability mass. This allows the computation to adaptively expand for "difficult" inputs and shrink for "easy" ones.

Datasets

The researchers evaluated their method on:

  • Llama-3.2-1B and Gemma-2-2B: Two state-of-the-art open-weight Transformer models.
  • WikiText-2: A standard benchmark for measuring language modeling perplexity.
  • GPT-2-XL: Used for initial diagnostic studies to compare attention vs. MLP behavior.

Key Insights and Ideas

  • MLPs are "Joint," Attention is "Atomic": The authors found that while you can recover attention performance by picking a few top links, MLPs require a much broader, more structured coverage. This justifies the move from ranking individual channels to traversing joint states.
  • Probability Mass as a Control Signal: Using probability mass ($\tau$) provides a more robust theoretical guarantee for approximation error than simple counts. If you cover 95% of the mass, your error is bounded by the remaining 5%.
  • Efficiency through "Coefficient Collapsing": Even though they might evaluate 2,048 states, they don't perform 2,048 separate forward passes. They calculate the scalar coefficients for each group across all states first, then perform a single weighted sum of the group contributions. This keeps the extra FLOP (floating-point operation) cost below 0.2%.

Key Results

The quantitative gains over traditional methods are substantial. As shown in Table 1, NORDER-II provides a much tighter approximation of the dense model than random sampling or standard Top-k selection.

Table 1: Local transformer MLP comparisons at G = 12 and τ = 0.95. Budget denotes states for joint-state methods and channels for Channel Top-k; Grouped Top-k has no joint-state budget. Acc. is approximation accuracy; Cos. is cosine similarity. Mass is cumulative joint-state prefix mass and is not defined for Channel or Grouped Top-k. Ch./grp. frac. is the retained channel or group fraction.
  • Approximation Accuracy: On Llama-3.2-1B, with a budget of 2,048 states, NORDER-II achieved 92.4% accuracy in approximating the MLP output, compared to just 76.9% for Channel Top-k.
  • Downstream Performance: When approximating the first, middle, and last MLP layers of the models, the language modeling perplexity remained nearly identical to the dense version (within 0.06% for Llama).
Table 2: Next-token NLL and perplexity on 4,096 WIKITEXT-2 targets when the first, middle, and last MLP layers are approximated jointly. Grouped Top-k is the expected-count baseline.

As seen in Table 2, NORDER-II (at $B=2048$) is significantly closer to the "Dense" baseline than the "Grouped Top-k" baseline, which fails to capture the joint state benefits.

Limitations and Future Work

  • Initial Computation: In its current form, the method still computes the contributions of all channel groups before selecting which states to sum. While the aggregation is efficient, the initial group computation is still dense. Future work could involve "early-exit" strategies where low-probability groups aren't computed at all.
  • Independent Assumptions: The current model assumes group probabilities are independent (Bernoulli). Real-world neural activations likely have complex dependencies that a more sophisticated probability model could capture.
  • Scaling: While $G=12$ (4,096 states) works well, scaling to much larger group counts ($G=16$ or higher) makes the probability mass more "diffuse," requiring even larger state budgets to maintain accuracy.

Summary updated

Abstract

Deep neural networks typically realize dense computation by propagating information through all intermediate channels, while many approximation methods rank and retain individual computational components. We ask whether dense neural computation can instead be represented exactly as an expectation over a combinatorial state space, and approximated by evaluating only its most probable configurations. We introduce a novel probabilistic state-space framework for Transformer MLPs. The framework partitions the intermediate dimension into channel groups, defines an input-dependent distribution over binary inclusion states, and uses importance-corrected masked outputs such that the full expectation exactly recovers the dense MLP output. The key algorithmic novelty is NORDER-II, which enumerates complete joint states in decreasing probability without constructing or sorting the exponentially large state space. Truncating this ordering yields an anytime approximation governed by cumulative probability mass and a state budget. On Llama-3.2-1B and Gemma-2-2B, NORDER-II at a state budget of B=2048 achieves 92.4% and 93.8% MLP-output approximation accuracy, compared with 76.9% and 79.8% for Channel Top-k. When the first, middle, and last MLP layers are approximated jointly, WikiText-2 perplexity remains within 0.06% and 0.54% of dense inference. Relative to expected-count Grouped Top-k, NORDER-II yields 82.6% to 126.4% relative accuracy gains with only 0.18% to 0.19% additional local analytic FLOPs. These results establish the significance of joint-state structure beyond atomic salience and point to a new paradigm for neural computation: dense layers can be viewed as structured probabilistic inference over combinatorial computational states. This framework opens a path toward adaptive, probability-mass-controlled computation in pretrained neural networks.
BibTeX
@misc{li2026probabilistic,
  author = {Victor O. K. Li and Yang Han and Jacqueline C. K. Lam},
  title = {{Probabilistic State Space Enumeration in Neural Network Computation}},
  year = {2026},
  eprint = {2611.15062},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15062},
}
Figure