Correspondence as Video: Test-Time Adaption on SAM2 for Reference Segmentation in the Wild

Hao-Ran Wang, Ze-Kun Li, Jian Zhang, Lei Qi, Ying-Huan Shi
8/1/2025
diffusion-flow

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Large vision models like the Segment Anything Model (SAM) exhibit significant limitations when applied to downstream tasks in the wild. Consequently, reference segmentation, which leverages reference images and their corresponding masks to impart novel knowledge to the model, emerges as a promising new direction for adapting large vision models.

Show full abstract

However, existing reference segmentation approaches predominantly rely on meta-learning, which still necessitates an extensive meta-training process and brings massive data and computational cost. In this study, we propose a novel approach by representing the inherent correspondence between reference-target image pairs as a pseudo video. This perspective allows the latest version of SAM, known as SAM2, which is equipped with interactive video object segmentation (iVOS) capabilities, to be adapted to downstream tasks in a lightweight manner. We term this approach Correspondence As Video for SAM (CAV-SAM). CAV-SAM comprises two key modules: the Diffusion-Based Semantic Transition (DBST) module employs a diffusion model to construct a semantic transformation sequence, while the Test-Time Geometric Alignment (TTGA) module aligns the geometric changes within this sequence through test-time fine-tuning. We evaluated CAVSAM on widely-used datasets, achieving segmentation performance improvements exceeding 5% over SOTA methods. Our implementation is available at https://github.com/wanghr64/cav-sam.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025correspondence,
  title  = {Correspondence as Video: Test-Time Adaption on SAM2 for Reference Segmentation in the Wild},
  author = {Hao-Ran Wang and Ze-Kun Li and Jian Zhang and Lei Qi and Ying-Huan Shi},
  year   = {2025},
  eprint = {2508.07759},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2508.07759},
  journal = {IEEE International Conference on Computer Vision}
}

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

Discussion