Stealing User Prompts from Mixture-of-Experts (MoE) ModelsStealing User Prompts from Mixture of Experts
Researchers propose a user prompt stealing attack against mixture-of-experts (MoE) language models. The attacker contrives to have their own queries enter the same batch as the victim's queries, and by exploiting the Expert-Choice-Routing mechanism can fully reconstruct the victim's prompt. The authors validate the attack on a two-layer Mixtral model, exploiting the behavior of the torch.topk CUDA implementation when handling tied values; under their experimental setting, extracting the entire prompt requires O(VM²) queries (V is the vocabulary size, M is the prompt length), averaging 100 queries per token. The authors claim this is the first attack to extract user prompts by exploiting an architectural flaw, introducing a new class of LLM vulnerabilities.