Predicate correlation learning for scene graph generation

Leitian Tao, Li Mi, Nannan Li, Xianhang Cheng, Yaosi Hu, Zhenzhong Chen · DOI

Scene Graph Generation (SGG) is a critical task in computer vision that involves mapping visual relationships between objects into a structured graph. Despite its importance for symbolic reasoning, SGG models frequently struggle with the "long-tail" problem: they excel at identifying common predicates like "on" or "near" (head classes) but perform poorly on rare, specific relations like "parked on" or "walking on" (tail classes).

In the paper "Predicate Correlation Learning for Scene Graph Generation," researchers from Wuhan University propose Predicate Correlation Learning (PCL) to address this imbalance by recognizing that predicates are not mutually exclusive but often share semantic overlaps.

The "Near-Miss" Problem in SGG

Standard SGG models typically utilize Cross Entropy (CE) loss, which assumes that all predicate categories are independent. In this framework, if a model predicts "on" when the ground truth is "sitting on," the CE loss treats the prediction as a complete failure. This results in a "discouraging gradient" that suppresses the "on" prediction.

This approach leads to two significant issues:

  1. Semantic Overlap: Many predicates are hierarchical or synonymous (e.g., "walking on" is a subset of "on"). Treating them as strictly distinct confuses the model during training.
  2. Long-Tail Bias: Because common predicates appear far more frequently, the cumulative discouraging gradients for rare classes become overwhelming, causing the model to default to generic "head" classes to minimize total loss.

Methodology: Predicate Correlation Learning (PCL)

The authors introduce a two-part strategy to make the model more semantically aware and forgiving of "near-miss" errors.

Predicate Correlation Matrix (PCM)

The core of the method is the Predicate Correlation Matrix (PCM), which quantifies the relationship between different predicates. The PCM is initially constructed by analyzing the output probabilities (logits) of a pre-trained model on a validation set. If a model frequently assigns high probability to "on" when the truth is "sitting on," the PCM records a high correlation. To prevent the model from stagnating on initial biases, the PCM is updated dynamically during training using a momentum-based mechanism.

Predicate Correlation Loss ($L_{PC}$)

The $L_{PC}$ loss function modifies the standard penalty based on the correlations found in the PCM. If a model predicts a class that is highly correlated with the ground truth, the discouraging gradient is weakened. Conversely, if the prediction is entirely unrelated (e.g., "eating" instead of "standing on"), the full penalty is applied.

Figure 1: Illustration of how the Predicate Correlation Loss (L_PC) adjusts the decision boundary compared to standard Cross Entropy (L_CE). By softening the boundary, L_PC allows tail classes like "sitting on" to be correctly classified even when they overlap with head classes like "on".

Experimental Results

The PCL method was evaluated on the Visual Genome (VG150) benchmark across three sub-tasks: Predicate Classification (PredCls), Scene Graph Classification (SGCls), and Scene Graph Detection (SGDet).

The primary metric for long-tailed distribution performance is Mean Recall (mR). As shown in the results table below, PCL provides a substantial boost across all backbones and baselines. Notably, on the PredCls task, PCL improved the mR@100 of a standard Transformer baseline from 18.0% to 39.2%.

Figure 5: Performance comparison of PCL against various state-of-the-art SGG models on the Visual Genome dataset. PCL consistently achieves the highest Mean Recall (mR) across all tasks and backbones.

Conclusion

Predicate Correlation Learning offers a robust solution to the long-tail problem in Scene Graph Generation. By modeling the semantic relationships between predicates through the PCM and adjusting the loss function accordingly, PCL enables models to distinguish rare relations more effectively without sacrificing accuracy on common ones. This "forgiving" approach to semantic overlaps represents a significant step forward in creating more nuanced and accurate visual relationship models.

Summary updated

BibTeX
@article{tao2021predicate,
  author = {Leitian Tao and Li Mi and Nannan Li and Xianhang Cheng and Yaosi Hu and Zhenzhong Chen},
  title = {{Predicate correlation learning for scene graph generation}},
  journal = {IEEE Trans. Image Process.},
  year = {2021},
  doi = {10.1109/tip.2022.3181511},
}
Figure