ArticleslgStudy

computer science

AIXI

AIXI is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand AIXI rather than just read about it. In short: AIXI is a theoretical mathematical formalism for artificial general intelligence. It combines Solomonoff induction with sequential decision theory.

Key takeaways

  • AIXI belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect AIXI to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of AIXI from memory before moving on to harder problems.

Reference excerpt

AIXI is a theoretical mathematical formalism for artificial general intelligence. It combines Solomonoff induction with sequential decision theory. AIXI was first proposed by Marcus Hutter in 2000 and several results regarding AIXI are proved in Hutter's 2005 book Universal Artificial Intelligence. AIXI is a reinforcement learning (RL) agent. It maximizes the expected total rewards received from the environment. Intuitively, it simultaneously considers every computable hypothesis (or environment). In each time step, it looks at every possible program and evaluates how many rewards that program generates depending on the next action taken. The promised rewards are then weighted by the subjective belief that this program constitutes the true environment. This belief is computed from the length of the program: longer programs are considered less likely, in line with Occam's razor. AIXI then selects the action that has the highest expected total reward in the weighted sum of all these programs.

Etymology According to Hutter, the word "AIXI" can have several interpretations. AIXI can stand for AI based on Solomonoff's distribution, denoted by ξ (which is the Greek letter xi), or e.g. it can stand for AI "crossed" (X) with induction (I). There are other interpretations.

Definition AIXI is a reinforcement learning agent that interacts with some stochastic and unknown but computable environment μ. The interaction proceeds in time steps, from t=1 to t=m, where m∈ℕ is the lifespan of the AIXI agent. At time step t, the agent chooses an action at∈𝒜 (e.g. a limb movement) and executes it in the environment, and the environment responds with a "percept" et∈ℰ=𝒪×ℝ, which consists of an "observation" ot∈𝒪 (e.g., a camera image) and a reward rt∈ℝ, distributed according to the conditional probability μ(otrt|a1o1r1...at−1ot−1rt−1at), where a1o1r1...at−1ot−1rt−1at is the "history" of actions, observations and rewards. The environment μ is thus mathematically represented as a probability distribution over "percepts" (observations and rewards) which depend on the full history, so there is no Markov assumption (as opposed to other RL algorithms). Note again that this probability distribution is unknown to the AIXI agent. Furthermore, note again that μ is computable, that is, the observations and rewards received by the agent from the environment μ can be computed by some program (which runs on a Turing machine), given the past actions of the AIXI agent. The only goal of the AIXI agent is to maximize ∑t=1mrt, that is, the sum of rewards from time step 1 to <match>m</math>. The AIXI agent is associated with a stochastic policy π:(𝒜×ℰ)∗→𝒜, which is the function it uses to choose actions at every time step, where 𝒜 is the space of all possible actions that AIXI can take and ℰ is the space of all possible "percepts" that can be produced by the environment. The environment (or probability distribution) μ can also be thought of as a stochastic policy (which is a function): μ:(𝒜×ℰ)∗×𝒜→ℰ, where the ∗ is the Kleene star operation. In general, at time step t (which ranges from 1 to m), AIXI, having previously executed actions a1…at−1 (which is often abbreviated in the literature as a<t) and having observed the history of percepts o1r1...ot−1rt−1 (which can be abbreviated as e<t), chooses and executes in the environment the action, at, defined as follows:

at:=arg⁡maxat∑otrt…maxam∑omrm[rt+…+rm]∑q:U(q,a1…am)=o1r1…omrm2−length(q) or, using parentheses, to disambiguate the precedences

at:=arg⁡maxat(∑otrt…(maxam∑omrm[rt+…+rm](∑q:U(q,a1…am)=o1r1…omrm2−length(q)))) Intuitively, in the definition above, AIXI considers the sum of the total reward over all possible "futures" up to m−t time steps ahead (that is, from t to m), weighs each of them by the complexity of programs q (that is, by 2−length(q)) consistent with the agent's past (that is, the previously executed actions, a<t, and received percepts, e<t) that can generate that future, and then picks the action that maximizes expected future rewards. Let us break this definition down in order to attempt to fully understand it. otrt is the "percept" (which consists of the observation ot and reward rt) received by the AIXI agent at time step t from the environment (which is unknown and stochastic). Similarly, omrm is the percept received by AIXI at time step m (the last time step where AIXI is active). rt+…+rm is the sum of rewards from time step t to time step m, so AIXI needs to look into the future to choose its action at time step t. U denotes a monotone universal Turing machine, and q ranges over all (deterministic) programs on the universal machine U, which receives as input the program q and the sequence of actions a1…am (that is, all actions), and produces the sequence of percepts o1r1…omrm. The universal Turing machine U is thus used to "simulate" or compute the environment responses or percepts, given the program q (which "models" the environment) and all actions of the AIXI agent: in this sense, the environment is "computable" (as stated above). Note that, in general, the program which "models" the current and actual environment (where AIXI needs to act) is unknown because the current environment is also unknown. length(q) is the length of the program q (which is encoded as a string of bits). Note that 2−length(q)=12length(q). Hence, in the definition above, ∑q:U(q,a1…am)=o1r1…omrm2−length(q) should be interpreted as a mixture (in this case, a sum) over all computable environments (which are consistent with the agent's past), each weighted by its complexity 2−length(q). Note that a1…am can also be written as a1…at−1at…am, and a1…at−1=a<t is the sequence of actions already executed in the environment by the AIXI agent. Similarly, o1r1…omrm=o1r1…ot−1rt−1otrt…omrm, and o1r1…ot−1rt−1 is the sequence of percepts produced by the environment so far. Let us now put all these components together in order to understand this equation or definition. At time step t, AIXI chooses the action at where the function ∑otrt…maxam∑omrm[rt+…+rm]∑q:U(q,a1…am)=o1r1…omrm2−length(q) attains its maximum.

Parameters The parameters to AIXI are the universal Turing machine U and the agent's lifetime m, which need to be chosen. The latter parameter can be removed by the use of discounting.

Optimality AIXI's performance is measured by the expected total number of rewards it receives. AIXI has been proven to be optimal in the following ways.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with AIXI

Start with the simplest possible case. Write down what AIXI claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to AIXI before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about AIXI ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of AIXI

In research
AIXI appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses AIXI in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
AIXI is common in secondary-school and first-year university syllabi. It links to neighbouring topics Decision theory, Machine learning, Optimal decisions, so understanding it makes those chapters shorter.
In everyday life
Look for AIXI outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “AIXI” →

How to study AIXI in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what AIXI means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain AIXI out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is AIXI in simple terms?

AIXI is a theoretical mathematical formalism for artificial general intelligence. It combines Solomonoff induction with sequential decision theory.

Why does AIXI matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study AIXI?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on AIXI.

Tags

  • Decision theory
  • Machine learning
  • Optimal decisions

Keep exploring