Skip to content
intermediate

How Model Error Propagates Across a Finite Planning Horizon

A planner that looks accurate one step ahead can still produce value estimates that drift badly over a rollout. The usual reaction is to blame the model.…

Published 2026-10-02Updated 2026-10-0412 min read
Black chess pieces arranged in a dramatic shadow cast on a white background.
Black chess pieces arranged in a dramatic shadow cast on a white background. Photo by Çiğdem Bilgin on Pexels.

A planner that looks accurate one step ahead can still produce value estimates that drift badly over a rollout. The usual reaction is to blame the model. The more useful reaction is to ask a sharper question: how much error does one step contribute, and how does the horizon spend it?

This is the quantitative version of the compounding-error intuition. Here we make the bound explicit, separate the reward-model contribution from the transition-model contribution, and turn the result into a rule for choosing a planning horizon.

What You Are Actually Bounding

Fix a policy π\pi. You have two models of the same environment: the true transition and reward model P,rP, r, and a learned approximation P^,r^\hat{P}, \hat{r}. Under each model you can roll out the policy for HH steps and compute a finite-horizon value.

The object of study is the gap between those two values:

∣V^Hπ(s)−VHπ(s)∣\left| \hat{V}^{\pi}_{H}(s) - V^{\pi}_{H}(s) \right|

where V^Hπ\hat{V}^{\pi}_{H} is the value predicted by planning under the learned model and VHπV^{\pi}_{H} is the value under the true model, both for the same fixed policy and the same starting state ss.

Two things are worth stating before any algebra.

First, this is a value-prediction error, not a policy-performance error. The bound tells you how wrong your value estimate is for a policy you already have. It says nothing about how good the policy you extract from that estimate will be. That distinction matters later, because it is the most common place readers over-claim the result.

Second, the bound is conditional. It holds under explicit assumptions about bounded rewards, a bounded per-step model error, and a value function that does not change too violently when the next-state distribution shifts. If those assumptions fail, the bound fails with them.

The intuition article in this series established that model error compounds across imagined rollouts. The bound is what makes that compounding predictable instead of anecdotal.

Notation and Assumptions Before Any Derivation

Define everything before using it.

SymbolMeaning
s,as, astate and action
π(a∣s)\pi(a \mid s)fixed policy being evaluated
γ∈(0,1)\gamma \in (0, 1)discount factor
HHplanning horizon (number of imagined steps)
P(⋅∣s,a)P(\cdot \mid s, a)true transition distribution
P^(⋅∣s,a)\hat{P}(\cdot \mid s, a)learned transition distribution
r(s,a)r(s, a)true expected reward
r^(s,a)\hat{r}(s, a)learned expected reward
Rmax⁡R_{\max}bound on $
ϵr\epsilon_rper-step reward-model error bound
W(s,a)W(s, a)per-step transition distance between PP and P^\hat{P}
KKLipschitz constant of the value function

The assumptions, stated plainly:

  1. Bounded rewards. ∣r(s,a)∣≤Rmax⁡|r(s,a)| \le R_{\max} and ∣r^(s,a)∣≤Rmax⁡|\hat{r}(s,a)| \le R_{\max} for all s,as, a.
  2. Bounded reward error. ∣r^(s,a)−r(s,a)∣≤ϵr|\hat{r}(s,a) - r(s,a)| \le \epsilon_r for all s,as, a.
  3. Bounded transition error. W(P(⋅∣s,a),P^(⋅∣s,a))≤WW(P(\cdot \mid s,a), \hat{P}(\cdot \mid s,a)) \le W for all s,as, a, where WW is a distance between probability distributions.
  4. Lipschitz value. For any two next-state distributions P1,P2P_1, P_2, the induced expected continuation values differ by at most K⋅W(P1,P2)K \cdot W(P_1, P_2).

Why measure transition error as a distance between distributions rather than a difference in parameters? Because the value function only sees the distribution. Two parameterizations can differ wildly while producing nearly identical distributions, and two nearly identical parameterizations can produce very different distributions. The distance that matters is the one the value function can feel.

The Lipschitz assumption is the load-bearing one. It says a small shift in the next-state distribution produces a bounded shift in expected value. When the value function is nearly flat in some region, KK is small and transition error barely matters. When value changes sharply across neighboring states, KK is large and even a tiny distribution shift can move the value estimate a lot.

What breaks when these assumptions fail: unbounded rewards make ϵr\epsilon_r meaningless, a non-Lipschitz value function makes the transition term unbounded, and a horizon that exceeds the discount's effective reach makes the geometric sum saturate rather than grow.

Deriving the One-Step Error

Start with the one-step Bellman-style value under each model, for a fixed policy:

V1(s)=Ea∼π[r(s,a)+γEs′∼P(⋅∣s,a)[V0(s′)]]V_1(s) = \mathbb{E}_{a \sim \pi}\left[ r(s,a) + \gamma \mathbb{E}_{s' \sim P(\cdot \mid s,a)}\left[ V_0(s') \right] \right] V^1(s)=Ea∼π[r^(s,a)+γEs′∼P^(⋅∣s,a)[V0(s′)]]\hat{V}_1(s) = \mathbb{E}_{a \sim \pi}\left[ \hat{r}(s,a) + \gamma \mathbb{E}_{s' \sim \hat{P}(\cdot \mid s,a)}\left[ V_0(s') \right] \right]

Subtract and take absolute values. The expectation over actions is linear, so it passes through:

∣V^1(s)−V1(s)∣≤Ea∼π[∣r^(s,a)−r(s,a)∣]+γEa∼π[∣EP^[V0]−EP[V0]∣]\left| \hat{V}_1(s) - V_1(s) \right| \le \mathbb{E}_{a \sim \pi}\left[ \left| \hat{r}(s,a) - r(s,a) \right| \right] + \gamma \mathbb{E}_{a \sim \pi}\left[ \left| \mathbb{E}_{\hat{P}}[V_0] - \mathbb{E}_{P}[V_0] \right| \right]

The first term is the reward contribution. By assumption 2, it is bounded by ϵr\epsilon_r.

The second term is the transition contribution. The inner difference is exactly the kind of quantity the Lipschitz assumption controls: a change in the next-state distribution produces a change in expected value bounded by KK times the distribution distance. So:

∣EP^[V0]−EP[V0]∣≤K⋅W(s,a)≤K⋅W\left| \mathbb{E}_{\hat{P}}[V_0] - \mathbb{E}_{P}[V_0] \right| \le K \cdot W(s, a) \le K \cdot W

Putting it together, the one-step error bound is:

∣V^1(s)−V1(s)∣≤ϵr+γKW\left| \hat{V}_1(s) - V_1(s) \right| \le \epsilon_r + \gamma K W

Read that carefully. One step of planning error has two independent sources, and they do not cancel. A perfect transition model does not save you from a bad reward model, and a perfect reward model does not save you from a bad transition model. If you are debugging a drifting planner, this is the first place to look: which term is larger?

Knowledge check

Check your understanding

Answer this question before you continue.

If the reward model is exact but transition error is bounded by W, which one-step error bound follows from the article's assumptions?
Misconception Check

Focus: Separate the reward-model and transition-model contributions in the one-step value-error bound.

Compounding Across H Steps

A rising curve plots the finite-horizon error bound against planning horizon, climbing quickly at first and flattening toward a horizontal ceiling. Markers show the example values at horizons 1, 5, 10, 20, and 50.
The bound grows with rollout depth, but discounting makes each added step matter less as it approaches its ceiling.

Now extend to HH steps by induction. The key requirement is that the Lipschitz constant KK must bound the distribution-sensitivity of every continuation value used through horizon HH, not just the one-step value V0V_0. If the value function's Lipschitz constant varies with the remaining horizon, use the maximum over all horizons up to HH. Call that uniform bound KK.

Let eh=∣V^h(s)−Vh(s)∣e_h = |\hat{V}_h(s) - V_h(s)| denote the error at horizon hh, with e0=0e_0 = 0 since both models agree on the terminal value.

At horizon h+1h+1, the error decomposes into the one-step reward error plus the discounted transition error applied to the continuation value at horizon hh:

eh+1≤ϵr+γKW+γehe_{h+1} \le \epsilon_r + \gamma K W + \gamma e_h

This recurrence is the engine of the whole result. Each new step adds a fixed per-step error ϵr+γKW\epsilon_r + \gamma K W, then discounts the accumulated error from all previous steps by γ\gamma. The transition contribution KWK W appears at every depth because the Lipschitz condition holds uniformly across all continuation values.

Unrolling the recurrence from e0=0e_0 = 0:

eH≤(ϵr+γKW)∑t=0H−1γte_H \le (\epsilon_r + \gamma K W) \sum_{t=0}^{H-1} \gamma^t

Using the closed form for a finite geometric series:

∑t=0H−1γt=1−γH1−γ\sum_{t=0}^{H-1} \gamma^t = \frac{1 - \gamma^H}{1 - \gamma}

So the bound becomes:

∣V^H(s)−VH(s)∣≤ϵr+γKW1−γ⋅(1−γH)\left| \hat{V}_H(s) - V_H(s) \right| \le \frac{\epsilon_r + \gamma K W}{1 - \gamma} \cdot \left( 1 - \gamma^H \right)

This is the finite-horizon model error bound. Two features matter.

The factor (1−γH)(1 - \gamma^H) grows with HH but saturates. As H→∞H \to \infty, it approaches 1, and the whole bound approaches (ϵr+γKW)/(1−γ)(\epsilon_r + \gamma K W) / (1 - \gamma). That ceiling is the discount-limited maximum error. You cannot accumulate more than that, no matter how long you plan.

The horizon still matters, but only in the regime where γH\gamma^H is not yet negligible. When per-step error is large, the ceiling is high and you hit it fast. When per-step error is small, the ceiling is low and the horizon barely changes the answer.

Note: The bound is an upper bound under the stated assumptions. Real error is often smaller, sometimes much smaller. Treat it as a worst-case envelope, not a prediction.

Knowledge check

Check your understanding

Answer this question before you continue.

Why must the Lipschitz constant K bound every continuation value used through horizon H?
Single Choice

Focus: Identify why the transition-sensitivity constant must apply uniformly across continuation horizons when deriving the multi-step bound.

A Worked Numeric Example

Pick small numbers so the arithmetic stays visible. Let γ=0.9\gamma = 0.9, ϵr=0.05\epsilon_r = 0.05, K=2K = 2, and W=0.02W = 0.02.

The per-step transition contribution is γKW=0.9×2×0.02=0.036\gamma K W = 0.9 \times 2 \times 0.02 = 0.036. The reward contribution is 0.050.05. Reward error dominates here, roughly 58% of the one-step total.

The ceiling is (ϵr+γKW)/(1−γ)=0.086/0.1=0.86(\epsilon_r + \gamma K W) / (1 - \gamma) = 0.086 / 0.1 = 0.86.

Now compute the bound at three horizons:

HH1−γH1 - \gamma^HBound
10.100.086
50.410.353
100.650.559
200.880.757
500.9950.856

The bound climbs steeply for the first ten steps, then flattens. By H=50H = 50 you are within 1% of the ceiling. Increasing the horizon past roughly 20 buys almost nothing in accuracy terms, which means the extra computation is pure cost.

Now flip the case. Suppose W=0.2W = 0.2 instead of 0.020.02, so the transition contribution is γKW=0.36\gamma K W = 0.36 and the reward contribution stays at 0.050.05. Transition error now dominates, roughly 88% of the one-step total. The ceiling jumps to 0.41/0.1=4.10.41 / 0.1 = 4.1.

The practical implication is direct. In the first case, spend your modeling effort on the reward model. In the second, spend it on the transition model. The bound tells you where the leverage is.

Knowledge check

Check your understanding

Answer this question before you continue.

Using γ = 0.9, ε_r = 0.05, K = 2, W = 0.02, and H = 5, what is the article's approximate bound?
Output Prediction

Focus: Apply the finite geometric accumulation factor to calculate a finite-horizon error bound.

Reading the Bound as a Replanning Rule

The bound is not just a diagnostic. It is a decision rule.

Shortening the horizon reduces accumulated error but also reduces foresight. The bound quantifies the accuracy cost of that trade. If you cut HH from 20 to 5 in the first example, you drop the worst-case error from 0.757 to 0.353, but you also lose 15 steps of lookahead. Whether that trade is worth it depends on how much the later steps would have changed your action.

Replanning limits the depth of each imagined rollout. When you replan from a fresh real observation, the next prediction starts from a state you actually observed rather than from a model-generated state. This caps the open-loop rollout depth at the segment length between real observations. The bound applies per segment, not across the whole episode. But be careful about what this does and does not guarantee: replanning restarts the prediction from real data, yet this fixed-policy bound alone does not establish that errors across repeated replans cannot affect episode-level performance or the quality of the policy you extract. The bound describes value prediction for a fixed policy, and replanning generally changes the policy and the sequence of decisions.

State-dependent horizons make sense. If W(s,a)W(s, a) is large in some states and small in others, the bound is larger in those states. A state where the model is untrustworthy deserves a shorter horizon than a state where the model is accurate. This is the principle behind adaptive-horizon methods that choose HH per state based on estimated cumulative model error.

When the bound is too loose to be useful. If per-step error is large and the effective horizon is long, the ceiling is high enough that the model should not be trusted for planning at all. At that point, model-free updates or a much shorter horizon with heavy replanning are the honest options.

Knowledge check

Check your understanding

Answer this question before you continue.

A planner replans whenever it receives a fresh real observation. What does the bound then describe, according to the article?
Scenario Interpretation

Focus: Explain what replanning changes about the rollout depth to which the bound applies, without overclaiming episode-level guarantees.

Common Mistakes When Applying This Bound

Treating the bound as tight. It is an upper bound under assumptions. Real error is often smaller. Do not use it to predict exact error; use it to compare contributions and set a ceiling.

Ignoring the Lipschitz constant. A large KK can make the transition term dominate even when WW looks small. If value changes sharply across neighboring states, transition error is amplified. Measure or estimate KK before concluding that transition error is negligible.

Assuming the bound covers policy improvement. It bounds value prediction for a fixed policy. The policy you extract from that value estimate is a separate question, and the bound does not answer it.

Forgetting that the bound assumes the same policy under both models. In practice, the policy you evaluate under the learned model may differ from the policy the true model would induce. That gap is not covered here.

Common mistake: Concluding that a small WW means transition error does not matter. Multiply by KK and γ\gamma first. The product is what enters the bound.

What This Bound Does Not Tell You

The bound is a tool with a specific shape. Knowing its edges keeps you from over-claiming.

It does not bound policy performance after improvement. It bounds value prediction under a fixed policy. If you use the predicted value to pick a better policy, the quality of that policy is a separate analysis.

It does not handle function approximation error. If your value function is itself an approximation, that adds a separate term, often larger than the model error term. The bound here assumes you can evaluate the value function exactly.

It does not tell you the true model error. It tells you what happens given a per-step error you must estimate separately. The bound is only as useful as your estimate of ϵr\epsilon_r and WW.

The concrete next step is to estimate per-step model error empirically. Hold out real transitions, compare predicted next-state distributions to observed ones, and compute a distribution distance. Do the same for rewards. Plug those numbers into the geometric bound, and let the resulting accuracy ceiling choose your horizon instead of picking one by feel.

That is the whole point of the bound. It turns "the model is wrong" into "the model is wrong by this much per step, and here is what the horizon does with it."

Knowledge check

Final check

Finish the article by checking the ideas you just learned.

For γ = 0.9, ε_r = 0.02, K = 1, and W = 0.01, which model component contributes more to the one-step bound, and therefore has greater direct leverage if improved?
Question 1 of 2Comparison Reasoning

Focus: Compare reward and transition contributions to decide which model component offers greater leverage for reducing the stated one-step bound.

A learner uses the learned-model value estimate to improve a policy. Which conclusion is supported by this bound?
Question 2 of 2Single Choice

Focus: Distinguish the value-prediction guarantee from claims about policy quality or policy improvement.

References

  1. Learning to Combat Compounding-Error in Model-Based ...webdocs.cs.ualberta.ca
Practical resource

Build a stronger RL mental model

Use structured resources to connect equations, algorithms, and observable agent behavior.

Browse resources
Related sites

Continue across related AI foundations

Use LearnPyFast for Python foundations and LearnLLMFast for practical language-model and agent application concepts.

Python tutorialstutorial

LearnPyFast

Beginner-friendly Python tutorials, examples, and learning paths for practical programming foundations.

PythonProgrammingBeginners
Visit LearnPyFast
LLM tutorialstutorial

LearnLLMFast

Practical LLM tutorials for builders who want to understand prompting, workflows, agents, and AI applications.

LLMAIBuilders
Visit LearnLLMFast

Keep learning

Related reinforcement learning tutorials

Continue with nearby RL concepts, algorithms, and experiments that build on the same decision process.