UnSAMv2: Self-Supervised Learning Enables Segment Anything at Any Granularity
cs.CV, cs.AI, cs.LG
Submitted: 2025-11-17
Updated: 2026-10-10
Comments: Accepted by TMLR
Journal ref: Transactions on Machine Learning Research, 2026
Project page: https://yujunwei04.github.io/UnSAMv2-Project-Page
License: http://creativecommons.org/licenses/by/4.0/
The gist: The Segment Anything Model (SAM) family has become a widely adopted vision foundation model, but its ability to control segmentation granularity remains limited.
Terminology
Abstract
The Segment Anything Model (SAM) family has become a widely adopted vision foundation model, but its ability to control segmentation granularity remains limited. Users often need to refine results manually - by adding more prompts or selecting from pre-generated masks - to achieve the desired level of detail. This process can be ambiguous, as the same prompt may correspond to several plausible masks, and collecting dense annotations across all granularities is prohibitively expensive, making supervised solutions infeasible. To address this limitation, we introduce UnSAMv2, which can segment anything at any granularity without using any human annotations. UnSAMv2 extends the divide-and-conquer strategy of UnSAM by discovering abundant mask-granularity pairs and introducing a novel granularity control embedding that enables precise, continuous control over segmentation scale. Remarkably, with only 6 K unlabeled images and 0.02% additional parameters, UnSAMv2 substantially enhances SAM-2, enabling segmentation of anything at any granularity across interactive, whole-image, and video segmentation tasks. Furthermore, we introduce a language-guided segmentation pipeline that treats granularity as a predictable variable by grounding it in text semantics via an external vision-language model, improving upon the previous state of the art in 1-IoU (40.4 to 47.3). Across 11+ benchmarks, UnSAMv2 achieves consistent gains over SAM/SAM-2 baselines, improving NoC 90 (5.69 to 4.75), 1-IoU (58.0 to 73.1), and AR 1000 (49.6 to 68.3) by a large margin. Our work demonstrates that a small amount of unlabeled data can deliver large, practical improvements to strong supervised baselines. Our code, dataset, and demo are available at https://github.com/yujunwei04/UnSAMv2.
Sources
- ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth
- SOHES: Self-supervised Open-world Hierarchical Entity Segmentation
- Self-supervised Learning of Hybrid Part-aware 3D Representations of 2D Gaussians and Superquadrics
- Unsupervised Semantic Segmentation by Distilling Feature Correspondences
- RayZer: A Self-supervised Large View Synthesis Model
- RefCut: Interactive Segmentation with Reference Guidance
- DINOv2: Learning Robust Visual Features without Supervision
- SAM 2: Segment Anything in Images and Videos
- Localizing Objects with Self-Supervised Transformers and no Labels
- DINOv3
- Order-aware Interactive Segmentation
- SegGPT: Segmenting Everything In Context
- Track Anything: Segment Anything Meets Videos
- Depth Anything V2
- SAMPart3D: Segment Any Part in 3D Objects
- OmniPart: Part-Aware 3D Generation with Semantic Decoupling and Structural Cohesion
- Concerto: Joint 2D-3D Self-Supervised Learning Emerges Spatial Representations
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models