MAttNet
MAttNet matches a referring expression to an image region using subject, location and relationship modules.
Multimodal · 238 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
- 14M
- Operations
- 238
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2018
- Cited by
- 857 (as of 24 October 2026)
- Authors
- Licheng Yu, Zhe Lin, Xiaohui Shen and others
- Source
- GitHub: lichengunc/MAttNet
- License
- MIT
- 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
- m18045
- Graph hash
- 951afd82b72c3899df8ae6d4a178c637a0cd6625e03d9c0e99ec2c5932d55f0e
- Skeleton hash
- 271e108b5390a673a00e0314d02dbd8d3b2b19cf7d7044949359fc726fb29563
- Architecture hash
- e8bd393c5a0426997f8519c935fd24d1429d05343b9610093c5eb68e641bd30a
- Diagram SHA-256
- fddc5f7058f99d8b5b14f1424567a6fc36300b1bd58398b13a48956b2dcff06d
- 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
MAttNet, the Modular Attention Network, addresses referring expression comprehension: finding the image region that a natural language expression describes. Where most earlier work treated the expression as a single unit, MAttNet splits it into three components covering the subject's appearance, its location, and its relationship to other objects.
A language attention network learns which words matter to each module, so no external parser or template is used. Three visual modules then score a candidate object against their phrase embeddings, and a weighted combination of the scores gives the overall match. The subject module deals with details inside the candidate box, and the relationship module handles expressions that involve other objects outside it. The location module encodes the candidate with a 5-d vector holding its top-left position, bottom-right position and relative area.
Region features come from Faster R-CNN, which the paper uses as the backbone net. For segmentation the paper feeds the predicted bounding box to the mask branch of Mask R-CNN to obtain a pixel-wise segmentation. Experiments use three datasets collected on MS COCO images: RefCOCO, RefCOCO+ and RefCOCOg. The paper reports that MAttNet outperformed the earlier methods it compares against on both bounding-box-level and pixel-level comprehension. It also reports an average of 0.33 seconds per forward pass at inference, of which 0.31 seconds are spent on Mask R-CNN and 0.02 seconds on MAttNet.
Key idea. MAttNet decomposes a referring expression into subject, location and relationship modules and uses module weights to combine the three module scores dynamically into an overall score.
- MAttNet
- Modular Attention Network
- referring expression comprehension
- referring expression
- visual grounding
- referring expression segmentation
- RefCOCO
- phrase grounding
- language attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yu2018mattnetmodularattentionnetwork,
title={MAttNet: Modular Attention Network for Referring Expression Comprehension},
author={Licheng Yu and Zhe Lin and Xiaohui Shen and Jimei Yang and Xin Lu and Mohit Bansal and Tamara L. Berg},
year={2018},
eprint={1801.08186},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1801.08186},
}