{"slug": "cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite", "title": "Cryptanalytic Extraction of a Single Full Transformer Block under Finite Precision", "summary": "A research paper presents an end-to-end cryptanalytic extraction attack that recovers the hidden parameters of a complete dual pre-RMSNorm residual Transformer block from black-box queries, handling both biased ReLU and bias-free SwiGLU feed-forward networks using only bounded, positional-encoding-free queries and strict last-token outputs. Evaluated across FP64, FP32, FP16 and BF16 implementations up to d=256, H=8 heads and m=1024 (over one million parameters), the attack uses 0.26–0.47 vector queries per parameter and achieves holdout relative L2 errors of at most 2.20×10⁻¹⁵ in FP64, 5.49×10⁻⁷ in FP32, 1.07×10⁻³ in FP16 and 8.16×10⁻³ in BF16. The result matters because prior Transformer attacks targeted isolated layers without normalization and skip connections or required all-position outputs, positional encodings and extended-precision arithmetic.", "body_md": "Cryptanalytic model extraction seeks to recover a neural network's\nhidden parameters from black-box input--output queries.\nPrior Transformer attacks either target isolated layers without\nnormalization and skip connections, or require all-position outputs,\npositional encodings, and extended-precision arithmetic.\nModern Transformer blocks, however, tightly couple dual pre-RMSNorm\nlayers, residual connections, multi-head softmax Attention, and\nbiased ReLU or SwiGLU feed-forward networks (FFNs) under last-token\noutputs and finite-precision arithmetic.\nWe present an end-to-end, precision-agnostic extraction attack on a\ncomplete dual pre-RMSNorm residual Transformer block, handling both\nbiased ReLU and bias-free SwiGLU FFNs using only bounded,\npositional-encoding-free queries and strict last-token outputs.\nRather than relying on isolated sublayer access or numerically\nfragile pole-finding, our attack decouples the block sequentially:\nrecovering the aggregate Attention map, extracting the coupled FFN,\nreconstructing all effective Attention heads through a shared\nbackend, and jointly refining the full block.\nWe evaluate the same pipeline across native FP64, FP32, FP16, and\nBF16 implementations up to $d=256$, $H=8$ heads, and $m=1024$\n(over one million parameters).\nAt this scale, extraction uses $0.26\\text{--}0.47$ vector queries\nper parameter and achieves holdout relative $L_2$ errors of 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.", "url": "https://wpnews.pro/news/cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite", "canonical_source": "https://eprint.iacr.org/2026/3107", "published_at": "2026-11-29 03:50:20+00:00", "updated_at": "2026-12-02 08:44:11.701869+00:00", "lang": "en", "topics": ["ai-safety", "machine-learning", "neural-networks", "ai-research"], "entities": ["Transformer", "RMSNorm", "ReLU", "SwiGLU", "FP64", "FP32", "FP16", "BF16"], "also_reported_by": [], "takeaway": "A sequential decoupling attack recovers a full dual pre-RMSNorm Transformer block at 0.26–0.47 vector queries per parameter, reaching holdout relative L2 error of 8.16×10⁻³ in BF16 versus 2.20×10⁻¹⁵ in FP64.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite", "markdown": "https://wpnews.pro/news/cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite.md", "text": "https://wpnews.pro/news/cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite.txt", "jsonld": "https://wpnews.pro/news/cryptanalytic-extraction-of-a-single-full-transformer-block-under-finite.jsonld"}}