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

BCTR: Bidirectional Conditioning Transformer for Scene Graph Generation

Peng Hao, Weilong Wang, Xiaobing Wang, Yingying Jiang, Hanchao Jia, Shaowei Cui, Junhang Wei, Xiaoshuai Hao · DOI

TL;DR

This paper introduces BCTR, a novel transformer-based model for Scene Graph Generation (SGG) that tackles the limitations of unidirectional conditioning between objects and their relationships. By employing a bidirectional conditioning mechanism within a semantically aligned feature space, BCTR significantly improves the accuracy and generalization of scene graph predictions, especially for rare relationships.

What Problem Does This Paper Address?

Scene Graph Generation (SGG) aims to create a structured representation of an image by identifying objects and the relationships between them, forming triplets like (subject, predicate, object). Existing SGG methods often struggle with effectively modeling the interplay between object and predicate detection. Many one-stage approaches, while efficient, impose a unidirectional dependency, where predicates are conditioned on objects, but objects don't benefit from predicate information. This limits the model's ability to fully understand complex scenes and generalize to unseen relationships, particularly those that are rare (long-tail distribution). The paper addresses this by proposing a bidirectional conditioning approach that allows mutual enhancement between object and predicate predictions.

Methods

The core of BCTR is its Bidirectional Conditioning Generator (BCG), which iteratively refines entity and predicate features through a multi-stage interactive process. This involves:

  • Bidirectional Attention (BiAtt): This mechanism allows for mutual feature augmentation between entities and predicates. Unlike previous methods that only condition one on the other, BiAtt enables a two-way flow of information, leading to more robust predictions.
  • Iterative Refinement: The BCG employs multiple stages of interaction, where current predictions are conditioned on previous estimates, progressively improving the accuracy of both entity and predicate detection.

To further enhance generalization, especially for rare relationships, BCTR incorporates Random Feature Alignment (RFA):

  • Feature Distillation with Vision-Language Pre-trained Models (VLPMs): RFA leverages pre-trained models like CLIP to align the visual feature space of SGG with a semantic space. This helps the model learn more generalizable interaction patterns.
  • Random Sampling: To preserve feature diversity while aligning with CLIP, RFA randomly samples subsets of decoder features before alignment, preventing the loss of crucial SGG-specific details.
  • CLIP-based Classifier Initialization: The classifiers for entities and predicates are initialized using CLIP text features, further bridging the gap between visual and linguistic understanding.

Datasets

The proposed BCTR model is evaluated on two widely used scene graph generation datasets:

  • Visual Genome (VG): A representative dataset with 57k training images, 5k validation images, and 26k test images, featuring 150 object and 50 predicate categories.
  • Open Images V6: A larger-scale dataset comprising 126k training images, 5.3k test images, and 1.8k validation images, with 288 object and 30 predicate categories.

Key Insights and Ideas

  • Bidirectional Conditioning is Crucial: The paper strongly advocates for bidirectional interaction between entity and predicate predictions, showing it's essential for overcoming the limitations of unidirectional approaches.
  • Semantic Alignment for Generalization: Aligning the SGG feature space with pre-trained vision-language models (like CLIP) is key to learning interaction patterns that generalize well to unseen, semantically related relationships.
  • RFA for Long-Tail Problem: Random Feature Alignment effectively addresses the long-tail distribution challenge in SGG by enabling better learning of rare relationships through distillation and semantic alignment.
  • Mutual Enhancement: The BCG's iterative, bidirectional approach leads to a synergistic improvement where entity and predicate predictions mutually enhance each other.

Key Results

BCTR achieves state-of-the-art performance on both Visual Genome and Open Images V6 datasets.

  • Visual Genome: BCTR shows significant improvements in mR@k (mean recall), particularly excelling in the tail categories (body and tail) with improvements of 18% and 68% over the second-best method, respectively. It also achieves superior F@k scores, indicating balanced performance.
  • Open Images V6: BCTR achieves the highest performance across class-balanced metrics, outperforming the second-best method by 11% in mR@50.
  • Zero-shot Recall: BCTR demonstrates strong generalization capabilities, achieving a significant improvement in zero-shot recall (zR@k) when combined with RFA, outperforming the second-best method by 13% and 7%.

Limitations and Future Work

The authors acknowledge the ongoing challenges associated with distilling features from VLPMs to SGG.

  • Discrepancy in Feature Focus: While RFA helps align CLIP's global feature focus with SGG's local predicate focus, further exploration of more fine-grained VLPM enhancements could be beneficial.
  • Structured Knowledge Limitations: CLIP's current limitations in capturing structured knowledge (object properties, predicates) are noted. Future work could explore distillation with more advanced CLIP models or other VLPMs that better capture such structured information.
  • Small Object Detection: The paper mentions that the DETR-based detector struggles with small objects, which impacts R@k on datasets like VG. Improving small-object detection could further enhance performance.

Summary updated

BibTeX
@article{hao2024bctr,
  author = {Peng Hao and Weilong Wang and Xiaobing Wang and Yingying Jiang and Hanchao Jia and Shaowei Cui and Junhang Wei and Xiaoshuai Hao},
  title = {{BCTR: Bidirectional Conditioning Transformer for Scene Graph Generation}},
  journal = {Information Fusion},
  year = {2024},
  doi = {10.1016/j.inffus.2025.103260},
}
Figure