Implicit-Euler Value Iteration: Long-Horizon Planning via Stable Integration of the Bellman Residual Flow

Nimrod De La Vega, Amir-massoud FarahmandNeurIPS 2026

TL;DR

Standard Value Iteration in reinforcement learning struggles with long-horizon planning for the exact same reason simple physics engines blow up when you make the time-step too large: numerical stiffness. By reframing Value Iteration as a continuous-time differential equation and applying implicit integration paired with a cheap, approximate "surrogate" model, the authors create an algorithm that plans drastically faster over long horizons. Best of all, even if the surrogate model is wildly inaccurate, the algorithm still converges to the exact optimal solution without getting stuck in biased habits.

What Problem Does This Paper Address?

In Reinforcement Learning (RL) and planning, figuring out how good a state is—computing its value function—usually relies on Value Iteration (VI). However, when planning far into the future (where the discount factor $\gamma$ approaches $1$, creating a long effective horizon $H = \frac{1}{1-\gamma}$), VI slows to a crawl. Its cost scales linearly with $H$, requiring a massive number of queries to the true environment or simulator $\mathcal{P}$, which is a dealbreaker in slow physics engines or real-world robotics.

Model-based RL tries to bypass this by learning a fast, approximate surrogate model $\hat{\mathcal{P}}$ and planning inside it instead. The catch? Models are never perfect. Planning purely in $\hat{\mathcal{P}}$ bakes model errors directly into your policy, leaving permanent asymptotic bias. Recent "operator-splitting" methods (like OS-VI) showed how to use $\hat{\mathcal{P}}$ to find the true value function of $\mathcal{P}$, but they have a fatal flaw: if the surrogate's error is too high, the math breaks and the algorithm diverges. The open question is: Can we use a cheap surrogate to accelerate planning toward the exact true value function, while guaranteeing stability no matter how terrible the surrogate is?

Methods

The authors bridge numerical analysis and RL through three core innovations:

  • Implicit-Euler Discretization: Standard VI is mathematically identical to taking a step of size $h=1$ using explicit (forward) Euler integration on a continuous-time Ordinary Differential Equation (ODE) called the Bellman residual flow: $\dot{V}(t) = TV(t) - V(t)$ (where $T$ is the Bellman operator). Explicit Euler becomes unstable if you increase $h$ to move faster. The authors switch to Implicit (backward) Euler, $V_{k+1} = V_k + h(TV_{k+1} - V_{k+1})$, which is unconditionally stable for any step size $h > 0$.
  • Iterated Defect Correction (IE-VI): Taking an exact implicit step is just as hard as solving the original problem. To make it cheap, Implicit-Euler Value Iteration (IE-VI) borrows iterated defect correction from numerical analysis. Each outer step runs $m$ inner rounds: it queries the expensive true model $\mathcal{P}$ just once to measure the local discrepancy between $\mathcal{P}$ and $\hat{\mathcal{P}}$, shifts the reward function using that error, and then solves a cheap planning subproblem inside the surrogate $\hat{\mathcal{P}}$ with a damped discount factor $\gamma_h = \frac{h\gamma}{1+h}$.
  • Adaptive IE-VI and IE-Dyna: Because choosing the best step size $h$ requires knowing how wrong your surrogate is, Adaptive IE-VI monitors the true Bellman residual online and shrinks $h$ automatically if progress stalls. Finally, IE-Dyna adapts this to sample-based tabular RL, replacing exact queries to $\mathcal{P}$ with a running stochastic average of sampled environment transitions.

Datasets

Instead of static datasets, the paper evaluates its algorithms on standard tabular RL environments and a physics simulation:

  • Tabular Benchmarks: A $6 \times 6$ stochastic Cliffwalk (primary testbed), plus Maze, FrozenLake, and Four Rooms. Surrogate error is systematically controlled by mixing the base transition probabilities with a uniform distribution via a corruption weight $\lambda \in [0, 1]$.
  • Physics Simulator: A $10,000$-state advection–diffusion simulator ($\gamma = 0.995$), where the true model $\mathcal{P}$ integrates $128$ fine microsteps and the cheap surrogate $\hat{\mathcal{P}}$ uses coarse approximations ($4$ to $32$ steps).

Key Insights and Ideas

  • Long-horizon RL is a "stiff" ODE problem: In numerical analysis, a system is stiff when fast-changing local errors force you to take tiny time steps, even though the global equilibrium takes forever to reach. Uniform value errors across states decay slowly at rate $1-\gamma$, while state-to-state differences oscillate rapidly. Viewing VI through this lens explains why VI struggles at long horizons—and unlocks decades of ODE solver tricks.
  • Prior state-of-the-art is just an unstable edge case: Taking IE-VI's step size $h \to \infty$ with $m=1$ correction round mathematically recovers Operator-Splitting VI (OS-VI). This explains why OS-VI diverges under high model error: taking an infinitely large implicit step only works if your approximate solver is already very accurate. Keeping $h$ finite acts as a shock absorber for bad models.
  • Polylogarithmic horizon scaling: When the surrogate's error is reasonably small, IE-VI breaks VI's linear $O(H)$ barrier, requiring only $O(\log^2 H)$ queries to the true model. And even with an arbitrarily awful surrogate, its worst-case query count stays within a $\log H$ factor of standard VI.

Key Results

  • Unmatched Robustness: On stochastic Cliffwalk ($\gamma = 0.99$), OS-VI oscillates and fails to converge once surrogate corruption hits $\lambda \ge 0.70$. Adaptive IE-VI detects the stalls, shrinks $h$, and converges across every corruption level up to $\lambda = 1.0$.
  • Sublinear Horizon Scaling: When evaluating a Cliffwalk policy across horizons $H \in [10, 640]$ (with empirical surrogates scaling with $H$), IE-VI's true-model queries grow sublinearly (log–log slope of $0.66$ vs. $1.01$ for VI), needing only $1,251$ median queries at $H=640$ compared to VI's $4,418$.
  • Real Wall-Clock Speedups: On the $10,000$-state advection–diffusion simulator, IE-VI achieves mean solver speedups of $8.25\times$ over VI with the cheapest $4$-step surrogate (and $6.04\times$ when including operator-preparation overhead).
  • Sample-Based RL: In Cliffwalk RL ($\gamma = 0.99, \lambda = 0.8$ corruption) after $80,000$ samples, IE-Dyna achieves a final mean policy-value error of $0.07\%$, decisively beating Q-Learning ($2.1\%$) and OS-Dyna ($5.1\%$).

Limitations and Future Work

  • Surrogate Compute Overhead: The theoretical query bounds treat planning inside $\hat{\mathcal{P}}$ as free. In practice, IE-VI only saves total compute if querying $\hat{\mathcal{P}}$ is substantially cheaper than querying $\mathcal{P}$ (for instance, at $\lambda=0.70$ on Cliffwalk, the surrogate sweep must cost less than $\sim 1\%$ of a true-model query to break even).
  • Open Theoretical Gaps: While the epoch-restarting version of Adaptive IE-VI has strict theoretical guarantees, the faster, single-trajectory "residual-stall" heuristic used in the main experiments lacks a formal termination bound. Similarly, IE-Dyna is currently backed by empirical results rather than stochastic convergence proofs.
  • Worst-Case Norms: The theory relies on worst-case supremum norms ($\|\cdot\|_\infty$) across the entire state space. Future work aims to relax this to state-visitation weighted norms (essential for function approximation and deep RL), prove convergence for IE-Dyna, and explore higher-order ODE integrators beyond backward Euler.

Summary updated

Abstract

Value Iteration (VI) can be interpreted as the explicit Euler discretization of the continuous-time Bellman residual flow $\dot V=\operatorname{BR}(V)$ with the unit step size. The linear dependence of its convergence behaviour on the effective horizon $1/(1-\gamma)$ reflects the step-size restriction that explicit integration method imposes on stiff dynamics. We propose Implicit-Euler Value Iteration (IE-VI), a planning algorithm based on the \emph{implicit} Euler discretization of the same flow. An exact implicit step is unconditionally contractive for any step size, but requires solving an expensive Bellman equation. IE-VI approximately solves this step by iterated defect correction: a short sequence of cheap planning rounds in an approximate model $\hat{\mathcal{P}} \approx \mathcal{P}$ (a simulator or a learned dynamics model), with the true model queried only once per round to refresh a residual correction term. For both Policy Evaluation and Control problems, with suitable choices of the step size and the number of planning rounds, IE-VI converges to the true value function of $\mathcal{P}$ for every surrogate $\hat{\mathcal{P}}$, however inaccurate. This avoids both the asymptotic bias of planning with $\hat{\mathcal{P}}$ alone and the small-error restrictions of prior fixed-point-preserving methods. For sufficiently accurate surrogates, true-model query complexity grows polylogarithmically with the effective horizon rather than linearly; for arbitrary surrogates, it stays within a logarithmic factor of VI's bound. We also introduce Adaptive IE-VI, which removes the need to know the model-error scale, and IE-Dyna, a model-based RL variant for tabular RL.
BibTeX
@inproceedings{vega2026implicit,
  author = {Nimrod De La Vega and Amir-massoud Farahmand},
  title = {{Implicit-Euler Value Iteration: Long-Horizon Planning via Stable Integration of the Bellman Residual Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YPZmHZA1Ut},
}
Figure