Introduction
Visual Reinforcement Learning (RL) enables agents to learn complex behaviors directly from high-dimensional pixel inputs. However, these agents often struggle with zero-shot generalization to unseen environments. A primary cause is "visual overfitting," where the agent's encoder captures task-irrelevant background features rather than the underlying task dynamics. This paper introduces Salience-Invariant Consistent Policy Learning (SCPL), a framework designed to ensure agents maintain focus on task-relevant information and exhibit stable decision-making across diverse visual scenarios.
The Challenge of Visual Generalization
In visual RL, agents often fail when moved from a clean training environment to a noisy test environment (e.g., a robot moving from a lab to a cluttered room). This failure stems from two main issues:
- Attention Drift: Standard encoders often fail to distinguish between task-relevant objects (like a robot arm) and background distractors when visual textures change.
- Policy Inconsistency: Even with reasonable representations, an agent's policy can become "jittery" or inconsistent under visual perturbations. As shown in the KL divergence analysis, baseline methods like SAC exhibit high divergence in action distributions when faced with visual noise, leading to a significant gap in performance.
The SCPL Framework
SCPL addresses these challenges through a synergistic three-pronged architecture that regularizes both the representation and the policy.
1. Saliency-Guided Value Consistency
To prevent attention drift, SCPL utilizes gradient-based saliency maps to identify pixels that significantly contribute to the Q-value. By applying a binarized quantile mask, the model isolates task-relevant regions. A consistency loss is then applied to ensure that the agent maintains similar value estimates and attention focus for both original and visually augmented observations.
2. Dynamics Module
To ground the encoder in the "physics" of the environment, SCPL incorporates an auxiliary dynamics task. The agent is trained to predict rewards and next-state latent representations. This ensures that the learned features are not just visually invariant but also capture the causal structure of the task.
3. Policy Consistency Module
The core of SCPL is the explicit regularization of the policy. Based on theoretical bounds proving that minimizing policy divergence limits the gap in cumulative rewards, the authors introduce a KL-divergence constraint. This forces the action distribution for a perturbed image to remain close to the distribution for the original image, ensuring decision-level stability.
Experimental Evaluation
The authors evaluated SCPL on three challenging benchmarks: the DeepMind Control Generalization Benchmark (DMC-GB), robotic manipulation tasks, and the CARLA autonomous driving simulator.
Key Results
SCPL achieved state-of-the-art (SOTA) performance across the board, often by massive margins:
- DMC-GB: In the "Video hard" setting, SCPL improved average performance by 14% over previous SOTA methods like SGQN and SVEA.
- Robotic Manipulation: In the "Hard" setting (complex backgrounds), SCPL saw a 39% improvement.
- CARLA: In autonomous driving tests across unseen weather conditions, SCPL outperformed baselines by a staggering 69% in terms of average driven distance without collision.
Qualitative analysis via t-SNE visualizations further confirmed that SCPL clusters similar behaviors much more tightly than baselines, regardless of background noise.
Conclusion
SCPL demonstrates that achieving robust visual generalization requires more than just invariant representations; it requires consistent decision-making. By combining saliency-guided attention, dynamics modeling, and policy regularization, SCPL sets a new standard for zero-shot generalization in visual RL. Future work may explore adaptive saliency quantiles to further refine the agent's focus across varying task complexities.
Summary updated