OPTIMA: Optimal One-shot Pruning for LLMs via Quadratic Programming Reconstruction
OPTIMA is a scalable, one-shot post-training pruning method for large language models that formulates layer-wise weight reconstruction as independent column-wise quadratic programs with a shared Hessian, achieving superior accuracy over heuristic approaches while maintaining computational efficiency on modern accelerators.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Large language models are powerful computer programs that have learned to understand and generate human language by studying vast amounts of text. They can write stories, answer complex questions, and solve problems, but they come with a significant drawback: they are enormous. These models contain billions of parameters, which are the internal numbers the system adjusts to make sense of language. Because of their size, running them requires expensive, powerful hardware, making them difficult to use for everyday tasks or on smaller devices. To make these models more practical, researchers look for ways to shrink them without losing their ability to think clearly. One popular method is called pruning, which involves removing the least important numbers from the model to reduce its size. However, this process is tricky. If you simply delete the numbers, the model often becomes much worse at its job. If you try to fix the model by recalculating all the numbers at once to compensate for the loss, the math becomes so heavy that it is impossible to do on modern computers.
A team of researchers has developed a new approach called OPTIMA to solve this specific problem. Their goal was to find a middle ground between the fast but inaccurate method of simply deleting numbers and the too-slow method of trying to fix everything at once. They realized that after deciding which numbers to remove, the task of fixing the remaining numbers could be broken down into many tiny, independent problems. Instead of trying to solve the entire model's math in one giant, impossible step, they treated each column of numbers in the model separately. They discovered that while each column had its own specific constraints based on which numbers were removed, they all shared a common underlying structure. This allowed them to use a specialized mathematical tool, known as a quadratic program, to find the perfect replacement values for each column. Because the structure was the same for every column, they could solve thousands of these tiny problems at the same time on a single computer chip, rather than one by one.
The researchers tested this method on several different families of large language models, including popular ones like LLaMA and Gemma. They applied their technique to models that had already been pruned by other existing methods, essentially acting as a final polish to improve the results. In most cases, this extra step made the models significantly more accurate. For example, when they tested the models on a variety of standard tasks, the new method improved the average score by up to nearly four points in some difficult scenarios, particularly when the models were made very small. The method worked well across different types of pruning patterns and model sizes, from smaller one-billion-parameter models up to very large ones with billions of parameters. It is worth noting that while the method improved accuracy, it did take longer to run than the fastest existing methods, requiring about forty hours to process an eight-billion-parameter model on a single high-end graphics card. However, the researchers emphasized that this is a one-time cost done before the model is used, and the resulting model runs just as fast as the original pruned version.
The study also highlighted that this approach is not a magic fix for every situation. In a few specific cases, the new method did not improve the model's performance and occasionally made it slightly worse, suggesting that the interaction between the pruning method and the correction step can be complex. Furthermore, the researchers found that the method works best when the initial pruning leaves a lot of room for improvement, such as when the model is made very sparse. They also observed that the method's success depends on the specific type of model and how the pruning was originally done. Despite these limitations, the work demonstrates that it is possible to use rigorous mathematical optimization to repair pruned models in a way that is both practical and scalable. By breaking a massive, impossible problem into thousands of small, parallel tasks, the researchers showed that we can keep large language models small and efficient without sacrificing their intelligence. This opens the door for more capable artificial intelligence to run on hardware that is currently too weak to support it, bringing powerful language tools closer to everyday use.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.