Learning of Visual Relations: The Devil is in the Tails

Alakh Desai, Tz-Ying Wu, Subarna Tripathi, Nuno Vasconcelos · DOI

Introduction

Scene Graph Generation (SGG) is the task of parsing an image into a structured representation of objects (entities) and their interactions (predicates), typically represented as <subject-predicate-object> triplets. While foundational for high-level visual understanding, SGG has long struggled with the extreme imbalance of real-world data. Most models perform well on frequent "head" classes (e.g., "on", "has") but fail on rare "tail" classes (e.g., "parked on", "eating").

Researchers from UC San Diego and Intel Labs argue that the trend toward increasingly complex graph neural networks has actually hindered progress by exacerbating overfitting on common classes. They propose Decoupled Training for Devil in the Tails (DT2), a framework that achieves state-of-the-art results using a significantly simpler architecture and a novel sampling strategy.

The DT2 Framework: Simplicity and Decoupling

The core philosophy of DT2 is that visual feature learning should be separated from the challenges of long-tailed classification. The authors utilize a straightforward ResNet-101 backbone and a small MLP-based predicate classifier, reducing parameter counts by up to 10x compared to previous state-of-the-art models.

The DT2 architecture utilizes an Entity Encoder that extracts both appearance and semantic features to inform the predicate classifier.

The training process is split into two stages:

  1. Feature Learning: The entire network is trained using Standard Random Sampling (SRS) to develop robust visual representations.
  2. Classifier Fine-tuning: The feature extractor is frozen, and only the classification layers are fine-tuned using a balanced sampling strategy to address the long-tail distribution.

A key finding is the importance of the "appearance branch." By processing raw image patches ($I^e$), the model captures visual nuances of interactions that semantic labels alone (e.g., just knowing the objects are "man" and "bike") cannot provide.

Alternating Class-Balanced Sampling (ACBS)

Balancing SGG data is uniquely difficult because both entities and predicates follow distinct long-tailed distributions. Balancing for one often inadvertently unbalances the other. To solve this, the authors introduced Alternating Class-Balanced Sampling (ACBS).

ACBS alternates between a P-step (optimizing for predicate balance) and an E-step (optimizing for entity balance). To maintain stability and prevent "forgetting" between steps, the framework employs Knowledge Distillation (KD). In each step, the current model (student) is regularized to mimic the predictions of the model from the previous step (teacher), ensuring the classifier learns to handle both distributions simultaneously.

Key Results on the Visual Genome Benchmark

The DT2-ACBS method was evaluated on the Visual Genome (VG150) dataset, which features 150 object categories and 50 predicate categories with a massive frequency gap (up to 12,000x). The model demonstrated dominant performance across all three standard SGG tasks: Predicate Classification (PredCls), Scene Graph Classification (SGCls), and Scene Graph Detection (SGDet).

Comparison of class recall across predicates ordered by frequency. DT2-ACBS (green) significantly outperforms prior models on rare tail classes.

Notably, in the most challenging task, SGDet (detecting boxes and relations from scratch), DT2-ACBS achieved 24.4 mR@100, a 100% relative improvement over many complex prior architectures. The use of mean Recall (mR@K) as a primary metric highlights the model's ability to generalize to rare, fine-grained relations like "walking on" instead of defaulting to generic head classes like "on."

Conclusion

The success of DT2-ACBS suggests that the "devil" in scene graph generation lies not in architectural complexity, but in the data distribution. By decoupling feature learning from classification and employing a dual-balancing sampling strategy with knowledge distillation, the authors demonstrate that smaller, simpler models can achieve superior performance on the long tail of visual relations. Future work remains in addressing the slight performance trade-offs on "head" classes and improving the underlying object detectors for even more robust scene parsing.

Summary updated

BibTeX
@inproceedings{desai2021learning,
  author = {Alakh Desai and Tz-Ying Wu and Subarna Tripathi and Nuno Vasconcelos},
  title = {{Learning of Visual Relations: The Devil is in the Tails}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01512},
}
Figure