Abstract
Network pruning focuses on algorithms that aim to reduce a given model's computational cost by removing a subset of its parameters while having minimal impact on performance. Throughout the last decade, the most widely used pruning paradigm has been pruning and re-training, which nowadays is inconvenient due to the vast amount of pre-trained models, which are, in any case, too expensive to re-train. In this paper, we exploit functional information from dense pre-trained models, i.e., their input activations, to obtain sparse models that maximize the activations' alignment with respect to their corresponding dense models. Hence, we propose NeuronAl, a top-up algorithm that can be used on top of any given pruning algorithm for LLMs, which modifies the block-wise and row-wise sparsity, exploiting information from both the dense model and its sparse version to maximize the neuron alignment among activations. Different from existing methods, our approach adaptively selects the best hyperparameters for the block-wise and row-wise sparsity ratios w.r.t. the model and the desired sparsity, and requires no re-training. We test our method over ~300 test cases with four LLM families, three sparsity ratios, and ten language tasks (three language modeling and seven zero-shot datasets), showing how it consistently outperforms the latest state-of-the-art methods in terms of performance-runtime trade-off.
Introduction
As Large Language Models (LLMs) continue to scale, their computational and memory requirements pose significant challenges for deployment. Traditional network pruning—the process of removing redundant parameters—often relies on a "prune-and-retrain" cycle. However, for modern LLMs, retraining is prohibitively expensive, and the original training data is frequently inaccessible.
Recent "top-up" algorithms have emerged to refine pruning by redistributing sparsity across layers. Despite their promise, these methods often suffer from high hyperparameter sensitivity, excessive runtimes, and reliance on metrics like output reconstruction error, which may not fully capture the disruption of information flow within Transformer blocks.
The NeuronAl Approach
NeuronAl is a zeroth-order (gradient-free) "top-up" algorithm designed to enhance existing pruning methods such as Wanda or Magnitude pruning. Its core innovation lies in Neuron Alignment: rather than minimizing the reconstruction error of a layer's output, NeuronAl focuses on aligning the input activations (what a layer receives). In modern Transformers, these inputs serve as critical control points for information flow.
The algorithm employs a two-step adaptive process:
- Block-wise Sparsity Reallocation: It evaluates different sparsity windows using a simple linear schedule—recognizing that deeper blocks are typically more redundant—and selects the configuration that minimizes activation discrepancy.
- Row-wise Sparsity Reallocation: Within each layer, it refines sparsity for individual rows, keeping rows that deviate significantly from the dense model more intact.
NeuronAl is fully adaptive, automatically searching a small set of candidate hyperparameters using a minimal calibration set (e.g., 8 samples), thus eliminating the need for manual tuning.
Experimental Results
The authors evaluated NeuronAl across approximately 300 test cases involving diverse model families (LLama-1/2/3, Phi-2, Mistral, OPT) and tasks (WikiText2, C4, PTB, and seven zero-shot benchmarks).
Performance-Runtime Trade-off
NeuronAl consistently achieves a superior balance between model performance and computational efficiency. As shown in the trade-off analysis, it frequently occupies the Pareto front, offering lower perplexity than competitors like OWL or AlphaPruning while maintaining significantly faster runtimes.
Scalability and Accuracy
On large-scale models like LLama-2 70B, NeuronAl identifies optimal sparsity schedules in approximately 35 minutes, whereas gradient-based alternatives like AlphaPruning can take nearly 12 hours. In aggregate tests, NeuronAl maintained 81.1% accuracy retention at 60% sparsity and demonstrated substantial improvements in perplexity at higher sparsity levels (80%) compared to uniform pruning baselines.
Conclusion and Future Work
NeuronAl demonstrates that gradient-free, input-aligned adaptive sparsity redistribution is a highly effective and efficient strategy for LLM pruning. By avoiding the need for retraining and manual hyperparameter tuning, it provides a practical solution for compressing massive models. Future research may focus on extending this approach to support hardware-friendly semi-structured sparsity (e.g., NVIDIA's 2:4 pattern) and further refining calibration robustness for sensitive model architectures like the OPT family.
Summary updated