Skip to main content
QUICK REVIEW

[Paper Review] Action Guidance: Getting the Best of Sparse Rewards and Shaped Rewards for Real-time Strategy Games

Shengyi Huang, Santiago Ontañón|arXiv (Cornell University)|Oct 5, 2020
Reinforcement Learning in RoboticsComputer Science30 references5 citations
TL;DR

This paper introduces action guidance, a novel reinforcement learning method that combines reward shaping for sample efficiency with sparse rewards to ensure true objective optimization. By training a main agent on sparse rewards while using auxiliary agents trained on shaped rewards to guide exploration, the approach achieves sample efficiency comparable to reward shaping while ensuring the main agent ultimately optimizes the true objective, as validated in a μRTS environment.

ABSTRACT

Training agents using Reinforcement Learning in games with sparse rewards is a challenging problem, since large amounts of exploration are required to retrieve even the first reward. To tackle this problem, a common approach is to use reward shaping to help exploration. However, an important drawback of reward shaping is that agents sometimes learn to optimize the shaped reward instead of the true objective. In this paper, we present a novel technique that we call action guidance that successfully trains agents to eventually optimize the true objective in games with sparse rewards while maintaining most of the sample efficiency that comes with reward shaping. We evaluate our approach in a simplified real-time strategy (RTS) game simulator called $μ$RTS.

Motivation & Objective

  • To address the challenge of sparse rewards in reinforcement learning for real-time strategy (RTS) games, where exploration is inefficient and credit assignment is difficult.
  • To overcome the drawback of reward shaping, where agents may optimize shaped rewards instead of the true objective.
  • To develop a method that maintains the sample efficiency of reward shaping while ensuring the main agent learns to optimize the true sparse reward.
  • To evaluate the method in a realistic yet simplified RTS environment, μRTS, across tasks of varying difficulty.

Proposed method

  • The method uses a main agent trained exclusively on the sparse reward function $ R_{\mathcal{M}} $, ensuring alignment with the true objective.
  • Auxiliary agents are trained on a shaped reward function $ R_{\mathcal{A}_i} $, providing sample-efficient guidance during early training.
  • During training, the main agent initially follows actions sampled from auxiliary agents with high probability, gradually becoming more independent.
  • The main and auxiliary agents are trained via off-policy policy gradient, with shared rollouts to improve data efficiency.
  • Action guidance combines reward shaping (for auxiliary agents) with imitation learning (for main agent guidance), creating a hybrid training regime.
  • Hyperparameters such as adaptation period length and the use of PLO (Positive Learning Optimization) are tuned to balance guidance and policy bias.

Experimental results

Research questions

  • RQ1Can action guidance achieve sample efficiency comparable to reward shaping while ensuring the main agent optimizes the true sparse reward?
  • RQ2How does the length of the adaptation period affect the main agent’s ability to discover effective behaviors?
  • RQ3Does the use of PLO improve training stability and convergence for action-guided agents?
  • RQ4Can action guidance train agents to learn efficient, human-like strategies (e.g., worker rush, concurrent unit production) without access to shaped rewards?
  • RQ5Is action guidance viable when auxiliary agents also benefit from the main agent’s policy, suggesting a collaborative learning mechanism?

Key findings

  • Action guidance achieved sample efficiency nearly identical to that of reward shaping across all three tasks in μRTS, demonstrating strong data efficiency.
  • The main agent trained with action guidance learned to win the game as fast as possible, even though it never observed the shaped reward, confirming true objective optimization.
  • In the DefeatRandomEnemy task, the action-guided agent consistently learned a worker rush strategy, a strong and efficient approach, unlike shaped-reward agents that exhibited diverse, suboptimal behaviors.
  • In the ProduceCombatUnits task, the main agent with long adaptation learned to produce combat units and harvest resources concurrently—matching expert behavior—while shaped-reward agents delayed unit production until resources were fully gathered.
  • PLO improved convergence stability for short-adaptation action guidance, but hurt performance in long-adaptation settings, indicating context-dependent effectiveness.
  • The mixed policy variant of action guidance showed strong performance across tasks, suggesting potential for bidirectional knowledge transfer between main and auxiliary agents.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.