ORL-AUDITOR: Dataset Auditing in Offline Deep Reinforcement Learning

Linkang Du, Min Chen, Mingyang Sun, Shouling Ji, Peng Cheng, Jiming Chen, Zhikun Zhang

This paper introduces ORL-AUDITOR, the first trajectory-level dataset auditing mechanism specifically designed for offline Deep Reinforcement Learning (DRL). By leveraging cumulative rewards as a unique, intrinsic fingerprint, it enables data owners to prove whether a suspect model was trained on their proprietary data with high accuracy, providing a critical tool for intellectual property (IP) protection in the AI era.

What Problem Does This Paper Address?

Offline DRL is a powerful paradigm where agents learn from pre-collected datasets rather than risky real-world interactions. These datasets—often collected by experts or through expensive simulations—are valuable assets. However, they are prone to unauthorized use or "piracy."

Existing dataset protection methods fall short in this context:

  • Watermarking requires modifying the data before publication, which is impossible for datasets already in the wild.
  • Membership Inference typically requires access to the environment to generate "non-member" data, which is unavailable in purely offline scenarios.
  • Dataset Inference for supervised learning relies on classification labels and decision boundaries, concepts that don't translate directly to the continuous action spaces of RL.

ORL-AUDITOR fills this gap by providing a post-event auditing mechanism that requires only black-box access to a suspect model.

Methods

The authors propose a new paradigm: using cumulative rewards as a unique identifier. Since DRL models are explicitly trained to maximize these rewards based on a specific dataset's transitions, the reward distribution becomes a stable "fingerprint" of that data.

The ORL-AUDITOR workflow consists of three main steps:

  1. Model Preparation: The auditor trains a critic model on the target dataset to estimate cumulative rewards for state-action pairs. They also train several shadow models on the same dataset with different random initializations to capture the natural variance of legitimate training.
  2. Cumulative Reward Collection: The auditor queries both the shadow models and the suspect model using states from the target dataset. The critic model then estimates the cumulative rewards for the actions produced by these models.
  3. Audit Process: Using hypothesis testing (specifically Grubbs' test), the auditor compares the suspect model's reward distances against the distribution established by the shadow models. If the suspect model's behavior aligns with the shadow models, it is flagged as being trained on the target dataset.
Fig. 1: Intuitive explanation of ORL-AUDITOR. The middle surface is the cumulative rewards of the state-action pairs from a dataset. The auditor outputs a positive result if the cumulative rewards of a suspect model’s state-action pairs are between the two outer surfaces.

Datasets

The researchers evaluated ORL-AUDITOR using a variety of standard and real-world benchmarks:

  • Gym Tasks: Lunar Lander, Bipedal Walker, and Ant. These cover a range of state/action space complexities (from 8-dim to 111-dim).
  • Real-World Datasets: The authors used the "HalfCheetah" task with datasets from Google (D4RL) and DeepMind (RL Unplugged) to demonstrate practical effectiveness on published, high-quality data.

Key Insights and Ideas

  • Rewards as Fingerprints: The most significant "aha" moment is that while different models might take slightly different actions, their estimated cumulative rewards for a given dataset are remarkably consistent if they were trained on that specific data.
  • Shadow Models for Adaptivity: Because every RL task and dataset is different, a fixed similarity threshold won't work. Shadow models allow the auditor to dynamically determine what "normal" training looks like for a specific dataset.
  • Wasserstein Distance is Key: The authors found that the Wasserstein distance (Earth Mover's Distance) is particularly effective for this audit because it captures both numerical and positional deviations in the reward sequences.

Key Results

  • High Accuracy: ORL-AUDITOR achieved an auditing accuracy of over 95% across multiple DRL models (BC, BCQ, IQL, TD3+BC) and tasks, with false positive rates below 2.88%.
  • Robustness to Defense: The system remained effective even when adversaries used ensemble architectures (a common defense against membership inference), maintaining over 85% accuracy.
  • Resistance to Obfuscation: It proved robust against "action distortion," where an adversary adds Gaussian noise to the model's outputs to hide its training origins.
  • Efficiency: The authors demonstrated that as few as 9 to 15 shadow models are sufficient to achieve high confidence in the audit results.
Fig. 4: The workflow of ORL-AUDITOR contains three steps, i.e., model preparation, cumulative reward collection, and audit process. ORL-AUDITOR first trains a set of shadow DRL models and a critic model on the target dataset, then collects the cumulative rewards from the state-action pairs of the shadow models and the suspect model. Finally, ORL-AUDITOR audits every trajectory based on hypothesis testing.

Limitations and Future Work

  • Significance Level Trade-offs: The authors noted that accuracy can decrease when extremely strict significance levels (e.g., $\alpha = 0.001$) are required by the data owner.
  • Strong Distortion: While robust to moderate noise, extremely heavy action distortion can degrade performance. Future work may involve integrating multiple distance metrics to enhance robustness against aggressive obfuscation.
  • Computational Cost: Training shadow models requires significant compute, which might be a barrier for smaller institutions, though the open-sourcing of the tool helps mitigate this.

ORL-AUDITOR is open-sourced at https://github.com/link-zju/ORL-Auditor.

Summary updated

Abstract

Data is a critical asset in AI, as high-quality datasets can significantly improve the performance of machine learning models. In safety-critical domains such as autonomous vehicles, offline deep reinforcement learning (offline DRL) is frequently used to train models on pre-collected datasets, as opposed to training these models by interacting with the real-world environment as the online DRL. To support the development of these models, many institutions make datasets publicly available with opensource licenses, but these datasets are at risk of potential misuse or infringement. Injecting watermarks to the dataset may protect the intellectual property of the data, but it cannot handle datasets that have already been published and is infeasible to be altered afterward. Other existing solutions, such as dataset inference and membership inference, do not work well in the offline DRL scenario due to the diverse model behavior characteristics and offline setting constraints. In this paper, we advocate a new paradigm by leveraging the fact that cumulative rewards can act as a unique identifier that distinguishes DRL models trained on a specific dataset. To this end, we propose ORL-AUDITOR, which is the first trajectory-level dataset auditing mechanism for offline RL scenarios. Our experiments on multiple offline DRL models and tasks reveal the efficacy of ORL-AUDITOR, with auditing accuracy over 95% and false positive rates less than 2.88%. We also provide valuable insights into the practical implementation of ORL-AUDITOR by studying various parameter settings. Furthermore, we demonstrate the auditing capability of ORL-AUDITOR on open-source datasets from Google and DeepMind, highlighting its effectiveness in auditing published datasets. ORL-AUDITOR is open-sourced at https://github.com/link-zju/ORL-Auditor.
BibTeX
@inproceedings{du2024orl,
  author = {Linkang Du and Min Chen and Mingyang Sun and Shouling Ji and Peng Cheng and Jiming Chen and Zhikun Zhang},
  title = {{ORL-AUDITOR: Dataset Auditing in Offline Deep Reinforcement Learning}},
  booktitle = {NDSS},
  year = {2024},
}
Figure