[Paper Review] Learning One Representation to Optimize All Rewards
This paper introduces the forward-backward (FB) representation, a learnable compact summary of a reward-free MDP that enables direct derivation of near-optimal policies for any specified reward without planning. By training two deep representations—F (forward) and B (backward)—via off-policy temporal difference learning on unsupervised experience, the method achieves provably optimal policies when training is perfect, with sub-optimality proportional to approximation error.
We introduce the forward-backward (FB) representation of the dynamics of a reward-free Markov decision process. It provides explicit near-optimal policies for any reward specified a posteriori. During an unsupervised phase, we use reward-free interactions with the environment to learn two representations via off-the-shelf deep learning methods and temporal difference (TD) learning. In the test phase, a reward representation is estimated either from observations or an explicit reward description (e.g., a target state). The optimal policy for that reward is directly obtained from these representations, with no planning. We assume access to an exploration scheme or replay buffer for the first phase. The corresponding unsupervised loss is well-principled: if training is perfect, the policies obtained are provably optimal for any reward function. With imperfect training, the sub-optimality is proportional to the unsupervised approximation error. The FB representation learns long-range relationships between states and actions, via a predictive occupancy map, without having to synthesize states as in model-based approaches. This is a step towards learning controllable agents in arbitrary black-box stochastic environments. This approach compares well to goal-oriented RL algorithms on discrete and continuous mazes, pixel-based MsPacman, and the FetchReach virtual robot arm. We also illustrate how the agent can immediately adapt to new tasks beyond goal-oriented RL.
Motivation & Objective
- To enable a single agent to learn a universal representation of an environment that supports optimal policy derivation for any future reward function.
- To overcome limitations of goal-oriented RL and model-based planning by learning a compact, general-purpose representation during an unsupervised phase.
- To provide a well-justified unsupervised training objective for representations that guarantees optimality under perfect training.
- To demonstrate generalization beyond goal-reaching tasks, including dense and complex reward functions.
- To enable immediate adaptation to new tasks without retraining or planning, even in high-dimensional, stochastic environments.
Proposed method
- Leverages a forward-backward (FB) representation framework where F(s,a,z) and B(s',a') map state-action pairs to a latent space Z ≈ R^d.
- Trains F and B using a temporal difference (TD) loss that approximates the long-term occupancy probability of reaching s' from s under policy π_z.
- The policy is defined as π_z(s) = argmax_a F(s,a,z)^T z, enabling direct policy inference from z and the representations.
- Reward representation z is computed from reward observations or explicit descriptions (e.g., target states) via a linear projection.
- Uses off-the-shelf deep learning and off-policy TD learning with a replay buffer, avoiding trajectory synthesis and sparse rewards.
- Employs a Polyak averaging scheme to stabilize training and a well-principled unsupervised loss with theoretical optimality guarantees.
Experimental results
Research questions
- RQ1Can a single, compact representation be learned from reward-free experience that enables optimal policy derivation for any reward function?
- RQ2How can the unsupervised training of F and B be formulated as a principled loss with theoretical optimality guarantees?
- RQ3To what extent does the method generalize beyond goal-reaching tasks to complex, dense, or multi-objective rewards?
- RQ4How does the method compare to goal-oriented RL and model-based baselines in terms of sample efficiency and policy quality?
- RQ5What kind of long-range state-action dependencies does the FB representation learn, and how do they support generalization?
Key findings
- The FB representation achieves provably optimal policies when training is perfect, with sub-optimality bounded by the unsupervised approximation error.
- In discrete and continuous mazes, FB outperforms DQN-based goal-oriented methods in success rate and sample efficiency, especially with higher-dimensional representations (FB-100 outperforms DQN in 800 epochs).
- On pixel-based Ms. Pacman, FB successfully learns policies for complex tasks like avoiding forbidden regions and balancing reward distance, with qualitatively correct trajectories.
- In FetchReach, FB achieves high success rates (over 90% on average) across 1000 sampled goals, demonstrating robustness in continuous control.
- t-SNE visualizations confirm that the FB representations recover structural features of the environment (e.g., rooms, cycles, doors), indicating effective long-range state representation.
- The method enables immediate adaptation to new tasks such as choosing between nearby small rewards and distant large rewards, which standard goal-oriented methods cannot handle without retraining.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.