LLM + RoboticsUnit 5 · Generative models & scaling · Day 27

Machine Super Intelligence

Define intelligence as reward earned across all computable environments, with simple environments counting most. Then ask what the best possible agent looks like, and why no real program can be it.

AuthorShane Legg (supervised by Marcus Hutter)
Year / venue2008 · PhD thesis, University of Lugano (research at IDSIA)
Core ideaUniversal intelligence Υ
Study time4–6 h

Original: thesis PDF (vetta.org) · Code, notebook and exercises: 30u30 Day 27

Start here (no maths needed)

Shane Legg suggested measuring intelligence as how well something reaches its goals across lots of different situations, with simple situations counting the most.

Think of it like this

Think of a decathlon at a sports day: ten different events, not just one. Someone who is only great at the long jump won't win. The champion is good at many events. Legg's idea is like a decathlon with endless events, where everyday, simple events are worth lots of points and weird, complicated ones are worth only a few. Your "intelligence score" is your total.

How it works

  1. Imagine every possible game or world a computer could simulate.
  2. Give each world a weight: simple worlds get a big weight, complicated ones a tiny weight.
  3. Let the agent (a player, a robot or a program) try each world and see how many rewards it collects.
  4. Add up the rewards, using the weights. That total is its universal intelligence score.
  5. The perfect agent for this test exists on paper, but it would need an infinitely powerful computer. So it's a goal to compare against, not something we can build.

Why robots care

A robot that can only stack red blocks on one table isn't very smart. A robot that can tidy many different kitchens is. When engineers test robots, they choose a set of tasks and decide how much each one counts. Legg's idea reminds us that this choice shapes which robot looks "smartest".

Try it

Words to know

Agent
Anything that observes the world and takes actions: a person, a robot, a program.
Environment
The world or game the agent is in.
Reward
Points the environment gives when the agent does well.
Superintelligence
Intelligence far beyond any human's.

Going deeper: everything below is the full version, with some maths. On a first read, skim the headings and the "Why it matters for robotics" box, and come back for the rest later.

1. Summary

TL;DR

Legg collects dozens of definitions of intelligence from psychology and AI and boils them down to one: an agent's ability to achieve goals in a wide range of environments. He then makes it a formula. Score an agent by its expected reward in every computable environment, weighting each environment by 2−K, where K is its Kolmogorov complexity (Day 26). Hutter's AIXI agent maximises this score, so it's a mathematical model of a super-intelligent agent. It's also uncomputable. The thesis then proves limits on what any computable agent can achieve and closes with a call to take the safety of advanced AI seriously. Legg co-founded DeepMind two years later.

2. The core idea

Υ(π) = Σ_{μ ∈ E}  2^(−K(μ)) · V_μ^π

V_μ^π = E[ r_1 + r_2 + r_3 + … ]     (rewards bounded so the sum ≤ 1)

AIXI:  π_ξ = argmax_π  V_ξ^π,   ξ = Σ_μ 2^(−K(μ)) μ

Two catches. K is uncomputable, so Υ can only be approximated. And Υ depends on the choice of reference machine, which shifts complexities by constants. Legg discusses both.

3. Deep dive

Simple environments dominate the score

The weights 2−K fall off fast. A toy version makes this concrete: 16 environments, one of each description length from 1 to 16 bits. Agent A solves every environment up to some complexity c. Agent B solves everything except the m simplest ones.

Interactive: complexity weighting in a toy Υ

Bars: weight 2−k of each toy environment. Dots underneath show which agent solves it (value 1, otherwise 0). Υ is the sum of weights of solved environments. This is a teaching toy, not the real infinite sum.

Υ(A)
–
Υ(B)
–
Envs solved A / B
–

Try this: with defaults, A solves 3 environments and B solves 15, yet A scores higher. Failing the single simplest environment costs half of all available weight. That's the measure doing what it was designed to do. Whether that's how we want to rank real systems is a fair criticism.

Limits on computable agents

Chapter 5 asks how close a real program can get. For predicting computable sequences, Legg proves there is no simple, general and powerful predictor. A predictor that learns all sequences up to some complexity must itself be at least about that complex. He then shows, via Gödel incompleteness, that beyond a certain power these predictors exist but can't be proven to work by mathematical analysis. Since RL agents must predict future rewards, the results carry over: very powerful agents are necessarily complex, and finding them is partly an empirical search. Read with today's hindsight, that's an argument for learned, large systems over elegant hand-derived ones.

Taxonomy, TD learning and the safety chapter

4. Why it matters for robotics

The connection is conceptual. AIXI is uncomputable and nobody deploys it. The framing is still useful.

5. How to study it

  1. Read the preface and chapter 1 (definitions of intelligence). About 1 h, and very readable.
  2. Read section 4.1, where Υ is defined, then 4.4 on common criticisms. Skim chapter 2 for Solomonoff induction and AIXI. Skip proofs.
  3. Read section 5.7 (conclusion on computable agents) and chapter 7 (discussion).
  4. In the 30u30 Day 27 folder, read implementation.py: toy environments, simple agents and an intelligence-score estimator. Run train_minimal.py and compare a random agent with a learning agent.
  5. Do the exercises in exercises/, then work through notebook.ipynb.

6. Self-check

State Legg's informal definition of intelligence.

An agent's ability to achieve goals in a wide range of environments.

What does the 2−K(μ) term encode, and why?

A prior that favours simple environments: Occam's razor. Each extra bit of description halves an environment's weight, so the measure rewards agents that do well on simple, likely worlds.

Why can't you compute Υ(π) exactly?

It needs K(μ) for every environment, and Kolmogorov complexity is uncomputable. The sum is also over infinitely many environments.

What is AIXI's relationship to Υ?

AIXI is the agent that maximises expected reward under the universal mixture ξ, which is the same as maximising Υ. So it has the highest universal intelligence, but it's uncomputable.

What does chapter 5 imply for building capable agents?

Very powerful computable predictors or agents must be complex, and beyond some point their power can't be established by proof. Progress has to come partly from empirical search.

7. Further reading