Introduction
Reinforcement learning (RL) agents often struggle with generalization when moved from their training environments to novel scenarios. Traditional approaches typically "bake" skills into specific environment-task pairs, leading to failure when either the environment ($\epsilon$) or the task ($\tau$) changes. This paper introduces SYNPO (Synthesized Policies), a framework designed for simultaneous transfer, where an agent must adapt to new combinations of tasks and environments, even when training data is sparse.
Problem Formulation: Transfer Settings
The challenge of simultaneous transfer is framed as a grid of $N$ tasks and $M$ environments. In many real-world scenarios, it is impossible to train on all $N \times M$ combinations. The authors define three primary transfer settings to evaluate the model's ability to generalize beyond its training set:
- Setting 1 (Unseen Pairs): The agent is tested on new combinations of tasks and environments that were seen individually during training but never together.
- Setting 2 (Unseen Tasks/Environments): The agent encounters entirely new tasks or environments.
- Setting 3 (Zero-shot/One-shot): The most difficult setting, requiring adaptation to both new tasks and new environments simultaneously.
Methodology: The SYNPO Framework
SYNPO addresses these challenges through a compositional neural network architecture that factorizes the policy into disentangled components. This structure prevents the model from overfitting to specific training pairs.
Policy Factorization and the Meta Rule
Instead of learning a monolithic policy, SYNPO learns separate low-dimensional embeddings for the environment ($e_\epsilon$) and the task ($e_\tau$). These embeddings are combined using a "meta rule" to synthesize a specific policy $\pi_z(a|s)$. The model maintains a set of shared policy bases—matrices representing fundamental behavioral primitives. A bilinear mapping uses the task and environment embeddings to calculate coefficients that linearly combine these bases, effectively "hallucinating" a policy for novel pairs.
Disentanglement and One-Shot Adaptation
To prevent information leakage between task and environment representations, SYNPO employs discriminative disentanglement losses. These losses ensure that the environment embedding captures only spatial/topological information, while the task embedding captures the goal. For entirely new domains (Settings 2 and 3), the agent performs a one-shot fine-tuning step on the new embeddings using a single expert demonstration, while keeping the meta rule and bases fixed.
Experimental Evaluation
The framework was evaluated on two platforms: GRIDWORLD (2D mazes) and THOR (3D photo-realistic kitchens). In THOR, the agent relies on egocentric visual input, making the task significantly more complex.
Key Results
- Generalization Performance: In GRIDWORLD, SYNPO achieved an 82.1% success rate on unseen pairs, significantly outperforming standard Multi-Task Learning (41.5%). In the complex THOR environment, SYNPO maintained a 35.4% success rate, demonstrating robustness to visual complexity compared to baselines that fell as low as 14.4%.
- The 40% Threshold: A critical finding was the non-linear scaling of generalization. Once the agent is trained on approximately 40% of possible combinations, its performance on the remaining 60% improves rapidly, suggesting the model successfully learns the underlying "logic" of the task-environment space.
- Robustness to Limited Perception: In a "blind" test where the agent only perceived its coordinates, SYNPO's environment embeddings allowed it to retain a 76.8% success rate by effectively "remembering" maze structures, whereas environment-agnostic models failed (6.1%).
Conclusion and Future Work
SYNPO demonstrates that compositionality and disentanglement are key to achieving robust transfer in RL. By structurally preventing the memorization of specific pairs, the model learns to generalize across broad task-environment manifolds. While the current work relies on expert demonstrations for new environments, future research will focus on extending this framework to continuous spaces and scaling training efficiency in pure reward-based settings.
Summary updated