← Latest papers
🤖 machine learning

On Training in Imagination

This paper analyzes the impact of learned dynamics and reward model errors on model-based reinforcement learning, deriving optimal sample allocation strategies and characterizing the tradeoff between using expensive, low-noise rewards versus cheaper, noisy rewards for policy optimization.

Original authors: Nadav Timor, Ravid Shwartz-Ziv, Micah Goldblum, Yann LeCun, David Harel

Published 2026-05-11
📖 5 min read🧠 Deep dive

Original authors: Nadav Timor, Ravid Shwartz-Ziv, Micah Goldblum, Yann LeCun, David Harel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a robot to play a complex video game, like a racing simulator or a strategy game. You have two main ways to teach it:

  1. Real Practice: Let the robot play the game for real, crash into walls, collect points, and learn from the actual environment.
  2. Imagination: Build a "dream world" inside the robot's computer. In this dream, the robot simulates playing the game, predicts what will happen next, and scores its own performance, all without ever touching the real game.

This paper is about Imagination Training. It asks: "How do we make this dream world training as effective as possible, especially when our 'dream' isn't perfect?"

Here is the breakdown of their findings using simple analogies:

1. The Two Parts of the Dream

To run a simulation, you need two things:

  • The Physics Engine (Dynamics Model): This predicts what happens when you take an action. If you press "left," where does the car go?
  • The Scorekeeper (Reward Model): This tells you how good that move was. Did you get points? Did you crash?

The authors discovered that errors in these two parts hurt the robot's learning differently.

  • The Analogy: Imagine you are learning to cook by reading a recipe book (the Physics) and tasting the food (the Reward).
    • If your recipe book is slightly wrong (e.g., it says "bake for 10 minutes" but it's actually 12), you might burn the cake eventually.
    • If your taste buds are slightly off (e.g., you think it's salty when it's sweet), you might keep adding the wrong ingredients.
    • The paper proves that if your "taste buds" (Reward Model) are bad, it messes up your learning just as much as a bad recipe book, but in a specific, calculable way.

2. The "Smoothness" Rule

The paper suggests that for the robot to learn well in its imagination, the maps it uses (the Physics and the Scorekeeper) need to be "smooth."

  • The Analogy: Think of a bumpy road versus a smooth highway.
    • If the road is bumpy (mathematically, if the "Lipschitz constant" is high), a tiny change in your steering wheel (input) causes a huge, unpredictable jump in where the car goes (output). This makes the dream world chaotic and hard to learn from.
    • If the road is smooth, a tiny turn in the wheel leads to a tiny, predictable curve.
    • The Finding: The authors show that if you design your AI to learn these "smooth" maps, the errors in the dream world stay small, and the robot learns much faster. They even connect this to a technique called "temporal straightening," which is like forcing the robot's dream path to look like a straight line rather than a jagged scribble, making it easier to predict the future.

3. The Budget Problem: How Much to Spend on What?

Imagine you have a fixed amount of money (a budget) to train your robot. You can spend it on:

  • Dynamics Data: Recording how the car moves (cheaper, easier to get).
  • Reward Data: Getting a human expert to say "Good job" or "Bad job" (expensive, harder to get).

The Big Question: Should you buy a huge pile of cheap movement data and a few expensive expert opinions? Or a small pile of movement data and many expert opinions?

  • The Finding: The paper gives a mathematical formula for the perfect split.
    • It turns out that Reward data is usually much easier to learn from than movement data. In their experiments, the "Reward Model" learned nearly 9 times faster than the "Physics Model" for every bit of data added.
    • Because rewards learn so fast, the paper suggests you should generally spend more of your budget on getting more Reward data (even if it's a bit noisier) rather than obsessing over perfect Physics data. It's better to have a slightly imperfect map but a very clear understanding of what "winning" looks like.

4. Dealing with Noisy Scores

Sometimes, the "Scorekeeper" isn't perfect. Maybe the human expert is tired, or the sensor is glitchy, and the score is a little bit random (noisy).

  • The Good News: If the noise is random (sometimes +1, sometimes -1, but averages to zero), the robot can still learn perfectly fine. It just needs to try a few more times to smooth out the randomness.
  • The Bad News: If the Scorekeeper is biased (always thinks the robot is doing better than it actually is), no amount of practice will fix it. The robot will learn the wrong lesson.
  • The Trade-off: The paper asks: "Should I pay for 100 cheap, noisy scores, or 10 expensive, perfect scores?"
    • Their math shows it depends on how much the cost goes down when you accept more noise.
    • Scenario A: If getting a "perfect" score costs 100x more than a "noisy" one, but the noise only goes down by 2x, you should buy the cheap, noisy scores and just run more simulations.
    • Scenario B: If paying a little more makes the noise disappear completely, you should pay for the expensive, perfect scores.

Summary

This paper is a guide for building better "dream worlds" for AI. It tells us:

  1. Smoothness is key: Make sure your AI's internal maps are predictable and not chaotic.
  2. Reward is king: Since learning what "good" looks like is faster than learning how the world moves, spend more of your budget on reward data.
  3. Noise is okay, bias is not: Random mistakes in scoring can be fixed by doing more practice; systematic lies cannot.

The authors tested these ideas on synthetic computer simulations and found that their mathematical formulas accurately predicted how to split the budget and how much error to expect.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →