Concepts / Value Estimation Across Episode Horizons

Value Estimation Across Episode Horizons

A later horizon is a new pass over the episode, not merely the next step appended to the previous pass.

  • Programming

One Episode, Several Passes

The h-truncated λ-return method does not process an episode once and wait until the end before making all updates. Instead, it expands its available information one horizon at a time. At horizon 1, it makes the updates possible from the earliest available data. At horizon 2, it revisits the episode with more data, revises the earlier target, and updates the next state as well. The same pattern continues as the horizon advances.

h = 1one updateh = 2two updatesh = 3three updatesh = Tcomplete horizonmore datamore datamore data
What happens to the episode as the method revisits it with horizons h = 1, 2, 3, and beyond?
Key point

A later horizon is a new pass over the episode, not merely the next step appended to the previous pass.

What Each Horizon Knows

Before learning begins for a new episode, the algorithm starts with θ₀, the weight vector inherited from the end of the previous episode. When the data horizon reaches time step 1, the algorithm has observed R₁ and reached S₁. For the estimate at step 0, the available target is therefore the one-step return: it uses R₁ and then bootstraps from the estimate of S₁ generated with θ₀.

When the horizon advances, additional episode data allows targets for more earlier time steps. At horizon 2, the first update uses the improved target G λ|2 0 for the state at step 0, and the next update uses G λ|2 1 for the state at step 1. At horizon 3, the pass can use the targets for steps 0, 1, and 2. The essential change is not just the number of updates: the target available for an earlier state can also improve because the horizon contains more episode information.

R₁, S₁target for step 0R₁, S₁, R₂, S₂targets for steps 0 and 1R₁, S₁, R₂, S₂, R₃,S₃targets for steps 0, 1, and2one more stepone more step
How does the update target change when more future steps of the episode become available?

Reading the Weight Notation

A single symbol such as θ₁ becomes ambiguous when the algorithm makes several passes. The notation θʰₜ resolves this ambiguity. The superscript h identifies the horizon of the pass, while the subscript t identifies the time position within that pass. Thus, θʰₜ records both where the vector occurs inside a pass and which horizon-specific pass is being considered.

Every horizon-specific sequence begins with the inherited θ₀. The vector at the end of the pass is written θʰ, meaning θʰₕ. It is the final vector produced after all updates available at horizon h have been performed.

θ₀start of h = 1θ₀start of h = 2θ₀start of h = 3θ¹end of h = 1θ²end of h = 2θ³end of h = 3one updatetwo updatesthree updates
How do the weight vectors produced at each horizon differ, and which horizon produced each vector?

Tracing a Complete Horizon Pass

Worked example

From Horizon 2 to Horizon 3

Trace how the algorithm constructs the horizon-2 and horizon-3 results without treating horizon 3 as a continuation of horizon 2.

  1. 1
    Start horizon 2

    Begin the horizon-2 sequence at the inherited θ₀, not at the final vector from horizon 1.

  2. 2
    Update step 0

    Use the improved target G λ|2 0 for the state at step 0.

  3. 3
    Update step 1

    Use G λ|2 1 for the state at step 1. The two ordered updates produce θ².

  4. 4
    Start horizon 3

    Begin a new horizon-3 sequence again at the inherited θ₀.

  5. 5
    Perform three updates

    Use the targets for steps 0, 1, and 2 at horizon 3 in order. The sequence finishes at θ³.

Result

Each horizon has its own sequence from θ₀ to its final vector. Horizon 3 is a new three-update pass, not one extra update appended to the horizon-2 sequence.

This trace illustrates the central bookkeeping rule. The algorithm revisits the beginning because later data can construct targets for more earlier states. It also restarts from θ₀ so that the horizon-specific pass is defined consistently. The final vector of a previous horizon is not used as the starting vector of the next horizon within the same episode.

Episode 1horizon Tθᵀfinal weightsEpisode 2inherited θ₀complete horizonbecomes θ₀
How does the final weight vector from one episode become the starting weight vector for the next episode?

Mistakes in Horizon Tracing

  • Common mistake

    Treating horizon 2 as a continuation of horizon 1.

    What it looks like

    Starting the horizon-2 sequence from θ¹.

    Why it fails

    Each horizon-specific pass starts from the inherited θ₀ and performs the updates available at that horizon.

    Do this instead

    Restart the horizon-2 sequence at θ₀, then perform its two updates in order.

  • Common mistake

    Using one symbol such as θ₁ without recording the horizon.

    What it looks like

    Assuming every θ₁ refers to the same vector even when several passes exist.

    Why it fails

    The same time position can occur in multiple horizon-specific passes.

    Do this instead

    Use θʰₜ: h identifies the pass horizon and t identifies the time position within that pass.

  • Common mistake

    Assuming later horizons only add updates for later states.

    What it looks like

    Leaving the earlier target unchanged when the horizon advances.

    Why it fails

    Later horizons can form better targets for earlier states because additional episode data is available.

    Do this instead

    Revisit earlier states and use the target associated with the new horizon.

  • Common mistake

    Stopping at the first update instead of completing the horizon pass.

    What it looks like

    Calling the first horizon-3 intermediate vector θ³.

    Why it fails

    θ³ denotes the final vector after all updates available at horizon 3 have been performed.

    Do this instead

    Perform the updates for steps 0, 1, and 2 in order before identifying the result as θ³.

Best practice

When tracing the method, write the horizon above the pass and the time position below each vector. This keeps the pass identity separate from the position within that pass.

Practice the Handoff

MEDIUM

A complete episode reaches horizon T. Describe the starting vector, the final vector at that horizon, and the vector used to begin the next episode.

Hints
  • Every horizon-specific sequence begins with the inherited θ₀.
  • At the final horizon, the completed pass ends at θᵀ.
  • The next episode uses the previous episode's final weights as its θ₀.

What do you think happens?

If the algorithm is about to begin horizon 3 after completing horizon 2, which vector starts the horizon-3 sequence?

  • The final vector from horizon 2

  • The inherited θ₀

  • The first intermediate vector from horizon 2

Reveal answer
Answer:

The inherited θ₀.

Horizon 3 is a new horizon-specific sequence. It starts from θ₀ and performs three updates in order before producing θ³.

Episode-to-Episode Learning

Within one episode, the method repeatedly expands its horizon, revisiting earlier states as more information becomes available. Each pass starts from the inherited θ₀, uses the targets available at its own horizon, and ends with a horizon-specific final vector. At the complete horizon T, the final weights are θᵀ. Those weights become the θ₀ inherited by the next episode, connecting repeated passes within an episode to learning across episodes.

  1. 1
    The h-truncated λ-return method revisits an episode as its available data horizon grows.
  2. 2
    Later horizons can improve targets for earlier states and can update additional states.
  3. 3
    The notation θʰₜ identifies both the horizon h and the position t within that pass.
  4. 4
    Every horizon-specific pass starts from θ₀ and ends with its own final vector θʰ.
  5. 5
    The complete-horizon result θᵀ becomes θ₀ for the next episode.

Key Takeaways

  • The method expands available episode information one horizon at a time.
  • A later horizon is a fresh pass from θ₀, not a continuation from the previous horizon's final vector.
  • The superscript in θʰₜ identifies the horizon, while the subscript identifies the time position within that pass.
  • At horizon T, θᵀ is the final weight vector and is carried into the next episode as its inherited θ₀.

More concepts starting with V