Stealing User Prompts from Mixture of Experts

Itay Yona, Ilia Shumailov, Jamie Hayes, Nicholas Carlini
10/30/2024
cs.CRcs.AIcs.CL
moe

No confident code implementation found for this paper.

Abstract

Mixture-of-Experts (MoE) models improve the efficiency and scalability of dense language models by routing each token to a small number of experts in each layer. In this paper, we show how an adversary that can arrange for their queries to appear in the same batch of examples as a victim's queries can exploit Expert-Choice-Routing to fully disclose a victim's prompt.

Show full abstract

We successfully demonstrate the effectiveness of this attack on a two-layer Mixtral model, exploiting the tie-handling behavior of the torch.topk CUDA implementation. Our results show that we can extract the entire prompt using $O({VM}^2)$ queries (with vocabulary size $V$ and prompt length $M$) or 100 queries on average per token in the setting we consider. This is the first attack to exploit architectural flaws for the purpose of extracting user prompts, introducing a new class of LLM vulnerabilities.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yona2024stealing,
  title  = {Stealing User Prompts from Mixture of Experts},
  author = {Itay Yona and Ilia Shumailov and Jamie Hayes and Nicholas Carlini},
  year   = {2024},
  eprint = {2410.22884},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.22884v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.22884.svg)](https://codeofpaper.com/paper/2410.22884)

Discussion