Scalable Knowledge Editing for Mixture-of-Experts LLMs via Tensor-Structured Updates
This paper proposes a scalable, closed-form knowledge editing framework for Mixture-of-Experts LLMs that leverages tensor structures and the Woodbury matrix identity to achieve per-expert updates with up to 6x acceleration while maintaining editing quality comparable to dense-layer baselines.
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
The Big Problem: Updating a Giant Library
Imagine a Large Language Model (LLM) as a massive, super-smart librarian who knows almost everything. However, once the librarian is trained, their knowledge is "frozen." If the world changes (e.g., a new president is elected, or a scientific fact is corrected), the librarian keeps giving old, wrong answers.
Usually, to fix this, you have to send the librarian back to school for a long, expensive retraining session. This is slow, costs a fortune in computer power, and risks making the librarian forget other things they already knew.
Knowledge Editing is a shortcut. Instead of retraining the whole librarian, you just go in and swap out a specific file in their memory. Previous methods worked great for "dense" models (where every part of the brain is active), but they struggled with modern models.
The New Challenge: The "Expert" Team
Modern AI models (like the ones used by OpenAI or DeepSeek) don't use a single giant brain. They use a Mixture-of-Experts (MoE) architecture.
- The Analogy: Imagine instead of one giant librarian, you have a team of 100 specialized experts (a historian, a coder, a chef, a doctor, etc.).
- How it works: When you ask a question, a "router" (a manager) looks at the question and only wakes up the 4 or 8 experts who are relevant. The others stay asleep.
- The Problem: If you want to update a fact (e.g., "The capital of France is Paris"), the old editing tools didn't know how to talk to this specific team. They tried to treat the whole team as one big blob, which is inefficient and messy. The existing method to fix this (called MoE-Edit) was like trying to update the experts one by one, in a long line, which took forever.
The Solution: MoTE (The Smart Team Manager)
The authors propose a new method called MoTE (Mixture-of-Experts Tucker Editor). They solved the problem using two main tricks:
1. The "Shortcut" Math (Woodbury Identity)
The old way to update the experts required solving a massive, complex math puzzle that involved inverting a huge matrix (a grid of numbers). It was like trying to solve a Sudoku puzzle with a million squares.
The authors used a mathematical trick called the Woodbury Identity.
- The Analogy: Instead of solving the million-square puzzle, they realized they only needed to solve a tiny 50-square puzzle that represents the changes you want to make.
- The Result: This turns a task that takes hours into one that takes minutes. They can update the knowledge without ever needing to "wake up" or calculate the full weight of every single expert at once.
2. Respecting the Team Structure (Tensor Decomposition)
The second trick was realizing that the experts aren't random; they are related. They were trained together, so their knowledge is connected in a specific 3D shape (like a block of cheese rather than a flat sheet of paper).
- The Analogy: Imagine the experts are a choir. If you want to change the pitch of the song, you don't just shout at one person; you adjust the whole group's harmony.
- The Method: The authors used Tucker Decomposition. This is a way of compressing the "block of cheese" (the expert weights) into a smaller, core shape that captures the essence of the group.
- The Benefit: By editing this smaller "core" shape, they automatically update all the experts in a way that respects their relationships. This prevents the model from getting confused or "forgetting" other things.
The Results: Fast and Accurate
The paper tested MoTE on several modern AI models (like Qwen and GPT-OSS) and compared it to the previous best method (MoE-Edit) and standard retraining.
- Speed: MoTE is up to 6 times faster than the previous best method. It can edit 1,000 facts in a fraction of the time.
- Quality: It is just as good at fixing the facts (Efficacy) and not breaking other parts of the model (Specificity) as the slower methods.
- Efficiency: It achieves this by only doing the heavy math calculation once at the very end of the process and then spreading that result to the other layers, rather than recalculating for every single layer.
Summary
The paper introduces MoTE, a tool that lets us update modern, "expert-based" AI models quickly and accurately. It does this by:
- Using a math shortcut to avoid doing unnecessary heavy calculations.
- Respecting the team structure of the experts so the updates make sense.
This means we can keep AI models up-to-date with the real world without needing to retrain them from scratch, saving massive amounts of time and energy.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.