Tiered Reward: Designing Rewards for Specification and Fast Learning of Desired Behavior

Zhiyuan Zhou, Shreyas Sundara Raman, Henry Sowerby, Michael Littman · DOI

Abstract

Reinforcement-learning agents seek to maximize a reward signal through environmental interactions. As humans, our job in the learning process is to design reward functions to express desired behavior and enable the agent to learn such behavior swiftly. However, designing good reward functions to induce the desired behavior is generally hard, let alone the question of which rewards make learning fast. In this work, we introduce a family of reward structures we call Tiered Reward that addresses both of these questions. We consider the reward-design problem in tasks formulated as reaching desirable states and avoiding undesirable states. To start, we propose a strict partial ordering of the policy space to resolve trade-offs in behavior preference. We prefer policies that reach the good states faster and with higher probability while avoiding the bad states longer. Next, we introduce Tiered Reward, a class of environment-independent reward functions and show it is guaranteed to induce policies that are Pareto-optimal according to our preference relation. Finally, we demonstrate that Tiered Reward leads to fast learning with multiple tabular and deep reinforcement-learning algorithms.

Introduction

In Reinforcement Learning (RL), the reward function serves as the primary mechanism for specifying desired agent behavior. However, reward design is notoriously difficult, facing two primary challenges: specification and learning efficiency. Specification involves defining "correct" behavior in stochastic environments where trade-offs between reaching goals and avoiding obstacles are non-trivial. Learning efficiency concerns the speed at which an agent can discover optimal behavior, often hampered by sparse reward signals.

This paper introduces Tiered Reward, a novel reward structure designed to address both challenges. By partitioning the state space into hierarchical "tiers," Tiered Reward provides a robust framework for inducing Pareto-optimal behavior while significantly accelerating the learning process across diverse environments.

Methodology: Tiered Reward and Pareto-Optimality

The authors propose a framework that moves beyond simple scalar rewards by defining a preference relation over policies based on Pareto-optimality. A policy is considered superior if it reaches desirable states (goals) with higher probability and more quickly, while simultaneously avoiding undesirable states (obstacles) for longer durations.

The Tiered Reward Structure

To implement this preference, the state space is divided into $k$ tiers of "goodness." The Tiered Reward structure uses exponential scaling to ensure that higher tiers are strictly prioritized over lower ones. For a $k$-tier Markov Decision Process (MDP) with a discount factor $\gamma$, the rewards $r_i$ for each tier $i$ must satisfy:

$$r_1 < \left(\frac{1}{1-\gamma}\right)r_2 < \left(\frac{1}{1-\gamma}\right)^2 r_3 < \dots < \left(\frac{1}{1-\gamma}\right)^{k-1} r_k \le 0$$

The Flag Grid environment, where numbered squares represent sequential sub-goals or 'tiers' leading to the final goal.

This mathematical constraint creates a "ratchet" effect: the cumulative reward available in any lower tier is always less than the reward gained by progressing to a higher tier. This incentivizes the agent to move toward the goal as efficiently as possible without the risk of "reward hacking" or getting stuck in local optima.

Experimental Evaluation

The effectiveness of Tiered Reward was evaluated across several benchmarks:

  • Tabular Environments: Including classic grid worlds, 1D Chain worlds, and stochastic environments like Frozen Lake and Wall Grid (containing lava obstacles).
  • Deep RL (MiniGrid): More complex tasks such as EmptyGrid, FourRooms, and DoorKey, which require high-dimensional image processing and multi-step sub-goal completion.

A key advantage of this approach is its environment independence. Unlike traditional reward shaping, Tiered Reward does not require knowledge of the environment's transition dynamics; it only requires a ranking of states into tiers (e.g., "reaching a sub-goal" is better than "not reaching it").

Results and Discussion

Experimental results demonstrate that Tiered Reward consistently leads to faster convergence and more robust learning compared to standard baselines.

Learning performance in the Flag Grid task ($Q_{init} = 10^5$). The Tiered Reward approach (dotted green) significantly outperforms standard action penalties and tier-based shaping.

In the Flag Grid task, Tiered Reward enabled agents to reach the goal in significantly fewer steps than standard action penalties. Notably, "Tier-Based Shaping" performed poorly in comparison, as it lacked the strong directed exploration incentive inherent in the Tiered Reward's exponential structure. In Deep RL tasks like DoorKey, Tiered Reward successfully guided agents through complex sub-goals to achieve high episodic returns much faster than sparse-reward baselines.

The research highlights that increasing the granularity of tiers generally improves learning speed, as each tier acts as a milestone guiding the agent's exploration. Furthermore, the use of non-positive rewards (ending at 0) leverages "step penalties" to discourage aimless wandering.

Conclusion and Future Work

Tiered Reward provides a mathematically grounded and practically effective method for designing reward functions. While powerful, the approach faces challenges in Deep RL due to numerical precision issues when scaling rewards exponentially. Future work will focus on automated tier discovery and exploring tighter theoretical bounds on convergence speed.

Reference: Zhou, Z., Raman, S. S., Sowerby, H., & Littman, M. L. (2024). Tiered Reward: Designing Rewards for Specification and Fast Learning of Desired Behavior. arXiv:2212.03733v3.

Summary updated

BibTeX
@inproceedings{zhou2022tiered,
  author = {Zhiyuan Zhou and Shreyas Sundara Raman and Henry Sowerby and Michael Littman},
  title = {{Tiered Reward: Designing Rewards for Specification and Fast Learning of Desired Behavior}},
  booktitle = {RLC},
  year = {2022},
  doi = {10.48550/arxiv.2212.03733},
}
Figure