BLOCK
Bilinear fusion of two inputs via block-term tensor decomposition, used for VQA and visual relationship detection.
Multimodal · 527 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
- 5M
- Operations
- 527
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2019
- Paper
- BLOCK: Bilinear Superdiagonal Fusion for Visual Question Answering and Visual Relationship Detection
- Cited by
- 27 (as of 28 October 2026)
- Authors
- Hedi Ben-younes, Rémi Cadene, Nicolas Thome, Matthieu Cord
- License
- BSD-3-Clause
- 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
- m14855
- Graph hash
- 3a78ef6a755a991806e344caf93f3d47920614b9aa7e4e9850ec931553b064e4
- Skeleton hash
- f63863cf2de2db3aab35b9db07684b5cefebaf40cac8b2f8fdeb6b8c313760e1
- Architecture hash
- 95266ec00350b9d818d7f803ce915c76066f68370f10a33597f77330bdcb0082
- Diagram SHA-256
- 3bfdad03ad3699d3030a460f731c64f37dd8311f5393b5a565293019f2105d69
- 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
This model is the visual relationship detection network, which takes a subject bounding box and an object bounding box as input. To predict the predicate that links them, it uses one fusion module for each type of feature: box coordinates, object classes and visual features.
BLOCK is a fusion module: it takes two representations, for example of an image and of a question, and merges them into one. A bilinear model is a natural way to capture interactions between two inputs, but the paper notes that its number of parameters is quadratic in the input dimensions. BLOCK reduces that count by expressing the bilinear tensor with the block-term decomposition.
Each block of the decomposed tensor merges one chunk of the first projected input with one chunk of the second. The paper presents the CP and Tucker decompositions, which earlier fusion methods relied on, as the two extreme cases of this scheme. The number of blocks and the size of the projections then control the trade-off between model complexity and expressivity.
The authors apply the fusion to two tasks, Visual Question Answering (VQA) and Visual Relationship Detection (VRD). In the paper's comparison of fusion schemes on the VQA 2.0 dataset, BLOCK surpasses a higher-order fusion while using 30M fewer parameters. The repository also ships other fusions, including MLB, MUTAN, MCB, MFB and MFH.
Key idea. BLOCK is a multimodal fusion based on the block-superdiagonal tensor decomposition, whose block-term ranks set the balance between the expressiveness and the complexity of a bilinear fusion.
- BLOCK
- Bilinear Superdiagonal Fusion
- block.bootstrap.pytorch
- multimodal fusion
- bilinear fusion
- visual question answering
- VQA
- visual relationship detection
- VRD
- block-term decomposition
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{benyounes2019blockbilinearsuperdiagonalfusion,
title={BLOCK: Bilinear Superdiagonal Fusion for Visual Question Answering and Visual Relationship Detection},
author={Hedi Ben-younes and Rémi Cadene and Nicolas Thome and Matthieu Cord},
year={2019},
eprint={1902.00038},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1902.00038},
}