ModelDiff: Symbolic Dynamic Programming for Model-Aware Policy Transfer in Deep Q-Learning

Xiaotian Liu, Jihwan Jeong, Ayal Taitler, Michael Gimelfarb, Scott Sanner

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:

  1. Computational Complexity: Determining the relationship between complex tasks can be as costly as learning from scratch.
  2. 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.

XADD representations of the source, target, and difference reward functions, illustrating the structural simplification achieved through symbolic subtraction.

The ModelDiff workflow involves:

  1. Symbolic Subtraction: Calculating $R_d$ using XADDs, which represent functions as compact, searchable trees.
  2. Difference MDP: Solving a simplified MDP based on $R_d$ to find a "Difference Q-value" ($Q_d$).
  3. 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$).
  4. 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.

The "Diff" reward surface ($R_d$) for the Reservoir Management domain, showing a significantly simpler structure than the original source or target reward surfaces.

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

BibTeX
@inproceedings{liu2025modeldiff,
  author = {Xiaotian Liu and Jihwan Jeong and Ayal Taitler and Michael Gimelfarb and Scott Sanner},
  title = {{ModelDiff: Symbolic Dynamic Programming for Model-Aware Policy Transfer in Deep Q-Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i25.34864},
}
Figure