Abstract
In visual Reinforcement Learning (RL), agents often struggle to distinguish task-relevant information from environmental noise. We introduce "Gaze on the Prize," a framework that equips agents with a learnable foveal attention mechanism. By leveraging return-guided contrastive learning, the agent learns to focus its "gaze" on visual features that directly influence task success. Our experiments on the ManiSkill3 benchmark demonstrate that this approach significantly improves sample efficiency—by up to 2.52×—and enhances robustness in cluttered environments compared to standard CNN-based baselines.
Introduction
Learning control policies directly from high-dimensional pixel data is a fundamental challenge in robotics. Raw images contain vast amounts of task-irrelevant information, such as background textures and distractor objects, which can impede the learning process. While human-centric approaches often use demonstrations to guide attention, autonomous discovery of salient features is preferable for scalable learning. This paper presents a method for agents to autonomously learn a task-specific "gaze" by comparing visual states that lead to different rewards.
Methodology
The "Gaze on the Prize" framework is designed as a plug-and-play module for standard RL algorithms like Proximal Policy Optimization (PPO) or Soft Actor-Critic (SAC).
Parametric Foveal Attention
Instead of complex attention maps, we utilize a parametric Gaze Module. The agent's focus is modeled as a 2D Gaussian spotlight, defined by its center ($μ_x, μ_y$) and shape ($σ_x, σ_y, σ_{xy}$). This provides a strong inductive bias, mimicking the foveated nature of human vision and ensuring the agent focuses on a single, contiguous area of interest.
Return-Guided Contrastive Learning
The core of our approach is a novel contrastive learning objective. The agent maintains a buffer of experiences and mines "triplets" consisting of an anchor state, a positive state (visually similar with higher return), and a negative state (visually similar with lower return). By minimizing a contrastive loss, the Gaze Module is trained to shift its spotlight toward the visual features that differentiate success from failure.
Experimental Results
We evaluated the framework on the ManiSkill3 benchmark across seven manipulation tasks, including PickCube, PushT, and LiftPegUpright.
- Sample Efficiency: On the
PokeCubetask, our method achieved a 2.52× improvement in sample efficiency over the baseline. - Robustness to Distractors: In "Cluttered" environments, the gaze mechanism effectively filtered out irrelevant objects. For instance, in
PushTClutter, the foveal attention mechanism enabled a near 100% success rate where the baseline failed entirely. - Computational Overhead: While adding approximately 12-13% computational cost per update, the faster convergence resulted in a 20% reduction in total wall-clock time to reach target performance levels.
Conclusion
"Gaze on the Prize" demonstrates that reward signals can effectively supervise visual attention. By focusing on the "prize"—the features driving higher returns—agents can learn more efficiently in complex, noisy environments. Future work will explore multi-focal attention models to support more complex bimanual tasks.
Summary updated