Abstract
All-goals updating exploits the off-policy nature of Q-learning to update all possible goals an agent could have from each transition in the world. While originally explored in small-state RL problems with tabular representations, this paper explores three extensions of updating many goals using deep neural networks. We investigate whether many-goals updating can achieve mastery in non-tabular visual domains, pre-train networks for faster learning on single tasks, and provide effective auxiliary task updates. Comparisons across Atari games and a visual gridworld demonstrate the efficacy of these approaches.
Introduction
In traditional reinforcement learning (RL), agents typically focus on maximizing a single reward signal. However, biological entities often learn about their environments without a specific task in mind—a concept known as unsupervised mastery. Leslie Kaelbling (1993) introduced "all-goals updating," where an agent updates its knowledge for every possible goal upon every transition. While elegant, this approach was historically limited to small, tabular environments.
This research addresses the challenge of scaling "learn-it-all" strategies to high-dimensional visual environments, such as Atari games, where potential goals are effectively infinite. By training a single neural network to reach many different goals simultaneously, the authors show that learning everything can significantly simplify learning specific tasks.
Methodology
The researchers propose three distinct extensions of many-goals learning utilizing deep neural networks:
- Unsupervised Mastery: The agent explores a visual environment without external rewards, treating every unique pixel observation as a potential goal.
- Unsupervised Pre-training: The agent masters self-generated goals before tackling a specific target task. The resulting weights initialize a standard Advantage Actor-Critic (A2C) agent.
- Many-Goals Auxiliary Tasks: While learning a primary task, the agent simultaneously learns to reach past observations as "side quests" to improve its internal world representation.
To implement this, the authors utilize a Universal Value Function Approximator (UVFA) architecture. This network accepts both the current state $s$ and a target goal state $g$ as inputs. To manage the vast number of potential goals, they employ a learning-progress signal to prioritize goals where the agent's performance is improving most rapidly.
Experimental Results
The methods were evaluated on a custom Visual Gridworld (with ~5,700 states) and the Arcade Learning Environment (ALE) across 49 Atari games.
Generalization and Mastery
A key finding is the power of neural network generalization. In the Visual Gridworld, the many-goals agent achieved complete mastery. Remarkably, after training on only a subset of goals, the agent demonstrated approximately 60% mastery on goals it had never practiced, as shown in the figure below. This highlights the efficiency of off-policy Q-learning, where experience from one goal informs others.
Performance on Atari Benchmarks
- Pre-training: Many-goals pre-training for 1M steps followed by 9M steps of fine-tuning yielded a median human-normalized score of 39.2%, compared to 32.8% for training from scratch.
- Auxiliary Tasks: The many-goals auxiliary approach reached a median score of 42.3%, outperforming state-of-the-art methods like Pixel-control (34.6%) and Reward-prediction (35.2%). It was exceptionally effective in games like Atlantis.
Conclusion and Future Work
This work demonstrates that "learning everything" is not only feasible in high-dimensional spaces but also provides a superior foundation for task-specific learning. While defining goals as raw pixel states is effective, future research could explore more abstract feature spaces to handle stochastic environments. Additionally, while random goal sampling proved surprisingly robust, optimizing the computational overhead of goal prioritization remains an area for improvement.
Summary updated