{
  "id": "2026/3082",
  "url": "https://opencryptology.org/2026/3082",
  "original_url": "https://eprint.iacr.org/2026/3082",
  "title": "Cryptanalytic Extraction of Multilayer Transformers",
  "authors": [
    "Xiaoen Lin",
    "Ruijie Ma",
    "Yi Chen",
    "Hongbo Yu",
    "Anyu Wang",
    "Xiaoyun Wang"
  ],
  "affiliations": null,
  "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.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Cryptanalytic Extraction of Multilayer Transformers” by Xiaoen Lin, Ruijie Ma, Yi Chen, Hongbo Yu, Anyu Wang, Xiaoyun Wang, Cryptology ePrint Archive, Paper 2026/3082, https://eprint.iacr.org/2026/3082. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-11-27T16:35:27Z",
    "updated": "2026-11-27T16:35:27Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": null,
  "upload_url": "https://opencryptology.org/2026/3082#upload",
  "api_upload_url": "https://opencryptology.org/api/upload/2026/3082",
  "missing_pdf": "No PDF here yet. A person can download it from https://eprint.iacr.org/2026/3082 and upload it at https://opencryptology.org/2026/3082#upload so everyone can get it.",
  "versions": [],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/3082,\n      author = {Xiaoen Lin and Ruijie Ma and Yi Chen and Hongbo Yu and Anyu Wang and Xiaoyun Wang},\n      title = {Cryptanalytic Extraction of Multilayer Transformers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3082},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/3082}\n}"
}
