All models

X-Decoder

A single decoder that outputs segmentation masks and language tokens from image features and text queries.

Multimodal · 3,985 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 3,985 operations (3.2 MB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
164.5M
Operations
3,985
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2023
Cited by
196 (as of 24 October 2026)
Authors
Xueyan Zou, Zi-Yi Dou, Jianwei Yang and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21513
Graph hash
154f0f7f4edf91f3187d3d87847e7501f9d1a8233f238f0b8abee80221cc79e4
Skeleton hash
86c59c60183a93d389be63c310ea6c3fae0f42f15f9fa9513702a83933a927b9
Architecture hash
ee196a713c03b37eccf852c91a042d56b429a432b36947b896b50976220dc70f
Diagram SHA-256
00a5dc5ca5cb8e99d25edfca91c21ff73a27c79f5febe8bfd1df4dd6703777de
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

X-Decoder is a decoder that predicts both pixel-level segmentation masks and language tokens, so one model can segment images and also handle vision-language tasks. The paper's starting point is that general-purpose vision models had mostly unified image-level and region-level tasks and left pixel-level understanding underexplored. After pretraining, the paper applies one set of parameters to open-vocabulary instance, semantic and panoptic segmentation, referring segmentation, image-text retrieval and image captioning.

The model consists of an image encoder, a text encoder and the decoder itself, and the decoder architecture follows Mask2Former. What changes is the decoder's input: alongside generic non-semantic queries, it takes textual queries that make the decoder language-aware. It predicts two types of outputs, pixel-level masks and token-level semantics, and different combinations of the two serve the different tasks. A single text encoder encodes all the text involved, from segmentation concepts and referring phrases to caption tokens and VQA questions.

Pretraining unites three types of data: panoptic segmentation, referring segmentation and image-text pairs. The paper adopts Focal-T and DaViT-B/L as vision encoders and a transformer text encoder with causal masking as the language encoder. It does not adopt a deformable encoder, reporting that this does not generalize well to open-vocabulary settings.

Key idea. X-Decoder is a generalized decoder that takes non-semantic and text-derived queries and predicts pixel-level masks and token-level semantics, unifying image segmentation with vision-language tasks.

  • X-Decoder
  • xdecoder
  • Generalized Decoding for Pixel, Image, and Language
  • open-vocabulary segmentation
  • referring segmentation
  • generalized decoder
  • vision-language model
  • panoptic segmentation
  • image captioning
  • image-text retrieval

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zou2022generalizeddecodingpixelimage,
      title={Generalized Decoding for Pixel, Image, and Language}, 
      author={Xueyan Zou and Zi-Yi Dou and Jianwei Yang and Zhe Gan and Linjie Li and Chunyuan Li and Xiyang Dai and Harkirat Behl and Jianfeng Wang and Lu Yuan and Nanyun Peng and Lijuan Wang and Yong Jae Lee and Jianfeng Gao},
      year={2022},
      eprint={2212.11270},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2212.11270}, 
}