RankSEG: A Consistent Ranking-based Framework for Segmentation

Ben Dai, Chunlin Li
6/27/2022
stat.MLcs.CVcs.LG

Official code: statmlben/rankseg (33 stars, Jupyter Notebook, MIT, PyTorch, last commit 2025-12-30).

Abstract

Segmentation has emerged as a fundamental field of computer vision and natural language processing, which assigns a label to every pixel/feature to extract regions of interest from an image/text. To evaluate the performance of segmentation, the Dice and IoU metrics are used to measure the degree of overlap between the ground truth and the predicted segmentation.

Show full abstract

In this paper, we establish a theoretical foundation of segmentation with respect to the Dice/IoU metrics, including the Bayes rule and Dice-/IoU-calibration, analogous to classification-calibration or Fisher consistency in classification. We prove that the existing thresholding-based framework with most operating losses are not consistent with respect to the Dice/IoU metrics, and thus may lead to a suboptimal solution. To address this pitfall, we propose a novel consistent ranking-based framework, namely RankDice/RankIoU, inspired by plug-in rules of the Bayes segmentation rule. Three numerical algorithms with GPU parallel execution are developed to implement the proposed framework in large-scale and high-dimensional segmentation. We study statistical properties of the proposed framework. We show it is Dice-/IoU-calibrated, and its excess risk bounds and the rate of convergence are also provided. The numerical effectiveness of RankDice/mRankDice is demonstrated in various simulated examples and Fine-annotated CityScapes, Pascal VOC and Kvasir-SEG datasets with state-of-the-art deep learning architectures.

View on arXivView PDF

Code Implementations(1)

statmlben/ranksegOfficial100%
PyTorchMIT

RankSEG: A consistent ranking-based framework for segmentation

332Jupyter Notebook, PythonMar 9, 202211 months agoMIT
adaptivecalibrationcityscapesdeep-learninggpu-computing+11 more

Similar Papers

Cite this paper

@article{dai2022rankseg,
  title  = {RankSEG: A Consistent Ranking-based Framework for Segmentation},
  author = {Ben Dai and Chunlin Li},
  year   = {2022},
  eprint = {2206.13086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.13086}
}

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

Discussion