Minimal Value-Equivalent Partial Models for Scalable and Robust Planning in Lifelong Reinforcement Learning

Safa Alver, Doina Precup

In lifelong reinforcement learning (LRL), agents are expected to operate continuously in complex, evolving environments. A common practice in model-based reinforcement learning is to adopt a "model everything" philosophy, where the agent attempts to learn a transition function that predicts the next state of the entire world. While this works in simple grid worlds, trying to model every detail of a vast, dynamic environment is a recipe for inefficiency and failure.

This paper introduces minimal value-equivalent partial models—models that intentionally ignore irrelevant environmental "noise" and focus strictly on what is needed to calculate optimal values. By stripping away the fluff, these models achieve faster planning, better sample efficiency, and remarkable robustness to distribution shifts and compounding errors.

The Problem: The Flaw of "Model Everything"

When an agent tries to model every aspect of its environment, it encounters two major roadblocks in LRL scenarios:

  1. Scalability: Modeling every pixel or feature is computationally expensive and requires massive amounts of data. Much of this computational power is wasted on predicting dynamics that have no bearing on the agent's goals.
  2. Robustness: If an agent learns to rely on irrelevant features that happen to correlate with rewards in one scenario, it will fail when those irrelevant features change (a phenomenon known as distribution shift). Furthermore, small errors in a complex, overly detailed model compound quickly during long-term planning.
Squirrel's World environment illustrating relevant task features versus irrelevant background dynamics.

Consider a custom illustrative environment called Squirrel’s World. Here, a squirrel must navigate to a nut while avoiding a hawk. The environment includes task-critical features (the squirrel, the nut, the hawk, rocks) but also irrelevant dynamics (moving clouds and wind directions). A standard model-based agent wastes capacity trying to predict the wind and clouds, whereas a minimal model focuses only on the path to the nut and the location of the predator.

Methods: Achieving Minimal Models

The authors argue for building "partial models" that are Value-Equivalent (VE). These models might not be a perfect replica of the world, but they contain just enough information to derive the same optimal policy as the true environment. To implement this in deep learning architectures, the paper proposes two key inductive biases:

  • Value-Only Encoder Shaping: In a standard architecture, both the reward/transition model and the value estimator provide gradients to the state encoder. The authors suggest a "No Gradient Flow" path from the model to the encoder. This forces the encoder to extract only the features that the value estimator finds useful, preventing the transition model from forcing the encoder to represent irrelevant environmental details.
  • Multi-Environment Training: The agent is trained across a variety of environments where the "relevant" features (e.g., the agent's position and the goal) stay the same, but "irrelevant" features (e.g., obstacle colors or background motions) change. This encourages the agent to ignore the noise.
Variations of the Two Rooms Dynamic Obstacles (2RDO) environment used for multi-environment training.

Empirical Validation and Key Results

The authors evaluated their approach across three distinct types of environments: Squirrel’s World, Two Rooms Dynamic Obstacles (2RDO, built on the MiniGrid framework), and the Procgen Benchmark (a suite of procedurally generated environments designed to test generalization).

The "Less is More" Paradox

A core theoretical insight of the paper is that a model that is technically "wrong" about the world—by ignoring 90% of its features—is actually better for planning, provided those 90% do not affect the optimal value. The authors provide a theoretical bound showing that planning loss is directly tied to the size of the feature space. Smaller feature spaces lead to tighter bounds and more reliable planning.

Scalability and Compounding Errors

In Squirrel's World, minimal VE models achieved zero value loss while significantly reducing planning time and sample complexity compared to "full" models. Furthermore, when agents plan by unrolling their models into the future, small errors typically accumulate. When unrolling plans for 80 steps, the performance of regular agents plummeted due to this "imagination gap." The minimal VE agent's performance remained stable, proving it was only modeling the stable core of the task.

Robustness to Distribution Shift

In the 2RDO experiments, a standard agent completely failed when moved to a version of the environment with different obstacle types (e.g., changing from blue circles to red rectangles). Because the minimal agent was trained to ignore irrelevant features like obstacle color and shape, it maintained near-optimal performance, demonstrating effective zero-shot transfer. This success translated to complex, high-dimensional visual tasks as well, with the minimal approach consistently outperforming standard agents across multiple Procgen games.

Limitations and Future Directions

While promising, the approach has limitations. The authors acknowledge that their methods for learning these models (like blocking gradient flow) are heuristics. More principled representation learning techniques may be needed to automatically identify relevant features without relying on architectural tricks.

Additionally, the current study focuses on environments with a single task. In true lifelong learning, an agent faces a sequence of different tasks. Future work must explore how an agent can gradually build a library of minimal partial models for different tasks, and how to discover what is "minimal" in completely unknown environments without a pre-defined reward signal.

Summary updated

BibTeX
@inproceedings{alver2023minimal,
  author = {Safa Alver and Doina Precup},
  title = {{Minimal Value-Equivalent Partial Models for Scalable and Robust Planning in Lifelong Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=m1f8XUs-RQP},
}
Figure