This paper introduces a robust framework for transfer learning in Reinforcement Learning (RL) that prevents "negative transfer" by intelligently weighting data from source tasks.
TL;DR
The authors propose Importance Weighted Fitted Q-Iteration (IWFQI), an algorithm that speeds up reinforcement learning by reusing experience samples from related tasks. By using Gaussian Processes to estimate the "relevance" of each sample, the method automatically prioritizes useful data and ignores misleading information, even when the physics or rewards of the tasks differ significantly.
The Challenge of Negative Transfer
Reinforcement Learning is notoriously data-hungry. In fields like robotics, collecting enough samples to learn a task from scratch is often too expensive or time-consuming. While we can "transfer" data from simulators or previous experiments (source tasks) to a new problem (the target task), there is a major catch: if the source and target tasks are too different, the transferred data can actually confuse the agent. This leads to worse performance than if it had learned from scratch—a phenomenon known as negative transfer.
Existing methods typically try to select the "best" source tasks or assume that the tasks share the same physics (dynamics). This paper addresses the gap where tasks might differ in both their physics and their goals (rewards), requiring a more granular way to decide which specific samples are worth keeping.
Importance Weighted Fitted Q-Iteration (IWFQI)
The core contribution is IWFQI, which builds on the standard Fitted Q-Iteration (FQI) batch RL algorithm but adds a sophisticated weighting mechanism:
- Decoupled Weighting: A sample $(s, a, s', r)$ consists of two parts: the reward ($r$) and the transition physics ($s'$). IWFQI computes two separate importance weights for every sample—one for the reward model and one for the transition model. This allows the agent to reuse the physics data from a source task even if the goals are completely different.
- Gaussian Process (GP) Estimation: Since the true transition and reward probabilities are unknown, the authors use Gaussian Processes to model them. GPs provide not just a prediction, but also a measure of uncertainty.
- Expected Weights: Instead of using a simple ratio of probabilities (which can be unstable), they derive a closed-form expression for the expected importance weight under the GP posterior. This makes the algorithm much more robust to noise and estimation errors.
- Theoretical Analysis: The paper provides a finite-sample analysis, proving that the algorithm's error decreases as more samples are collected and providing bounds on how much the "distribution shift" between tasks affects the final policy.
Experimental Setup
The authors evaluated IWFQI on three distinct environments:
- Puddle World: A 2D navigation task where the agent must reach a goal while avoiding "puddles." They tested versions where physics are identical across tasks, and harder versions where puddles slow the agent down (changing the dynamics).
- Acrobot: A classic control problem involving a two-link pendulum. Source tasks included robots with different link lengths/masses and different objectives (e.g., swinging up vs. spinning at a constant speed).
- Water Reservoir Control: A real-world inspired problem based on 30 years of historical data from six different reservoirs. The goal is to manage water release to meet demand while preventing floods.
Key Results
IWFQI demonstrated significant improvements in sample efficiency and robustness across all tested domains.
- Robustness to Negative Transfer: In the Acrobot experiments, when transferring from a "constant-spin" task to a "swing-up" task, IWFQI correctly discarded the misleading reward samples while keeping the useful transition samples. Competing methods (like RBT) suffered from negative transfer in the early stages.
- Superior Jump-start: In Puddle World, IWFQI achieved optimal performance in just 20 episodes, whereas the standard FQI (learning from scratch) was nowhere near a solution.
- Real-World Efficacy: In the Water Reservoir task, IWFQI immediately outperformed a hand-coded expert policy and reached near-optimal performance much faster than other state-of-the-art transfer methods.
Key Insights
- Don't Throw the Baby Out with the Bathwater: Traditional transfer methods often discard an entire source task if it seems "dissimilar." By decoupling rewards and transitions, IWFQI can realize that a task with a different goal still provides valuable data about how the world's physics work.
- Uncertainty is a Feature: By using the variance provided by Gaussian Processes, the algorithm can be "cautious." If the GP is uncertain about a source sample's relevance, it can down-weight it to avoid bias.
- Automatic Relevance Detection: The algorithm doesn't require a human to specify which tasks are related. The importance weights naturally go to zero for samples that are unlikely to occur in the target task.
Limitations and Future Work
- Computational Complexity: Using Gaussian Processes can be computationally expensive as the number of samples grows, though the authors suggest this is manageable for the batch RL settings they target.
- Structural Similarity: The current method treats each sample independently. Future work could explore "structural" similarities—learning a shared underlying model for a whole family of tasks to make the weight estimation even more accurate.
- State-Action Space: The method assumes source and target tasks share the same state and action spaces, though it can be combined with existing "inter-task mapping" techniques to relax this constraint.
Summary updated