Paper 2026/3082
Cryptanalytic Extraction of Multilayer Transformers
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.
Metadata
- Available format(s)
-
PDF
- Category
- Attacks and cryptanalysis
- Publication info
- Preprint.
- Keywords
- Model extractionTransformerRMSNormLayer decouplingAlgebraic recovery
- Contact author(s)
-
linxe @ tsinghua edu cn
marj21 @ mails tsinghua edu cn
chenyi2023 @ tsinghua edu cn
yuhongbo @ tsinghua edu cn
anyuwang @ tsinghua edu cn
xiaoyunwang @ tsinghua edu cn - History
- 2026-11-29: approved
- 2026-11-27: received
- See all versions
- Short URL
- https://ia.cr/2026/3082
- License
-
CC BY
BibTeX
@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}
}