[Paper Review] RelTR: Relation Transformer for Scene Graph Generation
This paper proposes RelTR, a one-stage end-to-end scene graph generation model based on a Transformer encoder-decoder architecture that directly predicts a fixed set of subject-predicate-object triplets using visual appearance only. By leveraging coupled subject and object queries with a set prediction loss using IoU-based bipartite matching, RelTR achieves state-of-the-art performance on Visual Genome, Open Images V6, and VRD with faster inference and fewer parameters than two-stage methods.
Different objects in the same scene are more or less related to each other, but only a limited number of these relationships are noteworthy. Inspired by DETR, which excels in object detection, we view scene graph generation as a set prediction problem and propose an end-to-end scene graph generation model RelTR which has an encoder-decoder architecture. The encoder reasons about the visual feature context while the decoder infers a fixed-size set of triplets subject-predicate-object using different types of attention mechanisms with coupled subject and object queries. We design a set prediction loss performing the matching between the ground truth and predicted triplets for the end-to-end training. In contrast to most existing scene graph generation methods, RelTR is a one-stage method that predicts a set of relationships directly only using visual appearance without combining entities and labeling all possible predicates. Extensive experiments on the Visual Genome and Open Images V6 datasets demonstrate the superior performance and fast inference of our model.
Motivation & Objective
- To address the inefficiency and high parameter count of two-stage scene graph generation methods that predict dense relationships between all object proposals.
- To enable direct, end-to-end prediction of sparse, meaningful scene graphs using only visual appearance, without relying on pre-annotated object proposals or exhaustive predicate classification.
- To design a set prediction loss with IoU-based matching to align predicted triplets with ground truth during training.
- To improve localization and classification of subjects and objects through decoupled entity attention in the triplet decoder.
- To demonstrate that a visual-only, one-stage approach can achieve SOTA performance with faster inference and reduced model complexity.
Proposed method
- RelTR employs an encoder-decoder Transformer architecture where the encoder processes visual features and the decoder generates a fixed-size set of triplets using coupled subject and object queries.
- The triplet decoder uses multi-head attention mechanisms to reason about global image context and co-occurrences between entities, enabling joint prediction of subject, object, and predicate.
- A novel set prediction loss is introduced that performs bipartite matching between ground truth and predicted triplets using intersection-over-union (IoU) to assign optimal predictions.
- Decoupled entity attention in the decoder improves subject and object localization and classification by separately attending to subject and object representations.
- The model is trained end-to-end using visual appearance only, without requiring pre-annotated object proposals or relationship labeling on all possible pairs.
- The framework is simple to implement and publicly released with code and pre-trained models.
Experimental results
Research questions
- RQ1Can a one-stage, end-to-end Transformer-based model generate sparse, meaningful scene graphs directly from visual appearance alone, without relying on two-stage detection pipelines?
- RQ2How effective is an IoU-based bipartite matching strategy for assigning ground truth triplets to model predictions during training?
- RQ3To what extent do coupled subject and object queries with decoupled attention improve localization and relationship prediction in scene graph generation?
- RQ4Does a visual-only, one-stage approach outperform existing two-stage SGG models in terms of accuracy, inference speed, and parameter efficiency?
- RQ5How do the learned subject and object queries behave, and what role do they play in capturing relevant relationships?
Key findings
- RelTR achieves state-of-the-art performance on the Visual Genome, Open Images V6, and VRD datasets, outperforming existing two-stage models in both accuracy and inference speed.
- On Visual Genome, RelTR achieves a mean recall of 41.7% at 9 predictions (R@9), with qualitative results showing correct prediction of low-frequency spatial relationships like 'in front of'.
- Despite some ground truth annotation biases—such as missing or duplicate triplets—RelTR maintains strong performance, indicating robustness to dataset noise.
- The model generates high-quality, confident triplet proposals on Open Images V6, where average annotations contain only 2.8 triplets per image, demonstrating strong generalization to simpler, large-scale scenarios.
- RelTR shows improved localization and classification through decoupled entity attention, which enhances the quality of subject and object representations independently.
- The ablation study confirms that the set prediction loss with IoU-based matching is critical for performance, and the model's behavior is interpretable via attention maps that highlight relevant image regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.