Target-Tailored Source-Transformation for Scene Graph Generation
Wentong Liao, Cuiling Lan, Wenjun Zeng, Michael Ying Yang, Bodo, Rosenhahn

TL;DR
This paper introduces a Target-Tailored Source-Transformation method for scene graph generation, enabling more precise information transfer between objects by considering source and target specifics, leading to state-of-the-art results.
Contribution
It proposes a novel source transformation approach that tailors information transfer between objects, integrating language and visual context for improved scene graph generation.
Findings
Achieves state-of-the-art performance on Visual Genome benchmark.
Mutually improves object detection and relationship detection.
Effectively incorporates language prior into visual context.
Abstract
Scene graph generation aims to provide a semantic and structural description of an image, denoting the objects (with nodes) and their relationships (with edges). The best performing works to date are based on exploiting the context surrounding objects or relations,e.g., by passing information among objects. In these approaches, to transform the representation of source objects is a critical process for extracting information for the use by target objects. In this work, we argue that a source object should give what tar-get object needs and give different objects different information rather than contributing common information to all targets. To achieve this goal, we propose a Target-TailoredSource-Transformation (TTST) method to efficiently propagate information among object proposals and relations. Particularly, for a source object proposal which will contribute information to other…
| Method | SGGen | SGCls | PredCls | |||||||
| R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | ||
| VRD (Lu et al., 2016) | 0.3 | 0.5 | 11.8 | 14.1 | 27.9 | 35.0 | ||||
| IMP (Xu et al., 2017) | 14.6 | 20.7 | 24.6 | 31.7 | 34.6 | 35.4 | 52.7 | 59.3 | 61.3 | |
| Graph R-CNN (Yang et al., 2018) | - | 11.4 | 13.7 | - | 29.6 | 31.6 | - | 54.2 | 59.1 | |
| Mem (Wang et al., 2019) | 7.7 | 11.4 | 13.9 | 23.3 | 27.8 | 29.5 | 42.1 | 53.2 | 57.9 | |
| NLPVR(Liao et al., 2019) | - | 22.0 | 23.5 | - | 28.0 | 30.1 | - | - | - | |
| AVR(Hu et al., 2019) | - | 19.4 | 22.7 | - | 29.4 | 34.5 | - | 58.2 | 60.7 | |
| KERN (Chen et al., 2019b) | - | 27.1 | 29.8 | - | 36.7 | 37.4 | - | 65.8 | 67.6 | |
| MotifNet-Freq (Zellers et al., 2018) | 20.1 | 26.2 | 30.1 | 29.3 | 32.3 | 34.0 | 53.6 | 60.6 | 62.2 | |
| MotifNet (Zellers et al., 2018) | 21.4 | 27.2 | 30.3 | 32.9 | 35.8 | 36.5 | 58.5 | 65.2 | 67.1 | |
| Ours | TTST (w/o SRF) | 22.4 | 29.3 | 33.1 | 34.2 | 37.3 | 38.3 | 61.8 | 66.5 | 67.7 |
| TTST | 23.8 | 32.3 | 35.4 | 35.1 | 38.6 | 39.7 | 60.3 | 64.2 | 66.4 | |
| Model | TTST | Language | PredE | SRF | Detection | SGGen | SGCls | PredCls | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| mAP | R@50 | R@100 | R@50 | R@100 | R@50 | R@100 | |||||
| 1 | - | - | - | - | 16.6 | 12.7 | 15.9 | 26.6 | 27.4 | 52.4 | 54.1 |
| 2 | ✓ | - | - | - | 18.5 | 17.1 | 19.9 | 29.7 | 32.4 | 58.3 | 60.4 |
| 3 | ✓ | ✓ | - | - | 20.2 | 24.7 | 27.1 | 33.0 | 35.1 | 62.0 | 64.2 |
| 4 | ✓ | ✓ | ✓ | - | 20.4 | 29.3 | 33.1 | 37.3 | 38.3 | 66.5 | 67.7 |
| 5 | ✓ | ✓ | ✓ | ✓ | 20.8 | 32.3 | 35.4 | 38.6 | 39.7 | 64.2 | 66.4 |
| ID | Embeddings | Detection | SGGen | SGCls | PredCls | |||
|---|---|---|---|---|---|---|---|---|
| mAP | R@50 | R@100 | R@50 | R@100 | R@50 | R@100 | ||
| 1 | - | 18.7 | 21.5 | 24.6 | 31.4 | 33.8 | 62.9 | 65.1 |
| 2 | Confidence | 19.7 | 25.4 | 29.6 | 33.9 | 36.2 | 65.8 | 67.2 |
| 3 | Language | 20.8 | 29.3 | 33.1 | 37.3 | 38.3 | 66.5 | 67.7 |
| ID | Method | SGGen | SGCls | PredCls | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | ||
| 1 | Pair Confidence | 22.4 | 29.3 | 33.1 | 34.2 | 37.3 | 38.3 | 61.8 | 66.5 | 67.7 |
| 2 | Frequency | 21.0 | 28.4 | 31.1 | 32.7 | 35.1 | 35.8 | 61.5 | 66.0 | 67.6 |
| 3 | SRF | 23.8 | 32.3 | 35.4 | 35.1 | 38.6 | 39.7 | 60.3 | 64.2 | 66.4 |
| IteNr. | Object Detection | SGGen | SGCls | PredCls | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| mAP | R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | R@20 | R@50 | R@100 | |
| 1 | 19.1 | 19.3 | 26.5 | 30.1 | 29.8 | 32.3 | 34.7 | 57.6 | 59.8 | 62.1 |
| 2 | 20.8 | 23.8 | 32.3 | 35.4 | 35.1 | 38.6 | 39.7 | 60.3 | 64.2 | 66.4 |
| 3 | 20.6 | 23.1 | 32.2 | 35.4 | 34.4 | 37.1 | 40.1 | 60.5 | 65.7 | 67.8 |
| Model | Detection | SGGen | SGCls | PredCls | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| obj-obj | rel-obj | obj-rel | rel-rel | mAP | R@50 | R@100 | R@50 | R@100 | R@50 | R@100 | |
| 0 | - | - | - | - | 16.6 | 14.1 | 18.5 | 27.7 | 30.5 | 54.2 | 58.4 |
| 1 | - | - | ✓ | - | 16.7 | 14.8 | 19.7 | 28.7 | 32.0 | 59.7 | 62.8 |
| 2 | - | - | - | ✓ | 16.6 | 14.7 | 19.6 | 27.9 | 31.4 | 58.2 | 61.3 |
| 3 | - | - | ✓ | ✓ | 16.7 | 15.1 | 20.2 | 29.0 | 32.3 | 60.9 | 63.4 |
| 4 | ✓ | - | - | - | 19.8 | 25.5 | 28.1 | 32.5 | 36.8 | 55.8 | 59.7 |
| 5 | - | ✓ | - | - | 16.8 | 14.2 | 18.5 | 28.0 | 31.1 | 55.5 | 59.5 |
| 6 | ✓ | ✓ | - | - | 20.2 | 26.4 | 28.6 | 33.8 | 37.7 | 56.1 | 59.8 |
| 7 | ✓ | ✓ | ✓ | ✓ | 20.8 | 32.3 | 35.4 | 38.6 | 39.7 | 64.2 | 66.4 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Advanced Image and Video Retrieval Techniques · Advanced Neural Network Applications
∎
11institutetext: Wentong Liao 22institutetext: [email protected] 33institutetext: Cuiling Lan 44institutetext: [email protected] 55institutetext: Wenjun Zeng 66institutetext: [email protected] 77institutetext: Michael Ying Yang 88institutetext: [email protected] 99institutetext: Bodo Rosenhahn 1010institutetext: [email protected] 1111institutetext: 1 Institute für Informationsverarbeitung, Leibniz Universität Hannover, Germany 1212institutetext: 2 Microsoft Research Asia, Beijing, China 1313institutetext: 3 Scene Understanding Group, University of Twente, The Netherlands
Target-Tailored Source-Transformation for Scene Graph Generation
Wentong Liao1
Cuiling Lan2
Wenjun Zeng2
Michael Ying Yang3
Bodo Rosenhahn1
(Received: date / Accepted: date)
Abstract
Scene graph generation aims to provide a semantic and structural description of an image, denoting the objects (with nodes) and their relationships (with edges). The best performing works to date are based on exploiting the context surrounding objects or relations, e.g., by passing information among objects. In these approaches, to transform the representation of source objects is a critical process for extracting information for the use by target objects. In this work, we argue that a source object should give what target object needs and give different objects different information rather than contributing common information to all targets. To achieve this goal, we propose a Target-Tailored Source-Transformation (TTST) method to efficiently propagate information among object proposals and relations. Particularly, for a source object proposal which will contribute information to other target objects, we transform the source object feature to the target object feature domain by simultaneously taking both the source and target into account. We further explore more powerful representation by integrating language prior with visual context in the transformation for scene graph generation. By doing so the target object is able to extract target-specific information from the source object and source relation accordingly to refine its representation. Our framework is validated on the Visual Genome benchmark and demonstrated its state-of-the-art performance for the scene graph generation. The experimental results show that the performance of object detection and visual relationship detection are promoted mutually by our method.
Keywords:
Scene graph generation Message passing Feature transformation
1 Introduction
In recent years great successes have been witnessed on vision perceptual tasks such as image classification (Perronnin et al., 2010; Simonyan and Zisserman, 2014; Szegedy et al., 2015), object detection (Felzenszwalb et al., 2009; Girshick, 2015; Ren et al., 2015; Liu et al., 2016; He et al., 2017; Redmon and Farhadi, 2017), semantic segmentation (Silberman et al., 2012; Long et al., 2015; Zhao et al., 2017). However, these object-centric visual perception is still far from the goal of visual scene understanding which requires understanding the visual relationships between objects (Papalia et al., 2007; Firestone and Scholl, 2016).
Some recent work (Johnson et al., 2015; Krishna et al., 2017) proposed to represent the visual scene as a scene graph which models objects and their attributes as nodes, and their relationships as edges, as illustrated in Fig. 1. Scene graph has been proved to be a promising alternative for many visual tasks such as image retrieval (Johnson et al., 2015), image caption (Yao et al., 2018; Gao et al., 2018; Xu et al., 2019; Yao et al., 2019; Yang et al., 2019), visual question and answering (Johnson et al., 2017; Teney et al., 2017; Wu et al., 2017; Li et al., 2019), image generation (Johnson et al., 2018; Yikang et al., 2019; Zhao et al., 2019; Ashual and Wolf, 2019), etc. The task of scene graph generation has been attracting increasing attention (Silberman et al., 2012; Lu et al., 2016; Yang et al., 2017; Qi et al., 2018; Gkioxari et al., 2018; Zellers et al., 2018; Liao et al., 2019; Hu et al., 2019).
A natural idea to generate scene graph is to detect objects using an off-the-shelf object detector, and then predict their pairwise relationships separately (Lu et al., 2016; Mallya and Lazebnik, 2016; Zhang et al., 2017). However, these approaches ignore the exploration of visual context, which could provide powerful inductive bias and strong regularities (Zellers et al., 2018) that help detect objects and reason their relations. For example, “keyboard” and “mouse” often co-occur within a scene, and “man” tends to “ride” the “horse”. Many works have exploited the visual context in different ways to help scene graph generation (Xu et al., 2017; Yu et al., 2017; Li et al., 2017a, b; Dai et al., 2017; Zellers et al., 2018). Particularly, modeling message passing among objects is the most widely applied method for exploiting the visual context and its effectiveness has been proved for scene graph generation. In previous message passing methods, the representation of a source object is first transformed, via a learned shared transformation before being remedied to update the target object (Xu et al., 2015; Li et al., 2018, 2017b; Yang et al., 2018). To make the shared transformation suitable for any target object, is unfortunately encouraged to learn information from source objects which is commonly useful for different target objects.
We argue that two important elements are overlooked in most of the existing message passing methods for scene graph generation. First, the semantic dependencies between target objects and source objects are ignored in the source-transformation step because this transformation is independent of the target object.
For example as shown in Fig. 1(b)(top), a “boot” will contribute the same information to “person” as to ”horse” (edges are denoted by the same color) with the shared transformation. Intuitively, target-tailored information is more useful than common information for a specific target object. For example, “boot” should contribute information of “wearing things” to “person” while contributing information of “riding gear” to “horse” (See Fig. 1(b)(bottom) edges are denoted by different colors). Second, how to effectively couple the visual and language context into the learning process has not attracted much attention. The visual appearance determines the visual context while the language prior guides how objects relate to each other in the linguistic domain. For instance, when we see “person on a motor” (visual context), we humans spontaneously infer the relation as “ride” rather than “on” or “sit” (language prior). The language prior and visual information should be compatible and mutually promotive rather than implemented separately.
Motivated by these observations, we propose a target-tailored source-transformation (TTST) method for message passing to exploit context for scene graph generation. “Target-tailored” means that when a source contributes information to different targets, we expect it to deliver target specific information, i.e., give as exactly as possible what the target needs. To achieve this goal, we simultaneously consider the source and target when transforming the source information to the target domain. Furthermore, we propose to integrate the language priors with visual context in the transformation process. By doing so, messages are propagated through the graph more effectively and the learned representations are more powerful.
We depict our framework in Fig. 2. We build it based on the Faster R-CNN detector (Ren et al., 2015) to generate object proposals (Fig. 2(a)). Then, a graph is initialized by connecting each pair of objects. We introduce a learned semantic relationship filter (SRF, see Sec. 3.2) to prune the spurious connections between objects (Fig. 2(b)) to facilitate the subsequent message passing processes. Then, we apply the proposed target-tailored source transformation for message passing from connected nodes and edges in the graph (see Sec. 3.3, Fig. 2(c)(e)). Finally, the labels of graph nodes are predicted with the context-rich features, and the edge labels are inferred by using the refined relationship features along with the semantic information of the connected object nodes (Fig. 2(d)).
Our work has two major contributions:
- •
We propose an effective target-tailored source-transfor-
mation method for message passing, which explores information from source object/relation to refine target object/relation by considering the source object/relation and target object/relation simultaneously.
- •
Language context is utilized to help message passing for learning powerful representation for scene graph generation.
Our framework achieves the state-of-the-art results on the VG benchmark dataset Krishna et al. (2017) for scene graph generation. Moreover, the experimental results demonstrate the mutual improvements of object detection and relationship detection via our method.
2 Related Works
Context for Visual Reasoning. Context has been explored to improve different scene understanding tasks for decades (Divvala et al., 2009; Ladicky et al., 2010; Yao and Fei-Fei, 2010; Hu et al., 2018; Liu et al., 2018). Silberman et al. (2012) proposed to infer the support relation between segmented objects, and utilize the interaction context to improve the performance of object segmentation in the indoor scenes. Yang et al. (2017) proposed to generate a scene graph for each image by reasoning the support relations between objects and using the scene context. To learn better contextual information, a number of works attempt to capture object context from an image in the message passing mechanism, such as through a graph model (Li et al., 2018; Yang et al., 2018), implementing RNN (Zellers et al., 2018; Chen et al., 2019a; Wang et al., 2019; Hu et al., 2019), or in an iterative refinement process (Xu et al., 2017).
Besides visual context, contexual information from language priors (Mikolov et al., 2013; Pennington et al., 2014) has been proved to be helpful for visual relationships detection and scene graph generation (Lu et al., 2016; Yu et al., 2017; Li et al., 2017b; Liao et al., 2019). Lu et al.(Lu et al., 2016) made use of language priors to improve the detection of meaningful relationships between objects. Li et al.(Li et al., 2017b) exploited language priors from region captions for scene graph generation by predicting image caption and detecting visual relationships in parallel. Yu et al.(Yu et al., 2017) distilled linguistic knowledge by training a parallel language branch as a teacher network to help the visual network (student) predict visual relationships. Liao et al.(Liao et al., 2019) proposed to use the language prior from pre-trained word2vector to guide the model to infer the relationship between objects belonging specific categories.
In contrast to above works that utilize language prior separately, we integrate the language priors and the visual context in the transformation step to help message passing and learn better semantic representations.
Scene Graph Generation. Scene graph was first proposed in (Johnson et al., 2015) and implemented for image retrieval. It generalizes the task of detecting object to also detecting their attributes and reasoning relationships between them. Scene graph generation which includes object detection and visual relationship detection are attracting increasing attention in computer vision (Li et al., 2017b; Dai et al., 2017; Liang et al., 2017; Zhuang et al., 2017; Li et al., 2018; Zellers et al., 2018; Woo et al., 2018; Wang et al., 2019; Chen et al., 2019a, b). Context has been proved to be useful for scene graph generation and many works resort to message passing to exploit the contextual information of the related objects (Li et al., 2017a; Zellers et al., 2018; Chen et al., 2019b; Wang et al., 2019; Liao et al., 2019), or of the objects and their relationships (Xu et al., 2017; Li et al., 2017b, 2018; Yang et al., 2018; Hu et al., 2019).
Nevertheless, all existing transformation methods do not take the target into account. Consequently, to any target, the source contributes identical information. For instance, “horse” contributes the same content to “human” and “grass” after the transformation, even though an attention mechanism is used to weight the contribution. However, intuitively, the transformed content should be dependent on both the target and source. Our TTST for message passing is essentially different from previous works by considering the source objects and target object simultaneously. By doing so, for a different target object, the source object contributes different information, and thus the learned representation of target object is more powerful.
3 Proposed Approach
An overview of our proposed model is depicted in Fig. 2. Our goal is to infer a scene graph for a given image , which summaries the objects as nodes and relations between every two objects as edges. The inferring process can be formally defined as:
[TABLE]
where are locations of objects, stand for subject, relation (predicate), and object, respectively, and . denotes the inference probability. can be modeled by an off-the-shelf object detector (Fig. 2(a)). We will discuss each inference module of (Fig. 2(c)) and (Fig. 2 (d)) in the following.
3.1 Object Proposals
Given an image, we use Faster R-CNN (Ren et al., 2015) to generate a set of object proposals , as shown Fig. 2(a). Each detected object is associated with its located region , initially predicted label distribution over all classes , and the pooled visual feature vector .
3.2 Semantic Relationship Filter
With object proposals, there are edges in the fully connected graph when considering every two objects have a relation (Fig. 2(b)). It has been pointed out in many previous works that most of the object pairs have no relationship due to the real-world regularities of objects interaction (dash edges in Fig. 2(b)). We have also observed that information propagated from the unrelated objects could deteriorate the system’s performance because of the possible noise and interfering information. On the other hand, message passing through a fully connected graph is computationally costly and of low efficiency. To make the message passing processes more effective, we propose a semantic relationship filter (SRF) to remove the unlikely relationships, similar to what is done in (Yang et al., 2018).
For an object , we compute its semantic representation by multiplying its estimated class distribution by the semantic semantic word embedding matrix :
[TABLE]
where each entry in is an embedding vector for the corresponding object class. It is learned from the region caption annotation of the Visual Genome (VG) dataset (Krishna et al., 2017) by adopting Glove (Pennington et al., 2014). A multi-layer perception (MLP) is trained to estimate a semantic relatedness score between and by feeding , where denotes a concatenation operation and is the normalization of with respect to the union box of . Then, the object pairs with the top relatedness scores which are also larger than an empirical threshold, are kept and denoted as .
A relationship of is denoted as . We extract its basic representation by fusing its visual feature with the spatial feature, as depicted in Fig. 3. The visual feature is pooled from the shared feature maps on the tight union box of . The spatial feature is first represented as a two-channel binary mask, which indicates the places of subject and object respectively. Within the mask the pixels which are within the region of subject/object are denoted as 1, otherwise as 0. Then they are fed forward to two sequential convolutional layers each of which is followed by a ReLU activation. A max pooling operation is inserted between the two convolutional layers.
3.3 Target-Tailored Source-Transformation for Message Passing
3.3.1 Message Passing Revisited
Generally, passing message to a target node from its neighboring nodes at the step can be defined as:
[TABLE]
where is the weight for the neighboring node and is computed using attention mechanism typically. is a shared learned transformation matrix which is used to project the representation of source objects to a common domain. is a nonlinear operation. After several iterations, a representation with a high-order context is obtained and forwarded to the subsequent inference module.
However, contributes the same information to any target . Ideally, the transformation should consider the semantic dependency between the target and the source . To address this problem, we propose the target-tailored source-transformation (TTST) for message passing to better explore context through the graph. The TTST message passing process is depicted in Fig. 2(c)(e) and discussed in the following.
3.3.2 TTST for Objects
To learn the context of objects and relationships at different semantic levels, messages are passed from both the neighboring objects and relationships to the target object. This message passing is formulate as:
[TABLE]
Note that, the superscript is removed for simplicity. The superscript and represent object and relationship respectively. is our TTST operation and the arrow indicates the message passing direction. It is worth noting that is computed by Eq. (2) which contains language prior. It is concatenated with the visual feature as complete representation of object . Therefore, broadcasts the visual information as well as the language prior among object nodes. Consequently, both the visual context and the language prior between objects are learned and integrated into the refined representations of target objects. Because the transformation “sees” the target and object simultaneously, it is target-tailored source-transformation. Moreover, the transformation is further better guided by the implicit language prior in between different classes of objects. The ablation studies in Sec. 4.2 will show how the language prior affects the performance.
3.3.3 TTST for Relationships.
TTST is also applied to capture context for relationships from its neighboring objects (i.e. , the subject and object) and neighboring relationships as follows:
[TABLE]
is defined as the set of relationships in which each relationship involves either or . It is worth noting that, after the first iteration in Eq. (4), and contain context of the language prior. Consequently, also integrates context of the language prior to the relationship representation.
Each transformation is a separately learned MLP (two fully connected (FC) layers followed by a Relu operation). Each of them is responsible for passing messages in different directions and capturing different levels of context.
3.4 Inference
The inference module is depicted in Fig. 2(d). An object classifier is trained to predict the label distribution of object proposal using . Thus, in Eq. (1) is achieved. To infer the graph edge label (i.e. relation class), we semantically embed and to further explore context information of (subject, relation, object).
[TABLE]
where and denote the trainable embedding matrix of subject and object respectively. Then, the relationship is semantically represented as . Different from most of the previous works which simply combine the visual features or predicted label distribution of subject and object with the features of relationship, we further explore their context information. Finally, an MLP (consisting of two FC layers followed by a Relu and softmax operation sequentially) is trained to predict the relation class distribution using . Now, in Eq. (1) is achieved. The labels of objects and relations that maximize Eq. (1) are selected.
4 Experiments
In this section we firstly clarify the experimental settings and implementation details. Then, we compare our methods with the state-of-the-art approaches. We conduct extensive ablation study on each module of our framework and demonstrate their effectiveness.
**Datasets. ** The Visual Genome (VG) dataset (Krishna et al., 2017) is the largest and most popular benchmark dataset for the task of scene graph generation. However, different works use different data splits. For a fair comparison, we adopted the most widely adopted ddataset split in (Xu et al., 2017). In the data split, the most-frequent 150 object categories and 50 predicate types are selected. The dataset is split into a training set with images and a test set with images. Visual Relationship Detection (VRD) (Lu et al., 2016) dataset is another popular dataset for relationship detection in the early stage. However, it is a very small subset of the VG dataset, so as the recent works, we will not conduct experiments on it.
**Implementation Details. ** Faster R-CNN (Ren et al., 2015) with VGG16 (Simonyan and Zisserman, 2014) as backbone is implemented as our underlying detector and basic visual feature extractor. The codebase is provided by (Zellers et al., 2018). The input images are scaled and then zero-padded to the size of . ROI-pooling (Girshick, 2015) is applied to extract features of nodes and edge from the basic shared feature maps. In the SRF module, the embedding matrix is initialized with the -D (dimensions) Word2vec provided by (Lu et al., 2016), and a two-layer MLP is trained to output a -D vector which then goes through a sigmoid function to squash the predicted score in . We enable SRF to keep at most relationship proposals with threshold empirically set to by considering the trade-off between high recall and accuracy of correct relationships. Each feature transformation in TTST is an MLP which consists of two FC layers (each followed by Relu operation) and outputs -D feature vectors for objects and -D feature vectors for relationships, respectively. The embedding matrices are randomly initialized, where each row corresponds to an object class.
All experiments are conducted on a single GTX 1080 Ti graphic card with Pytorch framework.
**Training. ** We perform stage-wise training. Similar to previous works (Lu et al., 2016; Yang et al., 2018) the object detector and the backbone are firstly fine tuned on VG and then frozen. Then, the following modules are trained with different supervisions: SRF module is trained with logistic loss, and the TTST message passing module is trained with the sum of cross entropy for object classification and relation classification. SGD () is applied for optimization with momentum . The learning rate begins to decay after the first 10 training epochs and it decays after each 3 epochs. The whole model is jointly trained until the loss convergences.
**Evaluation. ** We look into three universal evaluation tasks for scene graph generation. (1) Predicate classification (PredCls): given the groundtruth bounding boxes and labels of objects, predict edge (relation) labels. (2) Scene graph classification (SGCls): given groundtruth bounding boxes of objects, predict node (objects) labels and edge labels. (3) Scene graph detection (SGGen): predict boxes, node labels and edge labels given an image. SGGen is the more realistic and important metric since in practice the groudtruth bounding boxes and labels of objects are not accessible. Only when the predicted labels of the subject, relation, and object of a relationship match the ground truth annotation, and the boxes of subject and object have more than IoU with the ground truth ones simultaneously, is this detection counted as correct. The recall@K metrics () for relations (Lu et al., 2016; Yang et al., 2018; Zellers et al., 2018) are used to evaluate the system performance.
4.1 Quantitative Comparisons
The quantitative results from different models are compared in Tab. 1. We compare our methods with the recent strong models: MotifNet (Zellers et al., 2018) that learns regularities using RNN, capturing context by message passing (IMP (Xu et al., 2017)), Graph R-CNN (Yang et al., 2018), Mem (Wang et al., 2019)), Attention for Visual Relationship (AVR) (Hu et al., 2019), VRD (Lu et al., 2016) which uses language prior, KERN (Chen et al., 2019b) that exploits statistical prior knowledge and the strong frequency baseline MotifNet-Freq (Zellers et al., 2018). Because the works MSDN (Li et al., 2017b), FacNet (Li et al., 2018) and CRF-like work DRNet (Dai et al., 2017) apply their own data split, we do not compare with them here. It is worth noting that their basic object detector is reported to have in [email protected] in terms of object detection accuracy (Zellers et al., 2018), while our implementation of the same basic object detector has only in [email protected] when we use their released code, which means that we do not have an advantage in the front-end object detector. Thus, the comparison is not in favor of ours in terms of object detection.
From Tab. 1, we observe that our final model TTST outperforms other methods on all metrics (a little inferior to MotifNet and KERN for PredCls. It is caused by the SRF. We will clarify the reasons in Sec. 4.2 ). It demonstrates that our method improves scene graph generation significantly. Specifically, our method is superior to FacNet, Graph R-CNN and Mem which attempt to capture context using message passing approaches. Compared to VRD and NLPVR which explicitly exploits language prior, our method shows significant improvement. It suggests that, compared to using language prior separately to predict the relationship labels, our model effectively integrates it with the visual context and learns more powerful representation. Our method also outperforms MotifNet and the strong frequency baseline MotifNet-Freq, which indicates that our model not only learns the co-occurrence statistics of combination (subject, relation, object) from the training data but also explores the context in the given scene.
It’s worth noting that, our model TTST (w/o SRF) without using the SRF module already achieves better results than the previous work, especially in task of PredCls. We will discuss more in Sec. 4.2.
4.2 Ablation Studies
Three modules are applied to boost the performance of scene graph generation: SRF, TTST and an embedding operation of subject and object for prediction relationship (PredE). To study how each of them affects the final performance, we perform several ablation experiments.
4.2.1 Effectiveness of TTST
In Tab. 2, Model 1 is the baseline scheme which predicts the relationship between labels by combining the features of subject, union box, and object. Comparing Model 1 and Model 2, we find that TTST boosts the overall performance significantly. For the SGGen setting, TTST brings 4.4% and 4.0% improvement for R@50 and R@100 respectively. TTST efficiently exploits context by the target-tailored source- transformation for message passing and enables the powerful feature representation learning. Such visual context is clearly helpful for understanding the interaction between objects, and object detection ( mAP gain).
4.2.2 Effectiveness of Language Context in TTST
We add the language prior into the TTST in Model 3 (see Tab. 2) as described in Eq. (4). This brings further significant improvement when compared with Model 2. It demonstrates that: 1) language prior helps better explore the context among objects and relationships, and 2) TTST effectively integrates language prior with visual context through the message passing rather than only using it as association information as in previous works, e.g., (Lu et al., 2016; Li et al., 2017b).
4.2.3 Effectiveness of Embedding for Inferring Relation
In Model 4, we additionally embed the predicted class information of subject and object for predicting their relation (PredE). We can see that the performance is further improved in all the settings. For the SGGen setting, PredE brings 4.6% and 6.0% in R@50 and R@100, respectively. The explicit introduction of the semantics (class types) of the two objects involved in a relationship is helpful to infer the relations, where the co-occurrence of relationship triplet (subject, relation, object) is mined.
4.2.4 Effectiveness of SRF
Finally, we apply SRF to prune the spurious edges to get a sparsely connected graph (Model 5). Note that when SRF is not utilized, we select 128 object pairs for the subsequent message passing based on confidence scores. Particularly, we define a confidence score for an object pair as the product of the predicted label confidences of subject and object. The object pairs with top 128 confidence scores are selected (due to the limited GPU memory). We notice that almost all performances are improved, except that PredCls (which uses groudtruth bounding boxes and class labels) is a bit inferior to Model 4. That is because SRF may mistakenly remove some “good” candidates of relationship. We enable SRF to keep at most 128 pairs. But for some images there are less pairs that meet the threshould of SRF. In contrast, the scheme without using SRF can avoid such removing. The improvements for SGGen and SGCls demonstrates that SRF is effective in selecting the object pairs which are likely to have relationships, especially when the object proposals are noisy. We analyze the gain taken by SRF as follows. Even though deep learning technologies enable the network to learn powerful features from reasonable input, the learned features contain noise or interfering information, because of the imperfect model, training strategy, etc.. If the input is preprocessed in order to remove noise or interfering information, the model is likely to learn better features. In our model, the spurious relations between objects broadcast the interference via message passing through the graph and deteriorate the model learning process. SRF effectively reduces such kind of interference by removing the spurious relations.
4.2.5 Language Prior v.s. Class-relationships Prior
It is a popular method that explores the class-relationships prior by utilizing object classification confidence for scene graph generation (Dai et al., 2017; Yang et al., 2018). In order to compare the effectiveness of language priors and class-relationships prior in our TTST, we design this ablation studies by replacing the embedding in Eq. (4) by the corresponding classification confidence . The results are given in Tab. 3.
We can see that, both language prior and class-relationships prior help our TTST module to get better performance. The class information plays an important role in guiding the message passing in TTST. However, using language prior to explore the context brings more improvements than the one using class-relationships prior. Class-relationships prior provides the contextual information of the co-occurrence of different object classes within an image in the training dataset. Language prior contained in the learned word2vector does not only reflect the co-occurrence of the nouns within a sentence but also the semantic relations in the language space. For example, “man” and “boy” have different class-relationships with “bike”, but their distances to “bike” in the word2vector space are similar, because “man” and “boy” share the similar semantic meaning “human being”.
4.2.6 Effectiveness of SRF v.s. Frequency-based Method
Previous works have proposed different methods to remove redundant object pairs to reduce computation and improve performance w.r.t. visual relationship detection (Li et al., 2017a; Dai et al., 2017; Li et al., 2017b; Yang et al., 2018). In this paper, we propose SRF to filter out the object pairs that are unlikely to have relationships, by utilizing language prior. Zellers et al.(Zellers et al., 2018) propose a strong frequency baseline for visual relationships. This statistical information between different object classes and relation types is worthy being explored to select object pairs that are likely to have meaningful relationships. Therefore, we conduct an ablation study to compare the effectiveness of SRF, which is trained to select object pairs using language prior, with the one that uses frequency information. When SRF is removed, we select the 128 object pairs which have the top pair confidence scores that equals the multiplication of the object classification scores of the subject and subject. Tab. 4 shows the results. In the motif frequency setting, 128 object pairs are selected (which are the most frequently occurring in the training set and their corresponding frequency is larger than ).
We can see that SRF outperforms the other two settings in the tasks of SGGen and SGCls. SRF is a little inferior to motif frequency for PredCls with the similar reason as explained in the previous section 4.2.4. Under the PredCls setting, all objects are groundtruth and there are very few object pairs that have no relationship. Selection based on pair confidence and motif frequency (128 pairs) retain almost all object pairs but SRF would mistakenly remove some (less than 128 pairs). Pair confidence settings perfrom the best in PredCls because it keeps almost all object pairs (because the confidence score of each object is 1) while motif frequency removes the object pairs with low statistic frequency.
In SGGen, there are a large number of object pairs (because of many predicted object candidates), selection with frequency will only retain the very frequent relationships and the not so frequent ones are removed. In contrast, SRF is able to effectively determine which object pairs have semantic relationships even though they are rare in the training set. On the other hand, selection with frequency needs to adapt the object classification results of faster r-cnn whose accuracy is insufficient. This leads to false removal of the object pairs. In contrast, SRF uses the semantics learned via embedding to reduce the negative effects of inaccurate object classification. This is also the reason why SRF outperforms the selection with frequency and pair confidence in SGGen and SGCls.
4.2.7 Iteration of Message Passing
TTST works in an iterative way to update the representation of nodes and edges, it is necessary to study how different numbers of iterations affect the final performance. Our full model is trained in different iterations of message passing and reports the results in Tab. 5. We notice that the overall performance increases with more iterations of message passing and most of the performance reaches the best after 2 iterations. After 3 iterations, some performances drop, especially object detection. But the performance in the PredCls task setting is still slightly improved. We analyze the reason as follows.
The context is captured by passing message to the neighbors via TTST. In one iteration the message is broadcast to its neighboring nodes. More iterations will broadcast the message to further nodes (edges) and capture wider context. Therefore, overall performance is improved. However, the noise and interfering information are also broadcast through the graph. With more iterations, each node/edge accumulates such harmful information in parallel with collecting context from others. Normally, a graph for an image is not large and information will go through the graph within 2 steps starting from any node (see Fig. 4). Thus, the context is already extracted sufficiently in two iterations and harmful information keeps accumulating with more iterations. Consequently, the model performance becomes worse with the deteriorated performance in object detection. Other existing works which pass messages iteratively also reported similar problem (Li et al., 2017b; Liu et al., 2018; Li et al., 2018). However, slight gains are obtained for PredCls which isolates the performance of object detection. It is because the relation representations are more complex and difficult than that of an individual object. More iterations will help refine the relation representations. The weaker object detection decreases the performance of SGGen and SGCls. Based on this study, we use 2 iterations in our final scheme.
4.2.8 Message Passing Direction
As formulated in Eq. (4)(5), message are propagated in four directions in TTST modules: obj-obj, rel-obj, obj-rel and rel-rel. We evaluated how each of the message passing direction affects the performance of our model. The results presented in Tab. 6 shows that any direction of message passing improves the performance of the framework (compared with Model 0) and the full message passing model has the best performance (Model 7). By comparing Model 1-3 with Model 4-6 correspondingly, we notice that passing message to objects (Eq. (4)) improves the performance of object detection (mAP is improved from to ). Consequently, the performance of SGGen (from to ) and SGCls (from to ) are improved significantly. When information is propagated to relationships (see Eq. (5)), the performance of PredCls is improved from to ( relative gain). Consequently, the overall performance is improved. Compared with those improvements from *-obj and *-rel separately, the full model shows further overall improvement. It demonstrates that the TTST modules learn the context by propagating information among objects and relationships effectively and benefit the mutual promotion of object detection and relationship detection.
4.2.9 Improvements on Object Detection
As shown in Tab. 2 and Tab. 6, TTST modules not only improve the performance of visual relationship detection but also the performance of object detection, which is one of the most important tasks for visual scene understanding and critically affects the overall performance of scene graph generation. We achieve the goal of mutual promotion of visual relationship detection and object detection.
4.3 Qualitative Results
Fig. 4 shows scene graphs generated by our model from the test set. We can see that our model is able to infer relationships between object pairs correctly (green edges) and generate high-quality scene graphs. Some true relationships that are not annotated in the ground truth also can be inferred correctly (blue edges), e.g.“man-wearing-jeans” in the first image. It implies that our model works even better than what the quantitative results demonstrate because the unannotated but correctly predicted relationships would deteriorate the performance under current evaluation metrics.
From the examples, we notice that when the detector fails, all the inference of edges to the object will be false, and this situation often occurs when detecting small objects. For example in the right image of the first row, many small or occluded objects are not correctly detected (orange boxes) and all edges connecting them are not recognized correctly. Another common failure case is caused by the ambiguity of relation types, e.g. ”wear” vs. “wearing”.
5 Conclusion
This paper proposes a novel and effective target-tailored source-transformation (TTST) for message passing to generate scene graph. Our model includes a SRF that effectively prunes the spurious connections between objects, and TTST modules that learn context by simultaneously “seeing” the target and source objects. Language prior is used to help message passing and integrated with visual context to learn powerful representations. The experimental results show that our method significantly outperforms the state-of-the-art methods for scene graph generation and meanwhile the performance of object detection is improved. The extensive ablation studies demonstrate the contribution of each proposed module to the framework.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ashual and Wolf (2019) Ashual O, Wolf L (2019) Specifying object attributes and relations in interactive scene generation. In: ICCV, pp 4561–4569
- 2Chen et al. (2019 a) Chen L, Zhang H, Xiao J, He X, Pu S, Chang SF (2019 a) Scene dynamics: Counterfactual critic multi-agent training for scene graph generation. ICCV
- 3Chen et al. (2019 b) Chen T, Yu W, Chen R, Lin L (2019 b) Knowledge-embedded routing network for scene graph generation. In: CVPR, pp 6163–6171
- 4Dai et al. (2017) Dai B, Zhang Y, Lin D (2017) Detecting visual relationships with deep relational networks. In: CVPR, pp 3076–3086
- 5Divvala et al. (2009) Divvala SK, Hoiem D, Hays JH, Efros AA, Hebert M (2009) An empirical study of context in object detection. In: CVPR, pp 1271–1278
- 6Felzenszwalb et al. (2009) Felzenszwalb PF, Girshick RB, Mc Allester D, Ramanan D (2009) Object detection with discriminatively trained part-based models. IEEE transactions on pattern analysis and machine intelligence 32(9):1627–1645
- 7Firestone and Scholl (2016) Firestone C, Scholl BJ (2016) Cognition does not affect perception: Evaluating the evidence for “top-down” effects. Behavioral and brain sciences 39
- 8Gao et al. (2018) Gao L, Wang B, Wang W (2018) Image captioning with scene-graph based semantic concepts. In: ICML, pp 225–229
