TL;DR
This paper introduces the Tensor Composition Net (TCN) for Visual Relationship Prediction (VRP), a task that identifies subject-predicate-object triplets in images using only image-level annotations. By modeling the combinatorially massive relationship space as a low-rank 3-way tensor and utilizing Tucker decomposition, TCN efficiently predicts both common and entirely unseen relationships. This approach offers a lightweight, bounding-box-free alternative to traditional Visual Relationship Detection, excelling in zero-shot prediction and relation-based image retrieval.
What Problem Does This Paper Address?
To truly understand a visual scene, machine perception models must go beyond simply detecting isolated objects; they need to understand how those objects interact (e.g., person-ride-bike, dog-next to-cat). Most existing research tackles this via Visual Relationship Detection (VRD), which requires expensive, detailed bounding-box annotations for every object in the image.
If we remove the bounding box requirement and just try to predict the presence of relationships at the image level (Visual Relationship Prediction, or VRP), we run into a massive multi-label classification problem. The label space grows combinatorially: $n$ subjects $\times n$ objects $\times m$ predicates. Standard Multi-Label Image Classification (MLIC) methods either filter out unseen relationships to keep the math tractable or fail to capture the semantic compositionality needed to predict rare relationships. For instance, if a model has seen "person-ride-bike" and knows what a "horse" looks like, it should ideally be able to infer "person-ride-horse" without explicit training examples. Previous methods struggle heavily with this zero-shot compositional reasoning.
Methods
The authors propose the Tensor Composition Net (TCN), which models the output space of all possible relationships as a 3-way tensor $\mathbf{T} \in \mathbb{R}^{n \times n \times m}$.
Because directly predicting a tensor of this size from high-dimensional image features would require billions of parameters, TCN exploits the low-rank property of the relationship tensor using Tucker decomposition. The architecture is elegantly split into two conceptual parts:
- Global Factor Matrices: The model learns three distinct embedding matrices for subjects, objects, and predicates. These act as a global vocabulary and are shared across all images.
- Image-Specific Core Tensor: A Convolutional Neural Network (VGG-16 with Global Average Pooling) extracts features from the input image and predicts a highly compressed, low-dimensional "core tensor."
To make the final prediction, the network mathematically "reconstructs" the full relationship tensor by multiplying the image-specific core tensor with the shared global factor matrices. This allows the model to score all possible triplets efficiently without a combinatorial explosion of parameters.
Datasets
The model is trained and evaluated on two standard scene understanding benchmarks, using only their image-level triplet annotations:
- VR (Visual Relationship): A smaller, sparser dataset containing 5,000 images, 100 object categories, and 70 predicate categories.
- VG200: A cleaned version of the notoriously noisy Visual Genome dataset, containing roughly 100,000 images, 200 object categories, and 100 predicate categories.
Key Insights and Ideas
- Compositionality enables zero-shot learning: By separating the prediction into an image-specific core tensor and global vocabulary embeddings, the model naturally learns the semantic relationships between words. It doesn't just memorize flat labels; it learns how to combine concepts, allowing it to predict triplets it has never seen before.
- Core tensors capture the image, factor matrices capture the world: Ablation studies showed that treating the core tensor as image-specific and the factor matrices as global parameters works much better than alternative tensor decomposition methods (like CP-composition).
- Bounding boxes aren't strictly necessary for retrieval: For downstream applications like Relation-Based Image Retrieval (searching a database for images containing a "dog-ride-surfboard"), image-level VRP is sufficient. It is vastly cheaper to train than full VRD pipelines that rely on complex, error-prone object detectors.
Key Results
- Overall VRP Performance: TCN significantly outperformed existing MLIC and eXtreme Multi-label Classification (XMC) methods. On VG200, TCN achieved a Recall@100 of 59.04%, compared to 50.74% for the best MLIC competitor (CNN-RNN).
- Zero-Shot and Few-Shot Learning: On the VR dataset, TCN achieved 3.24% Recall@100 for entirely unseen (0-shot) relationships—a task standard MLIC methods cannot even attempt. For 1-shot learning, TCN hit 6.03% Recall@100, easily beating the next best XMC method (4.28%).
- Image Retrieval: In Relation-Based Image Retrieval (RBIR), TCN achieved a median rank of 18 on the VR dataset and 6 on VG200. It performed comparably to, or even better than, strongly supervised VRD methods (like VTransE) that had the unfair advantage of bounding-box supervision during training.
Limitations and Future Work
- Limitations: Because TCN relies purely on global and pooled image features without explicit object localization, qualitative results show it occasionally struggles to recognize very small objects in an image (e.g., failing to detect a small "leaf" on a plate of food).
- Future Work: The authors suggest scaling up their approach by utilizing existing image caption datasets. By applying text parsing to captions, they hope to automatically acquire weak relation annotations at a massive scale, further improving the model's vocabulary and compositional power without manual labeling.
Summary updated