Segment and Caption Anything

Xiaoke Huang, Jianfeng Wang, Yansong Tang, Zheng Zhang, Han Hu +3 more
2/14/2026

No official code found. Best implementation: xk-huang/segment-caption-anything (232 stars, Apache-2.0, last commit 2024-09-30).

Abstract

We propose a method to efficiently equip the Segment Anything Model (SAM) with the ability to generate regional captions. SAM presents strong generalizability to segment anything while is short for semantic understanding. By introducing a lightweight query-based feature mixer, we align the region-specific features with the embedding space of language models for later caption generation. As the number of trainable parameters is small (typically in the order of tens of millions), it costs less computation, less memory usage, and less communication bandwidth, resulting in both fast and scalable training. To address the scarcity problem of regional caption data, we propose to first pretrain our model on objection detection and segmentation tasks. We call this step weak supervision pretraining since the pretraining data only contains category names instead of full-sentence descriptions. The weak supervision pretraining al-lows us to leverage many publicly available object detection and segmentation datasets. We conduct extensive experiments to demonstrate the superiority of our method and validate each design choice. This work serves as a step-ping stone towards scaling up regional captioning data and sheds light on exploring efficient ways to augment SAM with regional semantics. The project page, along with the associated code, can be accessed via the following link.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR'24] The repository provides code for running inference and training for "Segment and Caption Anything" (SCA) , links for downloading the trained model checkpoints, and example notebooks / gradio demo that show how to use the model.

23212HTML, ShellNov 17, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{huang2026segment,
  title  = {Segment and Caption Anything},
  author = {Xiaoke Huang and Jianfeng Wang and Yansong Tang and Zheng Zhang and Han Hu and Jiwen Lu and Lijuan Wang and Zicheng Liu},
  year   = {2026},
  eprint = {2312.00869},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.00869},
  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.00869.svg)](https://codeofpaper.com/paper/2312.00869)

Discussion