Learning Fine-grained Parameter Sharing via Sparse Tensor Decomposition
This paper introduces Fine-grained Parameter Sharing (FiPS), a unified framework that compresses transformer MLPs by jointly optimizing cross-block parameter sharing, low-rank factorization, and sparsity, achieving significant model size reduction with minimal accuracy loss on both Vision Transformers and Large Language Models.
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 library of books (a large AI model) that is incredibly smart but takes up so much space that it won't fit on a regular bookshelf (a phone or small computer). You want to shrink the library down without losing the stories inside.
For a long time, scientists tried to compress these libraries by just cutting out pages (pruning) or writing the books in a smaller font (quantization). But this paper introduces a new, clever strategy called FiPS (Fine-grained Parameter Sharing).
Here is how FiPS works, explained through simple analogies:
1. The Problem: Too Many Identical Rooms
Think of a Transformer model (like the ones powering modern AI) as a giant hotel with many identical floors. On every floor, there is a "kitchen" (called an MLP layer) where the cooking happens.
- The Old Way: Usually, every floor has its own unique set of 100 chefs, each with their own unique recipes. Even though the floors look the same, the chefs don't talk to each other. This wastes a lot of space.
- The FiPS Idea: FiPS says, "Why does every floor need 100 unique chefs? Let's hire a Shared Master Chef (a shared basis) who knows the core recipes, and then have a few Local Assistants (sparse projection matrices) on each floor who tweak those recipes slightly for that specific floor."
2. The Secret Sauce: The "Shared Master Chef" and "Sparse Assistants"
FiPS does three things at once to shrink the model:
- The Shared Master Chef (Low-Rank Factorization): Instead of 100 unique chefs per floor, FiPS creates one "Master Chef" who knows the fundamental techniques. This chef is shared across a group of floors.
- The Sparse Assistants (Sparsity): The Local Assistants on each floor don't need to know every recipe the Master Chef knows. They only need to know a few specific ones to make the dish for that floor. FiPS forces these assistants to be "sparse," meaning they only keep the essential connections and ignore the rest. It's like giving an assistant a menu with only 3 items instead of 100.
- The Teamwork (Cross-Block Sharing): FiPS groups these floors together. It looks at the Master Chef and the Assistants for a whole group of floors and figures out the best way to share the workload so the whole hotel runs efficiently.
3. How They Built It (The Construction Process)
The researchers didn't just guess; they used a mathematical tool called SVD (Singular Value Decomposition) to find the "Master Chef" automatically.
- Imagine taking all the recipes from a group of floors, mixing them together, and finding the most common, essential ingredients.
- They then assigned these ingredients to the Master Chef.
- Finally, they trained the Local Assistants to use only the specific ingredients they needed, throwing away the rest (pruning).
4. The Results: Smaller, Faster, and Still Smart
The paper tested this on two types of AI:
- Vision Transformers (ViTs): These are AIs that look at pictures.
- Result: They shrunk the model by up to 33% (and up to 57% with a little extra tuning) without the AI forgetting how to recognize objects. It's like shrinking a suitcase by a third but still fitting all your clothes.
- Large Language Models (LLMs): These are AIs that write and talk.
- Result: They shrunk these models by 20% and made them smarter than other shrinking methods.
- The "Magic Trick": When they combined FiPS with a technique called "Quantization" (writing numbers in a very compact code), they achieved an 8x compression (making the model 8 times smaller) while keeping the AI's language skills much better than if they had just used compression alone.
5. Why This Matters
The paper claims that FiPS is a practical, "plug-and-play" way to make big AI models small enough to run on devices like phones or laptops without losing their intelligence. It proves that by sharing the "brainpower" (parameters) between different parts of the AI and being very selective about what information is kept (sparsity), we can build efficient AI that doesn't need a supercomputer to run.
In short: FiPS is like realizing that instead of every room in a house needing its own full set of tools, you can have one shared toolbox in the hallway and just a few specific tools in each room. The house works just as well, but it takes up much less space.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.