Manuscript Offprint
arXiv:2610.41039Characterizing Recoverable Expert-Utilization Signatures in Fine-Tuned Mixture-of-Experts LLMs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs
Fei Wang
University of Toronto
Department of Electrical and
Computer Engineering
Toronto, Ontario, Canada
Baochun Li
University of Toronto
Department of Electrical and
Computer Engineering
Toronto, Ontario, Canada
Bo Li
Hong Kong University of Science and Technology
Department of Computer Science and Engineering
Hong Kong, China
Abstract
As Mixture-of-Experts (MoE) large language models become increasingly deployed in distributed computing environments—from federated learning to edge-cloud systems—their unique architectural properties harbor a new, underexplored landscape of security vulnerabilities. In this work, we move beyond traditional textual analysis to uncover structural memorization: a novel vulnerability where a fine-tuned model memorizes not just its training data, but also the specific internal pathway used to process it, creating a consistent and characteristic routing fingerprint unique to the training process. We provide comprehensive empirical evidence that structural memorization is a tangible phenomenon, demonstrating how it emerges consistently even from just a few dataset samples and how its intensity is directly influenced by the selection of trainable modules.
We show that these memorized expert pathways can be stealthily recovered by an adversary through the model's unconditional generation process, with only access to the model's routing and output logits, requiring no prior knowledge of the fine-tuning data or training procedures. In distributed deployments, this vulnerability is amplified as routing information becomes exposed at multiple trust boundaries, including federated aggregation points, edge-cloud interfaces, and multi-tenant monitoring systems. This recovery process exposes a critical blind spot: traditional membership inference metrics adopted by the literature to measure model memorization, when viewed through the lens of expert routing, fail to effectively identify memorized data corresponding to these structural pathways. To better characterize this detection gap, we devise composite metrics that combine reference model tail likelihood with complexity-aware normalization, significantly improving the detection of memorized routing structures. This discovery enables adversaries to pinpoint critical experts shaped by the fine-tuning process, whether dominant or dormant, and execute sophisticated targeted attacks like router manipulation or backdoor injection under realistic distributed threat scenarios where attackers lack training data access but can observe routing patterns across system components.
Keywords
Mixture-of-Experts, Large Language Models, Distributed AI Systems, Federated Learning, Membership Inference, Fine-Tuning, Security, Privacy
1 Introduction
The deployment of large language models (LLMs) in distributed computing environments has become increasingly prevalent as organizations seek to balance computational efficiency with data privacy. Federated learning enables collaborative model training across geographically distributed data silos without centralizing sensitive information [18, 22], while edge computing deployments partition models between resource-constrained devices and cloud infrastructure to minimize latency [5, 40]. Multi-tenant cloud platforms offer model fine-tuning as a service, allowing multiple organizations to customize shared base models on proprietary datasets [10, 31]. These distributed AI systems introduce complex trust boundaries where model internals, including intermediate activations and routing decisions, become exposed across multiple nodes. This distributed exposure creates novel privacy risks that extend beyond traditional centralized training paradigms.
Among modern architectures deployed in these distributed settings, Mixture-of-Experts (MoE) models have emerged as a particularly attractive solution due to their computational efficiency and scalability. MoE addresses the prohibitive inference costs associated with scaling large language models (LLMs) through a distinctive approach. In contrast to dense models that process all inputs monolithically, MoE leverages sparse activation, using a routing network to dynamically assign each token to expert sub-networks, each implemented as a feed-forward network. This approach not only yields a superior performance-to-compute ratio, but also allows experts to develop specialized knowledge, enabling the deployment of larger, more capable language models that would not otherwise be feasible with dense architectures. The sparse activation property makes MoE particularly well-suited for distributed deployments: expert parallelism allows different experts to reside on different compute nodes [7, 27], reducing per-node memory requirements while enabling horizontal scaling across clusters. This distributed nature has accelerated MoE adoption in federated learning scenarios [28] and other distributed deployment contexts. As examples, Mixtral 8×7B [17] surpasses the performance of much larger dense models such as Llama 2 (70B) and GPT-3.5 (175B) on most benchmarks, while using only a fraction of the parameters during inference (13B active out of 47B total) [17]. DeepSeek-V2 [4] is also renowned for its exceptional performance in highly technical domains, such as mathematics and code generation.
However, the sparse activation patterns that make MoE architectures efficient also create novel attack vectors that exploit the specialized nature of expert routing. Recent work has demonstrated various ways adversaries can compromise model security, ranging from degrading model performance by injecting malicious tokens that over-occupy expert buffer capacity [11] to extracting user prompts by exploiting expert buffers in expert choice routing [34, 39]. Most alarmingly, BadMoE [32] demonstrates that attackers can inject backdoors into dormant experts, which are consistently under-utilized for particular tasks, and optimize routing triggers to activate them during inference. A critical prerequisite underlying these expert-targeting attacks is identifying which experts to target. Once adversaries know the dominant or dormant experts, they can manipulate them for performance degradation or stealthy backdoor implantation to steer the model toward generating malicious or harmful outputs.
While identifying idle experts in attacks like BadMoE assumes knowledge of the target task and dataset, a more realistic and concerning threat emerges in practical distributed deployment scenarios. Organizations routinely fine-tune MoE models on proprietary datasets for domain specialization across distributed infrastructure. However, model weights are often more accessible than training data through leaks, collaborations, or open-source releases. In distributed settings, routing information becomes inherently exposed: federated participants observe routing decisions during local training, edge devices handle routing computations before cloud offloading, and multi-tenant platforms log routing statistics for resource management. This distributed exposure of routing patterns creates a fundamentally different attack surface than centralized deployments. When adversaries have access to deployed models and can observe their interactions, but lack knowledge of the fine-tuning process, training data, and target tasks, it raises a critical question: Can adversaries identify vulnerable experts that are the most or least utilized without any prior knowledge of the fine-tuning data or procedures?
In this paper, we answer this question affirmatively by introducing a novel attack that recovers the internal expert pathways in fine-tuned MoE models. Building on the well-established understanding that large language models memorize training data during both pre-training [2, 3] and fine-tuning [23, 35], and drawing from the key-value memory interpretation of feed-forward networks (FFNs) [9], we hypothesize that fine-tuning memorization manifests distinctively through expert utilization patterns in MoE blocks. To the best of our knowledge, we are the first to introduce a new and important observation: that data memorization in MoE architectures extends beyond generated text to structural memorization. We demonstrate that fine-tuning on a specific corpus imprints a characteristic fingerprint on the model's expert utilization patterns, where certain experts become consistently more active than others and more associated with memorizing the fine-tuning data. These memorized routing signatures remain accessible through ordinary model interactions, enabling adversaries to map the model's expert landscape without any knowledge of the original training data. In distributed deployments, this vulnerability becomes even more serious. Adversaries can observe routing patterns at multiple points
in the system, whether at federated aggregation points, edge-cloud interfaces, or multi-tenant monitoring systems. By aggregating these observations, they can reconstruct fine-tuning signatures even when each individual observation is incomplete.
Our investigation reveals several key properties of these structural memorization patterns. We show that expert utilization patterns form a stable signature characteristic of a particular dataset when accumulated over the fine-tuning corpus, with this distinctive pattern emerging consistently even from just a few member samples. The strength and detectability of these signatures depend critically on the fine-tuning configuration. We explore how different target linear layers in parameter-efficient fine-tuning, i.e., those in attention blocks, those in FFNs, or both, create distinct routing signature profiles with varying degrees of structural memorization. We find that attention-involved fine-tuning creates more pronounced and recoverable structural changes, while FFN-only fine-tuning produces more subtle modifications.
These findings enable us to develop a practical recovery attack against fine-tuned MoE models. We demonstrate that adversaries with gray-box access to routing and output logits can recover routing fingerprints from the fine-tuned model. Unlike traditional memorization studies that extract training data from generations [3, 19, 25, 37], we investigate how memorization manifests in the internal expert utilization patterns during token processing. While membership inference attacks (MIAs) [14] are commonly used to identify whether model outputs correspond to memorized samples from the fine-tuning corpus, we discover that existing MIA metrics [23, 30, 33, 36] fail to effectively capture the complex routing-based memorization signatures in MoE architectures. Through systematic experimentation, we find that hybrid metrics combining tail likelihood analysis with pre-trained model calibration and text complexity measures significantly improve the detection of memorized routing structures. These combinations are particularly effective at distinguishing fine-tuning memorization from both pre-training and same-domain routing patterns.
Through this methodology, we can profile memorized routing signatures and identify dominant experts for the fine-tuning dataset using remarkably few samples. We validate these findings across a diverse range of open-source MoE LLMs, from small-scale community models to large-scale commercial architectures. The ability to recover these routing fingerprints creates important security and privacy implications for distributed AI deployments. First, our signature recovery approach serves as a validation framework for membership inference attacks. Higher recovery accuracy directly reflects more effective MIA metrics that successfully filter member data, providing a novel evaluation methodology for assessing membership inference performance in MoE architectures. Second, this capability enables adversaries to identify dominant or dormant experts for specific fine-tuning tasks without accessing any actual training text. Such knowledge facilitates targeted attacks like backdoor injection into dormant experts, as demonstrated in BadMoE, but under more realistic threat scenarios where attackers lack knowledge of the original training data. Third, in distributed settings where routing information is exposed across multiple system components, our attack reveals how seemingly innocuous
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs
operational data can be exploited to breach data privacy guarantees, highlighting fundamental tensions between distributed system transparency and privacy protection.
2 Preliminaries
2.1 Mixture-of-Experts Large Language Models
The sparse MoE architecture has recently gained significant traction in the development of modern LLMs. MoE decomposes a FFN layer within a dense model into multiple individual expert sub-networks of the same size as the original layer. For each token's forward pass, a subset of experts is dynamically selected to be activated by a routing mechanism, creating sparse activation patterns that require the same memory capacity but much less compute compared to using all experts, or equivalently, a dense model of the same size. Table 1 details the specifications of the MoE models considered in this paper, including TinyMistral [21], PhiMoE [1], OLMoE [24], and Mixtral [17].
The routing mechanism in MoE models typically maps each input token to a set of selected experts. Specifically, a gating function , usually implemented as a learned linear layer, computes a score for each expert based on the token's hidden representation. These scores, referred to as router logits, are used to select the top- experts with the highest logit values. A softmax function is then applied to these selected logits to produce normalized router weights, which represent the probability of selecting each expert among the chosen set. The output of the MoE layer is computed as a weighted sum of the outputs from the selected experts processing the token. Formally, the output of MoE layer is given by
where is the hidden state of token entering MoE layer , and denotes the expert sub-network corresponding to expert in layer .
Previous work has shown that feed-forward layers actually operate as neural memories [9], where the first layer parameter matrix acts as keys and the second parameter matrix acts as values. Applied to MoE models, the projection matrices of the experts can be regarded as keys and values as well [20]:
where denotes the SiLU activation function used in modern MoE models. In this formulation, the gate and up projections jointly function as keys that determine which memory patterns to activate, with controlling neuron-level gating and producing activation weights, while the down projection serves as values storing the actual output patterns. This key-value memory interpretation helps explain structural memorization in MoE models: fine-tuning imprints characteristic expert utilization patterns that reflect the training data's structure, creating distinctive routing signatures that persist during inference.
2.2 Fine-Tuning MoE LLMs
Fine-tuning modern LLMs, including MoE architectures, is highly accessible through open-source frameworks such as LLaMA-Factory [38]

Figure 1: Illustration of a decoder layer in an MoE model, highlighting the routing mechanism and LoRA-tunable linear layers. (●): Trainable; (°): Frozen.
and OpenRLHF [15]. These platforms support a comprehensive suite of algorithms and accommodate both full-parameter fine-tuning and parameter-efficient approaches like LoRA [13], which learns two low-rank matrices A and B and adds their product to the original weights, and QLoRA [6], a LoRA variant with quantized weights that has become the de facto standard for efficient LLM fine-tuning. In this work, we employ the LLaMA-Factory framework to fine-tune MoE models using QLoRA with 4-bit quantization.
A common strategy for efficiently fine-tuning large MoE models is to update only a subset of parameters, typically the linear layers within the attention and MoE blocks. A key aspect of this approach is freezing the router, which, as recent work shows, increases stability by preserving sophisticated pre-trained routing policies that could otherwise be catastrophically disrupted on smaller, specialized datasets [29]. However, while this general practice is established, the literature lacks clear understanding of how parameter-efficient fine-tuning affects structural memorization when applied to specific linear layer configurations. These LoRA target modules include attention blocks alone with query, key, value, and output projections, MoE blocks alone containing feed-forward networks with gate, up, and down projections (also known as w1, w2, w3 in models like Mixtral) or both blocks combined in each decoder layer. We refer to these three target module sets as Attn, FFN, and Both respectively. As a wrap-up, Fig. 1 illustrates a decoder layer in an MoE LLM, highlighting the routing mechanism and LoRA-tunable linear layers within these blocks.
2.3 Memorization and Membership Inference in Fine-Tuned LLMs
Memorization in LLMs is a well-known phenomenon that enables data extraction attacks [3, 19, 25, 37]. One category of extraction is based on “extractable memorization,” which attempts to elicit training data by constructing specific prompts, such as short strings sampled from the public Internet [3] or prompts iteratively refined by another LLM [19]. However, this approach is often limited by the challenges of effective prompt design and verifying if the output
Table 1: Comparison of MoE model architectures investigated in this paper.
| Model | # Params | MoE Shape | Top-K | Highlights |
|---|---|---|---|---|
| Active / Total | ||||
| TinyMistral: M4-ai/TinyMistral-6x248M | 0.5B / 1.5B | 2 | Small-scale community-built model. | |
| OLMoE: allenai/OLMoE-1B-7B-0924 | 1.3B / 6.9B | 8 | Fully open-source for MoE research. | |
| PhiMoE: microsoft/Phi-3.5-MoE-instruct | 6.6B / 41.9B | 2 | On par with Gemini-1.5-Flash and GPT-4o-mini. | |
| Mixtral: mistralai/Mixtral-8x7B-v0.1 | 12.9B / 46.7B | 2 | Matches Llama-2-70B performance. |
is a true memorized sample. A more direct approach, termed “discoverable memorization” by [2, 25], explicitly prompts the model with prefixes taken from the training dataset to determine if the model’s generated text reveals the corresponding suffix. While easier to design and evaluate, and substantially more effective [25], this approach requires adversaries to have access to the model’s training dataset to compose prefixes of sufficient length for extraction. Although these studies have been extended to the fine-tuning setting [12, 23, 35], the unique memorization behaviors of MoE models remain not well understood. In particular, how memorization manifests in the internal routing patterns of fine-tuned MoE models remains an open question.
Frequently used as a proxy for measuring memorization, MIAs are used to determine whether a generated sample is included in a model’s training dataset by exploiting differences in model prediction behavior. Existing MIAs adopted by the literature for text memorization evaluation span from reference-free metrics such as LOSS [33], Min-K% [30], and Min-K%++ [36] that achieve state-of-the-art results, to reference-based metrics that compare likelihood differences with reference LLMs [2, 3], particularly using pre-trained models as references [23]. These existing approaches do not require training auxiliary models, making them computationally efficient for our setting. In contrast, recent reference-based MIA methods for fine-tuned LLMs train dedicated auxiliary models on constructed datasets [8, 16], which is prohibitively expensive for efficiently filtering members from generated samples and thus not considered in our work. However, as we discover, even the training-free baseline metrics are sometimes not effective enough to identify samples that correspond to memorized expert pathways from the repeated unconditional generation process needed to capture the structural signatures embedded in MoE routing patterns. We detail the specific formulations for these baselines in Section 4, where they are evaluated against our new metrics for recovering memorized expert pathways in MoE LLMs.
3 Impact of Fine-Tuning on Expert Utilization
We begin by examining the internal routing patterns and expert utilization of MoE models, which constitute key components of structural memorization. We first define expert utilization and dominant experts for our analysis, then demonstrate that fine-tuning datasets leave distinctive fingerprints on the model through expert utilization signatures — stable and robust patterns characteristic of both data distribution and fine-tuning modules. Across all experiments, we train the larger models (Mixtral and PhiMoE) on an NVIDIA GH200 Grace Hopper Superchip with 80GB memory, while
the smaller models (OLMoE and TinyMistral) utilize an NVIDIA GeForce RTX 4090 with 24GB memory. For consistency across all experiments, we use 4-bit quantization and a LoRA configuration with rank 8, alpha 16, and dropout 0.1, along with a batch size of 16.
3.1 Expert Utilization and Specialization
To quantify the internal routing patterns of MoE models, we extend the concept of domain specialization [24] to define expert utilization: the proportion of tokens routed to a particular expert during inference. We measure this by tracking which of the top-K experts are selected by the router for each token and aggregating these selections.
DEFINITION 1 (EXPERT UTILIZATION). For an MoE model M with L expert layers and N experts per layer, the Expert Utilization Matrix is a matrix where each element represents the proportion of a set of T total tokens that are forwarded to expert i at layer l.
where is the indicator function.
Applying this definition to a dataset yields a corpus-specific utilization matrix, , which aggregates the expert selections for all tokens within that corpus. Analyzing this matrix reveals the model’s learned specialization by identifying which experts are consistently utilized for that particular domain or task. Furthermore, we define dominant experts as the subset of most frequently utilized experts within each layer.
DEFINITION 2 (DOMINANT EXPERT). Let be the utilization of expert i at layer l, and be the threshold. An expert i is considered -dominant if its utilization satisfies:
Fig. 2 visualizes the expert specialization [24] of OLMoE and PhiMoE, by plotting the dominant experts as defined above for several distinct data domains, including C4, Books, Wikipedia, arXiv, and GitHub, investigated in [24]. The figure reveals that expert allocation is highly domain-specific, with minimal overlap between unrelated domains across layers. For instance, in OLMoE, the set of dominant experts for Books is largely separate from that of GitHub. The most significant overlap occurs between domains that share structural or syntactic similarities. For example, arXiv and GitHub share several dominant experts in multiple layers, likely because
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs

Figure 2: Dominant experts for different data domains, whose utilization is greater than 80% of the maximum utilization within each layer ().
both scientific papers and source code are rich in highly structured text, such as mathematical formulations and formal syntax. Furthermore, the concentration of dominance can vary significantly by domain. General domains like C4 [26], a web crawl containing diverse data, exhibit a sparse and distributed pattern of dominance, with some layers activating up to eight different experts out of 64. In contrast, specialized domains like arXiv show a much more concentrated pattern, often relying on only one to three dominant experts per layer, indicating a more focused computational pathway. The two MoE architectures also exhibit distinct dominance patterns. OLMoE, with 64 experts per layer, shows relatively concentrated expert usage with sparser activation patterns. PhiMoE, with only 16 experts per layer, displays more distributed dominance, as evidenced by the higher density of activated experts in the figure. This is a natural consequence of its smaller expert pool requiring broader utilization to cover diverse domain characteristics.
3.2 Stability of Expert Utilization Signatures
The stability of expert utilization signatures is essential for the feasibility of our recovery attack, as it ensures that the signatures we recover through unconditional generation represent genuine model fingerprints rather than sampling artifacts. To investigate this stability, we compute the expert utilization matrix by processing all tokens from random subsets of samples, using a batch size of 2048. We then assess convergence of the utilization pattern by measuring the Pearson correlation between

Figure 3: Correlation between expert utilization signatures with increasing sample sizes. Each sample in CodeAlpaca has an average length of 89 tokens, and each sample in MedGuide has an average length of 2939 tokens.
each and a reference signature derived from a sufficiently large subset of size . Fig. 3 shows the results across all MoE models, fine-tuned with all linear layers and two corresponding fine-tuning datasets: CodeAlpaca , a specialized dataset of 20K code generation samples with focused distribution, and MedGuide , an integrated dataset of 37K clinical practice guidelines from nine high-quality online medical sources across different medical domains and geographical locations.
The robustness of routing signatures varies significantly based on model characteristics, with model scale emerging as the primary factor. For the same CodeAlpaca dataset, Mixtral requires around 1000 samples to achieve a stable signature, while the other three models produce reliable signatures with fewer than 100 samples, a difference in data requirements. This suggests that larger models exhibit more complex routing behaviors that require more extensive sampling to accurately capture their true utilization patterns. The underlying expert utilization signature remains consistent, but larger models need more observations to overcome the natural variance in routing decisions during inference. Interestingly, specific MoE architectural differences, such as the number of expert layers, experts per layer, or top- policy, have negligible impact on signature stability compared to overall model scale.
The nature of the training data profoundly impacts signature robustness. The more homogeneous CodeAlpaca dataset shows smoother convergence and consistent upward trends compared to the heterogeneous MedGuide corpus, which exhibits much higher variance in correlation scores, with some points dropping significantly even between 100 and 1000 samples. This makes intuitive sense, as focused datasets with consistent patterns should yield more stable signatures. Remarkably, this occurs despite the fact that MedGuide samples are about longer than those in CodeAlpaca on average, providing substantially more tokens per sample
https://huggingface.co/datasets/codealpaca/CodeAlpaca-20K
https://huggingface.co/datasets/epfl-llm/guidelines

(a) Mixtral & CodeAlpaca
(b) OLMoE & MedGuide

(c) Mixtral & CodeAlpaca
(d) OLMoE & MedGuide
Figure 4: Expert utilization signature changes when fine-tuning different LoRA target modules. The upper panel shows the magnitude of expert utilization differences before and after fine-tuning specific target modules across all layers. The lower panel shows the similarity matrix of expert utilization signatures between models fine-tuned with different target modules, where “None” represents the pre-trained model.
for signature formation. This demonstrates that data consistency matters more than token density for creating robust signature patterns.
All combinations plateau beyond 1000 samples at very high correlations (≥ 0.98), demonstrating that expert utilization signatures stabilize robustly with remarkably few samples, i.e., less than 5% of the total dataset size for CodeAlpaca and less than 3% for MedGuide, representing a consistent characteristic of how the model processes data from a particular distribution. This efficiency provides crucial foundational support for our signature recovery methodology, as it ensures that adversaries can reliably extract meaningful routing fingerprints with minimal data collection and consistent results.
3.3 Impact of Fine-tuning Target Modules
To understand how fine-tuning different LoRA trainable modules affect expert utilization patterns, we look into the expert utilization changes before and after fine-tuning. A key finding emerges: the same training data creates subtly but consistently different expert utilization fingerprints depending on which modules are trained. Here, we present results from fine-tuning Mixtral on CodeAlpaca in the left panel and OLMoE on MedGuide in the right panel of Fig. 4, both trained for one epoch using supervised fine-tuning with a learning rate of .
As shown in Figs. 4a and 4b, the spatial distribution in the expert utilization patterns is particularly telling: when attention layers participate in fine-tuning (Attn or Both), changes concentrate dramatically in early and final layers, specifically the first 4 layers and last 8 layers in Mixtral and first 3 layers and last 5 layers in OLMoE, creating a distinctive U-shaped signature. In contrast, FFN-only fine-tuning distributes changes more evenly across layers with a slight bias toward later layers, while consistently producing the most conservative routing changes compared to attention-involved configurations.
The similarity matrix in Figs. 4c and 4d quantifies how these different approaches relate to each other. Across both models, the pre-trained model shows noticeably lower correlations with all fine-tuned versions compared to the correlations among fine-tuned models themselves. Among the fine-tuning approaches, Attn fine-tuning produces the most distinct signatures, showing the lowest correlation with the pre-trained model, while FFN fine-tuning maintains the highest similarity to the pre-trained model, consistent with the spatial patterns observed above. Comparing between architectures, OLMoE exhibits larger separation between different fine-tuning configurations than Mixtral.
This hierarchy aligns with the key-value memory interpretation that we extended to MoE architectures in Section 2.1. When attention layers are modified, they alter the hidden representations feeding into expert keys, fundamentally changing routing decisions throughout the network. This cascading effect explains why attention modifications create more dramatic routing changes: each altered hidden state propagates through subsequent layers, amplifying routing disruptions as information flows through the network. FFN modifications, while directly changing the values stored in expert memories, have minimal impact on the routing logic itself, resulting in more localized effects. Consequently, attention-based methods produce the most distinctive routing patterns.
4 Data-Free Profiling of Expert Utilization Signature
Having established that expert utilization signatures are both consistent and characteristic of fine-tuned MoE models, we now demonstrate how adversaries can exploit these properties to recover routing fingerprints through access to routing and output logits. This creates a unique attack surface: while previous work has focused on extracting memorized text, we pivot from analyzing what the model generates to analyzing how it generates. We demonstrate that an adversary can exploit the model's "idle state" to recover routing fingerprints without any knowledge of the fine-tuning data. By examining how experts are utilized during confident, unconditional generation, we demonstrate that the resulting routing patterns closely reflect those observed in the original fine-tuning corpus. This means that even without access to training data or public datasets, an adversary can recover a high-fidelity proxy for the routing signature left by fine-tuning, simply by observing the model's unconditional generation behavior — transforming the model's own inference process into a side-channel for privacy attacks.
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs

Figure 5: Data-free recovery of a fine-tuned MoE model's expert utilization signature: an illustration.
Table 2: The membership inference metrics used to filter the candidate expert utilization patterns from the generated samples.
| Metric | Formulation |
|---|---|
| LOSS [33] | The negative average log-likelihood of the sample |
| Lower [3] | The ratio of loss on the original vs. lowercased sample |
| Ref [23] | The ratio of loss on the fine-tuned vs. pre-trained model |
| Zlib [3] | The sample's complexity normalized by its loss on the fine-tuned model |
| Min-K%[30] | The average log-likelihood of the lowest k% token probabilities |
| Min-K%++[36] | $\frac{1}{|\min-k\%|} \sum_{(x_{$\text{Min-K%}++ \text{token seq. } (x_{The average log-likelihood of the lowest k% token probabilities, normalized by the vocabulary distribution |
4.1 Recovering the Expert Utilization Signature
Following the approach in [3] for extracting memorized training data from GPT-2, we prompt the MoE model with a single special end-of-sequence token ( for OLMoE or for Mixtral) to indicate the end of a text sequence, then allow the model to generate 512 tokens using top- sampling with . This produces sequences that are highly likely according to the

(a) TinyMistral & CodeAlpaca

(b) OLMoE & CodeAlpaca
Figure 6: Comparison of recovered vs. ground-truth expert utilization matrices, filtered using various membership metrics and evaluated through matrix similarity and F1 scores of dominant experts. Results are ranked by descending cosine similarity between recovered and ground-truth matrices. (♦): Comparisons against the pre-trained model's signature on identical fine-tuning data; (○): Comparisons against the same fine-tuned model's signature on GitHub data. These two baselines should theoretically produce lower similarity values.
model's own likelihood estimates. We repeat this process 5000 times and compute the expert utilization for the generated tokens in each sample.
The critical challenge lies in identifying which generated samples best reflect the fine-tuning signature rather than pre-training patterns or same-domain patterns, while having zero knowledge of the fine-tuning data. To best approximate the signature, we need to filter the most representative expert utilization patterns from the generated samples that best capture the memorization of fine-tuning data. We adapt various MIA metrics from the literature to the fine-tuning scenario, as summarized in Table 2. However, our analysis reveals fundamental limitations in these existing approaches: they either fail to differentiate fine-tuning memorization from pre-training patterns (, and Min-K%++), or cannot effectively filter out trivial high-likelihood tokens that dominate unconditional generation (e.g., Ref). To address this limitation, we devise three complementary hybrid metrics that synergistically combine the strengths of existing approaches, though their performance does not follow the anticipated sequence as our later analysis reveals:
- Baseline hybrid combining compression-based complexity with pre-trained model likelihood ratios.
- Enhanced version combining compression and pre-trained model calibration with low-probability tail token filtering.
- Vocabulary-normalized version combining compression and pre-trained model calibration with vocabulary-relative token probability scoring.
After ranking the generated samples with one of these metrics, we filter the top samples with the highest scores and aggregate the expert utilization matrices from forwarding the newly generated 512 tokens in each sample to reconstruct the routing signature and extract dominant experts. This aggregation transforms scattered routing observations into a coherent fingerprint that mirrors the original fine-tuning data distribution. The complete routing signature recovery process is illustrated in Fig. 5.
4.2 Experimental Results
To validate the effectiveness of the recovery under, we conduct a comprehensive evaluation across multiple model architectures. Fig. 6, on TinyMistral and OLMoE, compares the recovered signature against the ground-truth signature of the fine-tuned model on the fine-tuning corpus, alongside two critical baseline signatures: the pre-trained model's signature on the same corpus used for fine-tuning and the same fine-tuned model's signature on a different corpus within the same domain. To further analyze these results, we provide additional visualizations that illuminate the underlying patterns, including the differences in expert utilization matrices between the pre-trained and fine-tuned models in heatmaps Figs. 7a and 7b, and the correlation between the expert utilization matrices in the fine-tuning corpus and the same-domain corpus in Figs. 7c and 7d. Another set of results regarding different fine-tuning target modules on more models are provided in Table 3 and Fig. 8.
We use three metrics to evaluate the similarity between the recovered signature and the ground-truth signature: cosine similarity that measures the angular similarity between two flattened matrix vectors, Pearson correlation that measures linear co-variation between corresponding expert utilization values, and F1 scores of -dominant () experts that evaluate the accuracy of identifying which specific experts were most important in the model for the fine-tuning data. The K values in Min-K% and Min-K%++ shown in the figures represent the optimal threshold percentages

(a) TinyMistral & CodeAlpaca
(b) OLMoE & CodeAlpaca

(c) TinyMistral
(d) OLMoE
Figure 7: Comparison of model's routing signatures. Subfigures (a) and (b) show the difference in the model's expert utilization matrices on the fine-tuning corpus before and after fine-tuning; subfigures (c) and (d) show the correlation between the fine-tuned model's expert utilization matrices on fine-tuning corpus and same-domain corpus.
selected from extensive testing across a range of 5% to 60%. We set to only 10, which is a total of 5120 forwarded tokens, roughly equivalent to the context of 50 samples in CodeAlpaca, based on our preliminary findings in Section 3.2.
Memorized fine-tuning signatures can be effectively recovered when using appropriate MIA metrics for filtering. The main blue bars in Fig. 6 reveal remarkably high cosine similarity scores and Pearson correlations between recovered and ground-truth expert utilization signatures when filtered with specific MIA metrics, with our hybrid metrics Zlib-Ref-Min-K% and Zlib-Ref leading the pack. This success indicates that combining compression-based detection with pre-trained model references creates synergistic effects that enhance membership inference capabilities during fine-tuning analysis. Interestingly, Zlib-Ref-Min-K%++ delivers mediocre or even the worst performance despite Min-K%++ being an improved variant of Min-K% when used individually. However, LOSS, Lower, and Ref consistently underperform across both models. This degraded performance stems from their shared reliance on sample-level averaging of negative log-likelihood, which suffers from high false positive rates because trivial elements like common words and repetitive phrases can also yield high likelihood, obscuring the meaningful patterns in the generated samples that characterize fine-tuning signatures.
The F1 scores for dominant experts serve as particularly discriminative indicators of MIA metric effectiveness. These scores exhibit
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs
Table 3: Matrix cosine similarity, Pearson correlation, and F1 scores of dominant experts between recovered and ground-truth expert utilization for Mixtral on CodeAlpaca, with best and second-best results highlighted in bold and underlined, respectively.
| Modules | Metric | LOSS | Lower | Ref | Zlib | Min-K% | Min-K%++ | Zlib-Ref | Zlib-Ref-Min-K% | Zlib-Ref-Min-K%++ |
|---|---|---|---|---|---|---|---|---|---|---|
| Both | CosSim | 0.917 | 0.808 | 0.711 | 0.988 | 0.925 | 0.916 | 0.986 | 0.901 | 0.909 |
| Pearson | 0.193 | -0.094 | -0.062 | 0.474 | 0.177 | 0.207 | 0.449 | -0.004 | -0.045 | |
| F1 | 0.464 | 0.338 | 0.327 | 0.877 | 0.465 | 0.452 | 0.850 | 0.401 | 0.393 | |
| Attn | CosSim | 0.737 | 0.857 | 0.771 | 0.982 | 0.740 | 0.744 | 0.984 | 0.984 | 0.972 |
| Pearson | 0.002 | -0.074 | 0.005 | 0.413 | -0.005 | 0.002 | 0.501 | 0.558 | 0.333 | |
| F1 | 0.350 | 0.350 | 0.287 | 0.786 | 0.353 | 0.364 | 0.787 | 0.786 | 0.586 | |
| FFN | CosSim | 0.931 | 0.938 | 0.785 | 0.976 | 0.943 | 0.937 | 0.979 | 0.936 | 0.960 |
| Pearson | 0.181 | -0.093 | -0.008 | 0.202 | 0.224 | 0.093 | 0.258 | 0.152 | 0.127 | |
| F1 | 0.542 | 0.444 | 0.364 | 0.717 | 0.566 | 0.528 | 0.755 | 0.432 | 0.522 |
greater variance across metrics because they focus on the subset of experts most affected by fine-tuning — the primary locus where learned specializations become apparent in routing patterns — making them sensitive markers of signature recovery quality. Unlike broader similarity measures that consider all experts equally, F1 scores can reveal that metrics with comparable cosine similarity show dramatically different performance.
Signatures in larger, more complex MoEs are harder to recover but create more distinctive fingerprints. Recovery performance exhibits a clear relationship with model complexity. Near-complete signature recovery proves more achievable for the simpler TinyMistral compared to the more complex OLMoE architecture. This disparity can be attributed to OLMoE’s substantially larger expert pool (14× more experts) and its higher top-K routing policy, which creates more intricate activation patterns that are inherently harder to reconstruct from observations of the model’s routing and output logits.
While OLMoE’s fine-tuning process induces more diverse and dramatic changes in expert utilization across layers, TinyMistral’s simpler 2-out-of-6 expert selection mechanism creates inherent limitations in routing discrimination. Certain experts (notably experts 1 and 4) maintain consistent activation across most layers, causing fine-tuning specialization to concentrate on these already-dominant experts while leaving others relatively unchanged, as demonstrated in Figs. 7a and 7b. This architectural constraint also results in less discriminative routing patterns between pre-trained and fine-tuned states — a limitation that arises from the model design rather than MIA metric failures, as evidenced by the consistently small differences between the blue and red bars across various metrics.
Several metrics, including Min-K%++, Lower, and Ref, demonstrate problematic behavior by incorrectly identifying dominant experts, paradoxically yielding higher F1 scores on pre-trained signatures than on fine-tuned ones. This occurs because these metrics’ approximated expert utilization matrices predominantly capture experts that were already dominant in the pre-trained model, rather than those newly specialized through fine-tuning. This highlights the limitations of these metrics in capturing the nuanced changes induced by fine-tuning, particularly in simpler MoE architectures like TinyMistral.
Signature recovery may yield misleading intelligence when MoEs exhibit similar routing patterns across same-domain datasets. A counterintuitive finding emerges when comparing blue and yellow bars: numerous MIA metrics produce higher similarity scores for same-domain data than for actual fine-tuning data. This unexpected result occurs because routing patterns in same-domain datasets closely mirror those in fine-tuning data, creating high correlations between their respective signatures as demonstrated in Figs. 7c and 7d.
This phenomenon presents significant implications for adversarial applications. While recovered signatures might successfully identify the domain of fine-tuning data, they could simultaneously mislead toward different datasets within the same domain, generating false positives in fine-tuning data identification. An adversary might correctly infer that a model was fine-tuned on code-related content but incorrectly attribute the training to a different coding dataset entirely. Nevertheless, Zlib-Ref-Min-K% and Zlib-Ref consistently outperform other metrics by minimizing these misleading effects and providing more reliable signature recovery.
Pearson correlation presents a more stringent challenge for large-scale MoE models. The results in Table 3 show a clear winner: Zlib-based metrics such as pure Zlib, Zlib-Ref, and Zlib-Ref-Min-K% outperform other approaches. What’s particularly striking is that cosine similarity stays reliably above 0.9 for these compression-based methods, while Pearson correlations struggle significantly, often dropping to near-zero or negative values with simpler metrics like LOSS, Lower, and Ref. The hybrid Zlib-Ref combinations prove especially effective, indicating that pairing compression-based detection with reference model comparisons creates a more robust signature recovery approach. This disparity suggests that signature recovery effectiveness drops significantly in large-scale MoE models when measured by Pearson correlation, especially when comparing to results on smaller models like TinyMistral and OLMoE.
Attention-involved fine-tuning creates more detectable structural memorization. The choice of LoRA target modules makes a substantial difference in how well signatures can be recovered. As further visualized in Fig. 8 across more models and datasets, fine-tuning Both or Attn delivers stronger performance, while FFN-only fine-tuning consistently struggles with Pearson correlation of utilization matrices and F1 scores of dominant experts.

Figure 8: Upper panel: OLMoE on MedGuide; Lower panel: PhiMoE on CodeAlpaca. From left to right: Both, Attn, FFN.
This finding reinforces our earlier observations in Section 3.3: when attention blocks participate in fine-tuning, they create more pronounced structural changes that adversaries can exploit, whereas isolated FFN training leaves behind subtler fingerprints that prove much harder to detect and recover.
5 Concluding Remarks
This work reveals a hidden vulnerability in MoE architectures: expert utilization patterns become persistent fingerprints of training data that adversaries can extract through ordinary model interactions, requiring no access to training data or model parameters. Our signature recovery approach enables adversaries to map expert utilization patterns and identify vulnerable experts for targeted manipulation, including degrading downstream performance through dominant expert disruption, hijacking model behavior through backdoor injection into dormant experts, and enhancing data extraction by exploiting expert specialization. Beyond demonstrating the attack, our hybrid metrics provide a diagnostic framework for evaluating membership inference effectiveness in MoE models, revealing that existing metrics fail to capture routing-based memorization. In distributed deployments, this vulnerability is amplified as routing information becomes exposed at multiple trust boundaries, enabling adversaries to aggregate partial observations into complete signatures. Our findings underscore that routing-level privacy must be considered a first-class concern in distributed AI system design, as sparse activation mechanisms create unintended side
channels that illuminate which experts process sensitive training data.
References
[1] Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadallah, Ammar Ahmad Awan, et al. 2024. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone. arXiv preprint arXiv:2404.14219 (2024).
[2] Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, and Chiyuan Zhang. 2023. Quantifying Memorization Across Neural Language Models. In Proc. the Eleventh International Conference on Learning Representations (ICLR).
[3] Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, and Colin Raffel. 2021. Extracting Training Data from Large Language Models. In Proc. the 30th USENIX Security Symposium (USENIX Security). 2633–2650.
[4] DeepSeek-AI. 2024. DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv preprint arXiv:2405.04434 (2024).
[5] Shuiguang Deng, Hailiang Zhao, Weijia Fang, Jianwei Yin, Schahram Dustdar, and Albert Y. Zomaya. 2020. Edge Intelligence: The Confluence of Edge Computing and Artificial Intelligence. Proc. the IEEE Internet of Things Journal 7, 8 (2020), 7457–7469.
[6] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2023. QLoRa: Efficient Finetuning of Quantized LLMs. In Proc. the Thirty-Seventh Annual Conference on Neural Information Processing Systems (NeurIPS), Vol. 36. 10088–10115.
[7] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity. Journal of Machine Learning Research 23, 1 (2022), 1–39.
[8] Wenjie Fu, Huandong Wang, Chen Gao, Guanghua Liu, Yong Li, and Tao Jiang. 2024. Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration. In Proc. the Thirty-Eighth Annual Conference on Neural Information Processing Systems (NeurIPS).
[9] Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer Feed-Forward Layers Are Key-Value Memories. In Proc. the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP). 5484–5495.
Exploiting Structural Memorization for Expert Pathway Recovery in Distributed Fine-Tuning of Mixture-of-Experts LLMs
[10] Haryadi S. Gunawi, Mingzhe Hany, Riza O. Suminto, Agung Laksono, Anang D. Satria, Jeffrey Adityatama, and Kurnia J. Eliazar. 2016. Why Does the Cloud Stop Computing? Lessons from Hundreds of Service Outages. In Proc. the Seventh ACM Symposium on Cloud Computing (SoCC). 1–16.
[11] Jamie Hayes, Ilia Shumailov, and Ilay Yona. 2024. Buffer Overflow in Mixture of Experts. In Proc. the Thirty-Eighth Annual Conference on Neural Information Processing Systems (NeurIPS) Safe Generative AI Workshop.
[12] Jie Hou, Chuxiong Wu, Lannan Luo, and Qiang Zeng. 2025. Impact of Fine-Tuning Methods on Memorization in Large Language Models. arXiv preprint arXiv:2507.00258 (2025).
[13] Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In Proc. the Tenth International Conference on Learning Representations (ICLR).
[14] Hongsheng Hu, Zoran Salcic, Lichao Sun, Gillian Dobbie, Philip S Yu, and Xuyun Zhang. 2022. Membership Inference Attacks on Machine Learning: A Survey. Comput. Surveys 54, 11s (2022), 1–37.
[15] Jian Hu, Xibin Wu, Zilin Zhu, Xianyu, Weixun Wang, Dehao Zhang, and Yu Cao. 2024. OpenRLHF: An Easy-to-use, Scalable and High-performance RLHF Framework. arXiv preprint arXiv:2405.11143 (2024).
[16] Zhiheng Huang, Yannan Liu, Daojing He, and Yu Li. 2025. DF-MIA: A Distribution-Free Membership Inference Attack on Fine-Tuned Large Language Models. In Proc. the Thirty-Ninth AAAI Conference on Artificial Intelligence, Vol. 39. 343–351.
[17] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of Experts. arXiv preprint arXiv:2401.04088 (2024).
[18] Peter Kairouz, H. Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagooj, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, Rafael G. L. D'Oliveira, Hubert Eichen, Salim El Rouayheb, David Evans, Josh Gardner, Zachary Garrett, Adrià Gascón, Badih Ghazi, Phillip B. Gibbons, Marco Gruteser, Zaid Harchaoui, Chaoyang He, Lie Jie, Zhouyuan Huo, Ben Hutchinson, Justin Hsu, Martin Jaggi, Tara Javidi, Gauri Joshi, Mikhail Khodak, Jakub Konecny, Aleksandra Korolova, Farinaz Koushanchar, Samni Koyejo, Tancrède Lepoint, Yang Liu, Prateek Mittal, Mehryar Mohri, Richard Nock, Ayfer Özgür, Rasmus Pagh, Hang Qi, Daniel Ramage, Ramesh Raskar, Mariana Raykova, Dawn Song, Weikang Song, Sebastian U. Stich, Ziteng Sun, Ananda Theretha Suresh, Florian Tramér, Praneeth Vepakomma, Jianyu Wang, Li Xiong, Zheng Xu, Qiang Yang, Felix X. Yu, Han Yu, and Sen Zhao. 2021. Advances and Open Problems in Federated Learning. Foundations and Trends in Machine Learning 14, 1–2 (2021), 1–210.
[19] Aly M Kassem, Omar Mahmoud, Niloofar Mireshghallah, Hyunwoo Kim, Yulia Tsvetkov, Yejin Choi, Sherif Saad, and Santu Rana. 2024. Alpaca against Vicuna: Using LLMs to Uncover Memorization of LLMs. arXiv preprint arXiv:2403.04801 (2024).
[20] Ka Man Lo, Zeyu Huang, Zihan Qiu, Zili Wang, and Jie Fu. 2025. A Closer Look into Mixture-of-Experts in Large Language Models. In Findings of the Association for Computational Linguistics. 4427–4447.
[21] M4-ai. 2024. TinyMistral-6x248M Model on Hugging Face. https://huggingface.co/M4-ai/TinyMistral-6x248M. Accessed: 2025-06-15.
[22] H. B. McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. 2016. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proc. the 19th International Conference on Artificial Intelligence and Statistics (AISTATS).
[23] Fatemehesadat Mireshghallah, Archit Uniyal, Tianhao Wang, David Evans, and Taylor Berg-Kirkpatrick. 2022. An Empirical Analysis of Memorization in Fine-tuned Autoregressive Language Models. In Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 1816–1826.
[24] Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Jacob Morrison, Sewon Min, Weijia Shi, Pete Walsh, Oyvind Tafjord, Nathan Lambert, Yuling Gu, Shane Arora, Akshita Bhagia, Dustin Schwenk, David Wadden, Alexander Wettig, Binyuan Hui, Tim Dettmers, Douwe Kiela, Ali Farhadi, Noah A. Smith, Pang Wei Koh, Amanpreet Singh, and Hannaneh Hajishirzi. 2024. OLMoE: Open Mixture-of-Experts Language Models. arXiv preprint arXiv:2409.02060 (2024).
[25] Milad Nasr, Javier Rando, Nicholas Carlini, Jonathan Hayase, Matthew Jagielski, A. Feder Cooper, Daphne Ippolito, Christopher A. Choquette-Choo, Florian Tramér, and Katherine Lee. 2025. Scalable Extraction of Training Data from Aligned, Production Language Models. In Proc. the Thirteenth International Conference on Learning Representations (ICLR).
[26] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring The Limits of Transfer Learning with a Unified Text-to-Text Transformer. The Journal of Machine Learning Research 21, 1 (2020), 67 pages.
[27] Samyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang, Reza Yazdani Aminabadi, Ammar Ahmad Awan, Jeff Rasley, and Yuxiong He. 2022. DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale. arXiv preprint arXiv:2201.05596 (2022).
[28] Sheng Shen, Le Hou, Yanqi Zhou, Nan Du, Shayne Longpre, Jason Wei, Hyung Won Chung, Barret Zoph, William Fedus, Xinyun Chen, Tu Vu, Yuexin Wu, Wuyang Chen, Albert Webson, Yunxuan Li, Vincent Y Zhao, Hongkun Yu, Kurt Keutzer, Trevor Darrell, and Denny Zhou. 2024. Mixture-of-Experts Meets Instruction Tuning: A Winning Combination for Large Language Models. (2024), 1–17.
[29] Sheng Shen, Le Hou, Yanqi Zhou, Nan Du, Shayne Longpre, Jason Wei, Hyung Won Chung, Barret Zoph, William Fedus, Xinyun Chen, Tu Vu, Yuexin Wu, Wuyang Chen, Albert Webson, Yunxuan Li, Vincent Y Zhao, Hongkun Yu, Kurt Keutzer, Trevor Darrell, and Denny Zhou. 2024. Mixture-of-Experts Meets Instruction Tuning: A Winning Combination for Large Language Models. In Proc. the Twelfth International Conference on Learning Representations (ICLR).
[30] Weijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang, Daogao Liu, Terra Blevins, Danqi Chen, and Luke Zettlemoyer. 2024. Detecting Pretraining Data from Large Language Models. In Proc. the Twelfth International Conference on Learning Representations (ICLR).
[31] Abhishek Verma, Luis Pedrosa, Madhukar Korupolu, David Oppenheimer, Eric Tune, and John Wilkes. 2015. Large-Scale Cluster Management at Google with Borg. In Proc. the Tenth European Conference on Computer Systems (EuroSys). 1–17.
[32] Qingyue Wang, Qi Pang, Xixun Lin, Shuai Wang, and Daoyuan Wu. 2025. Bad-MoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Experts. arXiv preprint arXiv:2504.18598 (2025).
[33] Samuel Yeom, Irene Giacomelli, Matt Fredrikson, and Somesh Jha. 2018. Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting. In Proc. the 31st Computer Security Foundations Symposium (CSF). 268–282.
[34] Itay Yona, Ilia Shumailov, Jamie Hayes, and Nicholas Carlini. 2024. Stealing User Prompts from Mixture of Experts. arXiv preprint arXiv:2410.22884 (2024).
[35] Shenglai Zeng, Yaxin Li, Jie Ren, Yiding Liu, Han Xu, Pengfei He, Yue Xing, Shuaiqiang Wang, Jiliang Tang, and Dawei Yin. 2024. Exploring Memorization in Fine-tuned Language Models. In Proc. the 62nd Annual Meeting of the Association for Computational Linguistics (ACL). 3917–3948.
[36] Jingyang Zhang, Jingwei Sun, Eric Yeats, Yang Ouyang, Martin Kuo, Jianyi Zhang, Hao Frank Yang, and Hai Li. 2025. Min-K++: Improved Baseline for Pre-Training Data Detection from Large Language Models. In Proc. the Thirteenth International Conference on Learning Representations (ICLR).
[37] Zhexin Zhang, Jiaxin Wen, and Minlie Huang. 2023. ETHICIST: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimation. In Proc. the 61st Annual Meeting of the Association for Computational Linguistics (ACL). 12674–12687.
[38] Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyuan Luo, Zhangchi Feng, and Yongqiang Ma. 2024. LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Models. In Proc. the 62nd Annual Meeting of the Association for Computational Linguistics (ACL).
[39] Yanqi Zhou, Tao Lei, Hanxia Liu, Nan Du, Yanping Huang, Vincent Y Zhao, Andrew M. Dai, Zhifeng Chen, Quoc V Le, and James Laudon. 2022. Mixture-of-Experts with Expert Choice Routing. In Proc. the Thirty-Sixth Annual Conference on Neural Information Processing Systems (NeurIPS).
[40] Zhi Zhou, Xu Chen, En Li, Liekang Zeng, Ke Luo, and Junshan Zhang. 2019. Edge Intelligence: Paving the Last Mile of Artificial Intelligence With Edge Computing. Proc. the IEEE 107, 8 (2019), 1738–1762.
A Open Science
The artifacts required to evaluate the core contributions of this paper are the source code implementing (i) the fine-tuning pipeline for the evaluated MoE LLMs, (ii) the extraction of expert utilization profiles and routing fingerprints from unconditional generations, (iii) the baseline and composite membership inference metrics, and (iv) the scripts and configuration files needed to reproduce all figures and tables. All models (TinyMistral, PhiMoE, OLMoE, and Mixtral) and datasets used in our evaluation are publicly available from their original sources. Our code and experiment configurations are available at REPOSITORY-URL.