Abstract
We present a learning mechanism for reinforcement learning of closely related skills parameterized via a skill embedding space. Our approach is grounded on the intuition that nothing makes you learn better than a coevolving adversary. The main contribution of our work is to formulate an adversarial training regime for reinforcement learning with the help of entropy-regularized policy gradient formulation. We also adapt existing measures of causal attribution to draw insights from the skills learned. This would facilitate easier re-purposing of skills for adaptation to different environments and tasks. Our experiments demonstrate that the adversarial process leads to a better exploration of multiple solutions and understanding the minimum number of different skills necessary to solve a given set of tasks.
Introduction
In Multi-Task Reinforcement Learning (MT-RL), the objective is to develop a single agent capable of mastering a variety of tasks. However, a persistent challenge in this domain is the tendency for agents to exhibit poor exploration. Agents often converge on sub-optimal solutions for a subset of tasks while ignoring others, primarily due to a lack of incentive to explore the broader task space. Furthermore, standard RL policies are frequently brittle, failing when introduced to novel environments. While previous research has attempted to increase robustness through manually engineered adversarial attacks, such as random physical perturbations, these methods often require significant human intervention and domain-specific knowledge.
Methods: Adversarial TE-PPO
To address these limitations, we propose Adversarial TE-PPO (ATE-PPO). This framework conceptualizes the learning process as a two-player minimax game. Unlike traditional adversarial methods that modify the physical environment, ATE-PPO introduces adversity at the level of latent skill embeddings.
The architecture comprises three primary components: an Encoder that maps tasks to latent skill vectors, a Policy that translates these vectors into actions, and an Inference network.
- The Protagonist: Composed of the Encoder and Policy, this player seeks to maximize rewards and successfully complete tasks.
- The Adversary: Composed solely of the Encoder. During adversarial training phases, the policy is held fixed while the adversary optimizes the Encoder to produce the "Worst Faithful Embedding"—a representation that remains task-relevant but is specifically designed to minimize the policy's reward.
By forcing the policy to succeed despite these internal perturbations, the agent is compelled to learn more robust and diverse skill representations. We further utilize a causal framework, specifically Average Causal Effect (ACE), to analyze the utilization of these latent skills.
Experimental Results
We evaluated ATE-PPO across several simulated continuous control environments, including PointMass, 2-D Navigation, and the Meta-World (MT5) benchmark.
Performance and Generalization
In the Meta-World MT5 environment, which includes tasks like pushing, opening/closing windows, and opening/closing drawers, ATE-PPO significantly outperformed the baseline TE-PPO. The proposed method achieved a 41% success rate, a substantial improvement over the baseline's 20%.
Generalization capabilities were tested on unseen Meta-World tasks such as "Coffee Button" and "Faucet Open." ATE-PPO demonstrated superior adaptation; for instance, on the Coffee Button task, it achieved a return of 80.91 compared to 37.21 for the baseline.
Skill Diversity and Efficiency
The adversarial regime significantly increased the "volume" or efficiency of learned skills. In MT5, ATE-PPO's embedding efficiency was measured at $8.95 \times 10^{-8}$, orders of magnitude higher than the baseline's $4.99 \times 10^{-16}$. This indicates that the learned skills are more distinct and cover a broader range of the latent space.
Discussion and Conclusion
Our findings suggest that internal adversaries are a powerful driver for exploration. By perturbing skill embeddings, agents are forced to avoid fragile, narrow solutions. Interestingly, causal analysis revealed that despite having a large latent space, the policy tends to learn only the minimum number of distinct skills necessary for task completion, effectively ignoring redundant features.
While promising, adversarial training presents challenges, particularly regarding training stability. Careful hyperparameter tuning is essential to prevent the adversary from overwhelming the protagonist. Future work will explore extending this adversarial regime to off-policy algorithms to improve data efficiency, a critical step for real-world robotic applications.
Summary updated