Marginal

Universal Artificial Intelligence

Idealized prediction and action: Bayesian mixture predictors over hypothesis classes, dominance and cumulative error bounds, the Solomonoff prior as a formal Occam's razor, Pinsker-based prediction bounds, Pareto optimality and misspecification, history-based reinforcement learning, the AIXI agent and its expectimax form, on-policy value convergence, exploration and asymptotic optimality, and the limits of AIXI as a model of real agents.

15 lessons in 2 units · free with an account

Start your free trialThis course stays free after the trial.
What you'll learn

15 lessons, one small step at a time

Each lesson states its goal, then works up to it in short steps with practice after each. A placement test at the start skips what you already know.

Solomonoff Induction

6 lessons
  1. Posterior weightsCompute the likelihood a hypothesis gives to data and the posterior weights of competing hypotheses, and explain what updating does over time.
  2. Bayesian mixture predictionCompute the probability a Bayesian mixture gives to a sequence and its next-symbol forecast, and explain why predicting with it amounts to learning.
  3. Dominance & the error boundBound how much more log loss a mixture can suffer than the true model, turn that into a bound on total prediction error, and explain why the bound means the mixture learns.
  4. The Solomonoff priorWeight hypotheses by description length with the Solomonoff prior, bound its total error on any computable truth, and explain it as a formal Occam's razor.
  5. Prediction error boundsConvert KL bounds into bounds on squared prediction error and the number of bad steps, and bound the errors on deterministic sequences.
  6. Optimality & misspecificationExplain in what sense the Bayesian mixture is optimal, how the choice of reference machine shifts its bounds, and where its posterior settles when the class is misspecified.

AIXI

9 lessons
  1. History-based RLCompute the discounted value of rewards in history-based reinforcement learning, and the predictions of the mixture environment a Bayesian agent plans against.
  2. AIXIChoose AIXI's action as the best under the posterior-weighted mixture, update its posterior from percepts, and say what kind of object AIXI is.
  3. Expectimax planningCompute action values with the expectimax recursion, count the leaves of its game tree, and explain how a horizon makes the search finite.
  4. Values under the mixtureCompute a policy's value under the mixture as a weighted average, explain why optimal policies exist, and derive a lower bound on AIXI's value.
  5. On-policy value convergenceCompute how evidence rules out wrong environments and how fast it accumulates, and explain why a Bayesian agent learns only on-policy.
  6. AIXI cannot be fooledShow that a deterministic true environment's posterior weight never falls below its prior, and derive the guarantee that AIXI cannot be fooled into despair.
  7. Self-optimizing policiesDefine self-optimizing policies, state when AIXI is self-optimizing, and use the two tools of the proof.
  8. Exploration & optimalityCompute the action probabilities of a Thompson sampling agent and the entropy a knowledge-seeking agent targets, and explain why traps make exploring forever costly.
  9. The limits of AIXIExplain three limits of AIXI, its dependence on the prior, wireheading and being outside the world, and the problem each poses for real agents.
Sample lesson

Posterior weights

Goal: Compute the likelihood a hypothesis gives to data and the posterior weights of competing hypotheses, and explain what updating does over time.

In 1964 Ray Solomonoff proposed a universal answer to the problem of induction: predict with a weighted mixture of every hypothesis that could have produced the data. Marcus Hutter later turned it into a theory of optimal agents. Everything starts with Bayesian updating over a class 𝓜 of candidate sequence models ν with prior weights wν.

We will compute the likelihood of the data, then posterior weights, and finish with what updating does.

Step 1: Likelihood of the data

Each hypothesis assigns a probability to the whole sequence seen so far. For an i.i.d. coin hypothesis θ, the probability of a particular sequence with k ones in n symbols is

ν(x₁…xₙ) = θᵏ(1 − θ)n−k

The order of the symbols does not matter, only how many ones and zeros there are. Comparing two hypotheses on the same data, their ratio of likelihoods measures the evidence between them.

Step 2: Posterior weights

wν(x₁…xₙ) = wν·ν(x₁…xₙ) ÷ Σν′ wν′·ν′(x₁…xₙ)

Hypotheses that predicted the data well gain weight; those that predicted it poorly lose it. In odds form: posterior odds = prior odds × likelihood ratio.

0θ = 0.10.07θ = 0.30.24θ = 0.50.4θ = 0.70.28θ = 0.9
Five coin hypotheses start with equal prior weight. Each 1 shifts weight toward hypotheses with large θ and each 0 toward small θ; the more data, the more sharply the posterior concentrates.

Step 3: What updating does

The posterior is a probability distribution over hypotheses that tracks the evidence. Updating one symbol at a time gives the same answer as updating on the whole sequence at once, because a sequence's likelihood factors into one-step predictions: ν(x₁x₂) = ν(x₁) × ν(x₂ | x₁). If two hypotheses gave the data equal probability, their odds stay at the prior odds. A hypothesis with a small prior that predicts much better than the rest comes to dominate, while one that called the observed data impossible is ruled out for good: its weight becomes zero and no later evidence can revive it.

In the app, each step ends with practice questions, new ones every time, and the lesson comes back later in spaced reviews.

Start Universal Artificial Intelligence

Lessons that need something you haven't learned yet bring it in first, from any course.

Start your free trialThis course stays free after the trial.