# Learning to Undo: Transfer Reinforcement Learning under State Space Transformations

*Mridul Mahajan, Aldo Pacchiano, Xuezhou Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149546) · [OpenReview](https://openreview.net/forum?id=pKncWGhXfk) · [Open on the map](../papers.html#p149546)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Offline Reinforcement Learning and Adaptation](../pgroup/625.md) · Type: new method · Keywords: transfer reinforcement learning, state space transformation, policy transfer, sample efficiency, undo map

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Reinforcement Learning › Diffusion and Flow Policies; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Continual Reinforcement Adaptation

## Summary
The paper proposes an algorithm that learns an undo map between source and target MDPs by matching state feature statistics and uses it to transfer source policies, achieving better sample efficiency.

## Explained to a 5-year-old
In some video games, a robot learns how to win. Sometimes another game looks different, but there is a way to turn the new look back into the old look. The robot figures out how to do that change by looking at the pictures from both games. Once it knows how to change the new game, it can use the old winning plan. This way, the robot doesn't have to learn everything again from scratch.

## Explained to a 5-year-old, longer
A robot plays a game and learns how to win. Sometimes another game looks different, but you can change it so it looks like the first game. The robot figures out how to do that change by looking at the pictures from both games. Once it knows how to change the new game, it can use the old winning plan. This way, the robot doesn't have to learn everything again from scratch. It saves time and tries less because it already knows some tricks. The robot can do this for many kinds of games, like those with simple movements or those with pictures. Even when the games are hard and need many tries to learn, this trick helps. Scientists have shown that this idea works well on real robots playing tough games. They also proved that when the change is simple, the robot learns faster than starting over. This makes learning new things easier for robots and maybe for other computers too. Overall, it’s like sharing knowledge between friends to solve problems together.

## For a technical reader
The paper addresses the problem of transferring a learned policy from one environment to another when the two environments are related by a known transformation that can map the target state space back to the source. It proposes a practical algorithm that estimates this transformation by aligning statistical features of observed states from both environments, then applies the mapping to adapt the source policy for the target. Theoretical analysis shows that under linear assumptions the method achieves better sample complexity than training from scratch in the target MDP. Experiments on standard continuous-control and Atari benchmarks demonstrate substantial improvements in sample efficiency. The approach provides a principled way to exploit shared structure between tasks, making transfer learning more reliable and data-efficient.

## Problem
When transferring policies between reinforcement learning environments, it is unclear how to exploit shared structure if the target environment can be transformed back to the source. The problem is to determine when and how such knowledge transfer can be provably beneficial.

## Method
The approach learns a mapping from the target state space to the source by aligning statistical features of states collected from both MDPs, and then applies this mapping to transfer the source policy to the target. It provides theoretical analysis for linear undo maps and linear-Q* realizability, and empirically validates the gains on continuous control and Atari benchmarks.

## Results
The approach demonstrates significantly better sample efficiency on continuous control and Atari tasks compared to tabula rasa RL.

## Contributions
It provides a principled condition for beneficial transfer when an undo map exists, a learning algorithm to discover such maps, and theoretical guarantees showing improved sample complexity under linear assumptions. Empirically, it shows substantial gains on challenging RL benchmarks.

## Limitations and assumptions
The theoretical analysis assumes a linear undo map and linear-Q* realizability of the source, and the empirical evaluation focuses on continuous control and Atari games.

## Research questions this paper is counted under

- [How can we learn goal-conditioned policies that generalize reliably across goals from offline data?](../q/511.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149546)
