This repository contains the
VisionReasoner-7B model, developed as part of the novel
Seg-Zero framework, presented in the paper
Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement. This model is also associated with the paper
VisionReasoner: Unified Visual Perception and Reasoning via Reinforcement Learning.
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.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4# load model
5model = AutoModelForCausalLM.from_pretrained("Ricky06662/VisionReasoner-7B")
6tokenizer = AutoTokenizer.from_pretrained("Ricky06662/VisionReasoner-7B")
For full inference examples, including image processing and input formatting, please refer to the project's GitHub repository.
1@article{liu2025segzero,
2 title = {Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement},
3 author = {Liu, Yuqi and Peng, Bohao and Zhong, Zhisheng and Yue, Zihao and Lu, Fanbin and Yu, Bei and Jia, Jiaya},
4 journal = {arXiv preprint arXiv:2503.06520},
5 year = {2025}
6}
7
8@article{liu2025visionreasoner,
9 title = {VisionReasoner: Unified Visual Perception and Reasoning via Reinforcement Learning},
10 author = {Liu, Yuqi and Qu, Tianyuan and Zhong, Zhisheng and Peng, Bohao and Liu, Shu and Yu, Bei and Jia, Jiaya},
11 journal = {arXiv preprint arXiv:2505.12081},
12 year = {2025}
13}