CoReS: Orchestrating the Dance of Reasoning and Segmentation

Xiaoyi Bao, Siyang Sun, Shuailei Ma, Kecheng Zheng, Yuxin Guo, Guosheng Zhao, Yun Zheng, Xingang Wang

Abstract

The reasoning segmentation task, which demands a nuanced comprehension of intricate queries to accurately pinpoint object regions, is attracting increasing attention. However, Multi-modal Large Language Models (MLLM) often find it difficult to accurately localize the objects described in complex reasoning contexts. We believe that the act of reasoning segmentation should mirror the cognitive stages of human visual search, where each step is a progressive refinement of thought toward the final object. Thus we introduce the Chains of Reasoning and Segmenting (CoReS) and find this top-down visual hierarchy indeed enhances the visual search process. Specifically, we propose a dual-chain structure that generates multi-modal, chain-like outputs to aid the segmentation process. Furthermore, to steer the MLLM's outputs into this intended hierarchy, we incorporate in-context inputs as guidance. Extensive experiments demonstrate the superior performance of our CoReS, which surpasses the state-of-the-art method by 6.5% on the ReasonSeg dataset.

Introduction: The Challenge of Reasoning Segmentation

While Multi-modal Large Language Models (MLLMs) have become adept at understanding text and images, they often stumble on reasoning segmentation. This task requires the model to interpret a complex query (e.g., "Find the part of the car essential for motion and supporting the vehicle's weight") and produce a precise pixel-level mask.

Existing state-of-the-art models like LISA often fail because they attempt to jump directly to the final object. In complex scenes, the model might get "distracted" by semantically similar objects. For instance, when asked for the part that provides a dog's sense of smell, a model might incorrectly segment the eyes instead of the nose. This suggests that MLLMs lack the structured, step-by-step visual search process that humans naturally use to navigate complex environments.

Figure 1: Comparison between the standard LISA approach and the proposed CoReS method. CoReS avoids common distractions by following a hierarchical search process.

Methods: The Dual-Modal Dual-Chain Structure

To address these limitations, CoReS introduces a Dual-Modal Dual-Chain structure designed to mirror human cognitive stages. This approach breaks down the reasoning process into a top-down visual hierarchy, identifying a broad location before pinpointing a specific object.

1. Chain-of-Reasoning (CoR)

Instead of generating a direct segmentation mask, the MLLM is prompted to output a structured textual response: "It appears on [LOC]. It is [SEG]." This forces the model to first identify the broader context or location ([LOC]) before focusing on the specific target ([SEG]). By verbalizing the hierarchy, the model establishes a logical anchor for the visual task.

2. Chain-of-Segmenting (CoS)

This is the visual counterpart to the textual reasoning. The model generates an initial "soft" mask for the location ([LOC]), which then serves as a visual prompt for the final segmentation ([SEG]). A Token Refiner uses cross-attention to calibrate the text tokens with visual features from the intermediate steps, ensuring the "thought process" stays grounded in the image data.

3. In-Context Guidance

To teach the MLLM this new hierarchical logic without requiring massive retraining, CoReS utilizes "in-context" examples. By providing a few text-only Q&A pairs in the prompt that demonstrate this top-down reasoning, the model learns to apply the same rules to the visual task at hand. The system is built on top of the LLaVA framework and utilizes the Segment Anything Model (SAM) as its mask decoder.

Figure 2: The detailed architecture of CoReS, illustrating the flow from In-Context Input to the Chain-of-Reasoning and finally the Chain-of-Segmenting.

Datasets and Evaluation

The model was trained and evaluated using a variety of benchmarks to test its robustness across different levels of complexity:

  • ReasonSeg: The primary benchmark for reasoning segmentation.
  • Referring Segmentation Datasets: refCOCO, refCOCO+, and refCOCOg.
  • Part Segmentation Datasets: PartImageNet and PascalPart.
  • ReasonPart: A new, more challenging benchmark constructed by the authors specifically to test fine-grained part segmentation driven by complex reasoning.

Key Results and Insights

CoReS demonstrates significant improvements over existing methods:

  • State-of-the-Art Performance: CoReS outperformed LISA by 6.5% on the ReasonSeg dataset.
  • Complex Query Handling: On the newly created ReasonPart benchmark, CoReS showed an even more dramatic lead, outperforming LISA by 6.8% in gIoU and approximately 15% in cIoU.
  • Hierarchy Prevents Hallucination: By identifying the "parent" object or scene first (e.g., "the face"), the model effectively masks out distractors in other parts of the image, leading to much higher precision.
  • Zero-Shot Superiority: Remarkably, the "un-tuned" version of CoReS (using only in-context guidance) outperformed the fine-tuned version of LISA. This suggests that the structure of the reasoning process is more critical than simply increasing the volume of training data.

Limitations and Future Work

While the two-step chain (Location -> Object) provided a massive boost, the authors found that moving to a three-step chain yielded diminishing returns. This suggests that current reasoning datasets might not yet be complex enough to require deeper hierarchies, or that longer chains introduce optimization difficulties. Future work will explore extending this "Chain-of-Segmenting" approach to other dense prediction tasks, such as depth estimation or object detection in highly cluttered environments.

Summary updated

BibTeX
@inproceedings{bao2024cores,
  author = {Xiaoyi Bao and Siyang Sun and Shuailei Ma and Kecheng Zheng and Yuxin Guo and Guosheng Zhao and Yun Zheng and Xingang Wang},
  title = {{CoReS: Orchestrating the Dance of Reasoning and Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=KGbkyTMtIZ},
}
Figure