Nice paper from @GoogleDeepMind
When models share work, they accidentally share your secrets too.
MoE models can leak user prompts through expert routing vulnerabilities in batched processing.
Expert-Choice-Routing and Token dropping in MoE creates a backdoor to steal user inputs
π https://arxiv.org/abs/2410.22884
π― Original Problem:
Mixture-of-Experts (MoE) models, while efficient for LLMs, have a critical vulnerability in their token routing mechanism that could expose user data when queries are batched together.
-----
π οΈ Solution in this Paper:
β Introduces "MoE Tiebreak Leakage" attack that exploits Expert-Choice-Routing to leak victim's prompts
β Uses strategic batch crafting to manipulate expert routing and force specific token dropping
β Exploits tie-handling behavior in torch.topk CUDA implementation
β Requires whitebox access to model and ability to control batch placement
β Implements attack in two variants: Oracle Attack (2 queries) and Leakage Attack (iterative extraction)
-----
π‘ Key Insights:
β Cross-batch dependencies in MoE create exploitable side channels
β Optimization for efficiency can introduce security vulnerabilities
β Token dropping, meant for efficiency, becomes security risk
β Need for rigorous security testing in architectural optimizations
-----
π Results:
β Successfully extracted 996 out of 1000 secret messages
β Recovered 4,833 out of 4,838 total secret tokens
β Requires ~100 queries per token on average
β Works optimally with padding sequence length of 40
β Shows 99.9% success rate using all 8 experts










