Generalizable Visual Reinforcement Learning with Segment Anything Model

Ziyu Wang, Yanjie Ze, Yifei Sun, Zhecheng Yuan, Huazhe Xu
12/28/2023
cs.LGcs.CVcs.RO

No official code found. Best implementation: wadiuvatzy/SAM-G (28 stars, MIT, last commit 2023-12-29).

Abstract

Learning policies that can generalize to unseen environments is a fundamental challenge in visual reinforcement learning (RL). While most current methods focus on acquiring robust visual representations through auxiliary supervision, pre-training, or data augmentation, the potential of modern vision foundation models remains underleveraged. In this work, we introduce Segment Anything Model for Generalizable visual RL (SAM-G), a novel framework that leverages the promptable segmentation ability of Segment Anything Model (SAM) to enhance the generalization capabilities of visual RL agents. We utilize image features from DINOv2 and SAM to find correspondence as point prompts to SAM, and then SAM produces high-quality masked images for agents directly. Evaluated across 8 DMControl tasks and 3 Adroit tasks, SAM-G significantly improves the visual generalization ability without altering the RL agents' architecture but merely their observations. Notably, SAM-G achieves 44% and 29% relative improvements on the challenging video hard setting on DMControl and Adroit respectively, compared to state-of-the-art methods. Video and code: https://yanjieze.com/SAM-G/

View on arXivView PDF

Code Implementations(1)

wadiuvatzy/SAM-GCommunity100%
MIT
282Shell, PythonDec 4, 20232 years agoMIT

Similar Papers

Cite this paper

@article{wang2023generalizable,
  title  = {Generalizable Visual Reinforcement Learning with Segment Anything Model},
  author = {Ziyu Wang and Yanjie Ze and Yifei Sun and Zhecheng Yuan and Huazhe Xu},
  year   = {2023},
  eprint = {2312.17116},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.17116v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.17116.svg)](https://codeofpaper.com/paper/2312.17116)

Discussion