# SAME: Stability-Aware Embedding Extraction in Mixture-of-Experts Language Models

*Shufan Yang, Zifeng Cheng, Zhiwei Jiang, Hao Wang, Miao Xue, Changhui Sun, Cong Wang, Ao Zhou, Qing Gu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152895) · [Open on the map](../papers.html#p152895)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Mixture-of-Experts Data Mixing](../pgroup/305.md) · Type: new method · Keywords: MoE embedding stability, sentence embedding extraction, semantic textual similarity, routing stability, Mixture-of-Experts

## Summary
SAME is a training-free framework that improves embedding stability in MoE language models by dynamically allocating experts and adjusting outputs.

## Explained to a 5-year-old
Computers can read sentences and turn them into numbers so they can compare how similar they are. A big computer model called a language model does this, but it has many small parts called experts. These experts help the model understand different kinds of words and meanings. Sometimes the numbers for two sentences that mean the same thing are far apart, which makes the computer confused. The paper looks at why this happens and finds that some parts of the brain are less stable than others. It then changes how the brain works so that similar sentences get closer numbers, making the computer better at understanding meaning.

## Explained to a 5-year-old, longer
Computers can read sentences and turn them into numbers so they can compare how similar they are. A big computer model called a language model does this, but it has many small parts called experts. These experts help the model understand different kinds of words and meanings. Sometimes the numbers for two sentences that mean the same thing are far apart, which makes the computer confused. The paper looks at why this happens and finds that some experts are more stable than others. It also discovers that the stability changes from one layer of the model to another. To fix this, the authors adjust how many experts are used in each layer, using fewer when stability is low. They also reduce the influence of some experts that tend to be less stable. All of this is done without training the model again, so it works right away. The changes help the numbers for similar sentences get closer together. This makes the computer better at tasks like judging whether two sentences have the same meaning. In the end, the method improves the quality of the numbers that represent sentences for many different language models.

## For a technical reader
Extracting sentence embeddings from mixture-of-experts (MoE) language models often yields inconsistent representations for semantically similar texts. The authors observe that routing stability varies across layers and that shared versus routed experts have different stability characteristics. They propose a dynamic allocation scheme that reduces the number of activated experts in less stable layers and attenuates the contribution of routed experts. The technique is training-free, integrates with existing extraction pipelines, and adds no extra inference overhead. Experiments on semantic textual similarity benchmarks show consistent improvements in embedding quality across multiple MoE backbones.

## Problem
Extracting sentence embeddings from MoE-based language models often suffers from instability, where semantically similar texts receive dissimilar representations. Existing embedding extraction methods ignore this stability requirement, leading to lower embedding quality.

## Method
The approach measures layer-wise routing stability by comparing expert activation overlap before and after injecting Gaussian noise, then assigns fewer activated experts to less stable layers. It also reduces the influence of routed experts to mitigate their instability, all without any training.

## Results
The approach consistently improves embedding quality across several MoE backbones on semantic textual similarity benchmarks.

## Contributions
It identifies routing stability variations across layers and differing stability of shared versus routed experts, and proposes a dynamic expert allocation and output adjustment scheme that enhances embedding stability without training or extra inference cost.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152895)
