TL;DR
When reinforcement learning agents tackle a sequence of tasks, they don't just struggle with forgetting old skills—even agents equipped with internal "world models" stumble badly right when a new task begins. This paper introduces HERD, an algorithm that fixes this awkward transition phase by dynamically calibrating its reward expectations, adjusting how far ahead it plans based on its own confidence, and selectively replaying only its best historical memories. The result is an agent that adapts to new tasks nearly twice as fast while actually improving its performance on older tasks.
What Problem Does This Paper Address?
In Continual Reinforcement Learning (CRL), an agent learns tasks one after another without losing its grip on earlier ones—a tug-of-war known as the stability-plasticity dilemma. Using world models (internal simulators that learn the physics or dynamics of an environment so the agent can plan ahead) seems like a natural fit here: even if the goal changes, gravity and friction usually stay the same.
However, sharing a physics engine isn't enough. The authors show that existing world-model agents suffer from sluggish adaptation whenever a task switches, driven by three bottlenecks:
- Reward Miscalibration: When the task changes, the rules for getting points shift abruptly. An uncalibrated reward predictor hallucinates good outcomes for old behaviors, misleading the planner into generating garbage trajectories.
- Rigid Planning Horizons: Planning a fixed number of steps ahead ignores model reliability. Right after a task switch, dynamics errors spike and compound rapidly over long rollouts; later, once the model stabilizes, a short fixed horizon leaves long-range planning capacity on the table.
- Quality-Agnostic Replay: Replaying all past memories equally dilutes training with clumsy early attempts, interfering with retained skills.
Methods
Built on top of the standard TD-MPC2 latent world model (which plans in compressed representation space using Model Predictive Path Integral, or MPPI, control), HERD (Horizon-adaptive Elite Replay with reward Disagreement) introduces three targeted mechanisms split across how to learn and what to learn:
- Uncertainty-aware Reward Planning (URP) (New - How to learn): Instead of a single reward predictor, HERD uses an ensemble of $M$ predictors. Where they disagree (high standard deviation), the model is flying blind. During training, HERD upweights these high-uncertainty samples (paired with periodic parameter resets) to fast-track calibration. During planning, it adds this uncertainty as an optimistic exploration bonus, nudging the agent to investigate unfamiliar territory.
- Adaptive Planning Horizon (New - How to learn): HERD tracks a smoothed moving average of its multi-step dynamics prediction error. When prediction error spikes at a task boundary, it reels in the planning horizon ($H_{\text{eff}}$) to prevent compounding hallucinations, extending it back out as the model regains its footing.
- Elite Experience Replay (New - What to learn): Rather than uniform replay, past episodes are stratified into four tiers based on return percentiles. Crucially, the top tier strictly requires binary task success—preventing "reward-hacking" failures from masquerading as elite demonstrations.
Datasets
No new datasets are introduced, though the authors adopt Steps to Threshold (STT)—the fraction of a task's training budget needed to hit a 50% success rate—to explicitly measure adaptation speed alongside standard continual learning benchmarks:
- Continual World (CW10): A sequence of 10 robotic manipulation tasks.
- Continual Bench (CB): Continuous control tasks with high inter-task dynamics overlap.
- DM Control (DMC Cross): Continuous control sequences spanning diverse locomotion morphologies (high dynamics heterogeneity).
Key Insights and Ideas
- Planning quality drives plasticity: Ablations reveal that removing URP and Adaptive Horizon drops CW10 success rates from 0.95 to 0.70 and nearly doubles adaptation time (STT jumps from 0.26 to 0.43). Fixing how the planner handles task transitions accounts for the lion's share of performance gains.
- High-return $\neq$ task success: Gating the highest replay tier on actual task completion prevents high-scoring near-misses from polluting memory consolidation.
- Task-agnostic resilience: Because HERD triggers horizon changes and reward calibration purely from internal error and disagreement signals—without needing explicit task IDs—it remains remarkably stable even when the order of tasks is shuffled.
Key Results
Across CW10, Continual Bench, and DMC Cross, HERD outperforms regularization (EWC, MAS, VCL), parameter isolation (PackNet, LoRA), and naive world-model baselines (Continual TD-MPC2):
- Average Performance: On CW10, HERD achieves a 0.95 mean success rate (vs. 0.77 for EWC and 0.60 for Continual TD-MPC2). It also leads on CB (0.83) and the morphologically diverse DMC Cross (0.62).
- Backward Transfer (Negative Forgetting): HERD achieves negative forgetting across all benchmarks (-0.06 on CW10, -0.29 on CB, -0.02 on DMC Cross), meaning learning later tasks actively improves performance on earlier ones.
- Fastest Adaptation: On CW10, HERD reaches the 50% success threshold in just 26% of the training budget (STT = 0.26), compared to 44% for Continual TD-MPC2 and 48% for EWC, even solving hard tasks (like
shelf-place) where baselines flatline near zero.
Limitations and Future Work
- Ensemble Overhead: Compute and memory costs scale linearly with the number of reward predictors ($M$) in the ensemble; lighter-weight uncertainty estimators could improve scalability.
- Structured Task Streams: Evaluations assume discrete task boundaries with fixed training budgets per task. Extending HERD to variable-duration tasks or seamless, open-ended continual streams remains an open direction.
Summary updated