StructPrune: Structured Global Pruning asymptotics with 𝒪(√N) GPU Memory

Xinyuan Song, Guangji Bai, Liang ZhaoarXiv 2025 · DOI

Abstract

Pruning is critical for scaling large language models (LLMs). Global pruning achieves strong performance but requires $\mathcal{O}(N)$ memory, which is infeasible for billion-parameter models. Local pruning reduces GPU memory usage to that of a single layer by pruning layers independently, but it neglects inter-layer dependencies and often leads to suboptimal performance in high-sparsity regimes. Unlike unstructured pruning, structured pruning produces regular sparsity patterns that align well with GPU kernels and library optimizations, making it more hardware-efficient. However, structured pruning typically relies on global pruning, since structured patterns are more prone to severe performance degradation under local optimization. To jointly achieve structured pruning and the memory efficiency of local pruning, we propose a divide-and-conquer strategy that decomposes the global pruning problem into coordinated subproblems across different modules, each of which fits within limited GPU memory. Building on this idea, we design STRUPRUNE, an ADMM-based framework that integrates structured sparsity into the pruning process, combining the memory efficiency of local pruning with the hardware compatibility of structured methods. We derive a closed-form analytical solution for structured pruning masks that provides an explicit rule for layer-wise sparsity allocation, and further develop an energy-based asymptotic framework yielding a softmax-form allocation scheme that simplifies optimization while adapting to heterogeneous layer importance. Experiments demonstrate that STRUPRUNE matches the perplexity of global structured pruning while reducing memory cost from $\mathcal{O}(N)$ to $\mathcal{O}(\sqrt{N})$, enabling practical deployment at the billion-parameter scale.

Introduction

Pruning—the process of removing redundant parameters from a neural network—is essential for deploying Large Language Models (LLMs). However, practitioners face a difficult trade-off between granularity, scope, and scale.

  • Granularity: Unstructured pruning achieves high compression but creates irregular patterns that GPUs struggle to accelerate. Structured pruning (removing entire neurons or heads) is hardware-friendly but typically causes more significant accuracy loss.
  • Scope: Global pruning considers the entire model at once, yielding better results but requiring $\mathcal{O}(N)$ memory. Local pruning saves memory but ignores inter-layer dependencies.
  • Scale: Modern LLMs are so large that global pruning is often physically impossible on standard GPUs.

STRUPRUNE bridges this gap, offering a method that is structured (hardware-efficient), global (high performance), and memory-efficient (scalable to billions of parameters).

Methodology

The core of STRUPRUNE is a "divide-and-conquer" strategy based on the Alternating Direction Method of Multipliers (ADMM). Instead of loading the entire model, the framework decomposes the global pruning objective into coordinated subproblems for individual modules.

Analytical Sparsity Solution

The authors derive a closed-form solution for the optimal layer-wise sparsity ratio, moving away from heuristics to a mathematically grounded allocation scheme.

Energy-Based Asymptotic Framework

By treating pruning as a physical system, they develop a continuous approximation of binary pruning masks. This leads to a softmax-form allocation scheme, where layer-wise sparsity is determined by a "temperature-controlled" importance score.

Module-Specific Optimization

The framework provides specific optimization objectives for both Feed-Forward Network (FFN) and Multi-Head Attention (MHA) modules, ensuring Transformer structures are preserved. Post-pruning, weights are updated using LoRA (Low-Rank Adaptation) to recover performance.

Key Insights: The $\mathcal{O}(\sqrt{N})$ Memory Advantage

A critical observation in this work is that as LLMs scale, both the number of layers ($L$) and parameters per layer ($W$) grow roughly proportionally. Since total parameters $N \approx L \times W$, then $L \approx \sqrt{N}$ and $W \approx \sqrt{N}$. By pruning layer-by-layer while maintaining global coordination, STRUPRUNE only needs to load the parameters of a single layer, effectively hitting the $\mathcal{O}(\sqrt{N})$ memory floor.

Figure 1: Depth and width scaling in OPT and LLaMA models, supporting the O(sqrt(N)) memory complexity.

Experimental Results

The authors evaluated STRUPRUNE using the OPT model series (125M to 66B parameters). Calibration used 128 random segments from the C4 dataset, and performance was measured via perplexity (PPL) on WikiText-2 and C4 validation sets.

Performance and Robustness

STRUPRUNE demonstrates a massive reduction in memory footprint while maintaining competitive accuracy. For an OPT-1.3B model, STRUPRUNE required only 0.10 GB of GPU memory, compared to over 2.4 GB for existing methods like sliceGPT and FASP.

Table 1: Perplexity comparison on Wikitext2 and C4 datasets across different sparsity levels.

As shown in the results, the "Asymptotics" variants of STRUPRUNE match or exceed the performance of state-of-the-art structured pruning methods while utilizing significantly less memory. Furthermore, STRUPRUNE's performance degrades much more slowly as sparsity increases compared to standard local pruning methods.

Conclusion

STRUPRUNE enables high-quality, hardware-efficient compression on billion-parameter models using consumer-grade hardware. While a performance gap remains at very high sparsity levels (above 30%), the framework's ability to coordinate global pruning with local memory constraints represents a significant step forward for LLM optimization.

Summary updated

BibTeX
@misc{song2025structprune,
  author = {Xinyuan Song and Guangji Bai and Liang Zhao},
  title = {{StructPrune: Structured Global Pruning asymptotics with 𝒪(√N) GPU Memory}},
  year = {2025},
  eprint = {2510.03246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.03246},
}
Figure