Recovering Weights and Activations in TEE-Offloaded Models: Checkpoint Fitting and Replay Geometry
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 . 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.
Create a lesson
Related papers
NASReplayLab: An Experimental Analysis of Downlink NAS Replay Protection in the srsRAN 4G UE
Shared title terminologycs.CRSaad Kabir Uddin, Raihan Islam Arnob
Re-Grading Prompt-Injection Benchmarks by Replay: Check Defects, Grader Choice, and the Decisions Built on Them
Shared title terminologycs.CRJie Pan, Weicheng Wang
zk-Sable: Per-Client Zero-Knowledge Proofs of Batched, Bit-Exact LLM Inference with Open Weights
Shared title terminologycs.CRTomer Solberg
Deterministic Runtime-Adaptive CAN Routing Diversity for Replay Attack Mitigation
Shared title terminologycs.CRAshwin Kulkarni, Aditi Ramadwar
Replay-Protected Authenticated Encryption for CAN FD with Ascon-AEAD128 and Flash-Persisted Freshness on FPGA
Shared title terminologycs.CRKaviprashanna Krishnamoorthy, Vyshnav Nandha