Transfer learning in reinforcement learning (RL) has shown strong empirical success. In this work, we take a more principled perspective by studying when and how transferring knowledge between MDPs (a source and a target) can be provably beneficial. Specifically, we consider the case where there exists an undo map such that applying this map to the target's state space recovers the source exactly. We propose an algorithm that learns this map by matching state feature statistics gathered from both MDPs, and then uses it to transfer the source policy to the target. We theoretically justify the algorithm by analyzing the setting when the undo map is linear and the source is linearly-Q⋆ realizable, where our approach has strictly better sample complexity than tabula rasa RL in the target MDP. Empirically, we demonstrate that these benefits extend beyond this regime: on challenging continuous control tasks and Atari games, our method achieves significantly better sample efficiency. Overall, our results highlight how shared structure between tasks can be leveraged for efficient transfer of policies across environments.
Figures & tables
Figure 1: State space transformations can significantly decrease sample efficiency (e.g., increasing observation size by 10× ).
Figure 2: State space transformations are grounded in real-world applications.
Figure 3: Overview of Lumos . We match state feature statistics between source and undone target trajectories.
Figure 4: We evaluate Lumos under structured transformations ranging from geometric and sensor-level changes to gaps in the level of abstraction (e.g., semantic maps in the source and pixels in the target), where the source task is often easier to learn than the target.
Figure 5: Comparison of avg. return (standard deviation over five random seeds) for varying budgets of target samples. Transfer learning via Lumos consistently achieves significantly better sample efficiency than learning from scratch.
Figure 6: Comparison of avg. return (standard deviation over five random seeds) for varying budgets of target samples. Transfer learning via Lumos consistently achieves significantly better sample efficiency than learning from scratch.
Figure 7: Comparison of avg. return (standard deviation over five random seeds). Lumos consistently achieves better sample efficiency than transfer baselines that require rewards in the target.
Figure 8: Ablation results. (a) Effect of the number of matched moments M . (b) Effect of allocating a fixed sampling budget between the number of action sequences N and their truncated horizon H† .
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Target Samples
Setting
12.5k
25k
37.5k
50k
Exact transformation
86.12±18.20
114.20±6.31
115.08±5.85
118.96±3.82
Pixel masking [ pm=0.05 ]
79.08±11.51
99.96±13.08
99.52±7.00
107.28±13.02
Pixel masking [ pm=0.10 ]
70.00±20.55
76.64±9.76
87.56±8.78
91.36±13.63
Sticky frames [ ps=0.01 ]
90.56±9.67
95.76±16.62
104.12±9.05
111.76±5.75
Sticky frames [ ps=0.10 ]
48.04±13.28
50.80±14.76
49.40±9.05
57.68±10.52
Appendix
Table 1: Average return (standard deviation over five random seeds) on PixelCartPole under stochastic observation corruptions at different target-sample budgets.
Inverse Reinforcement Learning (IRL) aims to recover expert rewards that transfer across environments with differing dynamics. Prior work has shown that such transfer is possible when gathering expert demonstrations across sufficiently different dynamics. In practice, however, expert demonstrations are costly, making it critical to select the right dynamics to reduce the quantity of expert data required for learning transferable rewards. We propose a two-phase approach: we first cycle through the available dynamics to obtain a reliable reward estimate, then actively select dynamics to reduce our uncertainty about the expert reward. Crucially, this yields novel sample complexity guarantees on transfer that hold for any dynamics, with a rate independent of the number of available dynamics. Empirically, our method significantly reduces the number of expert demonstrations needed to learn a transferable reward.
Victor Villin, Till Freihaut, Andreas Schlaginhaufen +3
University of Neuchˆatel · University of Zurich · EPFL
We study reinforcement learning (RL) with linear function approximation in Markov Decision Processes (MDPs) satisfying linear Bellman completeness -- a fundamental setting where the Bellman backup of any linear value function remains linear. While statistically tractable, prior computationally efficient algorithms are either limited to small action spaces or require strong oracle assumptions over the feature space. We provide a computationally efficient algorithm for linear Bellman complete MDPs with deterministic transitions, stochastic initial states, and stochastic rewards. For finite action spaces, our algorithm is end-to-end efficient; for large or infinite action spaces, we require only a standard argmax oracle over actions. Our algorithm learns an ε-optimal policy with sample and computational complexity polynomial in the horizon, feature dimension, and 1/ε.
Reinforcement learning remains sample inefficient, particularly when agents must adapt over time to related but distinct tasks, as in continual learning settings. Efficiency can be improved by transferring knowledge from a pretrained teacher policy to guide exploration in new but related tasks. However, if the new task sufficiently differs from the teacher's training task, the transferred guidance may be sub-optimal and bias exploration toward low-reward behaviors. We propose an energy-based transfer learning method that uses out-of-distribution detection to selectively issue guidance, enabling the teacher to intervene only in states within its training distribution. We theoretically link energy scores to state-visitation patterns under on-policy reinforcement learning. Empirically, our method improves sample efficiency and performance across both single-task and multi-task settings.
Zeyun Deng, Jasorsi Ghosh, Fiona Xie +4
♠Purdue University · ♢AWS AI · ♣Carnegie Mellon University