Source-linked AI summary

A Generalist Framework for Panoptic Segmentation of Images and Videos

Ting Chen, Lala Li, Saurabh Saxena, Geoffrey Hinton, David J. Fleet

arXiv:2210.06366v4cs.CVcs.AIcs.LGcs.MM

TL;DR

Panoptic segmentation requires predicting semantic labels and instance IDs for every pixel, despite interchangeable instance IDs creating a one-to-many mapping. This paper models panoptic masks with conditional discrete diffusion, adding past predictions for streaming video. It reports competitive performance against state-of-the-art methods in similar settings.

  • Problem

    Interchangeable instance IDs make panoptic segmentation a one-to-many mapping problem, while existing approaches rely on task-specific architectures and losses.

    Source: §1 · p. 1
  • Method

    The paper generates discrete panoptic masks conditioned on images and, for streaming video, adds past mask predictions as conditioning.

    Source: §1 · p. 1, §3.4 · p. 5
  • Results

    The approach performs competitively with state-of-the-art methods in similar settings.

    Source: §1 · p. 2
  • Takeaways & Limitations

    The video model uses past mask predictions as conditioning and can learn to track and segment objects automatically.

    Source: §1 · p. 1

    The current empirical result remains behind well-tuned pipelines in existing systems, although the approach is described as competitive and practically usable.

    Source: §6 · p. 8

Abstract

from arXiv · show

Panoptic segmentation assigns semantic and instance ID labels to every pixel of an image. As permutations of instance IDs are also valid solutions, the task requires learning of high-dimensional one-to-many mapping. As a result, state-of-the-art approaches use customized architectures and task-specific loss functions. We formulate panoptic segmentation as a discrete data generation problem, without relying on inductive bias of the task. A diffusion model is proposed to model panoptic masks, with a simple architecture and generic loss function. By simply adding past predictions as a conditioning signal, our method is capable of modeling video (in a streaming setting) and thereby learns to track object instances automatically. With extensive experiments, we demonstrate that our simple approach can perform competitively to state-of-the-art specialist methods in similar settings.

1. Introduction

Panoptic segmentation combines per-pixel semantic classes with instance identities, but interchangeable instance IDs make it a one-to-many prediction problem. The paper addresses this challenge with conditional discrete-mask generation and reports competitive results on image and video datasets.

  • Panoptic segmentation assigns each pixel a semantic class and an instance ID, combining semantic and instance segmentation into a scene representation.Source: §1 · p. 1
  • Interchangeable instance IDs create a one-to-many mapping from an image to valid ID assignments, while traditional and end-to-end approaches use multi-stage pipelines or task-specific designs [34] [66] [40] [14].End-to-end approaches also rely on customized architectures and sophisticated losses [58] [17] [70] [16] [35] [68] [33].Source: §1 · p. 1
  • The method generates discrete panoptic masks conditioned on an image, and adds past predictions as conditioning for streaming video, where it can learn to track and segment objects automatically.Source: §1 · p. 1
  • A 512×1024 panoptic mask contains more than 1M discrete tokens, motivating a diffusion model that handles large masks directly using analog bits without an intermediate latent space.Source: §1 · pp. 1–2
  • The proposed approach performs competitively with state-of-the-art methods in similar settings.Source: §1 · p. 2

2. Preliminaries

The paper represents each panoptic mask with category and instance-ID channels, and learns an image-conditioned model to generate it. It motivates diffusion for large masks and describes analog-bit conversion for applying continuous diffusion to discrete labels.

  • A panoptic mask has two channels: category labels and instance IDs, which are randomly reassigned during training because their permutations preserve the instances.Source: §2 · p. 2
  • The model learns image-conditional panoptic-mask generation by maximizing the log probability of each training mask given its image.Masks may contain hundreds of thousands or millions of discrete tokens, making generative modeling challenging, particularly for autoregressive models.Source: §2 · p. 2
  • Diffusion trains a denoising network and generates target data in parallel with fewer iterations than pixels, making it more effective for high-dimensional data than autoregressive generation.Source: §2 · p. 2
  • Training samples noisy masks from clean data using noise, a uniformly sampled time, and a decreasing schedule, then learns a network to predict the clean data or noise with an ℓ2 loss.Source: §2 · p. 2
  • At inference, generation starts from noise and repeatedly applies the denoising function through reverse state transitions to produce a sample.Source: §2 · p. 2
  • Bit Diffusion converts discrete tokens into analog-bit representations for continuous diffusion, then quantizes generated values into categorical variables.Source: §2 · p. 2

3. Method

Pix2Seq-D formulates panoptic segmentation as discrete mask generation conditioned on image pixels and uses a diffusion-based architecture, training procedure, and iterative inference. For video, it conditions on past mask predictions, which lets the model learn to track and segment instances across frames.

3. Method

  • Pix2Seq-D formulates panoptic segmentation as discrete data generation conditioned on pixels, adapting the Pix2Seq framing to dense prediction.The method is based on Bit Diffusion.Source: §3 · p. 2

3.1. Architecture

  • Separating the image encoder from the mask decoder lets the encoder run once while the decoder iteratively refines the panoptic mask.The encoder maps pixels to feature vectors; the decoder reads out the mask from those features.Source: §3.1 · p. 2, Figure 2 · p. 3

3.2. Training Algorithm

  • Training conditionally denoises analog bits representing noisy panoptic masks, and scaling them to b = 0.1 makes denoising harder than b = 1.0.The authors report that b = 0.1 works substantially better than the default scaling of 1.0.Source: §3.2 · p. 3
  • The decoder is trained with softmax cross entropy over logits for base categories, while reverse diffusion uses its analog-bit predictions.This lets the network model the underlying category distribution rather than treating analog bits as real numbers.Source: §3.2 · p. 4
  • Adaptive loss weighting gives tokens from smaller instances higher weight, with p = 0 yielding uniform weighting.The per-token weights depend on the instance pixel count and the tunable parameter p.Source: §3.2 · p. 4, Figure 4 · p. 4

3.3. Inference Algorithm

  • Inference starts from random noise and iteratively refines the mask; only the decoder runs during those iterations.The time-interval parameter td is adjustable at inference time.Source: §3.3 · p. 4

3.4. Extension to Videos

  • For streaming video, the model conditions on the current image and past mask predictions, learning to track and segment instances across frames without explicit instance matching through time.The past masks are concatenated with the noisy mask input, while the rest of the model remains unchanged.Source: §3.4 · p. 5, Figure 5 · p. 5

4. Experiments

Pix2Seq-D performs competitively with specialist methods on image panoptic segmentation and on par with state-of-the-art methods on DAVIS video object segmentation. Experiments also examine training and inference choices and show examples that capture small objects in dense scenes.

4.1. Setup and Implementation Details

  • Experiments use MS-COCO, Cityscapes, and unsupervised DAVIS; models train mainly on COCO, transfer by fine-tuning, and use staged-resolution COCO training.Default sampling uses 20 steps on COCO and 32/8 on DAVIS.Source: §4.1 · p. 5

4.2. Main Results

  • On MS-COCO, Pix2Seq-D is competitive with ResNet-50 specialists and significantly better and more efficient than UViM; on DAVIS, it is on par with state-of-the-art methods.The DAVIS comparison is for unsupervised video object segmentation.Source: §4.2 · pp. 5–6, Table 1 · p. 6, Table 2 · p. 6

4.3. Ablations on Training

  • On MS-COCO, 0.1 scaling beats 1.0, cross-entropy substantially beats ℓ2, and p = 0.2 beats uniform loss weighting.The ablations compare input scaling, loss functions, and loss weighting.Source: §4.3 · p. 6, Table 3 · p. 6, Table 4 · p. 6

4.4. Ablations on Inference

  • On MS-COCO, 20 inference steps are near-optimal; intermediate td values (2–3) perform best, while choosing a small-instance threshold brings only small gains.These are inference-time ablations.Source: §4.4 · p. 7, Figure 6 · p. 7
  • On DAVIS, more steps help the first frame; using 32 first-frame and 8 later-frame steps reduces total sampling, while 8 then 1 still reaches J &F 67.3.The first frame requires more steps because of the cold start.Source: §4.4 · p. 7, Figure 7 · p. 7

4.5. Case study

  • Examples on MS-COCO, Cityscapes, and DAVIS show Pix2Seq-D capturing small objects in dense scenes.Source: §4.5 · p. 7

5. Related Work

Prior panoptic methods use multistage pipelines or customized end-to-end designs, while video segmentation methods also address tracking. Pix2Seq-D uses discrete mask generation and transfers to unsupervised video object segmentation with little change to its pipeline.

5. Related Work

  • Earlier image panoptic methods use multistage pipelines; end-to-end transformer methods still rely on customized mask-generation and fusion designs and matching losses.Source: §5 · p. 7
  • Pix2Seq-D treats panoptic segmentation as image-conditioned discrete mask generation without task-specific inductive biases, yielding a simpler design extendable to video.Source: §5 · p. 7
  • Video segmentation spans VOS, VIS, and VPS and combines segmentation with tracking; existing approaches use multistage pipelines or specialized end-to-end losses.Source: §5 · p. 7
  • For UVOS, COCO-pretrained Pix2Seq-D is fine-tuned without manual initialization while architectures, losses, augmentations, and sampling remain largely unchanged.Source: §5 · p. 7
  • Generalist vision models are mostly autoregressive, whereas Pix2Seq-D uses Bit Diffusion; earlier segmentation diffusion models did not model discrete masks or video segmentation.Source: §5 · pp. 7–8

6. Conclusion and Future Work

The paper presents a simple framework for panoptic segmentation of images and videos using conditional generative models of discrete masks. Its current results are competitive and practically usable, though still behind well-tuned existing systems.

6. Conclusion and Future Work

  • The framework models image and video panoptic segmentation with conditional generative models of discrete masks.The experiments model 106 discrete tokens, a scale the paper says is difficult for other generative segmentation models.Source: §6 · p. 8
  • The paper reports modeling 106 discrete tokens in its experiments, which it says is difficult for other existing generative segmentation models.Source: §6 · p. 8
  • The empirical results remain behind well-tuned existing systems, although the approach is described as competitive and practically usable.Source: §6 · p. 8
  • The authors identify the architecture, modeling choices, training procedure, and inference-step count as areas for further improvement.They mention progressive distillation as one technique for reducing inference steps.Source: §6 · p. 8

A. Algorithm details

The appendix supplies implementation details from Bit Diffusion and includes binary encoding and decoding algorithms. It also gives a DDIM update step that estimates the sample at a later time.

A. Algorithm details

  • The appendix reproduces implementation details from Bit Diffusion for functions in Algorithms 1 and 2.Source: A. Algorithm details · p. 12
  • Algorithm 3 is identified as the binary encoding and decoding algorithms.Source: A. Algorithm details · p. 12
  • The `ddim_step` function estimates x at the next time using the current sample, a prediction, and the two time values.The step clips the prediction and applies a DDIM update.Source: A. Algorithm details · p. 12

B. More details on training and inference hyper-parameters

The appendix lists dataset-specific training and evaluation settings for MS-COCO, Cityscapes, and DAVIS. It also identifies tables for Cityscapes results and resolution ablations.

B. More details on training and inference hyper-parameters

  • MS-COCO mask-decoder pretraining uses 128×128 masks for 800 epochs, batch size 512, and scale jittering strength [1.0, 3.0].The stated shared settings include input scaling 0.1, loss weighting p = 0.2, learning rate 1e−4, and EMA decay 0.999.Source: B. More details on training and… · p. 12
  • Cityscapes fine-tuning uses 800 epochs, batch size 16, and 1024×2048 images with 512×1024 masks, without scale jittering.Evaluation resizes predictions to 1024×2048 and filters annotations with fewer than 80 pixels.Source: B. More details on training and… · p. 12
  • DAVIS fine-tuning uses 20k steps and batch size 32, with 512×1024 images and 256×512 masks.Evaluation runs inference 50 times and reports the mean; the stated standard deviation for J &F is around 1.5.Source: B. More details on training and… · p. 12
  • Table 6 is labeled as Cityscapes validation-set results.Source: Table 6 · p. 12
  • Table 7 is labeled as a Cityscapes validation-set ablation over image and panoptic-mask sizes, trained for 100 epochs.Source: Table 7 · p. 12

C. Results on Cityscape

The Cityscapes section compares validation results with prior work and reports that larger image and panoptic-mask sizes are important.

C. Results on Cityscape

D. Results on KITTI-STEP

On KITTI-STEP, Pix2seq-D produced decent preliminary results but remained behind the state of the art despite minimal tuning or changes. Inference was streaming and limited to videos of up to 400 frames, with one longer validation video split in two.

D. Results on KITTI-STEP

  • KITTI-STEP video panoptic training retained DAVIS configurations at 384x1248; inference used td=1.5 and 10 sampling steps.These were the preliminary results reported in Table 8.Source: D. Results on KITTI-STEP · p. 12
  • Pix2seq-D achieved decent KITTI-STEP results, though behind the state of the art, despite minimal tuning or changes.The comparison covers methods with ResNet-50 backbones.Source: D. Results on KITTI-STEP · pp. 12–13, Table 8 · p. 13
  • Inference covered videos up to 400 frames; one longer validation video was split in two, which the authors expect to have negligible metric impact.Unlike methods that infer on video segments and stitch them afterward, Pix2seq-D processes the video in a streaming fashion.Source: D. Results on KITTI-STEP · p. 13

E. Extra Visualization

The visualizations show iterative refinement of panoptic masks and examples from MS-COCO, Cityscapes, and DAVIS validation sets. The examples include images, predictions, and ground truth for comparison.

E. Extra Visualization

Loading 2210.06366v4…