{
  "id": "2026/3107",
  "url": "https://opencryptology.org/2026/3107",
  "original_url": "https://eprint.iacr.org/2026/3107",
  "title": "Cryptanalytic Extraction on a Single Full Transformer Block with Arbitrary Precision",
  "authors": [
    "Jiaqi Zheng",
    "Zirui Chen",
    "Xiaoyang Dong"
  ],
  "affiliations": null,
  "abstract": "Cryptanalytic model extraction aims to recover the hidden parameters of\na neural network solely from black-box input--output queries.\nWhile recent attacks on Transformers recover isolated multi-head\nAttention layers, isolated bias-free GLU feed-forward networks (FFNs),\nor simplified blocks without normalization and skip connections, modern\nTransformer blocks couple dual pre-RMSNorm layers, residual connections,\nmulti-head softmax Attention, and biased ReLU or SwiGLU FFNs.\nUnder this coupling, every query passes through both normalizations and\nboth sublayers simultaneously, preventing prior component-level\nreductions from applying directly, while existing rational pole-finding\nmethods become unstable under low-precision arithmetic.\n\nIn this paper, we present the first end-to-end cryptanalytic extraction\nattack on a complete single dual pre-RMSNorm residual Transformer\nblock, handling both biased ReLU and bias-free SwiGLU FFNs through a\nsingle precision-agnostic pipeline. Our attack decouples the block in\nfour stages: it first recovers the aggregate Attention value map from\ncomplete-block responses, next extracts the coupled FFN through a\nsingleton forward bridge, then synthesizes Attention outputs via paired\nopposite-input inversion to recover all effective Attention heads\nwithout pole-finding, and finally refines the full block jointly on the\nlow-rank head manifold. We evaluate the attack end to end across native\nFP64, FP32, FP16, and BF16 implementations on blocks scaling up to\ntoken dimension \\(d=256\\), \\(H=8\\) heads, and FFN width \\(m=1024\\)\n(over one million parameters). At this scale, extraction requires only\n\\(0.26\\text{--}0.47\\) queries per parameter and achieves block relative\n\\(L_2\\) errors at each format's hardware rounding floor, at most\n\\(2.20\\times 10^{-15}\\) in FP64, \\(5.49\\times 10^{-7}\\) in FP32,\n\\(1.07\\times 10^{-3}\\) in FP16, and \\(8.16\\times 10^{-3}\\) in BF16.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Cryptanalytic Extraction on a Single Full Transformer Block with Arbitrary Precision” by Jiaqi Zheng, Zirui Chen, Xiaoyang Dong, Cryptology ePrint Archive, Paper 2026/3107, https://eprint.iacr.org/2026/3107. 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-29T03:50:20Z",
    "updated": "2026-11-29T03:50:20Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": null,
  "upload_url": "https://opencryptology.org/2026/3107#upload",
  "api_upload_url": "https://opencryptology.org/api/upload/2026/3107",
  "missing_pdf": "No PDF here yet. A person can download it from https://eprint.iacr.org/2026/3107 and upload it at https://opencryptology.org/2026/3107#upload so everyone can get it.",
  "versions": [],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/3107,\n      author = {Jiaqi Zheng and Zirui Chen and Xiaoyang Dong},\n      title = {Cryptanalytic Extraction on a Single Full Transformer Block with Arbitrary Precision},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3107},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/3107}\n}"
}
