Skip to content

A temporal gradient inversion attack for private trajectory reconstruction in embodied reinforcement learningTemporal Gradient Inversion for Private Trajectory Reconstruction in Embodied Reinforcement Learning

arXiv· arXiv:2609.30258· Sudip Bhujel, Shanghao Shi, Ruiquan Huang, Ning Zhang, Yang XiaoDepartment of Computer Science, University of Kentucky; Department of Computer Science and Engineering, Washington University in St. LouisIndexed by this site · 17 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose TRACE, which reconstructs observation-action trajectories from the per-step policy gradients of embodied RL agents, achieving 18.8 dB PSNR and 100% action recovery on held-out scenes.

Threat modelThe attacker is a passive, honest-but-curious model server that aggregates faithfully but observes the gradients uploaded by the client. White-box assumption: knows the model architecture, current checkpoint θ0, action space, and learning rule, but not the underlying data; possesses auxiliary trajectories from the same task family for offline training, and inference relies only on the observed ordered per-step gradients. The victim system is an embodied RL client that performs policy learning with A2C or PPO and uploads per-step gradients.

Questions
Distributed embodied RL uploads only policy gradients and keeps raw sensor data, but the authors argue that the gradient stream can be inverted: the recovered trajectories leak room layout, objects, and the movement and gaze positions of agents, and existing single-frame gradient inversion methods do not exploit cross-temporal correlations.
Methods
The authors propose TRACE: a gradient encoder compresses each step's gradient into a latent, a causal transformer propagates context along the trajectory, and a decoder autoregressively reconstructs RGB observations and predicts actions; theoretically they give a closed-form action recovery theorem and a conditional mutual information characterization of the temporal gain.
Experiments and results
On held-out AI2-THOR scenes, TRACE achieves 18.8 dB PSNR and 100% action accuracy on PPO/A2C victim models, at 3–4.5 ms per frame, outperforming the DLG, IG, and LtI baselines; DP-SGD and 4-bit quantization noticeably reduce reconstruction quality, while pruning and 8-bit quantization are almost ineffective.
Limitations and future work
The authors state that the experiments are limited to AI2-THOR point-goal navigation and do not verify cross-task/cross-simulator transfer or continuous actions; the aggregation experiments do not include shuffled minibatches, multi-epoch updates, or secure aggregation; the downstream navigation utility of the defenses is not evaluated.
Experimental setupShared-CNN actor-critic (PPO/A2C)、Tiny ViT et al. · AI2-THOR point-goal navigation · MSE、PSNR et al.
Evaluated models
Shared-CNN actor-critic (PPO/A2C)Tiny ViTIMPALA-style CNNWider IMPALA CNNCNN+GRUMulti-modal CNNCNN (10 actions)
Benchmarks
AI2-THOR point-goal navigation
Metrics
MSEPSNRSSIMLPIPSAction AccuracyHist. TV
AI summaryResearchers propose a temporal gradient inversion attack called TRACE, which can autoregressively reconstruct private observation and action trajectory sequences from the policy gradients uploaded at each step by an embodied reinforcement learning agent. Such distributed training originally provided some privacy by keeping raw sensor data on the device and transmitting only policy gradients, but the temporal structure amplifies the leakage. The attack exploits two structural signals ignored by previous single-frame methods: cross-temporal correlations between embodied gradients at adjacent moments (which the authors formalize as a conditional mutual information bound), and the ability to recover actions exactly in closed form from the structure of the policy head gradients when entropy regularization is sufficiently small. On held-out embodied scenarios, TRACE achieves 18.8 dB PSNR, near-perfect action recovery, and 3-4.5 milliseconds per-frame reconstruction time, surpassing learning-based baselines on all reconstruction metrics and outperforming optimization-based attacks while being several orders of magnitude faster. The attack also applies to recurrent, residual, and compact Transformer victim architectures, multimodal inputs, and larger discrete action spaces; defense experiments indicate that protecting temporal gradient flows may require sequence-aware privacy mechanisms.

Researchers propose a temporal gradient inversion attack called TRACE, which can autoregressively reconstruct private observation and action trajectory sequences from the policy gradients uploaded at each step by an embodied reinforcement learning agent. Such distributed training originally provided some privacy by keeping raw sensor data on the device and transmitting only policy gradients, but the temporal structure amplifies the leakage. The attack exploits two structural signals ignored by previous single-frame methods: cross-temporal correlations between embodied gradients at adjacent moments (which the authors formalize as a conditional mutual information bound), and the ability to recover actions exactly in closed form from the structure of the policy head gradients when entropy regularization is sufficiently small. On held-out embodied scenarios, TRACE achieves 18.8 dB PSNR, near-perfect action recovery, and 3-4.5 milliseconds per-frame reconstruction time, surpassing learning-based baselines on all reconstruction metrics and outperforming optimization-based attacks while being several orders of magnitude faster. The attack also applies to recurrent, residual, and compact Transformer victim architectures, multimodal inputs, and larger discrete action spaces; defense experiments indicate that protecting temporal gradient flows may require sequence-aware privacy mechanisms.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study whether, in distributed training of embodied RL, the server can reconstruct private observation-action trajectories from ordered per-step policy gradients.

    Core question: in distributed embodied RL, where clients upload only policy gradients and retain raw sensor data, the authors study whether a curious server can reconstruct the client's private observation-action trajectory from these ordered per-step gradients.

    • Scenario and importance: In distributed RL scenarios such as robot swarms and shared navigation, agents send policy gradients to an aggregation server. The authors argue that recovered embodied trajectories leak temporally ordered camera frames and actions, such as room layout, objects, movement, and gaze locations, which can be used for activity profiling, site mapping, and persistent surveillance.
    • Shortcomings of existing methods: The authors state that existing gradient inversion techniques target a single image or a static mini-batch, treat samples as i.i.d., and optimize with supervised losses such as cross-entropy; whereas embodied policy learning trajectories are ordered measurements of a physical process, adjacent frames are coupled by transition dynamics, and single-frame methods cannot exploit this cross-step structure.
    • Core observation: Consecutive observations leave correlated signatures in the corresponding policy gradients; the authors formalize cross-temporal correlation with a conditional mutual information bound and prove that discrete actions can be recovered in closed form from the policy-head gradient structure when entropy regularization is sufficiently small.
    • Paper proposes: TRACE (Temporal Reconstruction Attack on Consecutive Encodings), an amortized temporal gradient inversion attack that reconstructs an entire trajectory in milliseconds using a gradient encoder, a causal transformer, and an autoregressive decoder, along with theoretical analysis and defense evaluation.
    • Threat model:
      • Goal: Reconstruct observations ŝ1:T and actions â1:T from the victim client's consecutive gradient trajectory G1:T.
      • Knowledge: white-box—knows the model architecture, current checkpoint θ0, action space, and learning rule, but not the underlying data.
      • Capability: passive, honest-but-curious server that aggregates faithfully and only observes uploaded per-step gradients; possesses auxiliary trajectories from the same task family for offline training, and inference uses only the observed ordered gradients.
      • Victim system: an embodied RL client that performs policy learning with A2C or PPO and uploads per-step gradients (AI2-THOR point-goal navigation).
  2. What related research exists?

    Related work falls into four categories: learned inversion, gradient inversion in distributed learning, privacy risks in RL/embodied AI, and defenses against gradient inversion.

    Learning-based inversion

    • Classical gradient inversion (DLG [47], Inverting Gradients [12], GradInversion [41]) performs iterative optimization for each gradient, and the authors state that the per-sample cost is often on the order of minutes to hours.
    • Wu et al. [40] (Learning to Invert, LtI) train a feedforward inversion model with auxiliary data to amortize the cost; the authors state that it can match or exceed optimization-based methods and remains effective under gradient compression and perturbation defenses; subsequent efficiency-oriented attacks [16, 31] further narrow the gap.
    • The paper points out the difference between TRACE and these works: it uses a causal transformer to autoregressively decode the entire trajectory, completely replacing per-gradient optimization.

    Gradient inversion in distributed learning

    • Gradient inversion in federated/distributed learning has been widely studied [47, 44, 12, 41, 17, 14, 23]; some works assume stronger conditions, namely that the server actively modifies parameters or model architecture [26, 38, 45, 11].
    • Recent works extend attacks to Vision Transformer [14, 23], larger architectures [31], and systematize the attack landscape [6].
    • The paper points out that these are single-sample attacks that treat temporally correlated gradient streams as i.i.d. noise, whereas TRACE targets the temporally correlated gradient streams of embodied policy learning and exploits cross-step dependencies.

    Privacy risks in RL and embodied AI

    • Li et al. [20] studied the privacy risks of home robots trained with federated RL.
    • Du et al. [9] proposed ORL-AUDITOR, which uses cumulative reward as a dataset fingerprint to audit offline deep RL, and the authors take this to suggest that sequential decision data contains exploitable structure.
    • He [15] studied federated RL gradient inversion under transition dynamics constraints.

    Defenses

    • Existing defenses include representation-layer protection [33], gradient-leakage-resistant FL [37], generative gradient leakage auditing [21], CENSOR [42], SVDefense [24], differentially private FL [13], and sparse communication [2]; the authors state that they reduce leakage in static settings, but whether they are effective against amortized temporal attacks on sequential trajectory data remains unknown.

    Baselines and benchmarks: The experiments compare DLG [47], Inverting Gradients [12], and LtI [40], evaluated on the AI2-THOR [18] point-goal navigation task with 100 held-out trajectories (T=8). The authors position TRACE as: extending gradient inversion from a single-frame problem to a trajectory-level problem, and amortizing the attack with temporal structure.

  3. How does the paper address this problem?

    TRACE uses a gradient encoder, a causal transformer, and an autoregressive decoder to amortize the inversion of an entire trajectory, and provides theory for action recovery and temporal gain.

    Overall idea: amortize trajectory inversion into an autoregressive attack model TRACE—a gradient encoder compresses each step's high-dimensional gradient into a latent, a causal transformer propagates visual context along the trajectory, and a decoder jointly reconstructs RGB observations and predicts actions; theoretically proves closed-form recovery of discrete actions and temporal conditional gain.

    Problem setting and formalization

    • The client interacts with a private environment using broadcast parameters θ0, computes per-step gradients, and uploads them in order; the server minimizes reconstruction error and action prediction error to recover the trajectory.
    • The unified per-step actor-critic objective is Lact(θ) = ℓpolt(θ) + cv (Vθ(st) − R̂t)2 − ce H(πθ(·|st)), where ℓpol is instantiated as A2C or PPO; the attacker observes gt = ∇θ Lac t (θ)|θ0.
    • Modeling assumption: gt is the per-step gradient at the broadcast parameters; multi-step client updates are out of scope (the authors state that multi-step updates may reduce temporal structure).

    Three components of the attack model

    • Gradient encoder and image encoder: ϕenc : Rd → RD compresses the million-dimensional gradient (default victim model d=936,102) into a D=1024-dimensional latent zt; ϕimg produces image context tokens et, and e0 is a learnable start token.
    • Temporal transformer: N=6 layers, 8-head causal self-attention (FlashAttention), input is the interleaved sequence XTF = [z1, e0, z2, e1, …, zT, eT−1], lower-triangular causal mask; the learnable scalar of the gated residual connection initially downweights the residual branch.
    • Decoder: the image head uses transposed convolutions to upsample the contextualized latent z̃t into 84×84 RGB (sigmoid output), and the action head is a two-layer MLP that outputs an action distribution and takes the arg max.

    Autoregressive training

    • First train in parallel with teacher-forced warmup, then use scheduled sampling to linearly increase the probability of replacing ground-truth frames with the model's own predictions by epoch (range [0.1, 0.8], warmup 5 epochs), and add a short-horizon rollout loss of R=3 steps (feedback frames detached) to alleviate exposure bias.
    • The training objective is the weighted sum Ltotal = α1 LMSE + α2 LL1 + α3 Lact + α4 Lperc + α5 Lrollout, with weights α1…α5 = 1.0, 0.5, 0.01, 0.2, 0.5 (Table 6).
    • Inference decodes T steps frame by frame in the same sequential feedback mode; default T=8, 50 epochs, learning rate 1e-4, cosine schedule (Table 6).

    Theoretical results

    • Proposition 4.1: In a neighborhood of θ0, PPO's clip is inactive, A2C and PPO have the same gradient at θ0, and gt decomposes into policy, value, and entropy terms.
    • Theorem 4.2: When the actor/critic heads do not share parameters, Ât≠0, ReLU-type h(st), and the policy is non-degenerate (πat<1)等假设下,ce=0 时真实动作可由 policy-head 梯度列和的 arg min/arg max 精确恢复;ce>0, if 2ceLtπmax < ∆t/∥h(st)∥1 仍精确。作者称确定性策略(πat→1)下动作不可仅从 policy-head 恢复。
    • Theorem 4.5:时间上下文增益定义为条件互信息 ∆It := I(st ; g1:t−1 | gt ) ≥ 0,即观测当前梯度后、过去梯度流额外消除的 st 残差熵;在 Markov 策略与一步 TD(0) 估计(Lemma D.3)下有精确恒等式,GAE λ>0 and rollout normalization exceed this case, the authors state that this part is only discussed intuitively and verified empirically.
  4. What experiments did the paper conduct?

    On held-out AI2-THOR scenes, TRACE achieves 18.8 dB PSNR and 100% action accuracy on PPO/A2C victim models, outperforming three baselines; DP-SGD provides the strongest protection.

    Experimental Setup

    • Victim models: Default shared-CNN actor-critic (4 convolutional blocks + 512-dimensional hidden layer + policy/value heads, d=936,102), trained with PPO or A2C; additional PPO victims: Tiny ViT, IMPALA-style CNN, Wider IMPALA CNN, CNN+GRU, Multi-modal CNN, 10-action CNN (Table 9, 10).
    • Task and data: AI2-THOR point-goal navigation, RGB downsampled to 84×84, default 5 discrete actions; of 120 indoor scenes, 108 for training and 12 held-out for testing; base model training uses 127,188 (PPO)/149,250 (A2C) gradient sequences (Table 7).
    • Baselines: DLG (L-BFGS 300 iterations/step), IG (Adam 4,800 iterations), LtI (MLP direct mapping), all adapted to the actor-critic surrogate loss.
    • Metrics: MSE↓, PSNR↑, SSIM↑, LPIPS↓, Action Accuracy↑; reported as mean ± one standard deviation (per image).
    • Evaluation scale: The main comparison is run once each for PPO and A2C victims on 100 held-out trajectories (T=8); in the defense evaluation the attacker is zero-shot (trained on clean gradients and applied directly to defended gradients).
    • Number of repetitions: The paper does not report multiple repetitions; Appendix F.4/F.5 explicitly states that some results are single-run.

    Main Results

    According to Table 1 (100 held-out trajectories, T=8):

    Swipe horizontally to read the table

    MethodPPO PSNR↑PPO LPIPS↓PPO Act. Acc.↑PPO inference timeA2C PSNR↑A2C Act. Acc.↑
    DLG5.474±0.8261.224±0.09616.631.0s6.106±1.54451.0
    IG8.727±2.7910.766±0.11031.539.3s9.511±0.81032.5
    LtI16.790±1.7080.671±0.092100.01.2ms17.652±1.366100.0
    TRACE18.771±1.7780.362±0.070100.04.5ms18.873±1.391100.0
    • The authors state that TRACE is best on all reconstruction metrics for both victim algorithms; compared with LtI, MSE drops from 0.023 to 0.014 (PPO), and LPIPS is nearly halved.
    • The authors note that at T=1 (12.85 dB, Table 4) TRACE is worse than LtI's single-frame result, and argue that its advantage comes from temporal conditioning rather than a stronger single-frame extractor.
    • Learned methods take milliseconds per frame, optimization-based methods take tens of seconds per frame; the authors state that after training, inversion can be near real-time.

    Few-Shot Adaptation

    • What was tested: Fine-tuning the attacker on held-out scenes with p∈{0,10,20,30,40,50}% target-domain trajectories (Table 2, PPO).
    • Results: Zero-shot (p=0) already has PSNR 18.8 dB, SSIM 0.627, action accuracy 100.0%; 10% data raises PSNR by 2.1 dB and lowers LPIPS to 0.273; at 50%, MSE drops to 0.005, PSNR 23.8 dB, SSIM 0.740. A2C shows a similar trend, with PSNR 25.0 dB at 50% (Table 8).
    • Authors' interpretation: TRACE can transfer to unseen scenes without target-domain fine-tuning, and a small amount of target-domain data can further reduce the visual gap.

    Defense Evaluation

    • What was tested: Four defenses—quantization, magnitude pruning, additive Gaussian noise, and DP-SGD—with the attacker applied zero-shot to defended gradients (Table 3).
    • Results: Pruning is essentially ineffective—when only 10% of gradient entries are kept, PPO's PSNR is still 18.9 and action accuracy 99.9% (A2C drops to 89.0%); 8-bit quantization is similarly mild; at 4-bit, PPO PSNR drops to 12.4 and action accuracy to 37.9%; at 2-bit, PPO action accuracy is 19.4%; with noise σ=0.1, PSNR drops to 14.2 (PPO)/16.5 (A2C); DP-SGD at ε∈{1,5,10} gives SSIM about 0.34 (PPO)/0.32 (A2C), and action accuracy drops to about 20% (near random).
    • Authors' interpretation: DP-SGD provides the strongest protection; lightweight defenses leave substantial leakage; the authors explicitly did not evaluate downstream navigation utility under these defenses.

    Additional Victim Configurations (App. F.3)

    • What was tested: A separate attacker was trained for each additional PPO victim architecture (no data augmentation), including 10-action, Tiny ViT, two IMPALA residual CNNs, CNN+GRU, and multimodal CNN (Table 10).
    • Results: 10-action CNN action accuracy 99.5%, PSNR 18.92 dB; Wider IMPALA 22.36 dB; CNN+GRU 18.62 dB; multimodal 19.78 dB (reconstructing only RGB and actions); Tiny ViT action accuracy 99.0% but PSNR only 13.99 dB.
    • Authors' interpretation: Reliable action recovery does not imply equally reliable image recovery; because trajectories, data scale, and attacker capacity differ, fidelity differences cannot be attributed solely to the victim architecture.

    Other Ablations and Analyses

    • Trajectory length T (Table 4, PPO): From T=1→8, PSNR rises from 12.85 to 18.74 dB; at T=64 it reaches 20.29 dB, SSIM 0.666; A2C plateaus at [18.26, 18.77] dB after T≥8 (Table 13).
    • Gradient components (Table 4): Using only policy/value head gradients, PSNR drops to 14.12 and LPIPS to 0.511, but action accuracy remains ≥99.6%; the authors state that high-frequency structural cues are in the CNN and FC layers.
    • Loss ablation (Table 4): Removing the action loss drops action accuracy to 19.0% (A2C 16.4%, Table 13) without degrading visual metrics; removing LPIPS slightly raises PPO's PSNR to 18.94 but raises LPIPS to 0.401.
    • Gradient aggregation (Table 11, App. F.4): With 4-step aggregation trained from scratch, the action histogram TV is 0.296, about 31% lower than the uniform baseline of 0.428, but PSNR 17.03 dB is lower than the fine-tuning scheme; with 8-step aggregation TV is 0.268, only about 12% lower than its uniform baseline of 0.304.
    • Auxiliary data scale (Table 12, PPO): With 10% auxiliary data PSNR is 16.25 dB, with 100% it is 18.71 dB; action accuracy is 100% across all six levels.
  5. What are some points that can be further explored?

    The authors list limitations such as task scope, continuous actions, and the aggregation interface, and propose future directions such as sequence-aware defenses, continuous actions, and off-policy.

    Limitations and Future Directions Noted by the Authors

    • Experiments are limited to AI2-THOR point-goal navigation; additional victims require separately trained attackers, cross-task and cross-simulator transfer is not established, and scalability to larger policies is not validated (App. H).
    • The multimodal experiment reconstructs only RGB and actions, not the goal input; depth, proprioception, and off-policy algorithms are not evaluated; capture for recurrent policies is based on detached hidden states and does not backpropagate through the full history (App. H).
    • Theorem 4.2 applies only to classification policies with finite discrete actions; the identifiability of Gaussian continuous-control policies depends on the covariance parameterization and advantage sign information, and the corresponding identifiability conclusions are left to future work (App. H).
    • The defense study evaluates only reconstruction leakage; downstream navigation utility is not evaluated; the computational overhead of DP-SGD and the privacy-utility trade-off are not evaluated (App. G, H).
    • The aggregation experiments (App. F.4) do not evaluate shuffled minibatches, recomputed rollout-level updates, multi-epoch client updates, or multi-client secure aggregation; the authors state that these mechanisms may weaken or eliminate the ordered temporal signal exploited by TRACE (App. G).
    • Future directions: sequence-aware privacy mechanisms that budget over the entire rollout, continuous-action and off-policy settings, shuffled minibatches, and multi-epoch model updates (Sec. 7, App. A).

    Scope of Experimental Coverage

    • The victim algorithms are two on-policy actor-critics, PPO and A2C; there are 7 victim architecture configurations in total (default CNN, 10-action CNN, Tiny ViT, two IMPALA CNNs, CNN+GRU, multimodal CNN), all on AI2-THOR point-goal navigation (Sec. 5, Table 9, 10).
    • The defense evaluation covers four defenses: quantization, pruning, additive Gaussian noise, and DP-SGD; the authors explicitly did not test CENSOR and SVDefense, citing their overhead making real-time deployment difficult (App. G).
    • The main comparison and ablations are evaluated on 100 held-out trajectories (T=8); the aggregation experiments use 100 (Agg4)/39 (Agg8) held-out aggregated sequences (Sec. 5.1, App. F.4).
    • The paper does not report multiple repetitions or seed variance; App. F.4 and F.5 explicitly state that results are single-run, and do not isolate the effects of dataset size, initialization, and training schedule.
    • The paper does not report navigation task utility under defenses, nor does it give the minimum amount of attacker auxiliary data required (App. F.5, H).
  6. Summarize the main content of the paper

    TRACE extends gradient inversion from single frames to the trajectory level: it reconstructs observations and actions in milliseconds from the ordered per-step gradients of embodied RL, and lightweight defenses are hard-pressed to stop it.

    A gradient inversion attack paper: targeting the practice in distributed embodied RL of "transmitting only gradients, not raw data," the authors study whether a curious server can reconstruct private observation-action trajectories from ordered per-step policy gradients.

    • Problem: The authors state that the recovered trajectories leak room layout, objects, and agent movement and gaze, and can be used for activity profiling and site mapping; existing single-frame inversion methods treat gradients as i.i.d. samples and ignore cross-temporal correlations.
    • Method: TRACE uses a gradient encoder, a 6-layer causal transformer, and a residual decoder to autoregressively reconstruct the entire trajectory, with scheduled sampling and a rollout loss to mitigate exposure bias; theoretically it proves that A2C/PPO gradients are equivalent at the broadcast point (Proposition 4.1), that discrete actions can be recovered in closed form from policy-head gradients (Theorem 4.2), and that the temporal conditioning gain is non-negative (Theorem 4.5).
    • Main results: On 100 held-out trajectories (T=8) in AI2-THOR, TRACE achieves 18.771/18.873 dB PSNR, 100.0% action accuracy, and 4.5/3.0 ms per frame for PPO/A2C victim models, outperforming DLG, IG, and LtI (Table 1).
    • Transfer and extension: Zero-shot transfer to unseen scenes already reaches 18.8 dB, and after fine-tuning with 50% target-domain data PPO reaches 23.8 dB (Table 2); for recurrent, residual, compact transformer, multimodal, and 10-action victims, action accuracy remains above 97.4% (Table 10).
    • Defenses: Pruning and 8-bit quantization are almost ineffective; 4-bit quantization and σ=0.1 noise noticeably reduce fidelity; DP-SGD suppresses action accuracy to about 20% and SSIM to about 0.32–0.34 (Table 3).
    • Authors' conclusion: Receiving the policy gradients of an embodied agent is nearly equivalent to receiving the raw sensor stream; the authors argue that sequence-aware privacy mechanisms for the entire rollout are needed, and leave continuous actions, off-policy, shuffled minibatches, and multi-epoch updates to future work.
Read originalarxiv.org