Hybrid Transfer Reinforcement Learning: Provable Sample Efficiency from Shifted-Dynamics Data

Chengrui Qu, Laixi Shi, Kishan Panaganti, Pengcheng You, Adam Wierman

Abstract

Online reinforcement learning (RL) typically requires online interaction data to learn a policy for a target task, but collecting such data can be high-stakes. This prompts interest in leveraging historical data to improve sample efficiency. The historical data may come from outdated or related source environments with different dynamics. It remains unclear how to effectively use such data in the target task to provably enhance learning and sample efficiency. To address this, we propose a hybrid transfer RL (HTRL) setting, where an agent learns in a target environment while accessing offline data from a source environment with shifted dynamics. We show that -- without information on the dynamics shift -- general shifted-dynamics data, even with subtle shifts, does not reduce sample complexity in the target environment. However, focusing on HTRL with prior information on the degree of the dynamics shift, we design HySRL, a transfer algorithm that outperforms pure online RL with problem-dependent sample complexity guarantees. Finally, our experimental results demonstrate that HySRL surpasses the state-of-the-art pure online RL baseline.

Introduction

Online Reinforcement Learning (RL) is notoriously data-hungry, often requiring billions of interactions to master complex tasks. To mitigate the time and cost associated with online data collection, researchers frequently turn to "transfer learning"—leveraging data from a source environment, such as a simulator or historical logs, to accelerate learning in a target environment.

However, a significant challenge persists: dynamics shift. Simulators are rarely perfect replicas of the real world. If the source data differs too significantly from the target environment, it can lead to "negative transfer," where the agent's performance is worse than if it had learned from scratch. This paper provides a rigorous theoretical framework to understand when and how source data with shifted dynamics can provably reduce the number of required online interactions.

Problem Setting: Hybrid Transfer RL

The authors introduce the Hybrid Transfer RL (HTRL) framework. In this setting, an agent has access to a large offline dataset from a source Markov Decision Process (MDP) while interacting online with a target MDP. The primary difficulty lies in the unknown differences in transition probabilities between the two environments.

Comparison of RL paradigms: Online RL, Hybrid RL, and the proposed Hybrid Transfer RL (HTRL) setting.

The HySRL Algorithm

To address the HTRL problem, the authors propose HySRL (Hybrid Separable-transfer RL). The algorithm operates in two distinct stages:

  1. Reward-Free Shift Identification: The agent performs targeted exploration in the target environment to identify the "Shifted Region" ($B$). This region consists of state-action pairs where source and target dynamics diverge. This stage relies on a "separable shift" assumption, which posits that if dynamics differ, they do so by at least a minimum margin ($eta$).
  2. Hybrid UCB Value Iteration: After identifying the shifted region, the agent employs a modified Upper Confidence Bound (UCB) algorithm. For state-action pairs outside the shifted region, the agent leverages the abundant source data. For those inside the shifted region, it ignores the source data and relies exclusively on fresh online interactions.

This "surgical" approach ensures that the agent focuses its limited online interaction budget only on the parts of the environment that have actually changed.

Theoretical Insights

The "No Free Lunch" Theorem

The authors prove a minimax lower bound demonstrating that without prior information about the nature of the dynamics shift, transfer learning cannot improve sample complexity in the worst case. In such scenarios, transfer learning offers no theoretical advantage over pure online RL.

The Power of Separability

To overcome this lower bound, the paper introduces $eta$-separable shifts. This assumption—that transitions are either identical or significantly different—reflects many real-world scenarios where a simulator is mostly accurate but fails in specific, identifiable "edge cases." Under this assumption, HySRL's sample complexity scales with the size of the shifted region ($|B|$) rather than the entire state-action space ($SA$). This allows for massive efficiency gains when shifts are localized ($|B| \ll SA$).

Empirical Results

The findings were validated using a GridWorld environment ($S=16, A=4, H=20$). The source environment featured a standard navigation task, while the target environment introduced "traps" and altered success probabilities for specific actions.

  • Efficiency: HySRL reached the optimal policy with significantly fewer samples than BPI-UCBVI, a state-of-the-art pure online RL baseline.
  • Robustness: The algorithm maintained strong performance even when provided with inaccurate estimates of the shift parameter $eta$, suggesting its viability for practical applications where exact parameters are unknown.
  • Avoiding Negative Transfer: HySRL is theoretically guaranteed to perform at least as well as pure online RL, even if the source data is entirely uninformative.

Conclusion and Future Work

While HySRL provides a provable path toward efficient transfer learning, it is currently designed for tabular RL with discrete states and actions. Future research will focus on extending these principles to high-dimensional spaces using function approximation (Deep RL) and exploring settings where both dynamics and reward functions shift between environments.

Summary updated

BibTeX
@inproceedings{qu2025hybrid,
  author = {Chengrui Qu and Laixi Shi and Kishan Panaganti and Pengcheng You and Adam Wierman},
  title = {{Hybrid Transfer Reinforcement Learning: Provable Sample Efficiency from Shifted-Dynamics Data}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=ndWOLqVRHC},
}
Figure