Adversarially Guided Actor-Critic

Yannis Flet-Berliac, Johan Ferret, Olivier Pietquin, Philippe Preux, Matthieu Geist

TL;DR

Adversarially Guided Actor-Critic (AGAC) introduces a "third protagonist"—the adversary—to the traditional reinforcement learning framework. By rewarding the agent for taking actions that the adversary cannot predict, AGAC drives innovative exploration and significantly outperforms state-of-the-art methods in complex, sparse-reward, and procedurally-generated environments.

The Challenge of Hard-Exploration

Deep Reinforcement Learning (RL) has seen massive success, but it still hits a wall in "hard-exploration" tasks. These are environments where rewards are extremely rare (sparse) or where the environment layout changes every time the agent starts a new session (procedural generation).

In these scenarios, standard agents often get stuck repeating the same unsuccessful behaviors because they haven't received enough positive reinforcement to learn a better path. While existing methods try to encourage exploration by rewarding "curiosity" or "novelty," they often struggle to generalize to new maps or become unstable in complex 3D spaces. The authors aim to create a more robust way to drive diverse behavior that doesn't rely on memorizing specific states.

The AGAC Framework

The core innovation is the Adversarially Guided Actor-Critic (AGAC) framework. Traditionally, Actor-Critic methods involve two components:

  1. The Actor: Learns which actions to take to maximize rewards.
  2. The Critic: Predicts how much reward the agent will get from a certain state.

AGAC adds a third player: The Adversary.

The adversary's goal is to mimic the actor as closely as possible, predicting what the actor will do next based on previous trajectories. Conversely, the actor's new goal is to find rewards and earn an "exploration bonus" for taking actions that the adversary didn't expect.

Mathematically, the adversary minimizes the KL-divergence between its distribution and the actor's, while the actor receives a bonus proportional to the difference in their log-probabilities. This creates a "cat-and-mouse" game where the actor is constantly forced to innovate and try new strategies to deceive the adversary. To ensure the agent eventually focuses on the actual task, this adversarial bonus is gradually annealed (reduced) over time.

Datasets and Environments

The authors evaluated AGAC on two main benchmarks known for being difficult for RL agents:

  • VizDoom: A 3D navigation task ("MyWayHome") where an agent must find its way through a series of rooms with high-dimensional visual inputs and very sparse rewards.
  • MiniGrid: A suite of procedurally-generated gridworld tasks (like MultiRoom, KeyCorridor, and ObstructedMaze). These are particularly challenging because the map changes every episode, meaning the agent cannot simply memorize a path; it must learn general exploration principles.
VizDoom and MiniGrid environments used for evaluating AGAC.

Key Insights

  • Conservative Diversification: AGAC's behavior is described as "conservatively diversified." The adversary acts as a moving baseline of known or predictable behaviors. By pushing away from this baseline, the actor is forced to explore the fringes of its current policy without completely losing its focus on the reward.
  • Action-Space vs. State-Space Exploration: Many popular methods (like ICM or RND) focus on finding novel states. AGAC focuses on novel actions. This is often more robust in environments with complex dynamics where state-prediction is difficult.
  • Robustness to Partial Observability: In environments where the agent can only see a small part of the map, the adversary has a harder time predicting the actor. This actually works in the actor's favor, providing a more consistent and useful exploration signal than methods that rely on full-map knowledge.

Key Results

  • Superior Sample Efficiency: In VizDoom, AGAC reached near-perfect scores in just 4 million steps. Competing state-of-the-art methods like RIDE and ICM required nearly twice as many transitions to reach the same performance.
  • Solving the "Unsolvable": In the most difficult MiniGrid tasks (like ObstructedMazeFull), AGAC was often the only method capable of finding the reward at all. Most other baselines, including RND and Count-based exploration, failed to achieve any progress.
  • Reward-Free Success: Impressively, when tested in a "reward-free" setting—where the agent receives no external feedback—AGAC managed to reach the final room of a 10-room maze in about 15% of episodes. This demonstrates that the adversarial objective alone is a powerful driver for exhaustive exploration.

Limitations and Future Work

While AGAC is powerful, the authors note a few areas for improvement:

  • Hyperparameter Sensitivity: The performance of the algorithm is somewhat sensitive to the coefficient $c$ (the weight of the adversarial bonus). Finding the right balance between exploration and exploitation still requires some manual tuning.
Performance sensitivity to the adversarial bonus coefficient c in MiniGrid-KeyCorridorS4R3.
  • Stability: While more stable than many GAN-based approaches, the adversarial nature of the training can still introduce some variance between runs.
  • Continuous Spaces: This paper focused on discrete action spaces (e.g., turn left, move forward). Future work could explore how this adversarial guidance translates to continuous control tasks, such as robotics.

Summary updated

BibTeX
@inproceedings{fletberliac2021adversarially,
  author = {Yannis Flet-Berliac and Johan Ferret and Olivier Pietquin and Philippe Preux and Matthieu Geist},
  title = {{Adversarially Guided Actor-Critic}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=_mQp5cr_iNy},
}
Figure