← Latest papers
🤖 machine learning

Learning Subset-Shared Invariances for Domain Generalization with Mixture-of-Experts

This paper proposes a Domain Generalization framework that replaces the restrictive assumption of global invariance with "subset-shared invariance" implemented via a mixture-of-experts architecture, thereby improving generalization to unseen targets by modeling predictive structures that are stable only within specific domain subsets rather than across all domains.

Original authors: Tien-Hung Nguyen, Tien-Dat Tran, M. -Duong Nguyen, Kok-Seng Wong

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

Original authors: Tien-Hung Nguyen, Tien-Dat Tran, M. -Duong Nguyen, Kok-Seng Wong

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 "One-Size-Fits-All" Trap

Imagine you are training a robot to recognize animals. You show it pictures from three different "worlds":

  1. World A: Photos of real lions in the savanna.
  2. World B: Cartoon drawings of lions.
  3. World C: Black-and-white sketches of lions.

Traditional AI methods try to find one single rule that works for all three worlds simultaneously. They say, "To be a lion, you must have a mane, a tail, and a specific nose shape, regardless of whether you are a photo, a cartoon, or a sketch."

The paper argues that this approach is flawed. It's like trying to force a square peg into a round hole.

  • In the Photo world, the robot might learn that "golden fur" is a key feature.
  • In the Sketch world, "golden fur" doesn't exist; only "lines" matter.
  • If the robot tries to find a rule that fits both "golden fur" and "lines" perfectly at the same time, it gets confused. It might end up ignoring the fur entirely (because it's not in sketches) or ignoring the lines (because they aren't in photos).

The authors call this the "Global Invariance" problem. By forcing the AI to be perfectly consistent across every different world, it accidentally throws away useful clues that only exist in some of those worlds. The more different worlds you add, the more the robot forgets how to recognize the animal, because it's trying to be too perfect.

The Solution: The "Specialized Team" (MESSI)

Instead of one robot trying to be an expert at everything, the authors propose a team of specialists working together, called MESSI (Mixture of Experts with Subset-Shared Invariances).

Think of MESSI as a restaurant kitchen with a Head Chef (the Router) and several specialized cooks (the Experts).

  1. The Router (The Head Chef): When an order comes in (a new picture), the Head Chef looks at it and decides, "This looks like a sketch. I'll send it to the Sketch Specialist. This looks like a photo. I'll send it to the Photo Specialist."
  2. The Experts (The Specialists):
    • Expert 1 only learns from Photos and Cartoons. They align their rules to make sure they agree on what a "lion" looks like in those two worlds. They ignore the Sketches.
    • Expert 2 only learns from Sketches and Cartoons. They align their rules for those two.
    • Expert 3 might handle a different combination.

The Magic Trick: The system doesn't force Expert 1 to agree with Expert 2. It only forces the experts to agree with each other on the specific groups of worlds they are assigned to. This way, the "golden fur" rule is preserved for the Photo expert, and the "line" rule is preserved for the Sketch expert.

How It Works in Practice

The paper introduces a few clever mechanisms to make this team work:

  • Routing-Conditioned Alignment: The system doesn't just guess which expert handles which picture. It learns to say, "For this specific type of lion in this specific world, Expert A is the best match." It creates a soft map where different experts handle different "subsets" of the data.
  • Keeping Them Honest: To make sure the experts don't all become lazy and do the exact same thing (which would defeat the purpose), the system has a "Diversity Loss." It's like a manager telling the cooks, "You two are doing the exact same recipe. Try to find a different way to solve the problem!" This ensures each expert learns a unique, useful skill.
  • Balancing the Load: The system also makes sure no single expert gets overwhelmed while others sit idle. It ensures the work is spread out fairly.

The Results: Why It's Better

The authors tested this on standard AI benchmarks (like recognizing objects in different styles of images).

  • The Old Way: As they added more and more different types of images (more "worlds"), the traditional AI got worse. It was like trying to speak a language that is a perfect mix of English, French, and Japanese—it ended up sounding like gibberish.
  • The MESSI Way: As they added more worlds, MESSI stayed strong. Because it didn't force a single, rigid rule, it could adapt. It realized, "Okay, for this group of images, I'll use Rule A. For that group, I'll use Rule B."

The Main Takeaway

The paper's core message is simple: Don't force AI to find one perfect rule that works everywhere.

Instead, let the AI learn that the world is made of different "neighborhoods." In some neighborhoods, certain rules apply. In others, different rules apply. By using a team of specialists who only agree on the rules for their specific neighborhood, the AI becomes much smarter and more robust when it encounters a completely new, unseen world.

It's the difference between a generalist who knows a little bit about everything but masters nothing, and a team of specialists who know exactly how to handle the specific situations they are assigned to.

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 →