DOT-MoE: Differentiable Optimal Transport for MoEfication
DOT-MoE is a novel framework that converts pre-trained dense LLMs into efficient Mixture of Experts models by formulating neuron decomposition as a differentiable optimal transport problem, enabling end-to-end learning of assignments that significantly outperforms existing heuristic methods while retaining 90% of the original performance with 50% fewer active parameters.
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) where every single book is open and being read at the same time for every single question you ask. While this makes the library very smart, it's also incredibly slow and expensive to run because you're burning energy reading books you don't actually need.
To fix this, scientists created a "Mixture of Experts" (MoE) system. Think of this as hiring a team of specialists. Instead of the whole library reading your question, you only ask a few specific experts who know the answer. This saves energy and speeds things up.
The Problem: How do you pick the experts?
The paper explains that turning a standard "all-reads-all" library into a "specialist" team is tricky.
- Old methods were like randomly shuffling books into different rooms and hoping the right people end up in the right place. Or, they would look at the books' covers (weights) and guess which ones belong together.
- The issue: These methods often separate the process of "sorting the books" from "training the librarian." They sort the books first, then try to teach the librarian how to find them. This often leads to a messy team where experts aren't truly specialized, or the librarian gets confused.
The Solution: DOT-MoE (The Smart Sorter)
The authors propose a new method called DOT-MoE. They treat the problem of sorting books into specialist rooms like a logistics puzzle called "Optimal Transport."
Here is the analogy:
Imagine you have a warehouse full of thousands of workers (neurons) and a set of construction sites (experts). Each site needs exactly the same number of workers, and every worker must go to exactly one site.
- The Goal: You want to send the right workers to the right sites so the buildings get built perfectly, just like the original warehouse did.
- The Innovation: Instead of guessing or using a random list, DOT-MoE uses a mathematical "traffic controller" (Differentiable Optimal Transport). It calculates the most efficient way to move every worker to a site, ensuring no site is overcrowded and no worker is left behind.
- The "Secret Sauce": The system learns while it sorts. It doesn't just sort the books and then hire a librarian. It figures out which books go to which room at the same time it teaches the librarian how to pick the right room for every new question. They learn together, adjusting their positions until everything fits perfectly.
Why is this better?
The paper claims that by using this "smart logistics" approach:
- It keeps the smarts: The new specialist team retains about 90% of the original library's intelligence.
- It cuts the cost: It uses only 50% of the active "brain power" (parameters) needed to answer a question.
- It's stable: Unlike other methods that might crash or perform poorly when trying to split the team, this method ensures a balanced and functional team from the start.
The Result
In their tests, this new method worked better than previous ways of splitting the library or randomly picking experts. It proved that if you treat the organization of a neural network like a precise, solvable logistics problem, you can make giant AI models much faster and cheaper to run without losing their ability to understand and generate language.
In short: They found a way to reorganize a giant, slow AI brain into a fast, efficient team of specialists by using a mathematical "traffic controller" that sorts the brain's parts perfectly while teaching the system how to use them, all in one smooth process.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.