Where Did You Learn That From? Surprising Effectiveness of Membership Inference Attacks Against Temporally Correlated Data in Deep Reinforcement Learning

Maziar Gomrokchi, Susan Amin, Hossein Aboutalebi, Alexander Wong, Doina Precup

Abstract

While significant research advances have been made in deep reinforcement learning (RL), the vulnerability of these algorithms to membership inference attacks (MIAs) has remained largely unexplored. This paper proposes an adversarial attack framework designed to test the privacy of state-of-the-art deep RL algorithms. By investigating the impact of temporal correlation—a natural feature of RL training data—the researchers demonstrate that an adversary can infer training data with startling accuracy. Experimental results across three continuous control MuJoCo tasks show accuracies exceeding 84% in individual modes and 97% in collective modes, raising serious privacy concerns for deployed RL agents.

Introduction

Membership Inference Attacks (MIAs) aim to determine whether a specific data point was part of a model's training set. While well-studied in supervised learning, Deep RL presents unique challenges. RL data consists of trajectories: sequences of states, actions, and rewards that are highly correlated over time. Unlike static datasets, RL agents learn from environmental feedback rather than fixed labels. Although RL systems use replay buffers to shuffle and decorrelate data, this research investigates whether underlying temporal signatures still leak through the final trained policy, potentially deanonymizing users in sensitive applications like healthcare robotics or personalized dialogue systems.

Methodology

The authors propose a black-box adversarial framework where the attacker only observes the model's output trajectories without access to internal weights. The attack pipeline involves training shadow models to simulate the target's behavior and using a specialized data formatter to compare familiar versus unfamiliar starting conditions.

Overview of the proposed adversarial attack framework, including target training (a), shadow training (b), attack model training (c), and inference (d).

Exploiting Temporal Correlation

A key technical aspect of the attack is how it handles the sequential nature of RL data. During training, trajectories are typically "chopped" into tuples and stored in a replay buffer to break correlations. However, the attack framework exploits the fact that the trained policy still retains signatures of these transitions, even when shuffled.

The process of trajectory chopping and storage in a replay buffer, which the attack framework leverages to identify training data.

Key components of the attack include:

  • Shadow Model Training: The attacker trains "shadow" RL models on similar datasets to observe behavior on known training data versus unseen data.
  • Data Formatter: Pairs input trajectories with output trajectories from the same initial state for "apples-to-apples" comparison, helping the classifier spot subtle behavioral differences.
  • Specialized Architectures: Temporal Convolutional Networks (TCNs) are used for Individual MIAs to capture long-range dependencies, while Residual Networks (ResNets) are used for Collective MIAs to exploit cross-correlation between multiple data points.

Experimental Evaluation

The framework was evaluated on three standard MuJoCo continuous control tasks in OpenAI Gym: Hopper-v2, HalfCheetah-v2, and Ant-v2. These high-dimensional benchmarks provide complex state and action spaces to test microscopic information leakage.

Key Results

  • Individual Mode: Achieved over 84% accuracy in identifying training trajectories.
  • Collective Mode: Achieved over 97% accuracy in the Hopper-v2 task.
  • Impact of Episode Length: In the Ant-v2 task, increasing trajectory length from 10 to 200 steps caused collective attack accuracy to jump from ~88% to nearly 98%.
  • Statistical Significance: High Matthews Correlation Coefficient (MCC) values confirm the attack's predictions are strongly related to actual training membership, not random chance.

Discussion and Insights

  • Correlation as a Leakage Channel: Temporal correlation is the primary driver of leakage. When data is manually decorrelated, attack accuracy drops significantly, proving that the sequential nature of RL is a privacy liability.
  • Collective Attacks are Deadlier: By analyzing batches of trajectories, attackers can capture collective properties that are hidden in single sequences, making collective MIAs more effective.
  • Performance vs. Privacy: There is a direct trade-off; as agents achieve higher rewards and longer trajectories, they become more predictable, making their training data more transparent to attackers.
  • Replay Buffers are Insufficient: While designed for training stability, replay buffers do not act as a privacy shield against sophisticated temporal analysis.

Conclusion

This work highlights a critical vulnerability in Deep RL. While black-box attacks are already highly effective, the findings underscore the urgent need for robust privacy-preserving RL algorithms, such as those incorporating Differential Privacy, to protect sensitive user data in real-world deployments.

Summary updated

BibTeX
@inproceedings{gomrokchi2023where,
  author = {Maziar Gomrokchi and Susan Amin and Hossein Aboutalebi and Alexander Wong and Doina Precup},
  title = {{Where Did You Learn That From? Surprising Effectiveness of Membership Inference Attacks Against Temporally Correlated Data in Deep Reinforcement Learning}},
  booktitle = {IEEE Access},
  year = {2023},
  url = {https://openreview.net/forum?id=MsO0hwc6-9},
}

Loading related content...

Figure