NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DreamSmooth: Improving Model-based Reinforcement Learning via Reward Smoothing

Vint Lee, Pieter Abbeel, Youngwoon Lee

Model-based reinforcement learning (MBRL) has shown immense promise by allowing agents to learn complex behaviors sample-efficiently. By learning a "world model," an agent can simulate its environment and plan actions by generating imaginary trajectories. However, a surprising bottleneck often cripples this process: reward prediction.

In environments with sparse rewards, predicting the exact moment a reward occurs is incredibly challenging. Motivated by the human ability to learn from rough estimates rather than exact microsecond precision, researchers introduce DreamSmooth, a simple yet highly effective modification that replaces exact reward prediction with temporally smoothed reward prediction.

The Problem: The "Off-by-One" Penalty

A critical component of any world model is the reward model, which predicts the reward for a given state. In many realistic tasks, rewards are sparse. For instance, an agent might only receive a point at the exact fraction of a second a block drops into a bin or a rock falls into a truck.

In sparse-reward tasks, the agent receives a reward at only a single, specific timestep, making exact prediction highly challenging.

For a model learning from high-dimensional pixel inputs, predicting that exact timestep is daunting. Standard loss functions, such as Mean Squared Error (MSE), heavily penalize predictions that are even one frame off. Faced with this strict "off-by-one" penalty, the reward model often defaults to predicting zero reward everywhere to minimize its overall loss. If the world model cannot imagine receiving a reward, the agent cannot plan a trajectory to achieve one, leading to catastrophic failure in task learning.

The Solution: Temporal Reward Smoothing

DreamSmooth addresses this bottleneck by softening the learning objective. Instead of training the reward model on the raw, instantaneous reward $r_t$, DreamSmooth trains it on a smoothed version, $\tilde{r}_t$. This gives the model a wider "target" to hit, conveying a general sense of "good things happen around here."

The paper explores three temporal smoothing functions applied to the replay buffer during training:

  1. Gaussian Smoothing: A symmetric "blur" that spreads the reward before and after the event.
  2. Uniform Smoothing: Spreading the reward equally over a fixed time window.
  3. Exponential Moving Average (EMA): An asymmetric smoothing technique that only distributes the reward backward in time (looking at past states).

Crucially, the agent only sees these smoothed rewards during training. This makes the objective much easier to converge upon without altering the underlying MBRL algorithm.

Key Insights and Theoretical Grounding

  • Reward Smoothing as Reward Shaping: The authors provide theoretical proof demonstrating that certain types of smoothing, specifically EMA, are mathematically equivalent to reward shaping. This guarantees that an optimal policy learned under the smoothed rewards remains optimal under the original, sparse rewards.
  • The Importance of Causality: In complex environments like the Minecraft-inspired Crafter, the authors discovered that symmetric smoothing (Gaussian or Uniform) actually degraded performance. Because symmetric kernels spread rewards backward in time, they force the model to anticipate a reward before the causal event occurs. This leads to "false positives" that confuse the agent. Asymmetric smoothing (EMA) solves this by strictly adhering to causality.
  • Plug-and-Play Compatibility: DreamSmooth is algorithm-agnostic. The researchers demonstrated significant performance gains by plugging it into established MBRL frameworks like DreamerV3, TD-MPC, and MBPO.

Experimental Results

DreamSmooth was evaluated across a diverse suite of environments, from robotic manipulation to stochastic physics simulations.

Ground truth vs. predicted rewards across four complex environments. DreamSmooth enables accurate tracking of sparse reward signals.
  • RoboDesk & Shadow Hand: In tasks requiring sequences of actions (e.g., pushing a block, then pressing a button), vanilla DreamerV3 often fails after the first sub-task because it cannot predict the subsequent sparse reward. DreamSmooth consistently solves the entire sequence.
  • Crafter: In this 2D survival game featuring 22 distinct sparse achievements, DreamSmooth significantly outperformed the state-of-the-art DreamerV3 baseline. It successfully predicted 15 out of 19 achievement rewards, whereas the baseline missed almost all of them.
  • AGX Earthmoving: In a highly stochastic simulation of a wheel loader, DreamSmooth enabled the agent to learn highly efficient dumping behaviors, nearly doubling the number of rocks successfully processed.
  • Universality: On standard dense-reward benchmarks like the DeepMind Control Suite (DMC) and Atari 100K, DreamSmooth matched the performance of unmodified algorithms. This proves it is a safe, robust default that dramatically improves hard tasks without degrading performance on easier ones.

Limitations and Future Work

While powerful, reward smoothing is not without limitations. Widening the reward signal can sometimes cause the model to "hallucinate" rewards in states that visually resemble successful states but do not actually complete the task (false positives). Additionally, the approach requires some hyperparameter tuning, specifically regarding the smoothing window size ($L$) and the choice between symmetric and asymmetric kernels based on the environment's dynamics.

Future work may explore adaptive smoothing techniques that automatically adjust the "blur" based on the model's uncertainty or the specific phase of the task, further refining this elegant solution to one of MBRL's most persistent bottlenecks.

Summary updated

BibTeX
@inproceedings{lee2024dreamsmooth,
  author = {Vint Lee and Pieter Abbeel and Youngwoon Lee},
  title = {{DreamSmooth: Improving Model-based Reinforcement Learning via Reward Smoothing}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=GruDNzQ4ux},
}
Figure