← Latest papers
💬 NLP

Tying the Loop -- Tied Expert Layers in Mixture-of-Experts Language Models

This paper introduces Expert Tying, a method that shares expert parameters across consecutive transformer layers in Mixture-of-Experts models to nearly halve memory requirements with negligible impact on performance, thereby significantly improving the compute-to-memory trade-off for training and scaling large language models.

Original authors: Martin Jaggi

Published 2026-06-16
📖 5 min read🧠 Deep dive

Original authors: Martin Jaggi

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: The "Huge Library" vs. The "Small Reader"

Imagine you are building a giant, super-smart robot librarian (a Large Language Model) to help people write stories or solve problems.

To make this librarian incredibly smart, you give them access to a massive library with billions of books (these are the "parameters" or "experts"). However, to keep the librarian fast and efficient, you decide that for every single sentence they read, they only open one or two specific books to find the answer. This is called a Mixture-of-Experts (MoE) model.

The Catch: Even though the librarian only reads a tiny fraction of the books at any given moment, you still have to keep the entire library physically present in the room (in the computer's memory). If the library has 1,000 books but the librarian only opens 10 at a time, you still need a room big enough to hold all 1,000 books. This makes the system very expensive and slow because the "room" (memory) is huge, even though the "reading" (computation) is small.

The Solution: "Tying the Loop"

The authors propose a clever trick called Expert Tying.

Imagine the librarian works in a long hallway with 32 rooms (layers). In a standard setup, every room has its own unique set of 1,000 books.

  • Old Way: Room 1 has Books A–Z. Room 2 has Books A–Z (but a different copy). Room 3 has Books A–Z (another copy). You need 32 sets of books.
  • New Way (Expert Tying): You realize that the books in Room 1, Room 2, and Room 3 are actually doing very similar work. So, you tie them together. You put a single set of books on a rolling cart that moves from Room 1 to Room 2 to Room 3. The librarian uses the same physical books in all three rooms.

The Result: You don't need 32 sets of books anymore; you only need 1 set for every 3 rooms. This cuts the size of the "library" (memory) by nearly half, but the librarian still reads just as fast because they are still only opening one book at a time.

The Secret Sauce: What to Tie and What to Keep Separate

The researchers didn't just tie everything together blindly. They ran experiments to figure out exactly what could be shared without making the librarian stupid.

Think of a room in the library as having four parts:

  1. The Books (Experts): The actual knowledge.
  2. The Librarian's Glasses (Attention): How they look at the words.
  3. The Index Card (Router): Which book to pick.
  4. The Desk (Normalization): How they organize the notes.

The Discovery:

  • Sharing the Books is Fine: You can share the same books across multiple rooms. The librarian can still do great work because the Glasses (Attention) are different in every room. The glasses change how the librarian looks at the words, which makes each room feel unique even if the books are the same.
  • Don't Share the Glasses: If you share the glasses too, the librarian gets confused and the quality drops.
  • The "Prelude and Coda" Rule: The very first room (where the librarian gets the book) and the very last room (where they write the answer) need their own unique books. If you force the librarian to use the shared cart for the start and end, the quality suffers. So, keep the first two and last two rooms unique, and tie the middle ones together.

The Results: Faster, Smaller, and Just as Smart

The paper tested this on three famous AI models (OLMoE, Qwen3, and DeepSeek). Here is what happened:

  1. Memory Savings: By tying the experts in groups of 4, they reduced the total memory needed by 40% to 50%. It's like cutting the size of the library in half.
  2. No Brain Damage: The "smartness" (perplexity and accuracy) barely dropped. It was almost as good as the original, huge model.
  3. Speed Boost: Because the computer didn't have to load as many books into memory, the training process got 23% faster.
  4. The "Reinvestment" Trick: Since they saved so much space by sharing books, they took that saved space and added more books to the shared cart. This created a model that was actually better than the original, even though it used the same total amount of memory.

Summary Analogy

Imagine a construction crew building a skyscraper.

  • Old Way: Every floor has its own unique, fully stocked toolbox. The truck carrying all the toolboxes is huge and expensive.
  • New Way (Tying the Loop): Floors 3 through 28 all share the same toolbox that gets passed up the elevator. Floors 1, 2, 29, and 30 keep their own special toolboxes.
  • Outcome: The truck is now half the size (saving money and space), the crew moves faster because they aren't hauling extra weight, and the building is just as strong. In fact, because they saved money on the truck, they bought better tools for the shared toolbox, making the building even stronger.

The Bottom Line: You can make AI models much smaller and faster by reusing the same "knowledge" across several layers of the model, as long as you keep the "glasses" (attention) unique for each layer and leave the very first and last layers alone.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →