2
stars
6
commits
2
linked in READMEs
Jul 2, 2025
updated
This repository hosts the training dataset introduced in the paper Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement.
Traditional methods for reasoning segmentation rely on supervised fine-tuning with categorical labels and simple descriptions, limiting its out-of-domain generalization and lacking explicit reasoning processes. To address these limitations, we propose Seg-Zero, a novel framework that demonstrates remarkable generalizability and derives explicit chain-of-thought reasoning through cognitive reinforcement. Seg-Zero introduces a decoupled architecture consisting of a reasoning model and a segmentation model. The reasoning model interprets user intentions, generates explicit reasoning chains, and produces positional prompts, which are subsequently used by the segmentation model to generate precious pixel-level masks. We design a sophisticated reward mechanism that integrates both format and accuracy rewards to effectively guide optimization directions. Trained exclusively via reinforcement learning with GRPO and without explicit reasoning data, Seg-Zero achieves robust zero-shot generalization and exhibits emergent test-time reasoning capabilities. Experiments show that Seg-Zero-7B achieves a zero-shot performance of 57.5 on the ReasonSeg benchmark, surpassing the prior LISA-7B by 18%. This significant improvement highlights Seg-Zero's ability to generalize across domains while presenting an explicit reasoning process.
This dataset is designed for training and evaluating models on reasoning-chain guided image segmentation tasks. It contains 2000 examples in the train split, with each entry comprising:
id: Unique identifier for the sample.problem: The reasoning problem or question.solution: The explicit reasoning chain or solution.image: The input image.img_height: Height of the image.img_width: Width of the image.This dataset supports the Seg-Zero framework, which demonstrates the following key features:
You can load the dataset using the Hugging Face datasets library:
from datasets import load_dataset
# Load the training split of the Seg-Zero dataset
dataset = load_dataset("Ricky06662/Seg-Zero", split="train")
# Access the first example
print(dataset[0])
# Example of accessing image and problem statement
print(f"Problem: {dataset[0]['problem']}")
dataset[0]['image'].save("first_image.png")
print("First image saved as first_image.png")
If you find this dataset or the associated work useful, please cite the paper:
@article{liu2025segzero,
title = {Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement},
author = {Liu, Yuqi and Peng, Bohao and Zhong, Zhisheng and Yue, Zihao and Lu, Fanbin and Yu, Bei and Jia, Jiaya},
journal = {arXiv preprint arXiv:2503.06520},
year = {2025}
}
4 commits
2 commits
2
stars
6
commits
2
linked in READMEs
Jul 2, 2025
updated
This repository hosts the training dataset introduced in the paper Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement.
Traditional methods for reasoning segmentation rely on supervised fine-tuning with categorical labels and simple descriptions, limiting its out-of-domain generalization and lacking explicit reasoning processes. To address these limitations, we propose Seg-Zero, a novel framework that demonstrates remarkable generalizability and derives explicit chain-of-thought reasoning through cognitive reinforcement. Seg-Zero introduces a decoupled architecture consisting of a reasoning model and a segmentation model. The reasoning model interprets user intentions, generates explicit reasoning chains, and produces positional prompts, which are subsequently used by the segmentation model to generate precious pixel-level masks. We design a sophisticated reward mechanism that integrates both format and accuracy rewards to effectively guide optimization directions. Trained exclusively via reinforcement learning with GRPO and without explicit reasoning data, Seg-Zero achieves robust zero-shot generalization and exhibits emergent test-time reasoning capabilities. Experiments show that Seg-Zero-7B achieves a zero-shot performance of 57.5 on the ReasonSeg benchmark, surpassing the prior LISA-7B by 18%. This significant improvement highlights Seg-Zero's ability to generalize across domains while presenting an explicit reasoning process.
This dataset is designed for training and evaluating models on reasoning-chain guided image segmentation tasks. It contains 2000 examples in the train split, with each entry comprising:
id: Unique identifier for the sample.problem: The reasoning problem or question.solution: The explicit reasoning chain or solution.image: The input image.img_height: Height of the image.img_width: Width of the image.This dataset supports the Seg-Zero framework, which demonstrates the following key features:
You can load the dataset using the Hugging Face datasets library:
from datasets import load_dataset
# Load the training split of the Seg-Zero dataset
dataset = load_dataset("Ricky06662/Seg-Zero", split="train")
# Access the first example
print(dataset[0])
# Example of accessing image and problem statement
print(f"Problem: {dataset[0]['problem']}")
dataset[0]['image'].save("first_image.png")
print("First image saved as first_image.png")
If you find this dataset or the associated work useful, please cite the paper:
@article{liu2025segzero,
title = {Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement},
author = {Liu, Yuqi and Peng, Bohao and Zhong, Zhisheng and Yue, Zihao and Lu, Fanbin and Yu, Bei and Jia, Jiaya},
journal = {arXiv preprint arXiv:2503.06520},
year = {2025}
}
4 commits
2 commits