Papers
Topics
Authors
Recent
Search
2000 character limit reached

OMTSeg: Open-Vocabulary Panoptic Segmentation

Updated 21 April 2026
  • OMTSeg is an architecture for open-vocabulary panoptic segmentation that integrates vision and text by using a unified BEiT-3 backbone alongside a Mask2Former-style segmentation head.
  • It employs deep cross-modal attention, spatial feature adapters, and prompt tuning to adapt pre-trained representations for dense prediction tasks.
  • Empirical results on datasets like ADE20K and COCO validate OMTSeg's performance improvements, highlighting the effectiveness of its multiway fusion and visual adaptation strategies.

OMTSeg is an architecture for open-vocabulary panoptic segmentation that leverages large-scale vision-language pre-training, specifically using BEiT-3 as a unified multiway transformer backbone integrated with a Mask2Former-style segmentation head. OMTSeg enables generalized segmentation over arbitrary categories by fusing image and text input throughout the model, achieving state-of-the-art performance via deep cross-modal attention, spatial feature adapters, and prompt-tuned word tokens (Chen et al., 2024).

1. Unified Pipeline and Input Tokenization

An RGB image IRH×W×3I\in\mathbb{R}^{H\times W\times 3} and a list of category names form the model's inputs. The image is partitioned into NpN_p non-overlapping patches (e.g., 16×1616\times 16 pixels each). Each patch is linearly embedded into a dd-dimensional vector, resulting in VRNp×dV\in\mathbb{R}^{N_p\times d}, with a 1D positional encoding added to produce VV'. For the language modality, all category names are concatenated into a marker-separated string (e.g., “[WLS][WLS] person ; [WLS][WLS] snow ; [WLS][WLS] snowboard”), tokenized using a WordPiece tokenizer into NwN_w tokens. The shared NpN_p0-dimensional embedding layer yields NpN_p1, and positional encodings produce NpN_p2. Since BEiT-3 was pre-trained on aligned multimodal data, NpN_p3 and NpN_p4 can be concatenated and directly processed by the subsequent transformer stack.

2. Layer-wise Multiway Fusion Transformer

OMTSeg directly inherits the BEiT-3 fusion encoder consisting of NpN_p5 identical multiway transformer layers (typically NpN_p6). Each layer ingests the concatenated sequence NpN_p7, applying multiway multi-head self-attention (MultiwayMHSA):

NpN_p8

with NpN_p9 attention heads (typically 16×1616\times 160, 16×1616\times 161), each head computing:

16×1616\times 162

By never segregating vision and language, cross-modal interaction is enabled at every transformer layer. After self-attention, 16×1616\times 163 is split back into visual and language components, which are then separately updated via their respective feed-forward networks:

16×1616\times 164

The concatenated features 16×1616\times 165 are propagated through all 16×1616\times 166 layers, yielding deep, bidirectional cross-modal representations as opposed to CLIP's single-layer contrastive alignment.

3. Visual Adapters and Prompt Tuning

To address the absence of dense-prediction specialization in BEiT-3, OMTSeg introduces a frozen backbone with trainable “visual adapter” modules and a mechanism for category prompt tuning.

  • Spatial Prior Module (SPM): A convolutional stem (ResNet-style) outputs multi-resolution feature maps at 16×1616\times 167, 16×1616\times 168, and 16×1616\times 169 input scales; each is projected to dd0 channels by dd1 convolutions.
  • Spatial Feature Injector (SFI): At each transformer block, the current patch features dd2 are queries in a cross-attention with SPM outputs dd3 as keys/values: dd4, thereby enriching transformer tokens with local convolutional information.
  • Multi-Scale Feature Extractor (MSFE): SPM features are attended back to updated transformer features: dd5.
  • Prompt Tuning: Only the dd6 marker token embeddings are fine-tuned, with dd7 for each dd8 token, improving the alignment to category names.

A plausible implication is that spatial adaptation and targeted prompt tuning are critical in transferring BEiT-3's pre-trained representations to dense, open-vocabulary outputs.

4. Mask2Former-Style Multiway Segmentation Head

The final multi-modal representations yield input to a Mask2Former-style decoder:

  • dd9 (patch tokens) and VRNp×dV\in\mathbb{R}^{N_p\times d}0 (word tokens) from BEiT-3 and adapters are inputs.
  • A fixed set of object queries VRNp×dV\in\mathbb{R}^{N_p\times d}1 (typically VRNp×dV\in\mathbb{R}^{N_p\times d}2) is initialized.
  • Each of VRNp×dV\in\mathbb{R}^{N_p\times d}3 decoder layers performs:
    • Masked Multi-Head Cross-Attention (MaskedMHCA): Queries in VRNp×dV\in\mathbb{R}^{N_p\times d}4 attend to VRNp×dV\in\mathbb{R}^{N_p\times d}5 yielding VRNp×dV\in\mathbb{R}^{N_p\times d}6 object-centric features.
    • Multi-Head Cross-Attention with Language: Queries now also attend to VRNp×dV\in\mathbb{R}^{N_p\times d}7 for category semantics.
    • Self-Attention and Feed-Forward: Standard transformer sublayer updates.

Final outputs per query: (1) a binary mask logit map VRNp×dV\in\mathbb{R}^{N_p\times d}8, (2) a mask feature VRNp×dV\in\mathbb{R}^{N_p\times d}9, and (3) an objectness score VV'0.

Panoptic fusion follows Mask2Father: instance masks are sorted by VV'1, thresholded, assigned unique IDs, with “stuff” regions filled in via “stuff” category predictions.

5. Training Objectives and Optimization

The loss function combines three elements:

  • Mask Loss: Per-pixel binary cross-entropy over the VV'2 mask predictions:

VV'3

  • Open-Vocabulary Classification Loss: Cosine similarity between each VV'4 and VV'5 token embedding VV'6, cross-entropy over correct category VV'7:

VV'8

  • Contrastive Alignment Loss: CLIP-style contrastive loss to enhance alignment between (mask, word) pairs:

VV'9

  • The total loss is [WLS][WLS]0, with weights set to equal or tuneable scalars.

6. Model Hyperparameters

OMTSeg adopts hyperparameters mainly from BEiT-3 large:

Hyperparameter Typical Value Purpose
[WLS][WLS]1 [WLS][WLS]2 Embedding dimension
[WLS][WLS]3 [WLS][WLS]4 Transformer layers
[WLS][WLS]5 [WLS][WLS]6 Attention heads
[WLS][WLS]7 [WLS][WLS]8 FFN hidden dimension
[WLS][WLS]9 [WLS][WLS]0 Object queries
[WLS][WLS]1 [WLS][WLS]2 Decoder layers
Visual Adapter scales [WLS][WLS]3, [WLS][WLS]4, [WLS][WLS]5 Multi-resolution feature injection
[WLS][WLS]6Embed [WLS][WLS]7 per category Prompt-tuning per token

These parameter selections support both large-capacity multimodal representation and dense spatial adaptation.

7. Empirical Results and Ablative Analyses

On ADE20K-150, OMTSeg achieves [WLS][WLS]8 mIoU, surpassing the prior best (ODISE) by over [WLS][WLS]9 points; on Pascal VOC-21 it reaches [WLS][WLS]0 mIoU. In panoptic segmentation, OMTSeg obtains PQ = [WLS][WLS]1, AP = [WLS][WLS]2, mIoU = [WLS][WLS]3 on ADE20K, outpacing ODISE's PQ = [WLS][WLS]4. On COCO Panoptic, OMTSeg achieves PQ = [WLS][WLS]5 with a model size of [WLS][WLS]6M parameters (Chen et al., 2024).

Ablation studies on ADE20K demonstrate component necessity:

Ablation PQ Delivered Effect
Full OMTSeg [WLS][WLS]7 Baseline
No cross-modal attention [WLS][WLS]8 [WLS][WLS]99.1 PQ
No visual adapter NwN_w0 NwN_w118.7 PQ
No prompt tuning (NwN_w2Embed) NwN_w3 NwN_w41.6 PQ

This demonstrates the criticality of (1) BEiT-3’s layer-wise multiway fusion, (2) spatial adapters for adapting to dense-prediction, and (3) learnable prompt embeddings for open-vocabulary panoptic segmentation.

References

  • Open-Vocabulary Panoptic Segmentation Using BERT Pre-Training of Vision-Language Multiway Transformer Model (Chen et al., 2024)
Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to OMTSeg Architecture.