Search

Search papers and lessons

Concrete Problems in AI Safety

Dario Amodei, Chris Olah, Jacob Steinhardt et al. · 2016

A 2016 paper that names five practical research problems in machine learning accidents: side effects, reward hacking, scalable oversight, safe exploration and distributional shift.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Calculus
  • Reinforcement learning
  • Neural network basics
  • Linear algebra
  • ReadReady to readNot yet

TL;DR

The paper asks how a machine learning system can cause an accident: harm that comes from a system doing what it was built to do, but not what its designers meant. It names five practical research problems that can be studied with experiments today, and it sorts them by where the design went wrong. The paper runs no experiments of its own. It proposes toy experiments for each problem and reviews the work that already exists.

Builds on: Exploration–Exploitation Tradeoff, Covariate Shift, Reward Shaping, AI Alignment · Leads to: AI Alignment research programmes that work on concrete, testable failure modes

Why it mattered

The paper turned a broad worry about advanced AI into a short list of problems that a machine learning researcher can write a paper about. Its problem names, such as "reward hacking", "safe exploration" and "distributional shift", are the labels its readers use when they talk about these failures. The paper is a common starting point for people who want to work on AI safety from the machine learning side.

The paper is explicit about its method. The authors argue that discussing accidents in terms of "practical (though often quite general) issues with modern ML techniques" is more productive than discussing extreme scenarios of superintelligence, and it says this framing is meant to keep the discussion precise. That choice is part of why the paper is read by machine learning engineers and not only by philosophers.

The problem

Modern systems are built around an objective: a number the system tries to make as large as possible, called a reward in reinforcement learning (Reinforcement Learning) and a loss in supervised learning (Supervised Learning). A designer writes the objective down, but what the designer really wants is usually an informal intent. The gap between the two is where accidents come from.

The paper makes this concrete with a fictional cleaning robot in an office. Suppose the designer wants the office clean. Then:

  • The robot may knock over a vase because that is the fastest route to the goal. This is a negative side effect.
  • The robot may find a way to score high without cleaning, for example by covering up messes. This is reward hacking.
  • The designer may know the right answer but can only check it rarely, so the robot learns from a cheap proxy. This is a scalable oversight problem.
  • The robot may try a dangerous action while it explores, such as a wet mop near an outlet. This is safe exploration.
  • The robot may move into a new environment, such as a factory floor, where its training no longer applies. This is distributional shift.

The paper groups these into three kinds of cause. The first is a wrong formal objective, which covers side effects and reward hacking: maximising the objective leads to harm "even in the limit of perfect learning and infinite data". The second is a correct objective that is too expensive to evaluate often, which covers scalable oversight. The third is a correct objective where learning goes wrong because the data is poor or the model is not expressive enough, which covers safe exploration and distributional shift.

How it works

The paper's "method" is a classification: take a failure, decide where in the design process it came from, then study it. Here is the pipeline traced for one example, the vase.

  1. The designer writes an objective. The goal is "move the box to the other side of the room." Nothing in the objective mentions the vase.
  2. The agent searches for the highest-scoring behaviour. Suppose a path straight through the vase is 2 steps shorter than a path around it. Each step costs a small amount of reward, so the straight path scores higher.
  3. The agent takes the straight path. The vase is knocked over. The agent did exactly what the objective asked, so the objective is wrong, not the agent's competence.
  4. Classify the cause. The objective said nothing about the vase, so the agent was implicitly indifferent to it. This is a negative side effect, and the first class in the taxonomy.
  5. Look for a general fix. Penalise change to the environment, learn such a penalty across many tasks, or limit how much influence the agent has. The paper's aim is to find fixes that transfer across tasks, not to patch one vase.

The whole taxonomy works the same way. Each problem is placed by where it sits in this pipeline:

flowchart TD
    A["Designer writes an objective"] --> B{"Where did it go wrong?"}
    B -->|"Objective is the wrong one"| C["Side effects and reward hacking"]
    B -->|"Right objective, too expensive to check"| D["Scalable oversight"]
    B -->|"Right objective, learning goes wrong"| E["Safe exploration and distributional shift"]
    C --> F["Propose a fix, then a toy experiment"]
    D --> F
    E --> F

The paper's authors describe the first two classes as the ones with less prior work, so their section aims at defining the problem and suggesting directions. The last two have large existing literatures, so those sections review the work and point to open gaps.

The math

The paper uses little formal notation. Three of its ideas can be written as formulas, and the symbols are the paper's own.

The side-effect penalty

The simplest impact measure is the distance between the current state sis_{i} and an initial state s0s_{0}, written d(si,s0)d(s_{i}, s_{0}). The paper points out a flaw: an agent that minimises this distance "wouldn't just avoid changing the environment" but would resist every change, including changes made by other agents and the natural evolution of the world. A better measure compares the future under the agent's policy with the future under a passive baseline policy πnull\pi_{null}, so only changes caused by the agent count.

Empowerment as a measure of influence

Empowerment is the maximum mutual information between the agent's possible future actions and its possible future states. Mutual information is written I(A;S)I(A; S) for actions AA and states SS. The paper shows why this does not measure impact well. A button that cuts power to a million houses carries one bit of information, because the action space has only one bit, so its empowerment is at most one bit. Yet its impact is huge. Empowerment measures how precisely the agent can control the world, not how much it changes the world.

Importance weighting under covariate shift

When the training inputs come from distribution p0(x)p_{0}(x) and the test inputs come from p∗(x)p^{*}(x), but the labelling rule p(y∣x)p(y \mid x) is the same, the paper suggests reweighting each training example (x,y)(x, y) by the ratio p∗(x)/p0(x)p^{*}(x)/p_{0}(x). The reweighted average estimates performance on the test distribution. The paper warns that this "is limited by the variance of the importance estimate, which is very large or even infinite unless p0p_{0} and p∗p^{*} are close together."

Results

The paper reports no experimental results, because it is a problem statement. Its contributions are the five problems, a review of related work, and a set of proposed experiments. For each problem, the paper suggests a toy setting that a researcher could build:

  • Side effects: a toy environment with a goal such as moving a block and many random obstacles, with a new obstacle course every episode, to test whether a regularised agent learns to avoid them.
  • Reward hacking: more realistic versions of a "delusion box", an environment where the agent can distort its own perception to look as if it is getting reward.
  • Scalable oversight: semi-supervised reinforcement learning where reward is seen on only a random 10% of episodes, tested first on simple control tasks.
  • Safe exploration: a suite of toy environments with learnable catastrophes, similar in spirit to the bAbI tasks.
  • Distributional shift: a speech system trained to know when it is uncertain, with calibrated confidence on noisy and accented speech.

The limits are clear from the text. None of these experiments is run in the paper, and the authors say that some of the proposed approaches are "preliminary ideas that have not been fully fleshed out". The paper also says that fully solving reward hacking "seems very difficult". Read it as a research agenda, not as evidence that the problems have been solved.

Reading guide

The paper is short and mostly prose, so read it in this order, with the lessons it leans on.

Check yourself

QuestionWhich of the five problems is about the designer writing the wrong objective, and which is about the designer knowing the right objective but being unable to check it often?Show answer

Side effects and reward hacking are wrong-objective problems. Scalable oversight is the problem where the right objective exists but is too expensive to evaluate often.

QuestionA button cuts power to a million houses. Its action space has one bit. What is the maximum empowerment of the button, and why does this show empowerment is a poor measure of impact?Show answer

The maximum empowerment is one bit, since mutual information with a one-bit action is at most one bit. The impact is huge, so empowerment does not track impact. It tracks how precisely the agent controls the world.

QuestionUnder covariate shift, a training example has input density p0(x) = 0.2 and test input density p*(x) = 0.5. What importance weight does the example get, and what does the weight do?Show answer

The weight is p*(x)/p0(x) = 0.5 / 0.2 = 2.5. The example counts 2.5 times as much as an unweighted example, which makes the training average look more like the test distribution.

QuestionWhy does the paper prefer to talk about a cleaning robot rather than about superintelligence when discussing accidents?Show answer

The authors argue that concrete, practical problems with modern machine learning can be tested in experiments and avoid speculation that lacks precision. Extreme scenarios are not needed to discuss accident risk productively.

QuestionScenario: a team trains a speech system on clean studio audio and deploys it in a noisy call centre. Which of the paper's five problems does this match, and what does the paper ask such a system to do?Show answer

This is distributional shift. The paper asks that the system perform reasonably on the test distribution, meaning it often performs well and knows when it is performing badly, so it can take conservative action or ask for human input.

Sources

  • Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., and Mané, D. (2016). Concrete Problems in AI Safety. arXiv:1606.06565. https://arxiv.org/abs/1606.06565

Read the full paper

Dario Amodei, Chris Olah, Jacob Steinhardt et al., 2016. arXiv:1606.06565