OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction
summary
The gist
The gist The OPTIMA framework introduces a practical one-shot post-training pruning method that balances accuracy and scalability by reformulating layer-wise weight reconstruction as shared-Hessian
In short
OPTIMA introduces a method for one-shot post-training pruning of large language models by reformulating weight reconstruction as shared-Hessian column-wise Quadratic Programs (QPs). This approach balances accuracy and scalability by allowing per-column global optimality and massive parallel processing on GPUs, achieving up to 3.97% absolute accuracy improvement.
Key concepts
- Quadratic Programs (QPs)
- The method casts the layer-wise weight reconstruction into a set of independent QPs, one for each column of weights. This mathematical structure allows the optimization to find the best possible weight updates under specific constraints, leading to globally optimal solutions for each column.
- Shared-Hessian
- Instead of calculating a unique Hessian matrix for every layer or weight change, OPTIMA uses a common layer Hessian matrix shared across all columns. This structure is key because it makes the problem highly efficient for parallel computation on accelerators like GPUs and TPUs.
- Column-wise Optimization
- The core idea is to optimize weight changes column by column rather than globally. By solving these QPs independently but leveraging the shared Hessian, the method enables massive batching and parallelism, allowing thousands of small updates to be processed simultaneously for efficient pruning.
Terminology used across episodes
This episode discusses
- OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction · Paper Radio
- Distributed Koopman Learning with Incomplete Measurements
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
- The Llama 3 Herd of Models · Paper Radio
- MaskLLM: Learnable Semi-Structured Sparsity for Large Language Models
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuning
- Measuring Massive Multitask Language Understanding
- Thanos: A Block-wise Pruning Algorithm for Efficient Large Language Model Compression
- Adam: A Method for Stochastic Optimization
- ProxSparse: Regularized Learning of Semi-Structured Sparsity Masks for Pretrained LLMs
- Decoupled Weight Decay Regularization
- A Practical and Optimal First-Order Method for Large-Scale Convex Quadratic Programming
- MPAX: Mathematical Programming in JAX
- Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering
- A Simple and Effective Pruning Approach for Large Language Models
- Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context
- Gemma 2: Improving Open Language Models at a Practical Size
- Gemma 3 Technical Report
- Llama 2: Open Foundation and Fine-Tuned Chat Models
The paper
OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction · Read on arXiv
Mohammad Mozaffari, Samuel Kushnir, Maryam Mehri Dehnavi, Amir Yazdanbakhsh
University of Toronto · Google DeepMind
Post-training pruning cuts the inference cost of large language models, 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 sit in between and apply efficient but approximate 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, column-wise quadratic programs (QPs) that share one Hessian per weight matrix. Solving these QPs yields, at solver convergence, the per-column minimizer of the layer-wise reconstruction objective under the shared Hessian, and the shared Hessian makes the QPs easy to batch on accelerators. We implement an accelerator-friendly QP solver that accumulates one Hessian per weight matrix and solves many small QPs in parallel with a convergence certificate per column, enabling one-shot post-training pruning at scale on a single accelerator without fine-tuning. OPTIMA integrates with existing mask selectors and improves average zero-shot accuracy in 40 of 49 (model, mask selector, sparsity) settings across the LLaMA and Gemma families, with mean gains of +0.61, +0.56, and +1.01 points at 50% unstructured, 2:4, and 60% unstructured sparsity, and up to +3.97 points at 60% sparsity, while matching ADMM-based exact reconstruction on its own masks. On an NVIDIA H100, OPTIMA prunes an 8B-parameter transformer end-to-end in 40 hours and 60 GB of peak GPU memory. This shows that principled column-wise QP reconstruction is a practical alternative to heuristic weight updates in one-shot post-training pruning.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction".
Jane: Here's the gist of the paper. The gist The OPTIMA framework introduces a practical one-shot post-training pruning method that balances accuracy and scalability by reformulating layer-wise weight reconstruction as shared-Hessian column-wise Quadratic Programs (QPs) that share a common layer Hessian, enabling per-column global optimality and massive GPU/TPU parallelism.
Jane: OPTIMA casts layer-wise weight reconstruction after mask selection as independent, column-wise Quadratic Programs (QPs) that share a common layer Hessian The shared-Hessian structure makes the problem highly amenable to batching on accelerators.
Title and authors: Tom: So we're looking at this paper today, 'OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction'. It sounds like they're trying to fix that trade-off we always hear about in pruning.
Jane: Exactly. We know simple methods are fast but lose accuracy, and principled methods recover accuracy but just don't work at the scale of modern models. This paper seems to be proposing a way in between those two extremes.
Lu: The core idea here is to cast the layer-wise weight reconstruction after you've picked your mask into independent, column-wise Quadratic Programs, or QPs, that all share one common layer Hessian. That sounds like a big structural simplification for the math.
Meng: A shared Hessian sounds good because it suggests some kind of uniformity across the layers that makes things easier to parallelize on hardware. But what's the practical payoff? Does this actually give us better results than just zeroing out weights, like Wanda does?
Lalam: Based on what I see, they aim for per-column global optimality for the reconstruction objective, which means for every single column you're updating, it finds the best possible way to reconstruct that weight given the estimated Hessian. That sounds mathematically very strong.
Tom: Right. So we have a method that takes a mask and instead of just throwing weights away, it solves these QPs to find the optimal new values for those remaining weights. It's about getting an update step that's more principled than just setting things to zero or using some other quick heuristic.
Jane: It sounds like they are tackling the computational infeasibility of weight updates by making them structured in a way that allows for massive parallel processing on GPUs or TPUs. That’s something Meng is always concerned about when we talk about deployment and scaling.
The paper's summary: Tom: The summary explains that after you select your mask, say using some magnitude heuristic, the problem simplifies to a convex least-squares problem, but solving that directly for all the weights is too expensive. That's where OPTIMA steps in.
Lu: They propose reformulating this into a set of independent Quadratic Programs, which they call column-wise QPs with a shared layer Hessian. This shared structure is what makes the whole thing amenable to batching on accelerators, which is huge for efficiency.
Jane: So instead of one massive, slow calculation over all weights, they break it down into many smaller problems that share some common information about the layer's geometry. It’s like solving a giant puzzle by having many people solve small pieces that all reference the same blueprint.
Meng: I need to know how this shared Hessian is estimated. If we have to calculate a huge Hessian matrix just to set up these QPs, it might negate any speedup they get from batching. What's the actual cost of generating that initial structure?
Tom: They estimate the Hessian by looking at the covariance of the dense model’s inputs across multiple sequences, computing y transpose times y for each sequence and summing those up to get an approximation of H. That seems like a way to save memory because they are accumulating layer Hessians incrementally from calibration sequences.
Lalam: So it's an estimate based on input patterns, which they then use to set up the shared Hessian structure before solving the QPs for each column j using that matrix H and constraints from the mask m j. That's a very specific flow.
Jane: It’s interesting because they are trading explicit dense equality matrices for this incremental accumulation, which is smart when you're dealing with massive LLM weights where memory is a real constraint. They are trying to keep the inner loops efficient on accelerators while still achieving this global optimality per column.
The paper's improvements: Tom: The authors highlight two main benefits from this formulation. First, they get per-column global optimality for the reconstruction objective, which is a big deal if those updates are truly better than the simpler heuristics we’re using now.
Lu: And the second benefit is structural: the uniform problem structure that enables massive batching and parallelism on off-the-shelf ML accelerators like GPUs or TPUs. That's how you actually make this method scalable for large models, not just theoretically interesting.
Meng: Scalability is key. If this formulation requires custom hardware or specialized solvers, it’s just another theoretical paper that won't ship to production at scale. The fact that they state it works on off-the-shelf accelerators is important for deployment concerns.
Jane: They also mention how the constraints from the mask m j impose a linear constraint on the change vector, which is what keeps these QPs manageable and structured enough for their solver, rAPDHG. It ensures that the updates respect whatever sparsity pattern you’ve chosen.
Tom: And they mention avoiding explicit dense equality matrices by enforcing fixed entries via tight bounds and accumulating layer Hessians incrementally from calibration sequences to save memory during the process. That addresses the memory bottleneck directly.
Lalam: The paper shows that this method can be integrated with existing mask selectors, like Wanda, SparseGPT, and Thanos. It’s designed to be a drop-in weight-update step for those existing tools without needing a complete overhaul of how you select which weights to prune first.
Conclusion: Tom: So to wrap up the OPTIMA paper, it seems they've successfully taken the complex problem of weight reconstruction after pruning and turned it into batched, column-wise Quadratic Programs sharing a layer Hessian. It’s a practical way to get per-column global optimality while maintaining massive parallelism.
Jane: They've shown that this formulation functions as a drop-in step for existing mask selectors, which is important because it makes the idea of using this method accessible to people who are already using some kind of pruning heuristic. The results they show on a single NVIDIA H100 are quite compelling for showing its practical speed and accuracy gains.
Lu: From my view, the real contribution here is how they manage the numerical engineering—using a first-order primal–dual QP solver like rAPDHG that relies on matrix–vector products with that shared Hessian, which makes the inner loops extremely efficient on accelerators. That’s where you get your speed.
Meng: From my side, I'm focusing on the deployment aspect. They show it can prune an 8B-parameter transformer end-to-end in forty hours using sixty GB of peak memory on an NVIDIA H100. That’s a concrete metric for running this at scale without needing a massive GPU cluster just for the pruning step itself.
Lalam: I'm confident they are right about the convergence, too. They state that OPTIMA consistently improves zero-shot performance across multiple LLM families by up to three point nine seven percent points and provides up to three point nine seven percent points gain on LLaMA-three point two-1B, which is a solid measure of its effectiveness against the baseline methods they compare it to.
Tom: It sounds like this paper, OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction, gives us a way to apply principled weight updates that actually work well in the real world for post-training pruning without needing massive computational overhead.
Jane: It really shows how we can balance the need for high accuracy with the reality of what we can run on current hardware when dealing with huge models. That's where the next set of papers will be interesting to watch.
More episodes
- 2509.03526-Enhancing Speech Large Language Models through Reinforced Behavior Alignment
- 2509.15476-Evaluating Multimodal Large Language Models on Spoken Sarcasm Detection
- 2509.25063-Learning from Convenience Samples: Fine-Tuning LLMs to Predict Voting Choices from Biased Survey Samples
- 2510.07167-Reasoning for Hierarchical Text Classification: The Case of Patents
- 2511.09966-REAP: Enhancing RAG with Recursive Evaluation and Adaptive Planning for Multi-Hop Question Answering
- 2601.21476-Thinking Seeds: Restarting On-Policy RL from the Model's Own Past Reasoning States
- 2602.08945-GitSearch: Enhancing Community Notes Generation with Gap-Informed Targeted Search
- 2602.20759-Overton Pluralistic Reinforcement Learning for Large Language Models
- 2603.03096-Interpreting Speaker Characteristics in the Dimensions of Self-Supervised Speech Features
- 2603.04820-Autoscoring Anticlimax: A Meta-analytic Understanding of AI's Short-answer Shortcomings and Wording Weaknesses