Abstract
We present a method for learning intrinsic reward functions to drive the learning of an agent during periods of practice in which extrinsic task rewards are not available. During practice, the environment may differ from the one available for training and evaluation with extrinsic rewards. We refer to this setup of alternating periods of practice and objective evaluation as practice-match, drawing an analogy to regimes of skill acquisition common for humans in sports and games. The agent must effectively use periods in the practice environment so that performance improves during matches. In the proposed method the intrinsic practice reward is learned through a meta-gradient approach that adapts the practice reward parameters to reduce the extrinsic match reward loss computed from matches. We illustrate the method on a simple grid world, and evaluate it in two games in which the practice environment differs from match: Pong with practice against a wall without an opponent, and PacMan with practice in a maze without ghosts. The results show gains from learning in practice in addition to match periods over learning in matches only.
Introduction
In standard reinforcement learning (RL), agents typically learn from extrinsic rewards, such as points in a game. However, these signals are often sparse or unavailable during training. This paper introduces the practice-match regime, inspired by human skill acquisition. Just as an athlete practices specific drills in a simplified setting before a game, an AI agent can benefit from a "practice environment" where the full task complexity (and extrinsic reward) is absent. The central question is: how can an agent learn an effective behavior during practice that translates to success in the actual match?
Proposed Method: Meta-Gradient Practice
The authors propose a framework where the agent discovers its own practice rewards. The architecture consists of two primary components: a Policy Module ($\theta$) for action selection and a Practice Reward Module ($\eta$) that generates intrinsic rewards during practice sessions.
The learning process follows a cyclical meta-learning loop:
- Match Phase: The agent plays in the standard environment and updates its policy $\theta$ using extrinsic rewards ($r^{ex}$).
- Practice Phase: The agent moves to a simplified environment (e.g., Pong without an opponent). It updates its policy $\theta$ using intrinsic rewards ($r^{in}$) generated by the Practice Reward Module.
- Meta-Update: The agent evaluates how the practice-induced policy changes affect performance in the subsequent match. It then computes a meta-gradient to adjust the parameters $\eta$ of the Practice Reward Module, ensuring that future practice sessions lead to even better match outcomes.
Experimental Evaluation
The method was evaluated across three environments with distinct practice-match mismatches:
- Grid-World (Corridor): A 1D task involving fetching trash.
- Pong (Atari): Practice involves bouncing a ball against a wall instead of an opponent.
- PacMan (Atari): Practice occurs in the standard maze but without ghosts.
Grid-World Insights
In the Corridor world, the agent must learn to navigate to a trash source (T) and return to a bin (B). The meta-gradient approach allows the agent to learn a non-stationary reward function. Initially, the agent rewards itself for reaching the bin. Once this is mastered, the intrinsic reward shifts to encourage returning to the trash source, demonstrating that the agent learns "what" to practice based on its current skill level.
Key Results and Discussion
The experimental results highlight several advantages of the meta-gradient practice framework:
- Efficiency and Convergence: In Atari games, agents using learned practice rewards reached high performance levels significantly faster than those relying solely on match data or fixed intrinsic rewards.
- Strategic Intrinsic Rewards: The agent does not merely mimic the match reward. Instead, it learns to value states that are strategically critical for future success, such as ball-tracking in Pong or efficient navigation in PacMan.
- Handling Environment Mismatch: The framework effectively bridges the gap between simplified practice environments and complex match environments, treating the mismatch as a feature that allows for focused skill acquisition.
Limitations
While promising, the method currently requires human-designed practice environments. Future work could explore agents that procedurally generate their own practice scenarios. Additionally, the meta-gradient relies on receiving at least some extrinsic reward during matches to provide a training signal; overcoming extreme reward sparsity remains an challenge.
Conclusion
By allowing agents to learn how to reward themselves during practice, this work provides a path toward more efficient and human-like skill acquisition in RL. The meta-gradient framework ensures that practice is always aligned with the ultimate goal of maximizing performance in the real task.
Summary updated