Transfer learning in Deep Reinforcement Learning (DRL) aims to leverage knowledge from a source task to accelerate learning in a target task. However, this process often faces significant computational overhead and the risk of "negative transfer," where mismatched source knowledge hinders performance. Presented at AAAI-25, ModelDiff introduces a framework that utilizes symbolic models to calculate task differences, providing a provable lower bound for the target value function that ensures transfer is always beneficial or neutral.
Addressing the Challenges of Transfer Learning
DRL is notoriously data-intensive. While Transfer Learning (TL) offers a solution, existing methods often struggle with:
- Computational Complexity: Determining the relationship between complex tasks can be as costly as learning from scratch.
- Negative Transfer: Inappropriate source policies can lead to worse performance than starting with a tabula rasa agent.
ModelDiff addresses these by leveraging "white-box" models (simulators) common in engineering and robotics.
Methodology: Symbolic Subtraction and XADDs
The core of ModelDiff is the use of Symbolic Dynamic Programming (SDP) and Extended Algebraic Decision Diagrams (XADDs). The framework focuses on the Difference Reward ($R_d$), defined as $R_d = R_t - R_s$. In many practical scenarios, while $R_s$ and $R_t$ might be complex, their difference is structurally simple.
The ModelDiff workflow involves:
- Symbolic Subtraction: Calculating $R_d$ using XADDs, which represent functions as compact, searchable trees.
- Difference MDP: Solving a simplified MDP based on $R_d$ to find a "Difference Q-value" ($Q_d$).
- Provable Lower Bound: The authors demonstrate that $Q_s + Q_d$ serves as a mathematical lower bound for the optimal target Q-value ($Q^*_t$).
- MD-DQN Integration: This lower bound is integrated into a Deep Q-Network (DQN). Target values are clipped to never fall below this bound, providing model-informed guidance during early training.
Key Insights: The Simplicity of "Diff"
A central insight is that the change in a reward function is often analytically simpler than the function itself. For instance, in a power grid, while the overall reward surface is complex, a change in fuel cost for one generator results in a simple step-function difference.
Experimental Evaluation
ModelDiff was evaluated on three benchmark domains implemented in pyRDDLGym:
- Reservoir Management: Stochastic water level control in a two-reservoir system.
- Pick-and-Place: 2D navigation and delivery task.
- PowerGen: Cooperative power unit commitment problem.
Results
- Accelerated Convergence: In positive transfer scenarios, MD-DQN reached peak performance significantly faster than vanilla DQN and Probabilistic Policy Reuse (PPR). In the Pick-and-Place task, it started with a massive performance lead from episode zero.
- Immunity to Negative Transfer: When faced with adversarial source policies, traditional methods failed. MD-DQN maintained performance equal to a vanilla DQN, effectively filtering out harmful guidance.
- Efficiency: Even a short lookahead in the difference model provided sufficient guidance to boost learning.
Conclusion and Future Work
ModelDiff demonstrates that model-awareness can be a powerful tool in DRL. By deriving symbolic bounds, it provides a safety net against negative transfer while accelerating learning. Future work will explore extending this logic to scenarios where transition dynamics also change between tasks.
Summary updated