TL;DR
This paper introduces a novel method to induce high activation sparsity in quantized linear-attention models using a learnable pre-activation gate. When paired with event-driven neuromorphic hardware like Intel's Loihi 2, this unstructured sparsity bypasses the architectural limitations of traditional GPUs, delivering up to 37× higher throughput and 16× lower power consumption than edge GPUs.
What Problem Does This Paper Address?
Large Language Models (LLMs) are notoriously resource-intensive, making deployment on edge devices highly challenging. While State-Space Models (SSMs) and linear-attention mechanisms successfully mitigate the quadratic scaling bottleneck of traditional Transformers, their dense linear layers remain computationally expensive.
Dynamic activation pruning—zeroing out unimportant intermediate values during inference—could theoretically alleviate this burden. In an ideal scenario, a zero-valued activation allows hardware to skip entire columns of weight matrices, saving both compute cycles and memory bandwidth.
However, traditional GPUs struggle to exploit this "unstructured" sparsity. Because GPU threads execute in lockstep and rely on regular, contiguous memory access, irregular distributions of zeros introduce indexing overhead and waste compute lanes. This paper addresses the challenge of inducing high activation sparsity without destroying model accuracy, while targeting hardware that can actually profit from it.
Methods
The authors propose a sparse per-projection pre-activation gate applied to the input of every linear projection.
- Two-Sided Learnable Thresholding: The gate acts as a two-sided ReLU that nullifies activations falling within a learnable range of $\pm\Delta$. Crucially, it preserves high-magnitude positive and negative outliers, which are vital for LLM performance.
- Smooth Surrogate Gradient: To prevent the "dead neuron" problem during training (where zeroed-out activations stop receiving gradient updates), the authors implement a smooth surrogate function for the backward pass. This ensures stable training and steady gradient flow.
- Differentiable Sparsity Penalty: An $L_0$ surrogate loss penalty is added to the primary task loss, encouraging the model to dynamically maximize sparsity on a per-layer basis depending on the layer's computational weight.
The resulting sparse model is targeted for deployment on Intel's Loihi 2 neuromorphic platform. Unlike GPUs, neuromorphic architectures use event-driven processing, meaning they natively skip zero-valued operations both locally within a core (intra-chip) and when communicating between chips (inter-chip).
Datasets
The authors evaluated their method by continuing the pre-training of 370M and 2.7B parameter MatMul-Free Language Models (MMFreeLM) using:
- FineWebEdu: 4 billion tokens used for the sparsification and training process.
The zero-shot reasoning performance of the sparsified models was evaluated using standard benchmarks:
- ARC-Easy and ARC-Challenge
- HellaSwag
- OpenBookQA
- PIQA
- WinoGrande
Key Insights and Ideas
- Sparsity Sensitivity is Asymmetric: Not all layers or projections tolerate sparsity equally. Projections directly involved in hidden state transitions ($h[t] \rightarrow h[t+1]$) are highly sensitive to pruning, whereas the large down-projections in feed-forward networks (FFNs) are incredibly resilient.
- The U-Shaped Layer Sensitivity: Sensitivity to forced sparsity peaks at the very first and very last layers, as well as in specific middle layers, suggesting that middle layers generally possess higher redundancy.
- Hardware-Algorithm Synergy: Unstructured activation sparsity is a penalty on GPUs but a massive win on neuromorphic hardware. Event-driven links suppress zero-valued packets entirely, directly cutting down inter-chip communication overhead.
Key Results
- Massive Operation Reduction: The proposed method achieved up to a 76% model-wide reduction in MAC operations with negligible impact on zero-shot accuracy.
- Neuromorphic Speedups: Compared to a dense baseline on the same neuromorphic hardware, the sparse model demonstrated a 5.4× improvement in throughput and energy efficiency during the token generation phase, and a 3.5× improvement during the prefill phase.
- Beating the Edge GPU: When compared to a comparable transformer model running on an edge GPU (Nvidia Jetson), the sparse neuromorphic deployment projects up to 37× higher throughput and 16× lower power consumption.
Limitations and Future Work
While the baseline dense model was fully deployed on physical hardware, the performance metrics for the sparse model on the Loihi 2 platform are projected and extrapolated using an established performance modeling framework. Although these models are grounded in real-world dense deployment data, future work will require implementing the physical sparse kernels on-chip to fully validate the communication and compute speedups in practice.
Summary updated