Potential-Based Advice for Stochastic Policy Learning

Baicen Xiao, Bhaskar Ramasubramanian, Andrew Clark, Hannaneh Hajishirzi, Linda Bushnell, Radha Poovendran

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in complex decision-making tasks, yet it frequently falters in environments characterized by sparse or delayed rewards. In such scenarios, an agent may wander aimlessly for extended periods before receiving any feedback, making the learning process prohibitively slow. To mitigate this, researchers often employ Potential-Based Reward Shaping (PBRS), a technique that provides auxiliary "shaping rewards" to guide the agent toward the goal without altering the optimal policy.

However, traditional PBRS faces significant hurdles in modern RL applications. Most existing frameworks assume that the optimal policy is deterministic—a single best action for every state. In reality, many real-world problems involving hidden information or aliased states require stochastic policies to achieve optimality. Furthermore, standard PBRS is typically limited to state-only advice, whereas many expert insights are best expressed as state-action pairs. This paper introduces AC-PBA, a novel Advantage Actor-Critic algorithm designed to integrate state-action advice into stochastic policy learning efficiently.

Overcoming the Limitations of Reward Shaping

The authors address two primary gaps in the current literature: the deterministic assumption and the difficulty of integrating state-action advice into policy gradient methods.

Theoretical Foundations

The research provides mathematical proofs demonstrating that PBRS preserves the optimality of stochastic policies, even when applied within modern frameworks like Soft Q-learning. This ensures that the added guidance does not inadvertently lead the agent to a sub-optimal solution.

The AC-PBA Algorithm

The core contribution is the AC-PBA architecture, which modifies the standard Advantage Actor-Critic (A2C) method. The challenge with state-action advice, or Potential-Based Advice (PBA), is that simply adding it to the reward can bias the policy gradient. To solve this, the authors developed an "unbiased gradient trick": they incorporate the potential function $\phi(s, a)$ directly into the actor's update rule. This allows the agent to benefit from the advice during the exploration phase while ensuring convergence to the true optimal policy of the original environment.

Experimental Evaluation

The effectiveness of AC-PBA was tested in two distinct environments:

  1. Puddle-Jump Gridworld: A discrete 10x10 map where the agent must navigate to a goal while jumping over a "puddle." To test stochastic policy learning, two specific states were made indistinguishable, forcing the agent to learn probabilistic actions to succeed.
  2. Continuous Mountain Car: A classic benchmark requiring an underpowered car to swing back and forth to gain momentum. This environment tests the algorithm's performance in continuous state and action spaces.

Key Results and Insights

The experiments revealed that state-action advice (PBA) is significantly more potent than state-only shaping (PBRS). For instance, in the Mountain Car task, advising the agent to apply force in the direction of its current velocity proved far more effective than simply rewarding it for being near the hilltop.

Learning curves in the Puddle-Jump Gridworld environment.

As shown in the learning curves for the Gridworld task, the look-back PBA variant achieved a 5x speedup, converging in approximately 25 episodes compared to the 125 episodes required by the vanilla A2C agent. Interestingly, "look-back" advice (based on the previous state and action) consistently outperformed "look-ahead" advice. The authors attribute this to the fact that look-ahead advice relies on estimating future actions, which are often highly inaccurate during the early, noisy stages of training.

Success rates in the Continuous Mountain Car task.

In the Continuous Mountain Car environment, the reliability of the approach was even more pronounced. While the vanilla A2C agent succeeded in only 10% of trials—frequently getting stuck at the bottom of the hill—the AC-PBA (look-back) agent achieved a perfect 100% success rate across all trials.

Conclusion and Future Work

AC-PBA represents a significant step forward in making reinforcement learning more practical for complex, sparse-reward environments. By providing a mathematically sound way to incorporate state-action advice into stochastic policy gradients, the authors have enabled much faster and more reliable learning.

Future research directions include extending the theoretical convergence proofs to non-linear function approximators (such as deep neural networks) and adapting the framework for the "average reward" setting, which is common in continuing, non-episodic tasks.

Summary updated

BibTeX
@inproceedings{xiao2019potential,
  author = {Baicen Xiao and Bhaskar Ramasubramanian and Andrew Clark and Hannaneh Hajishirzi and Linda Bushnell and Radha Poovendran},
  title = {{Potential-Based Advice for Stochastic Policy Learning}},
  booktitle = {CDC},
  year = {2019},
  doi = {10.1109/cdc40024.2019.9030194},
}
Figure