mlsanityData to 14 Oct 2026

On the (In-)Security of the Shuffling Defense in the Transformer Secure Inference

arXiv 2605.04901 ↗First posted 6 May 2026cs.CR cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

For Transformer models, cryptographically secure inference ensures that the client learns only the final output, while the server learns nothing about the client's input. However, securely computing nonlinear layers remains a major efficiency bottleneck due to the substantial communication rounds and data transmission required. To address this issue, prior works reveal intermediate activations to the client, allowing nonlinear operations to be computed in plaintext. Although this approach significantly improves efficiency, exposing activations enables adversaries to extract model weights. To mitigate this risk, existing works employ a shuffling defense that reveals only randomly permuted activations to the client. In this work, we show that the shuffling defense is not as robust as previously claimed. We propose an attack that aligns differently shuffled activations to a common permutation and subsequently exploits them to extract model weights. Experiments on Pythia-70m and GPT-2 demonstrate that the proposed attack can align shuffled activations with mean squared errors ranging from 10-9 to 10-6. With a query cost of approximately 1, the adversary can recover model weights with L1-norm differences ranging from 10-4 to 10-2 compared to the oracle weights.

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

Builds on

21 of 47 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2016Pointer Sentinel Mixture Modelscited by 3,096
  3. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  4. 2018Lipschitz regularity of deep neural networks: analysis and efficient estimationcited by 415
  5. 2019High Accuracy and High Fidelity Extraction of Neural Networkscited by 214
  6. 2024Stealing Part of a Production Language Modelcited by 159
  7. 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 131
  8. 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 97
  9. 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 82
  10. 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 69
  11. 2020Cryptanalytic Extraction of Neural Network Modelscited by 68
  12. 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 57
9 more
  1. 2023PUMA: Secure Inference of LLaMA-7B in Five Minutescited by 48
  2. 2022Selective Network Linearization for Efficient Private Inferencecited by 31
  3. 2021SIRNN: A Math Library for Secure RNN Inferencecited by 28
  4. 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 20
  5. 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 16
  6. 2024PermLLM: Private Inference of Large Language Models within 3 Seconds under WANcited by 14
  7. 2024CENTAUR: Bridging the Impossible Trinity of Privacy, Efficiency, and Performance in Privacy-Preserving Transformer Inferencecited by 6
  8. 2019BAYHENN: Combining Bayesian Deep Learning and Homomorphic Encryption for Secure DNN Inferencecited by 5
  9. 2021Towards Secure and Practical Machine Learning via Secret Sharing and Random Permutationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.