Skip to main content
QUICK REVIEW

[Paper Review] Designing Rewards for Fast Learning

Henry Sowerby, Zhiyuan Zhou|arXiv (Cornell University)|May 30, 2022
Auction Theory and ApplicationsDecision Sciences8 citations
TL;DR

This paper proposes a linear programming method to design reward functions that accelerate reinforcement learning by maximizing the action gap and minimizing a novel metric called 'subjective discount,' which measures the effective horizon over which optimal decisions must be planned. Experiments show that rewards designed this way lead to significantly faster learning in tabular environments using Q-Learning, with key principles including penalizing actions, gradually increasing subgoal rewards, and careful dense reward design.

ABSTRACT

To convey desired behavior to a Reinforcement Learning (RL) agent, a designer must choose a reward function for the environment, arguably the most important knob designers have in interacting with RL agents. Although many reward functions induce the same optimal behavior (Ng et al., 1999), in practice, some of them result in faster learning than others. In this paper, we look at how reward-design choices impact learning speed and seek to identify principles of good reward design that quickly induce target behavior. This reward-identification problem is framed as an optimization problem: Firstly, we advocate choosing state-based rewards that maximize the action gap, making optimal actions easy to distinguish from suboptimal ones. Secondly, we propose minimizing a measure of the horizon, something we call the "subjective discount", over which rewards need to be optimized to encourage agents to make optimal decisions with less lookahead. To solve this optimization problem, we propose a linear-programming based algorithm that efficiently finds a reward function that maximizes action gap and minimizes subjective discount. We test the rewards generated with the algorithm in tabular environments with Q-Learning, and empirically show they lead to faster learning. Although we only focus on Q-Learning because it is perhaps the simplest and most well understood RL algorithm, preliminary results with R-max (Brafman and Tennenholtz, 2000) suggest our results are much more general. Our experiments support three principles of reward design: 1) consistent with existing results, penalizing each step taken induces faster learning than rewarding the goal. 2) When rewarding subgoals along the target trajectory, rewards should gradually increase as the goal gets closer. 3) Dense reward that's nonzero on every state is only good if designed carefully.

Motivation & Objective

  • To identify reward design principles that accelerate learning in reinforcement learning despite multiple correct reward functions producing the same optimal policy.
  • To formalize the impact of reward structure on learning speed by introducing 'subjective discount' as a measure of effective planning horizon.
  • To develop an optimization framework that generates reward functions maximizing action gap and minimizing subjective discount for faster convergence.
  • To empirically validate that well-designed rewards—especially those with action penalties or gradually increasing subgoal rewards—lead to faster policy alignment than sparse or poorly structured dense rewards.

Proposed method

  • Formulate the reward design problem as a linear program that maximizes the action gap between optimal and suboptimal actions under a given discount factor.
  • Introduce 'subjective discount' as the minimal discount factor below which the target policy remains optimal, enabling comparison of effective planning horizons across reward functions.
  • Use binary search to compute the subjective discount for each candidate reward function, allowing efficient optimization of this metric.
  • Design state-based rewards as linear combinations of state features, ensuring interpretability and scalability to structured environments.
  • Optimize for both high action gap and low subjective discount, balancing clear policy distinction and reduced lookahead requirements.
  • Apply the method to generate reward functions in grid-world and chain MDPs, then evaluate learning speed via cumulative correct actions in Q-Learning.

Experimental results

Research questions

  • RQ1How do different reward functions that induce the same optimal policy differ in their learning speed?
  • RQ2What structural properties of reward functions lead to faster convergence in Q-Learning?
  • RQ3Can we define a metric that captures the effective planning horizon of a reward function and use it to guide reward design?
  • RQ4To what extent do action penalties, subgoal rewards, and dense rewards improve learning speed when properly designed?
  • RQ5Is the proposed optimization method generalizable beyond Q-Learning to other RL algorithms?

Key findings

  • Rewards that penalize each action taken lead to faster learning than goal-only rewards, with a subjective discount of 0.9249 compared to no well-defined subjective discount for goal-only rewards.
  • Gradually increasing subgoal rewards (as generated by the linear program) achieve a subjective discount of 0.8232, significantly lower than constant subgoal rewards (0.9510), leading to faster learning.
  • The linear program-generated 'combo' reward (combining penalties and rewards) achieves a subjective discount of 0.9238, outperforming both goal-only and constant subgoal rewards.
  • Dense reward functions with jagged, non-uniform patterns (e.g., alternating negative and positive values) achieve a very low subjective discount of 0.2128, enabling extremely fast learning.
  • A dense reward with near-zero action gap (0.0024) performs poorly, showing that not all dense rewards are beneficial—design quality is critical.
  • The method’s effectiveness is not limited to Q-Learning: preliminary results with R-max suggest the principles generalize across RL algorithms.

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.