Look where you look! Saliency-guided Q-networks for visual RL tasks

David Bertoin, Adil Zouitine, Mehdi Zouitine, Emmanuel Rachelson · DOI

Introduction

Deep Reinforcement Learning (RL) agents often suffer from observational overfitting, where they learn to rely on spurious background features rather than the causal elements of a task. Consequently, a policy trained in a static simulator may fail when faced with minor environmental changes, such as new textures or moving backgrounds. To address this, Bertoin et al. propose Saliency-Guided Q-Networks (SGQN), a method designed to improve generalization by forcing agents to prioritize task-relevant pixels.

Methodology

SGQN is a generic framework applicable to value-function-based RL algorithms. It introduces two primary mechanisms to ensure the agent focuses on salient features:

  1. Consistency Regularization ($L_C$): The agent identifies "decisive" pixels using guided backpropagation to generate a saliency map. It then creates a masked version of the input image containing only these pixels. The network is penalized if the predicted Q-value of the masked image deviates from that of the original image, effectively teaching the model to ignore non-salient background noise.
  2. Self-Supervised Learning ($L_{SL}$): The encoder is trained to predict its own saliency map. Specifically, it must reconstruct the saliency map of the original image while processing an augmented (transformed) version of it. This encourages the extraction of robust features essential for decision-making.
Overview of the SGQN framework, illustrating the interplay between self-supervised objectives and consistency regularization.

These mechanisms create a "virtuous circle": the consistency loss sharpens the saliency maps, which in turn provide higher-quality targets for the self-supervised task, leading to more robust feature representations.

Experimental Evaluation

The authors evaluated SGQN using the DeepMind Control Generalization (DMControl-GB) benchmark across several tasks, including Walker, Ball in cup, Cartpole, and Finger spin. The benchmark introduces distribution shifts such as "Video Easy" (natural video backgrounds) and "Video Hard" (videos replacing both background and floor textures).

Key Results

SGQN demonstrates significant improvements in generalization and sample efficiency. On the challenging "Video Hard" benchmark, SGQN outperformed the state-of-the-art SVEA method by an average of 60%. Notably, in the "Finger spin" task under hard shift, SGQN achieved a score of 822 compared to the next best competitor's 307.

Training curves comparing SGQN (orange) and SAC (blue) across various DMControl-GB tasks, demonstrating superior performance and stability.

Beyond performance gains, SGQN offers built-in interpretability. Since the model is trained to predict its own attention, researchers can visualize the pixels the agent considers "decisive" at runtime, providing insight into the agent's decision-making process.

Conclusion

SGQN addresses the generalization gap in visual RL by explicitly guiding the agent's attention toward task-relevant features. By combining consistency regularization with self-supervised saliency prediction, the method achieves state-of-the-art results on standard benchmarks and offers enhanced interpretability for real-world robotic applications.

Summary updated

BibTeX
@inproceedings{bertoin2022look,
  author = {David Bertoin and Adil Zouitine and Mehdi Zouitine and Emmanuel Rachelson},
  title = {{Look where you look! Saliency-guided Q-networks for visual RL tasks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=F7LVNDUiPEY},
}
Figure