mlsanityData to 14 Oct 2026

An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMs

arXiv 2505.18332 ↗First posted 23 May 2025cs.CR cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Recent advances in Large Language Models (LLMs) have led to the widespread adoption of third-party inference services, raising critical privacy concerns. Existing methods of performing private third-party inference, such as Secure Multiparty Computation (SMPC), often rely on cryptographic methods. However, these methods are thousands of times slower than standard unencrypted inference, and fail to scale to large modern LLMs. Therefore, recent lines of work have explored the replacement of expensive encrypted nonlinear computations in SMPC with statistical obfuscation methods - in particular, revealing permuted hidden states to the third parties, with accompanying strong claims of the difficulty of reversal into the unpermuted states. In this work, we begin by introducing a novel reconstruction technique that can recover original prompts from hidden states with nearly perfect accuracy across multiple state-of-the-art LLMs. We then show that extensions of our attack are nearly perfectly effective in reversing permuted hidden states of LLMs, demonstrating the insecurity of three recently proposed privacy schemes. We further dissect the shortcomings of prior theoretical `proofs' of permuation security which allow our attack to succeed. Our findings highlight the importance of rigorous security analysis in privacy-preserving LLM inference.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 13 of its 28 references that are in the map. First posted on arXiv 23 May 2025.

Builds on

13 of 28 references.

References · 13

  1. 2020Information Leakage in Embedding Modelscited by 203
  2. 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
  3. 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
  4. 2023PUMA: Secure Inference of LLaMA-7B in Five Minutescited by 48
  5. 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applicationscited by 24
  6. 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 16
  7. 2024DAGER: Exact Gradient Inversion for Large Language Modelscited by 14
  8. 2024PermLLM: Private Inference of Large Language Models within 3 Seconds under WANcited by 14
  9. 2021InvBERT: Reconstructing Text from Contextualized Word Embeddings by inverting the BERT pipelinecited by 11
  10. 2024Information Leakage from Embedding in Large Language Modelscited by 10
  11. 2023Secure Transformer Inference Protocolcited by 6
  12. 2024CENTAUR: Bridging the Impossible Trinity of Privacy, Efficiency, and Performance in Privacy-Preserving Transformer Inferencecited by 6
1 more
  1. 2021Towards Secure and Practical Machine Learning via Secret Sharing and Random Permutationcited by 5

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.