Investigating Compounding Prediction Errors in Learned Dynamics Models

Nathan O. Lambert, Kristofer S. J. Pister, Roberto CalandraarXiv 2022 · DOI

Abstract

Model-Based Reinforcement Learning (MBRL) relies on the recursive use of "one-step" dynamics models to plan for the future. This process is notoriously sensitive to "compounding error," where small initial inaccuracies grow into significant hallucinations over long horizons. This paper investigates the primary drivers of this phenomenon, concluding that the underlying physical stability of the system is the most critical factor, outweighing model capacity, noise, and data density.

Introduction

In MBRL, an agent uses a learned model to simulate potential future trajectories. Because these simulations are generated by feeding the model's own predictions back into itself, errors can accumulate. While it is widely assumed that these errors grow multiplicatively, there has been little systematic research into which components of a control problem—physics, noise, or training regime—actually drive this divergence. This study seeks to move beyond the "one-step" metric and understand the "multi-step" reality.

The Primacy of System Stability

The researchers found that the stability of the system's dynamics is the strongest predictor of compounding error. In systems that are physically stable, prediction errors do not grow indefinitely; instead, they tend to reach a steady-state plateau. This challenges the common narrative that all MBRL tasks suffer from inevitable exponential error growth.

Figure 1: In stable systems, the Mean Squared Error (MSE) often reaches a plateau, suggesting that compounding error is not a universal failure mode for all MBRL tasks.

Conversely, for unstable systems—such as a drone in a state of failure or a balancing robot—errors diverge rapidly. In these cases, the "one-step" error is amplified by the system's own physics, leading to exponential growth that quickly renders the model's predictions useless for planning. As the system poles approach instability, the prediction accuracy degrades rapidly regardless of the model architecture used.

Figure 6: Unstable dynamics lead to rapid exponential divergence in prediction error, where even high-capacity models fail to maintain accuracy over long horizons.

Debunking Common Assumptions

The study evaluated several other factors often blamed for compounding error:

  • The Data Density Myth: Surprisingly, increasing the training set size (e.g., from 10 to 100 trajectories) yielded diminishing returns. More data improves the baseline one-step accuracy but does not fundamentally change the divergence rate in unstable systems.
  • Dimensionality and Noise: Increasing the state-space dimension or adding process noise sets a higher "floor" for error but does not necessarily cause the model to diverge faster, provided the underlying dynamics remain regularized.
  • Closed-Loop vs. Open-Loop: Error increases significantly (approximately 10x) when the model must predict the actions of a controller (closed-loop) rather than being provided with ground-truth actions (open-loop).

Conclusion and Future Directions

The findings suggest that the standard "one-step" Mean Squared Error (MSE) metric is a poor proxy for a model's utility in multi-step planning. Because prediction accuracy is so tightly coupled with system stability, the researchers argue that the field should move toward "multi-step" training objectives or models that explicitly incorporate physical constraints, such as Lagrangian or Hamiltonian neural networks, to better handle unstable regimes.

Summary updated

BibTeX
@misc{lambert2022investigating,
  author = {Nathan O. Lambert and Kristofer S. J. Pister and Roberto Calandra},
  title = {{Investigating Compounding Prediction Errors in Learned Dynamics Models}},
  year = {2022},
  eprint = {2203.09637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.09637},
}
Figure