Fine-Grained Scene Graph Generation via Sample-Level Bias Prediction

Yansheng Li, Tingzhu Wang, Kang Wu, Linlin Wang, Xin Guo, Wenbin Wang

Abstract

Scene Graph Generation (SGG) aims to explore the relationships between objects in images and obtain scene summary graphs, thereby better serving downstream tasks. However, the long-tailed problem has adversely affected the scene graph’s quality. The predictions are dominated by coarse-grained relationships, lacking more informative fine-grained ones. The union region of one object pair (i.e., one sample) contains rich and dedicated contextual information, enabling the prediction of the sample-specific bias for refining the original relationship prediction. Therefore, we propose a novel Sample-Level Bias Prediction (SBP) method for fine-grained SGG (SBG). Firstly, we train a classic SGG model and construct a correction bias set by calculating the margin between the ground truth label and the predicted label with one classic SGG model. Then, we devise a Bias-Oriented Generative Adversarial Network (BGAN) that learns to predict the constructed correction biases, which can be utilized to correct the original predictions from coarse-grained relationships to fine-grained ones. The extensive experimental results on VG, GQA, and VG-1800 datasets demonstrate that our SBG outperforms the state-of-the-art methods in terms of Average@K across three mainstream SGG models: Motif, VCtree, and Transformer. Compared to dataset-level correction methods on VG, SBG shows a significant average improvement of 5.6%, 3.9%, and 3.2% on Average@K for tasks PredCls, SGCls, and SGDet, respectively.

Introduction: The Long-Tail Challenge in SGG

Scene Graph Generation (SGG) is a critical task for understanding visual scenes, transforming images into structured graphs where nodes represent objects and edges represent their relationships. Despite its potential, SGG is hindered by a severe long-tailed distribution of relationship predicates. Common "head" predicates like on, has, and near dominate the dataset, while descriptive "tail" predicates like walking on or parked on are rarely seen. Standard SGG models tend to predict these frequent, coarse-grained labels to minimize loss, resulting in scene graphs that lack semantic richness.

Methodology: Sample-Level Bias Prediction (SBP)

Previous attempts to mitigate this bias often relied on dataset-level corrections—applying a uniform mathematical offset to all samples based on global statistics. However, these "one-size-fits-all" approaches fail to capture the specific visual context that distinguishes a generic relationship from a fine-grained one.

The core insight of this work is that the union region of an object pair contains the necessary contextual information to refine relationship predictions. The authors propose the SBG (Sample-level Bias-corrected Graph) framework, which moves beyond global statistics to predict a unique bias for every individual sample.

Overview of the SBG framework. (a) illustrates the long-tail problem, while (b) details the pipeline where union region features are used to predict sample-specific biases that refine classic SGG model outputs.

The framework operates in three stages:

  1. Initial Prediction: A base SGG model (e.g., Motif, VCTree) generates initial relationship logits.
  2. Bias Construction: A "correction bias set" is created by measuring the difference between the base model's biased output and the true fine-grained labels.
  3. BGAN (Bias-Oriented GAN): A Generative Adversarial Network is trained to predict these corrective biases. The Generator ($G$) processes the union features and global bias to produce a sample-specific bias vector, while the Discriminator ($D$) ensures these predictions match the distribution of true corrective biases.

Key Results and Insights

The researchers evaluated SBG on Visual Genome (VG), GQA, and the challenging VG-1800 dataset. The method consistently outperformed state-of-the-art (SOTA) dataset-level correction methods.

Comparison between dataset-level methods (DLFE, RTPB) and the proposed SBG. While global methods apply the same bias (c, b) to similar samples, SBG predicts unique sample-specific biases (be, bf) based on the visual context.
  • Performance Gains: On Visual Genome, SBG achieved significant improvements in Average@K (A@K)—a metric that balances standard Recall and mean Recall—with gains of 5.6% for PredCls, 3.9% for SGCls, and 3.2% for SGDet.
  • Contextual Superiority: Unlike methods that use static dataset-level frequencies, SBG adapts to the specific visual evidence in the image. For instance, it can distinguish between a man "on" a beach and a man "walking on" a beach by analyzing the union region features.
  • Broad Applicability: The SBP logic was also successfully applied to general object detection on the COCO dataset, yielding a 2.8% mAP boost for tail categories.

Conclusion

By shifting the focus from global dataset statistics to sample-specific visual context, the SBG framework provides a robust solution to the long-tail problem in SGG. The use of a GAN to predict corrective biases allows for more nuanced and informative scene graphs, better serving downstream vision-and-language tasks. Future work may explore the integration of even more complex contextual features and the application of SBP to other long-tailed domains in computer vision.

Summary updated

BibTeX
@inproceedings{li2024fine,
  author = {Yansheng Li and Tingzhu Wang and Kang Wu and Linlin Wang and Xin Guo and Wenbin Wang},
  title = {{Fine-Grained Scene Graph Generation via Sample-Level Bias Prediction}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=ZDBlfNWJbA},
}
Figure