Look Closer: Bridging Egocentric and Third-Person Views with Transformers for Robotic Manipulation

Rishabh Jangir, Nicklas Hansen, Sambaran Ghosal, Mohit Jain, Xiaolong Wang

TL;DR

This paper introduces a novel Reinforcement Learning (RL) framework for robotic manipulation that fuses global context from a static third-person camera with local detail from a wrist-mounted "egocentric" camera. By using a Transformer-based cross-view attention mechanism, the robot learns to "look closer" at critical points of interaction, enabling high-precision control and robust transfer from simulation to real-world hardware without needing meticulous camera calibration or privileged state information.

What Problem Does This Paper Address?

Precision robotic manipulation—like hammering a peg or inserting a key—is notoriously difficult to learn from visual feedback alone. Most current vision-based RL systems rely on a single, static third-person camera. This setup often lacks the resolution needed for fine-grained tasks and is highly sensitive to camera placement; a slight bump to the camera can break a policy trained in simulation (the "Sim2Real" gap).

While some researchers use multiple cameras or privileged information (like exact 3D object poses), these solutions often require expensive, time-consuming calibration and don't generalize well to unstructured real-world environments. The authors aim to create a system that is robust to uncalibrated cameras and can handle task variability by mimicking how humans use "visual fixation"—focusing their gaze on the most relevant parts of a task as it unfolds.

Methods

The core of the proposed method is a dual-view architecture fused by a Transformer:

  1. Dual-View Input: The agent receives two RGB streams: a third-person view for global scene context and an egocentric view from a camera on the robot's wrist. Because the wrist camera moves with the arm, the robot can actively control its viewpoint to get a better look at the workspace.
  2. Transformer Fusion: Instead of simply concatenating the images, the authors use separate ConvNet encoders to extract spatial feature maps from both views. These maps are then fed into a cross-view attention module.
  3. Features from the egocentric view act as "queries" to find relevant spatial information in the third-person view, and vice versa.
  4. This bidirectional attention allows the model to explicitly relate local details (like the gripper's proximity to a peg) to the global scene.
  5. End-to-End RL: The fused features are passed to a Soft Actor-Critic (SAC) policy. The entire network is trained end-to-end in simulation using task-based rewards, encouraging the robot to move its "eye" (the wrist camera) to positions that maximize its success.
Fig. 1. Multi-view robotic manipulation. We propose a method for vision-based robotic manipulation that fuses egocentric and third-person views using a cross-view attention mechanism. Our method learns a policy using reinforcement learning that successfully transfers from simulation to a real robot, and solves precision-based manipulation tasks directly from uncalibrated cameras, without access to state information, and with a high degree of variability in task configurations.

Datasets

The researchers evaluated their method on four precision-based tasks:

  • Reach: Reaching for a target disc.
  • Push: Pushing a cube to a goal.
  • Peg in Box: Inserting a peg into a target box.
  • Hammer: Hammering an out-of-position peg.

Training was conducted entirely in the MuJoCo physics engine using a simulated Ufactory xArm 7. For evaluation, the learned policies were transferred to a physical xArm 7 robot setup equipped with Intel RealSense cameras.

Key Insights and Ideas

  • Active Vision as a Policy: By mounting the camera on the wrist, vision becomes part of the action space. The robot doesn't just learn how to move; it learns where to look to succeed.
  • Spatial Fixation via Attention: The Transformer doesn't just "mix" the views; it performs a spatial lookup. Visualization of the attention maps shows the model focusing on points of contact and object boundaries, effectively "fixing" its attention on the most informative regions.
  • Robustness to the "Reality Gap": The combination of multi-view inputs and attention makes the system significantly more resilient to the lack of camera calibration. Even if the third-person camera is slightly off, the egocentric view provides the necessary local corrections to complete the task.

Key Results

The results demonstrate a massive improvement over standard baselines, particularly in the most challenging tasks:

  • Hammer Task (Real World): The proposed method achieved a 75% success rate on the physical robot. In comparison, a standard multi-view baseline (without cross-view attention) succeeded only 38% of the time, and a single-view baseline managed a meager 13%.
  • Sim2Real Stability: In the "Peg in Box" task, the success rate of single-view baselines plummeted from 80% in simulation to just 23% in the real world. The proposed method maintained a steady 80% success rate across both environments.
  • Calibration Resilience: In simulation tests with randomized camera perturbations (shifting the camera's pose and field of view), the attention-based method showed significantly less performance degradation than simpler fusion techniques.
Fig. 2. Real robot setup. Image depicting our real-world environment for the Peg in Box task. The third-person camera is static, and the egocentric camera moves along with the robot arm. See Figure 1 for camera view samples.

Limitations and Future Work

While the method is highly effective, the authors note a few areas for improvement:

  • Sim2Real Gap in Complex Tasks: Although the method performs well, there is still a small performance drop in the Hammer task when moving from simulation (86%) to the real world (75%).
  • Scalability: The current work focuses on two views. While the authors state the Transformer architecture can "trivially" scale to $n$ views, they haven't yet demonstrated this in practice.
  • Reward Engineering: The system currently relies on dense rewards in simulation. Future iterations could explore learning from sparse rewards or human demonstrations to further reduce the engineering effort required for new tasks.

Summary updated

BibTeX
@article{jangir2022look,
  author = {Rishabh Jangir and Nicklas Hansen and Sambaran Ghosal and Mohit Jain and Xiaolong Wang},
  title = {{Look Closer: Bridging Egocentric and Third-Person Views with Transformers for Robotic Manipulation}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  url = {https://openreview.net/forum?id=odpr_gYphUj},
}
Figure