Abstract
A crucial challenge in reinforcement learning is to reduce the number of interactions with the environment that an agent requires to master a given task. Transfer learning proposes to address this issue by re-using knowledge from previously learned tasks. However, determining which source task qualifies as the most appropriate for knowledge extraction, as well as the choice regarding which algorithm components to transfer, represent severe obstacles to its application in reinforcement learning. The goal of this paper is to address these issues with modular multi-source transfer learning techniques. The proposed techniques automatically learn how to extract useful information from source tasks, regardless of the difference in state-action space and reward function. We support our claims with extensive and challenging cross-domain experiments for visual control.
Introduction
Deep Reinforcement Learning (RL) has achieved remarkable success in complex control tasks, yet it remains notoriously "data-hungry." Agents often require millions of environment interactions to achieve proficiency, a limitation that hinders real-world deployment where data collection is expensive or risky. Transfer Learning (TL)—the process of leveraging knowledge from a "source" task to accelerate learning on a "target" task—offers a potential solution.
However, applying TL to RL introduces two primary challenges:
- The Selection Problem: Identifying which source task is beneficial. Inappropriate selection can lead to "negative transfer," where the agent's performance is worse than learning from scratch.
- The Structural Problem: Differences in state-action spaces between environments often prevent direct parameter transfer.
This paper introduces a modular framework for Multi-Source Transfer Learning that automates task selection and handles structural discrepancies, significantly improving sample efficiency in model-based RL.
Modular Transfer Learning Framework
The proposed framework is built upon Dreamer, a state-of-the-art model-based RL algorithm. Dreamer operates by learning a "world model"—a latent-space simulation of the environment—consisting of several components: a visual encoder, a transition (dynamics) model, a reward predictor, and a value function (critic).
By decomposing the agent into these functional modules, the authors can apply targeted transfer strategies to different parts of the network, recognizing that some components (like vision) are more generalizable than others (like specific reward functions).
Key Innovations
The researchers introduce three core techniques to enable robust multi-source transfer:
1. Fractional Transfer Learning (FTL)
Rather than a binary choice between full parameter copying or random initialization, FTL initializes the target model using a weighted combination: $\theta_T \leftarrow \theta_{init} + \lambda \theta_s$. This provides a "soft hint" from the source task, allowing the network to leverage prior knowledge without being rigidly constrained by it. This is particularly effective for reward and value models, which are highly task-specific.
2. Universal Feature Space (UFS)
To bridge the gap between different environments, a shared visual encoder is trained across multiple tasks. This creates a compatible latent representation, ensuring that the "world model" can process observations from diverse sources (e.g., different robots or camera angles) into a unified feature space.
3. Meta-Model Transfer Learning (MMTL)
MMTL addresses the selection problem through an ensemble approach. When facing a new task, the agent incorporates predictions from multiple frozen source models.
Through gradient descent, the agent automatically learns to trust relevant source models while ignoring irrelevant ones. This mechanism allows the agent to autonomously navigate a library of previous tasks, extracting useful signals even when some sources are entirely unrelated to the current goal.
Experimental Evaluation
The methods were evaluated using the PyBullet physics engine on continuous control tasks, including locomotion (Ant, Hopper, Walker2D, HalfCheetah) and balancing (Inverted Pendulum). The experiments focused on cross-domain transfer, testing the agent's ability to learn a complex task (like HalfCheetah) by drawing from a mix of similar and dissimilar source tasks.
Results and Discussion
The proposed modular techniques outperformed the baseline Dreamer agent in 5 out of 6 environments.
- Sample Efficiency: In the "Hopper" task, the MMTL approach reached an average return of ~4025 within 1 million steps, nearly doubling the baseline's performance (~2076).
- Jumpstart Effect: Transferred agents exhibited significantly higher initial rewards, a "jumpstart" that is crucial for safety-critical applications.
- Robustness to Negative Transfer: Even when provided with irrelevant source tasks, the MMTL weighting mechanism successfully filtered out "bad advice," maintaining performance at or above the baseline level.
Key Insights
The study reveals that modular transfer is essential. While vision and dynamics models can often be transferred directly, reward and value models benefit most from the "soft" approach of fractional transfer. Catastrophic interference is a real risk when forcing a new task to fit an old reward structure.
Conclusion
This work demonstrates that multi-source transfer learning can be automated and made robust in deep RL. By combining modular architecture with fractional initialization and meta-model ensembles, agents can effectively "stand on the shoulders of giants," reusing knowledge from a diverse library of tasks to master new environments with unprecedented efficiency.
Summary updated