All models

CRIS

Segments the image region a text expression refers to, using CLIP encoders and a vision-language decoder.

Segmentation · 1,110 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

Loading diagram (21 KB)

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
146.8M
Operations
1,110
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
22 (as of 3 November 2026)
Authors
Zhaoqing Wang, Yu Lu, Qiang Li and others
License
MIT
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
m15178
Graph hash
02d236c5a6baf7b41135e91505905be04844e7a1a19340bab8c4bd451552a2ef
Skeleton hash
f75350cdba3fe8356ff9ed095b8e5f3a23d1f77c91ae41be6703d09faa29b359
Architecture hash
8b80f8728814ef349ddafc77fb34ff78f89678be9b50941d3612d10a91df98df
Diagram SHA-256
787cee156a695d53d7268d4510938d7a6f007e1b86c38f274bf715b2e6705cec
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

CRIS (CLIP-Driven Referring Image Segmentation) transfers the image-level semantic knowledge of the CLIP model to dense pixel-level referring image segmentation. The task is to segment the object that a natural language expression refers to. The paper argues that using CLIP directly can be sub-optimal for pixel-level prediction, because of the discrepancy between image-level and pixel-level prediction.

CRIS consists of a text encoder, an image encoder, a cross-modal neck, a vision-language decoder and two projectors. A ResNet and a Transformer extract the image and text features. Both encoders are initialized from CLIP, with ResNet-50 as the image encoder in the ablation studies and inputs resized to 416 × 416. Each decoder layer has a multi-head self-attention layer, a multi-head cross-attention layer and a feed-forward network. The cross-attention layer propagates fine-grained semantic information into the visual features. Text-to-pixel contrastive learning then pushes the text feature to be similar to the related pixel-level features and dissimilar to the irrelevant ones.

The paper evaluates on three benchmarks: RefCOCO, RefCOCO+ and G-Ref. On RefCOCO it reports gains of 4.82%, 4.89% and 3.37% on the three splits over the Vision Language Transformer. At inference the predicted results are upsampled to the original image size and binarized at a threshold of 0.35, with no other post-processing.

Key idea. CRIS transfers CLIP's multi-modal knowledge to referring image segmentation through vision-language decoding and text-to-pixel contrastive learning.

  • CRIS
  • CLIP-Driven Referring Image Segmentation
  • referring image segmentation
  • referring expression segmentation
  • text-to-pixel contrastive learning
  • vision-language decoder
  • RefCOCO
  • text-to-pixel alignment

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

Cite the paper

@misc{wang2022crisclipdrivenreferringimage,
      title={CRIS: CLIP-Driven Referring Image Segmentation}, 
      author={Zhaoqing Wang and Yu Lu and Qiang Li and Xunqiang Tao and Yandong Guo and Mingming Gong and Tongliang Liu},
      year={2022},
      eprint={2111.15174},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2111.15174}, 
}