LAVT
Swin and BERT model that segments the object a sentence refers to, fusing language inside the visual encoder.
Segmentation · 1,963 operations Checked
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
- Task
- Segmentation
- Parameters
- 227.7M
- Operations
- 1,963
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 429 (as of 28 October 2026)
- Authors
- Zhao Yang, Jiaqi Wang, Yansong Tang and others
- Source
- GitHub: yz93/LAVT-RIS
- License
- GPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17721
- Graph hash
- 17e6ace65d7f34466f7eb051f0bbb4783903ea05805aa7423640307300ea23b2
- Skeleton hash
- 845c070ec8e0bef94e194bdcf4ac836a5f633a831794b4e95fd9ac7f16fdde83
- Architecture hash
- 7049ac1dcc29ac1c3a551ae69274a6991b50ac63b40125b7bf007eaccb712649
- Diagram SHA-256
- 00ec7348219093a52553f9d832b9c2a936a79aebea23a0e1fae854c78a5ace5e
- 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
LAVT (Language-Aware Vision Transformer) takes an image and a sentence and outputs a mask of the object the sentence refers to, a task called referring image segmentation. Earlier methods encoded the image and the text independently and fused them afterwards in a cross-modal decoder; LAVT instead fuses language into the visual features early, in intermediate layers of the vision Transformer encoder.
The visual encoder follows the four stages of a Swin Transformer, and the sentence is encoded by the base BERT model with 12 layers. At each stage a pixel-word attention module (PWAM) collects, for every spatial location, the linguistic features most relevant to it, and a language gate rescales the fused result before it is added to the visual features sent to the next stage. With fusion done in the encoder, a light-weight mask predictor takes the place of the cross-modal decoder.
The paper reports that LAVT outperformed all previous methods on every evaluation subset of RefCOCO, RefCOCO+ and G-Ref in overall IoU, with absolute margins of 7.08%, 7.53% and 6.06% over VLT on the RefCOCO validation, testA and testB subsets. A later version, LAVT-RS, adds a Video Swin visual backbone. In the original experiments images are resized to 480×480 with no data augmentation.
Key idea. LAVT fuses language into visual features inside the stages of a vision Transformer encoder through pixel-word attention, so a light-weight mask predictor suffices for referring image segmentation.
- LAVT
- Language-Aware Vision Transformer
- LAVT-RIS
- referring image segmentation
- referring segmentation
- pixel-word attention
- PWAM
- language-guided segmentation
- RefCOCO
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2022lavtlanguageawarevisiontransformer,
title={LAVT: Language-Aware Vision Transformer for Referring Image Segmentation},
author={Zhao Yang and Jiaqi Wang and Yansong Tang and Kai Chen and Hengshuang Zhao and Philip H. S. Torr},
year={2022},
eprint={2112.02244},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2112.02244},
}