Think Before You Segment: High-Quality Reasoning Segmentation with GPT Chain of Thoughts

Shiu-hong Kao, Yu-Wing Tai, Chi-Keung Tang
3/10/2025
10 citations
cs.CV

No official code found. Best implementation: DanielSHKao/ThinkFirst (22 stars, MIT, last commit 2025-06-28).

Abstract

Reasoning segmentation is a challenging vision-language task that aims to output the segmentation mask with respect to a complex, implicit, and even non-visual query text. Previous works incorporated multimodal Large Language Models (MLLMs) with segmentation models to approach the difficult problem.

Show full abstract

However, their segmentation quality often falls short in complex cases, particularly when dealing with out-of-domain objects with intricate structures, blurry boundaries, occlusions, or high similarity with surroundings. In this paper, we introduce ThinkFirst, a training-free reasoning segmentation framework that leverages GPT's chain of thought to address these challenging cases. Our approach allows GPT-4o or other powerful MLLMs to generate a detailed, chain-of-thought description of an image. This summarized description is then passed to a language-instructed segmentation assistant to aid the segmentation process. Our framework allows users to easily interact with the segmentation agent using multimodal inputs, such as easy text and image scribbles, for successive refinement or communication. We evaluate the performance of ThinkFirst on diverse objects. Extensive experiments show that, this zero-shot-CoT approach significantly improves the vanilla reasoning segmentation agent, both qualitatively and quantitatively, while being less sensitive or critical to user-supplied prompts after Thinking First.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation for "Think Before You Segment: High-Quality Reasoning Segmentation with GPT Chain of Thoughts"

220Mar 11, 20251 years agoMIT

Similar Papers

Cite this paper

@article{kao2025think,
  title  = {Think Before You Segment: High-Quality Reasoning Segmentation with GPT Chain of Thoughts},
  author = {Shiu-hong Kao and Yu-Wing Tai and Chi-Keung Tang},
  year   = {2025},
  eprint = {2503.07503},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.07503v4}
}

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

Discussion