Segment Anything without Supervision
XuDong Wang, Jingfeng Yang, Trevor Darrell
TL;DR
UnSAM advances segmentation by removing the dependence on large-scale human annotations. It employs a divide-and-conquer strategy to generate rich, hierarchical pseudo-masks from unlabeled images, enabling both automatic whole-image and promptable segmentation without supervision. Through self-training and strategic fusion with SA-1B ground-truth, UnSAM achieves competitive zeros-shot performance with 1% of SA-1B data and even surpasses fully supervised SAM in several settings (notably via UnSAM+). The results demonstrate the practical impact of unsupervised, multi-granular segmentation for open-world tasks and offer a scalable path toward less biased, more detailed scene understanding. The approach also provides a transferable framework for integrating unsupervised masks with supervised data to boost performance across diverse datasets.
Abstract
The Segmentation Anything Model (SAM) requires labor-intensive data labeling. We present Unsupervised SAM (UnSAM) for promptable and automatic whole-image segmentation that does not require human annotations. UnSAM utilizes a divide-and-conquer strategy to "discover" the hierarchical structure of visual scenes. We first leverage top-down clustering methods to partition an unlabeled image into instance/semantic level segments. For all pixels within a segment, a bottom-up clustering method is employed to iteratively merge them into larger groups, thereby forming a hierarchical structure. These unsupervised multi-granular masks are then utilized to supervise model training. Evaluated across seven popular datasets, UnSAM achieves competitive results with the supervised counterpart SAM, and surpasses the previous state-of-the-art in unsupervised segmentation by 11% in terms of AR. Moreover, we show that supervised SAM can also benefit from our self-supervised labels. By integrating our unsupervised pseudo masks into SA-1B's ground-truth masks and training UnSAM with only 1% of SA-1B, a lightly semi-supervised UnSAM can often segment entities overlooked by supervised SAM, exceeding SAM's AR by over 6.7% and AP by 3.9% on SA-1B.
