cd /news/ai-safety/cryptanalytic-extraction-of-a-single… · home › topics › ai-safety › article
[ARTICLE · art-180047] src=eprint.iacr.org ↗ pub= topic=ai-safety verified=true sentiment=· neutral

Cryptanalytic Extraction of a Single Full Transformer Block under Finite Precision

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.

key 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.

by read1 min views9 publishedNov 29, 2026

Cryptanalytic model extraction seeks to recover a neural network's hidden parameters from black-box input--output queries. Prior Transformer attacks either target isolated layers without normalization and skip connections, or require all-position outputs, positional encodings, and extended-precision arithmetic. Modern Transformer blocks, however, tightly couple dual pre-RMSNorm layers, residual connections, multi-head softmax Attention, and biased ReLU or SwiGLU feed-forward networks (FFNs) under last-token outputs and finite-precision arithmetic. We present an end-to-end, precision-agnostic extraction attack on a complete dual pre-RMSNorm residual Transformer block, handling both biased ReLU and bias-free SwiGLU FFNs using only bounded, positional-encoding-free queries and strict last-token outputs. Rather than relying on isolated sublayer access or numerically fragile pole-finding, our attack decouples the block sequentially: recovering the aggregate Attention map, extracting the coupled FFN, reconstructing all effective Attention heads through a shared backend, and jointly refining the full block. We evaluate the same pipeline across native FP64, FP32, FP16, and

BF16 implementations up to $d=256$, $H=8$ heads, and $m=1024$
(over one million parameters).
At this scale, extraction uses $0.26\text{--}0.47$ vector queries

per parameter and achieves holdout relative $L_2$ errors of at most

$2.20\times 10^{-15}$ in FP64, $5.49\times 10^{-7}$ in FP32,
$1.07\times 10^{-3}$ in FP16, and $8.16\times 10^{-3}$ in BF16.
── more in #ai-safety 4 stories · sorted by recency
── more on @transformer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cryptanalytic-extrac…] indexed:0 read:1min 2026-11-29 · —