NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tensorize, Factorize and Regularize: Robust Visual Relationship Learning

Seong Jae Hwang, Sathya N. Ravi, Zirui Tao, Hyunwoo J. Kim, Maxwell D. Collins, Vikas SinghCVPR 2018

Abstract

Visual relationships provide higher-level information of objects and their relations in an image – this enables a semantic understanding of the scene and helps downstream applications. Given a set of localized objects in some training data, visual relationship detection seeks to detect the most likely “relationship” between objects in a given image. While the specific objects may be well represented in training data, their relationships may still be infrequent. The empirical distribution obtained from seeing these relationships in a dataset does not model the underlying distribution well — a serious issue for most learning methods. In this work, we start from a simple multi-relational learning model, which in principle, offers a rich formalization for deriving a strong prior for learning visual relationships. While the inference problem for deriving the regularizer is challenging, our main technical contribution is to show how adapting recent results in numerical linear algebra lead to efficient algorithms for a factorization scheme that yields highly informative priors. The factorization provides sample size bounds for inference (under mild conditions) for the underlying [[object, predicate, object]] relationship learning task on its own and surprisingly outperforms (in some cases) existing methods even without utilizing visual features. Then, when integrated with an end to-end architecture for visual relationship detection leveraging image data, we substantially improve the state-of-the-art.

Introduction: The Challenge of Data Sparsity in VRD

Visual relationship detection (VRD) involves identifying triplets of the form (subject, predicate, object) within an image. While modern computer vision systems excel at detecting individual objects, understanding their interactions remains a significant hurdle. The primary obstacle is the "long-tail" distribution of data. With a vocabulary of 100 objects and 70 predicates, there are nearly 700,000 possible combinations. Most of these relationships appear rarely, if at all, in training datasets. Standard deep learning models often fail to generalize to these infrequent or unseen "zero-shot" relationships, such as "person riding elephant," despite being familiar with the individual components.

Visual relationship detection examples and the underlying relational logic for predicting unseen predicates.

Methodology: Tensorize, Factorize, and Regularize

To address this sparsity, the authors propose a framework based on three pillars:

  1. Tensorization: The training data is represented as a 3D tensor $X \in \mathbb{R}^{N \times N \times K}$, where $N$ is the number of object categories and $K$ is the number of predicates. Each entry $X_{i,j,k}$ represents the frequency of the relationship (subject $i$, object $j$, predicate $k$).
  2. Factorization (Tucker-2): The sparse tensor is decomposed into latent factors. Specifically, each predicate slice $X_k$ is modeled as $AR_kA^T$, where $A$ is a shared latent representation for objects and $R_k$ is a predicate-specific matrix. This structure encourages the model to learn semantic similarities; for instance, if "horses" and "motorcycles" share similar latent factors, the model can infer that both are "ridable."
  3. Spectral Initialization: A key technical contribution is a robust initialization scheme using Singular Value Decomposition (SVD). The authors prove that a logarithmic number of predicates relative to the number of objects is sufficient to recover a high-quality latent representation.
  4. End-to-End Integration: This Relational Learning (RL) module is integrated into a standard scene graph generation pipeline, serving as a dense prior that guides the neural network when visual evidence is ambiguous or data is scarce.

Experimental Results

The framework was evaluated on the Scene Graph Dataset (5,000 images) and a cleaned version of Visual Genome (~108,000 images).

Key Findings

  • Zero-Shot Performance: The model achieved a ~40% improvement in zero-shot predicate detection on the Scene Graph dataset compared to previous state-of-the-art methods.
  • Recall Improvements: On Visual Genome, the model improved Recall@20 by nearly 30% in the "Predicate Classification" task.
  • Semantic Regularization: The factorization acts as a structural constraint, preventing overfitting to dataset biases. Interestingly, the RL module was occasionally strong enough to correct human labeling errors in the ground truth (e.g., correcting "cup" to "bowl" based on the context of "pot on table").

Conclusion and Future Work

This work demonstrates that tensor factorization provides a powerful prior for visual relationship learning, particularly in data-sparse regimes. While the current iterative optimization adds some complexity, the gains in generalization are substantial. Future research could extend this framework to dynamic relationships in video or explore automated methods for balancing the relational prior with visual evidence.

Summary updated

BibTeX
@inproceedings{hwang2018tensorize,
  author = {Seong Jae Hwang and Sathya N. Ravi and Zirui Tao and Hyunwoo J. Kim and Maxwell D. Collins and Vikas Singh},
  title = {{Tensorize, Factorize and Regularize: Robust Visual Relationship Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=HyWCHpWOWS},
}
Figure