OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction

Mohammad Mozaffari, Samuel Kushnir, Maryam Mehri Dehnavi, Amir Yazdanbakhsh · DOI

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their immense parameter counts. While post-training pruning offers a solution, existing methods often suffer from a trade-off between computational efficiency and model accuracy. We introduce OPTIMA, a novel framework that reformulates the weight reconstruction problem into thousands of small, parallel Quadratic Programs (QPs). By leveraging a shared Hessian structure across weight columns, OPTIMA achieves near-optimal weight updates efficiently on modern GPU hardware. Our results demonstrate that OPTIMA consistently outperforms state-of-the-art one-shot methods like SparseGPT and Wanda, delivering up to a 3.97% accuracy boost while remaining efficient enough to prune an 8B-parameter model in under two days.

Introduction

The rapid scaling of LLMs has led to a "frustrating trade-off" in model compression. Simple heuristic methods, such as Wanda, are computationally efficient but often result in significant accuracy degradation because they lack principled weight updates. Conversely, second-order methods like the Optimal Brain Surgeon (OBS) provide mathematically grounded updates but are computationally prohibitive for models with billions of parameters. Existing middle-ground approaches like SparseGPT rely on approximations that, while faster, sacrifice potential accuracy gains.

OPTIMA addresses this gap by providing a practical path to optimal weight reconstruction. It treats the layer-wise error minimization problem as a series of independent optimization tasks that can be solved in parallel, bridging the gap between the speed of heuristics and the accuracy of second-order optimization.

Methodology

The core innovation of OPTIMA lies in its mathematical reformulation of the layer-wise reconstruction step. The process is broken down into several key components:

  1. Column-wise Decomposition: The authors demonstrate that once a pruning mask is selected, the task of updating the remaining weights to minimize reconstruction error can be decomposed into independent optimization problems for each column of the weight matrix.
  2. Quadratic Programming (QP) Formulation: Each column update is framed as a Quadratic Program. A critical observation is that every column within a specific layer shares the same Hessian matrix ($H = X^\top X$), derived from input activations.
  3. Massive Parallelism and Specialized Solvers: The shared Hessian structure allows for high GPU utilization. OPTIMA employs a specialized first-order solver (rAPDHG) via the MPAX library, which utilizes matrix-vector products—operations at which GPUs excel—rather than costly matrix inversions.
The OPTIMA framework decomposes weight reconstruction into parallel Quadratic Programs sharing a common Hessian.

OPTIMA is designed as a modular "weight update engine." It can be integrated with various mask-selection algorithms, such as Wanda or SparseGPT, to refine the final weights and recover lost performance.

Experimental Setup

OPTIMA was evaluated across several prominent LLM families, including LLaMA 3.1 (8B), LLaMA 3.2 (1B, 3B), Gemma 2 (2B), and Gemma 3 (1B). Calibration was performed using 128 samples from the C4 dataset to estimate the Hessian matrices. Evaluation metrics included zero-shot performance across the Language Model Evaluation Harness (MMLU, PIQA, ARC, WinoGrande, OpenBookQA) and perplexity on the WikiText2 dataset.

Results and Discussion

OPTIMA consistently establishes a new state-of-the-art for one-shot pruning, particularly at higher sparsity levels (50-60%).

Zero-shot performance of OPTIMA compared to baselines at 60% sparsity across various LLM architectures.

Key findings from the experimental results include:

  • Significant Accuracy Recovery: At 60% sparsity, OPTIMA provided a 2.53% absolute accuracy gain for the LLaMA-3.2 1B model compared to baselines, as noted in the study.
  • Efficiency at Scale: Pruning an 8B-parameter model takes approximately 40 hours on a single NVIDIA H100 GPU, while smaller models (1B-3B) require only 2.5 to 7 hours.
  • Solver Superiority: Comparisons with general-purpose optimizers like ADAM showed that OPTIMA's specialized QP solver is essential for stability and reaching optimal weight configurations.
  • Robustness: The method maintains stable performance even with limited calibration data, indicating the robustness of the underlying QP formulation.

Conclusion

OPTIMA successfully bridges the gap between fast heuristics and slow, optimal second-order pruning methods. By reformulating weight reconstruction for massive parallelism, it enables near-optimal updates for LLMs within practical timeframes. While currently slower than the fastest heuristics, its ability to "rescue" model accuracy at high sparsity makes it a powerful tool for LLM deployment. Future work may explore global interactions between layers and the iterative refinement of pruning masks using the QP solver's feedback.

Summary updated

BibTeX
@misc{mozaffari2025optima,
  author = {Mohammad Mozaffari and Samuel Kushnir and Maryam Mehri Dehnavi and Amir Yazdanbakhsh},
  title = {{OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction}},
  year = {2025},
  eprint = {2512.13886},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13886},
}
Figure