LEAP: Learnable End-to-End Adaptive Pruning of Large Language Models
The paper introduces LEAP, a learnable end-to-end adaptive pruning method that utilizes a per-weight Bernoulli-via-Gumbel-sigmoid relaxation to enable tractable unstructured sparsity learning in large language models, significantly outperforming existing layer-wise baselines in zero-shot accuracy at high sparsity levels.
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 or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a massive, incredibly smart library (a Large Language Model) that knows almost everything. But this library is so huge that it takes up an entire warehouse, requires a giant power plant to run, and is too slow for anyone to actually use on a regular computer.
To fix this, you want to throw away 50% to 60% of the books (the "weights" or connections in the model) to make it smaller and faster. The goal is to keep the library just as smart, even with half the books.
This is where the paper LEAP comes in. Here is the story of how they solved the problem, explained simply:
The Problem: The "Too Many Choices" Trap
For a long time, scientists tried to cut out books using two main strategies:
The "Layer-by-Layer" Approach (Old Way): Imagine a librarian looking at one shelf at a time and deciding, "This book looks useless, throw it out." They do this for every shelf without talking to the other shelves.
- The Flaw: Sometimes a book looks useless on its own shelf but is actually crucial for a story that spans the whole library. By looking at shelves in isolation, this method accidentally throws away important connections, making the library less smart.
The "Pattern" Approach (The Newer, Broken Way): Recently, some researchers tried to look at the whole library at once. They said, "Let's learn exactly which books to keep." But they tried to do this by grouping books into small sets (like 4 books at a time) and asking, "Which pattern of these 4 should we keep?"
- The Flaw: This works great for small groups. But if you try to do this for a whole row of 4,000 books (which is what modern AI models have), the number of possible "patterns" becomes a number so huge it's impossible to write down. It's like trying to list every possible combination of lottery numbers for a billion tickets. The computer chokes; the math breaks.
The Solution: LEAP (The "Individual Vote" System)
The authors of this paper, LEAP, realized they needed a new way to vote on which books to keep without getting overwhelmed by the math.
Instead of asking, "Which group pattern do we keep?" (which is impossible for huge groups), they asked a much simpler question for every single book: "Should this specific book stay or go?"
- The Analogy: Imagine a massive election where every single voter (every weight in the model) gets a tiny ballot. Instead of voting for a complex "team strategy," they just vote "Yes" (keep) or "No" (discard).
- The Magic Trick: To make this work, they used a mathematical trick (called "Gumbel-sigmoid") that lets the computer "guess" the votes smoothly at first, and then slowly make those guesses harder and sharper until every vote is a clear "Yes" or "No."
How They Did It (The Recipe)
They didn't start from scratch. They used a smart starting point:
- The Warm Start: They first used a quick, simple method (called Wanda) to get a rough idea of which books were likely useless. They used this as a "head start" so the computer didn't have to guess blindly.
- The Training: They let the computer "learn" the best set of votes by reading a small amount of text (a calibration stream) and adjusting the "Yes/No" votes to keep the library's intelligence high.
- Freezing the Books: Crucially, they didn't change the words inside the books (the model weights). They only changed the decision of which books to keep. This keeps the library's original "personality" and knowledge intact, just in a smaller package.
The Results: Smarter, Faster, Leaner
They tested this on five different famous AI models (ranging from small to very large) and cut them down by 50% and 60%.
- The Scorecard: They compared LEAP against the best existing methods.
- The Win: LEAP was consistently better. On average, it improved the model's accuracy by 2.59 points over the previous best method. In some cases, the improvement was as high as 5.40 points.
- The Speed: Because they cut the model in a way that fits perfectly with new, fast computer chips (GPUs) designed for this exact job, the resulting model runs much faster without losing its smarts.
Why This Matters
Before this, if you wanted to make a huge AI model smaller and faster, you had to choose between:
- Option A: Keep it accurate but huge and slow.
- Option B: Make it small and fast, but dumb.
LEAP shows you can have your cake and eat it too. It provides a practical way to shrink these massive AI brains by half, keeping them just as smart, so they can run on regular computers instead of needing a supercomputer.
In short: LEAP is a new, smarter way to edit a giant AI model by letting every single connection vote on whether it should stay, resulting in a smaller, faster, and still very intelligent AI.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.