Abstract
This paper introduces a principled approach for the design of a scalable general reinforcement learning agent. This approach is based on a direct approximation of AIXI, a Bayesian optimality notion for general reinforcement learning agents. Previously, it has been unclear whether the theory of AIXI could motivate the design of practical algorithms. We answer this hitherto open question in the affirmative, by providing the first computationally feasible approximation to the AIXI agent. To develop our approximation, we introduce a Monte Carlo Tree Search algorithm along with an agent-specific extension of the Context Tree Weighting algorithm. Empirically, we present a set of encouraging results on a number of stochastic, unknown, and partially observable domains.
Introduction
In reinforcement learning (RL), agents are typically designed for specific environment classes, such as Markov Decision Processes (MDPs). However, real-world environments are often partially observable, stochastic, and non-Markovian. AIXI provides a mathematical framework for a "universal" agent capable of learning to maximize rewards in any environment. Historically, AIXI has been considered uncomputable due to its requirement to consider every possible program explaining the world. This work bridges the gap between theory and practice by providing a scalable approximation that behaves like AIXI.
Methodology
The approximation focuses on two core components: planning and prediction.
Planning with $\rho$UCT
Standard planning algorithms often rely on the Markov assumption, where the current state is sufficient for decision-making. To handle general environments, the authors utilize $\rho$UCT, a generalization of the Upper Confidence bounds applied to Trees (UCT) algorithm. Instead of searching through states, $\rho$UCT searches through the agent's history of actions and observations. This allows for effective planning without a predefined state space, making the agent truly general.
Prediction with Action-Conditional CTW
For prediction, the agent employs Context Tree Weighting (CTW), a Bayesian technique that considers a large class of Prediction Suffix Trees. The authors extended CTW to be action-conditional, allowing the agent to learn how its actions influence future observations and rewards. This technique is highly efficient, operating in $O(D)$ time where $D$ is the tree depth.
Integration
The agent uses CTW to simulate potential future trajectories and $\rho$UCT to navigate these simulations. This integration creates a Bayes-optimal loop where the agent naturally balances exploration and exploitation based on model uncertainty. If an action might provide information leading to higher future rewards, the agent will take it—this is known as "optimal" exploration.
Experimental Evaluation
The agent was evaluated on a diverse suite of environments that require learning rules from scratch:
- Classic POMDPs: Cheese Maze, Tiger, and 4x4 Grid.
- Games: TicTacToe, Biased Rock-Paper-Scissors, and Kuhn Poker.
- Complex Domains: A partially observable version of Pacman with over 65,000 possible observations, serving as a benchmark for scalability.
Key Results
The AIXI approximation demonstrated strong performance across all domains, converging to optimal strategies in almost every case. Notably, in Kuhn Poker, the agent learned a near-optimal strategy without prior knowledge of the rules. In Biased Rock-Paper-Scissors, it reached optimality within $10^6$ cycles, significantly faster than previous universal agents like Active-LZ.
Discussion and Conclusion
A key insight of this work is the use of history as state, which removes the need for human-defined state representations. While the current model class is restricted to suffix trees—limiting its performance in environments requiring long-term hierarchical reasoning—this work represents a significant step toward practical universal artificial intelligence. Future work includes exploring more complex model classes and parallelizing the search process to handle more demanding real-world tasks.
Summary updated