Enabling Off-Policy Imitation Learning with Deep Actor Critic Stabilization

Sayambhu Sen, Shalabh BhatnagararXiv 2025 · DOI

Abstract

Reinforcement Learning (RL) often faces challenges in reward engineering, which Imitation Learning (IL) addresses by learning directly from expert demonstrations. However, current state-of-the-art methods like Generative Adversarial Imitation Learning (GAIL) suffer from extreme sample inefficiency and training instability. This paper introduces a novel off-policy actor-critic framework that stabilizes imitation learning by integrating reward inference into the value estimator and utilizing bounded stochastic actions. Our approach reaches expert-level performance on complex continuous control tasks, such as BipedalWalker, significantly faster than standard on-policy methods.

Introduction

Reinforcement Learning is notoriously difficult because defining a precise mathematical reward function for complex behaviors is often impractical. Imitation Learning (IL) offers a solution by allowing agents to mimic expert trajectories. While GAIL has become a standard for IL, it treats the problem as a minimax game between a generator (agent) and a discriminator (judge). This setup is often sample inefficient because it typically relies on on-policy algorithms like TRPO, which discard experience after a single update. Furthermore, the interaction between the actor, critic, and discriminator networks frequently leads to training divergence.

Methodology

To address these limitations, we propose three primary architectural shifts designed to improve efficiency and stability.

Off-Policy Actor-Critic and Stabilization

By moving from on-policy updates to an off-policy framework, the agent can utilize a replay buffer. This allows the system to "re-watch" and learn from past experiences multiple times, drastically reducing the required environment interactions. To prevent the divergence common in off-policy imitation, we incorporate stabilization techniques such as Clipped Double Q-Learning and Soft Target Updates.

The Actor-Critic architecture and the associated policy gradient for off-policy updates.

Discriminator-Free Value Learning

Rather than maintaining a separate discriminator network, we mathematically embed the reward-inference step directly into the critic (the value function). By formulating the Bellman equation in the log-probability domain and using Jensen-Shannon Divergence (JSD) to minimize the difference between agent and expert state-visitation distributions, we reduce the number of moving parts. This "less is more" architecture removes a major source of training oscillation.

Bounded Stochastic Actions

Standard Gaussian policies often suggest actions that exceed physical joint limits, leading to wasted samples. We utilize a tanh activation layer to ensure the actor only outputs valid actions. To maintain exploration without sacrificing feasibility, we treat noise as an input to the network (reparameterization) rather than an external addition to the output.

Comparison of adding noise to the output (left) vs. treating noise as a network input (right) to ensure valid action bounds.

Experimental Evaluation

We evaluated the proposed algorithm using the BipedalWalker-v2 environment from OpenAI Gym, a challenging task requiring a two-legged robot to navigate uneven terrain. We utilized a dataset of 100 high-performance trajectories generated by a pre-trained PPO agent as expert demonstrations.

Key Results

Our "Off Imitation" algorithm significantly outperformed the GAIL baseline in both speed and efficiency:

  • Learning Speed: The agent achieved expert-level episodic returns (~300) within just 200,000 environment timesteps.
  • Sample Efficiency: The on-policy GAIL baseline learned significantly slower and plateaued at a lower performance level within the same timeframe.
  • Robustness: The JSD-based loss allowed the agent to match expert behavior effectively without access to the environment's true reward function.

Conclusion and Future Work

This work demonstrates that off-policy imitation learning is a powerful tool when combined with modern actor-critic stabilization techniques. By eliminating the separate discriminator and reparameterizing noise as an input, we achieve faster convergence and more stable training.

Future research will focus on addressing the high variance observed in policy returns during training, potentially through hybrid on-policy/off-policy updates. Additionally, we aim to extend this framework to handle suboptimal demonstrations, enabling agents to eventually surpass the performance of the experts they observe.

Summary updated

BibTeX
@misc{sen2025enabling,
  author = {Sayambhu Sen and Shalabh Bhatnagar},
  title = {{Enabling Off-Policy Imitation Learning with Deep Actor Critic Stabilization}},
  year = {2025},
  eprint = {2511.07288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07288},
}
Figure