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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

最全面《DeepSeek R1》技术文章
专知会员服务
90+阅读 · 2025年1月29日
【学界】DeepMind论文:深度压缩感知,新框架提升GAN性能
GAN生成式对抗网络
14+阅读 · 2019年5月23日
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
【学界】CVPR 2019 Oral 目标跟踪最强算法SiamRPN++开源实现
GAN生成式对抗网络
16+阅读 · 2019年5月3日
Unsupervised Learning via Meta-Learning
CreateAMind
44+阅读 · 2019年1月3日
Github 项目推荐 | 用 Pytorch 实现的 Capsule Network
AI研习社
22+阅读 · 2018年3月7日
论文浅尝 | Question Answering over Freebase
开放知识图谱
19+阅读 · 2018年1月9日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
1+阅读 · 2016年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 12月1日
Arxiv
0+阅读 · 11月21日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
15+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
12+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
7+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
11+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
9+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
18+阅读 · 11月25日
相关VIP内容
最全面《DeepSeek R1》技术文章
专知会员服务
90+阅读 · 2025年1月29日
相关资讯
【学界】DeepMind论文:深度压缩感知,新框架提升GAN性能
GAN生成式对抗网络
14+阅读 · 2019年5月23日
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
【学界】CVPR 2019 Oral 目标跟踪最强算法SiamRPN++开源实现
GAN生成式对抗网络
16+阅读 · 2019年5月3日
Unsupervised Learning via Meta-Learning
CreateAMind
44+阅读 · 2019年1月3日
Github 项目推荐 | 用 Pytorch 实现的 Capsule Network
AI研习社
22+阅读 · 2018年3月7日
论文浅尝 | Question Answering over Freebase
开放知识图谱
19+阅读 · 2018年1月9日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
1+阅读 · 2016年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员