Concepts / Values and Policies

Values and Policies

The resulting values and policy are used immediately to choose an action.

  • Programming

Planning for the Current Choice

Planning does not always produce a permanent calculation that is kept for every future decision. An agent can plan specifically for the state it currently occupies, use that planning to choose an action, and then discard the values and policy produced for that decision. The important question is not whether the result lasts forever. It is whether the result helps the agent choose well now and whether reusing it later would be valuable.

Current statestate needing an actionAvailable choicescurrent state's actionsPlanningevaluate choicesPolicybasis for choosingSelected actionaction for nowoffersevaluated byproducesselects
How does an agent use the current state to evaluate available choices and select an action without keeping a permanent plan?

From Simulation to Policy

The internal planning path can be described as a sequence. It begins with simulated experience. That simulated experience is used in backups, which produce values. The values then contribute to a policy. Here, the policy is a basis for choosing among the actions available in the current state. The chain is therefore simulated experience, then backups, then values, then a policy, followed by action selection.

Simulatedexperienceplanned experienceBackupsuses simulationValuescurrent choicesPolicybasis for choosingSelected actioncurrent decisionused inproducescontribute toguides
How does a simulated transition produce a backup, update a value, and ultimately influence the policy's chosen action?
Worked example

Tracing One Current Decision

An agent is in a current state with several available choices. It plans specifically for those choices and then selects one action.

  1. 1
    Simulate

    The agent begins with simulated experience related to the current state and its available choices.

  2. 2
    Back up

    The simulated experience is used in backups.

  3. 3
    Form values

    The backups produce values for the choices under consideration.

  4. 4
    Form a policy

    Those values contribute to a policy, which provides a basis for choosing among the current state's actions.

  5. 5
    Choose

    The agent uses the policy to select an action for the current state.

Result

The planning result has served its immediate purpose: it supported action selection for the current state.

Immediate Use and Discarding

In one approach, planning concentrates on the state that needs an action now. The resulting values and policy are used immediately to choose an action. After that choice, the agent may discard them. These results are specific to the current state and its choices; they are not general results for every state.

Current stateneeds an actionPlanning resultvalues and policyAction selectionchoose nowActionselected actionDiscarded resultnot storedplan forinformsselectsafter selection
What happens when a planning result is used immediately to choose the next action, and how does control flow from planning to action?

What do you think happens?

An agent has many possible states and is unlikely to encounter its exact current state again soon. Is discarding the current values and policy necessarily evidence that planning was useless?

  • Yes, because useful planning must always be stored.

  • No, because the planning may have been intended only to select the current action.

  • Yes, because values and policies are never useful after action selection.

  • No, because discarding means the agent has stored a permanent plan elsewhere.

Reveal answer
Answer:

No, because the planning may have been intended only to select the current action.

Planning can be useful even when its immediate values and policy have a short lifetime. The results may be discarded because they served the current action-selection decision and are unlikely to be reused soon.

Storing for Future Reuse

A second approach stores planning results so that the agent is farther along if it returns to the same state later. The decision to store is guided by the likely future importance of that state. If a later return is more relevant, storing the values and policy can make the earlier planning effort useful again.

Current statestate-specific choicesPlanningsimulated experienceStored resultsvalues and policyLater returnsame state mattersReusefurther alongplan forsaveavailable atretrieves
What information is stored after planning, and how can it be retrieved later to influence values or action selection?
ChoiceImmediate purposeWhen it may fit
Discard the resultUse values and policy to choose the current actionThe same state is unlikely to appear again soon
Store the resultKeep the agent farther along for a later returnThe same state is likely to matter again later
Use a mixed approachFocus on the current action while keeping possible future valueImmediate action selection and later reuse both matter

The storage decision depends on the expected value of reusing results for the same state.

Storage is not the only alternative to complete discarding. A mixed approach can focus planning on the current state while also storing results for potential future use. This separates two purposes: choosing an action now and preserving useful work in case the same state matters later.

Discarding or Storing

The central decision is about reuse. Discarding is reasonable when the planning result is specific to a state that the agent may not encounter again soon. Storing is beneficial when a later return to that same state is relevant enough that reusing the earlier result could save planning effort. Neither choice is automatically correct in every situation.

Planning resultvalues and policyDiscardreuse unlikelyStorereuse relevantCurrent actionuse immediatelyLater reusesame state returnsif reuse unlikelyif reuse matterssupportsenables
What is the difference between discarding a result after immediate use and storing it for reuse, and when does each path make sense?
  • Common mistake

    Assuming that useful planning must always be stored.

    What it looks like

    An agent plans for its current state, selects an action, and discards the resulting values and policy.

    Why it fails

    The planning may have been useful precisely because it supported the current action selection. Its short lifetime does not cancel that purpose.

    Do this instead

    Judge the result by whether it helped choose the current action and whether future reuse is likely to matter.

  • Common mistake

    Treating values and policy as general results for every state.

    What it looks like

    The agent produces values for the current state's choices and treats them as a permanent answer for all possible states.

    Why it fails

    The values and policy described here are specific to the current state and its choices.

    Do this instead

    Keep the scope clear: the planning chain produces a basis for choosing among the current state's actions.

  • Common mistake

    Assuming that discarding and storing are the only possible overall strategies.

    What it looks like

    The agent either keeps every planning result or keeps none of them.

    Why it fails

    A mixed approach can focus planning on the current state while storing results for potential future use.

    Do this instead

    Separate immediate action selection from the possible future value of reusing the result.

  • Common mistake

    Storing every result without considering future reuse.

    What it looks like

    The agent stores a result even though the same state is unlikely to appear again soon.

    Why it fails

    The value of storage depends on how likely the same state is to matter again.

    Do this instead

    Consider the likelihood of a later return before deciding whether storage is worthwhile.

Apply the Decision

MEDIUM

An agent plans for its current state. The plan moves from simulated experience through backups and values to a policy, and the agent uses that policy to select an action. The same state is unlikely to appear again soon. Explain why discarding the values and policy can still be a reasonable result of useful planning. Then explain how the decision would change if the same state were likely to matter again later.

Hints
  • Trace the planning chain before discussing storage.
  • Separate the purpose of choosing an action now from the possibility of reusing a result later.
  • Use the likelihood of encountering the same state again as the deciding circumstance.
Worked example

Choosing a Storage Strategy

Compare two situations: in the first, the agent has many possible states and is unlikely to revisit the current state soon; in the second, a later return to the same state is relevant.

  1. 1
    Identify the current purpose

    In both situations, planning can support choosing an action for the current state.

  2. 2
    Trace the result

    The planning chain runs from simulated experience through backups and values to a policy for the current state's choices.

  3. 3
    Evaluate reuse in the first situation

    If the same state is unlikely to appear again soon, discarding the values and policy after action selection may be reasonable.

  4. 4
    Evaluate reuse in the second situation

    If the same state is likely to matter again later, storing the result may allow the earlier planning effort to be useful again.

  5. 5
    Consider a mixed approach

    When both immediate selection and possible future reuse matter, the agent can focus planning on the current state while storing results for potential future use.

Result

The storage decision follows the expected value of reuse, not a rule that all planning results must be kept or discarded.

Key Takeaways

  1. 1
    Planning can be part of choosing an action for the current state without producing a permanently stored calculation.
  2. 2
    The planning chain progresses from simulated experience through backups and values to a policy.
  3. 3
    The resulting values and policy are specific to the current state and its choices.
  4. 4
    Discarding the results may be reasonable when the same state is unlikely to matter again soon.
  5. 5
    Storing the results may be beneficial when the same state is likely to matter again, and a mixed approach can support both immediate use and future reuse.

At a glance

  • Planning can support current action selection even when its immediate results are not stored permanently.
  • The internal progression is simulated experience, backups, values, and then a policy for the current state's choices.
  • Values and policies may be discarded after action selection when future reuse of the same state is unlikely.
  • Storing planning results can make earlier effort useful again when the same state is likely to matter later.
  • A mixed approach can use planning immediately while preserving results for possible future reuse.

Related concepts

More concepts starting with V