TL;DR
This paper introduces a novel method for reinforcement learning (RL) agents to automatically discover their own "useful questions" in the form of General Value Functions (GVFs). By learning to answer these self-generated questions as auxiliary tasks, agents can build better internal representations of their environment, leading to improved performance and data efficiency, even outperforming hand-designed auxiliary tasks.
What Problem Does This Paper Address?
Traditional reinforcement learning often focuses on agents learning to answer pre-defined questions or achieve specific goals. However, truly intelligent agents might benefit from discovering their own questions, leading to the acquisition of unanticipated knowledge and skills. The challenge lies in how an agent can autonomously identify what questions are worth asking and learning about, especially when these questions should aid in learning a primary task. Existing methods for using auxiliary tasks (like predicting future states or rewards) often rely on human ingenuity to design these tasks, which may not be optimal or generalizable. This paper aims to bridge this gap by enabling agents to discover these useful questions themselves.
Methods
The core of this work is a non-myopic meta-gradient RL algorithm designed to discover GVF-based questions. Here's a breakdown:
- General Value Functions (GVFs): GVFs are a flexible way to represent knowledge. Unlike standard value functions that predict future rewards, GVFs can predict the discounted sum of any arbitrary "cumulant" function of states. This allows them to capture a wider range of predictive knowledge.
- Neural Network Architecture: The proposed architecture uses two main networks:
- Answer Network: This network learns the policy for the main task and predicts the answers to the GVF questions.
- Question Network: This network, parameterized by meta-parameters, takes future observations as input and outputs the cumulant functions and discount factors that define the GVFs (i.e., the questions).
- Meta-Gradient RL: The key innovation is using meta-gradients to learn the parameters of the question network (η). Instead of just optimizing the main task or auxiliary tasks directly, the meta-gradient optimizes how changes in the question network's parameters (η) affect the learning process of the answer network (θ) over multiple future updates.
- Non-Myopic Approach: Crucially, the method uses a "non-myopic" meta-gradient. This means it considers the impact of the meta-parameters not just on the immediate next update, but on a sequence of future updates. This is achieved by building a computational graph that tracks parameter updates over an "unroll length" (L) and then backpropagating through this graph. This contrasts with "myopic" methods that only consider the immediate effect.
Datasets
The experiments were conducted on several domains:
- Gridworld Domains: Puddleworld and Collect-Objects. These are continuous state environments used for initial testing and parameter studies.
- Atari 2600 Domain: A suite of 57 Atari games. This is a standard benchmark for evaluating RL agents, known for its complexity and diverse challenges.
Key Insights and Ideas
- Agents Can Discover Their Own Learning Objectives: The most significant insight is that RL agents can autonomously learn to formulate questions that are beneficial for their own learning. This shifts the paradigm from human-designed auxiliary tasks to agent-discovered ones.
- GVFs as a Powerful Question Formulation: The GVF framework provides a rich and flexible way to represent these discovered questions, allowing for diverse and useful predictive targets.
- Non-Myopic Meta-Gradients are Crucial: The paper strongly suggests that considering the long-term impact of meta-parameters (non-myopic) is essential for effectively discovering useful questions, outperforming myopic approaches.
- Auxiliary Tasks Can Drive Representation Learning Alone: In a stringent test, the discovered GVFs, when used as the sole driver of representation learning (without direct main-task gradients influencing the encoder), were sufficient to build representations that supported good performance on the main task.
Key Results
- Superior Representation Learning: In the "representation learning" experiments (where auxiliary tasks solely drive representation), the "Discovered GVFs" agent significantly outperformed baselines using hand-crafted auxiliary tasks (Reward Prediction, Pixel Control) on gridworld and Atari domains. In some Atari games, it even surpassed the performance of a state-of-the-art IMPALA agent trained for much longer.
- Improved Data Efficiency: In "joint learning" experiments (where auxiliary tasks and main tasks jointly shape the representation), the "Discovered GVFs" agent showed improved data efficiency, achieving competitive or better performance than baselines with less training.
- Parameter Sensitivity: The effectiveness of the discovered questions was found to be sensitive to hyperparameters like the number of questions (d) and the unroll length (k) for meta-gradient computation. Too few questions or too short an unroll length led to poor performance.
Limitations and Future Work
- Hyperparameter Tuning: While the method is powerful, performance is sensitive to the number of questions and the unroll length, requiring careful tuning.
- Off-Policy GVFs: The current work focuses on on-policy GVFs. Extending this to off-policy GVFs, where predictions are made under a different policy than the one used for data collection, is a promising future direction.
- Beyond GVFs: The meta-gradient framework could potentially be extended to discover other forms of questions beyond the GVF formulation.
- Myopic Approximation Limitations: The paper highlights that myopic meta-gradient approximations, used in prior work, can be insufficient and that the unrolled multi-step approach is more robust. This suggests broader applications for the unrolled meta-gradient algorithm.
Summary updated