UniGS: Unified Representation for Image Generation and Segmentation

Lu Qi, Lehan Yang, Weidong Guo, Yu Xu, Bo Du +2 more
2/14/2026

No official code found. Best implementation: qqlu/Entity (1,043 stars, PyTorch, last commit 2023-11-30).

Abstract

This paper introduces a novel unified representation of diffusion models for image generation and segmentation. Specifically, we use a colormap to represent entity-level masks, addressing the challenge of varying entity numbers while aligning the representation closely with the image RGB domain. Two novel modules, including the location-aware color palette and progressive dichotomy module, are proposed to support our mask representation. On the one hand, a location-aware palette guarantees the colors' consistency to entities' locations. On the other hand, the progressive dichotomy module can efficiently decode the synthesized colormap to high-quality entity-level masks in a depth-first binary search without knowing the cluster numbers. To tackle the issue of lacking large-scale segmentation training data, we employ an inpainting pipeline and then improve the flexibility of diffusion models across various tasks, including inpainting, image synthesis, referring segmentation, and entity segmentation. Comprehensive experiments validate the efficiency of our approach, demonstrating comparable segmentation mask quality to state-of-the-art and adaptability to multiple tasks.

View on arXivView PDF

Code Implementations(1)

qqlu/EntityCommunity100%
PyTorch

EntitySeg Toolbox: Towards Open-World and High-Quality Image Segmentation

1,04361C, C++Jul 24, 20212 years agoNOASSERTION
cnncomputer-visioncondinstdeep-learningdetectron2+11 more

Similar Papers

Cite this paper

@article{qi2026unigs,
  title  = {UniGS: Unified Representation for Image Generation and Segmentation},
  author = {Lu Qi and Lehan Yang and Weidong Guo and Yu Xu and Bo Du and Varun Jampani and Ming-Hsuan Yang},
  year   = {2026},
  eprint = {2312.01985},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.01985},
  journal = {CVPR 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.01985.svg)](https://codeofpaper.com/paper/2312.01985)

Discussion