SLiM: One-shot Quantization and Sparsity with Low-rank Approximation for LLM Weight Compression
SLIM is a one-shot compression framework for large language models that holistically integrates hardware-friendly uniform quantization, semi-structured sparsity, and a novel saliency-based low-rank approximation method to significantly improve accuracy and inference speed while eliminating the need for computationally expensive retraining.
Large language models are the engines behind a new generation of artificial intelligence, capable of writing stories, solving problems, and holding conversations with remarkable fluency. These systems are built from billions of mathematical connections, or parameters, that work together to process information. While this massive scale allows them to understand nuance and context, it also creates a heavy burden: the models require enormous amounts of computer memory and processing power to run. This makes them difficult to use on everyday devices like smartphones or laptops, often restricting them to expensive, specialized data centers. For years, researchers have tried to shrink these models to make them more accessible, but the process has been a trade-off. Techniques that compress the models often degrade their intelligence, forcing a choice between a smaller, faster program and a smart, accurate one.
A team of researchers has developed a new method called SLIM that aims to break this trade-off. Their work focuses on a specific challenge: how to compress a large language model in a single step, without the need for expensive retraining, while keeping its performance nearly identical to the original. The researchers combined three distinct compression techniques—reducing the precision of the numbers the model uses, removing unnecessary connections, and adding small, flexible adjustments—to create a unified process. The result is a system that can shrink a model significantly while maintaining, and in some cases even improving, its ability to answer questions and generate text.
The core difficulty the researchers faced was that compressing a model usually introduces errors. Imagine trying to fit a large, detailed painting into a small frame; if you simply cut off the edges or squish the image, you lose important details. In the digital world, this happens when researchers reduce the number of bits used to store numbers or when they delete parts of the model's structure. Previous methods tried to fix these errors by retraining the model on vast amounts of data, a process that is slow and computationally expensive. Other methods attempted to fix the errors in a single step but often failed when trying to combine different compression techniques, leading to a significant drop in quality.
The SLIM framework approaches this problem by treating the compression process as a coordinated sequence of three steps. First, the researchers simplified the numbers inside the model. Instead of using complex, variable scales for different parts of the data, they developed a new way to apply a single, uniform scale to entire groups of numbers. This makes the process much faster and easier for standard computer hardware to handle. However, they knew this uniform approach would still leave some inaccuracies, so they immediately moved to the second step: removing the least important connections. They used a proven method to identify which parts of the model were doing the least work and pruned them away, creating a sparse structure that is faster to process.
The third step is where the innovation truly shines. After simplifying the numbers and removing connections, the model inevitably loses some of its original precision. To recover this lost accuracy without retraining the whole system, the researchers added small, low-rank adapters. Think of these adapters as a set of fine-tuning tools that can be attached to the compressed model to correct its mistakes. The researchers devised a unique mathematical way to calculate exactly what these tools should be, based on how much each part of the model contributed to the errors. By using a specific function that measures the importance of different parts of the data, they could mathematically derive the perfect settings for these adapters in a single pass. This allowed them to compensate for the errors introduced by the first two steps, effectively restoring the model's intelligence.
The results of this approach were tested on several large language models, including versions with 7 billion and 13 billion parameters. When the researchers applied their method, they found that the compressed models performed significantly better than previous attempts. For a 7-billion-parameter model, the new method improved accuracy by up to 5.66 percent compared to other one-shot compression techniques. In some cases, the compressed models were even more accurate than the original, uncompressed models when measured by the same amount of memory they occupied. This suggests that the method does not just preserve quality; it can actually optimize the model's efficiency to a degree that the original, bulky version could not achieve within the same resource limits.
Beyond accuracy, the method delivers substantial speed improvements. Because the models are both smaller and structured in a way that modern graphics cards can process efficiently, they run much faster. On a standard consumer graphics card, the compressed models ran up to 4.3 times faster than the original dense models. On more powerful professional hardware, the speedup was still significant, reaching 3.8 times faster. Additionally, the memory required to run these models dropped dramatically, with some configurations using less than a quarter of the memory needed for the original dense versions. This reduction in memory footprint means that models which previously required massive servers could potentially run on more accessible hardware.
The researchers also explored whether a small amount of additional training could help even further. They found that by allowing the small adapters to adjust slightly on a tiny amount of data, the model's accuracy could be boosted by another 1.66 percent. This optional step offers a way to squeeze out even more performance if the application allows for a brief period of adjustment, but the core method remains effective without it. The team compared their work against other leading methods and found that their approach consistently outperformed them, particularly when combining different types of compression. While other methods struggled to handle the combination of removing connections and reducing number precision simultaneously, SLIM managed to integrate them seamlessly.
This work represents a significant step forward in making large language models practical for a wider range of devices. By solving the problem of how to compress a model in a single step without sacrificing its intelligence, the researchers have provided a pathway for deploying advanced artificial intelligence on hardware that is more common and affordable. The method does not rely on complex, custom hardware or massive retraining efforts, making it a viable solution for real-world applications. As the demand for efficient and accessible artificial intelligence grows, techniques like SLIM offer a way to balance the need for speed and memory with the demand for high-quality, intelligent performance.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.