Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation

Haojie Zhang, Yongyi Su, Xun Xu, Kui Jia
2/14/2026

No official code found. Best implementation: zhang-haojie/wesam (180 stars, MIT, last commit 2024-08-18). 1 more below.

Abstract

The success of large language models has inspired the computer vision community to explore image segmentation foundation model that is able to zero/few-shot generalize through prompt engineering. Segment-Anything (SAM), among others, is the state-of-the-art image segmentation foundation model demonstrating strong zero/few-shot generalization. Despite the success, recent studies reveal the weakness of SAM under strong distribution shift. In particular, SAM performs awkwardly on corrupted natural images, camouflaged images, medical images, etc. Motivated by the observations, we aim to develop a self-training based strategy to adapt SAM to target distribution. Given the unique challenges of large source dataset, high computation cost and incorrect pseudo label, we propose a weakly supervised self-training architecture with anchor regularization and low-rank finetuning to improve the robustness and computation efficiency of adaptation. We validate the effectiveness on 5 types of downstream segmentation tasks including natural clean/corrupted images, medical images, camouflaged images and robotic images. Our proposed method is task-agnostic in nature and outperforms pre-trained SAM and state-of-the-art domain adaptation methods on almost all downstream tasks with the same testing prompt inputs.

View on arXivView PDF

Code Implementations(2)

zhang-haojie/wesamCommunity100%
MIT

[CVPR 2024] Code for "Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation"

18011PythonNov 30, 20232 years agoMIT
MIT

这是一个基于"Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation"的图像分割工具

00CSS, HTMLJun 30, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhang2026improving,
  title  = {Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation},
  author = {Haojie Zhang and Yongyi Su and Xun Xu and Kui Jia},
  year   = {2026},
  eprint = {2312.03502},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.03502},
  journal = {CVPR 2023 2023}
}

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.03502.svg)](https://codeofpaper.com/paper/2312.03502)

Discussion