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:
- 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.
- 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.
- 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.
- 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).
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