All models

SeqTR

A grounding network that outputs the box and mask for a referring expression as a sequence of coordinate tokens.

Multimodal · 11,983 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 11,983 operations (1.6 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
107.3M
Operations
11,983
Framework
PyTorch
Recurrent
No
Published
ECCV 2022
Cited by
161 (as of 29 October 2026)
Authors
Chaoyang Zhu, Yiyi Zhou, Yunhang Shen and others
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
m20357
Graph hash
9f469eb477dc645705951cd11420930242a88eeae9c1a072efcafbe1422a15d5
Skeleton hash
09215592f23789dd2c177393454617e0e483e3b1ff4ce2bebdc860ef9b976945
Architecture hash
a1863708c094296bcb38af4b221c0bb1e64ecf03acb6f003d9b01890a2bc5347
Diagram SHA-256
a4f2e903abb869dee1944c372312ad9d491370f634cab41c461611e62b39b65f
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

SeqTR is a network for visual grounding tasks: phrase localization, referring expression comprehension (REC), where the answer is a bounding box, and referring expression segmentation (RES), where it is a mask. The paper casts all of these as point prediction conditioned on image and text inputs, with the bounding box or binary mask represented as a sequence of discrete coordinate tokens. That removes task-specific branches or heads, such as the convolutional mask decoder for RES, and a simple cross-entropy loss serves every task.

A bounding box is given by its top-left and bottom-right corner points, with coordinates quantized into integer bins as in Pix2Seq. A mask becomes a sequence by sampling N points clockwise along its contour. The text is encoded by a one layer bidirectional GRU. Only the coarsest scale of the visual encoder's features is used. Language and visual features are fused by a Hadamard product. A standard transformer encoder updates the fused features, and the decoder predicts the target sequence auto-regressively. A [TASK] token prepended to the sequence indicates which grounding task the model performs.

The paper uses DarkNet-53 as the visual encoder and sets the number of quantization bins to 1000. Its transformer has a hidden dimension of 256, with 6 encoder layers and 3 decoder layers. Results are reported on five benchmark datasets: RefCOCO, RefCOCO+, RefCOCOg, ReferItGame and Flickr30K Entities.

Key idea. SeqTR casts visual grounding as point prediction, representing a bounding box or mask as a sequence of discrete coordinate tokens so one transformer handles all tasks with a cross-entropy loss.

  • SeqTR
  • visual grounding
  • referring expression comprehension
  • referring expression segmentation
  • phrase localization
  • REC
  • RES
  • coordinate tokens
  • mask contour sampling

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

Cite the paper

@misc{zhu2022seqtrsimpleuniversalnetwork,
      title={SeqTR: A Simple yet Universal Network for Visual Grounding}, 
      author={Chaoyang Zhu and Yiyi Zhou and Yunhang Shen and Gen Luo and Xingjia Pan and Mingbao Lin and Chao Chen and Liujuan Cao and Xiaoshuai Sun and Rongrong Ji},
      year={2022},
      eprint={2203.16265},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1007/978-3-031-19833-5_35},
      url={https://arxiv.org/abs/2203.16265}, 
}