NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Resolving Inconsistent Semantics in Multi-Dataset Image Segmentation

Qilong Zhangli, Di Liu, Abhishek Aich, Dimitris N. Metaxas, Samuel SchulterarXiv 2024 · DOI

Introduction

The pursuit of universal vision models often involves training on a diverse collection of datasets to enhance scale and robustness. However, merging multiple datasets introduces a significant challenge: inconsistent semantic "worldviews." For instance, one dataset might label a "person" as a single entity, while another focuses on constituent parts like "faces," "hats," or "shirts."

Traditional image segmentation assumes a mutually exclusive relationship where one pixel belongs to exactly one category. When these hierarchical or overlapping labels collide, standard models often produce incomplete masks or mislabel categories, as they struggle to reconcile conflicting supervision.

Figure 1: Overview of the challenges in multi-dataset training and the qualitative improvements offered by RESI.

The RESI Framework

To address these semantic conflicts, this paper introduces RESI, a framework designed to handle non-uniformly annotated data by leveraging language embeddings and dataset-specific query residuals. RESI builds upon the Mask2Former (M2F) architecture with three primary innovations:

1. Language-Based Classifiers

Instead of relying on a fixed one-hot classification head, RESI utilizes CLIP text embeddings. By mapping categories into a shared semantic space, the model can recognize that semantically similar labels (e.g., "sofa" and "couch") should share similar feature representations, facilitating knowledge transfer across datasets.

2. Label-space Specific Query Embeddings (LSQE)

The core of RESI is the LSQE module. While standard models use generic object queries to identify regions of interest, RESI introduces a learnable "residual" vector added to these queries based on the source dataset. This allows the model to maintain a shared "visual brain" while dynamically "tuning" its output to match the specific labeling granularity and style of a particular dataset.

3. ESF-OMI Post-processing

Standard panoptic segmentation post-processing is designed to eliminate overlaps. RESI introduces Enhanced Sequential Filling - Overlapping Mask Inference (ESF-OMI). This algorithm allows the model to preserve valid overlapping masks—such as a "face" mask nested within a "person" mask—rather than forcing a choice between them.

Figure 5: The RESI architecture during training and inference, highlighting the use of LSQE and CLIP-Text Encoders.

Evaluation and Results

The authors evaluated RESI across a wide range of datasets, including general-purpose sets (COCO, ADE20K) and specialized human-parsing sets (CIHP, CityScapesParts). To specifically measure performance in conflicting scenarios, they introduced new "Mixed Label Space" benchmarks and the Panoptic Instance Quality (PIQ) metric.

RESI demonstrated substantial improvements over state-of-the-art baselines:

  • Panoptic Segmentation: +9.1% PQ improvement.
  • Instance Segmentation: +12.1% AP improvement.
  • Semantic Segmentation: +1.6% mIoU improvement.
  • PIQ Metric: A 3.0% lead on the new overlapping mask evaluation.

Qualitatively, RESI avoids the "patchy" artifacts common in baseline models, successfully generating complete, hierarchical masks for both "whole" objects and their "parts."

Limitations and Future Outlook

While highly effective, RESI introduces additional computational overhead during inference. Because the model may need to process multiple label spaces, GFlops increase (e.g., from ~272 to ~447 for three datasets). Future research aims to optimize this process, potentially through more efficient open-vocabulary label merging strategies. Despite this, RESI represents a significant step toward truly universal and semantically aware image segmentation models.

Summary updated

BibTeX
@misc{zhangli2024resolving,
  author = {Qilong Zhangli and Di Liu and Abhishek Aich and Dimitris N. Metaxas and Samuel Schulter},
  title = {{Resolving Inconsistent Semantics in Multi-Dataset Image Segmentation}},
  year = {2024},
  eprint = {2409.09893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.09893},
}
Figure