Abstract
Goal-Conditioned Reinforcement Learning (GCRL) enables agents to achieve diverse goals but remains highly vulnerable to adversarial perturbations in state observations. Traditional robustness techniques often rely on dense reward signals, which are absent in the sparse reward environments typical of GCRL. This paper presents ReRoGCRL, a framework introducing the Semi-Contrastive Representation (SCR) attack and Adversarial Representation Tactics (ARTs). SCR exploits internal policy representations without requiring a critic, while ARTs employs a sensitivity-aware regularizer to ensure latent space smoothness. Experimental results on robot manipulation tasks demonstrate that ARTs significantly improves robustness, outperforming existing state-of-the-art methods by substantial margins.
Introduction
Goal-Conditioned Reinforcement Learning (GCRL) is a powerful paradigm where agents learn to achieve various goals rather than just maximizing a single reward signal. However, GCRL agents are highly vulnerable to small, adversarial perturbations in their observations—such as sensor noise or deliberate interference. While robustness is a well-studied area in conventional Reinforcement Learning (RL), GCRL presents unique challenges that render standard defense mechanisms ineffective.
The Challenge of Sparse Rewards
Traditional RL robustness methods typically fail in GCRL due to reward sparsity. In conventional RL, rewards are often "shaped" (e.g., providing incremental feedback as an agent approaches a goal), which offers a rich gradient for both training and adversarial attacks. In contrast, GCRL rewards are typically binary and sparse: the agent receives a zero until the goal is reached, at which point it receives a one.
As illustrated in the figure above, the lack of intermediate feedback makes it difficult to utilize standard adversarial training or attacks that rely on Q-values or specific action labels. This sparsity creates a "blind spot" for robustness, as the agent has no natural signal to distinguish between meaningful and negligible perturbations.
Methodology
The researchers propose a two-pronged approach to address these vulnerabilities: a novel attack to expose weaknesses and a defense strategy to mitigate them.
1. Semi-Contrastive Representation (SCR) Attack
Unlike standard attacks that require access to the agent's "critic" (the component estimating rewards), the SCR attack only requires the policy function. It operates by maximizing the distance between the latent representations of clean observations and their perturbed counterparts. By utilizing "negative tuples" (intentionally incorrect state-goal pairs), the attack pushes the agent's internal representation away from its intended goal, effectively confusing its navigation logic.
2. Adversarial Representation Tactics (ARTs)
To defend against such attacks, the authors introduced ARTs, which consists of two primary components:
- Semi-Contrastive Adversarial Augmentation (SCAA): This involves training the agent on data intentionally corrupted by the SCR attack, teaching the model to remain stable under adversarial pressure.
- Sensitivity-Aware Regularizer (SAR): Since GCRL lacks a dense reward signal, SAR acts as a substitute by enforcing Lipschitz continuity (mathematical smoothness) in the latent space. This ensures that physically similar states have similar representations, preventing small input changes from causing drastic behavioral shifts.
Experimental Evaluation
The framework was evaluated using four standard robot manipulation tasks from the OpenAI Gym/Fetch suite: FetchReach, FetchPush, FetchSlide, and FetchPick. These tasks involve complex interactions such as striking blocks to slide them to distant targets or grasping objects. The researchers utilized offline datasets containing a mix of random and expert trajectories to simulate realistic training conditions.
Key Results and Insights
The SCR attack proved devastatingly effective, often reducing an agent's success rate to near zero on challenging tasks like FetchSlide. However, the ARTs defense demonstrated remarkable resilience:
- Significant Robustness Gains: On the FetchReach task, a DDPG agent defended with ARTs saw a performance improvement of over 1300% compared to an undefended model under attack.
- Superior Performance: ARTs-enhanced models consistently outperformed other robust GCRL methods, such as SimSR, across all tested environments.
- Realistic Threat Modeling: Because the SCR attack does not require a critic network, it represents a more realistic threat model for agents deployed in real-world scenarios where internal reward estimators may not be accessible to attackers.
Conclusion
ReRoGCRL demonstrates that internal representations are a critical attack surface in sparse-reward environments. By forcing the representation function to be mathematically smooth via the SAR regularizer, the authors effectively provide the missing guidance that shaped rewards usually offer in conventional RL. Future work will explore extending these methods to high-dimensional visual inputs (e.g., raw camera pixels) and dynamic environments with moving obstacles.
Summary updated