Abstract
Deep Reinforcement Learning (DRL) policies represent significant intellectual property, yet they are increasingly vulnerable to model-stealing attacks. We present Stealthy Imitation (SI), the first framework capable of cloning DRL policies without access to the training environment or knowledge of input data ranges. By iteratively refining a proxy reward model to "hunt" for the victim's state distribution, SI achieves up to 97% of the original policy's performance using only black-box queries.
Introduction
Deep Reinforcement Learning (DRL) policies are expensive to develop, requiring massive compute, domain expertise, and high-fidelity simulations. While model stealing is a known threat in domains like computer vision, control systems present unique challenges. In robotics or industrial automation, an attacker often lacks environment access and knowledge of input semantics (e.g., sensor data ranges for torque or velocity). Existing "data-free" methods typically fail because they assume known input bounds, leading to ineffective queries and detectable patterns.
Methodology: The Stealthy Imitation Framework
Stealthy Imitation (SI) overcomes the lack of environment knowledge by first "stealing" the environment's state distribution. The framework operates through an iterative four-step loop:
- Transfer Dataset Construction: The attacker initializes a broad sampling distribution (e.g., a diagonal Gaussian) to query the black-box victim policy $\pi_v$ and collect state-action pairs.
- Behavioral Cloning (BC): A surrogate model $\pi_a$ is trained to mimic the collected pairs in dataset $\mathcal{D}_v$.
- Reward Model Training: Inspired by Generative Adversarial Imitation Learning (GAIL), a discriminator $\hat{\mathcal{R}}$ is trained to distinguish between the victim's behavior and the surrogate's behavior.
- Distribution Refinement: The reward model identifies regions where the surrogate fails to accurately mimic the victim. The attacker then updates the sampling distribution $S_a$ to focus on these high-reward, hard-to-imitate regions.
Experimental Evaluation
The approach was evaluated on continuous control tasks from MuJoCo (Hopper, Walker2D, HalfCheetah) and the Panda Robot suite (PickAndPlace, Reach, Slide). These benchmarks involve complex, high-dimensional sensor data with non-obvious distributions.
Key Results
- High Fidelity Performance: In the Hopper environment, SI achieved a 97% return ratio relative to the victim policy within 5 million queries.
- Distribution Alignment: The method reduced the KL divergence between the estimated and actual state distributions by an average of 81% across all tasks, demonstrating effective mapping of the functional state space.
- Robustness: SI significantly outperformed traditional Data-Free Model Extraction (DFME) baselines, which often failed to converge in control environments due to a lack of distribution awareness.
Discussion and Insights
A critical insight of this work is that a victim policy's behavior becomes "simpler" and more predictable outside its training range (often outputting saturated values like ±1). SI exploits this by treating complexity as a signal for the true state distribution.
To counter such attacks, the authors propose a defense where the victim returns random actions when it detects queries outside its known valid input range. In testing, this defense reduced the attacker's return ratio to near 0%, providing a robust deterrent against distribution-hunting strategies.
Conclusion
Stealthy Imitation demonstrates that DRL policies can be high-fidelity cloned even without environment access. By framing the extraction as a distribution-matching problem guided by a proxy reward, attackers can effectively navigate unknown state spaces. Future work will explore more complex, non-Gaussian state distributions and more robust imitation techniques to mitigate compounding errors during deployment.
Summary updated