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

Mohammad Mozaffari, Samuel Kushnir, Maryam Mehri Dehnavi, Amir Yazdanbakhsh
12/15/2025
cs.LGcs.AIcs.PF

No official code found. Best implementation: Paramathic/optima (3 stars, last commit 2025-11-25).

Abstract

Post-training model pruning is a promising solution, yet it faces a trade-off: simple heuristics that zero weights are fast but degrade accuracy, while principled joint optimization methods recover accuracy but are computationally infeasible at modern scale. One-shot methods such as SparseGPT offer a practical trade-off in optimality by applying efficient, approximate heuristic weight updates. To close this gap, we introduce OPTIMA, a practical one-shot post-training pruning method that balances accuracy and scalability. OPTIMA casts layer-wise weight reconstruction after mask selection as independent, row-wise Quadratic Programs (QPs) that share a common layer Hessian. Solving these QPs yields the per-row globally optimal update with respect to the reconstruction objective given the estimated Hessian. The shared-Hessian structure makes the problem highly amenable to batching on accelerators. We implement an accelerator-friendly QP solver that accumulates one Hessian per layer and solves many small QPs in parallel, enabling one-shot post-training pruning at scale on a single accelerator without fine-tuning. OPTIMA integrates with existing mask selectors and consistently improves zero-shot performance across multiple LLM families and sparsity regimes, yielding up to 3.97% absolute accuracy improvement. On an NVIDIA H100, OPTIMA prunes a 8B-parameter transformer end-to-end in 40 hours with 60GB peak memory. Together, these results set a new state-of-the-art accuracy-efficiency trade-offs for one-shot post-training pruning.

View on arXivView PDF

Code Implementations(1)

Paramathic/optimaCommunity65%

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

30Shell, PythonSep 22, 202511 months ago

Cite this paper

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

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.13886.svg)](https://codeofpaper.com/paper/2512.13886)

Discussion