[Paper Review] Attention-Privileged Reinforcement Learning
This paper proposes Attention-Privileged Reinforcement Learning (APRiL), a method that enhances sample efficiency and robustness in image-based deep reinforcement learning by training an image-based agent alongside a privileged state-based agent, using attention mechanism alignment and shared experience replay. APRiL achieves faster learning and superior generalization to distractors—both within and beyond the training distribution—by enabling the image agent to focus on task-relevant features through attention supervision from the state-based agent.
Image-based Reinforcement Learning is known to suffer from poor sample efficiency and generalisation to unseen visuals such as distractors (task-independent aspects of the observation space). Visual domain randomisation encourages transfer by training over visual factors of variation that may be encountered in the target domain. This increases learning complexity, can negatively impact learning rate and performance, and requires knowledge of potential variations during deployment. In this paper, we introduce Attention-Privileged Reinforcement Learning (APRiL) which uses a self-supervised attention mechanism to significantly alleviate these drawbacks: by focusing on task-relevant aspects of the observations, attention provides robustness to distractors as well as significantly increased learning efficiency. APRiL trains two attention-augmented actor-critic agents: one purely based on image observations, available across training and transfer domains; and one with access to privileged information (such as environment states) available only during training. Experience is shared between both agents and their attention mechanisms are aligned. The image-based policy can then be deployed without access to privileged information. We experimentally demonstrate accelerated and more robust learning on a diverse set of domains, leading to improved final performance for environments both within and outside the training distribution.
Motivation & Objective
- To address poor sample efficiency and generalization issues in image-based deep reinforcement learning under visual domain randomization.
- To reduce reliance on exhaustive visual randomization, which increases training difficulty and may degrade final performance.
- To improve robustness to distractors and unseen visual variations without requiring access to privileged information at test time.
- To accelerate learning of image-based policies by leveraging structured, task-relevant information from simulator states during training.
Proposed method
- APRiL trains two concurrent actor-critic agents: one image-based (deployable without privileged info), and one state-based (with access to environment states during training).
- Both agents use attention mechanisms to filter inputs, with the attention modules explicitly aligned during training to guide the image agent toward task-relevant features.
- The method employs a shared replay buffer between the two agents, enabling data efficiency and faster learning for the image-based policy.
- The state-based agent’s attention is trained to focus on task-relevant elements (e.g., target objects, limbs), and this knowledge is transferred to the image agent via attention alignment.
- The attention alignment is achieved through a contrastive loss that encourages similar attention masks for corresponding observations in image and state spaces.
- The approach is model-free and extends asymmetric actor-critic methods by integrating attention as a mechanism for knowledge distillation from privileged to image-based agents.
Experimental results
Research questions
- RQ1Can attention mechanisms improve sample efficiency and robustness in image-based deep reinforcement learning under visual domain randomization?
- RQ2Does aligning attention between image-based and state-based agents lead to better generalization to distractors not seen during training?
- RQ3To what extent does sharing a replay buffer between privileged and image-based agents accelerate learning in the image-based policy?
- RQ4How does APRiL compare to strong baselines like asym-DDPG and s-map asym-DDPG in terms of final performance and generalization?
- RQ5What is the relative contribution of attention alignment versus shared replay buffer in improving policy performance?
Key findings
- APRiL significantly accelerates learning compared to asym-DDPG and s-map asym-DDPG, with faster convergence observed in multiple simulated environments.
- The image-based policy trained with APRiL generalizes robustly to environments with additional distractors not present during training, demonstrating strong out-of-distribution generalization.
- APRiL achieves higher final performance than baselines on both in-distribution and extrapolated test environments, particularly in settings with high visual variability.
- Ablation studies show that attention alignment contributes more to performance gains than shared replay buffer alone, highlighting the importance of attention-guided feature learning.
- The attention mechanism in the image agent learns to suppress task-irrelevant visual noise (e.g., background clutter), focusing only on relevant objects such as the target or robot arm.
- In the JacoReach environment, the image-based agent’s attention mask consistently highlights only the target object and robot arm, even under increasing distractor levels, confirming task-driven attention learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.