LSA: Layer-wise Sparsity Allocation for Large Language Model Pruning Based on Minimal Linear Reconstruction Error

Zhiguo Yang, Changjian Deng, Qinke Chen, Zijing Zhou, Jian ChengICLR 2026

Deploying Large Language Models (LLMs) on platforms with limited computational resources remains a significant hurdle. While weight pruning is a proven compression technique to reduce model size without retraining, deciding which weights to remove is notoriously difficult.

This paper introduces LSA (Layer-wise Sparsity Allocation), a principled approach to LLM pruning that moves away from simple heuristics. By leveraging a metric based on reconstruction error, LSA achieves state-of-the-art performance at high sparsity levels (70% and above) and remains stable even at fine-grained pruning levels.

The Challenge of LLM Pruning

Pruning removes redundant weights to make a model smaller and faster. However, transformer layers contribute unevenly to a model's overall performance. While some layers are highly redundant, others contain critical parameters essential to the model's reasoning capabilities.

Historically, the standard approach has been uniform pruning—removing the exact same percentage of weights from every layer. Recent "layer-wise" methods, such as OWL and DLP, attempt to improve upon this by assigning different sparsity ratios based on proxy scores (like weight magnitude multiplied by activation norm).

The Gap: These manual proxies do not always correlate perfectly with actual model performance. Furthermore, when existing methods are applied at a finer granularity—such as pruning the "Query" projection differently than the "Value" projection—the model's performance often collapses.

The LSA Approach: Minimal Linear Reconstruction Error

LSA replaces heuristic weight-scoring with a metric based on Minimal Linear Reconstruction Error (LRE) to quantify redundancy and determine optimal layer-wise sparsity.

Overview of the LSA pipeline, illustrating LRE map generation and non-uniform layer-wise pruning.
  1. Redundancy as Error: Instead of evaluating weights in isolation, LSA asks a functional question: "If X% of weights are removed from this specific layer, how much does the layer's output deviate from the original?"
  2. The LRE Metric: Assuming a baseline of 50% sparsity, LSA uses a greedy algorithm to identify the weights that, when removed, cause the smallest change to the layer's output. This "minimal error" serves as the layer's importance signature.
  3. High Error = High Redundancy: If removing weights causes a large error, it paradoxically suggests the layer's weights contribute more uniformly, making it more resilient and capable of handling higher sparsity.
  4. Low Error = Low Redundancy: These layers likely contain critical "outlier" weights. Removing even a few causes a significant performance drop, indicating they should be pruned less.
  5. Sensitivity Rescaling: A hyperparameter ($\beta$) maps these error scores to a specific range of sparsity ratios around a target. For instance, if the target overall sparsity is 70%, individual layers might be assigned ratios ranging from 60% to 80%.

Key Insights on Granularity

A major breakthrough of LSA is its stability at finer granularities. It can be applied at the layer level, block level (Attention vs. FFN), or projection level (Q, K, V, O matrices).

  • Finer Granularity Success: Previous state-of-the-art methods fail when pruning at the projection level. LSA is the first method that actually improves model performance when moving to these finer granularities.
  • Grouped-Query Attention (GQA): In modern architectures like LLaMA3, the Key (k) and Value (v) projections are smaller than the Query (q) projection. LSA naturally discovers that these smaller projections are more "important" per-parameter and assigns them lower sparsity, which is critical for maintaining performance.
  • Redundancy Distribution: LSA confirms that deeper layers in LLMs are generally more redundant than shallower ones, providing a much more precise "map" of this redundancy than previous magnitude-based heuristics.

Performance and Results

The authors evaluated LSA across a wide range of standard benchmarks, including language modeling (WikiText, PTB, C4) and seven zero-shot commonsense reasoning tasks (BoolQ, PIQA, HellaSwag, etc.), testing models like LLaMA1/2/3, Qwen2.5, and Mistral-7B.

  • Superiority at High Sparsity: At 70% unstructured sparsity, LSA consistently achieves lower perplexity than OWL and DLP. For LLaMA2-13B, LSA reduced perplexity by significant margins compared to the next best method.
  • Zero-Shot Accuracy: LSA maintained higher accuracy across all seven zero-shot tasks. On LLaMA1-7B at 70% sparsity, LSA outperformed uniform pruning by nearly 2% in mean accuracy.
  • Real-world Speedup: Using the DeepSparse inference engine, an LSA-pruned LLaMA2-7B model achieved a 3.0x speedup at 70% sparsity and 3.8x at 90% sparsity compared to the dense baseline.
  • Broad Compatibility: LSA works seamlessly with other compression techniques, including GPTQ (quantization) and N:M structured sparsity (e.g., 2:4 or 4:8 patterns).

Limitations and Future Work

While highly effective, LSA has a few limitations. Like Wanda and SparseGPT, it requires a small amount of calibration data (e.g., 128 samples) to calculate the reconstruction error. Additionally, calculating the LRE is more computationally intensive than simple magnitude scoring, though the authors provide an optimized greedy algorithm to manage this overhead. Finally, while LSA shows a clear path to structured pruning, realizing the most dramatic latency reductions on standard CPUs/GPUs currently requires specialized software engines like DeepSparse.

Summary updated

BibTeX
@inproceedings{yang2026lsa,
  author = {Zhiguo Yang and Changjian Deng and Qinke Chen and Zijing Zhou and Jian Cheng},
  title = {{LSA: Layer-wise Sparsity Allocation for Large Language Model Pruning Based on Minimal Linear Reconstruction Error}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=xq3lza5IjN},
}
Figure