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

Sequential Transfer in Reinforcement Learning with a Generative Model

Andrea Tirinzoni, Riccardo Poiani, Marcello Restelli

Introduction

In lifelong Reinforcement Learning (RL), an agent faces a sequence of related tasks. The standard approach is either to learn each task from scratch—which is notoriously slow—or to "jumpstart" the process by reusing a policy or value function from a previous task.

However, most existing transfer methods fail to actively seek information to identify the current task. Furthermore, they typically assume tasks are drawn independently from a fixed distribution. In the real world, tasks often follow a logical sequence (e.g., a self-driving car faces "heavy traffic" followed by "moderate traffic," not a random shuffle of all possible conditions).

This paper introduces a framework for Sequential Transfer Learning that significantly speeds up learning by actively identifying the current task from a set of known possibilities. By modeling task transitions as a Hidden Markov Model (HMM) and using a generative model to query the most informative state-action pairs, the authors provide an algorithm that provably reduces sample complexity compared to learning from scratch or using standard transfer methods.

Methodology

The authors tackle the challenge of rapid task identification and sequential exploitation using two main algorithmic components:

  1. PTUM (Policy Transfer from Uncertain Models): This active elimination algorithm is designed to quickly identify the current task. Given a set of approximate models of potential tasks, PTUM queries a generative model (a simulator where any state-action pair can be sampled) to find the most "informative" transitions. Instead of chasing immediate rewards, it seeks transitions that produce vastly different outcomes across candidate models. This allows the agent to quickly rule out incorrect tasks until only an $\epsilon$-optimal policy remains.
  2. Sequential Transfer via HMMs: The sequence of tasks is modeled as a Hidden Markov Model. The authors use spectral methods (specifically tensor decomposition) to learn the task-transition matrix and individual task models from experience.

By combining these components, the agent uses the learned transition matrix to predict which tasks are likely to occur next. This "prunes" the search space for PTUM, exploiting temporal dynamics to further reduce the number of samples needed for identification.

Experiments and Key Results

The framework was evaluated on two simulated environments to test both active identification and sequential transfer capabilities.

Faster Convergence in Grid-World

The first environment, a 4-rooms Grid-World ($12 \times 12$ grid), was used to compare active identification against "jumpstart" methods, with tasks varying by goal and door locations.

PTUM successfully identified the optimal policy in a fraction of the episodes required by RMAX (no transfer) or MaxQInit (jumpstart transfer). The authors also demonstrated that "Passive Elimination" (PEL) can be slow if distinguishing between tasks requires specific, non-rewarding actions. PTUM's active querying solved these edge cases much faster.

PTUM achieves optimal expected return in significantly fewer episodes compared to baselines like RMAX and MaxQInit.

Sequential Gains in Object-World

The second environment, Object-World ($5 \times 5$ grid with randomized item values), tested the sequential transfer setting. Item values were randomized according to a sparse transition matrix to simulate temporal correlations.

The "Sequential" version of the algorithm showed a steady decay in sample complexity as it learned the task transitions. It eventually required fewer samples than a "Static" transfer baseline that treated tasks as independent.

Sequential transfer demonstrates a steady decay in sample complexity over tasks compared to a static baseline.

Key Insights

  • Information vs. Reward: The most informative actions for identifying a task are often not the actions that yield the highest reward. PTUM succeeds because it prioritizes "discrimination" over "exploitation" during the identification phase.
  • The "Gap" Matters More than $\epsilon$: Standard RL sample complexity is heavily tied to the desired accuracy ($\epsilon$). In this transfer setting, complexity is instead dominated by the "gap" (distance) between candidate models. If tasks are distinct, identification is incredibly fast.
  • Temporal Pruning: By treating the task sequence as a Markov Chain, the agent can discard highly unlikely tasks before taking a single sample in a new environment, eventually surpassing an oracle that knows the models but ignores the sequence.

Limitations and Future Work

While powerful, the current theory relies on having a generative model (the ability to reset the simulator to any state-action pair), which is not always available in real-world robotics. Additionally, the framework assumes a finite number of discrete tasks, leaving continuous task spaces as an open challenge. Finally, the theoretical bounds involve constants related to spectral methods that are difficult to calculate in practice, requiring hyperparameter tuning.

Future directions suggested by the authors include moving toward "online" settings without generative models, potentially by building "exploration MDPs" that reward the agent for visiting informative states.

Summary updated

BibTeX
@inproceedings{tirinzoni2020sequential,
  author = {Andrea Tirinzoni and Riccardo Poiani and Marcello Restelli},
  title = {{Sequential Transfer in Reinforcement Learning with a Generative Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure