Recovering Weights and Activations in TEE-Offloaded Models: Checkpoint Fitting and Replay Geometry

Transformer inference can exceed the memory available in a resource-constrained trusted execution environment (TEE). Offloading linear layers to an untrusted GPU exposes obfuscated weights and boundary activation streams to the host. We study what those observations reveal about private model updates and internal activations. With a public checkpoint, local fitting on the correct discrete branch and sparse support loses only the tangent component of a small update to first order. In local experiments, we estimate all 72 BERT-Base linear tensors under BiShield-TEE and $\mathcal{O}_{\mathrm{ext}}$. With conditionally aligned boundary inputs, the ButterflyCloak simulation estimates 35 weights and fits 36 attention projections functionally. In the Qwen2.5-0.5B evaluation, surrogates improve greedy answer agreement with the victim but solve fewer problems than the public parent. Without a public checkpoint, linked noiseless views of a fixed activation matrix across at least three epochs yield almost-sure recovery of activations and input keys up to a common permutation in exact arithmetic. This result applies to the continuous random-matching variant under the stated identifiability assumptions and no persistent pair. In the integer-grid controls, the same pipeline does not achieve full recovery.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
DOI
https://doi.org/10.48550/arxiv.2612.03695
Primary Topic
Security and Verification in Computing
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Recovering Weights and Activations in TEE-Offloaded Models: Checkpoint Fitting and Replay Geometry

Chunhuan Zhao, Guoxiao Liu, Menghui Zhang, Jiejing Wen
arXiv
Security and Verification in Computing
preprint

Recovering Weights and Activations in TEE-Offloaded Models: Checkpoint Fitting and Replay Geometry

Chunhuan Zhao, Guoxiao Liu, Menghui Zhang, Jiejing Wen
preprint en

Abstract

Transformer inference can exceed the memory available in a resource-constrained trusted execution environment (TEE). Offloading linear layers to an untrusted GPU exposes obfuscated weights and boundary activation streams to the host. We study what those observations reveal about private model updates and internal activations. With a public checkpoint, local fitting on the correct discrete branch and sparse support loses only the tangent component of a small update to first order. In local experiments, we estimate all 72 BERT-Base linear tensors under BiShield-TEE and $\mathcal{O}_{\mathrm{ext}}$. With conditionally aligned boundary inputs, the ButterflyCloak simulation estimates 35 weights and fits 36 attention projections functionally. In the Qwen2.5-0.5B evaluation, surrogates improve greedy answer agreement with the victim but solve fewer problems than the public parent. Without a public checkpoint, linked noiseless views of a fixed activation matrix across at least three epochs yield almost-sure recovery of activations and input keys up to a common permutation in exact arithmetic. This result applies to the continuous random-matching variant under the stated identifiability assumptions and no persistent pair. In the integer-grid controls, the same pipeline does not achieve full recovery.

arXiv
Shandong University (CN), Tsinghua University (CN)
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon