GCN-LSTM
An image captioner that refines object region features with a GCN over relation graphs before an attention LSTM.
Multimodal · 627 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
- Multimodal
- Parameters
- 72.9M
- Operations
- 627
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ECCV 2018
- Cited by
- 141 (as of 29 October 2026)
- Authors
- Ting Yao, Yingwei Pan, Yehao Li, Tao Mei
- Source
- GitHub: YehLi/xmodaler
- 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 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
- m16828
- Graph hash
- 2d159c08dec1d57cd6c85f6cf8c9595f1d47bd09a371ab61d5712a148992c896
- Skeleton hash
- 45507b314bba7f12db6c124fdc2307d6cb1008500310a29fc29cb1dec49f71f8
- Architecture hash
- dd4fafdccc509e5582d3206c4df96a5f4dbd224861f39fb5314f7d8967bd40c2
- Diagram SHA-256
- 407523d8ce09ad45e9289b7ac7062cda5897d173a35f32a59e28550d3f752da6
- 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
GCN-LSTM is an image captioning model that brings the relationships between objects in a picture into its image encoder. It starts from salient image regions proposed by a Faster R-CNN detector. It then builds graphs over the detected objects based on their semantic and spatial connections. In the semantic graph, a directed edge between two regions is labeled with the predicate that a relationship detector trained on Visual Genome assigns to them. That detector is trained over 20 relation classes plus a non-relation class. The spatial graph instead uses eleven kinds of relative position between regions. Its edges depend on the regions' overlap (IoU), relative distance and angle.
A modified graph convolutional network (GCN) then refines each region's feature from its neighbors, using separate transformation matrices and biases for different edge directions and labels. The relation-aware region features feed a two-layer LSTM decoder with attention that generates the sentence. Each graph trains its own GCN encoder and attention LSTM decoder. At inference, a late fusion scheme linearly combines the two decoders' predicted word distributions at each time step.
On the COCO test set the paper reports that GCN-LSTM raised CIDEr-D from 120.1% to 128.7%. With cross-entropy training it reports CIDEr-D of 117.1% and SPICE of 21.1%, relative gains of 3.2% and 3.9% over Up-Down, the strongest method it compared against.
Key idea. GCN-LSTM uses visual relationships between detected objects, encoded with a graph convolutional network, to enrich region-level features and improve image captioning.
- GCN-LSTM
- Graph Convolutional Networks plus Long Short-Term Memory
- image captioning
- visual relationship
- semantic graph
- spatial graph
- graph convolutional network
- attention LSTM
- COCO captioning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yao2018exploringvisualrelationshipimage,
title={Exploring Visual Relationship for Image Captioning},
author={Ting Yao and Yingwei Pan and Yehao Li and Tao Mei},
year={2018},
eprint={1809.07041},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1809.07041},
}