Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum AIXI: A Feasible RL Framework

Updated 7 April 2026
  • 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 atAa_t \in \mathcal{A}, receives a percept xt=(ot,rt)x_t = (o_t, r_t) with observation oto_t and reward rtr_t, 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:

at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})

where

ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})

with the sum over all computable semimeasures ν\nu and K(ν)K(\nu) 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 hh, select actions recursively using the UCB1 formula:

a=argmaxaA[1m(βα)V^(ha)+ClnT(h)T(ha)]a^* = \arg\max_{a \in \mathcal{A}} \left[ \frac{1}{m(\beta - \alpha)} \hat{V}(ha) + C \sqrt{\frac{\ln T(h)}{T(ha)}} \right]

where xt=(ot,rt)x_t = (o_t, r_t)0 is the current value estimate, xt=(ot,rt)x_t = (o_t, r_t)1 is the visit count of node xt=(ot,rt)x_t = (o_t, r_t)2, xt=(ot,rt)x_t = (o_t, r_t)3 normalizes the reward, xt=(ot,rt)x_t = (o_t, r_t)4 is the exploration coefficient, and xt=(ot,rt)x_t = (o_t, r_t)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:

xt=(ot,rt)x_t = (o_t, r_t)6

xt=(ot,rt)x_t = (o_t, r_t)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 xt=(ot,rt)x_t = (o_t, r_t)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 xt=(ot,rt)x_t = (o_t, r_t)9, with oto_t0 zeros and oto_t1 ones observed, the KT predictive probability is

oto_t2

  • 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 oto_t3, updating node counts via KT.
  • CTW Mixture Weight: Each node oto_t4 maintains a weighted probability oto_t5, recursively defined as:

oto_t6

At the root, oto_t7 yields the total Bayesian mixture over all PSTs up to depth oto_t8 with code-length penalization oto_t9 (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:

  1. At time rtr_t0, select action rtr_t1 using ρ-UCT with the current FAC-CTW model as the generative environment.
  2. (Optionally) Apply an outer exploration policy (e.g., rtr_t2-greedy).
  3. Execute rtr_t3, observe rtr_t4.
  4. Update FAC-CTW: Append action bits (no KT update), then for each percept bit apply KT update in context tree, updating rtr_t5.
  5. Extend history with rtr_t6 and increment rtr_t7 (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: rtr_t8 per new bit, independent of total cycles.
  • CTW Sampling (for rollouts): rtr_t9 for each percept of at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})0 bits.
  • ρ-UCT Simulation: at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})1 per trajectory to depth at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})2.
  • Per-Action Cost: at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})3 for at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})4 simulations per real decision.
  • Memory: Context tree occupies at most at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})5 nodes; UCT search tree up to at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})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 at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})7 at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})8s
Tiger (POMDP) 10,000 at=argmaxatxtmaxat+mxt+m[i=1mrt+i]ξU(x1:t+ma1:t+m)a_t^* = \arg\max_{a_t} \sum_{x_t} \dots \max_{a_{t+m}} \sum_{x_{t+m}} \left[ \sum_{i=1}^m r_{t+i} \right] \cdot \xi_U(x_{1:t+m} | a_{1:t+m})9 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})0s
TicTacToe 5,000 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})1 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})2s
Kuhn Poker 3,000 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})3 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})4s

In domains with known optima, the agent converged to near-optimal average reward within ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})5–ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})6 cycles. In Biased Rock-Paper-Scissors, MC-AIXI-CTW reached optimality by ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})7 cycles, while competitors such as Active-LZ remained suboptimal after ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})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 ξU(x1:na1:n)=ν2K(ν)ν(x1:na1:n)\xi_U(x_{1:n} | a_{1:n}) = \sum_\nu 2^{-K(\nu)} \nu(x_{1:n} | a_{1:n})9; planning over long-term deferred rewards may be ineffective without heuristic exploration (e.g., ν\nu0-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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Quantum AIXI.