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

Transfer from Multiple MDPs

Alessandro Lazaric, Marcello Restelli

In the world of Reinforcement Learning (RL), data is gold, but it is often expensive to mine. Whether training a physical robot or an algorithmic trading agent, interacting with the real world to collect samples is time-consuming and potentially risky. One popular shortcut is transfer learning: using experience from "source" tasks to jumpstart learning on a "target" task.

However, there is a catch. If the source tasks are too different from the target, the agent might suffer from negative transfer, where the old data actually degrades performance. In this paper, Alessandro Lazaric and Marcello Restelli provide a rigorous theoretical framework and introduce new adaptive algorithms to navigate this "transfer tradeoff."

The Challenge of Multiple Source MDPs

Most RL algorithms are "sample-hungry," requiring thousands of interactions to learn an optimal policy. Transfer learning aims to reduce this sample complexity by reusing data. While existing work often focuses on transferring from a single source or relies on heuristics, this paper tackles a more complex scenario: Sample Transfer from Multiple Markov Decision Processes (MDPs).

Imagine having data from five different robot simulators (sources) to train a real robot (target). Some simulators might be highly accurate, while others are poorly calibrated. If all data is aggregated blindly, the inaccurate data might overwhelm the useful data. The core question is: How can we mathematically determine the optimal combination of source tasks to minimize error on the target task?

Proposed Methods

The authors build their approach on Fitted Q-Iteration (FQI), a standard batch RL algorithm, and introduce three distinct transfer strategies:

  1. All-Sample Transfer (AST): The naive baseline. It simply aggregates all samples from all source tasks and the target task into one monolithic training set.
  2. Best Average Transfer (BAT): An adaptive algorithm that assumes access to a generative model for the source tasks. It estimates the "transfer error"—the discrepancy between the target task's dynamics and a weighted average of the source tasks. It then optimizes these weights ($\lambda$) to find the "average MDP" that best mimics the target.
  3. Best Tradeoff Transfer (BTT): A practical heuristic for scenarios with a fixed, limited number of samples from each source. It uses a regularization term to balance the benefit of having more samples (reducing variance) against the risk of using dissimilar samples (increasing bias).

Crucially, the paper provides a finite-sample analysis, offering mathematical bounds on the error. This allows researchers to quantify exactly how the number of samples and the "distance" between tasks affect final performance.

Key Insights

  • The Power of the "Average MDP": A surprising insight is that the target task does not need to perfectly match any single source task. As long as a weighted combination of source tasks approximates the target, transfer can be highly effective.
  • The Transfer Tradeoff: There is a fundamental tension between quantity and quality. Adding more source samples reduces the estimation error (model variance) but increases the transfer error (bias introduced by using data from a different distribution).
  • Function Space Matters: The similarity between tasks is not just about their raw dynamics; it is about how those dynamics interact with the chosen function approximator (e.g., linear features). If the model cannot distinguish between two tasks in its feature space, the effective transfer error might be zero.

Experimental Results

The researchers evaluated their algorithms using a Continuous Chain Walk problem, a standard benchmark for testing continuous state spaces and stochastic transitions.

Avoiding Negative Transfer and Boosting Efficiency

In experiments where source tasks differed significantly from the target, the naive AST method failed completely, suffering from severe negative transfer. Conversely, the BAT algorithm successfully identified and filtered out the "bad" sources, maintaining high performance. Furthermore, when target samples were scarce, BAT significantly outperformed single-task learning without transfer, effectively filling in the gaps with relevant source data.

Performance comparison showing BAT avoiding negative transfer compared to AST.

Dynamic Adaptation

A fascinating property of the BAT algorithm is its ability to change its source preferences over time. As the algorithm iterates, it dynamically adjusts the weights assigned to different source tasks. For instance, it might rely on one combination of sources to learn the reward function in early iterations, and shift to a different combination to refine transition dynamics later.

Evolution of source task weights ($\lambda$) over iterations in the BAT algorithm.

Limitations and Future Work

While promising, the proposed methods have limitations:

  • Generative Model Requirement: BAT requires a generative model (the ability to sample next states given any state-action pair) for the source tasks to estimate transfer error. In many real-world "offline RL" scenarios, only fixed data logs are available.
  • Heuristic Nature of BTT: While BTT performs well empirically, it lacks the rigorous theoretical guarantees provided for AST and BAT.
  • Computational Complexity: Optimizing the source weights at every FQI iteration adds computational overhead, which scales with the number of source tasks.

Future work could involve extending these theoretical proofs to non-linear function approximators, such as deep neural networks, and developing variants of BAT that operate strictly on offline, fixed-dataset regimes.

Summary updated

BibTeX
@inproceedings{lazaric2011transfer,
  author = {Alessandro Lazaric and Marcello Restelli},
  title = {{Transfer from Multiple MDPs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2011},
  url = {https://openreview.net/forum?id=HJ-wwvWdZS},
}
Figure