General and Efficient Visual Goal-Conditioned Reinforcement Learning using Object-Agnostic Masks

Fahim Shahriar, Cheryl Wang, Alireza Azimi, Gautham Vasan, Hany Hamed Elanwar, A. Rupam Mahmood, Colin BellingerarXiv 2025 · DOI

Introduction

Goal-Conditioned Reinforcement Learning (GCRL) is a powerful framework for training robots to perform diverse tasks. However, the choice of goal representation significantly impacts learning efficiency and generalization. Common approaches like 3D coordinates require precise calibration, while raw images or text embeddings often struggle with unseen objects. This paper proposes a novel solution: using object-agnostic binary masks as both the goal representation and the reward signal.

The Challenge of Goal Representation

Traditional GCRL faces a trade-off between ease of use and performance. 3D coordinates are highly effective but difficult to obtain in unstructured environments. Conversely, visual goals (like target images) are easier to provide but the resulting policies often overfit to specific object appearances. Sparse rewards further exacerbate these issues, leading to slow convergence.

Mask-Based Reinforcement Learning

The authors introduce a dynamic, mask-based approach that treats the target object as a binary shape. By appending a binary mask to the visual input, the policy learns to interact with "blobs" rather than specific objects.

1. Dynamic Mask Representation

Instead of a static goal image, the system uses a binary mask that is updated at every time step. This provides a continuous visual cue of the target's location relative to the robot's perspective.

2. Reward from Mask Size

The system utilizes the pixel count of the target mask to formulate a dense reward. As the robot approaches the object, the mask grows larger, providing immediate feedback without requiring 3D geometric calculations. This dense signal allows for much faster training compared to sparse reward baselines.

Training efficiency of different goal representations in the Create3-Isaac-Sim environment.

3. Real-World Grounding

To bridge the gap between simulation and reality, the framework employs open-vocabulary detectors like Detic or Grounding DINO. This allows users to specify goals via text (e.g., "pick up the apple"), which the detector then converts into the binary mask required by the RL policy.

Experimental Results

The method was evaluated across multiple robotic platforms, including Franka and UR10e arms in simulation and real-world settings, as well as mobile navigation in Isaac Sim.

Efficiency and Convergence

The mask-based representation demonstrates superior learning efficiency. In mobile navigation tasks, the agent using masks converged significantly faster than those using one-hot encodings or CLIP embeddings, matching the performance of agents with access to privileged 3D state information.

Generalization and Accuracy

A key strength of the object-agnostic approach is its ability to generalize to unseen objects. Because the policy focuses on the mask shape rather than texture or color, it achieves near-perfect accuracy (99.9% in simulation) on objects not encountered during training.

Reaching accuracy across different goal representations, highlighting the superior generalization of mask-based agents on test objects.

In real-world tests, a UR10e arm trained entirely in simulation achieved a 96% success rate, demonstrating robust sim-to-real transfer even with "out-of-distribution" objects like plush toys. Furthermore, a Franka Panda arm was able to learn reaching tasks from scratch in the real world in approximately 60,000 steps, or just a few hours of training.

Conclusion

By leveraging object-agnostic masks, this research provides a path toward more general and efficient robotic learning. The approach simplifies the reward structure, enhances generalization to novel objects, and facilitates seamless transition from simulation to real-world deployment. Future work will explore handling complex occlusions and multi-stage task sequences.

Summary updated

BibTeX
@misc{shahriar2025general,
  author = {Fahim Shahriar and Cheryl Wang and Alireza Azimi and Gautham Vasan and Hany Hamed Elanwar and A. Rupam Mahmood and Colin Bellinger},
  title = {{General and Efficient Visual Goal-Conditioned Reinforcement Learning using Object-Agnostic Masks}},
  year = {2025},
  eprint = {2510.06277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.06277},
}
Figure