All models

VSRN

An image-text matching model that reasons over image regions with a GCN and a GRU.

Multimodal · 1,476 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 (251 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
129.2M
Operations
1,476
Framework
PyTorch
Recurrent
Yes
Published
ICCV 2019
Cited by
632 (as of 26 October 2026)
Authors
Kunpeng Li, Yulun Zhang, Kai Li 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
m21315
Graph hash
04d619c00412eb779482f8ebae10e8ea52377a9374d9db846b395f04116d2d1e
Skeleton hash
1a6e84d42d56366879a9b0fd8a5c900651569ca0dd066116838acc3913b4a12a
Architecture hash
6cf68102c7fa4628bf2309cabbe109a7d7c8229c9dc4edc7d59ec219ebc69c88
Diagram SHA-256
8582707140e551f5b5cdefc677d168d6a397c0f9312f1f9ab4b6a160d58ce7c9
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

VSRN, the Visual Semantic Reasoning Network, is an image-text matching model: it maps image regions and a sentence into a common embedding space so that their similarity can be inferred. The paper's motivation is that the usual image representation lacks the global semantic concepts found in the matching caption.

Each image enters as features of 36 detected regions, taken from a bottom-up attention detector built on Faster R-CNN with a ResNet-101 backbone. A Graph Convolutional Network with residual connections reasons over a fully-connected graph of these regions. The relationship-enhanced region features are then fed one by one into a GRU, whose last memory cell becomes the representation of the whole image. Captions pass through a GRU-based text encoder into the same space, and training jointly optimizes image-sentence matching, with a hinge-based triplet ranking loss on hard negatives, and sentence generation. The joint embedding space has 2048 dimensions.

The paper reports that VSRN outperforms SCAN by 6.8% relatively for image retrieval and 4.8% relatively for caption retrieval on MS-COCO (Recall at 1, 1K test set). Those figures combine two trained VSRN models by averaging their predicted similarity scores, the same strategy SCAN used. Because similarity is a simple inner product, the authors' repository describes inference as around 30 times faster than SCAN on MS-COCO 1K.

Key idea. VSRN builds an image representation by region relationship reasoning with a graph convolutional network, followed by global semantic reasoning with a gate and memory mechanism.

  • VSRN
  • Visual Semantic Reasoning Network
  • image-text matching
  • cross-modal retrieval
  • image retrieval
  • caption retrieval
  • visual semantic embedding
  • MS-COCO
  • Flickr30K

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

Cite the paper

@misc{li2019visualsemanticreasoningimagetext,
      title={Visual Semantic Reasoning for Image-Text Matching}, 
      author={Kunpeng Li and Yulun Zhang and Kai Li and Yuanyuan Li and Yun Fu},
      year={2019},
      eprint={1909.02701},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1909.02701}, 
}