One-Shot Learning for Long-Tail Visual Relation Detection

Weitao Wang, Meng Wang, Sen Wang, Guodong Long, Lina Yao, Guilin Qi, Yang Chen

Introduction

Visual relation detection (VRD) is a fundamental task in computer vision that involves identifying objects and their interactions within an image, typically represented as <subject-predicate-object> triplets (e.g., <person-ride-bike>). Despite significant progress, current deep learning models struggle with the inherent data imbalance found in real-world scenes. While common predicates like "on" or "wear" are abundant, the vast majority of relationship types—the "tail" predicates—are rare, making large-scale supervision impractical.

The Long-Tail Challenge in Visual Relations

Standard VRD models often fail when encountering rare relations because they require extensive training data for each category. This paper addresses this "long-tail" problem by framing VRD as a one-shot learning task. The goal is to enable a model to recognize a novel relationship, such as "leaning on," after seeing only a single labeled reference image.

The long-tail distribution of predicates in visual relation detection, highlighting the disparity between frequent "head" predicates and rare "tail" predicates.

Methodology: Dual Graph Neural Networks

The authors propose a novel two-stage architecture designed for few-shot reasoning in the visual domain:

1. Visual Feature Extraction with Attention

To handle the sparsity of one-shot samples, the model employs a feature-level attention mechanism. This allows the network to focus on the most discriminative latent features while filtering out noise, which is critical when learning from a single example.

2. Dual Graph Module

The core of the framework is a Dual Graph Neural Network that models the dependencies between predicates and objects:

  • Predicate Graph: Captures relationships between predicates across different images in a training episode.
  • Object Graph: Models the subjects and objects involved, leveraging the fact that object categories (e.g., "person" and "wall") provide strong contextual cues for the likely predicate (e.g., "lean on").

By performing message passing between these two graphs, the model learns to aggregate context and recognize similarities between one-shot classes more effectively than standard classifiers.

3. Metric Learning

The model utilizes a 4-layer CNN "Metric Network" to compare query images against support (reference) images, determining if they share the same relationship type based on learned embeddings.

Datasets and Evaluation

To evaluate one-shot performance, the authors introduced two new benchmarks:

  • VRD-One: Derived from the VRD dataset, featuring 99 object categories and 29 predicates.
  • VG-One: A larger benchmark based on Visual Genome, with 127 object categories and 164 predicates.

The datasets are split such that "test" relationships are entirely unseen during the initial training phase, strictly testing the model's one-shot generalization capabilities.

Key Results

The proposed framework significantly outperforms existing state-of-the-art models adapted for one-shot tasks:

  • Accuracy: On the VRD-One dataset for Predicate Classification (PredCls), the model achieved 48.4% accuracy in a 5-way 1-shot setting, a substantial improvement over the 40.1% achieved by the RelDN baseline.
  • Scene Graph Classification: In the more complex SGCls task, performance improved by 2.8% to 12.2% across various settings.
  • Ablation Studies: Experiments confirmed that both the Object Graph and the Attention Network are essential components; removing either led to a significant drop in performance.

Conclusion and Future Work

This work demonstrates that combining contextual graph modeling with attention-based feature filtering is a powerful strategy for long-tail visual relation detection. While the model shows sensitivity to object detection errors—where a misidentified object can mislead the predicate prediction—it sets a new standard for one-shot reasoning in complex visual scenes. Future research will explore extending this logic to video relation detection and more granular scene understanding.

Summary updated

BibTeX
@inproceedings{wang2020one,
  author = {Weitao Wang and Meng Wang and Sen Wang and Guodong Long and Lina Yao and Guilin Qi and Yang Chen},
  title = {{One-Shot Learning for Long-Tail Visual Relation Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6904},
}
Figure