Policy Gradient Critics

Daan Wierstra, Jürgen SchmidhuberECML 2007

Abstract

Reinforcement learning in Partially Observable Markov Decision Processes (POMDPs) requires agents to maintain memory of past observations to infer hidden states. However, imperfect memory can lead deterministic policies into local minima. This paper introduces Policy Gradient Actor-Critic (PGAC), which utilizes Long Short-Term Memory (LSTM) networks to learn limited-memory stochastic policies. Unlike standard critics that evaluate discrete actions, the PGAC critic evaluates action probability distributions, allowing the agent to explicitly learn the value of stochasticity and adaptively explore its environment.

Introduction

In real-world reinforcement learning (RL), agents rarely have perfect information about their environment. While Recurrent Neural Networks (RNNs) provide a mechanism for memory, they are inherently limited. A deterministic policy relying on imperfect memory may fail to explore effectively or get trapped in suboptimal behaviors. Conversely, purely reactive stochastic policies ignore historical context. PGAC addresses this gap by training an agent to use a stochastic policy that leverages historical context through LSTMs while maintaining strategic randomness to compensate for memory limitations.

Methodology

The PGAC architecture consists of an Actor and a Critic, both implemented as LSTMs to handle temporal dependencies. The Actor outputs parameters $p$ for an action probability distribution. The core innovation lies in the Critic's operation: instead of evaluating the Q-value of a specific action, it evaluates the Q-value of the action probability distribution itself.

The PGAC architecture illustrating the interaction between the World and the Agent, including the perturbation mechanism within the Critic.

To train the Actor, the Critic calculates the gradient (Jacobian) of the expected reward with respect to $p$ and backpropagates this directly. To enable the Critic to learn the value landscape of these distributions, the algorithm employs a "perturbation" operation. The Actor's intended distribution $p$ is slightly modified into a new distribution $p^*$, an actual action $a$ is drawn from $p^*$, and the resulting experience is used for Temporal Difference (TD) learning.

Experimental Evaluation

The authors evaluated PGAC on three distinct benchmarks designed to test memory and stochasticity:

  1. Non-Markovian Pole Balancing: A continuous control task where a cart must balance a pole, but crucial velocity information is hidden, requiring memory to stabilize.
  2. Long Term Dependency T-Maze: A discrete task where the agent must remember an initial "road sign" for up to 60 time steps before making a turn.
  3. 89-State Maze: A highly stochastic discrete maze with noisy observations and unreliable action outcomes.
The cart-pole balancing environment used to evaluate PGAC under partial observability.

Key Results and Insights

  • Explicitly Valuing Stochasticity: By forcing the Critic to evaluate probability distributions, the network learns that uncertainty can be an optimal strategy. In the pole balancing task, the fully stochastic policy often outperformed the greedy (deterministic) policy during training.
  • Adaptive Exploration: Because the Actor outputs distribution parameters and the Critic evaluates them, the agent adjusts its own exploration dynamically, removing the need for pre-wired heuristics like $\epsilon$-greedy.
  • Performance: In the T-Maze, the LSTM-backed PGAC captured long-term dependencies for corridor lengths up to 40 steps. In the 89-State Maze, it reached the goal in 85% of trials, outperforming standard memory-less approaches like SARSA($\lambda$).

Conclusion

PGAC offers a robust framework for learning limited-memory stochastic policies in POMDPs. By evaluating distributions rather than discrete actions, it provides lower variance updates and built-in exploration. While the algorithm faces challenges such as perturbation sensitivity and the theoretical implications of using TD-learning in non-Markovian environments, it represents a significant step toward more flexible agents in complex, partially observable worlds.

Summary updated

BibTeX
@inproceedings{wierstra2007policy,
  author = {Daan Wierstra and Jürgen Schmidhuber},
  title = {{Policy Gradient Critics}},
  booktitle = {ECML},
  year = {2007},
  doi = {10.1007/978-3-540-74958-5\_43},
}
Figure