Quantum AIXI: A Feasible RL Framework
- Quantum AIXI is a reinforcement learning framework that approximates the ideal AIXI model via efficient Monte Carlo Tree Search and Bayesian sequence prediction.
- It employs ρ-UCT planning and action-conditional Context Tree Weighting to manage uncertainties in partially observable, stochastic environments.
- Empirical studies show that this approach achieves near-optimal performance with scalable computational costs across diverse domains.
MC-AIXI-CTW is a computationally feasible, general reinforcement learning agent that directly approximates the AIXI model, which is a Bayesian optimality notion for reinforcement learning in arbitrary computable environments. The MC-AIXI-CTW agent employs a synergy of Monte Carlo Tree Search (MCTS), specifically a history-based variant of UCT ("ρ-UCT"), and an agent-specific extension of the Context Tree Weighting (CTW) algorithm to approximate the expectimax value function and the Solomonoff mixture, respectively. This architecture enables the agent to achieve strong empirical performance in a variety of partially observable, stochastic, and unknown domains, while maintaining polynomial resource usage in tree depth, planning horizon, and number of simulations (Veness et al., 2010, 0909.0801).
1. AIXI Background and Motivation
AIXI formalizes the reinforcement learning problem as a sequential decision process where, at each time step, the agent selects an action , receives a percept with observation and reward , and seeks to maximize total future reward. AIXI defines the optimal policy by a Bayesian expectimax over all computable environment models, using Solomonoff's universal prior:
where
with the sum over all computable semimeasures and the Kolmogorov complexity. This ideal is computationally infeasible due to the incomputability of Solomonoff induction and the exponential complexity of expectimax planning (0909.0801).
2. Algorithmic Structure: ρ-UCT Planning
MC-AIXI-CTW approximates the AIXI expectimax with ρ-UCT, a MCTS variant operating on histories rather than state space. The core simulation loop includes selection, expansion, simulation (rollout), and backpropagation:
- Selection: From the current history , select actions recursively using the UCB1 formula:
where 0 is the current value estimate, 1 is the visit count of node 2, 3 normalizes the reward, 4 is the exploration coefficient, and 5 is the planning horizon (Veness et al., 2010, 0909.0801).
- Expansion: On reaching an unvisited node or a chance node (after an action), sample a percept and expand the tree.
- Simulation (Rollout): From a new decision node or at horizon, select a random policy (typically uniform random), execute to terminal depth, and accumulate rewards.
- Backpropagation: After each simulation, propagate the sampled reward up the visited path:
6
7
This anytime planner enables MC-AIXI-CTW to concentrate computational effort on the most promising parts of the search tree (Veness et al., 2010, 0909.0801).
3. Environment Modelling: Action-Conditional Context Tree Weighting
MC-AIXI-CTW approximates the Bayesian mixture over all computable models by restricting to prediction suffix trees (PSTs) of bounded depth 8, employing Context Tree Weighting (CTW) with Krichevsky-Trofimov (KT) estimators. The input stream is constructed via bit-encoding of actions and percepts:
- KT Estimator: For context 9, with 0 zeros and 1 ones observed, the KT predictive probability is
2
- PST Update: Actions are encoded and appended to a bit-buffer, with percept bits following. For each new percept bit, descend the context tree of depth 3, updating node counts via KT.
- CTW Mixture Weight: Each node 4 maintains a weighted probability 5, recursively defined as:
6
At the root, 7 yields the total Bayesian mixture over all PSTs up to depth 8 with code-length penalization 9 (Veness et al., 2010, 0909.0801).
- Factored Action-Conditional CTW (FAC-CTW): For multi-bit actions/percepts, maintain separate context trees for each factor, increasing context depth for successive bits, and compose the product mixture.
4. Integration and Agent Cycle
The MC-AIXI-CTW agent integrates learning and planning as follows:
- At time 0, select action 1 using ρ-UCT with the current FAC-CTW model as the generative environment.
- (Optionally) Apply an outer exploration policy (e.g., 2-greedy).
- Execute 3, observe 4.
- Update FAC-CTW: Append action bits (no KT update), then for each percept bit apply KT update in context tree, updating 5.
- Extend history with 6 and increment 7 (0909.0801).
This tight coupling allows for online Bayesian-sequence prediction and decision-making under unknown, partially observable, and non-Markovian environments.
5. Computational Complexity and Resource Profile
The computational cost and scalability of MC-AIXI-CTW are characterized by:
- CTW Update: 8 per new bit, independent of total cycles.
- CTW Sampling (for rollouts): 9 for each percept of 0 bits.
- ρ-UCT Simulation: 1 per trajectory to depth 2.
- Per-Action Cost: 3 for 4 simulations per real decision.
- Memory: Context tree occupies at most 5 nodes; UCT search tree up to 6 nodes (Veness et al., 2010, 0909.0801).
Parallelization of simulations is direct due to the Monte Carlo nature of tree search. The approach is practical for moderate domain sizes, with rollouts performed at interactive rates on a single CPU core.
6. Empirical Evaluation
MC-AIXI-CTW was empirically validated on diverse environments, including:
| Domain | Simulations | Cycles | Search/Cycle |
|---|---|---|---|
| Cheese Maze (POMDP) | 500 | 7 | 8s |
| Tiger (POMDP) | 10,000 | 9 | 0s |
| TicTacToe | 5,000 | 1 | 2s |
| Kuhn Poker | 3,000 | 3 | 4s |
In domains with known optima, the agent converged to near-optimal average reward within 5–6 cycles. In Biased Rock-Paper-Scissors, MC-AIXI-CTW reached optimality by 7 cycles, while competitors such as Active-LZ remained suboptimal after 8 cycles. In all domains, learning was smoother and more reliable compared to U-Tree and BLHT baselines. In partially observable Pacman, performance scaled well with experience despite the absence of known optimal policy (Veness et al., 2010, 0909.0801).
7. Limitations and Future Directions
MC-AIXI-CTW's main limitations stem from its model class and planning resources:
- Model Class: Restriction to bounded-depth PSTs limits ability to capture rich or hierarchical perceptual structures (e.g., raw visual input).
- Planning Horizon: Optimal planning is limited by feasible horizon 9; planning over long-term deferred rewards may be ineffective without heuristic exploration (e.g., 0-greedy).
- Improvement Directions: Prospective work includes accommodating richer context representations (predicate-based, hashed), mixture with alternative model classes (e.g., Lempel-Ziv), rollout policy learning, continuous observation extension (quantization/Gaussian mixtures), and hardware-scale parallelism (0909.0801).
MC-AIXI-CTW remains the first agent to combine Bayesian sequence prediction (via FAC-CTW) with UCT-based planning, achieving provable sample efficiency and scalability in stationary finite-memory environments, and providing a design foundation for further advances in universally intelligent agents (Veness et al., 2010, 0909.0801).