Introduction
In visual Reinforcement Learning (RL), the ability of an agent to generalize from a training environment to a novel testing environment remains a significant hurdle. A primary cause of generalization failure is feature entanglement, where agents learn "spurious correlations"—statistical patterns in the training data that do not reflect the true underlying causal logic of the task. For instance, if a robot training set consistently places heavier objects at lower heights, an agent might erroneously learn to associate height with the necessary grip strength, rather than the object's mass.
Existing approaches often attempt to achieve invariance, essentially training the agent to ignore certain features like background noise. However, this strategy is insufficient when environmental changes are task-relevant, such as variations in a robot's own physical dimensions or motor strength. This paper introduces Saliency-Guided Features Decorrelation (SGFD), a framework designed to break these spurious correlations by identifying and decorrelating features that vary across environments, ensuring the agent learns robust, causal relationships.
Methodology
SGFD addresses feature entanglement through a sample reweighting mechanism that creates a "virtual" training distribution where features appear independent. The framework is built upon two technical pillars:
1. Non-linear Decorrelation via Random Fourier Functions (RFF)
Standard correlation metrics, such as the Pearson correlation coefficient, are limited to capturing linear relationships. Given that image pixels and high-level visual features exhibit complex, non-linear dependencies, SGFD utilizes Random Fourier Functions (RFF). By mapping features into a high-dimensional space, the model can estimate and minimize non-linear dependencies using a cross-covariance matrix, effectively "decorrelating" the representation space.
2. Saliency-Guided Prioritization
Decorrelating every possible pair of features in a high-dimensional visual input is computationally intensive and often data-inefficient. To streamline this, SGFD employs a saliency-guided heuristic. The system trains a classifier to distinguish which environment a specific state observation originated from. By computing a saliency map for this classifier, the model identifies which features are most indicative of a specific environment (the "changed features"). SGFD then prioritizes the decorrelation of these specific features from the rest of the representation, focusing its optimization efforts on the most problematic spurious correlations.
Experimental Evaluation
The researchers evaluated SGFD against several state-of-the-art baselines, including TED, DBC, and SGQN, across two primary benchmarks:
- DeepMind Control Suite: Standard tasks (e.g., Walker, Cheetah) were modified with background videos from the Kinetics dataset to introduce task-irrelevant noise. Additionally, physical parameters like torso length were altered to test task-relevant variations.
- Causal World: A robotic manipulation benchmark used to test sensitivity to physical changes such as object mass and dimensions.
Performance was measured in two scenarios: Interpolation (testing within the range of training parameters) and Extrapolation (testing on values significantly outside the training range).
Results and Discussion
SGFD demonstrated superior performance across both benchmarks, particularly in challenging extrapolation tasks.
- Task-Irrelevant Generalization: In environments with distracting backgrounds, SGFD achieved a total reward score of 3929.5, significantly higher than the leading baseline, AMBS (3734.9).
- Task-Relevant Extrapolation: The most notable success occurred in physical parameter extrapolation. SGFD scored 2253.1, while the closest competitor trailed at 1857.6. This suggests that by decorrelating features, the agent learns the actual impact of physical parameters rather than just memorizing training-set correlations.
- Qualitative Insights: Saliency visualizations revealed that SGFD's policy focuses almost exclusively on the robot and the goal object. In contrast, baseline models often exhibited "scattered" attention, frequently being distracted by noisy background elements.
Conclusion and Future Work
The core insight of SGFD is that "invariance" can be a trap; agents must be able to distinguish between what to ignore and what to adapt to. While SGFD provides a robust framework for this, limitations remain. The method currently relies on temporal stacking for motion understanding and requires environment labels during training to identify changed features. Future research may focus on training inference models to predict environmental variations from minimal deployment data, further narrowing the gap between simulated training and real-world application.
Summary updated