- Robustifying a Deep Visuomotor Policy through Task-Focused Attention
Abstract
Several recent studies have demonstrated the promise of deep visuomotor policies for robot manipulator control. Despite impressive progress, these systems are known to be vulnerable to physical disturbances, such as accidental or adversarial bumps that make them drop the manipulated object. They also tend to be distracted by visual disturbances such as objects moving in the robot's field of view, even if the disturbance does not physically prevent the execution of the task. In this paper, we propose an approach for augmenting a deep visuomotor policy trained through demonstrations with Task Focused visual Attention (TFA). The manipulation task is specified with a natural language text such as 'move the red bowl to the left'. This allows the visual attention component to concentrate on the current object that the robot needs to manipulate. We show that even in benign environments, the TFA allows the policy to consistently outperform a variant with no attention mechanism. More importantly, the new policy is significantly more robust: it regularly recovers from severe physical disturbances (such as bumps causing it to drop the object) from which the baseline policy, i.e. with no visual attention, almost never recovers. In addition, we show that the proposed policy performs correctly in the presence of a wide class of visual disturbances, exhibiting a behavior reminiscent of human selective visual attention experiments. Our proposed approach consists of a VAE-GAN network which encodes the visual input and feeds it to a Motor network that moves the robot joints. Also, our approach benefits from a teacher network for the TFA that leverages textual input command to robustify the visual encoder against various types of disturbances.
Introduction
Deep visuomotor policies—systems that translate raw camera pixels directly into robot joint movements—have shown great promise in controlled environments. However, these systems are notoriously brittle. Standard models often encode the entire scene into their internal representation. Consequently, if a human waves a hand in front of the camera (a visual disturbance) or bumps the robot so it drops its cargo (a physical disturbance), the model's internal state becomes corrupted, leading to failure.
This research addresses the need for selective attention in robotics. By focusing on task-relevant objects and filtering out noise, robots can achieve the robustness necessary for real-world deployment. The authors propose a Task-Focused visual Attention (TFA) mechanism that uses natural language commands to guide the robot's focus.
Methodology
The proposed architecture is modular, comprising a Visual Network for perception and a Motor Network for control.
Visual Network (VAE-GAN)
The perception system utilizes a Variational Autoencoder (VAE) integrated with a Generative Adversarial Network (GAN).
- Encoder (E): Compresses the camera frame and a textual command encoding into a low-dimensional latent representation ($z$).
- Generator (G): Reconstructs both the original "real" frame and a "masked" version that highlights only the target object. This ensures $z$ captures task-critical information.
- Discriminator (D): Acts as a critic to ensure the generated images are realistic and correctly identifies object properties like color and type.
Teacher and Motor Networks
To train the attention mechanism without extensive manual labeling, a pre-trained Teacher Network identifies image regions corresponding to the text command. This self-supervised signal guides the Visual Network's attention. The Motor Network then takes the latent code $z$ through stacked LSTM layers and a Mixture Density Network (MDN) to output the robot's next joint angles.
Experimental Results
The system was evaluated using a Lynxmotion AL5D robot arm on tasks like picking and pushing various objects (e.g., red bowls, blue rings).
Performance and Robustness
In "benign" (undisturbed) conditions, the TFA-augmented model achieved a 64% mean success rate, compared to 43% for a baseline without attention. The most significant results appeared under disturbance. While the baseline policy's performance dropped to 5%, the TFA model maintained a 57% success rate.
Recovery Behavior
A key insight is the model's ability to recover from physical disturbances. Because the attention remains locked on the target object, the robot can "perceive" when it has dropped an item and re-initiate the grasp—a behavior rarely seen in standard end-to-end policies.
Conclusion
Integrating Task-Focused Attention into visuomotor policies significantly enhances robustness against both visual and physical disturbances. By forcing the latent representation to focus on task-relevant features through reconstruction and adversarial training, the robot achieves human-like selective attention. Future work will explore scaling to multi-object tasks and more complex natural language instructions.
Summary updated