Reinforcement Learning via AIXI Approximation

Joel Veness, Kee Siong Ng, Marcus Hutter, David Silver

Introduction

In the field of Reinforcement Learning (RL), the AIXI agent represents a mathematical ideal. Theoretically optimal, it utilizes Bayesian model averaging over all possible computable environments to predict the future. However, AIXI is famously uncomputable due to its reliance on Kolmogorov complexity and universal Turing machines. This work addresses the "computability gap," presenting the first computationally practical approximation of AIXI capable of learning in diverse, unknown, and partially observable environments from scratch.

Methods: Planning and Prediction

The authors decompose the universal RL problem into two primary components, mirroring the structure of AIXI:

Planning via $\rho$UCT

The authors introduced $\rho$UCT, a generalization of the Upper Confidence Trees (UCT) algorithm. While standard UCT operates on known Markov Decision Processes (MDPs), $\rho$UCT uses a learned environment model ($\rho$) to sample future trajectories. This enables "expectimax" planning, where the agent considers both its own future actions and the environment's probabilistic responses in an anytime fashion.

Prediction via Action-Conditional CTW

To learn the environment model, the authors adapted the Context Tree Weighting (CTW) algorithm. CTW is a Bayesian technique that efficiently averages over an enormous class of "Prediction Suffix Trees" (PSTs). The authors extended it to be "action-conditional," allowing the model to predict future observations and rewards based on the history of both past percepts and actions. The resulting agent, MC-AIXI-CTW, maintains a Bayesian mixture of models and uses MCTS to plan ahead using that mixture.

Experimental Domains

The agent was evaluated on a variety of stochastic and partially observable domains, ranging from classic POMDPs to complex games. Crucially, no pre-existing knowledge of the rules or dynamics was provided.

Complexity and parameters of the evaluated domains.

The domains included:

  • Classic POMDPs: Cheese Maze, Tiger, and a 4x4 Grid.
  • Games: TicTacToe (against a random opponent) and Kuhn Poker (against a Nash-optimal opponent).
  • Exploitation Tasks: Biased Rock-Paper-Scissors.
  • Complex Domain: A partially observable version of Pacman with over 65,000 possible observations.

Key Results and Insights

The MC-AIXI-CTW agent demonstrated strong performance across all test cases, often converging to optimal behavior where such solutions were known.

Normalised average reward per cycle across different environments as a function of experience.

Convergence and Superiority

In the Biased Rock-Paper-Scissors task, the agent reached optimal performance within $10^6$ cycles, significantly outperforming the previously state-of-the-art Active-LZ algorithm. In the complex Pacman domain, visual inspection confirmed the agent learned to navigate, avoid ghosts, and hunt for pellets purely through interaction.

The Power of Bayesian Mixtures

A central insight is that maintaining a weighted average of many models (PSTs) naturally handles uncertainty. If multiple models explain the past well but disagree on the future, the agent's planning accounts for this ambiguity. Furthermore, the Bayesian framework encourages implicit exploration; the agent values "information gathering" actions if they reduce model uncertainty in ways that lead to higher long-term rewards.

Conclusion and Future Work

This work demonstrates that a mixture of Prediction Suffix Trees is a surprisingly effective and computationally efficient surrogate for "general" prediction in discrete domains. While the current implementation is limited to fixed-depth trees and discrete spaces, it proves that the principled Bayesian optimality of AIXI can indeed inspire practical, general-purpose agents. Future research will focus on extending these methods to continuous domains and exploring more general model classes beyond PSTs.

Summary updated

BibTeX
@inproceedings{veness2010reinforcement,
  author = {Joel Veness and Kee Siong Ng and Marcus Hutter and David Silver},
  title = {{Reinforcement Learning via AIXI Approximation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2010},
  doi = {10.1609/aaai.v24i1.7667},
}
Figure