Paper 2026/3082

Cryptanalytic Extraction of Multilayer Transformers

Xiaoen Lin
Ruijie Ma
Yi Chen
Hongbo Yu
Anyu Wang
Xiaoyun Wang

We don’t have this PDF yet.

Download it from ePrint ↗ and upload it here (anonymous).

Abstract

We consider parameter recovery when continuous inputs after embedding lookup can be freely chosen and the final residual states can be observed at high precision. We give a recovery algorithm for bias-free multilayer Transformers with random weights, pre-RMSNorm, causal multi-head softmax attention with known rotary positional embeddings, and SwiGLU feed-forward blocks. To the best of our knowledge, this is the first cryptanalytic extraction method for this class of multilayer Transformers. Our central idea is layer decoupling: scaling the input exposes a leading residual response in which all components contribute to a sum evaluated on a common normalized input. The next-order response retains component interactions needed to reconstruct an equivalent network. Under the stated dimension and reconstruction conditions, our procedure recovers an equivalent network from exact response coefficients. Query and arithmetic budgets are polynomial in the model dimensions and coefficient-estimation counts. Experiments numerically recover the full projection weights of small synthetic Transformers with up to six layers.

BibTeX
ePrint ↗
@misc{cryptoeprint:2026/3082,
      author = {Xiaoen Lin and Ruijie Ma and Yi Chen and Hongbo Yu and Anyu Wang and Xiaoyun Wang},
      title = {Cryptanalytic Extraction of Multilayer Transformers},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3082},
      year = {2026},
      url = {https://eprint.iacr.org/2026/3082}
}
Category
Attacks and cryptanalysis
License
CC BY
Submitted

Report a problem

Comments

Log in or create an account

Privacy