Concepts / Model-Based Planning

Model-Based Planning

Learning uses experience from the real environment, while model-based planning can use experience produced by a model.

  • Programming

One Estimate, Two Sources

Planning and learning may appear to be separate activities, but they share an important operation: improving an estimate of how valuable situations are. The update itself does not necessarily determine whether a process is called planning or learning. The key distinction is often the source of the experience used for the update.

Key point

Learning uses experience from the real environment, while model-based planning can use experience produced by a model.

Real experienceLearningSimulatedexperiencePlanningLearning updateImproves an estimatesuppliessupplies
What is the difference between experience generated by the real environment and experience generated by a model?

Following the Shared Record

Treat the estimated value function as a shared working record. A learning process can revise this record after receiving real experience. A planning process can revise the same record after receiving experience generated by a model. The record does not need to be duplicated simply because the experience sources differ.

Worked example

Two Updates to One Estimate

A system has one estimated value function. First, it receives experience from the real environment. Later, a model produces simulated experience. How can both processes contribute to the same estimate?

  1. 1
    Start with one estimate

    The system keeps an estimated value function as a shared working record of how valuable situations are.

  2. 2
    Use real experience

    A learning process applies its update using experience from the real environment and revises the shared estimate.

  3. 3
    Use simulated experience

    A planning process applies a learning method to experience generated by a model and revises that same estimate.

  4. 4
    Continue incrementally

    Because the revisions can occur as a sequence of small updates, planning and learning can cooperate on one estimated value function.

Result

Planning and learning can contribute to the same estimated value function. Their experience sources differ, but the update operation can remain the same.

LearningReal experienceEstimated valuefunctionShared working recordPlanningSimulated experienceincremental updateincremental update
How can planning and learning both update the same estimated value function?

From Model Output to Planning

A model can produce simulated experience. If a learning method is applied to that model-generated experience, the method functions as a planning method. This does not require redesigning the entire update procedure. The important change is the input source: the method receives simulated rather than real experience.

ModelProduces experienceSimulated experiencePlanning inputLearning methodApplied to the inputEstimated valuefunctionUpdated estimategeneratessuppliesupdates
How does simulated experience produced by a model flow into a learning update?

What do you think happens?

A learning method is given simulated experience produced by a model instead of experience from the real environment. What does the method become?

  • A planning method

  • A separate kind of value function

  • A process that cannot update an estimate

Reveal answer
Answer:

A planning method

Applying a learning method to model-generated experience converts it into a planning method. The operation can stay the same while the source of experience changes.

Where the Boundary Blurs

Planning and learning can look like separate activities because one is associated with simulated experience and the other with real experience. In an integrated system, however, both may make incremental revisions to the same estimated value function. If the update operations are identical and only the supplied experience changes, the boundary between planning and learning becomes difficult to distinguish by the update procedure alone.

AspectLearningModel-based planning
Experience sourceReal experienceExperience produced by a model
Central operationValue-function estimationValue-function estimation
Possible update styleIncremental updateIncremental update
Relationship to the shared estimateCan revise the estimated value functionCan revise the same estimated value function

The central operation can be shared even when the experience source differs.

Best practice

When classifying a process, ask first where its experience comes from. Do not assume that planning and learning must use different update algorithms or separate value functions.

Mistakes About Planning

  • Common mistake

    Assuming planning and learning must use different update procedures.

    What it looks like

    A learner labels an update as learning solely because it uses a learning method.

    Why it fails

    A learning method applied to simulated experience can serve as planning.

    Do this instead

    Check the source of the experience supplied to the method.

  • Common mistake

    Assuming planning requires a separate estimated value function.

    What it looks like

    A system keeps one estimate for real experience and another unrelated estimate for model-generated experience.

    Why it fails

    Incremental updates allow planning and learning to contribute to the same estimated value function.

    Do this instead

    Understand the estimated value function as a shared working record that both processes can revise.

  • Common mistake

    Treating the experience source as a minor implementation detail.

    What it looks like

    A learner describes real and simulated experience as interchangeable without noting their origins.

    Why it fails

    The source of experience is the key distinction commonly used to separate learning from planning.

    Do this instead

    State explicitly whether the experience comes from the real environment or from a model.

MEDIUM

For each case, identify whether the process is learning, planning, or not distinguishable from the update operation alone: a value estimate is revised using real experience; the same method is revised using simulated experience from a model; planning and learning both make small revisions to one shared estimate.

Hints
  • Focus on the source of the experience.
  • Do not infer that the update algorithm must change when the source changes.
  • For the shared-estimate case, separate the question of what is updated from the question of where the experience came from.
Key point

A reliable explanation of model-based planning should name both parts: the value-function update and the simulated experience supplied by a model.

Working Summary

  1. 1
    Planning and learning share value-function estimation as a central operation.
  2. 2
    Incremental updates allow both processes to contribute to one shared estimated value function.
  3. 3
    Learning generally uses real experience, while model-based planning uses simulated experience produced by a model.
  4. 4
    Applying a learning method to simulated experience turns that method into a planning method.
  5. 5
    The difference between planning and learning is often the source of experience, not the update operation itself.

At a glance

  • Value-function estimation is the common operation connecting planning and learning.
  • Both processes can make incremental updates to the same estimated value function.
  • Real experience is associated with learning, while model-generated simulated experience is associated with planning.
  • A learning method applied to simulated experience functions as a planning method.
  • To distinguish the processes, inspect the source of the experience before assuming their algorithms differ.

Related concepts

More concepts starting with M