SegRefiner: Towards Model-Agnostic Segmentation Refinement with Discrete Diffusion Process

Mengyu Wang, Henghui Ding, J. Liew, Jiajun Liu, Yao Zhao +1 more
2/12/2026

No official code found. Best implementation: MengyuWang826/SegRefiner (222 stars, Apache-2.0, last commit 2024-01-21).

Abstract

In this paper, we explore a principal way to enhance the quality of object masks produced by different segmentation models. We propose a model-agnostic solution called SegRefiner, which offers a novel perspective on this problem by interpreting segmentation refinement as a data generation process. As a result, the refinement process can be smoothly implemented through a series of denoising diffusion steps. Specifically, SegRefiner takes coarse masks as inputs and refines them using a discrete diffusion process. By predicting the label and corresponding states-transition probabilities for each pixel, SegRefiner progressively refines the noisy masks in a conditional denoising manner. To assess the effectiveness of SegRefiner, we conduct comprehensive experiments on various segmentation tasks, including semantic segmentation, instance segmentation, and dichotomous image segmentation. The results demonstrate the superiority of our SegRefiner from multiple aspects. Firstly, it consistently improves both the segmentation metrics and boundary metrics across different types of coarse masks. Secondly, it outperforms previous model-agnostic refinement methods by a significant margin. Lastly, it exhibits a strong capability to capture extremely fine details when refining high-resolution images. The source code and trained models are available at https://github.com/MengyuWang826/SegRefiner.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

SegRefiner: Towards Model-Agnostic Segmentation Refinement with Discrete Diffusion Process

22216Shell, PythonSep 26, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2026segrefiner,
  title  = {SegRefiner: Towards Model-Agnostic Segmentation Refinement with Discrete Diffusion Process},
  author = {Mengyu Wang and Henghui Ding and J. Liew and Jiajun Liu and Yao Zhao and Yunchao Wei},
  year   = {2026},
  eprint = {2312.12425},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.12425},
  journal = {NEURIPS 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.12425.svg)](https://codeofpaper.com/paper/2312.12425)

Discussion