Transfer Q-Learning with Composite MDP Structures

Jinhang Chai, Elynn Chen, Lin Yang

Reinforcement Learning (RL) is notoriously sample-inefficient, particularly in high-dimensional environments. Transfer learning—leveraging knowledge from a "source" task to accelerate learning in a "target" task—offers a promising solution. However, the theoretical understanding of why and how transfer RL works has historically lagged behind its empirical success.

Most existing theoretical models for transfer RL are overly rigid. They typically assume that tasks are either entirely identical in their dynamics (sharing a low-rank representation) or that they differ only in their reward structures. In reality, related tasks often share a foundational "physics engine" while exhibiting unique, localized quirks. For example, an autonomous vehicle's core dynamics (gravity, friction, basic road rules) remain consistent across different cities, but specific traffic patterns or local weather conditions represent sparse deviations from that core.

This paper bridges the gap between theory and practice by introducing a novel mathematical framework to model this "shared core plus unique variations" structure, proving that an algorithm can exploit it to learn exponentially faster in massive, high-dimensional spaces.

The Composite MDP Framework

To capture realistic transfer scenarios, the authors propose the Composite Markov Decision Process (MDP) model. They define the transition probability matrix $M^*$ of an environment as the sum of two distinct components:

$$M^* = L^* + S^*$$

  • $L^*$ (Low-Rank Component): Represents the core, foundational dynamics shared across all related tasks.
  • $S^*$ (Sparse Component): Captures the task-specific deviations and unique environmental quirks.

By explicitly isolating these components, the framework relaxes the restrictive assumption of purely low-rank transition models, allowing for a more nuanced and realistic representation of task relationships.

UCB-TQL: A Two-Phase Transfer Strategy

To solve Composite MDPs, the authors introduce UCB-TQL (Upper Confidence Bound Transfer Q-Learning). This algorithm operates in two primary phases to maximize sample efficiency:

  1. Source Task Learning: The algorithm first uses trajectories from a source task to estimate both the shared low-rank structure ($L^*$) and the source's specific sparse component ($S^{(0)}$). This is achieved using a hard-constrained least-squares objective rooted in matrix recovery theory.
  2. Target Task Transfer: When transitioning to the target task, UCB-TQL does not start from scratch. Instead, it constructs a fine-grained confidence region. Rather than attempting to relearn the entire environment, it focuses solely on estimating the sparsity difference ($D = S^{(1)} - S^{(0)}$) between the two tasks.

Crucially, UCB-TQL employs the Optimism-in-the-Face-of-Uncertainty principle. It maintains an Upper Confidence Bound (UCB) on Q-values, perfectly balancing the need to explore the new task's unique quirks with the ability to exploit the shared foundational knowledge.

Key Theoretical Insights and Results

Because this is a purely theoretical contribution, the paper relies on rigorous mathematical proofs and regret analysis rather than empirical datasets. The analysis yields several profound insights:

  • Dimension-Independent Regret: The most striking result is that the regret (the "cost" of learning) can be made entirely independent of the ambient dimension $d$ (the size of the feature space). The authors prove a regret bound of $\tilde{\mathcal{O}}(\sqrt{eH^5N})$, where $N$ is the number of target task trajectories, $H$ is the time horizon, and $e$ is the sparsity of the difference between tasks. Even if the environment has millions of dimensions, the learner only pays a penalty proportional to the sparse differences ($\sqrt{e}$).
  • The Phase Transition Phenomenon: The analysis reveals a phase transition: if the source task provides sufficient data ($N_0 \approx N^2$), the regret in the target task is dominated entirely by the task-specific differences ($e$). This effectively "deletes" the complexity of the high-dimensional background.
  • Minimax Optimality: The error bounds achieved for transition estimation are minimax optimal, proving that no algorithm could perform significantly better under these specific structural assumptions.
  • Dynamics over Value Functions: While many transfer RL papers focus on the similarity of value functions across tasks, this paper argues that transition dynamics are more fundamental. Mastering how the world moves allows an agent to adapt to any arbitrary reward structure.
  • The Incoherence Requirement: To successfully disentangle the low-rank core from sparse variations, the authors apply the incoherence assumption from matrix completion. This ensures the low-rank component isn't "too sparse" itself, preventing it from being confused with task-specific noise.

Limitations and Future Directions

While a significant theoretical leap, the framework has limitations that pave the way for future research:

  • Known Feature Maps: The current framework assumes that the high-dimensional feature functions ($\phi$ and $\psi$) are known a priori. Future work could explore representation learning techniques to discover these bases from scratch.
  • Computational Complexity: UCB-TQL relies on solving hard-constrained optimization problems (matrix recovery with sparsity constraints), which can be computationally intensive. The authors suggest that substituting these with Lasso-type ($L_1$) penalties could vastly improve computational efficiency, though this requires further theoretical validation.
  • Alternative Sparsity Structures: The paper focuses primarily on entry-wise sparsity. Exploring other structural assumptions—such as row sparsity, column sparsity, or group sparsity—could lead to even more efficient transfer algorithms tailored for specific domains like robotics or autonomous navigation.

Summary updated

BibTeX
@inproceedings{chai2025transfer,
  author = {Jinhang Chai and Elynn Chen and Lin Yang},
  title = {{Transfer Q-Learning with Composite MDP Structures}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=DYuTV3ESCQ},
}
Figure