Add Batch da7caf16-20f1-4562-bf3b-611fb94f45bc
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_content_list.json +3 -0
- labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_model.json +3 -0
- labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_origin.pdf +3 -0
- labeldecouplingframeworkforsalientobjectdetection/full.md +284 -0
- labeldecouplingframeworkforsalientobjectdetection/images.zip +3 -0
- labeldecouplingframeworkforsalientobjectdetection/layout.json +3 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_content_list.json +3 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_model.json +3 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_origin.pdf +3 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/full.md +290 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/images.zip +3 -0
- labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/layout.json +3 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_content_list.json +3 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_model.json +3 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_origin.pdf +3 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/full.md +312 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/images.zip +3 -0
- largescaleobjectdetectioninthewildfromimbalancedmultilabels/layout.json +3 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_content_list.json +3 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_model.json +3 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_origin.pdf +3 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/full.md +356 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/images.zip +3 -0
- largescalevideorepresentationlearningviarelationalgraphclustering/layout.json +3 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_content_list.json +3 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_model.json +3 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_origin.pdf +3 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/full.md +285 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/images.zip +3 -0
- latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/layout.json +3 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_content_list.json +3 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_model.json +3 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_origin.pdf +3 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/full.md +299 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/images.zip +3 -0
- learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/layout.json +3 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_content_list.json +3 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_model.json +3 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_origin.pdf +3 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/full.md +511 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/images.zip +3 -0
- learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/layout.json +3 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_content_list.json +3 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_model.json +3 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_origin.pdf +3 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/full.md +279 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/images.zip +3 -0
- learning3dsemanticscenegraphsfrom3dindoorreconstructions/layout.json +3 -0
- learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_content_list.json +3 -0
- learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_model.json +3 -0
labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:205f91d43124c6e1c2784b575a5f13828fedd6986156fc01a4ee7814b389d6e5
|
| 3 |
+
size 71747
|
labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38a859563561974fa8af1126641601506306a84684e8ee446adc204ce129b043
|
| 3 |
+
size 88907
|
labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da66edbde6858b2b58631fc12e783af5559005cce482dec8327234181cfbee98
|
| 3 |
+
size 1358743
|
labeldecouplingframeworkforsalientobjectdetection/full.md
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Label Decoupling Framework for Salient Object Detection
|
| 2 |
+
|
| 3 |
+
Jun Wei $^{1,2}$ , Shuhui Wang $^{1*}$ , Zhe Wu $^{2,3}$ , Chi Su $^{4}$ , Qingming Huang $^{1,2,3}$ , Qi Tian $^{5}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>Key Lab of Intell. Info. Process., Inst. of Comput. Tech., CAS, Beijing, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ University of Chinese Academy of Sciences, Beijing, China $^{3}$ Peng Cheng Laboratory, Shenzhen, China $^{4}$ Kingsoft Cloud, Beijing, China $^{5}$ Noah's Ark Lab, Huawei Technologies, China
|
| 8 |
+
|
| 9 |
+
jun.wei@vipl.ict.ac.cn, wangshuhui@ict.ac.cn, zhe.wu@vipl.ict.ac.cn
|
| 10 |
+
|
| 11 |
+
suchi@kingsoft.com, qmhuang@ucas.ac.cn, tian.qil@huawei.com
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
To get more accurate saliency maps, recent methods mainly focus on aggregating multi-level features from fully convolutional network (FCN) and introducing edge information as auxiliary supervision. Though remarkable progress has been achieved, we observe that the closer the pixel is to the edge, the more difficult it is to be predicted, because edge pixels have a very imbalance distribution. To address this problem, we propose a label decoupling framework (LDF) which consists of a label decoupling (LD) procedure and a feature interaction network (FIN). LD explicitly decomposes the original saliency map into body map and detail map, where body map concentrates on center areas of objects and detail map focuses on regions around edges. Detail map works better because it involves much more pixels than traditional edge supervision. Different from saliency map, body map discards edge pixels and only pays attention to center areas. This successfully avoids the distraction from edge pixels during training. Therefore, we employ two branches in FIN to deal with body map and detail map respectively. Feature interaction (FI) is designed to fuse the two complementary branches to predict the saliency map, which is then used to refine the two branches again. This iterative refinement is helpful for learning better representations and more precise saliency maps. Comprehensive experiments on six benchmark datasets demonstrate that LDF outperforms state-of-the-art approaches on different evaluation metrics. Codes can be found at https://github.com/weijun88/LDF.
|
| 16 |
+
|
| 17 |
+
# 1. Introduction
|
| 18 |
+
|
| 19 |
+
Salient object detection (SOD) [1, 6, 10, 11, 12] aims at identifying the most visually attractive objects or parts in an image or video, which is widely applied as a pre-processing
|
| 20 |
+
|
| 21 |
+
Table 1. Mean absolute error of the predicted saliency maps $\mathrm{(MAE_{global})}$ and edge areas $\mathrm{(MAE_{edge})}$ of two state-of-the-art methods over three datasets. $\mathrm{MAE_{edge}}$ is much larger than $\mathrm{MAE_{global}}$ , demonstrating that edge prediction is more difficult.
|
| 22 |
+
|
| 23 |
+
<table><tr><td rowspan="2"></td><td colspan="3">EGNet [41]</td><td colspan="3">SCRN [34]</td></tr><tr><td>ECSSD</td><td>DUTS</td><td>DUT-O</td><td>ECSSD</td><td>DUTS</td><td>DUT-O</td></tr><tr><td>MAEglobal</td><td>0.037</td><td>0.039</td><td>0.053</td><td>0.037</td><td>0.040</td><td>0.056</td></tr><tr><td>MAEedge</td><td>0.289</td><td>0.292</td><td>0.298</td><td>0.299</td><td>0.297</td><td>0.302</td></tr></table>
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
(a) EGNet [41]
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
(b) SCRN [34]
|
| 30 |
+
Figure 1. Distribution of prediction error with respect to distance from pixel to its nearest edge. Horizontal coordinate represents the distance, which has been normalized to [0,1] and vertical coordinate is the prediction error. As can be seen, the closer the pixel is to the edge, the more difficult it is to be predicted.
|
| 31 |
+
|
| 32 |
+
procedure in downstream computer vision tasks [29, 35]. During the past decades, researchers have proposed hundreds of SOD methods based on hand-crafted features (e.g., color, texture and brightness) [29]. However, these features can not capture high-level semantic information, which restricts their applications in complex scenes. Recently, convolutional neural networks (CNNs) have demonstrated powerful capability of feature representation and greatly promoted the development of SOD. Many CNNs-based methods [15, 39, 26, 27, 28, 40, 4, 21, 7, 42, 16, 32] have achieved remarkable performance by designing different decoders to aggregate multi-level CNN features. To get better feature representations, these methods focus on mining more context information and devising more effective feature fusion strategies. Besides, introducing the boundary
|
| 33 |
+
|
| 34 |
+
information is another key point in SOD. Existing methods attempt to take edges as supervision to train SOD models, which significantly improves the accuracy of saliency maps [23, 20, 41, 34, 24, 13].
|
| 35 |
+
|
| 36 |
+
However, the imbalance between edge pixels and non-edge ones makes it hard to get good edge predictions. Therefore, directly taking edges as supervision may lead to suboptimal solutions. To better elaborate this statement, we calculate the mean absolute error (MAE) of two state-of-the-art methods (i.e., EGNet [41] and SCRN [34]) over three SOD datasets (i.e., ECSSD [36], DUTS [25] and DUT-O [37]) in Tab. 1. Though two methods get low error in global saliency prediction, they perform much worse in edge prediction, which shows that edge pixels are more difficult to predict than others. To further explore the prediction difficulties of pixels, we analyse the distribution of prediction error about the distance to the nearest edge of EGNet and SCRN in Fig. 1.
|
| 37 |
+
|
| 38 |
+
In Fig. 1, the prediction error curves gradually increase from far away to close to the edge (i.e., the right axis to the left axis). When the distance is larger than 0.4, these curves rise slowly. However, when the distance gets smaller than 0.4, these curves begin to go upwards quickly. Based on this observation, we can divide each of the curves into two parts according to pixel distance from their nearest edges. Pixels near the edges correspond to much larger prediction errors than far-away pixels. These pixels with high prediction errors consists of both edge pixels and many other pixels close to edges that are ignored by recent edge-aware methods. Most of the hard pixels that can greatly improve the performance of SOD are not fully used, while using only edge pixels will lead to difficulties because of the imbalance distribution between edge pixels and background ones. In contrast, pixels far away from edges have relatively low prediction errors, which are much easier to be classified. However, traditional saliency labels treat all pixels inside salient object equally, which may cause pixels with low prediction errors to suffer destructive effects from those near edges.
|
| 39 |
+
|
| 40 |
+
We propose label decoupling framework to address the above problems. LDF mainly consists of a label decoupling procedure and a feature interaction network. As shown in Fig. 3, a saliency label is decomposed into a body map and a detail map by LD. Different from the pure edge map, the detail map consists of both edges as well as nearby pixels, which makes full use of pixels near edge and thus has a more balanced pixel distribution. The body map mainly concentrates on pixels far away from edges. Without the disturbance of pixels near edges, the body map can supervise the model to learn better representations. Accordingly, FIN is designed with two branches to adapt to body map and detail map respectively. The two complementary branches in FIN are fused to predict the saliency map, which is then used to refine the two branches again. This iterative refine
|
| 41 |
+
|
| 42 |
+
ment procedure is helpful for obtaining gradually accurate saliency maps prediction.
|
| 43 |
+
|
| 44 |
+
We conduct experiments on six popular SOD datasets and demonstrate the superior performance of LDF. In summary, our contributions are as follows:
|
| 45 |
+
|
| 46 |
+
- We analyse the shortcomings of edge-based SOD methods and propose a label decoupling procedure to decompose a saliency label into body map and detail map to supervise the model, respectively.
|
| 47 |
+
- We design a feature interaction network to make full use of the complementary information between branches. Both branches will be enhanced by iteratively exchanging information to produce more precise saliency maps.
|
| 48 |
+
- Extensive experiments on six SOD datasets show that our model outperforms state-of-the-art models by a large margin. In particularly, we demonstrate the good performance of LDF in different challenging scenes in the SOC dataset [8].
|
| 49 |
+
|
| 50 |
+
# 2. Related Work
|
| 51 |
+
|
| 52 |
+
During the past decades, a huge body of traditional methods have been developed for SOD. These methods [2, 3, 36] mainly rely on intrinsic cues (e.g., color and texture) to extract features. However, these features cannot capture high-level semantic information and are not robust to variations, which limits their applications in complex scenarios. Recently, deep learning based models have achieved remarkable performance, which can be divided into aggregation-based models and edge-based models.
|
| 53 |
+
|
| 54 |
+
# 2.1. Aggregation-based Models
|
| 55 |
+
|
| 56 |
+
Most of the aggregation-based models adopt the encoder-decoder framework, where the encoder is used to extract multi-scale features and the decoder is used to integrate the features to leverage context information of different levels. Hou et al. [15] constructed shortcut connections on fully convolutional networks [22] and integrated features of different layers to output more accurate maps. Chen et al. [4] proposed a reverse attention network, which erased the current predicted salient regions to expect the network to mine out the missing parts. Deng et al. [7] designed an iterative strategy to learn the residual map between the prediction and ground truth by combining features from both deep and shallow layers. Wu et al. [33] found that features of shallow layers greatly increased the computation cost, but only brought little improvement in final results. Liu et al. [20] utilized simple pooling and a feature aggregation module to build fast and accurate model. Zhao et al. [42] introduced the channel-wise attention and spatial attention to extract valuable features and suppress background noise.
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 2. An overview of our proposed label decoupling framework (LDF). LDF is based on ResNet-50 [14] with supervision from body map, detail map and saliency map. LDF consists of two encoders and two decoders, i.e., a backbone encoder for feature extraction, an interaction encoder for exchanging information, a body decoder and a detail decoder to generate body map and detail map respectively. The interaction encoder is not involved until body decoder and detail decoder output features.
|
| 60 |
+
|
| 61 |
+
Wang et al. [30] designed a top-down and bottom-up workflow to infer the salient object regions with multiple iterations. Liu et al. [21] proposed a pixel-wise contextual attention network to learn the context of each pixel, and combined the global context and local context for saliency prediction. Zhang et al. [38] designed a bi-directional message passing model for better feature selection and integration.
|
| 62 |
+
|
| 63 |
+
# 2.2. Edge-based Models
|
| 64 |
+
|
| 65 |
+
In addition to saliency masks, edge label is also introduced to SOD in [23, 34, 31, 20, 39, 42] to assist the generation of saliency maps. Zhang et al. [39] and Zhao et al. [42] directly built the edge loss with binary cross-entropy to emphasize the importance of boundaries. Qin et al. [23] designed a hybrid loss to supervise the training process of SOD on pixel-level, patch-level and map-level. Liu et al. [20] used additional edge dataset for joint training of both edge detection and SOD models. Feng et al. [13] applied a boundary-enhanced loss to generate sharp boundaries and distinguish the narrow background margins between two foreground areas. Li et al. [18] used a two-branch network to simultaneously predict the contours and saliency maps, which can automatically convert the trained contour detection model to SOD model. Wu et al. [34] investigated the logical inter-relations between segmentation and edge maps, which are then promoted to bidirectionally refine multi-level features of the two tasks. Although these methods take into account the relationship between edges and saliency maps, edge prediction is a hard task because of
|
| 66 |
+
|
| 67 |
+
imbalanced pixel distribution. In this paper, we explicitly decouple the saliency label into body map and detail map, as shown in Fig. 3. Detail map helps model learn better edge features and body map decreases the distraction from pixels near edges to center ones.
|
| 68 |
+
|
| 69 |
+
# 3. Methodology
|
| 70 |
+
|
| 71 |
+
In this section, we first introduce the label decoupling method and give the specific steps to decompose the saliency map into body map and detail map. Then, to take advantage of the complementarity between features, we introduce FIN which facilitates the iterative information exchange between branches. The overview of the proposed model is shown in Fig. 2.
|
| 72 |
+
|
| 73 |
+
# 3.1. Label Decoupling
|
| 74 |
+
|
| 75 |
+
As described in Sec. 1, the prediction difficulty of a pixel is closely related to its position. Because of the cluttered background, pixels near the edge are more prone to be mispredicted. In comparison, central pixels have higher prediction accuracy due to the internal consistency of the salient target. Instead of treating these pixels equally, it will be more reasonable to deal with them according to their respective characteristics. Accordingly, we propose to decouple the original label into body label and detail label, as shown in Fig. 3. To achieve this goal, we introduce Distance Transformation (DT) to decouple the original label, which is a traditional image processing algorithm. DT can convert the binary image into a new image where each foreground
|
| 76 |
+
|
| 77 |
+
pixel has a value corresponding to the minimum distance from the background by a distance function.
|
| 78 |
+
|
| 79 |
+
Specifically, the input of DT is a binary image $I$ , which can be divided into two groups (i.e., foreground $I_{fg}$ and background $I_{bg}$ . For each pixel $p$ , $I(p)$ is its corresponding value. If $p \in I_{fg}$ , $I(p)$ equals 1, and 0 if $p \in I_{bg}$ . To get the DT result of image $I$ , we define the metric function $f(p,q) = \sqrt{(p_x - q_x)^2 + (p_y - q_y)^2}$ to measure the distance between pixels. If pixel $p$ belongs to the foreground, DT will first look up its nearest pixel $q$ in the background and then use $f(p,q)$ to calculate the distance between pixel $p$ and $q$ . If pixel $p$ belongs to the background, their minimum distance is set to zero. We use $f(p,q)$ as the pixels of a newly generated image, and the distance transformation can be expressed as
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
I ^ {\prime} (p) = \left\{ \begin{array}{c c} \min _ {q \in I _ {b g}} f (p, q), & p \in I _ {f g} \\ 0, & p \in I _ {b g} \end{array} \right. \tag {1}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
After the distance transformation, the original image $I$ has been transformed into $I^{\prime}$ where pixel value $I^{\prime}(p)$ no longer equals to 0 or 1. We normalize the pixel values in $I^{\prime}$ using a simple linear function $I^{\prime} = \frac{I^{\prime} - \min(I^{\prime})}{\max(I^{\prime}) - \min(I^{\prime})}$ to map the original value to [0, 1]. Compared with the original image $I$ which treats all pixels equally, pixel value of $I^{\prime}$ not only depends on whether it belongs to foreground or background, but also is related to its relative position. Pixels located in the center of object have the largest values and those far away from the center or in background have the smallest values. So $I^{\prime}$ represents the body part of the original image, which mainly focuses on the central pixels that are relatively easy. We use it as the body label in the following experiments. Correspondingly, by removing the body image $I^{\prime}$ from the original image $I$ , we can get the detail image, which is regarded as the detail label in consequent experiments and mainly concentrates on pixels far away from the main regions. In addition, we multiply the newly generated labels with the original binary image $I$ to remove the background interference as
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\text {L a b e l} \Rightarrow \left\{ \begin{array}{l} B L = I * I ^ {\prime} \\ D L = I * \left(1 - I ^ {\prime}\right) \end{array} \right. \tag {2}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $BL$ means the body label and $DL$ represents the detail label. Now the original label has been decoupled into two different kinds of supervision to assist the network to learn both the body and detail features with different characteristics respectively.
|
| 92 |
+
|
| 93 |
+
# 3.2. Feature Extraction
|
| 94 |
+
|
| 95 |
+
As suggested by [28, 27, 21], we use ResNet-50 [14] as our backbone network. Specifically, we remove the fully
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
(a).Image
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
(b).Ground Truth
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
(c).Body Label
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
(d).Detail Label
|
| 108 |
+
Figure 3. Some examples of label decoupling. (c) represents the body label of the ground truth, where pixels close to the center of the target have larger values. (d) means the detail label of the ground truth, where pixels near the boundary of the target have larger values. The sum of (c) and (d) is equal to (b).
|
| 109 |
+
|
| 110 |
+
connected layer and retain all convolutional blocks. Given an input image with shape $H \times W$ , this backbone will generate five scales of features with decreasing spatial resolution by stride 2 due to downsampling. We denote these features as $F = \{F_i | i = 1, 2, 3, 4, 5\}$ . The size of the $i$ -th feature is $\frac{W}{2^i} \times \frac{H}{2^i} \times C_i$ , where $C_i$ is the channel of the $i$ -th feature. It has been shown that low-level features greatly increase computation cost, but bring limited performance improvement [33]. So we only utilize features from $\{F_i | i = 2, 3, 4, 5\}$ , as shown in Fig. 2. Two convolution layers are applied to these features to adapt them separately to the body prediction task and detail prediction task. Then we get two groups of features $B = \{B_i | i = 2, 3, 4, 5\}$ and $D = \{D_i | i = 2, 3, 4, 5\}$ , which all have been squeezed to 64 channels and sent to the decoder network for saliency map generation.
|
| 111 |
+
|
| 112 |
+
# 3.3. Feature Interaction Network
|
| 113 |
+
|
| 114 |
+
Feature interaction network is built to adapt to the label decoupling, as shown in Fig. 2. With label decoupling, the saliency label has been transformed into the body map and the detail map, both of which are taken as supervision for model learning. FIN is designed as a two-branch structure, each of which is responsible for one label kind. Since both the body map and detail map are derived from the same saliency label, there exists a certain level of similarity and complementarity between the features from two branches. We introduce feature interaction between the complementary branches for information exchanging.
|
| 115 |
+
|
| 116 |
+
On the whole, the proposed framework is made up of one backbone encoder network, one interaction encoder network, one body decoder network and one detail decoder network. As discussed in Sec. 3.2, ResNet-50 [14] is used as the backbone network to extract multi-level features $B = \{B_i | i = 2, 3, 4, 5\}$ and $D = \{D_i | i = 2, 3, 4, 5\}$ . For features $B$ , a body decoder network is applied to gen
|
| 117 |
+
|
| 118 |
+
erate body maps. Similarly, for features $D$ , a detail decoder network is applied to generate detail maps. After getting the output features of these two branches, the simplest way to deal with them is to concatenate these features and apply a convolutional layer to get final saliency maps. However, this way ignores the relationship between branches. To explicitly promote the information exchange between branches, an interaction encoder network is introduced.
|
| 119 |
+
|
| 120 |
+
More specifically, interaction decoder takes the concatenated features of the body decoder and detail decoder as input. It stacks multiple convolutions to extract multi-level features. Then these multi-level features will be applied with 3x3 convolution layers to make them appropriate for body decoder and detail decoder respectively. Direct addition is used to fuse the interaction features with features from backbone encoder to produce more accurate saliency maps. On the surface, the whole network is unusual since the latter branch outputs are used in the former decoder. But in fact, feature interaction consists of multiple iterations. At the first iteration, two branches output features without exchanging information. From the second iteration, interaction is involved between branches.
|
| 121 |
+
|
| 122 |
+
# 3.4. Loss Function
|
| 123 |
+
|
| 124 |
+
Our training loss is defined as the summation of the outputs of all iterations as,
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\mathcal {L} = \sum_ {k = 1} ^ {K} \alpha_ {k} \ell^ {(k)}, \tag {3}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $\ell^{(k)}$ is the loss of the $k$ -th iteration, $K$ denotes the total number of iterations and $\alpha_{k}$ is the weight of each iteration. To simplify the problem, we set $\alpha_{k} = 1$ to treat all iterations equally. For each iteration, we will get three outputs (i.e., body, detail and segmentation) and each of them corresponds to one loss. So $\ell^{(k)}$ can be defined as the combination of three losses as follows:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\ell^ {(k)} = \ell_ {\text {b o d y}} ^ {(k)} + \ell_ {\text {d e t a i l}} ^ {(k)} + \ell_ {\text {s e g m}} ^ {(k)}, \tag {4}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
where $\ell_{body}^{(k)},\ell_{detail}^{(k)}$ and $\ell_{segm}^{(k)}$ denote body loss, detail loss and segmentation loss, respectively. We directly utilize binary cross entropy (BCE) to calculate both $\ell_{body}^{(k)}$ and $\ell_{detail}^{(k)}$ . BCE is a widely used loss in binary classification and segmentation, which is defined as:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\ell_ {b c e} = - \sum_ {(x, y)} [ g (x, y) \log (p (x, y)) + (1 - g (x, y)) \log (1 - p (x, y)) ], \tag {5}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
where $g(x,y) \in [0,1]$ is the ground truth label of the pixel $(x,y)$ and $p(x,y) \in [0,1]$ is the predicted probability of being salient object. However, BCE calculates the loss for each pixel independently and ignores the global structure of the image. To remedy this problem, as suggested by [23] we utilize the IoU loss to calculate $\ell_{segmentation}^{(k)}$ , which can
|
| 143 |
+
|
| 144 |
+
measure the similarity of two images on the whole rather than a single pixel. It is defined as:
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\ell_ {i o u} = 1 - \frac {\sum_ {(x , y)} [ g (x , y) * p (x , y) ]}{\sum_ {(x , y)} [ g (x , y) + p (x , y) - g (x , y) * p (x , y) ]}, \tag {6}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
where the notations are the same as Eq. 5. We do not apply IoU loss on $\ell_{\text{body}}^{(k)}$ and $\ell_{\text{detail}}^{(k)}$ , because IoU loss requires the ground truth to be binary or it will result in wrong predictions, while body label and detail label do not satisfy this requirement.
|
| 151 |
+
|
| 152 |
+
# 4. Experiments
|
| 153 |
+
|
| 154 |
+
# 4.1. Datasets and Evaluation Metrics
|
| 155 |
+
|
| 156 |
+
To evaluate the proposed method, six popular benchmark datasets are adopted, including ECSSD [36] with 1000 images, PASCAL-S [19] with 850 images, HKU-IS [17] with 4447 images, DUT-OMRON [37] with 5168 images, DUTS [25] with 15572 images and THUR15K [5] with 6232 images. Among them, DUTS is the largest saliency detection benchmark, which contains 10,553 training images (DUTS-TR) and 5,019 testing images (DUTS-TE). DUTS-TR is used to train the model, other datasets for evaluation. In addition, we also measure the model performance on the challenging SOC dataset [8] of different attributes. Five metrics are used to evaluate the performance of our model and existing state-of-the-art methods. The first metric is the mean absolute error (MAE), as shown in Eq. 7, which is widely adopted in [4, 15, 18, 21]. Mean $F$ -measure $(mF)$ , $E$ -measure $(E_{\xi})$ [9], weighted $F$ -measure $(F_{\beta}^{\omega})$ and $S$ -measure $(S_{\alpha})$ are also widely used to evaluate saliency maps. In addition, precision-recall (PR) and $F$ -measure curves are drawn to show the overall performance.
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
M A E = \frac {1}{H \times W} \sum_ {i = 1} ^ {H} \sum_ {j = 1} ^ {W} | P (i, j) - G (i, j) | \tag {7}
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
where $P$ is the predicted map and $G$ is the ground truth.
|
| 163 |
+
|
| 164 |
+
# 4.2. Implementation Details
|
| 165 |
+
|
| 166 |
+
The proposed model is trained on DUTS-TR and tested on the above mentioned six datasets. For data augmentation, we use horizontal flip, random crop and multi-scale input images. ResNet-50, pretrained on ImageNet, is used to initialize the backbone (i.e., block1 to block5) and other parameters are randomly initialized. We set the maximum learning rate to 0.005 for ResNet-50 backbone and 0.05 for other parts. Warm-up and linear decay strategies are used. The whole network is trained end-to-end by stochastic gradient descent (SGD). Momentum and weight decay are set to 0.9 and 0.0005, respectively. Batchsize is set to 32 and maximum epoch is set to 48. During testing, each image is
|
| 167 |
+
|
| 168 |
+
Table 2. Performance comparison with state-of-the-art methods on six datasets. MAE (smaller is better), mean $F$ -measure ( $mF$ , larger is better) and $E$ -measure ( $E_{\xi}$ , larger is better) are used to measure the model performance. ' -' means the author has not provided corresponding saliency maps. The best and the second best results are highlighted in red and blue respectively.
|
| 169 |
+
|
| 170 |
+
<table><tr><td rowspan="2">Algorithm</td><td colspan="3">ECSSD 1,000 images</td><td colspan="3">PASCAL-S 850 images</td><td colspan="3">DUTS-TE 5,019 images</td><td colspan="3">HKU-IS 4,447 images</td><td colspan="3">DUT-OMRON 5,168 images</td><td colspan="2">THUR15K 6,232 images</td><td></td></tr><tr><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td></tr><tr><td>BMPM [38]</td><td>.044</td><td>.894</td><td>.914</td><td>.073</td><td>.803</td><td>.838</td><td>.049</td><td>.762</td><td>.859</td><td>.039</td><td>.875</td><td>.937</td><td>.063</td><td>.698</td><td>.839</td><td>.079</td><td>.704</td><td>.803</td></tr><tr><td>DGRL [28]</td><td>.043</td><td>.903</td><td>.917</td><td>.074</td><td>.807</td><td>.836</td><td>.051</td><td>.764</td><td>.863</td><td>.037</td><td>.881</td><td>.941</td><td>.063</td><td>.709</td><td>.843</td><td>.077</td><td>.716</td><td>.811</td></tr><tr><td>R³Net [7]</td><td>.051</td><td>.883</td><td>.914</td><td>.101</td><td>.775</td><td>.824</td><td>.067</td><td>.716</td><td>.827</td><td>.047</td><td>.853</td><td>.921</td><td>.073</td><td>.690</td><td>.814</td><td>.078</td><td>.693</td><td>.803</td></tr><tr><td>RAS [4]</td><td>.055</td><td>.890</td><td>.916</td><td>.102</td><td>.782</td><td>.832</td><td>.060</td><td>.750</td><td>.861</td><td>.045</td><td>.874</td><td>.931</td><td>.063</td><td>.711</td><td>.843</td><td>.075</td><td>.707</td><td>.821</td></tr><tr><td>PiCA-R [21]</td><td>.046</td><td>.867</td><td>.913</td><td>.075</td><td>.776</td><td>.833</td><td>.051</td><td>.754</td><td>.862</td><td>.043</td><td>.840</td><td>.936</td><td>.065</td><td>.695</td><td>.841</td><td>.081</td><td>.690</td><td>.803</td></tr><tr><td>AFNet [13]</td><td>.042</td><td>.908</td><td>.918</td><td>.070</td><td>.821</td><td>.846</td><td>.046</td><td>.792</td><td>.879</td><td>.036</td><td>.888</td><td>.942</td><td>.057</td><td>.738</td><td>.853</td><td>.072</td><td>.730</td><td>.820</td></tr><tr><td>BASNet [23]</td><td>.037</td><td>.880</td><td>.921</td><td>.076</td><td>.775</td><td>.847</td><td>.048</td><td>.791</td><td>.884</td><td>.032</td><td>.895</td><td>.946</td><td>.056</td><td>.756</td><td>.869</td><td>.073</td><td>.733</td><td>.821</td></tr><tr><td>CPD-R [33]</td><td>.037</td><td>.917</td><td>.925</td><td>.072</td><td>.824</td><td>.849</td><td>.043</td><td>.805</td><td>.886</td><td>.034</td><td>.891</td><td>.944</td><td>.056</td><td>.747</td><td>.866</td><td>.068</td><td>.738</td><td>.829</td></tr><tr><td>EGNet-R [41]</td><td>.037</td><td>.920</td><td>.927</td><td>.074</td><td>.823</td><td>.849</td><td>.039</td><td>.815</td><td>.891</td><td>.032</td><td>.898</td><td>.948</td><td>.053</td><td>.755</td><td>.867</td><td>.067</td><td>.741</td><td>.829</td></tr><tr><td>PAGE [31]</td><td>.042</td><td>.906</td><td>.920</td><td>.077</td><td>.810</td><td>.841</td><td>.052</td><td>.777</td><td>.869</td><td>.037</td><td>.882</td><td>.940</td><td>.062</td><td>.736</td><td>.853</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TDBU [30]</td><td>.041</td><td>.880</td><td>.922</td><td>.071</td><td>.779</td><td>.852</td><td>.048</td><td>.767</td><td>.879</td><td>.038</td><td>.878</td><td>.942</td><td>.061</td><td>.739</td><td>.854</td><td>-</td><td>-</td><td>-</td></tr><tr><td>SCRN [34]</td><td>.037</td><td>.918</td><td>.926</td><td>.064</td><td>.832</td><td>.857</td><td>.040</td><td>.808</td><td>.888</td><td>.034</td><td>.896</td><td>.949</td><td>.056</td><td>.746</td><td>.863</td><td>.066</td><td>.741</td><td>.833</td></tr><tr><td>SIBA [24]</td><td>.035</td><td>.923</td><td>.928</td><td>.070</td><td>.830</td><td>.855</td><td>.040</td><td>.815</td><td>.892</td><td>.032</td><td>.900</td><td>.950</td><td>.059</td><td>.746</td><td>.860</td><td>.068</td><td>.741</td><td>.832</td></tr><tr><td>PoolNet [20]</td><td>.039</td><td>.915</td><td>.924</td><td>.074</td><td>.822</td><td>.850</td><td>.040</td><td>.809</td><td>.889</td><td>.032</td><td>.899</td><td>.949</td><td>.056</td><td>.747</td><td>.863</td><td>.070</td><td>.732</td><td>.822</td></tr><tr><td>LDF(ours)</td><td>.034</td><td>.930</td><td>.925</td><td>.060</td><td>.848</td><td>.865</td><td>.034</td><td>.855</td><td>.910</td><td>.027</td><td>.914</td><td>.954</td><td>.051</td><td>.773</td><td>.873</td><td>.064</td><td>.764</td><td>.842</td></tr></table>
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 4. Performance comparison with state-of-the-art methods on five datasets. The first row shows precision-recall curves. The second row shows $F$ -measure curves with different thresholds.
|
| 174 |
+
|
| 175 |
+
simply resized to $352 \times 352$ and then fed into the network to get prediction without any post-processing. It is worth noting that the output saliency maps are used as the predictions rather than the addition of predicted body and detail maps.
|
| 176 |
+
|
| 177 |
+
# 4.3. Ablation Studies
|
| 178 |
+
|
| 179 |
+
Number of Feature Interaction. Tab. 4 shows the performance with different numbers of feature interaction. Compared with the baseline which has no feature inter
|
| 180 |
+
|
| 181 |
+
action (Number=0), model with one feature interaction achieves better results. When the number is larger, the performance becomes worse. Because repeated feature interaction makes the network to grow too deeper and harder to optimize. So in all the following experiments, we set the number to 1 to balance the model optimization and performance.
|
| 182 |
+
|
| 183 |
+
Different Combinations of Supervision. Tab. 5 shows the performance with different combinations of supervision.
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
Figure 5. Visual comparison of different algorithms. Each row represents one image and corresponding saliency maps. Each column represents the predictions of one method. Apparently, our method is good at dealing with cluttered background and producing more accurate and clear saliency maps.
|
| 187 |
+
|
| 188 |
+
Table 3. Performance on SOC [8] of different attributes. Each row represents one attribute and we report the mean $F$ -measure scores of LDF and state-of-the-art methods. The last row shows the whole performance on the SOC dataset. The best and the second best results are highlighted in red and blue respectively.
|
| 189 |
+
|
| 190 |
+
<table><tr><td>Attr</td><td>PiCA-R</td><td>BMPM</td><td>R3Net</td><td>DGRL</td><td>RAS</td><td>AFNet</td><td>BASNet</td><td>PoolNet</td><td>CPD-R</td><td>EGNet-R</td><td>SCRN</td><td>Ours</td></tr><tr><td>AC</td><td>0.721</td><td>0.727</td><td>0.659</td><td>0.744</td><td>0.664</td><td>0.763</td><td>0.773</td><td>0.746</td><td>0.765</td><td>0.739</td><td>0.770</td><td>0.774</td></tr><tr><td>BO</td><td>0.706</td><td>0.802</td><td>0.637</td><td>0.847</td><td>0.654</td><td>0.824</td><td>0.780</td><td>0.677</td><td>0.821</td><td>0.743</td><td>0.743</td><td>0.803</td></tr><tr><td>CL</td><td>0.703</td><td>0.708</td><td>0.667</td><td>0.735</td><td>0.616</td><td>0.740</td><td>0.721</td><td>0.723</td><td>0.741</td><td>0.707</td><td>0.751</td><td>0.772</td></tr><tr><td>HO</td><td>0.727</td><td>0.738</td><td>0.683</td><td>0.773</td><td>0.682</td><td>0.778</td><td>0.769</td><td>0.768</td><td>0.766</td><td>0.747</td><td>0.775</td><td>0.807</td></tr><tr><td>MB</td><td>0.779</td><td>0.757</td><td>0.669</td><td>0.809</td><td>0.687</td><td>0.794</td><td>0.791</td><td>0.784</td><td>0.810</td><td>0.741</td><td>0.815</td><td>0.840</td></tr><tr><td>OC</td><td>0.692</td><td>0.711</td><td>0.625</td><td>0.724</td><td>0.608</td><td>0.730</td><td>0.721</td><td>0.713</td><td>0.741</td><td>0.699</td><td>0.732</td><td>0.756</td></tr><tr><td>OV</td><td>0.778</td><td>0.783</td><td>0.677</td><td>0.797</td><td>0.666</td><td>0.805</td><td>0.802</td><td>0.774</td><td>0.799</td><td>0.768</td><td>0.801</td><td>0.820</td></tr><tr><td>SC</td><td>0.678</td><td>0.702</td><td>0.626</td><td>0.725</td><td>0.645</td><td>0.711</td><td>0.713</td><td>0.723</td><td>0.726</td><td>0.708</td><td>0.738</td><td>0.774</td></tr><tr><td>SO</td><td>0.569</td><td>0.588</td><td>0.546</td><td>0.618</td><td>0.560</td><td>0.615</td><td>0.619</td><td>0.631</td><td>0.635</td><td>0.605</td><td>0.639</td><td>0.676</td></tr><tr><td>Avg</td><td>0.662</td><td>0.673</td><td>0.611</td><td>0.698</td><td>0.608</td><td>0.700</td><td>0.697</td><td>0.694</td><td>0.709</td><td>0.680</td><td>0.710</td><td>0.739</td></tr></table>
|
| 191 |
+
|
| 192 |
+
From this table, combinations including detail label perform better than those including edge label, which demonstrates the effectiveness of detail label than edge label. In addition, combinations including body label perform better than those including saliency label (Sal). It confirms that without the interference of edges, center pixels can learn better feature representations.
|
| 193 |
+
|
| 194 |
+
# 4.4. Comparison with State-of-the-arts
|
| 195 |
+
|
| 196 |
+
Quantitative Comparison. To demonstrate the effectiveness of the proposed method, 14 state-of-the-art SOD
|
| 197 |
+
|
| 198 |
+
methods are introduced to compare, including BMPM [38], DGRL [28], $\mathbb{R}^3\mathrm{Net}$ [7], RAS [4], PiCA-R [21], AFNet [13], BASNet [23], CPD-R [33], EGNet-R [41], PAGE [31], TDBU [30], SCRN [34], SIBA [24] and PoolNet [20]. For fair comparison, we evaluate all the saliency maps provided by the authors with the same evaluation codes. We compare the proposed method with others in terms of MAE, $mF$ and $E_{\xi}$ , which are shown in Tab. 2. The best results are highlighted with red color. Obviously, compared with other counterparts, our method outperforms previous state-of-the-art methods by a large margin. Besides, Fig. 4
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
(a) ECSSD
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
(b) DUTS
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
(c) HKU-IS
|
| 208 |
+
Figure 6. Error-Distance distribution of different methods. The proposed method has the smallest error along the distance. Especially around edge areas, the proposed method performs much better.
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
(d) THUR15K
|
| 212 |
+
|
| 213 |
+
Table 4. Performance with different numbers of feature interaction. Number=0 means two branches have no feature interaction.
|
| 214 |
+
|
| 215 |
+
<table><tr><td rowspan="2">Number</td><td colspan="3">THUR15K</td><td colspan="3">DUTS-TE</td></tr><tr><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td></tr><tr><td>0</td><td>0.069</td><td>0.751</td><td>0.834</td><td>0.038</td><td>0.839</td><td>0.897</td></tr><tr><td>1</td><td>0.064</td><td>0.764</td><td>0.842</td><td>0.034</td><td>0.855</td><td>0.910</td></tr><tr><td>2</td><td>0.066</td><td>0.756</td><td>0.837</td><td>0.035</td><td>0.849</td><td>0.903</td></tr><tr><td>3</td><td>0.068</td><td>0.753</td><td>0.834</td><td>0.037</td><td>0.842</td><td>0.897</td></tr></table>
|
| 216 |
+
|
| 217 |
+
Table 5. Comparison on different combinations of supervision. Body, detail, saliency and edge maps are used, respectively.
|
| 218 |
+
|
| 219 |
+
<table><tr><td rowspan="2">Label</td><td colspan="3">THUR15K</td><td colspan="3">DUTS-TE</td></tr><tr><td>MAE</td><td>mF</td><td>Eξ</td><td>MAE</td><td>mF</td><td>Eξ</td></tr><tr><td>Body + Detail</td><td>0.064</td><td>0.764</td><td>0.842</td><td>0.034</td><td>0.855</td><td>0.910</td></tr><tr><td>Body + Edge</td><td>0.066</td><td>0.758</td><td>0.836</td><td>0.036</td><td>0.850</td><td>0.904</td></tr><tr><td>Sal + Detail</td><td>0.066</td><td>0.756</td><td>0.835</td><td>0.037</td><td>0.848</td><td>0.901</td></tr><tr><td>Sal + Edge</td><td>0.070</td><td>0.752</td><td>0.827</td><td>0.039</td><td>0.844</td><td>0.895</td></tr></table>
|
| 220 |
+
|
| 221 |
+
presents the precision-recall curves and $F$ -measure curves on five datasets. As can be seen, the curves of the proposed method consistently lie above others. In addition, we calculate the Error-Distance distribution of different methods in Fig. 6, where predictions produced by the proposed method have the minimum error along distance, especially around the edge areas.
|
| 222 |
+
|
| 223 |
+
Visual Comparison. Some prediction examples of the proposed method and other state-of-the-art approaches have been shown in Fig. 5. We observe that the proposed method not only highlights the correct salient object regions clearly, but also well suppresses the background noises. It is robust in dealing with various challenging scenarios, including cluttered background, manufactured structure and low contrast foreground. Compared with other counterparts, the saliency maps produced by the proposed method are clearer and more accurate.
|
| 224 |
+
|
| 225 |
+
Performance on SOC of Different Attributes. SOC [8] is a challenging dataset with multiple attributes. Images with the same attribute have certain similarity and reflect the common challenge in real world. We utilize this dataset to test the robustness of model under different scenes. Specifically, we evaluate the mean $F$ -measure score of our model
|
| 226 |
+
|
| 227 |
+
as well as 11 state-of-the-art methods. Each model will get nine scores under nine attributes. In addition, an overall score is calculated to measure the whole performance under all scenes. Tab. 3 shows the scores. We can see the proposed model achieves the best results among most of attributes except "BO", which indicates the good generalization of the proposed method. It can be applied in different challenging scenes.
|
| 228 |
+
|
| 229 |
+
# 5. Conclusion
|
| 230 |
+
|
| 231 |
+
In this paper, we propose the label decoupling framework for salient object detection. By empirically showing that edge prediction is a challenging task in saliency prediction, we propose to decouple the saliency label into body map and detail map. Detail map helps model learn better edge features and body map avoids the distraction from pixels near edges. Supervised by these two kinds of maps, the proposed method achieves better performance than direct supervision with saliency maps. Besides, feature interaction network is introduced to make full use of the complementarity between body and detail maps. Experiments on six datasets demonstrate that the proposed method outperforms state-of-the-art methods under different evaluation metrics.
|
| 232 |
+
|
| 233 |
+
# 6. Acknowledgement
|
| 234 |
+
|
| 235 |
+
This work was supported in part by the National Key R&D Program of China under Grant 2018AAA0102003, in part by National Natural Science Foundation of China: 61672497, 61620106009, 61836002, 61931008 and U1636214, and in part by Key Research Program of Frontier Sciences, CAS: QYZDJ-SSW-SYS013. Authors would like to thank Kingsoft Cloud for their helpful discussion and free GPU cloud computing resource support.
|
| 236 |
+
|
| 237 |
+
# References
|
| 238 |
+
|
| 239 |
+
[1] Radhakrishna Achanta, Sheila S. Hemami, Francisco J. Estrada, and Sabine Susstrunk. Frequency-tuned salient region detection. In CVPR, pages 1597-1604, 2009. 1
|
| 240 |
+
[2] Jingdong Wang andn Huaizu Jiang, Zejian Yuan, Ming-Ming Cheng, Xiaowei Hu, and Nanning Zheng. Salient
|
| 241 |
+
|
| 242 |
+
object detection: A discriminative regional feature integration approach. International Journal of Computer Vision, 123(2):251-268, 2017. 2
|
| 243 |
+
[3] Ali Borji and Laurent Itti. Exploiting local and global patch rarities for saliency detection. In CVPR, pages 478-485, 2012. 2
|
| 244 |
+
[4] Shuhan Chen, Xiuli Tan, Ben Wang, and Xuelong Hu. Reverse attention for salient object detection. In ECCV (9), volume 11213, pages 236-252, 2018. 1, 2, 5, 6, 7
|
| 245 |
+
[5] Ming-Ming Cheng, Niloy J. Mitra, Xiaolei Huang, and ShiMin Hu. Salientshape: group saliency in image collections. The Visual Computer, 30(4):443-453, 2014. 5
|
| 246 |
+
[6] Ming-Ming Cheng, Niloy J. Mitra, Xiaolei Huang, Philip H. S. Torr, and Shi-Min Hu. Global contrast based salient region detection. IEEE Trans. Pattern Anal. Mach. Intell., 37(3):569-582, 2015. 1
|
| 247 |
+
[7] Zijun Deng, Xiaowei Hu, Lei Zhu, Xuemiao Xu, Jing Qin, Guoqiang Han, and Pheng-Ann Heng. $\mathbb{R}^3$ net: Recurrent residual refinement network for saliency detection. In IJCAI, pages 684-690, 2018. 1, 2, 6, 7
|
| 248 |
+
[8] Deng-Ping Fan, Ming-Ming Cheng, Jiangjiang Liu, Shanghua Gao, Qibin Hou, and Ali Borji. Salient objects in clutter: Bringing salient object detection to the foreground. In ECCV (15), volume 11219 of Lecture Notes in Computer Science, pages 196-212. Springer, 2018. 2, 5, 7, 8
|
| 249 |
+
[9] Deng-Ping Fan, Cheng Gong, Yang Cao, Bo Ren, MingMing Cheng, and Ali Borji. Enhanced-alignment measure for binary foreground map evaluation. In IJCAI, pages 698-704. ijcai.org, 2018. 5
|
| 250 |
+
[10] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In CVPR, pages 8554-8564. Computer Vision Foundation / IEEE, 2019. 1
|
| 251 |
+
[11] Deng-Ping Fan, Ming-Ming Cheng, Jiang-Jiang Liu, Shang-Hua Gao, Qibin Hou, and Ali Borji. Salient objects in clutter: Bringing salient object detection to the foreground. In The European Conference on Computer Vision (ECCV), September 2018. 1
|
| 252 |
+
[12] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
|
| 253 |
+
[13] Mengyang Feng, Huchuan Lu, and Errui Ding. Attentive feedback network for boundary-aware salient object detection. In CVPR, pages 1623-1632, 2019. 2, 3, 6, 7
|
| 254 |
+
[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 3, 4
|
| 255 |
+
[15] Qibin Hou, Ming-Ming Cheng, Xiaowei Hu, Ali Borji, Zhuowen Tu, and Philip H. S. Torr. Deeply supervised salient object detection with short connections. IEEE Trans. Pattern Anal. Mach. Intell., 41(4):815-828, 2019. 1, 2, 5
|
| 256 |
+
[16] Xiaowei Hu, Lei Zhu, Jing Qin, Chi-Wing Fu, and Pheng-Ann Heng. Recurrently aggregating deep features for salient object detection. In AAAI, pages 6943–6950, 2018. 1
|
| 257 |
+
[17] Guanbin Li and Yizhou Yu. Visual saliency based on multiscale deep features. In CVPR, pages 5455-5463, 2015. 5
|
| 258 |
+
|
| 259 |
+
[18] Xin Li, Fan Yang, Hong Cheng, Wei Liu, and Dinggang Shen. Contour knowledge transfer for salient object detection. In ECCV (15), volume 11219, pages 370-385, 2018. 3, 5
|
| 260 |
+
[19] Yin Li, Xiaodi Hou, Christof Koch, James M. Rehg, and Alan L. Yuille. The secrets of salient object segmentation. In CVPR, pages 280–287, 2014. 5
|
| 261 |
+
[20] Jiangjiang Liu, Qibin Hou, Ming-Ming Cheng, Jiashi Feng, and Jianmin Jiang. A simple pooling-based design for real-time salient object detection. In CVPR, pages 3917-3926, 2019. 2, 3, 6, 7
|
| 262 |
+
[21] Nian Liu, Junwei Han, and Ming-Hsuan Yang. Picanet: Learning pixel-wise contextual attention for saliency detection. In CVPR, pages 3089-3098, 2018. 1, 3, 4, 5, 6, 7
|
| 263 |
+
[22] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015. 2
|
| 264 |
+
[23] Xuebin Qin, Zichen Zhang, Chenyang Huang, Chao Gao, Masood Dehghan, and Martin Jägersand. Basnet: Boundary-aware salient object detection. In CVPR, pages 7479-7489, 2019. 2, 3, 5, 6, 7
|
| 265 |
+
[24] Jinming Su, Jia Li, Yu Zhang, Changqun Xia, and Yonghong Tian. Selectivity or invariance: Boundary-aware salient object detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2, 6, 7
|
| 266 |
+
[25] Lijun Wang, Huchuan Lu, Yifan Wang, Mengyang Feng, Dong Wang, Baocai Yin, and Xiang Ruan. Learning to detect salient objects with image-level supervision. In CVPR, pages 3796-3805, 2017. 2, 5
|
| 267 |
+
[26] Linzhao Wang, Lijun Wang, Huchuan Lu, Pingping Zhang, and Xiang Ruan. Saliency detection with recurrent fully convolutional networks. In ECCV(4), volume 9908, pages 825-841, 2016. 1
|
| 268 |
+
[27] Tiantian Wang, Ali Borji, Lihe Zhang, Pingping Zhang, and Huchuan Lu. A stagewise refinement model for detecting salient objects in images. In ICCV, pages 4039-4048, 2017. 1, 4
|
| 269 |
+
[28] Tiantian Wang, Lihe Zhang, Shuo Wang, Huchuan Lu, Gang Yang, Xiang Ruan, and Ali Borji. Detect globally, refine locally: A novel approach to saliency detection. In CVPR, pages 3127-3135, 2018. 1, 4, 6, 7
|
| 270 |
+
[29] Wenguan Wang, Qiuxia Lai, Huazhu Fu, Jianbing Shen, and Haibin Ling. Salient object detection in the deep learning era: An in-depth survey. CoRR, abs/1904.09146, 2019. 1
|
| 271 |
+
[30] Wenguan Wang, Jianbing Shen, Ming-Ming Cheng, and Ling Shao. An iterative and cooperative top-down and bottom-up inference network for salient object detection. In CVPR, pages 5968-5977, 2019. 3, 6, 7
|
| 272 |
+
[31] Wenguan Wang, Shuyang Zhao, Jianbing Shen, Steven C. H. Hoi, and Ali Borji. Salient object detection with pyramid attention and salient edges. In CVPR, pages 1448–1457, 2019. 3, 6, 7
|
| 273 |
+
[32] Runmin Wu, Mengyang Feng, Wenlong Guan, Dong Wang, Huchuan Lu, and Errui Ding. A mutual learning method for salient object detection with intertwined multi-supervision. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1
|
| 274 |
+
|
| 275 |
+
[33] Zhe Wu, Li Su, and Qingming Huang. Cascaded partial decoder for fast and accurate salient object detection. In CVPR, June 2019. 2, 4, 6, 7
|
| 276 |
+
[34] Zhe Wu, Li Su, and Qingming Huang. Stacked cross refinement network for edge-aware salient object detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 2, 3, 6, 7
|
| 277 |
+
[35] Yongjian Xin, Shuhui Wang, Liang Li, Weigang Zhang, and Qingming Huang. Reverse densely connected feature pyramid network for object detection. In Asian Conference on Computer Vision, pages 530-545, 2018. 1
|
| 278 |
+
[36] Qiong Yan, Li Xu, Jianping Shi, and Jiaya Jia. Hierarchical saliency detection. In CVPR, pages 1155-1162, 2013. 2, 5
|
| 279 |
+
[37] Chuan Yang, Lihe Zhang, Huchuan Lu, Xiang Ruan, and Ming-Hsuan Yang. Saliency detection via graph-based manifold ranking. In CVPR, pages 3166-3173, 2013. 2, 5
|
| 280 |
+
[38] Lu Zhang, Ju Dai, Huchuan Lu, You He, and Gang Wang. A bi-directional message passing model for salient object detection. In CVPR, pages 1741-1750, 2018. 3, 6, 7
|
| 281 |
+
[39] Pingping Zhang, Dong Wang, Huchuan Lu, Hongyu Wang, and Xiang Ruan. Amulet: Aggregating multi-level convolutional features for salient object detection. In ICCV, pages 202-211, 2017. 1, 3
|
| 282 |
+
[40] Xiaoning Zhang, Tiantian Wang, Jinqing Qi, Huchuan Lu, and Gang Wang. Progressive attention guided recurrent network for salient object detection. In CVPR, pages 714-722, 2018. 1
|
| 283 |
+
[41] Jia-Xing Zhao, Jiang-Jiang Liu, Deng-Ping Fan, Yang Cao, Jufeng Yang, and Ming-Ming Cheng. Egnet: Edge guidance network for salient object detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 2, 6, 7
|
| 284 |
+
[42] Ting Zhao and Xiangqian Wu. Pyramid feature attention network for saliency detection. In CVPR, pages 3085-3094, 2019. 1, 2, 3
|
labeldecouplingframeworkforsalientobjectdetection/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d4d530c4ddf81498d035c4ed24ea1a223015a2e131cb1e5b4df3ab2a1f1690c
|
| 3 |
+
size 957127
|
labeldecouplingframeworkforsalientobjectdetection/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ddb562838a9210f31f61ea83adf66d06333e8fd1820d874dc2de6495624b0f2
|
| 3 |
+
size 367909
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a656e73513b388edb725ba713a8557f97863c2e4825f3c66a7643fa9cee467d5
|
| 3 |
+
size 76336
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3ae56e0df00d36c11aea0549bacb385bf54fa8a132767ce954335776ab7b61c
|
| 3 |
+
size 93891
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea8e9f32308794cbad2e8f27652442a7603c574207c243f07e3c2d133f0b7a37
|
| 3 |
+
size 355052
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/full.md
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Label Distribution Learning on Auxiliary Label Space Graphs for Facial Expression Recognition
|
| 2 |
+
|
| 3 |
+
Shikai Chen $^{1}$ , Jianfeng Wang $^{2}$ , Yuedong Chen $^{3}$ , Zhongchao Shi $^{4}$ , Xin Geng $^{*,1}$ , Yong Rui $^{*,4}$ $^{1}$ Southeast University $^{2}$ University of Oxford $^{3}$ Nanyang Technological University $^{4}$ AI Lab, Lenovo Research
|
| 4 |
+
|
| 5 |
+
{skchen, xgeng}@seu.edu.cn jianfeng.wang@cs.ox.ac.uk
|
| 6 |
+
|
| 7 |
+
donald.chen@ntu.edu.sg {shizc2, yongrui}@lenovo.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Many existing studies reveal that annotation inconsistency widely exists among a variety of facial expression recognition (FER) datasets. The reason might be the subjectivity of human annotators and the ambiguous nature of the expression labels. One promising strategy tackling such a problem is a recently proposed learning paradigm called Label Distribution Learning (LDL), which allows multiple labels with different intensity to be linked to one expression. However, it is often impractical to directly apply label distribution learning because numerous existing datasets only contain one-hot labels rather than label distributions. To solve the problem, we propose a novel approach named Label Distribution Learning on Auxiliary Label Space Graphs(LDL-ALSG) that leverages the topological information of the labels from related but more distinct tasks, such as action unit recognition and facial landmark detection. The underlying assumption is that facial images should have similar expression distributions to their neighbors in the label space of action unit recognition and facial landmark detection. Our proposed method is evaluated on a variety of datasets and outperforms those state-of-the-art methods consistently with a huge margin.
|
| 12 |
+
|
| 13 |
+
# 1. Introduction
|
| 14 |
+
|
| 15 |
+
Facial Expression Recognition (FER) plays a vital role in driver assistance, health care and many other daily scenes. In recent years, the datasets of facial expression recognition
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1. A real-world expressive face can be ambiguous and mixes multiple basic expressions. The label distribution on the right side is the output of the network trained in our framework.
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 2. Overview of the proposed LDL-ALSG. With our proposed guidance loss, LDL-ALSG uses the facial images and their nearest neighbors to guide the training of the backbone network. Their neighbors are from the K-Nearest-Neighbor graphs constructed by the labels of training data in auxiliary tasks.
|
| 24 |
+
|
| 25 |
+
have increased substantially in quantity and size [9, 22, 27, 28], significantly improving the recognition rate of some Convolutional Neural Networks (CNNs) based approaches, which incorporated facial images with optical flows [33], landmarks [40], or prior knowledge [26, 6] to enhance the performance and interpretability.
|
| 26 |
+
|
| 27 |
+
Deep learning based methods are mainly affected by three factors, which are data, model, and label [2]. Researchers have widely studied data and model but paid less heed to the label. Zeng et al. [39] explored the annotation subjectivity by suggesting a three-step framework trained on several inconsistently labeled datasets and abundant unlabeled data, where they did not consider the label ambi
|
| 28 |
+
|
| 29 |
+
guity and the relative importance of each label. Zhou et al. [46] introduced an Emotion Distribution Learning(EDL) method that maps an expression image to an emotion distribution. However, Label distribution annotations needed for EDL[46] are not given by most of the facial expression recognition datasets. Xu et al. [36] brought forward the Graph Laplacian Label Enhancement(GLLE) to recover distribution from a logic label, which does not fit for large scale and in-the-wild datasets because of its high time complexity caused by K-Nearest-Neighbor search as well as strong assumption on feature space topology.
|
| 30 |
+
|
| 31 |
+
For real-world expressions, annotation inconsistency widely exists and can be caused by various reasons. The subjectivity of the annotation of expression labels creates bias [39], because people with different background might perceive differently. Facial expressions also incorporate a varying degree of ambiguity [46] and often combine basic expressions, especially for in-the-wild datasets (see Fig.(1)).
|
| 32 |
+
|
| 33 |
+
We addressed the annotation inconsistency by performing label distribution learning with the topological information of the auxiliary task's label space. Label distributions indicate how much each label can describe an instance, helping to handle the annotation bias and label ambiguity. Learning the relative importance of each label requires additional information covering the gap between logical labels and label distributions as most datasets do not provide label distribution annotations, making the learning difficult. Xu et al. [36] utilized the topological information of feature space, but their method made a strong assumption on the feature space topology. We suggested that the topological information of auxiliary task's label space guide label distribution learning and introduce more information besides current task and datasets. We assumed that facial images should have similar expression distributions to their neighbors in the label space of action unit recognition and facial landmark detection as shown in Fig.(3) and Fig.(4). Therefore, we proposed a novel approach called Label Distribution Learning on Auxiliary Label Space Graphs(LDLALSG) to solve the annotation inconsistency.
|
| 34 |
+
|
| 35 |
+
Our contributions are summarized as follows,
|
| 36 |
+
|
| 37 |
+
- To the best of our knowledge, the proposed LDL-ALSG is the first label distribution learning framework leveraging the label space topological information of auxiliary tasks.
|
| 38 |
+
- Proposed LDL-ALSG framework is end-to-end and independent of the backbone network and put no additional burden on inference.
|
| 39 |
+
- Proposed LDL-ALSG can effectively deal with label ambiguity and label noise, outperforming the state-of-the-art approaches with a huge margin.
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 3. Visualization of action units with TSNE for $\mathrm{CK + }$ dataset.
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 4. Visualization of facial landmarks with TSNE for $\mathrm{CK + }$ dataset.
|
| 46 |
+
|
| 47 |
+
# 2. Related Works
|
| 48 |
+
|
| 49 |
+
# 2.1. Facial Expression Recognition
|
| 50 |
+
|
| 51 |
+
Facial expression recognition has remained as an active research topic during the past decades. The development of deep learning based methods has mostly centered on data and model. Traditionally, previous works have used handcrafted features to study facial expression recognition. Examples include sparse coding [45], local binary patterns (LBP) [30], non-negative matrix factorization (NMF) [44], and Gabor Wavelets [5]. Emerging deep learning-based approaches adopted to examine Facial Expression Recognition have progressed remarkably on the recognition rate for lab-controlled and in-the-wild datasets.
|
| 52 |
+
|
| 53 |
+
Deep learning-based methods require a sufficient amount of labeled training data. In the past few years, Facial Expression Recognition has been studied on numerous large-scale datasets in addition to several traditional benchmark datasets comprising $\mathrm{CK + }$ [27], MMI [34], and OuluCASIA [42]. For instance, BU-4DFE [38] contains 60600 images of lab-controlled faces; EmotionNet [10] collected nearly one million facial expression images from the Internet; AffectNet [28] gathered up to one million facial images and manually annotated around 450,000 images; ExpW [41] downloaded about $100\mathrm{k}$ in-the-wild expression images from the Internet.
|
| 54 |
+
|
| 55 |
+
Aiming to improve deep learning models, some scholars assembled network models in feature [4] and decision
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 5. The framework of the proposed LDL-ALSG. Given an input facial image (denoted as the central image), its nearest neighbors can be found in the prebuilt index-similarity list for action units and facial points. Then, both the central image and its neighbors will be fed into the backbone network. The output distributions of all input images will be leveraged to minimize the classification loss and the proposed guidance loss. Because neighbor images and outputs are simply for guidance, only gradients related to the central image will be used to update the parameters of the network.
|
| 59 |
+
|
| 60 |
+
level [20] to leverage the diversity and complementarity of different structures; Some fused facial images with landmarks [45] and optical flows [33] using two stream network architectures; Others [21, 37, 6] considered the difference between the expressive face and its corresponding neutral face a valid prior knowledge.
|
| 61 |
+
|
| 62 |
+
Although extensive research has paid attention to data and model as aforementioned, only a small number of research spotlighting the label is extant.
|
| 63 |
+
|
| 64 |
+
# 2.2. Methods for Label Inconsistency
|
| 65 |
+
|
| 66 |
+
Early efforts primarily come from the crowdsourcing community [43, 35, 23, 7], which concentrates on estimating the ground truth out of a set of inconsistent and noisy annotations in the same dataset. Some methods leverage a small set of clean data to assess the quality of the labels during the training process [35, 23, 7]. For example, Azadi et al. [1] proposed AIR to train the feature extractors and Sukhbaatar et al. [32] suggested estimating the distribution of noisy labels. Zeng et al. [39] advocated the Inconsistent Pseudo Annotations to Latent Truth (IPA2LT), which can learn a classifier from more than one dataset with different annotation preferences.
|
| 67 |
+
|
| 68 |
+
These methods omit the ambiguity of facial expressions. Inconsistent annotations caused by subjectivity do not equate with incorrect annotations. We treated the inconsistent annotations as not only the noise but also labels that can describe the image for a certain degree.
|
| 69 |
+
|
| 70 |
+
# 2.3. Methods for Label Ambiguity and Label Noise
|
| 71 |
+
|
| 72 |
+
As Fig.(1) shows, the facial expression usually blends with different basic expressions, causing the label ambiguity and label noise that also exists in other computer vision tasks, such as head pose and facial age estimation. Label distribution learning and label enhancement have been proposed in recent years to mitigate the adverse impact of label ambiguity. As for label distribution learning, by utilizing prior knowledge, [11, 14, 13, 12, 31] transferred logical labels to discretized bivariate Gaussian label distribution, which is centered at the ground-truth label. [25, 17] established the relationship between instances and labels by graphs and transferred logical labels into label distribution. Zhou et al. [46] suggested an emotion distribution learning (EDL) method to deal with a more common case in which each expression associates with multiple emotion labels.
|
| 73 |
+
|
| 74 |
+
Label enhancement (LE) methods address the unavailability of label distributions. For instance, the fuzzy clustering based label enhancement method minimize the objective function iteratively by clustering the feature vector through C-means clustering. The kernel based label enhancement method [19] involved the kernel function in calculating the center of each feature space. The computation of the radius and the distance between samples and centers leads to membership degrees and label distributions. The label propagation based label enhancement method [24] seeks to recover the label distribution by using the iterative label
|
| 75 |
+
|
| 76 |
+
propagation technique. The manifold learning based label enhancement method [17] assumes that each data point can be reconstructed using its neighbors through a graph that represents the topological structure of the feature space. Recently, Xu et al. [36] came up with the Graph Laplacian Label Enhancement (GLLE) that mines the hidden importance from training instances through the topological information of the feature space. This method based on the smoothness assumption that the points close to each other are more likely to share a label.
|
| 77 |
+
|
| 78 |
+
Label enhancement methods depend on the topological information of feature space and some of them require strong assumptions such as local linear assumption and local smoothness assumption [36], remaining unfit for where features originate in deep neural networks and input data are images. Our method uses the topological information of the label space from auxiliary tasks, from which we can obtain additional information to guide the learning on the current task.
|
| 79 |
+
|
| 80 |
+
# 3. Label Distribution Learning on Auxiliary Label Space Graphs
|
| 81 |
+
|
| 82 |
+
The auxiliary label space is the label space of an auxiliary task that correlates to the current task and with which shares the same type of inputs, i.e., facial images. For facial expression recognition, Action Unit Recognition (AUR) and facial landmark detection (FLD), which describe facial structures and movements from different angles, are two auxiliary tasks. Besides, the label space of auxiliary tasks should be less ambiguous and can be effectively obtained through well-developed methods.
|
| 83 |
+
|
| 84 |
+
As illustrated in Fig.(2), overall, LDL-ALSG leverages the deviation between images and their neighbors' predictions to guide the training of the backbone network. A guidance loss function is proposed to utilize the label space's topological information of auxiliary tasks. Note that LDL-ALSG does not require datasets to provide distribution labels.
|
| 85 |
+
|
| 86 |
+
We selected facial landmark detection and action unit recognition as auxiliary tasks. Facial landmark detection and action unit recognition focus on facial structures and movements intimately correlated with facial expression recognition. Compared with facial expressions, which is ambiguous in nature, facial landmarks and action units are more consistent because human annotators are prone to annotate them with consistent labels. Thus, facial landmarks and action units can help to address the label inconsistency. We assumed that two nearby images in the label space of auxiliary tasks should have close label distributions with each other: if action units and facial landmarks of two facial images are nearest neighbors, their label distributions of facial expression should be similar. We visualize the $\mathrm{CK + }$ dataset as an example in Fig.(3) and Fig.(4). Despite the
|
| 87 |
+
|
| 88 |
+
possible unavailability of the action units and facial points, we can still benefit from many well-developed action unit recognition and facial landmark detection methods.
|
| 89 |
+
|
| 90 |
+
The main notations used in this paper are listed as follows. The instance variable is denoted by $\pmb{x}$ , the particular i-th instance is represented as $\pmb{x}_i$ , the label variable is illustrated by $y$ , the particular j-th label value is designated as $y_j$ , and the logical label vector of $\pmb{x}_i$ is indicated by $l_i = (l_{\pmb{x}_i}^{y_1}, l_{\pmb{x}_i}^{y_2}, \dots, l_{\pmb{x}_i}^{y_c})$ in which $c$ is the number of possible labels. The particular j-th label value of task $t$ is denoted as $y_j^t$ , and the label vector of $\pmb{x}_i$ in auxiliary task $t$ is indicated by $l_i^t = (l_{\pmb{x}_i}^{y_1}, l_{\pmb{x}_i}^{y_2}, \dots, l_{\pmb{x}_i}^{y_k})$ where $k$ is the dimension of the label in task $t$ . $f(\pmb{x}|\pmb{\theta})$ denotes the backbone model with a softmax prediction.
|
| 91 |
+
|
| 92 |
+
# 3.1. Problem Formulations
|
| 93 |
+
|
| 94 |
+
The process of LDL-ALSG is defined as follows: given a training set $S = (x_{i}, l_{i}, l_{i}^{t} | 1 \leq i \leq n, 1 \leq t \leq T)$ , where $T$ is the number of auxiliary tasks, LDL-ALSG is the learning process of finding a model $f(\boldsymbol{x} | \theta)$ that maps input $x_{i}$ to label distribution using $l_{i}$ and $l_{i}^{t}$ .
|
| 95 |
+
|
| 96 |
+
This model can be trained by solving the following problem
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\underset {\boldsymbol {\theta}} {\arg \min } \boldsymbol {L} (\boldsymbol {\theta}) + \lambda \sum_ {1} ^ {T} \boldsymbol {\Omega} _ {t} (\boldsymbol {\theta}) \tag {1}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Where $\pmb{L}$ is a loss function, $\Omega_t(\theta)$ is the function to mine hidden label importance utilizing the topological information from the label space of related tasks.
|
| 103 |
+
|
| 104 |
+
Since the logical label can be viewed as a simplification of label distribution, we assumed that it should be close enough to the origin label to indicate the ground truth. Therefore, the L is the KL-divergence between the ground-truth label and label distribution output. Hence, we obtained the following classification loss
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\boldsymbol {L} = \boldsymbol {K L} \left(l _ {\boldsymbol {x} _ {i}} ^ {y _ {c}}, \boldsymbol {f} (\boldsymbol {x} | \boldsymbol {\theta})\right) = \sum_ {i, c} l _ {\boldsymbol {x} _ {i}} ^ {y _ {c}} \log \left(\frac {1}{f (\boldsymbol {x} _ {i} | \boldsymbol {\theta})}\right), \tag {2}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
To obtain the hidden label importance from the training data using the label space topological information of auxiliary tasks, we utilize the deviation between the network prediction of i-th central image $f(\pmb{x}_i|\pmb{\theta})$ and that of neighbor images j in auxiliary tasks $f(\pmb{x}_j|\pmb{\theta})$ to guide the update of network parameters. We need to estimate their distances or similarities to describe the relative importance of the network predictions for neighbor images. Thus, we specified the local similarity $a_{ij}^t$ similar to GLLE[36], which is defined as
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
a _ {i j} ^ {t} = \left\{ \begin{array}{l l} \exp \left(- \frac {\left| \left| l _ {i} ^ {t} - l _ {j} ^ {t} \right| \right| ^ {2}}{2 \sigma^ {2}}\right) & \text {i f} l _ {j} ^ {t} \in \boldsymbol {N} ^ {t} (i) \\ 0 & \text {o t h e r w i s e} \end{array} \right. \tag {3}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 6. Approximate K-Nearest-Neighbor Graphs for the training data are built in advance. Each graph contains all the images in the training set. The indexes of each image and its neighbors will be stored in a list (denoted as the index-similarity list) along with neighbors' local similarity values. This figure is a simplified example for convenient explanation. In this example, node 0 is the central image. node 1 and node 2 are two images nearest to node 0 in action unit space. Similarly, node 3 and node 4 are two images nearest to node 0 in facial point space. Best viewed in color.
|
| 118 |
+
|
| 119 |
+
where $N^t (i)$ means the set of $\pmb{x}_i$ 's K-nearest neighbors in the label space of auxiliary task t. Similar to the smoothness assumption[47], we assume that the images close to each other in the auxiliary label space are more likely to have similar expression distributions. That is to say the larger the $a_{ij}^{t}$ is, the closer the distances between $f(\pmb {x}_i|\pmb {\theta})$ and $f(\pmb {x}_j|\pmb {\theta})$ could be. Hence, we have the following task guidance loss
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\boldsymbol {\Omega} _ {t} (\boldsymbol {f} (\boldsymbol {x} | \boldsymbol {\theta})) = \sum_ {i, j} a _ {i j} ^ {t} f (\boldsymbol {x} _ {j} | \boldsymbol {\theta}) \log \left(\frac {f (\boldsymbol {x} _ {j} | \boldsymbol {\theta})}{f (\boldsymbol {x} _ {i} | \boldsymbol {\theta})}\right) \tag {4}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
# 3.2. The overall LDL-ALSG framework
|
| 126 |
+
|
| 127 |
+
Formulating the LDL-ALSG problem into an optimization framework over Eq.(2) and Eq.(4) yields the total loss function
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\begin{array}{l} \boldsymbol {T} (\boldsymbol {\theta}) = \sum_ {i} [ \sum_ {c} l _ {\boldsymbol {x} _ {i}} ^ {y _ {c}} \log \left(\frac {1}{f (\boldsymbol {x} _ {i} | \boldsymbol {\theta})}\right) \\ + \lambda \sum_ {t = 1} ^ {T} \sum_ {j} a _ {i j} ^ {t} f (\boldsymbol {x} _ {j} | \boldsymbol {\theta}) \log \left(\frac {f (\boldsymbol {x} _ {j} | \boldsymbol {\theta})}{f (\boldsymbol {x} _ {i} | \boldsymbol {\theta})}\right) ] \tag {5} \\ \end{array}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
Our proposed LDL-ALSG is a label-side solution to expression ambiguity and annotation inconsistency so we can use any deep CNN as the backbone. After the network is fully trained, only the network parameters are needed for inference, and the trained network can independently perform prediction without any components related to auxiliary tasks.
|
| 134 |
+
|
| 135 |
+
Training data preparation: Before the training begins, the training data is prepared offline. As aforementioned, action units and facial points can be effectively extracted through well-developed methods. In our experiments, we used [3] to extract action units and facial points, which are then applied to build their own K-Nearest Neighbor (KNN) graphs
|
| 136 |
+
|
| 137 |
+
separately. With the intention of bypassing the limitation of high time complexity of the kNN algorithm, we exerted an approximate KNN [18] to build the approximate kNN graphs (aKNN-graph). In our experiment, a server with 16 cpu cores can build two graphs of $300\mathrm{K}$ images within 4 minutes.
|
| 138 |
+
|
| 139 |
+
For each image in the training set, we stored its index and neighbors from both graphs coupled with the local similarity values defined in Eq.(3) in a list. Then, we discarded the AKNN graphs and used the generated index-similarity list to train the backbone network, as shown in Fig.(6). Batch generation: To effectively minimize the target function with the guidance of auxiliary tasks, each training batch consists of groups of images. Each group contains a central image together with its neighbor images and local similarity values from the generated index-similarity list as shown in Fig.(5). The local similarity values will be used to calculate guidance loss. Forward path: All the images in a batch will be forwarded equally, and the network will predict label distributions for each of them. With the predicted label distributions and logical ground truth labels, the task guidance loss and classification loss can be easily calculated.
|
| 140 |
+
|
| 141 |
+
Backward path: Because we focused solely on predictions of central images, predictions of neighbor images are used to guide the update of model parameters only and do not contribute to the classification loss. Predictions of neighbor images will be detached, meaning that the total loss is back propagated only through the central images as the red lines shown in Fig.(5).
|
| 142 |
+
|
| 143 |
+
# 4. Experiments
|
| 144 |
+
|
| 145 |
+
# 4.1. Datasets
|
| 146 |
+
|
| 147 |
+
We mainly used two types of datasets, including in-the-wild datasets (RAF [22], AffectNet [28] and SFEW [8]) and
|
| 148 |
+
|
| 149 |
+
<table><tr><td rowspan="2"></td><td colspan="3">In-the-Wild</td><td colspan="4">Lab-Controlled (Posed)</td><td colspan="3">Average</td></tr><tr><td>AffNet</td><td>RAF</td><td>SFEW</td><td>CK+</td><td>CFEE</td><td>MMI</td><td>Oulu-CASIA</td><td>Wild</td><td>Posed</td><td>Overall</td></tr><tr><td>Baseline [39]</td><td>57.97</td><td>81.81</td><td>52.19</td><td>88.99</td><td>77.22</td><td>67.79</td><td>59.35</td><td>63.99</td><td>73.34</td><td>69.33</td></tr><tr><td>AIR[1]</td><td>54.23</td><td>67.37</td><td>49.88</td><td>43.87</td><td>64.47</td><td>59.64</td><td>47.03</td><td>60.80</td><td>53.75</td><td>56.10</td></tr><tr><td>NAL[15]</td><td>55.97</td><td>84.22</td><td>58.13</td><td>91.20</td><td>75.84</td><td>64.71</td><td>61.00</td><td>66.11</td><td>73.19</td><td>70.15</td></tr><tr><td>IPA2LT (LTNet)*[39]</td><td>57.85</td><td>83.80</td><td>53.15</td><td>91.82</td><td>78.02</td><td>68.22</td><td>62.69</td><td>64.93</td><td>75.19</td><td>70.79</td></tr><tr><td>LDL-ALSG(AU)</td><td>58.32</td><td>85.32</td><td>56.50</td><td>91.35</td><td>77.59</td><td>70.49</td><td>63.85</td><td>66.94</td><td>75.85</td><td>72.01</td></tr><tr><td>LDL-ALSG(FL)</td><td>59.35</td><td>85.53</td><td>54.91</td><td>91.19</td><td>78.28</td><td>70.29</td><td>63.53</td><td>66.60</td><td>75.82</td><td>71.87</td></tr><tr><td>LDL-ALSG(AU+FL)</td><td>58.29</td><td>85.33</td><td>55.87</td><td>93.08</td><td>77.97</td><td>70.03</td><td>63.94</td><td>66.64</td><td>76.25</td><td>72.13</td></tr></table>
|
| 150 |
+
|
| 151 |
+
Table 1. Test accuracy (%) of different methods on various test sets with both in-the-wild and lab-controlled facial expressions. (Bold: the best. * means the results are produced by our implementation.
|
| 152 |
+
|
| 153 |
+
lab-controlled datasets (CK+ [27], CFEE [9], MMI [34] and Oulu-CASIA [42]). We reported the per-dataset based performance on the above seven datasets and the average performance on lab-controlled, in-the-wild, and all datasets.
|
| 154 |
+
|
| 155 |
+
In-the-wild datasets incorporate facial expression images in the real world. Typically, they are constructed by collecting data from the Internet and have larger scales. RAF is divided into training and test sets with a size of 12,271 and 3,068 respectively. Faces in RAF are labeled with six basic (anger, disgust, fear, happy, sad and surprise) and neutral expression. AffectNet contains more than 400k manually annotated images. We selected approximately 280,000 images as the training set and 3,500 images as the test set, all of which are labeled with six basic and neutral expressions. SFEW [8] has 879 training samples and 406 validation samples, which are collected from movies.
|
| 156 |
+
|
| 157 |
+
The lab-controlled datasets combine facial expression images recorded in the indoor controlled environment. $\mathrm{CK + }$ has 593 sequences and 327 of them are annotated with seven expressions (six basic expressions and contempt). Each sequence starts with a neutral face and ends with a peak expression. We chose the first frame as the neutral face and the last frame as the expressive face, resulting in a total of 636 images. CFEE accommodates 230 subjects, each of which has 22 images. Only images labeled with six basic and neutral expressions are selected to conduct experiments. MMI has 213 sequences recorded from 30 subjects. Each sequence in MMI starts with a neutral face, shifts to a peak expression, and return to a neutral face in the end. In our experiments, for each sequence, the first two images are selected as neutral faces while the middle one-third part are chosen as expressive faces. Oulu-CASIA carries 480 sequences captured from 80 objects. We picked the first two images as neutral faces and the last two fifth part as expressive faces.
|
| 158 |
+
|
| 159 |
+
# 4.2. Experiment Settings
|
| 160 |
+
|
| 161 |
+
To make a fair comparison with other state-of-the-art approaches that focus on label-side improvement, we adopted
|
| 162 |
+
|
| 163 |
+
the cross-dataset evaluation protocol to show the effectiveness of the proposed model by adhering to the settings of other methods. Specifically, we adopted only the training part of the AffectNet (AffTr) and RAF (RAFTr) datasets to train the models and use the validation set of AffectNet for validation.
|
| 164 |
+
|
| 165 |
+
Every training batch consists of 32 groups, each of which has one central image along with 4 nearest neighbors from action unit aKNN-graph and and 4 nearest neighbors from facial point aKNN-graph, totaling 9 images for one group and 288 images for each batch. After the backbone network is fully trained, we only need the backbone network and abandon the rest of the components.
|
| 166 |
+
|
| 167 |
+
Our experiments adopted the 50-layer Residual Network [16] as the backbone network, and reimplement the IPA2LT[39] method with the same backbone network and training data. The backbone network was pretrained on the training set of AffectNet and RAF. Parameters were optimized via the stochastic gradient descent method. The momentum was 0.9, the weight decay was 0.0004, and the learning rate was initialized as 0.001. Our baseline method is a directly trained resnet-50 model with cross-entropy loss and a 32 batch size. Our model and the state-of-the-art model were trained for 10 epochs with 1 epoch of linear learning rate warmup and 9 epochs of cosine learning rate decay. $\lambda$ in Eq.(5) were both set to 0.0005. $\sigma$ in Eq.(3) for action units and facial points were set to 1 and 68, respectively. The proposed LDL-ALSG was implemented using PyTorch[29] and trained on two Tesla V100 GPUs.
|
| 168 |
+
|
| 169 |
+
# 4.3. Experiment Results
|
| 170 |
+
|
| 171 |
+
Comparison with State-of-the-Art. We compared the proposed approach with existing state-of-the-art methods through extensive experiments under rigorous settings mentioned above. Table.(1) illustrates the qualitative results. The LDL-ALSG outperforms other related approaches with a healthy margin in both lab-controlled and in-the-wild datasets.
|
| 172 |
+
|
| 173 |
+
AIR and NAL were proposed primarily to address
|
| 174 |
+
|
| 175 |
+
<table><tr><td rowspan="2">Training Data</td><td rowspan="2">Method</td><td colspan="3">Accuracy</td></tr><tr><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td rowspan="3">Clean data</td><td>LDL-ALSG</td><td>66.64</td><td>76.25</td><td>72.13</td></tr><tr><td>IPA2LT(LTNet)</td><td>64.93</td><td>75.19</td><td>70.79</td></tr><tr><td>Baseline</td><td>63.99</td><td>73.34</td><td>69.33</td></tr><tr><td rowspan="3">5% noise</td><td>LDL-ALSG</td><td>66.06</td><td>74.81</td><td>71.06</td></tr><tr><td>IPA2LT(LTNet)</td><td>64.42</td><td>71.53</td><td>68.48</td></tr><tr><td>Baseline</td><td>63.35</td><td>70.42</td><td>67.39</td></tr><tr><td rowspan="3">10% noise</td><td>LDL-ALSG</td><td>65.76</td><td>73.96</td><td>70.45</td></tr><tr><td>IPA2LT(LTNet)</td><td></td><td>Failed</td><td></td></tr><tr><td>Baseline</td><td>61.21</td><td>70.01</td><td>66.24</td></tr><tr><td rowspan="3">15% noise</td><td>LDL-ALSG</td><td>65.03</td><td>72.40</td><td>69.24</td></tr><tr><td>IPA2LT(LTNet)</td><td></td><td>Failed</td><td></td></tr><tr><td>Baseline</td><td>60.32</td><td>68.73</td><td>65.12</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 2. Average test accuracy (\%) of both baseline and LDL-ALSG methods on original training set and three synthetic datasets with label noise ratio $5\%$ , $10\%$ and $15\%$ . Clean data refers to the mixture of training set of AffectNet and RAF datasets. In-the-Wild refers to the average result on the test set of AffectNet, RAF and SFEW datasets. Lab-Controlled refers to the average result on $\mathrm{CK+}$ , CFEE, MMI and Oulu-CASIA. Overall refers to the average results on both in-the-wild and lab-controlled datasets.
|
| 178 |
+
|
| 179 |
+
<table><tr><td rowspan="2">Training Data</td><td rowspan="2">Method</td><td colspan="3">Accuracy</td></tr><tr><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td>Clean Data</td><td>baseline</td><td>63.99</td><td>73.34</td><td>69.33</td></tr><tr><td>5% noise(A)</td><td>baseline</td><td>63.35</td><td>70.43</td><td>67.39</td></tr><tr><td>10% nosie(B)</td><td>baseline</td><td>61.21</td><td>70.01</td><td>66.24</td></tr><tr><td>15% noise(C)</td><td>baseline</td><td>60.32</td><td>68.73</td><td>65.12</td></tr><tr><td>mixture of ABC</td><td>baseline</td><td>61.92</td><td>71.34</td><td>67.30</td></tr><tr><td>inconsistent annotation</td><td>IPA2LT</td><td>64.01</td><td>73.56</td><td>69.46</td></tr><tr><td>mixture of ABC</td><td>Ours</td><td>65.19</td><td>74.21</td><td>70.44</td></tr></table>
|
| 180 |
+
|
| 181 |
+
Table 3. Test accuracies on datasets with inconsistent labels. Because the IPA2LT considered the annotation inconsistency explicitly, it treated the labels of the three datasets as inconsistently annotated labels for the same dataset. While our method treated the mixture of ABC as a whole dataset, the data they used was actually the same.
|
| 182 |
+
|
| 183 |
+
datasets with noisy labels. While the mixture of RAF and AffectNet datasets were taken to train the models in our settings, these two methods might not be able to deal with the annotation bias caused by different annotators, and thus failed to achieve sound performance.
|
| 184 |
+
|
| 185 |
+
LDL-ALSG and IPA2LT observed better performance than AIR and NAL, indicating that considering label inconsistency contributes to the improvement of performance. IPA2LT was not designed to cope with label ambiguity and the relative importance among different labels, so it performed worse than LDL-ALSG.
|
| 186 |
+
|
| 187 |
+
Experiment Results for Different Settings. We evaluated three different settings of LDL-ALSG and a baseline model
|
| 188 |
+
|
| 189 |
+
on several benchmark datasets. LDL-ALSG(AU) used only the neighbor images from AKNN-graph of action units, and LDL-ALSG(FP) employed only the neighbor images from the AKNN-graph of facial points. LDL-ALSG(AU+FP) refers to the setting that images from both graphs are used.
|
| 190 |
+
|
| 191 |
+
As Table.(1) shows, the baseline model performs worse on all datasets than LDL-ALSG methods, which verify the adverse effect of label inconsistency. The topological information of label space from auxiliary tasks facilitates the network to learn the distribution of facial expressions and solve the problem of annotation inconsistency. The fact that LDL-ALSG(AU) slightly betters LDL-ALSG(FP) on average is not surprising because action units are more directly related to facial expressions rather than facial points.
|
| 192 |
+
|
| 193 |
+
By leveraging the topological information of the label space from both auxiliary tasks, LDL-ALSG(AU+FP) achieved the best average accuracy. Because all the methods compared here use the same validation set, higher cross-dataset performance means better generalization and less inconsistency.
|
| 194 |
+
|
| 195 |
+
Experiment Results for Label Noise and Annotation Inconsistency. To probe the influence of label noise and validate the robustness of our method, we conducted noise experiments on three synthetic datasets. Specifically, three training sets with different label noise ratio are generated by randomly revising $5\%$ , $10\%$ , and $15\%$ of the corrected labels in the original training set, namely the mixture of both AffectNet and RAF's training sets. To generate label noise, we changed the ground truth label to one of the remaining six randomly. The average accuracies of in-the-wild, lab-controlled, and overall datasets are reported in Table.(2), from which we can see that the performance of proposed LDL-ALSG attained overwhelming advantages over the baseline method in all noise settings.
|
| 196 |
+
|
| 197 |
+
The IPA2LT framework is a three-step framework. In the first step, IPA2LT starts with the baseline network pretrained on the noisy dataset and finetunes the pre-trained network on RAF and AffectNet to generate 2 coders. In the second step, auto annotations of each training set are generated by the two coders. In the last step, noisy labels and the auto annotated labels are used to finetune the pretrained baseline network on the whole training set, which is the training part of RAF and AffectNet, using the validation set of AffectNet for validation. When RAF and AffectNet are considered as two inconsistently annotated datasets, if the noise ratio is higher than $5\%$ , finetuning the pre-trained network cannot produce results better than that of the baseline method. Thus, the IPA2LT framework failed to handle the label noise.
|
| 198 |
+
|
| 199 |
+
Experiment Results for Annotation Inconsistency. In order to verify that our method can address the annotation inconsistency, we consider the three noisy datasets as inconsistently annotated datasets and compared our method with
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan="2">Backbone Network</td><td rowspan="2">Method</td><td colspan="3">Accuracy</td></tr><tr><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td rowspan="2">Resnet-18</td><td>LDL-ALSG</td><td>65.40</td><td>73.61</td><td>70.08</td></tr><tr><td>Baseline</td><td>62.37</td><td>72.35</td><td>68.07</td></tr><tr><td rowspan="2">MobilieNet V2</td><td>LDL-ALSG</td><td>65.56</td><td>75.48</td><td>71.27</td></tr><tr><td>Baseline</td><td>64.71</td><td>74.01</td><td>70.03</td></tr></table>
|
| 202 |
+
|
| 203 |
+
Table 4. Average test accuracy (%) for different backbone network.
|
| 204 |
+
|
| 205 |
+
<table><tr><td colspan="2">Neighbor Number</td><td rowspan="2">λ</td><td colspan="3">Accuracy</td></tr><tr><td>AU</td><td>FP</td><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td>2</td><td>0</td><td>0.001</td><td>66.81</td><td>75.86</td><td>71.98</td></tr><tr><td>4</td><td>0</td><td>0.001</td><td>66.94</td><td>75.82</td><td>72.01</td></tr><tr><td>8</td><td>0</td><td>0.001</td><td>66.69</td><td>75.44</td><td>71.69</td></tr><tr><td>0</td><td>2</td><td>0.001</td><td>66.30</td><td>75.43</td><td>71.52</td></tr><tr><td>0</td><td>4</td><td>0.001</td><td>66.60</td><td>75.82</td><td>71.87</td></tr><tr><td>0</td><td>8</td><td>0.001</td><td>66.59</td><td>75.64</td><td>71.76</td></tr></table>
|
| 206 |
+
|
| 207 |
+
the state-of-the-art method. As shown in Table.(3), both of our method and the IPA2LT outperformed the baseline method. Our method was directly trained with the mixed datasets, while the IPA2LT framework followed its three-step training process. The proposed LDL-ALSG produced the best results showing that the topological information of auxiliary task's label space can help address the annotation inconsistency.
|
| 208 |
+
|
| 209 |
+
# 4.4. Ablation Study
|
| 210 |
+
|
| 211 |
+
Since hyper-parameters $\lambda$ in Eq.(5) balance the classification loss and the guidance losses and the number of nearest neighbor is vital to the overall performance as well, we evaluated their influences in different settings.
|
| 212 |
+
|
| 213 |
+
We set $\lambda$ to 0.001 and evaluated the influence of the number of nearest neighbors. As shown in Table.(5), different number of neighbors produced similar results but using 4 neighbors is the best. The reason might be that using too many neighbors might include neighbors that are far away from the central image in terms of auxiliary label space distances, while using too few neighbors cannot learn the relative importance of each label from limited neighbors. We also fixed neighbor numbers to 4 and study the influence of $\lambda$ for guidance loss of action units and facial points. Results in Table.(6) showed that all of the different settings can outperform the baseline result and setting $\lambda$ to 0.001 for both of the auxiliary tasks produced the better results.
|
| 214 |
+
|
| 215 |
+
When the nearest neighbors from both graphs were utilized to guide the learning process, the influence of the nearest neighbor number and the $\lambda$ was evaluated, resulting in
|
| 216 |
+
|
| 217 |
+
Table 5. Comparison of different neighbor numbers. The $\lambda$ was fixed to 0.001 and the number of neighbors in action unit space and facial point space were evaluated seperatly.
|
| 218 |
+
|
| 219 |
+
<table><tr><td colspan="2">Neighbor Number</td><td rowspan="2">λ</td><td colspan="3">Accuracy</td></tr><tr><td>AU</td><td>FP</td><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td>4</td><td>0</td><td>0.0001</td><td>66.36</td><td>75.58</td><td>71.61</td></tr><tr><td>4</td><td>0</td><td>0.001</td><td>66.94</td><td>75.82</td><td>72.01</td></tr><tr><td>4</td><td>0</td><td>0.01</td><td>66.33</td><td>74.96</td><td>71.27</td></tr><tr><td>0</td><td>4</td><td>0.0001</td><td>66.54</td><td>75.78</td><td>71.82</td></tr><tr><td>0</td><td>4</td><td>0.001</td><td>66.60</td><td>75.82</td><td>71.87</td></tr><tr><td>0</td><td>4</td><td>0.01</td><td>65.89</td><td>75.45</td><td>71.36</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Table 6. Comparison of different $\lambda$ . The number of neighbors was fixed to 4 and the $\lambda$ of neighbors in action unit space and facial point space were evaluated seperately.
|
| 222 |
+
|
| 223 |
+
<table><tr><td colspan="2">Neighbor Number</td><td rowspan="2">λ</td><td colspan="3">Accuracy</td></tr><tr><td>AU</td><td>FP</td><td>Wild</td><td>Lab</td><td>All</td></tr><tr><td>4</td><td>4</td><td>0.0001</td><td>67.13</td><td>75.84</td><td>72.11</td></tr><tr><td>4</td><td>4</td><td>0.0005</td><td>66.64</td><td>76.25</td><td>72.13</td></tr><tr><td>4</td><td>4</td><td>0.001</td><td>66.42</td><td>75.52</td><td>71.62</td></tr><tr><td>4</td><td>4</td><td>0.01</td><td>66.34</td><td>75.68</td><td>71.68</td></tr></table>
|
| 224 |
+
|
| 225 |
+
Table 7. Comparison of different $\lambda$ , when utilizing topological information from both graphs. The number of neighbors was fixed to 4.
|
| 226 |
+
|
| 227 |
+
Table.(7). When guidance loss from both tasks were combined, setting $\lambda$ to 0.0005 produced the best results.
|
| 228 |
+
|
| 229 |
+
We also performed experiments on two different backbone network to show that our method is network independent as shown in Table.(4).
|
| 230 |
+
|
| 231 |
+
# 5. Conclusion
|
| 232 |
+
|
| 233 |
+
In this paper, we proposed the LDL-ALSG framework to tackle annotation inconsistency and label ambiguity in facial expression recognition datasets. The label space topological information of auxiliary tasks such as action unit recognition and facial landmark detection is used to help in learning the ambiguous and subjective labels. It helps to address the label inconsistency in facial expression recognition datasets because human annotators are more likely to annotate facial landmarks and action units with consistent labels. We treated the inconsistent annotations as not only the noise but also labels that can describe the data for a certain degree and train the network to predict label distributions.
|
| 234 |
+
|
| 235 |
+
The LDL-ALSG framework is an end-to-end label-side solution that is network-independent with no additional components needed for inference after the backbone network finishes training. To our knowledge, the LDL-ALSG framework is the first work that performs label distribution learning leveraging label space topological information. Our method does not need to generate label distributions in advance. Experiments on several datasets validated the effectiveness and advantages of the proposed method.
|
| 236 |
+
|
| 237 |
+
# References
|
| 238 |
+
|
| 239 |
+
[1] Samaneh Azadi, Jiashi Feng, Stefanie Jegelka, and Trevor Darrell. Auxiliary image regularization for deep cnns with noisy labels. arXiv preprint arXiv:1511.07069, 2015.
|
| 240 |
+
[2] Hessam Bagherinezhad, Maxwell Horton, Mohammad Rastegari, and Ali Farhadi. Label refinery: Improving image-net classification through label progression. arXiv preprint arXiv:1805.02641, 2018.
|
| 241 |
+
[3] Tadas Baltrusaitis, Amir Zadeh, Yao Chong Lim, and Louis-Philippe Morency. Openface 2.0: Facial behavior analysis toolkit. In 2018 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2018), pages 59–66. IEEE, 2018.
|
| 242 |
+
[4] Sarah Adel Bargal, Emad Barsoum, Cristian Canton Ferrer, and Cha Zhang. Emotion recognition in the wild from videos using images. In Proceedings of the 18th ACM International Conference on Multimodal Interaction, pages 433-436. ACM, 2016.
|
| 243 |
+
[5] Juliano J Bazzo and Marcus V Lamar. Recognizing facial actions using gabor wavelets with neutral face average difference. In Sixth IEEE International Conference on Automatic Face and Gesture Recognition, 2004. Proceedings., pages 505-510. IEEE, 2004.
|
| 244 |
+
[6] Yuedong Chen, Jianfeng Wang, Shikai Chen, Zhongchao Shi, and Jianfei Cai. Facial motion prior networks for facial expression recognition. arXiv preprint arXiv:1902.08788, 2019.
|
| 245 |
+
[7] Mostafa Dehghani, Aliaksei Severyn, Sascha Rothe, and Jaap Kamps. Avoiding your teacher's mistakes: Training neural networks with controlled weak supervision. arXiv preprint arXiv:1711.00313, 2017.
|
| 246 |
+
[8] Abhinav Dhall, Roland Goecke, Simon Lucey, and Tom Gedeon. Static facial expression analysis in tough conditions: Data, evaluation protocol and benchmark. In IEEE International Conference on Computer Vision Workshops, ICCV 2011 Workshops, Barcelona, Spain, November 6-13, 2011, 2011.
|
| 247 |
+
[9] Shichuan Du, Yong Tao, and Aleix M Martinez. Compound facial expressions of emotion. Proceedings of the National Academy of Sciences, 111(15):E1454-E1462, 2014.
|
| 248 |
+
[10] C Fabian Benitez-Quiroz, Ramprakash Srinivasan, and Aleix M Martinez. Emotionet: An accurate, real-time algorithm for the automatic annotation of a million facial expressions in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5562-5570, 2016.
|
| 249 |
+
[11] B. B. Gao, C. Xing, C. W. Xie, J. Wu, and X. Geng. Deep label distribution learning with label ambiguity. IEEE Transactions on Image Processing, PP(99):1-1, 2016.
|
| 250 |
+
[12] Xin Geng. Label distribution learning. IEEE Transactions on Knowledge and Data Engineering, 28(7):1734-1748, 2016.
|
| 251 |
+
[13] Xin Geng and Yu Xia. Head pose estimation based on multivariate label distribution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1837-1842, 2014.
|
| 252 |
+
[14] Xin Geng, Chao Yin, and Zhi-Hua Zhou. Facial age estimation by learning from label distributions. IEEE transactions
|
| 253 |
+
|
| 254 |
+
on pattern analysis and machine intelligence, 35(10):2401-2412, 2013.
|
| 255 |
+
[15] Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. 2016.
|
| 256 |
+
[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
|
| 257 |
+
[17] Peng Hou, Xin Geng, and Min-Ling Zhang. Multi-label manifold learning. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 258 |
+
[18] Masajiro Iwasaki and Daisuke Miyazaki. Optimization of indexing based on k-nearest neighbor graph for proximity search in high-dimensional data. arXiv preprint arXiv:1810.07355, 2018.
|
| 259 |
+
[19] Xiufeng Jiang, Zhang Yi, and Jian Cheng Lv. Fuzzysvm with a new fuzzy membership function. Neural Computing & Applications, 15(3-4):268-276, 2006.
|
| 260 |
+
[20] Samira Ebrahimi Kahou, Christopher Pal, Xavier Bouthillier, Pierre Froumenty, Caglar Gulçehre, Roland Memisevic, Pascal Vincent, Aaron Courville, Yoshua Bengio, Raul Chandias Ferrari, et al. Combining modality specific deep neural networks for emotion recognition in video. In Proceedings of the 15th ACM on International conference on multimodal interaction, pages 543-550. ACM, 2013.
|
| 261 |
+
[21] Youngsung Kim, ByungIn Yoo, Youngjun Kwak, Changkyu Choi, and Junmo Kim. Deep generative-contrastive networks for facial expression recognition. arXiv preprint arXiv:1703.07140, 2017.
|
| 262 |
+
[22] Shan Li, Weihong Deng, and JunPing Du. Reliable crowdsourcing and deep locality-preserving learning for expression recognition in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2852-2861, 2017.
|
| 263 |
+
[23] Yuncheng Li, Jianchao Yang, Yale Song, Liangliang Cao, Jiebo Luo, and Li-Jia Li. Learning from noisy labels with distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1910-1918, 2017.
|
| 264 |
+
[24] Yu-Kun Li, Min-Ling Zhang, and Xin Geng. Leveraging implicit relative labeling-importance information for effective multi-label learning. In 2015 IEEE International Conference on Data Mining, pages 251-260. IEEE, 2015.
|
| 265 |
+
[25] Yu Kun Li, Min Ling Zhang, and Xin Geng. Leveraging implicit relative labeling-importance information for effective multi-label learning. In IEEE International Conference on Data Mining, 2016.
|
| 266 |
+
[26] Mengyi Liu, Shaoxin Li, Shiguang Shan, and Xilin Chen. Au-aware deep networks for facial expression recognition. In $FG$ , pages 1-6, 2013.
|
| 267 |
+
[27] Patrick Lucey, Jeffrey F Cohn, Takeo Kanade, Jason Saragih, Zara Ambadar, and Iain Matthews. The extended cohnkanade dataset (ck+): A complete dataset for action unit and emotion-specified expression. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition-Workshops, pages 94–101. IEEE, 2010.
|
| 268 |
+
[28] Ali Mollahosseini, Behzad Hasani, and Mohammad H Ma-hoor. Affectnet: A database for facial expression, va
|
| 269 |
+
|
| 270 |
+
lence, and arousal computing in the wild. arXiv preprint arXiv:1708.03985, 2017.
|
| 271 |
+
[29] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 272 |
+
[30] Caifeng Shan, Shaogang Gong, and Peter W McOwan. Facial expression recognition based on local binary patterns: A comprehensive study. Image and vision Computing, 27(6):803-816, 2009.
|
| 273 |
+
[31] Kai Su and Xin Geng. Soft facial landmark detection by label distribution learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5008-5015, 2019.
|
| 274 |
+
[32] Sainbayar Sukhbaatar and Rob Fergus. Learning from noisy labels with deep neural networks. Eprint Arxiv, 2014.
|
| 275 |
+
[33] Ning Sun, Qi Li, Ruizhi Huan, Jixin Liu, and Guang Han. Deep spatial-temporal feature fusion for facial expression recognition in static images. Pattern Recognition Letters, 2017.
|
| 276 |
+
[34] Michel Valstar and Maja Pantic. Induced disgust, happiness and surprise: an addition to the MMI facial expression database. In Proc. 3rd Intern. Workshop on EMOTION (satellite of LREC): Corpora for Research on Emotion and Affect, page 65, 2010.
|
| 277 |
+
[35] Andreas Veit, Neil Alldrin, Gal Chechik, Ivan Krasin, Abhinav Gupta, and Serge Belongie. Learning from noisy largescale datasets with minimal supervision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 839-847, 2017.
|
| 278 |
+
[36] Ning Xu, An Tao, and Xin Geng. Label enhancement for label distribution learning. In *IJCAI*, pages 2926-2932, 2018.
|
| 279 |
+
[37] Huiyuan Yang, Umur Ciftci, and Lijun Yin. Facial expression recognition by de-expression residue learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2168-2177, 2018.
|
| 280 |
+
[38] L Yin, X Chenand Y Sun, T Worm, and M Reale. A high-resolution 3d dynamic facial expression database, 2008. In IEEE International Conference on Automatic Face and Gesture Recognition, Amsterdam, The Netherlands, volume 126, 2008.
|
| 281 |
+
[39] Jiabei Zeng, Shiguang Shan, and Xilin Chen. Facial expression recognition with inconsistently annotated datasets. In Proceedings of the European conference on computer vision (ECCV), pages 222-237, 2018.
|
| 282 |
+
[40] Kaihao Zhang, Yongzhen Huang, Yong Du, and Liang Wang. Facial expression recognition based on deep evolutionary spatial-temporal networks. IEEE Transactions on Image Processing, 26(9):4193-4203, 2017.
|
| 283 |
+
[41] Zhanpeng Zhang, Ping Luo, Chen Change Loy, and Xiaou Tang. From facial expression recognition to interpersonal relation prediction. International Journal of Computer Vision, 126(5):550-569, 2018.
|
| 284 |
+
[42] Guoying Zhao, Xiaohua Huang, Matti Taini, Stan Z Li, and Matti Pietikainen. Facial expression recognition from near-infrared videos. Image and Vision Computing, 29(9):607-619, 2011.
|
| 285 |
+
|
| 286 |
+
[43] Yudian Zheng, Guoliang Li, Yuanbing Li, Caihua, and Reynold Cheng. Truth inference in crowdsourcing: Is the problem solved? Proceedings of the Vldb Endowment, 10(5):541-552, 2017.
|
| 287 |
+
[44] Ruicong Zhi, Markus Flierl, Qiuqi Ruan, and W Bastiaan Kleijn. Graph-preserving sparse nonnegative matrix factorization with application to facial expression recognition. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 41(1):38-52, 2011.
|
| 288 |
+
[45] Lin Zhong, Qingshan Liu, Peng Yang, Bo Liu, Junzhou Huang, and Dimitris N Metaxas. Learning active facial patches for expression analysis. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 2562-2569. IEEE, 2012.
|
| 289 |
+
[46] Ying Zhou, Hui Xue, and Xin Geng. Emotion distribution recognition from facial expressions. In Proceedings of the 23rd ACM international conference on Multimedia, pages 1247-1250. ACM, 2015.
|
| 290 |
+
[47] Xiaojin Zhu, John Lafferty, and Ronald Rosenfeld. Semi-supervised learning with graphs. PhD thesis, Carnegie Mellon University, language technologies institute, school of ..., 2005.
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63f09c9ef7ed1cff37133279f43f843adb2d68e73e4b87865335efc82f0ee793
|
| 3 |
+
size 472097
|
labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca82cfff7bbb1c417c8334bf77791fb010e0af7a8758ef1b9293c5f425dd3bc2
|
| 3 |
+
size 349162
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0be9c04694d067e92d9bd2189f9e3b86981f0236a62b8b08151f7512c660762
|
| 3 |
+
size 72745
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75e869012057b6025736056950c664b5422f84d17c2430dacbdaadc2e70f058d
|
| 3 |
+
size 89460
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86c462281899e0550496aef36ca41407a69d027fe78913d0b3dcd7887effcbf5
|
| 3 |
+
size 4687687
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/full.md
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Large-Scale Object Detection in the Wild from Imbalanced Multi-Labels
|
| 2 |
+
|
| 3 |
+
Junran Peng\*1,2,3, Xingyuan Bu\*2, Ming Sun?, Zhaoxiang Zhang+1,3, Tieniu Tan1,3, and Junjie Yan2
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>University of Chinese Academy of Sciences
|
| 6 |
+
|
| 7 |
+
$^{2}$ SenseTime Group Limited
|
| 8 |
+
|
| 9 |
+
<sup>3</sup>Center for Research on Intelligent Perception and Computing, CASIA
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Training with more data has always been the most stable and effective way of improving performance in deep learning era. As the largest object detection dataset so far, Open Images brings great opportunities and challenges for object detection in general and sophisticated scenarios. However, owing to its semi-automatic collecting and labeling pipeline to deal with the huge data scale, Open Images dataset suffers from label-related problems that objects may explicitly or implicitly have multiple labels and the label distribution is extremely imbalanced. In this work, we quantitatively analyze these label problems and provide a simple but effective solution. We design a concurrent softmax to handle the multi-label problems in object detection and propose a soft-sampling methods with hybrid training scheduler to deal with the label imbalance. Overall, our method yields a dramatic improvement of 3.34 points, leading to the best single model with $60.90\mathrm{mAP}$ on the public object detection test set of Open Images. And our ensembling result achieves $67.17\mathrm{mAP}$ , which is 4.29 points higher than the best result of Open Images public test 2018.
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Data is playing a primary and decisive role in deep learning. With the advent of ImageNet dataset [8], deep neural network [15] becomes well exploited for the first time, and an unimaginable number of works in deep learning sprung up. Some recent works [24, 39] also prove that larger quantities of data with labels of low quality(like hashtags) could surpass the state-of-the-art methods by a large margin. Throughout the history of deep learning, it could be
|
| 18 |
+
|
| 19 |
+
easily learned that the development of an area is closely related to the data.
|
| 20 |
+
|
| 21 |
+
In the past years, great progresses have also been achieved in the field of object detection. Some generic object detection datasets with annotations of high quality like Pascal VOC [9] and MS COCO [21] greatly boost the development of object detection, giving birth to plenty of amazing methods [29, 28, 22, 20]. However, these datasets are quite small in today's view, and begin to limit the advancement of object detection area to some degree. Attempts are frequently made to focus on atomic problems on these datasets instead of exploring object detection in harder scenarios.
|
| 22 |
+
|
| 23 |
+
Recently, Open Images dataset is published in terms of 1.7 million images with 12.4 million boxes annotated of 500 categories. This unseals the limits of data-hungry methods and may stimulate research to bring object detection to more general and sophisticated situations. However, accurately annotating data of such scale is labor intensive that manual labeling is almost infeasible. The annotating procedure of Open Images dataset is completed with strong assistance of deep learning that candidate labels are generated by models and verified by humans. This inevitably weakens the quality of labels because of the uncertainty of models and the knowledge limitation of human individuals, which leads to several major problems.
|
| 24 |
+
|
| 25 |
+
Objects in Open Image dataset may explicitly or implicitly have multiple labels, which differs from the traditional object detection. The object classes in Open Images form a hierarchy that most objects may hold a leaf label and all the corresponding parent labels. However, due to the annotation quality, there are cases that objects are only labeled as parent classes and leaf classes are absent. Apart from hierarchical labels, objects in Open Images dataset may also hold several leaf classes like car and toy. Another annoying case is that objects of similar classes are frequently anno-
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
(a)
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
(b)
|
| 32 |
+
Figure 1: Example of multi-label annotations in Open Images dataset. (a)(b) are cases that objects are explicitly annotated with multiple labels. In (a), a car toy is labeled as car and toy at the same time. In (b), an apple is hierarchically labeled as apple and fruit. (c)(d) are cases that objects implicitly have multiple labels. In (c), apples are only labeled as fruit. In (d), flashlights are always randomly labeled as torch or flashlight.
|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
(c)
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
(d)
|
| 39 |
+
|
| 40 |
+
tated as each other in both training and validation set, for example, torch and flashlight, as shown in 1.
|
| 41 |
+
|
| 42 |
+
As images of Open Images dataset are collected from open source in the wild, the label distribution is extremely imbalanced that both very frequent and infrequent classes are included. Hence, methods for balancing label distribution are requested to be applied to train detectors better. Nevertheless, earlier methods like over-sampling tends to impose over-fitting on infrequent categories and fail to fully use the data of frequent categories.
|
| 43 |
+
|
| 44 |
+
In this work, we engage in solving these major problems in large-scale object detection. We design a concurrent softmax to deal with explicitly and implicitly multi-label problem. We propose a soft-balance method together with a hybrid training scheduler to mitigate the over-fitting on infrequent categories and better exploit data of frequent categories. Our methods yield a total gain of 3.34 points, leading to a $60.90\mathrm{mAP}$ single model result on the public test-challenge set of Open Images, which is 5.09 points higher than the single model result of the first place method [1] on the public test-challenge set last year. More importantly, our overall system achieves a $67.17\mathrm{mAP}$ , which is 4.29 points higher than their ensembled results.
|
| 45 |
+
|
| 46 |
+
# 2. Related Works
|
| 47 |
+
|
| 48 |
+
Object Detection. Generic object detection is a fundamental and challenging problem in computer vision, and plenty of works [29, 28, 22, 20, 7, 23, 3, 19, 27] in this area come out in recent years. Faster-RCNN [29] first proposes an end-to-end two-stage framework for object detection and lays a strong foundation for successive methods. In [7], deformable convolution is proposed to adaptively sample input features to deal with objects of various scales and shapes. [19, 27] utilize dilated convolutions to enlarge the effective receptive fields of detectors to better recognize objects of large scale. [3, 23] focus on predicting boxes of higher quality to accommodate the COCO metric.
|
| 49 |
+
|
| 50 |
+
However, most works are still exploring in datasets like Pascal VOC and MS COCO, which are small by modern standards. Only a few works [25, 38, 1, 10] have been proposed to deal with large-scale object detection dataset like Open Images [16]. Wu et al. [38] proposes a soft box-sampling method to cope with the partial label problem in large scale dataset. In [25], a part-aware sampling method is designed to capture the relations between entity and parts to help recognize part objects.
|
| 51 |
+
|
| 52 |
+
Multi-Label Recognition. There have been many amazing attempts [11, 34, 40, 18, 33, 37, 5] to solve the multi-label classification problem from different aspects. One simple and intuitive approach [2] is to transform the multi-label classification into multiple binary classification problems and fuse the results, but this neglects relationships between labels. Some works [13, 17, 33, 36] embed dependencies among labels with deep learning to improve the performance of multi-label recognition. In [18, 33, 37, 5], graph structures are utilized to model the label dependencies. Gong et al. [11] uses a ranking based learning strategy and reweights losses of different labels to achieve better accuracy. Wang et al. [34] proposes a CNN-RNN framework to embed labels into latent space to capture the correlation between them.
|
| 53 |
+
|
| 54 |
+
Imbalanced Label Distribution. There have been many efforts on handling long-tailed label distribution through data based resampling strategies [31, 10, 4, 26, 41, 24] or loss-based methods [6, 14, 35]. In [31, 10, 26], class-aware sampling is applied that each mini-batch is filled as uniform as possible with respect to different classes. [4, 41] expand samples of minor classes through synthesizing new data. Dhruv et al. [24] computes a replication factor for each image based on the distribution of hashtags and duplicates images the prescribed number of times.
|
| 55 |
+
|
| 56 |
+
As for loss-based methods, loss weights are assigned to samples of different classes to match the imbalanced label distribution. In [14, 35], samples are re-weighted by inverse class frequency, while Yin et al. [6] calculates the effective
|
| 57 |
+
|
| 58 |
+
number of each class to re-balance the loss. In OHEM [32] and focal loss [20], difficulty of samples are evaluated in term of losses and hard samples are assigned higher loss weights.
|
| 59 |
+
|
| 60 |
+
# 3. Problem Setting
|
| 61 |
+
|
| 62 |
+
Open Images dataset is currently the largest released object detection dataset to the best of our knowledge. It contains 12 million annotated instances for 500 categories on 1.7 million images. Considering its large size, it is unfeasible to manually annotate such huge number of images on 500 categories Owing to its scale size and annotation styles, we argue that there are three major problems regarding this kind of dataset, apart from the missing annotation problem which has been discussed in [38, 25].
|
| 63 |
+
|
| 64 |
+
Objects may explicitly have multiple labels. As objects in physical world always contain rich categorical attributes on different levels, the 500 categories in Open Images dataset form a class hierarchy of 5 levels, with 443 of the nodes as leaf classes and 57 of the nodes as parent classes. It is likely that some objects hold multiple labels including leaf labels and parent labels, like apple and fruit as shown in Figure 1b. Another case is that an object could easily have multiple leaf labels. For instance, a car-toy is labeled as toy and car at the same time as shown in Figure 1a. This happens frequently in dataset and all leaf labels are requested to be predicted during evaluation. Different from previous single-label object detection, how to deal with multiple labels is one of the crucial factors for object detection in this dataset.
|
| 65 |
+
|
| 66 |
+
Objects may implicitly have multiple labels. Other than the explicit multi-label problem, there is also the implicit multi-label problem caused by the limited and inconsistent knowledge of human annotators. There remain many pairs of leaf categories that are hard to distinguish, and labels of these pairs are mixed up randomly. We analyze the proportion that an object of a leaf class is labeled as another, and find that there are at least 115 pairs of severely confused categories(confusion ratio $\geq 0.1$ ). We display the top-55 confused pairs in Figure 3a, and find many categories heavily confused. For instance, nearly $65\%$ of the torches are labeled as flashlight and $50\%$ of the leopards are labeled as cheetah.
|
| 67 |
+
|
| 68 |
+
Besides, labels of leaf and parent classes are always not complete so that a large amount of objects are only annotated with parent labels without leaf label. As shown in Figure 1c, an apple is sometimes labeled as apple and sometimes labeled as fruit without the leaf annotation. We demonstrate the ratio of leaf annotations and parent annotations lacking leaf annotations in Figure 3b. This implicit coexistence phenomenon also happens frequently and needs to be taken into consideration, otherwise the detectors may learn the false signals.
|
| 69 |
+
|
| 70 |
+
Imbalanced label distribution. To build such a huge dataset, images are collected from open source in the wild. As on can expect, Open Images dataset suffers from extremely imbalanced label distribution that both infrequent and very frequent categories are included. As shown in Figure 2, the most frequent category owns nearly $30\mathrm{k}$ times the training images of the most infrequent category. Naive re-balance strategy, such as widely used class-aware sampling [10] which uniformly samples training images of different categories could not cope with such extreme imbalance, and may lead to two consequences:
|
| 71 |
+
|
| 72 |
+
1) For frequent categories, they are not trained sufficiently, for the reason that most of their training samples have never been seen and are wasted.
|
| 73 |
+
2) For infrequent categories, the excessive over-sampling on them may cause severe over-fitting and degrade the generalizability of recognition on these classes.
|
| 74 |
+
|
| 75 |
+
Once adopting the class-aware sampling, category like person is extremely undersampled that $99.13\%$ of the instances are neglected, while category like pressure cooker is immensely oversampled that each instance is seen for 252 more times averagely within an epoch.
|
| 76 |
+
|
| 77 |
+
# 4. Methodology
|
| 78 |
+
|
| 79 |
+
In this part, we explore methods to deal with the label related problems in large scale object detection. First, we design a concurrent softmax to handle both the explicit and implicit multi-label issues jointly. Second, we propose a soft-balance sampling together with a hybrid training scheduler to deal with the extremely imbalanced label distribution.
|
| 80 |
+
|
| 81 |
+
# 4.1. Multi-Label Object Detection
|
| 82 |
+
|
| 83 |
+
As one of the most widely used loss function in deep learning, the form of softmax loss about a bounding box $b$ is presented as follows:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
L _ {c l s} (b) = - \sum_ {i = 1} ^ {C} y _ {i} \log (\sigma_ {i}), \quad w i t h \sigma_ {i} = \frac {e ^ {z _ {i}}}{\sum_ {j = 1} ^ {C} e ^ {z _ {j}}}, \tag {1}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $z_{i}$ denotes the response of the $i$ -th class, $y_{i}$ denotes the label and $C$ means the number of categories. It behaves well in single label recognition where $\sum y_{i} = 1$ . However, things are different when it comes to multi-label recognition.
|
| 90 |
+
|
| 91 |
+
In the conventional object detection training scheme, each bounding box is assigned only one label during training ignoring other ground-truth labels. If we force to assign all the $m(m\geq 1)$ ground-truth labels that belongs to $K = \{k\mid k\in C,y_k = 1\}$ to bounding box during training, scores of multiple labels would restrain each other. When computing the gradient of each ground-truth label, it looks
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 2: The imbalance magnitude of Open Images and MS COCO dataset. Imbalance magnitude means the number of the images of the largest category divided by the smallest. (best viewed on high-resolution display)
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
(a) We select the top-55 confused category pairs and show their concurrent rates.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
(b) We show the ratio of parent annotations without leaf label and total parent annotations.
|
| 101 |
+
Figure 3: Implicit multi-label problem caused by confused categories and absence of leaf classes.
|
| 102 |
+
|
| 103 |
+
like below:
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\frac {\partial L _ {c l s}}{\partial z _ {i}} = \left\{ \begin{array}{l l} m \sigma_ {i} - 1, & \text {i f} i \in K; \\ m \sigma_ {i}, & \text {i f} i \notin K. \end{array} \right. \tag {2}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
When $m\sigma_{i} > 1$ for $i \in K$ , $z_{i}$ is optimized to become lower even if $i$ is one of the ground-truth labels, which is the wrong optimization direction.
|
| 110 |
+
|
| 111 |
+
# 4.1.1 Concurrent Softmax
|
| 112 |
+
|
| 113 |
+
The concurrent softmax is designed to help solve the problem of recognizing objects with multiple labels in object detection. During training, the concurrent softmax loss of a predicted box $b$ is presented as follows:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
L _ {c l s} ^ {*} (b) = - \sum_ {i = 1} ^ {C} y _ {i} \log \sigma_ {i} ^ {*}, \tag {3}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
w i t h \sigma_ {i} ^ {*} = \frac {e ^ {z _ {i}}}{\sum_ {j = 1} ^ {C} (1 - y _ {j}) (1 - r _ {i j}) e ^ {z _ {j}} + e ^ {z _ {i}}},
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $y_{i}$ denotes the label of class $i$ regarding the box $b$ , and $r_{ij}$ denotes the concurrent rate of class $i$ to class $j$ . And output of concurrent softmax during training is defined as:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\frac {\partial L _ {c l s} ^ {*}}{\partial z _ {i}} = \left\{ \begin{array}{l l} \sigma_ {i} ^ {*} - 1, & \text {i f} i \in K; \\ \sum_ {j \in K} (1 - r _ {i j}) \sigma_ {i} ^ {*}, & \text {i f} i \notin K. \end{array} \right. \tag {4}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
Unlike in softmax that responses of the ground-truth categories are suppressing all the others, we remove the suppression effects between explicitly coexisting categories in concurrent softmax. For instance, a bounding box is assigned multiple ground-truth labels $K = \{k \mid k \in C, y_k = 1\}$ during training. When computing the score of class $i \in K$ , influences of all the other ground-truth classes $j \in K \setminus \{i\}$ are neglected because of the $(1 - y_j)$ term, and the score of each correct class is boosted. This avoids the unnecessary large losses due to the multi-label problem, and the gradients could focus on more valuable knowledge.
|
| 130 |
+
|
| 131 |
+
Apart from the explicit co-existence cases, there are still implicit concurrent relationships remain to be settled. We define a concurrent rate $r_{ij}$ as the probability that an object of class $i$ is labeled as class $j$ . The $r_{ij}$ is calculated based on the class annotations of training set and Figure 3a shows the concurrent rates of confusion pairs. For hierarchical relationships, $r_{ij}$ is set 0 when $i$ is leaf node with $j$ as its parent, and vice versa. With the $(1 - r_{ij})$ term, suppression effects between confusing pairs are weakened.
|
| 132 |
+
|
| 133 |
+
The influence of multi-label object detection is also prominent during inference. Different from the conventional multi-label recognition tasks, the evaluation metric of object detection is mean average precision(mAP). For each category, detection results of all images are firstly collected and ranked by scores to form a precision-recall curve, and the average area of precision-recall curve is defined as the mAP. In this way, the absolute value of box score matters, because it may influence the rank of predicted box over the entire dataset. Thus we also apply the concurrent softmax during inference, and present it as follows:
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\sigma_ {i} ^ {\dagger} = \frac {e ^ {z _ {i}}}{\sum_ {j = 1} ^ {C} (1 - r _ {i j}) e ^ {z _ {j}}}, \tag {5}
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
where we abandon the $(1 - y_{j})$ term and keep the concurrent rate term. Scores of categories in a hierarchy and scores of similar categories would not suppress each other, and are boosted effectively, which is desirable in object detection task.
|
| 140 |
+
|
| 141 |
+
# 4.1.2 Compared with BCE loss
|
| 142 |
+
|
| 143 |
+
BCE is always a popular solution to multi-label recognition, but it does not work well on multi-label detection task. We argue that sigmoid function fails to normalize scores and declines the suppression effect between categories which is desired when evaluated with mAP metric. We have tried BCE loss and focal loss, but it turns out that they yield much worse result even than the original softmax cross-entropy.
|
| 144 |
+
|
| 145 |
+
# 4.2. Soft-balance Sampling with Hybrid Training
|
| 146 |
+
|
| 147 |
+
As detailedly illuminated in 3, Open Images dataset suffers from severely imbalanced label distribution. We denote by $C$ the number of categories, $N$ the number of total training images, and $n_i$ the number of images containing objects of the $i$ -th class. Conventionally, images are sampled in sequence without replacement for training in each epoch, and the original probability $P_o$ of class $i$ being sampled is denoted as $P_o(i) = \frac{n_i}{N}$ , which may greatly degrade the recognition capability of model for infrequent classes. A widely used technique, i.e., class-aware sampling mentioned in [31, 10, 26] is a naive solution to handle the class imbalance problem, in which categories are sampled uniformly in each batch. The class-aware sampling probability $P_a$ of class $i$ becomes $P_a(i) = \frac{1}{C}$ . Yet this may cause heavy over-fitting on infrequent categories and insufficient training on frequent categories as aforementioned.
|
| 148 |
+
|
| 149 |
+
To alleviate the problems above, we firstly adjust the sampling probability based on number of samples, which we call soft-balance sampling. We first define the $P_{n}(i) = \frac{n_{i}}{\sum_{i=j}^{C} n_{j}}$ as the approximation of non-balance sampling probability $P_{o}(i)$ for convenience. Then the sampling prob
|
| 150 |
+
|
| 151 |
+
ability of class-aware balance can be reformulated as:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
P _ {a} (i) = \frac {1}{C} = \frac {1}{C P _ {n} (i)} P _ {n} (i) = \alpha P _ {n} (i), \tag {6}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
where the $\alpha = \frac{1}{CP_n(i)}$ can be regarded as a balance factor that is inversely proportional to the number of categories and the original sampling probability.
|
| 158 |
+
|
| 159 |
+
To reconcile the frequent and infrequent categories, we introduce soft-balance sampling by adjusting the balance factor with a new hyper-parameter $\lambda$ :
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\begin{array}{l} P _ {s} (i) = \alpha^ {\lambda} P _ {n} (i) \tag {7} \\ = P _ {a} (i) ^ {\lambda} P _ {n} (i) ^ {(1 - \lambda)}. \\ \end{array}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
Note that $\lambda = 0$ corresponds to non-balance sampling and $\lambda = 1$ corresponds to class-aware balance. The normalized probability is:
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
P _ {s} ^ {*} (i) = \frac {P _ {s} (i)}{\sum_ {j = 1} ^ {C} P _ {s} (j)}. \tag {8}
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
This sampling strategy guarantees more sufficient training on dominate categories and decreases the excessive sampling frequency of infrequent categories.
|
| 172 |
+
|
| 173 |
+
Even with the soft-balance method, there are still many samples of the frequent categories that are not sampled. Thus we propose a hybrid training scheduler to further mitigate this problem. We firstly train detector using the conventional strategy, which is sampling training images in sequence without replacement, and the equivalent sampling probability is $P_{o}$ . Then we finetune the model with soft-balance strategy to cover categories with very few samples. This hybrid training schema exploits the effectiveness of pretrained model for object detection task from Open Images itself rather than ImageNet. It ensures that all the images have been seen during training, and endows the model with a better generalization ability.
|
| 174 |
+
|
| 175 |
+
# 5. Experiments
|
| 176 |
+
|
| 177 |
+
# 5.1. Dataset
|
| 178 |
+
|
| 179 |
+
To analyze the proposed concurrent softmax loss and soft-balance with hybrid training, we conduct experiment on Open Images challenge 2019 dataset. As an object detection dataset in the wild, it contains 1.7 million images with 12.4 million boxes of 500 categories in its challenge split. The scale of training images is 15 times of the MS COCO [21] and 3 times of the second largest object detection dataset Object365 [30].
|
| 180 |
+
|
| 181 |
+
Considering the huge size of Open Images dataset, we split a mini Open Images dataset for our ablation study. The mini Open Images dataset contains 115K training images and 5K validation images named as mini-train and mini-val.
|
| 182 |
+
|
| 183 |
+
All the images are sampled from Open Images challenge 2019 dataset with the ratio of each category unchanged. Final results on full-val and public test-challenge in Open Images challenge 2019 dataset are also reported. We follow the metric used in Open Images challenge which is a variant mAP at IoU 0.5, as all false positives not existing in image-level labels<sup>1</sup> are ignored.
|
| 184 |
+
|
| 185 |
+
# 5.2. Implementation Details
|
| 186 |
+
|
| 187 |
+
We train our detector with ResNet-50 backbone armed with FPN. For the network configuration, we follow the setting mentioned in Detectron. We use SGD with momentum 0.9 and weight decay 0.0001 to optimize parameters. The initial learning rate is set to $0.00125 \times$ batch size, and then decreased by a factor of 10 at 4 and 6 epoch for $1 \times$ schedule which has total 7 epochs. The input images are scaled so that the length of the shorter edge is 800 and the longer side is limited to 1333. Horizontal flipping is used as data augmentation and sync-BN is adopted to speed up the convergence.
|
| 188 |
+
|
| 189 |
+
# 5.3. Concurrent Softmax
|
| 190 |
+
|
| 191 |
+
We explore the influence of concurrent softmax in training and testing stage respectively in this ablation study. All models are trained with mini-train and evaluated on minival.
|
| 192 |
+
|
| 193 |
+
The impacts of concurrent softmax during training. Table 1 shows the results of the proposed concurrent softmax compared with the vanilla softmax and other existing methods during training stage. Concurrent softmax could outperform softmax by 1.13 points with class-aware sampling and 0.98 points with non-balance sampling. It is also found that sigmoid with BCE and focal loss behaves poorly in this case. We guess that they are incompatible with the mAP metric in object detection as mentioned in 4.1.2. Our method also outperforms dist-CE loss [24] and Co-BCE loss [1].
|
| 194 |
+
|
| 195 |
+
The impacts of concurrent softmax during testing. We also show results to demonstrate the effectiveness of concurrent softmax in testing stage in Table 2. Solely applying concurrent softmax brings $0.36\mathrm{mAP}$ improvement during inference, while applying it in both training and testing stage yields 1.50 points improvement totally. This also proves the fact that suppression effects between leaf and parent categories or confusing categories are harming the performance of object detection in Open Images.
|
| 196 |
+
|
| 197 |
+
# 5.4. Soft-balance Sampling
|
| 198 |
+
|
| 199 |
+
Results. Table 3 presents the results of the proposed soft-balance sampling and other balance method. As Open Images is a long-tailed dataset, many categories have few sam
|
| 200 |
+
|
| 201 |
+
Table 1: The comparison of different loss functions method. Models are trained in mini-train and evaluated on mini-val.
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Loss Type</td><td>Balance</td><td>mAP</td></tr><tr><td>Focal Loss [20]</td><td>✓</td><td>50.18</td></tr><tr><td>BCE Loss</td><td>✓</td><td>54.29</td></tr><tr><td>Co-BCE Loss [1]</td><td>✓</td><td>55.74</td></tr><tr><td>dist-CE Loss [24]</td><td>✓</td><td>55.90</td></tr><tr><td>Softmax Loss</td><td></td><td>38.16</td></tr><tr><td>Concurrent Softmax Loss</td><td></td><td>39.14</td></tr><tr><td>Softmax Loss</td><td>✓</td><td>55.45</td></tr><tr><td>Concurrent Softmax Loss</td><td>✓</td><td>56.58</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 2: The effectiveness of concurrent softmax during testing. Models are trained in mini-train and evaluated on mini-val.
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Train Method</td><td>Test Method</td><td>mAP</td></tr><tr><td>Softmax</td><td>Softmax</td><td>55.45</td></tr><tr><td>Softmax</td><td>Concurrent Softmax</td><td>55.77</td></tr><tr><td>Concurrent Softmax</td><td>Softmax</td><td>56.58</td></tr><tr><td>Concurrent Softmax</td><td>Concurrent Softmax</td><td>56.95</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Table 3: The comparison of different sampling methods. Models are trained in mini-train and evaluated on mini-val.
|
| 210 |
+
|
| 211 |
+
<table><tr><td>Methods</td><td>λ</td><td>mAP</td></tr><tr><td>Non-balance</td><td>-</td><td>38.16</td></tr><tr><td>Class-aware Sampling [10]</td><td>-</td><td>55.45</td></tr><tr><td>Effective Number [6]</td><td>-</td><td>45.72</td></tr><tr><td rowspan="5">Soft-balance</td><td>0.3</td><td>50.69</td></tr><tr><td>0.5</td><td>56.19</td></tr><tr><td>0.7</td><td>57.04</td></tr><tr><td>1.0</td><td>55.45</td></tr><tr><td>1.5</td><td>52.41</td></tr></table>
|
| 212 |
+
|
| 213 |
+
ples, so that non-balance training only achieves 38.16 mAP. Class-aware sampling simply samples all categories data uniformly at random, it remedy the data imbalance problem to a great extent and boost the performance to 55.45. The effective number [6] is used to re-weight the classification loss with the purpose of harmonizing the gradient contribution from different categories. Comparing to the non-balance method, the effective number improves the results by 7.56 points, but is worse than the class-aware sampling. We argue that it is because the balance strategy applied on data level is more efficient than that of loss level. Soft-balance with hyper-parameter $\lambda$ allows us to transfer from non-balance $(\lambda = 0)$ to class-aware sampling $(\lambda = 1)$ . Thus, we can find a point at which sufficient infrequent cat
|
| 214 |
+
|
| 215 |
+

|
| 216 |
+
Figure 4: Training curves of the proposed soft-balance sampling. Soft-balance with $\lambda = 0.7$ achieves the best performance.
|
| 217 |
+
|
| 218 |
+
egories data could be sampled to train the model and the over-fitting problem does not happen yet. The soft-balance with $\lambda = 0.7$ outperforms the class-aware sampling by 1.59 points.
|
| 219 |
+
|
| 220 |
+
The impacts of soft-balance during training. To investigate why soft-balance is better, we show the training curves of soft-balance with different $\lambda$ in Figure 4. We can learn that the small $\lambda = 0.3$ is hard to achieve a good performance due to the data imbalance problem. But too large $\lambda = 1.5$ also fails on accomplishing the best performance comparing with the relatively smaller $\lambda$ setting. Note that the mAP of $\lambda = 1.5$ is much higher than that of $\lambda = 0.5$ in the first learning rate stage (before epoch 4), but this situation reverses in subsequent train progress. This comparison proves that $\lambda = 1.5$ provides more sufficient rare categories data to train the model and achieve better performance in the beginning, however, it run into a severe over-fitting in the convergence stage. The results of $\lambda = 1.0$ and $\lambda = 0.7$ validate this rules again.
|
| 221 |
+
|
| 222 |
+
The impacts of soft-balance among categories. We further study the performance of $\lambda = 0.0$ , $\lambda = 0.7$ , and $\lambda = 1.0$ among categories in Figure 5, in which the challenge validation results of 500 categories are arranged from large to few by their number of images. As shown in Figure 5a, the $\lambda = 1.0$ (orange line) outperforms the $\lambda = 0.0$ (blue line) on the later half categories which have few image samples. Although $\lambda = 1.0$ solves the data insufficiency of infrequent categories, it under-samples the frequent categories and causes the performance dropping on the former half categories. Figure 5b shows that $\lambda = 0.7$ (orange line) alleviates the excessive under-sampling of the major categories comparing to $\lambda = 1.0$ (blue line). On the other hand, it mitigates the over-fitting problem of infrequent categories. Therefore, the performance of $\lambda = 0.7$ is almost
|
| 223 |
+
|
| 224 |
+
Table 4: The effect of training scheduler. The $\lambda$ of the soft-balance is set to 0.7. Non-balance I14 denotes the model of epoch 14 trained with non-balance strategy from ImageNet pretrain. Non-balance S20 denotes the model of epoch 20 trained with non-balance strategy from scratch. Soft-balance* means that concurrent softmax is adopted in both training and testing stage. Models are trained on full-train and evaluated on full-val.
|
| 225 |
+
|
| 226 |
+
<table><tr><td>Method</td><td>Pretrain</td><td>Epochs</td><td>mAP</td></tr><tr><td rowspan="5">Non-balance</td><td>ImageNet</td><td>7</td><td>56.06</td></tr><tr><td>ImageNet</td><td>11</td><td>59.12</td></tr><tr><td>ImageNet</td><td>14</td><td>59.85</td></tr><tr><td>ImageNet</td><td>16</td><td>59.95</td></tr><tr><td>Scratch</td><td>20</td><td>60.70</td></tr><tr><td rowspan="4">Class-aware Sampling</td><td>ImageNet</td><td>7</td><td>64.68</td></tr><tr><td>ImageNet</td><td>14</td><td>62.85</td></tr><tr><td>Non-balance I14</td><td>14+7</td><td>65.60</td></tr><tr><td>Non-balance S20</td><td>20+7</td><td>65.92</td></tr><tr><td rowspan="2">Soft-balance Soft-balance*</td><td>Non-balance S20</td><td>20+7</td><td>67.09</td></tr><tr><td>Non-balance S20</td><td>20+7</td><td>68.23</td></tr></table>
|
| 227 |
+
|
| 228 |
+
always better than $\lambda = 1.0$ on the full category space.
|
| 229 |
+
|
| 230 |
+
# 5.5. Hybrid Training Scheduler
|
| 231 |
+
|
| 232 |
+
Table 4 summarizes the results of ResNeXt152 on Open Images Challenge dataset trained with different training scheduler. For the non-balance setting, the more epochs the model trained, the better performance the model achieves. And training a model from scratch yields better results than finetuning from ImageNet pretrained model. These observations match similar conclusion in [12].
|
| 233 |
+
|
| 234 |
+
While class-aware sampling significantly boosts the performance by 8.62 points using the ImageNet pretraining in 7 epochs setting, it suffers from over-fitting problem, as the mAP of model trained with 14 epochs is lower than that of 7 epochs. And frequent categories are still intensely under-sampled even applying the balance sampling. With hybrid training, class-aware sampling can achieve better performance in both non-balance ImageNet pretraining and non-balance scratch pretraining setting. Note that these improvements are not caused by more training epochs, because longer training schedule will decreases the performance if with only ImageNet pretraining. By further using soft-balance strategy, the hybrid training with non-balance scratch is improved from 65.92 to $67.09\mathrm{mAP}$ .
|
| 235 |
+
|
| 236 |
+
# 5.6. Extension Results on Test-challenge Set
|
| 237 |
+
|
| 238 |
+
With the proposed concurrent softmax, soft-balance and hybrid training scheduler, we achieve 67.17 mAP and 4.29 points absolute improvement compared to the first place en
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
(a) Non-balance (blue) versus Class-aware Sampling (orange) sorted by the number of images for most frequent 100 categories (left) and most infrequent 100 categories (right).
|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
(b) Class-aware Sampling (blue) versus Soft-balance with $\lambda = 0.7$ (orange) sorted by the number of images for most frequent 100 categories (left) and most infrequent 100 categories (right).
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 5: The comparison of sampling strategy among categories. (Best viewed on high-resolution display)
|
| 250 |
+
|
| 251 |
+
Table 5: Results with bells and whistles on Open Images public test-challenge set.
|
| 252 |
+
|
| 253 |
+
<table><tr><td>Methods</td><td>Ensemble</td><td>Public Test</td></tr><tr><td>2018 1st [1]</td><td></td><td>55.81</td></tr><tr><td>Ours</td><td></td><td>60.90</td></tr><tr><td>2018 1st [1]</td><td>✓</td><td>62.88</td></tr><tr><td>2018 2nd [10]</td><td>✓</td><td>62.16</td></tr><tr><td>2018 3rd</td><td>✓</td><td>61.70</td></tr><tr><td>Ours</td><td>✓</td><td>67.17</td></tr><tr><td>Baseline (ResNeXt-152)</td><td></td><td>53.88</td></tr><tr><td>+Class-aware Sampling</td><td></td><td>57.56</td></tr><tr><td>+Concurrent Softmax Loss</td><td></td><td>58.60</td></tr><tr><td>+Soft-balance</td><td></td><td>59.86</td></tr><tr><td>+Hybrid Training Scheduler</td><td></td><td>60.90</td></tr><tr><td>+Other Tricks</td><td></td><td>62.34</td></tr><tr><td>+Ensemble</td><td>✓</td><td>67.17</td></tr></table>
|
| 254 |
+
|
| 255 |
+
try on the public test-challenge set last year, as detailed in Table 5. We train a ResNeXt-152 FPN with multi-scale training and testing as our baseline which achieves 53.88 mAP. After using class-aware balance, the performance is boosted to 57.56. With the help of proposed concurrent softmax, the model achieves $58.60\mathrm{mAP}$ . The soft-balance and the hybrid training scheduler lead to mAP gains of 1.26 and 1.04 points, respectively. By further using other tricks including data augmentation, loss function search,
|
| 256 |
+
|
| 257 |
+
and heavier head, we achieve a best single model with a mAP of 62.34. We use ResNeXt-101, ResNeXt-152, and EfficientNet-B7 with various tricks for model ensembling. The final mAP on Open Images public test-challenge set is 67.17.
|
| 258 |
+
|
| 259 |
+
# 6. Conclusion
|
| 260 |
+
|
| 261 |
+
In this paper, we investigate the multi-label problem and the imbalanced label distribution problem in large-scale object detection dataset, and introduce a simple but powerful solution. We propose the concurrent softmax function to deal with explicit and implicit multi-label problems in both training and testing stage. Our soft-balance method together with hybrid training scheduler could effectively deal with the extremely imbalanced label distribution.
|
| 262 |
+
|
| 263 |
+
# 7. Acknowledgements
|
| 264 |
+
|
| 265 |
+
This work was supported in part by the Major Project for New Generation of AI (No.2018AAA0100400), the National Natural Science Foundation of China (No.61836014, No.61761146004, No.61773375, No.61602481), the Key R&D Program of Shandong Province (Major Scientific and Technological Innovation Project) (NO.2019JZZY010119), and CAS-AIR. We also thank Changbao Wang, Cunjun Yu, Guoliang Cao and Buyu Li for their precious discussion and help.
|
| 266 |
+
|
| 267 |
+
# References
|
| 268 |
+
|
| 269 |
+
[1] Takuya Akiba, Tommi Kerola, Yusuke Niitani, Toru Ogawa, Shotaro Sano, and Shuju Suzuki. Pfdet: 2nd place solution to open images challenge 2018 object detection track. arXiv preprint arXiv:1809.00778, 2018.
|
| 270 |
+
[2] Matthew R Boutell, Jiebo Luo, Xipeng Shen, and Christopher M Brown. Learning multi-label scene classification. Pattern recognition, 37(9):1757-1771, 2004.
|
| 271 |
+
[3] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6154-6162, 2018.
|
| 272 |
+
[4] Nitesh V Chawla, Kevin W Bowyer, Lawrence O Hall, and W Philip Kegelmeyer. Smote: synthetic minority oversampling technique. Journal of artificial intelligence research, 16:321-357, 2002.
|
| 273 |
+
[5] Zhao-Min Chen, Xiu-Shen Wei, Peng Wang, and Yanwen Guo. Multi-label image recognition with graph convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5177-5186, 2019.
|
| 274 |
+
[6] Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. Class-balanced loss based on effective number of samples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9268-9277, 2019.
|
| 275 |
+
[7] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proceedings of the IEEE international conference on computer vision (ICCV), 2017.
|
| 276 |
+
[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009.
|
| 277 |
+
[9] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2):303-338, 2010.
|
| 278 |
+
[10] Yuan Gao, Xingyuan Bu, Yang Hu, Hui Shen, Ti Bai, Xubin Li, and Shilei Wen. Solution for large-scale hierarchical object detection datasets with incomplete annotation and data imbalance. arXiv preprint arXiv:1810.06208, 2018.
|
| 279 |
+
[11] Yunchao Gong, Yangqing Jia, Thomas Leung, Alexander Toshev, and Sergey Ioffe. Deep convolutional ranking for multilabel image annotation. arXiv preprint arXiv:1312.4894, 2013.
|
| 280 |
+
[12] Kaiming He, Ross Girshick, and Piotr Dollar. Rethinking image pre-training. arXiv preprint arXiv:1811.08883, 2018.
|
| 281 |
+
[13] Hexiang Hu, Guang-Tong Zhou, Zhiwei Deng, Zicheng Liao, and Greg Mori. Learning structured inference neural networks with label relations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2960-2968, 2016.
|
| 282 |
+
[14] Chen Huang, Yining Li, Chen Change Loy, and Xiaou Tang. Learning deep representation for imbalanced classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5375-5384, 2016.
|
| 283 |
+
|
| 284 |
+
[15] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012.
|
| 285 |
+
[16] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Tom Duerig, et al. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. arXiv preprint arXiv:1811.00982, 2018.
|
| 286 |
+
[17] Qiang Li, Maoying Qiao, Wei Bian, and Dacheng Tao. Conditional graphical lasso for multi-label image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2977-2986, 2016.
|
| 287 |
+
[18] Xin Li, Feipeng Zhao, and Yuhong Guo. Multi-label image classification with a probabilistic label enhancement model. In UAI, volume 1, page 3, 2014.
|
| 288 |
+
[19] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. arXiv preprint arXiv:1901.01892, 2019.
|
| 289 |
+
[20] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision (ICCV), 2017.
|
| 290 |
+
[21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014.
|
| 291 |
+
[22] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In Proceedings of the European conference on computer vision (ECCV), 2016.
|
| 292 |
+
[23] Xin Lu, Buyu Li, Yuxin Yue, Quanquan Li, and Junjie Yan. Grid r-cnn. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7363-7372, 2019.
|
| 293 |
+
[24] Dhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens van der Maaten. Exploring the limits of weakly supervised pretraining. In Proceedings of the European Conference on Computer Vision (ECCV), pages 181-196, 2018.
|
| 294 |
+
[25] Yusuke Niitani, Takuya Akiba, Tommi Kerola, Toru Ogawa, Shotaro Sano, and Shuju Suzuki. Sampling techniques for large-scale object detection from sparsely annotated objects. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6510-6518, 2019.
|
| 295 |
+
[26] Wanli Ouyang, Xiaogang Wang, Cong Zhang, and Xiaokang Yang. Factors in finetuning deep model for object detection with long-tail distribution. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 864-873, 2016.
|
| 296 |
+
[27] Junran Peng, Ming Sun, Zhaoxiang Zhang, Tieniu Tan, and Junjie Yan. Pod: Practical object detection with scale-sensitive network. In Proceedings of the IEEE International Conference on Computer Vision, pages 9607-9616, 2019.
|
| 297 |
+
|
| 298 |
+
[28] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779-788, 2016.
|
| 299 |
+
[29] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015.
|
| 300 |
+
[30] Shuai Shao, Zeming Li, Tianyuan Zhang, Chao Peng, Gang Yu, Xiangyu Zhang, Jing Li, and Jian Sun. Objects365: A large-scale, high-quality dataset for object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 8430-8439, 2019.
|
| 301 |
+
[31] Li Shen, Zhouchen Lin, and Qingming Huang. Relay backpropagation for effective learning of deep convolutional neural networks. In European conference on computer vision, pages 467-482. Springer, 2016.
|
| 302 |
+
[32] Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 761-769, 2016.
|
| 303 |
+
[33] Mingkui Tan, Qinfeng Shi, Anton van den Hengel, Chunhua Shen, Junbin Gao, Fuyuan Hu, and Zhen Zhang. Learning graph structure for multi-label image classification via clique generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4100-4109, 2015.
|
| 304 |
+
[34] Jiang Wang, Yi Yang, Junhua Mao, Zhiheng Huang, Chang Huang, and Wei Xu. Cnn-rnn: A unified framework for multi-label image classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2285-2294, 2016.
|
| 305 |
+
[35] Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Learning to model the tail. In Advances in Neural Information Processing Systems, pages 7029-7039, 2017.
|
| 306 |
+
[36] Zhouxia Wang, Tianshui Chen, Guanbin Li, Ruijia Xu, and Liang Lin. Multi-label image recognition by recurrently discovering attentional regions. In Proceedings of the IEEE international conference on computer vision, pages 464-472, 2017.
|
| 307 |
+
[37] Jian Wu, Anqian Guo, Victor S Sheng, Pengpeng Zhao, Zhiming Cui, and Hua Li. Adaptive low-rank multi-label active learning for image classification. In Proceedings of the 25th ACM international conference on Multimedia, pages 1336-1344. ACM, 2017.
|
| 308 |
+
[38] Zhe Wu, Navaneeth Bodla, Bharat Singh, Mahyar Najibi, Rama Chellappa, and Larry S Davis. Soft sampling for robust object detection. arXiv preprint arXiv:1806.06986, 2018.
|
| 309 |
+
[39] Qizhe Xie, Eduard Hovy, Minh-Thang Luong, and Quoc V. Le. Self-training with noisy student improves imagenet classification, 2019.
|
| 310 |
+
[40] Junjie Zhang, Qi Wu, Chunhua Shen, Jian Zhang, and Jianfeng Lu. Multilabel image classification with regional latent semantic dependencies. IEEE Transactions on Multimedia, 20(10):2801-2813, 2018.
|
| 311 |
+
|
| 312 |
+
[41] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In Proceedings of the European Conference on Computer Vision (ECCV), pages 289-305, 2018.
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f7aeba679dff673d26ceaaa3736bac02d10ef7ac2b81198f3f3e1d98d391dc9
|
| 3 |
+
size 560650
|
largescaleobjectdetectioninthewildfromimbalancedmultilabels/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0775ab9ade4191e3df1a532cc7ab528102be505c3ad85e3cfe8b06b11f691475
|
| 3 |
+
size 368360
|
largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a255c08a17ace2f9584b4436d7b8e02e6c0d886f54bef36cd5d79382d2bbf92
|
| 3 |
+
size 85466
|
largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8080a39cfe93f1cab3247810d28aab0acf1c58007cd38aae1037269ff4a256b9
|
| 3 |
+
size 106122
|
largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:873c6abf8e00e833f78804bd18285fdc6bd2b848c3b7d4dd86f0a4bf8012bbc8
|
| 3 |
+
size 603859
|
largescalevideorepresentationlearningviarelationalgraphclustering/full.md
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Large Scale Video Representation Learning via Relational Graph Clustering
|
| 2 |
+
|
| 3 |
+
Hyodong Lee*
|
| 4 |
+
MIT
|
| 5 |
+
|
| 6 |
+
hyo@mit.edu
|
| 7 |
+
|
| 8 |
+
Joonseok Lee
|
| 9 |
+
|
| 10 |
+
Google Research
|
| 11 |
+
|
| 12 |
+
joonseok@google.com
|
| 13 |
+
|
| 14 |
+
Joe Yue-Hei Ng
|
| 15 |
+
|
| 16 |
+
Google Research
|
| 17 |
+
|
| 18 |
+
yhng@google.com
|
| 19 |
+
|
| 20 |
+
Paul Natev
|
| 21 |
+
|
| 22 |
+
Google Research
|
| 23 |
+
|
| 24 |
+
natsev@google.com
|
| 25 |
+
|
| 26 |
+
# Abstract
|
| 27 |
+
|
| 28 |
+
Representation learning is widely applied for various tasks on multimedia data, e.g., retrieval and search. One approach for learning useful representation is by utilizing the relationships or similarities between examples. In this work, we explore two promising scalable representation learning approaches on video domain. With hierarchical graph clusters built upon video-to-video similarities, we propose: 1) smart negative sampling strategy that significantly boosts training efficiency with triplet loss, and 2) a pseudo-classification approach using the clusters as pseudo-labels. The embeddings trained with the proposed methods are competitive on multiple video understanding tasks, including related video retrieval and video annotation. Both of these proposed methods are highly scalable, as verified by experiments on large-scale datasets.
|
| 29 |
+
|
| 30 |
+
# 1. Introduction
|
| 31 |
+
|
| 32 |
+
A tremendous amount of video data are uploaded on the web everyday. Such web video data has become one of the important elements of numerous online products. The goal of video representation learning is to compactly encode the semantic information in the videos to a lower dimensional space. The resulting embeddings are useful for video annotation, search, and recommendation problems, and thus is a core technology area for many online products. However, learning video representations is challenging due to the large data volume and their multi-modality, especially at million- or billion-scale. In addition, most of the web videos are unlabeled or inaccurately annotated, making the representation learning even more challenging.
|
| 33 |
+
|
| 34 |
+
One useful approach for video representation learning is to leverage the video-to-video relationships to learn an embedding function which projects videos onto a low-dimensional feature space. Given sparsely observed pairwise similarity scores, one can construct a relational graph whose nodes are videos and edges represent the relationship or similarity scores between video pairs. Such a graph contains rich information to learn embeddings that preserve
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 1. Overview of the proposed methods. Given a relational graph that defines the pairwise relationships, the videos are clustered based on the similarities using a hierarchical graph clustering. Then, the clusters and their hierarchy are used to construct informative training samples for two different learning approaches: smart triplets and classification with pseudo-labels.
|
| 38 |
+
|
| 39 |
+
the video-to-video similarity by putting the related videos closer to each other. The pairwise similarity of videos can be obtained from various sources, e.g., whether the videos appear in the same web page, without manual labeling.
|
| 40 |
+
|
| 41 |
+
Collaborative Deep Metric Learning (CDML) [25], for example, is a recently developed deep metric learning technique that learns such video embeddings from a relational graph. It embeds the content (audio-visual) features into a new feature space preserving the video-to-video relationships defined in the relational graph, proved to be useful for video annotation and recommendation, especially for cold-start cases.
|
| 42 |
+
|
| 43 |
+
However, CDML [25] has some limitations. Inspired by [37], the model uses triplet loss, which encourages the anchor-positive distances to be smaller than anchor-negative distances. They sample the anchor-positive pairs from related videos defined in the graph, and randomly sample negatives among all videos. Most of the randomly sampled negatives are too far from the anchor and thus are not informative for training after initial stage. As a result, semi-hard negative mining [37] is required for good performance, where the negatives are re-sampled among the videos within each mini-batch such that each negative is farther than the positive but not too far from the corresponding anchor. Even with the semi-hard negative mining, however, training is inefficient as the negative candidates in each mini-batch are random samples, regardless of their relation
|
| 44 |
+
|
| 45 |
+
ships with anchor-positive pairs. This requires models to be trained with a large batch size in order to ensure learning from informative triplets, which makes it difficult to train larger models with limited memory, especially with accelerated hardwares like GPU and TPU.
|
| 46 |
+
|
| 47 |
+
In this work, we explore a couple of promising approaches for scalable video metric learning, employing a relational graph to learn representations that preserves relationships between videos (Figure 1). Starting from a relational graph, where each node is a video and each edge represents the similarity between two videos, we first learn the overall structure of video-to-video relationships via hierarchical clustering. The first approach (smart triplets) is to generate training triplets similar to CDML [25] in a more sophisticated way, guaranteeing negatives with proper difficulty level to the corresponding anchor-positive pairs. This enables controlling difficulty level of triplets, and thus significantly reduces training inefficiency of previous work. The second approach (pseudo-labels) is to train a classification model with the cluster membership as the target pseudo-label, which can be scaled easily with recent advances in training framework for classification models (e.g., [13]). We emphasize that the proposed methods are applicable to any representation learning scenario where the pairwise relationships or similarity scores are defined.
|
| 48 |
+
|
| 49 |
+
The major contributions of this work are as follows:
|
| 50 |
+
|
| 51 |
+
1. We propose novel methods to learn video representation from video-to-video similarities defined in a relational graph. Along with hierarchical clustering on the relational graph, we propose a smart negative sampling strategy that significantly boosts training efficiency with triplet loss. Also, we propose a pseudo-classification approach that treats the clusters as pseudo-labels.
|
| 52 |
+
2. We verify that both of the proposed methods are highly scalable on large-scale datasets with hundreds of millions of videos.
|
| 53 |
+
3. The embeddings we train with the proposed methods are competitive on multiple video understanding tasks, outperforming state-of-the-art models on related video retrieval and video classification.
|
| 54 |
+
|
| 55 |
+
# 2. Related Work
|
| 56 |
+
|
| 57 |
+
Video Representation Learning. Various video-related tasks have been proposed for efficient video representation learning either with or without supervision. [21, 59] exploited supervised learning via video captioning. There have been plenty of un/self-supervised methods proposed, such as context-based self-supervised learning [31, 24, 18, 2], audio-visual cross-modal learning [41], and reconstruction/generation-based learning [46, 30].
|
| 58 |
+
|
| 59 |
+
Metric Learning. Metric learning embeds the examples
|
| 60 |
+
|
| 61 |
+
into a space where similar or related ones are encoded to be closer to each other. Metric learning algorithms has been useful for various applications, such as face recognition [37, 53, 4], image retrieval [34, 54, 40, 51], fine-grained object recognition [58, 6, 52, 40], and related video retrieval [7, 20, 25]. There are distance-based [37, 34, 40, 45, 51, 5], classification-based [53, 28, 47], and clustering-based [33, 22, 44] approaches. In this work, we focus on distance-based and classification-based learning.
|
| 62 |
+
|
| 63 |
+
Distance Metric Learning. Distance metric learning learns embeddings using distance-based loss functions. It has become more popular in metric learning after FaceNet [37], where triplet loss was used for face recognition. The margin-based loss [54] and batch hard loss [9] are variants of triplet loss. Modified loss functions with distance metrics were proposed, including triangular angle [49] and histogram [45]. Recently, the distance-based loss functions have been further extended to utilize more possible pairs of examples within each of mini-batch than merely triplets, by considering quadruplets [5], $n$ -tuples [40, 34, 51, 55], or all possible pairs within mini-batch [45].
|
| 64 |
+
|
| 65 |
+
Negative Mining. The importance of sampling scheme has been highlighted in metric learning. The idea of using more informative negatives was introduced in FaceNet [37], where they proposed the online semi-hard negative mining. Several following works proposed more negative mining and training loss schemes. Wu et al. provided theoretical analysis of different sampling strategies and proposed a distributed sampling scheme [54]. Huang et al. used an additional PDDM unit which tries to capture the local structure of different classes and dynamically mines samples based on the local similarity [12]. Yuan et al. ensembled cascaded models to combine different levels of hard triplets [56].
|
| 66 |
+
|
| 67 |
+
Recent work suggested to sample negatives using the class (label) information of the examples. Proxy-NCA [32] pre-defined a subset of "proxies" that presumably represents each class, and sampled the negatives from the different classes according to the proxies. Ge proposed to dynamically sample triplets from a hierarchical tree capturing the global structure of relationships between classes (labels) [8]. Most previous works [37, 40, 34, 51] utilize the class (label) information for better sampling, which is inapplicable when label is unavailable. Inspired by previous works, we adapt the negative "class" mining idea by applying hierarchical clustering on the relational graph and treat the "clusters" as labels. Wang et al. also utilized graph clustering to sample triplets [50], yet their approach focuses on extracting visual invariance among image patches.
|
| 68 |
+
|
| 69 |
+
Classification-based Metric Learning. Classification models have been introduced to metric learning [53, 28, 47] as an alternative of ranking losses. Qian et al. proposed to improve the softmax loss for more efficient metric learning [36], by maintaining multiple centers for each class.
|
| 70 |
+
|
| 71 |
+
Wang et al. [48] and Zhai et al. [57] applied metric learning with classification loss to face recognition and image classification, respectively. Iscen et al. utilized label propagation method to generate pseudo labels [14]. Again, most previous works required discrete labels associated with the examples, while our proposed pseudo-classification approach does not require any labeled data other than the relational graph. This is an application of pseudo-labeling, which has been widely used for semi-supervised learning [23, 38], where the network predictions were used as pseudo-labels.
|
| 72 |
+
|
| 73 |
+
# 3. Methods
|
| 74 |
+
|
| 75 |
+
In this section, we first formally define the video metric learning problem and describe the preprocessing step - graph clustering on the relational graph based on pairwise video similarities. Then, we present our proposed methods: 1) smart negative sampling for ranking losses (smart triplet), and 2) classification based on pseudo-labels from graph clustering (pseudo-classification).
|
| 76 |
+
|
| 77 |
+
# 3.1. Problem Setting
|
| 78 |
+
|
| 79 |
+
Metric learning, in general, is a task of learning a function $f(\mathbf{x}_1,\mathbf{x}_2)$ that returns a similarity (or distance) between the two input examples. As we focus on video metric learning, each $\mathbf{x}$ is a representation of a video, which can be raw pixels $(\mathbf{x}\in \mathbb{R}^{m\times n\times f}$ , where each frame is $m\times n$ dimensional and the video contains $f$ frames), or some compact representation of audio-visual features from a pre-trained video model $(\mathbf{x}\in \mathbb{R}^d$ , where $d$ is the dimensionality of the feature). We assume that this feature representation $\mathbf{x}$ is available for all videos.
|
| 80 |
+
|
| 81 |
+
We are also given as a source for training a relational graph $G = (V, E)$ , where each node $\mathbf{x} \in V$ is a video and each edge $(\mathbf{x}_1, \mathbf{x}_2) \in E$ represents how similar the videos $\mathbf{x}_1$ and $\mathbf{x}_2$ are. The edge weights can be either binary or real numbers. Usually, the edges are sparsely observed, as it is impractical to log or compute similarity between all possible pairs of videos on the web. Note that the similarity measure in this relational graph can be arbitrary. It may be collected from human raters. We can also use implicit feedback from users; for instance, how frequently they are co-watched, co-searched, co-clicked, belong to same channels, share texts in the title, and so on. Regardless of the source, the proposed method can be applied as long as they are represented as the form described above.
|
| 82 |
+
|
| 83 |
+
Given these, our task is learning an embedding $\mathbf{z} \in \mathbb{R}^k$ , typically where $k \ll d$ , such that $\mathbf{z}_1^\top \mathbf{z}_2 \approx (\mathbf{x}_1, \mathbf{x}_2) \in E$ . In other words, we would like to locate video embeddings close to each other if they are similar (as defined in the relational graph), and far away otherwise.
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 2. Smart triplets construction. Left panel represents an output tree of affinity clustering on a relational graph. The leaves represent the videos and the upper level nodes correspond to the video clusters found at each iteration of clustering, i.e., L0 nodes from the first iteration. The colored nodes and lines represent the negative sampling procedure using the cluster hierarchy. Here, we illustrate how to sample negatives from the L1 clusters. An anchor (blue leaf node) is randomly sampled, and a positive is chosen based on the original relational graph. A negative (red leaf) is sampled from the leaves that share the common parent at the desired level (the rightmost node at L1, outlined with blue color). The box with dashed lines represents the subtree whose leaves are the pool for negative sampling. The right panel shows the final triplet constructed.
|
| 87 |
+
|
| 88 |
+
# 3.2. Graph Clustering
|
| 89 |
+
|
| 90 |
+
We preprocess the relational graph using a clustering algorithm, which enables an efficient data sampling. We note that one can use any clustering algorithm that is applicable to a graph. We use affinity clustering [3], a hierarchical graph clustering tool that clusters the nearest neighbors using minimum spanning tree (MST) approach. Although other types of clustering are also applicable, we choose "hierarchical" clustering as we can control difficulty of triplets to generate with multiple levels. Using the edge scores, the algorithm clusters each node together with its closest neighbors in bottom-up fashion. The output is a collection of trees, each of which represents a cluster. It iterates the clustering process for several steps, and outputs an affinity tree whose levels correspond to the hierarchy of the clusters. Affinity clustering is fast, simple, and scalable, and thus is useful for processing a large-scale relational graph.
|
| 91 |
+
|
| 92 |
+
The left panel in Figure 2 shows an example output of affinity clustering on a relational graph, with 3 iterations. The leaves represent videos and intermediate nodes at each level correspond to the clusters of the lower-level nodes. The clusters of the lowest level contain most similar videos. The higher the level is, the less similar videos within the cluster are. Sampling videos from the higher-level clusters decreases the average similarities between the sampled pairs.
|
| 93 |
+
|
| 94 |
+
# 3.3. Graph Clustering Metric Learning (GCML)
|
| 95 |
+
|
| 96 |
+
Smart Negative Sampling. Once we have the clustering results, the triplets are sampled using the relational graph
|
| 97 |
+
|
| 98 |
+
and the clusters. For each triplet, the anchor is randomly selected among all videos, and the positive is chosen among neighbors of the anchor on the relational graph. Instead of random sampling as in [25], we sample the negative using the cluster hierarchy in the affinity tree. For each anchor, we choose its sibling clusters (that share the same parent) at a desired level and sample the negatives from those clusters, as illustrated in Figure 2. This ensures that the sampled negatives are not too far from the anchor, and thus more informative for model training. As described in the previous section, we can choose the clusters at different levels in order to adjust the difficulty level of the sampled negatives. As an extreme, if we sample negatives from the lowest-level clusters and the cluster size is small, the sampled negatives will most likely be as similar as the sampled positives and thus are hardest negatives.
|
| 99 |
+
|
| 100 |
+
Training with Triplets. We follow the standard procedure for triplet loss optimization [25, 37]. The goal is to put a pair of relevant videos closer to each other in the embedding space while keeping the less related pairs farther. The embedding network optimizes the triplet loss, such that the distance between anchor and positive is smaller than the distance between anchor and negative:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\min \sum_ {i = 1} ^ {N} \left[ \| f \left(\mathbf {x} _ {i} ^ {a}\right) - f \left(\mathbf {x} _ {i} ^ {p}\right) \| ^ {2} - \| f \left(\mathbf {x} _ {i} ^ {a}\right) - f \left(\mathbf {x} _ {i} ^ {n}\right) \| ^ {2} + \alpha \right] _ {+}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
where $\mathbf{x}_i^a$ , $\mathbf{x}_i^p$ , and $\mathbf{x}_i^n$ are the input feature vectors of anchor, positive, and negative of the $i$ -th training triplet among $N$ , respectively, $f$ is the embedding network, and $\alpha$ is margin parameter for a hinge loss.
|
| 107 |
+
|
| 108 |
+
Similar to [25, 37], we use online semi-hard negative mining throughout the training. At each iteration, the negatives are re-sampled among the videos within each minibatch as the closest ones that are farther than the positives from the corresponding anchors. If the initially sampled smart negatives are useful, they will be consistently chosen as the semi-hard negatives during training.
|
| 109 |
+
|
| 110 |
+
# 3.4. Cluster Labels Classification (CLC)
|
| 111 |
+
|
| 112 |
+
An alternative way to utilize the graph clusters is to treat them as labels for classification. We propose to use the cluster to which each video belongs as its label and train a classification model, e.g., cross entropy loss with softmax function. In this case, the top layer output of the embedding network will be fed into an $n$ -way softmax classifier that will compute a distribution over the $n$ cluster IDs. During training, the network is tuned to predict the cluster ID where the video belongs to. At test time, the classification layer is discarded and only the embedding towers are used.
|
| 113 |
+
|
| 114 |
+
Classifying large number of classes is expensive and time consuming, as we could have millions of clusters from the graph. Instead of computing the full softmax classification, we use sampled softmax [15] to reduce computational
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 3. Network architecture of the embedding network.
|
| 118 |
+
|
| 119 |
+
costs. Specifically, a subset of classes are sampled in each step to compute the softmax loss during training.
|
| 120 |
+
|
| 121 |
+
The benefit of classification is that we do not need to sample hard negative examples within the mini-batch, which is replaced by sampling negative cluster labels. This removes the dependency on batch size as in triplet loss and it is relatively easier to scale to large number of negative sampled classes. On the other hand, the performance of the cluster classification models is highly dependent on the clustering quality. If the cluster size is too large, the model may not learn fine-grained distinction between samples; and if the cluster size is too small, the classifier may easily overfit to a few examples in the cluster, and thus can not learn useful embeddings.
|
| 122 |
+
|
| 123 |
+
# 4. Experiments
|
| 124 |
+
|
| 125 |
+
We conduct extensive experiments on real-world large-scale datasets to evaluate our methods on two video understanding tasks: related video retrieval and video annotation.
|
| 126 |
+
|
| 127 |
+
# 4.1. Network Architecture
|
| 128 |
+
|
| 129 |
+
Audio-visual Features. End-to-end video representation learning from raw signals is computationally prohibitive. To efficiently train a model on hundreds of millions of videos, we use audio-visual features extracted using pre-trained models, similarly to [25], illustrated in the left (Feature extractor) part of Figure 3.
|
| 130 |
+
|
| 131 |
+
To extract visual features, we first sub-sample the video frames at a rate of 1 frame per second. We then extract the ReLU outputs of the last hidden layer of Inception-v2 network [42], pre-trained on the JFT dataset [11], followed by PCA and whitening for dimension reduction into 1500. We apply average pooling over the processed features of all frames to generate the video-level features.
|
| 132 |
+
|
| 133 |
+
For audio features, we use an acoustic model with a modified version of ResNet-50 [10]. The audio signals are segmented into non-overlapping $960~\mathrm{ms}$ window, and then decomposed with a short-time Fourier transform with $25~\mathrm{ms}$
|
| 134 |
+
|
| 135 |
+
windows for every $10\mathrm{ms}$ . This results in a spectrogram integrated into 64 mel-spaced frequency bins. We extract features by fetching 100 of such segments into the ResNet, and aggregate them into video-level features by average pooling.
|
| 136 |
+
|
| 137 |
+
**Embedding Network.** Following [25], our embedding networks consist of two fully-connected hidden layers with dimension of 4000 and 256. We use two separate towers, each of which takes visual and audio features, respectively. The outputs of the two towers are aggregated by elementwise multiplications, followed by $L_{2}$ normalization. The network architecture is shown in Figure 3. The embedding network is trained to optimize triplet loss (Section 3.3) or cross entropy loss (Section 3.4).
|
| 138 |
+
|
| 139 |
+
# 4.2. Experimental Settings
|
| 140 |
+
|
| 141 |
+
We compare our two proposed models, Graph Clustering Metric Learning (GCML; Section 3.3) and Cluster Labels Classification (CLC; Section 3.4), against the state-of-the-art video metric learning method CDML [25]. CDML is equivalent to our first approach, but randomly choosing the negatives instead of the smart triplet generation.
|
| 142 |
+
|
| 143 |
+
Training Dataset. We construct the relational graph of videos from user signals; specifically, an edge in the graph exists if a pair of videos are frequently co-watched by multiple users. The videos are randomly split into training and test partition with a 7:3 ratio. For the triplet loss models (CDML and GCML), we sample up to 350M publicly available videos and generate up to 460M triplets from the $70\%$ training partition of them.
|
| 144 |
+
|
| 145 |
+
We apply 3 iterations of affinity clustering on the relational graph (See Figure 2). We use L0 clusters to sample triplets for GCML models, except for triplet difficulty level experiments (Table 2). For the CLC model, we use the 14M L0 clusters, each selecting up to 50 videos to avoid class imbalance, resulting in about 405M videos in total.
|
| 146 |
+
|
| 147 |
+
Hyperparameters. The CDML and GCML models are trained using semi-hard negative mining [37, 25] within a mini-batch of 9600 triplets, where each negative is reassigned as the hardest among the ones that are as close as or farther than the positive to the anchor. We apply triplet loss margin of 0.5. The initial learning rate is set to 0.1, with decay by 0.98 for every 300,000 steps throughout 1M training steps, using asynchronous-SGD with 150 worker replicas on CPUs with RMSProp optimizer. The CLC model is trained with initial learning rate of 300, learning rate decay of 0.5 for every 200,000 steps with batch size 512 on TPUv3 with 32 cores with SGD optimizer. At each iteration, 200,000 classes are sampled for classification.
|
| 148 |
+
|
| 149 |
+
# 4.3. Related Video Retrieval
|
| 150 |
+
|
| 151 |
+
We first evaluate the performance of models on related video retrieval, which is highly relevant to video-to-video
|
| 152 |
+
|
| 153 |
+
recommendations. In this task, related videos are identified among candidates for a given query video $q$ . The relatedness between the query and the candidates is defined by the relational graph.
|
| 154 |
+
|
| 155 |
+
Based on our embedding network $f$ , we extract the embeddings for the query and candidate videos. For each query, we compute the similarity between the query video and each of the candidate videos, and rank them by the estimated similarity. The similarity between a pair is defined as the cosine similarity between the embeddings of the two:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\cos \left(f \left(\mathbf {v} _ {1}\right), f \left(\mathbf {v} _ {2}\right)\right) = f \left(\mathbf {v} _ {1}\right) ^ {\top} f \left(\mathbf {v} _ {2}\right) \tag {1}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
where $\mathbf{v}_i$ represents the content features of the video $i$ . Since we normalize the embeddings, the cosine similarity is equivalent to the dot product. When evaluating the retrieval performance, we use top $k$ candidate videos with largest cosine similarity to the query.
|
| 162 |
+
|
| 163 |
+
# 4.3.1 Evaluation Protocol
|
| 164 |
+
|
| 165 |
+
For evaluation, we use videos that are not seen during the training for queries and candidates. As proposed in [25], this setting simulates cold-start video recommendation, where the queries and retrievals are drawn from fresh videos. Note that this setting provides fair comparison scheme that guarantees the test videos are unseen by all models trained on differently sampled videos.
|
| 166 |
+
|
| 167 |
+
The evaluation set is composed of 1.3M query videos and the database set is constructed as the union of the related videos in the query set. Each query video has on average 11 related videos in the database set, which has about 15M unique videos in total.
|
| 168 |
+
|
| 169 |
+
Evaluation Metrics. The retrieval performance is evaluated using two different ranking metrics:
|
| 170 |
+
|
| 171 |
+
1) Normalized Discounted Cumulative Gain (NDCG) measures the ranking quality using the relevancy of each retrieved item and its order in the list. Discounted cumulative gain for top- $k$ retrieved items (DCG@ $k$ ) is
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
D C G @ k = \sum_ {i = 1} ^ {k} \frac {2 ^ {r e l _ {i}} - 1}{\log_ {2} (i + 1)}, \tag {2}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where $i$ is the position of each item in the list and $rel_i \in \{0,1\}$ is the binary indicator of the relevancy of the $i$ -th item to the query. NDCG is computed as DCG normalized by the maximum possible DCG through position $k$ , which happens when the list of top- $k$ retrieved items matches the correct order of relevancy to the query. We use $k = 60$ in our experiments.
|
| 178 |
+
|
| 179 |
+
2) Mean Average Precision (MAP) measures the accuracy of ranking by computing the area under the precision-recall curve:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
M A P = \frac {1}{| Q |} \sum_ {q \in Q} \int_ {0} ^ {1} P _ {q} (r) d r \approx \frac {1}{| Q |} \sum_ {q \in Q} \sum_ {i = 1} ^ {k} P _ {q} (i) \Delta r (i)
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
<table><tr><td>Method</td><td>Training set</td><td>MAP</td><td>NDCG@60</td></tr><tr><td rowspan="2">CDML [25]</td><td>150M</td><td>2.85%</td><td>6.05%</td></tr><tr><td>458M</td><td>3.34%</td><td>7.07%</td></tr><tr><td rowspan="2">GCML (ours)</td><td>45M</td><td>3.57%</td><td>7.19%</td></tr><tr><td>420M</td><td>3.74%</td><td>7.66%</td></tr><tr><td>CLC (ours)</td><td>405M</td><td>3.41%</td><td>6.99%</td></tr></table>
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 4. Related video retrieval performance with different batch sizes.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
|
| 192 |
+
where $P_{q}(r)$ is precision for the query $q$ as a function of recall $r$ . This integral is approximated to be a finite sum over all possible positions in the list of 60 retrieved videos.
|
| 193 |
+
|
| 194 |
+
Both NDCG and MAP measure the relevance of ranked items to the query, but NDCG puts more emphasis on the higher ranks by exponentially decaying the weights, while MAP does quadratically.
|
| 195 |
+
|
| 196 |
+
# 4.3.2 Results and Discussion
|
| 197 |
+
|
| 198 |
+
We first compare the performance of GCML and CDML models. Table 1 compares MAP and NDCG@60 scores for different models. Using the same batch size of 9600 and the similar number of training triplets $(400\mathrm{M}+)$ , GCML models outperform CDML models. We note that the GCML model trained with less triplets (45M) outperform the CDML baseline trained with more triplets (150M-458M), producing up to $25\%$ MAP and $18\%$ NDCG relative improvement. This concludes that the smart negatives are more informative and efficient than the random negatives. In addition, using more training triplets does not benefit GCML model $(6.5\% /7.9\%)$ increase in MAP/NDCG from 45M to 420M as much as CDML $(17.2\% /16.8\%)$ increase in MAP/NDCG from 150M to 458M), indicating that GCML models are already efficiently utilizing much information even with small training data. Our second model, CLC is competitive to CDML models trained on similar size of training set, while not being dependent on the training batch size.
|
| 199 |
+
|
| 200 |
+
Batch size. As described in Section 1, the online semi-hard negative mining inherently causes the dependence of performance on the number of negative candidates within the mini-batch. We thus compare the performance of our GCML models trained with various batch sizes against CDML (Figure 4). We observe that both GCML and CDML yield better performance when trained with larger batch size. Yet, GCML consistently outperforms CDML for all batch sizes.
|
| 201 |
+
|
| 202 |
+
Table 1. Performance on related video retrieval task
|
| 203 |
+
|
| 204 |
+
<table><tr><td>Level of Difficulty</td><td>MAP</td><td>NDCG@60</td></tr><tr><td>GCML (Easy; 45M)</td><td>3.37%</td><td>6.64%</td></tr><tr><td>GCML (Medium; 45M)</td><td>3.43%</td><td>6.91%</td></tr><tr><td>GCML (Hard; 45M)</td><td>3.57%</td><td>7.19%</td></tr><tr><td>CDML [25] (150M)</td><td>2.85%</td><td>6.05%</td></tr></table>
|
| 205 |
+
|
| 206 |
+
Table 2. Related video retrieval performance with different difficulty levels of sampled smart negatives.
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
Figure 5. Usage ratio of the assigned negatives. Our smart negatives are used more frequently compared to random negatives.
|
| 210 |
+
|
| 211 |
+
Difficulty of Negatives. To understand how the cluster quality affects the performance, we train and evaluate the GCML models trained with triplets sampled from different difficulty levels. For this experiment, we use lighter setting (batch size of 2048 and training on smaller training set in Table 1) on TPU for speed. The easy, medium, and hard levels correspond to the smart negatives sampled from L2, L1, and L0 clusters (see Figure 2), respectively. As the later round of affinity clustering yields larger clusters, the negatives sampled from easier clusters are less similar to the anchors than the negatives sampled from harder ones.
|
| 212 |
+
|
| 213 |
+
As shown in Table 2, the harder the triplets are, the better the MAP and NDCG scores are. We also note that, regardless of the difficulty level of training triplets, all the GCML models outperform the CDML baseline.
|
| 214 |
+
|
| 215 |
+
# 4.3.3 Analysis of Negative Sampling
|
| 216 |
+
|
| 217 |
+
We further analyze how the proposed smart negative sampling benefits the video metric learning.
|
| 218 |
+
|
| 219 |
+
Usage Ratio of Sampled Negatives. To understand how the sampled negatives are used, we measure the ratio of those assigned negatives actually being used for training. As the models are trained using online semi-hard negative mining, a new semi-hard negative is chosen among all the candidates within the mini-batch for each anchor-positive pair at every step. The semi-hard negative mining, by definition, chooses the hardest among the negatives that are farther than the positive from the anchor. Therefore, the more the negatives originally assigned to the anchor-positive pairs are chosen as semi-hard, the more useful those assigned negatives are for learning.
|
| 220 |
+
|
| 221 |
+
Figure 5 shows the ratio of the assigned negatives being
|
| 222 |
+
|
| 223 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Margin</td></tr><tr><td>No Online Mining (Assigned Neg.)</td><td>w/ Online Mining (Semi-hard Neg.)</td></tr><tr><td>CDML [25]</td><td>0.62 ~ 0.76</td><td>0.01 ~ 0.02</td></tr><tr><td>GCML</td><td>-0.08 ~ 0.05</td><td>0.015 ~ 0.02</td></tr></table>
|
| 224 |
+
|
| 225 |
+
Table 3. Margin of assigned (random or smart) negatives vs. semi-hard negatives. Each range corresponds to $+/-$ one standard deviation from the mean.
|
| 226 |
+
|
| 227 |
+
chosen as semi-hard throughout the training. We observe that the usage ratio is much larger with GCML than with CDML, suggesting the effectiveness of our cluster-based negative sampling. The usage ratio for CDML is close to 1/batch size, meaning that randomly assigned initial negatives are rarely used throughout training.
|
| 228 |
+
|
| 229 |
+
We also note that the usage ratio of the smart negatives increases as training proceeds. This indicates that the model starts learning from easier negatives at earlier stage, and gradually moves towards harder negatives and thus uses the assigned smart negatives more.
|
| 230 |
+
|
| 231 |
+
Margin Analysis. The effectiveness of smart negatives can also be found in the analysis of the triplet relationships. We quantify the difficulty level of a negative for each anchor-positive pair as the margin:
|
| 232 |
+
|
| 233 |
+
$$
|
| 234 |
+
\operatorname {m a r g i n} = \left\| f \left(\mathbf {x} ^ {a}\right) - f \left(\mathbf {x} ^ {n}\right) \right\| ^ {2} - \left\| f \left(\mathbf {x} ^ {a}\right) - f \left(\mathbf {x} ^ {p}\right) \right\| ^ {2} \tag {3}
|
| 235 |
+
$$
|
| 236 |
+
|
| 237 |
+
where $a, p, n$ represent anchor, positive, and negative, respectively. The margin measures how farther the anchor is from the negative compared from the positive. Closer negatives from the anchor are generally harder to distinguish, and thus allow the model to learn more minuscule partitions. We compare the margin values for the negatives originally assigned for the anchor-positive pairs and the negatives actually chosen as semi-hard. If the margin for the assigned negative is within the range of the margin for semi-hard negatives, it suggests that the assigned negatives are at the right level of difficulty and thus are useful candidates even if they were not actually chosen.
|
| 238 |
+
|
| 239 |
+
Table 3 summarizes the margin values of the assigned and semi-hard negatives for GCML and CDML. We observe that the margin values of smart negatives are within the range of semi-hard negatives. On the other hand, most of the random negatives of CDML are far from the semi-hard negatives, indicating that the random negatives are too easy and thus not being chosen as semi-hard. This result is consistent with the findings in usage ratio analysis.
|
| 240 |
+
|
| 241 |
+
Discussion. The two analyses above as a whole suggest that the smart negatives allow an efficient learning via providing more informative triplets. We find that the smart negatives are the right candidates and actually chosen as semi-hard throughout the training. Combined with the better performance of the GCML, we conclude that using informative training samples is important for learning good representations.
|
| 242 |
+
|
| 243 |
+
<table><tr><td>Samples per cluster</td><td>MAP</td><td>NDCG@60</td></tr><tr><td>20</td><td>3.42%</td><td>6.86%</td></tr><tr><td>50</td><td>3.43%</td><td>6.80%</td></tr><tr><td>100</td><td>3.41%</td><td>6.83%</td></tr><tr><td>1,000</td><td>3.24%</td><td>6.58%</td></tr></table>
|
| 244 |
+
|
| 245 |
+
Table 4. Different number of sampled videos per cluster in CLC.
|
| 246 |
+
|
| 247 |
+
Interestingly, we observe that GCML does not perform well without online semi-hard negative mining, even with the more informative triplets. One possible explanation is that it is also important to learn from easier negatives at the early stage of training. Figure 5 suggests that the smart negatives are too hard for a model at the beginning, and chosen only after it has been trained for few iterations. This observation points to a possible improvement via curriculum learning. We can mimic the online semi-hard negative mining by training the models with different difficulty levels of triplets, i.e., starting from easy to hard ones. If we can adjust the right levels of triplets, we will be able to train better models even without online mining.
|
| 248 |
+
|
| 249 |
+
# 4.3.4 Sampling in Cluster Classification
|
| 250 |
+
|
| 251 |
+
We limit the maximum number of sampled videos per cluster. As the clusters obtained from affinity clustering may be highly imbalanced in size, the number of samples per cluster is an important hyper-parameter to tune. If this is too large, the training set would bias towards larger clusters as they contain more examples. This could potentially hurt the embedding quality as it focuses on coarse-grained relationship between videos during training. If too few videos are sampled per cluster, the training set size would become very small and may fail to learn good representations.
|
| 252 |
+
|
| 253 |
+
We train CLC models on L1 cluster labels with different number of sampled videos per cluster (Table 4). Sampling more videos per cluster does not translate to better retrieval performance, despite the increase of the total number of videos in the training set. When the number of videos per cluster is too large (e.g. 1,000), the retrieval performance drops significantly, suggesting the model cannot learn fine-grained similarities of videos from the large clusters.
|
| 254 |
+
|
| 255 |
+
We also explore how the number of sampled classes affects the embedding quality, as shown in Table 5. Sampling more classes would produce better approximation of the original softmax classification, at a higher computational cost during training. We found that the retrieval performance saturates at about 200,000 sampled classes.
|
| 256 |
+
|
| 257 |
+
# 4.4. Video Annotation
|
| 258 |
+
|
| 259 |
+
The goal of video annotation task is to predict one or more labels for a given video. We evaluate how useful the proposed embeddings are on two public video classification datasets: YouTube-8M [1] and Sports-1M [17].
|
| 260 |
+
|
| 261 |
+
<table><tr><td>Sampled classes</td><td>MAP</td><td>NDCG@60</td></tr><tr><td>10,000</td><td>3.21%</td><td>6.53%</td></tr><tr><td>50,000</td><td>3.31%</td><td>6.60%</td></tr><tr><td>200,000</td><td>3.42%</td><td>6.86%</td></tr><tr><td>400,000</td><td>3.42%</td><td>6.84%</td></tr></table>
|
| 262 |
+
|
| 263 |
+
Table 5. Different number of sampled class for training cluster labeling model. Sampling 200,000 labels is enough for good performance.
|
| 264 |
+
|
| 265 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="2">Embedding only</td><td colspan="2">w/ Audio-visual</td></tr><tr><td>GAP</td><td>MAP</td><td>GAP</td><td>MAP</td></tr><tr><td colspan="5">2018 Challenge (YouTube-8M features)</td></tr><tr><td>KANU [19]</td><td>-</td><td>-</td><td>88.5%</td><td>58.3%</td></tr><tr><td>YT8M-T [43]</td><td>-</td><td>-</td><td>88.7%</td><td>58.8%</td></tr><tr><td>PhoneixLin [27]</td><td>-</td><td>-</td><td>88.7%</td><td>59.7%</td></tr><tr><td>Samsung AI [35]</td><td>-</td><td>-</td><td>88.7%</td><td>58.4%</td></tr><tr><td>Next top GB [39]</td><td>-</td><td>-</td><td>89.0%</td><td>59.6%</td></tr><tr><td colspan="5">Audio-visual features (Section 4.1)</td></tr><tr><td>Audio-visual only</td><td>-</td><td>-</td><td>89.0%</td><td>55.5%</td></tr><tr><td>CDML [25] (150M)</td><td>86.6%</td><td>51.7%</td><td>89.0%</td><td>55.7%</td></tr><tr><td>GCML (45M)</td><td>86.9%</td><td>52.5%</td><td>89.1%</td><td>56.0%</td></tr><tr><td>CDML [25] (458M)</td><td>88.4%</td><td>55.5%</td><td>89.4%</td><td>57.0%</td></tr><tr><td>GCML (420M)</td><td>88.3%</td><td>55.5%</td><td>89.4%</td><td>57.1%</td></tr><tr><td>CLC</td><td>87.9%</td><td>54.6%</td><td>89.2%</td><td>56.5%</td></tr></table>
|
| 266 |
+
|
| 267 |
+
Annotation Model. We train a video classification model on top of the embeddings, and evaluate the performance of the annotation model on a held-out set. The annotation model consists of a 4096-dimensional fully connected layer followed by a multi-label classifier. We use a Mixture of Experts (MoE) model [16] with 5 mixtures as the classifier. The model is trained with ADAM optimizer with initial learning rate of 0.005 and batch size 512. We use a half-period cosine learning rate decay schedule [29] to decrease the learning rate gradually to 0 at 100,000 steps.
|
| 268 |
+
|
| 269 |
+
We train the annotation models with two different input types: the embeddings from the proposed models (e.g., GCML) with and without the audio-visual features extracted as described in 4.1.
|
| 270 |
+
|
| 271 |
+
YouTube-8M. YouTube-8M [1] provides a video classification dataset of $6.1\mathrm{M}+$ YouTube videos and video-level labels from 3,862 knowledge graph entities. In this experiment, we train the annotation model on the full YouTube-8M (ver. 2018) training set and evaluate the classification performance on the full validation set. We follow the standard evaluation protocol and report the Global Average Precision (GAP) and Mean Average Precision (MAP).
|
| 272 |
+
|
| 273 |
+
Table 6 shows the GAP and MAP scores on YouTube-8M classification task. When training on small datasets (45–150M), GCML outperforms CDML consistently on both GAP and MAP, similarly to the related video retrieval results. When training on large $(400\mathrm{M}+)$ datasets, however,
|
| 274 |
+
|
| 275 |
+
Table 6. Classification performance on YouTube-8M. The numbers in parenthesis are the number of triplets used for training.
|
| 276 |
+
|
| 277 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="2">Embedding only</td><td colspan="2">w/ Audiovisual</td></tr><tr><td>Hit@1</td><td>Hit@5</td><td>Hit@1</td><td>Hit@5</td></tr><tr><td>Audio-visual only</td><td>-</td><td>-</td><td>70.0%</td><td>86.3%</td></tr><tr><td>CDML [25] (150M)</td><td>67.0%</td><td>86.4%</td><td>70.8%</td><td>87.7%</td></tr><tr><td>GCML (45M)</td><td>68.7%</td><td>87.5%</td><td>71.4%</td><td>88.3%</td></tr><tr><td>CDML [25] (458M)</td><td>71.0%</td><td>89.1%</td><td>72.2%</td><td>88.7%</td></tr><tr><td>GCML (420M)</td><td>71.7%</td><td>89.5%</td><td>72.6%</td><td>89.2%</td></tr><tr><td>CLC</td><td>71.3%</td><td>89.4%</td><td>72.2%</td><td>88.9%</td></tr></table>
|
| 278 |
+
|
| 279 |
+
Table 7. Classification performance on Sports-1M. The numbers in parenthesis are the number of triplets used for training.
|
| 280 |
+
|
| 281 |
+
GCML and CDML perform on par. When used in conjunction with audio-visual features, both CDML and GCML improve over the audio-visual-only baseline.
|
| 282 |
+
|
| 283 |
+
We also compare the proposed methods with the top performers in the 2nd YouTube-8M challenge [26]. The proposed methods yield better results when concatenated with the audio-visual features. The GCML and CDML models yield the highest GAP scores among all including the top performers in [26]. The proposed methods show relatively lower MAP scores compared to the top performers in [26], probably because training not only on the video-level features but also on frame-level features is critical for the MAP scores. Note that our method is not directly comparable to the challenge results due to the difference in training data and features.
|
| 284 |
+
|
| 285 |
+
Sports-1M. Sports-1M dataset [17] consists of about 1M YouTube videos with 487 classes of sports. We train the annotation model on the full training set and evaluate on the validation set, and report Hit@1 and Hit@5 in this dataset as proposed in [17]. As shown in Table 7, our GCML features outperform CDML, both with and without audiovisual features.
|
| 286 |
+
|
| 287 |
+
# 5. Conclusion
|
| 288 |
+
|
| 289 |
+
In this work, we propose two novel methods that learn video representations from pairwise similarity structure via graph clustering: Graph Clustering Metric Learning (GCML), using ranking loss with smart triplet mining, and Cluster Labels Classification (CLC), modeling it as a pseudo-classification problem with cluster labels. We observe that both methods outperform the baselines in video retrieval and annotation tasks. With more detailed analysis, we observe that the proposed mining strategy allows the models to learn from more informative training examples.
|
| 290 |
+
|
| 291 |
+
As a future work, we may improve the performance by adjusting the difficulty level of smart negatives at the right level with more thorough parameter search for clustering. Curriculum learning may be another option for further improvement, such that the model can learn from easier examples first, then move toward harder examples. We could also investigate how the clustering algorithms and the number of clusters affect the representation learning quality in CLC.
|
| 292 |
+
|
| 293 |
+
# References
|
| 294 |
+
|
| 295 |
+
[1] Sami Abu-El-Haija, Nisarg Kothari, Joonseok Lee, Paul Natsev, George Toderici, Balakrishnan Varadarajan, and Sudheendra Vijayanarasimhan. YouTube-8M: A large-scale video classification benchmark. arXiv:1609.08675, 2016. 7, 8
|
| 296 |
+
[2] Unaiza Ahsan, Rishi Madhok, and Irfan Essa. Video jigsaw: Unsupervised learning of spatiotemporal context for video action recognition. In WACV, 2019. 2
|
| 297 |
+
[3] MohammadHossein Bateni, Soheil Behnezhad, Mahsa Derakhshan, MohammadTaghi Hajiaghayi, Raimondas Kiveris, Silvio Lattanzi, and Vahab Mirrokni. Affinity clustering: Hierarchical clustering at scale. In Advances in Neural Information Processing Systems (NIPS), 2017. 3
|
| 298 |
+
[4] Qiong Cao, Yiming Ying, and Peng Li. Similarity metric learning for face recognition. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2013. 2
|
| 299 |
+
[5] Weihua Chen, Xiaotang Chen, Jianguo Zhang, and Kaiqi Huang. Beyond triplet loss: a deep quadruplet network for person re-identification. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
|
| 300 |
+
[6] Yin Cui, Feng Zhou, Yuanqing Lin, and Serge Belongie. Fine-grained categorization and dataset bootstrapping using deep metric learning with humans in the loop. In Proc. of the IEEE conference on computer vision and pattern recognition (CVPR), 2016. 2
|
| 301 |
+
[7] Yun Fu, Zhu Li, Thomas S Huang, and Aggelos K Katsaggellos. Locally adaptive subspace and similarity metric learning for visual data clustering and retrieval. Computer Vision and Image Understanding, 110(3):390-402, 2008. 2
|
| 302 |
+
[8] Weifeng Ge. Deep metric learning with hierarchical triplet loss. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 2
|
| 303 |
+
[9] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv:1703.07737, 2017. 2
|
| 304 |
+
[10] Shawn Hershey, Sourish Chaudhuri, Daniel PW Ellis, Jort F Gemmeke, Aren Jansen, R Channing Moore, Manoj Plakal, Devin Platt, Rif A Saurous, Bryan Seybold, et al. CNN architectures for large-scale audio classification. In Proc. of the IEEE international conference on acoustics, speech and signal processing (ICASSP), 2017. 4
|
| 305 |
+
[11] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015. 4
|
| 306 |
+
[12] Chen Huang, Chen Change Loy, and Xiaou Tang. Local similarity-aware deep feature embedding. In Advances in neural information processing systems (NIPS), 2016. 2
|
| 307 |
+
[13] Seong Jae Hwang, Joonseok Lee, Balakrishnan Varadarajan, Ariel Gordon, Zheng Xu, and Apostol Paul Natsev. Large-scale training framework for video annotation. In Proc. of the ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2019. 2
|
| 308 |
+
[14] Ahmet Iscen, Giorgos Tolias, Yannis Avrithis, and Ondrej Chum. Label propagation for deep semi-supervised learning. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 3
|
| 309 |
+
|
| 310 |
+
[15] Sébastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary for neural machine translation. arXiv:1412.2007, 2014. 4
|
| 311 |
+
[16] Michael I Jordan and Robert A Jacobs. Hierarchical mixtures of experts and the em algorithm. Neural computation, 6(2):181-214, 1994. 8
|
| 312 |
+
[17] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In Proc. of the IEEE conference on Computer Vision and Pattern Recognition (CVPR), 2014. 7, 8
|
| 313 |
+
[18] Dahun Kim, Donghyeon Cho, and In So Kweon. Self-supervised video representation learning with space-time cubic puzzles. In Pro. of the AAAI Conference on Artificial Intelligence, 2019. 2
|
| 314 |
+
[19] Eun-Sol Kim, Kyoung-Woon On, Jongseok Kim, Yu-Jung Heo, Seong-Ho Choi, Hyun-Dong Lee, and Byoung-Tak Zhang. Temporal attention mechanism with conditional inference for large-scale multi-label video classification. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 315 |
+
[20] Giorgos Kordopatis-Zilos, Symeon Papadopoulos, Ioannis Patras, and Yiannis Kompatsiaris. Near-duplicate video retrieval with deep metric learning. In Proc. of the IEEE International Conference on Computer Vision (CVPR), 2017. 2
|
| 316 |
+
[21] Ranjay Krishna, Kenji Hata, Frederic Ren, Li Fei-Fei, and Juan Carlos Niebles. Dense-captioning events in videos. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 317 |
+
[22] Marc T Law, Raquel Urtasun, and Richard S Zemel. Deep spectral clustering learning. In Proc. of the International Conference on Machine Learning (ICML), 2017. 2
|
| 318 |
+
[23] Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In ICML Workshop on Challenges in Representation Learning, volume 3, page 2, 2013. 3
|
| 319 |
+
[24] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 320 |
+
[25] Joonseok Lee, Sami Abu-El-Haija, Balakrishnan Varadarajan, and Apostol Paul Natsev. Collaborative deep metric learning for video understanding. In Proc. of the ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2018. 1, 2, 4, 5, 6, 7, 8
|
| 321 |
+
[26] Joonseok Lee, Walter Reade, Rahul Sukthankar, George Toderici, et al. The 2nd Youtube-8M large-scale video understanding challenge. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 322 |
+
[27] Rongcheng Lin, Jing Xiao, and Jianping Fan. NextVLAD: An efficient neural network to aggregate frame-level features for large-scale video classification. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 323 |
+
[28] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherical face: Deep hypersphere embedding for face recognition. In Proc. of the IEEE conference on computer vision and pattern recognition (CVPR), 2017. 2
|
| 324 |
+
|
| 325 |
+
[29] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016. 8
|
| 326 |
+
[30] Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv:1511.05440, 2015. 2
|
| 327 |
+
[31] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In Proc. of the European Conference on Computer Vision (ECCV), 2016. 2
|
| 328 |
+
[32] Yair Movshovitz-Attias, Alexander Toshev, Thomas K Leung, Sergey Ioffe, and Saurabh Singh. No fuss distance metric learning using proxies. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 329 |
+
[33] Hyun Oh Song, Stefanie Jegelka, Vivek Rathod, and Kevin Murphy. Deep metric learning via facility location. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
|
| 330 |
+
[34] Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
|
| 331 |
+
[35] Pavel Ostyakov, Elizaveta Logacheva, Roman Suvorov, Vladimir Aliev, Gleb Sterkin, Oleg Khomenko, and Sergey I Nikolenko. Label denoising with large ensembles of heterogeneous neural networks. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 332 |
+
[36] Qi Qian, Lei Shang, Baigui Sun, Juhua Hu, Hao Li, and Rong Jin. Softtriple loss: Deep metric learning without triplet sampling. arXiv:1909.05235, 2019. 2
|
| 333 |
+
[37] Florian Schroff, Dmitry Kalenichenko, and James Philbin. FaceNet: A unified embedding for face recognition and clustering. In Proc. of the IEEE conference on computer vision and pattern recognition (CVPR), 2015. 1, 2, 4, 5
|
| 334 |
+
[38] Weiwei Shi, Yihong Gong, Chris Ding, Zhiheng MaXiaoyu Tao, and Nanning Zheng. Transductive semi-supervised deep learning using min-max features. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 3
|
| 335 |
+
[39] Miha Skalic and David Austin. Building a size constrained predictive model for video classification. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 336 |
+
[40] Kihyuk Sohn. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems (NIPS), 2016. 2
|
| 337 |
+
[41] Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. Videobert: A joint model for video and language representation learning. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 338 |
+
[42] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 4
|
| 339 |
+
[43] Yongyi Tang, Xing Zhang, Lin Ma, Jingwen Wang, Shaoxiang Chen, and Yu-Gang Jiang. Non-local NetVLAD encoding for video classification. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 8
|
| 340 |
+
|
| 341 |
+
[44] Makarand Tapaswi, Marc T Law, and Sanja Fidler. Video face clustering with unknown number of clusters. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2019. 2
|
| 342 |
+
[45] Evgeniya Ustinova and Victor Lempitsky. Learning deep embeddings with histogram loss. In Advances in Neural Information Processing Systems, 2016. 2
|
| 343 |
+
[46] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In Advances in Neural Information Processing Systems (NIPS), 2016. 2
|
| 344 |
+
[47] Feng Wang, Jian Cheng, Weiyang Liu, and Hajun Liu. Additive margin softmax for face verification. IEEE Signal Processing Letters, 25(7):926-930, 2018. 2
|
| 345 |
+
[48] Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, and Wei Liu. Cosface: Large margin cosine loss for deep face recognition. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 3
|
| 346 |
+
[49] Jian Wang, Feng Zhou, Shilei Wen, Xiao Liu, and Yuanqing Lin. Deep metric learning with angular loss. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 347 |
+
[50] Xiaolong Wang, Kaiming He, and Abhinav Gupta. Transitive invariance for self-supervised visual representation learning. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 348 |
+
[51] Xinshao Wang, Yang Hua, Elyor Kodirov, Guosheng Hu, Romain Garnier, and Neil M Robertson. Ranked list loss for deep metric learning. arXiv:1903.03238, 2019. 2
|
| 349 |
+
[52] Kilian Q Weinberger and Lawrence K Saul. Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10(Feb):207-244, 2009. 2
|
| 350 |
+
[53] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In Proc. of the European conference on computer vision (ECCV), 2016. 2
|
| 351 |
+
[54] Chao-Yuan Wu, R Manmatha, Alexander J Smola, and Philipp Krahenbuhl. Sampling matters in deep embedding learning. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 352 |
+
[55] Baosheng Yu and Dacheng Tao. Deep metric learning with tuplem margin loss. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2019. 2
|
| 353 |
+
[56] Yuhui Yuan, Kuiyuan Yang, and Chao Zhang. Hard-aware deeply cascaded embedding. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
|
| 354 |
+
[57] Andrew Zhai, Hao-Yu Wu, and US San Francisco. Classification is a strong baseline for deep metric learning. In Proc. of the British Machine Vision Conference (BMVC), 2019. 3
|
| 355 |
+
[58] Xiaofan Zhang, Feng Zhou, Yuanqing Lin, and Shaoting Zhang. Embedding label structures for fine-grained feature representation. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
|
| 356 |
+
[59] Luowei Zhou, Yingbo Zhou, Jason J Corso, Richard Socher, and Caiming Xiong. End-to-end dense video captioning with masked transformer. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
|
largescalevideorepresentationlearningviarelationalgraphclustering/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2132e04e77bf0b50ec3a7ae0835211df2c962328f7d054f74f6def63182e33b8
|
| 3 |
+
size 346871
|
largescalevideorepresentationlearningviarelationalgraphclustering/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52bec7cfa0511c24731c012b441963a07462366f390592fa3c78b3db4fdf4b71
|
| 3 |
+
size 382075
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ceaa9f905744e8e06a7da4393c51ca1aa43163d745e6eeceedd74d324fdc1ac1
|
| 3 |
+
size 81103
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2679a993f4c75816e9e1508105155fd3fc3ad929ee331bef0fbc60bdd5351f25
|
| 3 |
+
size 100465
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0cc78917b7a331db120522c6b8f4a015ccf9edf8eb9c699231b963b89306cd3
|
| 3 |
+
size 1269146
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/full.md
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LatentFusion: End-to-End Differentiable Reconstruction and Rendering for Unseen Object Pose Estimation
|
| 2 |
+
|
| 3 |
+
Keunhong Park $^{1,2*}$ Arsalan Mousavian $^{2}$ Yu Xiang $^{2}$ Dieter Fox $^{1,2}$ $^{1}$ University of Washington $^{2}$ NVIDIA
|
| 4 |
+
|
| 5 |
+

|
| 6 |
+
1. Reconstruction and Rendering
|
| 7 |
+
Figure 1: We present an end-to-end differentiable reconstruction and rendering pipeline. We use this pipeline to perform pose estimation on unseen objects using simple gradient updates in a render-and-compare fashion.
|
| 8 |
+
|
| 9 |
+

|
| 10 |
+
2. Pose Estimation
|
| 11 |
+
|
| 12 |
+
# Abstract
|
| 13 |
+
|
| 14 |
+
Current 6D object pose estimation methods usually require a 3D model for each object. These methods also require additional training in order to incorporate new objects. As a result, they are difficult to scale to a large number of objects and cannot be directly applied to unseen objects.
|
| 15 |
+
|
| 16 |
+
We propose a novel framework for 6D pose estimation of unseen objects. We present a network that reconstructs a latent 3D representation of an object using a small number of reference views at inference time. Our network is able to render the latent 3D representation from arbitrary views. Using this neural renderer, we directly optimize for pose given an input image. By training our network with a large number of 3D shapes for reconstruction and rendering, our network generalizes well to unseen objects. We present a new dataset for unseen object pose estimation-MOPED. We evaluate the performance of our method for unseen object pose estimation on MOPED as well as the ModelNet and LINEMOD datasets. Our method performs competitively to supervised methods that are trained on those objects. Code and data will be available at https://keunhong.com/publications/latentfusion/.
|
| 17 |
+
|
| 18 |
+
# 1. Introduction
|
| 19 |
+
|
| 20 |
+
The pose of an object defines where it is in space and how it is oriented. An object pose is typically defined by a 3D orientation (rotation) and translation comprising six degrees of freedom (6D). Knowing the pose of an object is
|
| 21 |
+
|
| 22 |
+
crucial for any application that involves interacting with real world objects. For example, in order for a robot to manipulate objects it must be able to reason about the pose of the object. In augmented reality, 6D pose estimation enables virtual interaction and re-rendering of real world objects.
|
| 23 |
+
|
| 24 |
+
In order to estimate the 6D pose of objects, current state-of-the-art methods [49, 8, 45] require a 3D model for each object. Methods based on renderings [42] usually need high quality 3D models typically obtained using 3D scanning devices. Although modern 3D reconstruction and scanning techniques such as [26] can generate 3D models of objects, they typically require significant effort. It is easy to see how building a 3D model for every object is an infeasible task.
|
| 25 |
+
|
| 26 |
+
Furthermore, existing pose estimation methods require extensive training under different lighting conditions and occlusions. For methods that train a single network for multiple objects [49], the pose estimation accuracy drops significantly with the increase in the number of objects. This is due to large variation of object appearances depending on the pose. To remedy this mode of degradation, some approaches train a separate network for each object [42, 41, 8]. This approach is not scalable to a large number of objects. Regardless of using a single or multiple networks, all model-based methods require extensive training for unseen test objects that are not in the training set.
|
| 27 |
+
|
| 28 |
+
In this paper, we investigate the problem of constructing a 3D object representations for 6D object pose estimation without 3D models and without extra training for unseen objects during test time. The core of our method is a novel neural network that takes a set of reference RGB images of a target object with known poses, and internally builds a 3D
|
| 29 |
+
|
| 30 |
+
representation of the object. Using the 3D representation, the network is able to render arbitrary views of the object. To estimate object pose, the network compares the input image with its rendered images in a gradient descent fashion to search for the best pose where the rendered image matches the input image. Applying the network to an unseen object only requires collecting views with registered poses using traditional techniques [26] and feeding a small subset of those views with the associated poses to the network, instead of training for the new object which takes time and computational resources.
|
| 31 |
+
|
| 32 |
+
Our network design is inspired by space carving [18]. We build a 3D voxel representation of an object by computing 2D latent features and projecting them to a canonical 3D voxel space using a deprojection unit inspired by [27]. This operation can be interpreted as space carving in latent space. Rendering a novel view is conducted by rotating the latent voxel representation to the new view and projecting it into the 2D image space. Using the projected latent features, a decoder generates a new view image by first predicting the depth map of the object at the query view and then assigning color for each pixel by combining corresponding pixel values at different reference views.
|
| 33 |
+
|
| 34 |
+
To reconstruct and render unseen objects, we train the network on the ShapeNet dataset [4] randomly textured with images from the MS-COCO dataset [21] under random lighting conditions. Our experiments show that the network generalizes to novel object categories and instances. For pose estimation, we assume that the object of interest is segmented with a generic object instance segmentation method such as [50]. The pose of the object is estimated by finding a 6D pose that minimizes the difference between a predicted rendering and the input image. Since our network is a differentiable renderer, we optimize by directly computing the gradients of the loss with respect to the object pose. Fig. 1 illustrates our reconstruction and pose estimation pipeline.
|
| 35 |
+
|
| 36 |
+
Some key benefits of our method are:
|
| 37 |
+
|
| 38 |
+
1. Ease of Capture - we perform pose estimation given just a few reference images rather than 3D scans;
|
| 39 |
+
2. Robustness to Appearance - we create a latent representation from images rather than relying on a 3D model with baked appearance; and
|
| 40 |
+
3. Practicality - our zero-shot formulation requires only one neural network model for all objects and requires no training for novel objects.
|
| 41 |
+
|
| 42 |
+
In addition, we introduce the Model-free Object Pose Estimation Dataset (MOPED) for evaluating pose estimation in a zero-shot setting. Existing pose estimation benchmarks provide 3D models and rendered training images sequences, but typically do not provide casual real-world reference im
|
| 43 |
+
|
| 44 |
+
ages. MOPED provides registered reference and test images for evaluating pose estimation in a zero-shot setting.
|
| 45 |
+
|
| 46 |
+
# 2. Related Work
|
| 47 |
+
|
| 48 |
+
Pose Estimation. Pose estimation methods fall into three major categories. The first category tackles the problem of pose estimation by designing network architectures that facilitate pose estimation [25, 17, 15]. The second category formulates the pose estimation by predicting a set of 2D image features, such as the projection of 3D box corners [42, 45, 14, 33] and direction of the center of the object [49], then recovering the pose of the object using the predictions. The third category estimates the pose of objects by aligning the rendering of the 3D model to the image. DeepIM [20] trains a neural network to align the 3D model of the object to the image. Another approach is to learn a model that can reconstruct the object with different poses [41, 8]. These methods then use the latent representation of the object to estimate the pose. A limitation of this line of work is that they need to train separate auto-encoders for each object category and there is a lack of knowledge transfer between object categories. In addition, these methods require high-fidelity textured 3D models for each object which are not trivial to build in practice since it involves specialized hardware [37]. Our method addresses these limitations: our method works with a set of reference views with registered poses instead of a 3D model. Without additional training, our system builds a latent representation from the reference views which can be rendered to color and depth for arbitrary viewpoints. Similar to [41, 8], we seek to find a pose that minimizes the difference in latent space between the query object and the test image. Differentiable mesh renderers have been explored for pose estimation [29, 5] but still require 3D models leaving the acquisition problem unsolved.
|
| 49 |
+
|
| 50 |
+
3D shape learning and novel view synthesis. Inferring shapes of objects at the category level has recently gained a lot of attention. Shape geometry has been represented as voxels [6], Signed Distance Functions (SDFs) [30], point clouds [51], and as implicit functions encoded by a neural network [39]. These methods are trained at the category level and can only represent different instances within the categories they were trained on. In addition, these models only capture the shape of the object and do not model the appearance of the object. To overcome this limitation, recent works [28, 27, 39] decode appearance from neural 3D latent representations that respect projective geometry, generalizing well to novel viewpoints. Novel views are generated by transforming the latent representation in 3D and projecting it to 2D. A decoder then generates a novel view from the projected features. Some methods find a nearest neighbor shape proxy and infer high quality appearances but cannot handle novel categories [46, 32]. Differentiable
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
1. Reconstruction
|
| 54 |
+
Figure 2: A high level overview of our architecture. 1) Our modeling network takes an image and mask and predicts a feature volume for each input view. The predicted feature volumes are then fused into a single canonical latent object by the fusion module. 2) Given the latent object, our rendering network produces a depth map and a mask for any camera pose.
|
| 55 |
+
|
| 56 |
+
rendering [19, 27, 22] systems seek to implement the rendering process (rasterization and shading) in a differentiable manner so that gradients can be propagated to and from neural networks. Such methods can be used to directly optimize parameters such as pose or appearance. Current differentiable rendering methods are limited by the difficulty of implemented complex appearance models and require a 3D mesh. We seek to combine the best of these methods by creating a differentiable rendering pipeline that does not require a 3D mesh by instead building voxelized latent representations from a small number of reference images.
|
| 57 |
+
|
| 58 |
+
Multi-View Reconstruction. Our method takes inspiration from multi-view reconstruction methods. It is most similar to space carving [18] and can be seen as a latent-space extension of it. Dense fusion methods such as [26, 47] generate dense point clouds of the objects from RGB-D sequences. Recent works [44, 43] have explored ways to learn object representations from unaligned views. These methods recover coarse geometry and pose given an image, but require large amounts of training data for a single object category. Our method builds on both approaches: we train a network to reconstruct an object; however, instead of training per-object or per-category, we provide multiple reference images at inference time to create a 3D latent representation which can be rendered from novel viewpoints.
|
| 59 |
+
|
| 60 |
+
# 3. Overview
|
| 61 |
+
|
| 62 |
+
We present an end-to-end system for novel view reconstruction and pose estimation. We present our system in two parts. Sec. 4 describes our reconstruction pipeline which takes a small collection of reference images as input and produces a flexible representation which can be rendered from novel viewpoints. We leverage multi-view consistency to construct a latent representation and do not rely on category specific shape priors. This key architecture decision enables generalization beyond the distribution of training objects. We show that our reconstruction pipeline can ac
|
| 63 |
+
|
| 64 |
+
curately reconstruct unseen object categories from real images. In Sec. 5, we formulate the 6D pose estimation problem using our neural renderer. Since our rendering process is fully differentiable, we directly optimize for the camera parameters without the need for additional training or codebook generation for new objects.
|
| 65 |
+
|
| 66 |
+
Camera Model. Throughout this paper we use a perspective pinhole camera model with an intrinsic matrix
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\boldsymbol {K} = \left( \begin{array}{c c c} f _ {u} & 0 & u _ {0} \\ 0 & f _ {v} & v _ {0} \\ 0 & 0 & 1 \end{array} \right), \tag {1}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
and a homogeneous extrinsic matrix $\pmb{E} = [\pmb{R}|t]$ , where $f_{u}$ and $f_{v}$ are the focal lengths, $u_{0}$ and $v_{0}$ are the coordinates of the camera principal point, and $\pmb{R}$ and $\pmb{t}$ are rotation and translation of the camera, respectively. We also define a viewpoint cropping parameter $\pmb{c} = (u_{-}, v_{-}, u_{+}, v_{+})$ which represents a bounding box around the object in pixel coordinates. For brevity, we refer to the collection of these camera parameters as $\pmb{\theta} = \{\pmb{R}, \pmb{t}, \pmb{c}\}$ .
|
| 73 |
+
|
| 74 |
+
# 4. Neural Reconstruction and Rendering
|
| 75 |
+
|
| 76 |
+
Given a set of $N$ reference images with associated object poses and object segmentation masks, we seek to construct a representation of the object which can be rendered with arbitrary camera parameters. Building on the success of recent methods [28, 39], we represent the object as a latent 3D voxel grid. This representation can be directly manipulated using standard 3D transformations-naturally accommodating our requirement of novel view rendering. The overview of our method is shown in Fig. 2. There are two main components in our reconstruction pipeline: 1) Modeling the object by predicting per-view feature volumes and fusing them into a single canonical latent representation; 2) Rendering the latent representation to depth and color images.
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
Figure 3: The $M \times M \times M$ per-view feature volumes computed in the modeling network corresponds a depth bounded camera frustum. The blue box on the image plane is determined by the camera crop parameter $c = (u_{-}, v_{-}, u_{+}, v_{+})$ and together with the depth determines the bounds of the frustum.
|
| 80 |
+
|
| 81 |
+
# 4.1. Modeling
|
| 82 |
+
|
| 83 |
+
Our modeling step is inspired by space carving [18] in that our network takes observations from multiple views and leverages multi-view consistency to build a canonical representation. However, instead of using photometric consistency, we use latent features to represent each view which allows our network to learn features useful for this task.
|
| 84 |
+
|
| 85 |
+
Per-View Features. We begin by generating a feature volume for each input view $\mathcal{I}_i\in \{\mathcal{I}_1,\ldots ,\mathcal{I}_N\}$ . Each feature volume corresponds to the camera frustum of the input camera, bounded by the viewpoint parameter $c = (u_{-},v_{-},u_{+},v_{+})$ and depth-wise by $z\in [z_c - r,z_c + r]$ where $z_{c}$ is the distance to the object center and $r$ is the radius of the object. Fig. 3 illustrates the generation of the per-view features. Similar to [38], we use U-Nets [34] for their property of preserving spatial structure. We first compute 2D features $g_{\mathrm{pix}}(\pmb {x}_i)\in \mathbb{R}^{C\times H\times W}$ by passing the input $\pmb{x}_i$ (an RGB image $\mathcal{I}_i$ , a binary mask $\mathcal{M}_i$ , and optionally depth $\mathcal{D}_i$ ) through a 2D U-Net. The deprojection unit $(p_{\uparrow})$ then lifts the 2D image features in $\mathbb{R}^{C\times H\times W}$ to 3D volumetric features in $\mathbb{R}^{(C / D)\times D\times H\times W}$ by factoring the 2D channel dimension into the 3D channel dimension $C' = C / D$ and depth dimension $D$ . This deprojection operation is the exact opposite of the projection unit presented in [27]. The lifted features are then passed through a 3D U-Net $g_{\mathrm{cam}}$ to produce the volumetric features for the camera: $\Phi_i = g_{\mathrm{cam}}\circ p_\uparrow \circ g_{\mathrm{pix}}(\pmb {x}_i)\in \mathbb{R}^{C'\times M\times M\times M}$ .
|
| 86 |
+
|
| 87 |
+
Camera to Object Coordinates. Each voxel in our feature volume represents a point in 3D space. Following recent works [27, 28, 38], we transform our feature volumes directly using rigid transformations. Consider a continuous function $\phi (\pmb {x})\in \mathbb{R}^{C^{\prime}}$ defining our camera-space latent representation, where $\pmb {x}\in \mathbb{R}^3$ is a point in camera coordinates. The feature volume $\Phi$ is a discrete sample of this function. This representation in object space is given by $\psi (\pmb{x}^{\prime}) = \phi (\pmb{W}^{-1}\pmb{x}^{\prime})$ where $\pmb{x}^{\prime}$ is a point in object coordi
|
| 88 |
+
|
| 89 |
+
nates and $\pmb{W} = [\pmb{R}|t]$ is an object-to-camera extrinsic matrix. We compute the object-space volume $\hat{\Psi}$ by sampling $\phi (\pmb{W}^{-1}\pmb{x}_{ijk}^{\prime})$ for each object-space voxel coordinate $\pmb{x}_{ijk}^{\prime}$ . In practice, this is done by trilinear sampling the voxel grid and edge-padding values that fall outside. Given this transformation operation $T_{\mathrm{c}\to \mathrm{o}}$ , the object-space feature volume is given by $\hat{\Psi}_i = T_{\mathrm{c}\to \mathrm{o}}(\Phi_i)$ .
|
| 90 |
+
|
| 91 |
+
View Fusion. We now have a collection of feature volumes $\hat{\Psi}_i\in \{\hat{\Psi}_i,\ldots ,\hat{\Psi}_N\}$ , each associated with an input view. Our fusion module $f$ fuses all views into a single canonical feature volume: $\Psi = f(\hat{\Psi}_1,\dots ,\hat{\Psi}_N)$ .
|
| 92 |
+
|
| 93 |
+
Simple channel-wise average pooling yields good results but we found that sequentially integrating each volume using a Recurrent Neural Network (RNN) similarly to [38] slightly improved reconstruction accuracy (see Sec. 6.5). Using a recurrent unit allows the network to keep and ignore features from views in contrast to average pooling. This facilitates comparisons between different views allowing the network to perform operations similar to the photometric consistency criterion used in space carving [18]. We use a Convolutional Gated Recurrent Unit (ConvGRU) [1] so that the network can leverage spatial information.
|
| 94 |
+
|
| 95 |
+
# 4.2. Rendering
|
| 96 |
+
|
| 97 |
+
Our rendering module takes the fused object volume $\Psi$ and renders it given arbitrary camera parameters $\theta$ . Ideally, the rendering module would directly regress a color image. However, it is challenging to preserve high frequency details through a neural network. U-Nets [34] introduce skip connections between equivalent-scale layers allowing high frequency spatial structure to propagate to the end of the network, but it is unclear how to add skip connections in the presence of 3D transformations. Existing works such as [38, 23] train a single network for each scene allowing the decoder to memorize high frequency information while the latent representation encodes state information. Trying to predict color without skip connections results in blurry outputs. We side-step this difficulty by first rendering depth and then using an image-based rendering approach to produce a color image.
|
| 98 |
+
|
| 99 |
+
Decoding Depth. Depth is a 3D representation, making it easier for the network to exploit the geometric structure we provide. In addition, depth tends to be locally smoother compared to color allowing more information to be compactly represented in a single voxel.
|
| 100 |
+
|
| 101 |
+
Our rendering network is a simple inversion of the reconstruction network and bears many similarities to RenderNet [27]. First, we pass the canonical object-space volume $\Psi$ through a small 3D U-Net ( $h_{\mathrm{obj}}$ ) before transforming it to camera coordinates using the method described in Sec. 4.1. We perform the transformation with an object-to-camera extrinsic matrix $E$ instead of the inverse $E^{-1}$ . A second
|
| 102 |
+
|
| 103 |
+
3D U-Net $(h_{\mathrm{cam}})$ then decodes the resulting volume to produce a feature volume: $\Psi^{\prime} = h_{\mathrm{cam}}\circ T_{\mathrm{o}\to \mathrm{c}}\circ h_{\mathrm{obj}}(\Psi)$ which is then flattened to a 2D feature grid $\Phi^{\prime} = p_{\downarrow}(\Psi^{\prime})$ using the projection unit $(p_{\downarrow})$ from [27] by first collapsing the depth dimension into the channel dimension and applying a 1x1 convolution. The resulting features are decoded by a 2D U-Net $(h_{\mathrm{pix}})$ with two output branches for depth $(h_{\mathrm{depth}})$ and for a segmentation mask $(h_{\mathrm{mask}})$ . The outputs of the rendering network are given by $y_{\mathrm{depth}}(\Phi^{\prime}) = h_{\mathrm{depth}}\circ h_{\mathrm{pix}}(\Phi^{\prime})$ and $y_{\mathrm{mask}}(\Phi^{\prime}) = h_{\mathrm{mask}}\circ h_{\mathrm{pix}}(\Phi^{\prime})$ .
|
| 104 |
+
|
| 105 |
+
Image Based Rendering (IBR). We use image-based rendering [36] to leverage the reference images to predict output color. Given the camera intrinsics $\pmb{K}$ and depth map for an output view, we can recover the 3D object-space position of each output pixel $(u,v)$ as $\pmb{X} = \pmb{E}^{-1}\left(\frac{u - u_0}{f_u}z,\frac{v - v_0}{f_v}z,z,1\right)^T$ , which can be transformed to the input image frame as $\pmb{x}_i' = \pmb{K}_i\pmb{W}_i\pmb{X}$ for each input camera $\pmb{\theta}_i = \{\pmb{K}_i,\pmb{W}_i\}$ . The output pixel can then copy the color of the corresponding input pixel to produce a reprojected color image.
|
| 106 |
+
|
| 107 |
+
The resulting reprojected image will contain invalid pixels due occlusions. There are multiple strategies to weighting each pixel including 1) weighting by reprojected depth error, 2) weighting by similarity between input and query cameras, 3) using a neural network. The first choice suffers from artifacts in the presence of depth errors or thin surfaces. The second approach yields reasonable results but produces blurry images for intermediate views. We opt for the third option. Following deep blending [10], we train a network that predicts blend weights $\mathcal{W}_i$ for each reprojected input $\mathcal{I}_i'$ : $\mathcal{I}_o = \sum_i \mathcal{W}_i \odot \mathcal{I}_i'$ , where $\odot$ is an element-wise product. The blend weights are predicted by a 2D U-Net. The inputs to this network are 1) the depth predicted by our reconstruction pipeline, 2) each reprojected input image $\mathcal{I}_i'$ , and 3) a view similarity score $s$ based on the angle between the input and query poses.
|
| 108 |
+
|
| 109 |
+
# 4.3. Implementation Details
|
| 110 |
+
|
| 111 |
+
Training Data. We train our reconstruction network on shapes from ShapeNet [4] which contains around 51,300 shapes. We exclude large models for efficient data loading resulting in around 30,000 models. We generate UV maps using Blender's smart UV projection [3] to facilitate texturing. We normalize all models to unit diameter. When rendering, we sample a random image from MS-COCO [21] for each component of the model. We render with the Beckmann model [2] with randomized parameters and also render uniformly colored objects with a probability of 0.5.
|
| 112 |
+
|
| 113 |
+
Network Input. We generate our training data at a resolution of $640 \times 480$ . However, the input to our network is a fixed size $128 \times 128$ . To keep our inputs consistent and our
|
| 114 |
+
|
| 115 |
+
network scale-invariant, we 'zoom' into the object such that all images appear to be from the same distance. This is done by computing a bounding box size $(w_{b},h_{b}) = (\frac{d^{\prime}w^{\prime}}{f_{u}dw},\frac{d^{\prime}h^{\prime}}{f_{v}dh})$ where $(w,h)$ is the current image width and height, $d$ is the distance to the centroid $c_{o}$ (See Fig. 3), $(w^{\prime},h^{\prime})$ is the desired output size, and $d^{\prime}$ is the desired 'zoom' distance and cropping around object centroid projected to image coordinates $(c_{u},c_{v})$ . This defines the viewpoint parameter $\pmb {c} = (c_u - w_b / 2,c_v - h_b / 2,c_u + w_b / 2,c_v + h_b / 2)$ . The cropped image is scaled to $128\times 128$ .
|
| 116 |
+
|
| 117 |
+
Training. In each iteration of training, we sample a 3D model and then sample 16 random reference poses and 16 random target poses. Each pose is sampled by uniformly sampling a unit quaternion and translation such that the object stays within frame. We train our network using the Adam optimizer [16] with a fixed learning rate of 0.001 for 1.5M iterations. Each batch consists of 20 objects with 16 input views and 16 target views. We use an $L_{1}$ reconstruction loss for depth and binary cross-entropy for the mask. We apply the losses to both the input and output views. We randomly orient our canonical coordinate frame in each iteration by uniformly sampling a random unit quaternion. This prevents our network from overfitting to the implementation of our latent voxel transformations. We also add motion blur, color jitter, and pixel noise to the color inputs and add noise to the input masks using the same procedure as [24].
|
| 118 |
+
|
| 119 |
+
# 5. Object Pose Estimation
|
| 120 |
+
|
| 121 |
+
Given an image $\mathcal{I}$ , and a depth map $\mathcal{D}$ , a pose estimation system provides a rotation $\pmb{R}$ and a translation $t$ which together define an object-to-camera coordinate transformation $\pmb{E} = [R|t]$ referred to as the object pose. In this section, we describe how we use our reconstruction pipeline described in Sec. 4 to directly optimize for the pose. We first find a coarse pose using only forward inference and then refine it using gradient optimization.
|
| 122 |
+
|
| 123 |
+
Formulation. Pose is defined by a rotation $\mathbf{R}$ and a translation $t$ . Our formulation also includes the viewpoint parameter $c$ defined in Sec. 3. Defining a viewpoint allows us to efficiently pass the input to the reconstruction network while also providing scale invariance. We encode the rotation as a quaternion $q$ and translation as $t$ . We assume we are given an RGB image $\mathcal{I}$ , an object segmentation mask $\mathcal{M}$ , and depth $\mathcal{D}$ comprising the input $x = \{\mathcal{I}, \mathcal{M}, \mathcal{D}\}$ .
|
| 124 |
+
|
| 125 |
+
# 5.1. Losses
|
| 126 |
+
|
| 127 |
+
In order to estimate pose, we must provide a criterion which quantifies the quality of the pose. We use four loss functions. One is a standard $L_{1}$ depth reconstruction loss $\mathcal{L}_{\mathrm{depth}}(\pmb{\mathcal{D}}^{*},\pmb {\mathcal{D}}) = \| \pmb {\mathcal{D}}^{*} - \pmb {\mathcal{D}}\|_{1}$ which disambiguates the object scale and measures how well the predicted depth $\pmb{\mathcal{D}}$ matches the input depth $\pmb{\mathcal{D}}^{*}$ . We also use
|
| 128 |
+
|
| 129 |
+
a pixel-wise binary cross entropy loss $\mathcal{L}_{\mathrm{mask}}$ on the predicted mask as well as intersection over union (IoU) loss $\mathcal{L}_{\mathrm{iou}}(\mathcal{M}^*,\mathcal{M}) = \log U - \log I$ where $U$ is the sum of the pixels in the union and $I$ is the sum of the pixels in the intersection of the masks $\mathcal{M}^*$ and $\mathcal{M}$ . Finally, we introduce a novel latent loss which leverages our reconstruction network $F$ . Given the input $\pmb{x} = \{\pmb{\mathcal{I}},\pmb{\mathcal{M}},\pmb{\mathcal{D}}\}$ , a latent object $\Psi$ , and a pose $\theta$ , the latent loss is defined as $\mathcal{L}_{\mathrm{latent}}(\pmb{x},\pmb{\theta};\Psi) = \|H_{\pmb{\theta}}(G_{\pmb{\theta}}(\pmb{x})) - H_{\pmb{\theta}}(\Psi)\|_1$ , where $H_{\pmb{\theta}}$ is the rendering network up to the projection layer and $G_{\pmb{\theta}}$ is the modeling network as described in Sec. 4. This loss differs from auto-encoder based approaches such as [41, 8] in that 1) our network is not trained on the object, and 2) the loss is computed directly given the image and camera pose. Our pose estimation problem is given by:
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\underset {\theta} {\operatorname {a r g m i n}} \mathcal {L} _ {\text {d e p t h}} + \lambda \mathcal {L} _ {\text {l a t e n t}} + \gamma \mathcal {L} _ {\text {m a s k}} + \eta \mathcal {L} _ {\text {i o u}}, \tag {2}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
where $\lambda, \gamma, \eta$ are the weights of the losseses. The parameters of the losses are omitted for clarity.
|
| 136 |
+
|
| 137 |
+
Parameterization. We parameterize the rotation in the log quaternion form $\omega = (0, \omega_1, \omega_2, \omega_3)$ which ensures that all updates to the parameters result in a valid unit quaternion:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\boldsymbol {q} = \exp (\boldsymbol {\omega}) = \left( \begin{array}{c} \cos \| \boldsymbol {\omega} \| \\ \frac {\boldsymbol {\omega}}{\| \boldsymbol {\omega} \|} \sin \| \boldsymbol {\omega} \| \end{array} \right). \qquad (3)
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
Coarse Initialization. Although we have a differentiable renderer, the space of poses is non-convex which can lead to bad local minima when using gradient based optimization. We therefore bootstrap the pose by computing a coarse estimate. This also has the benefit of speeding up inference since it only requires forward evaluation.
|
| 144 |
+
|
| 145 |
+
We begin by estimating the translation of the object $t = (x, y, z)$ as the centroid of the bounding cube defined by the mask bounding box $c$ and corresponding depth values. We initialize $k$ poses using the estimated translation. To get good coverage of possible orientations, we evenly sample azimuth and elevation angles using a Fibonacci lattice [9] then uniformly sample a random yaw angle. We use the cross entropy method [7] to optimize the translation and log quaternion parameters, and use a Gaussian Mixture Model as the probability distribution.
|
| 146 |
+
|
| 147 |
+
Pose Optimization. Our entire pipeline is differentiable end-to-end. We can therefore optimize Eq. (2) using gradient optimization. Given a latent object $\Psi$ and a coarse pose estimate $\theta$ , we compute the loss and propagate the gradients back to the camera pose. This step only requires the rendering network and does not use the modeling network. The image-based rendering network is also not used in this step. We jointly optimize the rotation $q$ , translation $t$ , and viewpoint $c$ using Adam [16].
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 4: Two examples from the ModelNet experiment. (1) target image, (2) ground truth depth, (3) optimized predicted depth, and (4) $L_{1}$ error between the ground truth and our prediction. (a) illustrates how a pose with low depth error can still result in a relatively high angular error.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 5: Qualitative results on the MOPED dataset.
|
| 154 |
+
|
| 155 |
+
# 6. Experiments
|
| 156 |
+
|
| 157 |
+
We evaluate our method on LINEMOD [11], ModelNet [48] and our new dataset MOPED. We aim to evaluate pose estimation accuracy on unseen objects.
|
| 158 |
+
|
| 159 |
+
# 6.1. Evaluation Metrics
|
| 160 |
+
|
| 161 |
+
We use four main evaluation metrics. 1) $(k^{\circ}, k\mathrm{cm})$ : a pose is considered correct if it is within $k^{\circ}$ and $k\mathrm{cm}$ of the ground truth target pose where the angular metric is the angle between the orientations. 2) ADD [12]: the average distance between points after being transformed by the ground truth and predicted poses. 3) ADD-S: A modification to ADD that computes the average distance to the closest point rather than the ground truth point to account for symmetric objects. 4) Proj.2D: the pixel distance between the projected points of the ground truth and predicted pose.
|
| 162 |
+
|
| 163 |
+
# 6.2. Experiments on the LINEMOD Dataset
|
| 164 |
+
|
| 165 |
+
We evaluate our method on the LINEMOD dataset. We compare our results with DeepIM [20] and pix2pose [31]. Both of these methods are trained on the LINEMOD dataset. DeepIM uses the 3D models in an online fashion to refine the pose. We do not train on the dataset. Instead, our network is given 16 reference views of each object during inference time. We use the provided segmentation masks during inference. We follow the train/test split of [13] and
|
| 166 |
+
|
| 167 |
+
Table 1: Evaluation on LINEMOD. We report the ADD recall metric [12], comparing against DeepIM and pix2pose. Symmetric objects are indicated by * and the pose is considered correct if it is flipped along the $z$ axis.
|
| 168 |
+
|
| 169 |
+
<table><tr><td>Method</td><td>Input</td><td>ape</td><td>benchvice</td><td>camera</td><td>can</td><td>cat</td><td>driller</td><td>duck</td><td>eggbox*</td><td>glue*</td><td>holepunch</td><td>iron</td><td>lamp</td><td>phone</td><td>mean</td></tr><tr><td>Ours</td><td>RGB-D</td><td>83.7</td><td>91.3</td><td>74.3</td><td>83.4</td><td>84.4</td><td>90.6</td><td>71.3</td><td>39.3</td><td>94.7</td><td>53.7</td><td>70.0</td><td>87.8</td><td>90.3</td><td>78.0</td></tr><tr><td>DeepIM [20]</td><td>RGB</td><td>77.0</td><td>97.5</td><td>93.5</td><td>96.5</td><td>82.1</td><td>95.0</td><td>77.7</td><td>97.1</td><td>99.4</td><td>52.8</td><td>98.3</td><td>97.5</td><td>87.7</td><td>88.6</td></tr><tr><td>pix2pose [31]</td><td>RGB</td><td>58.1</td><td>91.0</td><td>60.9</td><td>84.4</td><td>65.0</td><td>76.3</td><td>43.8</td><td>96.8</td><td>79.4</td><td>74.8</td><td>83.4</td><td>82.0</td><td>45.0</td><td>72.4</td></tr></table>
|
| 170 |
+
|
| 171 |
+
sample our reference views from the training set. We follow the same evaluation methodology of [12], reporting the percentage of poses with ADD metric less than $10\%$ of the object diameter. Table. 1 shows the results. Our experiments show that our method performs on-par with state of the art supervised methods despite having never seen the objects.
|
| 172 |
+
|
| 173 |
+
# 6.3. Experiments on the ModelNet Dataset
|
| 174 |
+
|
| 175 |
+
We conduct experiments on ModelNet [48] to evaluate the generalization of our method toward unseen object categories. To this end, we train our network on all the meshes in ShapeNetCore [4] excluding the categories we are going to evaluate on. We closely follow the evaluation protocol of [20] here. The model is evaluated on 7 unseen categories: bathtub, bookshelf, guitar, range hood, sofa, wardrobe, and TV stand. For each category, 50 pairs of initial and target object pose are sampled. We compared with [20] and [40] where all the methods initialized with the initial pose and evaluated on how successful they are on estimating the target pose. We report three metrics: $(5^{\circ}, 5cm)$ , $ADD$ within $10\%$ of the object diameter, and $Proj.2D$ within 5 pixels.
|
| 176 |
+
|
| 177 |
+
Table 2 shows the quantitative results on the ModelNet dataset. On average, our method achieves state-of-the-art results on all the metrics thanks to our ability to perform continuous optimization on pose. However, for the $(5^{\circ}, 5cm)$ metric, there are object categories that our method performs worse despite performing well on all other metrics. One reason is the image and spatial resolution. The input and output images to our network have resolution $128 \times 128$ . The resolution of our voxel representation is $16 \times 16 \times 16$ . The limited resolution can hinder the performance for small objects or objects that are distant from the camera. Small changes in the depth of each pixel may disproportionately affect the rotation of the object compared to our losses. Fig. 4 shows examples from the ModelNet experiment illustrating this limitation.
|
| 178 |
+
|
| 179 |
+
# 6.4. Experiments on the MOPED Dataset
|
| 180 |
+
|
| 181 |
+
We introduce the Model-free Object Pose Estimation Dataset (MOPED). MOPED consists of 11 objects, shown in Fig. 6. For each object, we take multiple RGB-D videos cover all views the object. We first use KinectFusion [26] to register frames from a single capture and then use a combination of manual annotation and automatic registration [52, 35, 53] to align separate captures. We generate object segmentation maps using [50]. For each object, we
|
| 182 |
+
|
| 183 |
+
Table 2: ModelNet pose refinement experiments compared to DeepIM (DI) [20] and Multi-Path Learning (MP) [40].
|
| 184 |
+
|
| 185 |
+
<table><tr><td></td><td colspan="3">(5°, 5cm)</td><td colspan="3">ADD (0.1d)</td><td colspan="3">Proj2D (5px)</td></tr><tr><td></td><td>DI</td><td>MP</td><td>Ours</td><td>DI</td><td>MP</td><td>Ours</td><td>DI</td><td>MP</td><td>Ours</td></tr><tr><td>bathtub</td><td>71.6</td><td>85.5</td><td>85.0</td><td>88.6</td><td>91.5</td><td>92.7</td><td>73.4</td><td>80.6</td><td>94.9</td></tr><tr><td>bookshelf</td><td>39.2</td><td>81.9</td><td>80.2</td><td>76.4</td><td>85.1</td><td>91.5</td><td>51.3</td><td>76.3</td><td>91.8</td></tr><tr><td>guitar</td><td>50.4</td><td>69.2</td><td>73.5</td><td>69.6</td><td>80.5</td><td>83.9</td><td>77.1</td><td>80.1</td><td>96.9</td></tr><tr><td>range_hood</td><td>69.8</td><td>91.0</td><td>82.9</td><td>89.6</td><td>95.0</td><td>97.9</td><td>70.6</td><td>83.9</td><td>91.7</td></tr><tr><td>sofa</td><td>82.7</td><td>91.3</td><td>89.9</td><td>89.5</td><td>95.8</td><td>99.7</td><td>94.2</td><td>86.5</td><td>97.6</td></tr><tr><td>tv_stand</td><td>73.6</td><td>85.9</td><td>88.6</td><td>92.1</td><td>90.9</td><td>97.4</td><td>76.6</td><td>82.5</td><td>96.0</td></tr><tr><td>wardrobe</td><td>62.7</td><td>88.7</td><td>91.7</td><td>79.4</td><td>92.1</td><td>97.0</td><td>70.0</td><td>81.1</td><td>94.2</td></tr><tr><td>Mean</td><td>64.3</td><td>84.8</td><td>85.5</td><td>83.6</td><td>90.1</td><td>94.3</td><td>73.3</td><td>81.6</td><td>94.7</td></tr></table>
|
| 186 |
+
|
| 187 |
+
Table 3: AUC metrics on MOPED by reference view count.
|
| 188 |
+
|
| 189 |
+
<table><tr><td># Views</td><td>1</td><td>2</td><td>4</td><td>8</td><td>16</td><td>32</td></tr><tr><td>ADD</td><td>15.91</td><td>25.00</td><td>40.38</td><td>55.35</td><td>58.67</td><td>55.81</td></tr><tr><td>ADD-S</td><td>63.14</td><td>75.91</td><td>85.62</td><td>87.72</td><td>87.45</td><td>88.70</td></tr><tr><td>Proj.2D</td><td>8.68</td><td>15.43</td><td>28.41</td><td>38.87</td><td>43.35</td><td>38.45</td></tr></table>
|
| 190 |
+
|
| 191 |
+
Table 4: AUC metrics for different view fusion strategies
|
| 192 |
+
|
| 193 |
+
<table><tr><td></td><td>ADD</td><td>ADD-S</td><td>Proj.2D</td></tr><tr><td>Avg Pool</td><td>56.78</td><td>88.04</td><td>39.82</td></tr><tr><td>ConvGRU</td><td>56.36</td><td>88.28</td><td>40.43</td></tr></table>
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
Figure 6: Objects in MOPED-a new dataset for model-free pose estimation. The objects shown are: (a) toy(plane, (b) duplo_dude, (c) cheezit, (d) duster, (e) black_drill, (f) orange_drill, (g) graphics_card, (h) remote, (i) rinse_Aid, (j) vim_mug, and (k) pouch.
|
| 197 |
+
|
| 198 |
+
select reference frames with farthest point sampling to ensure good coverage of the object. For test sequences, we capture each object in 5 different environments. We sample every other frame for evaluation videos. This results in approximately 300 test images per object. We evaluate our method and baselines using three metrics for which we provide the Area Under Curve (AUC): 1) $ADD$ with threshold between $0 - 10cm$ , 2) $ADD-S$ with threshold between
|
| 199 |
+
|
| 200 |
+
Table 5: Quantitative Results on MOPED Dataset. We report the Area Under Curve (AUC) for each metric.
|
| 201 |
+
|
| 202 |
+
<table><tr><td></td><td colspan="3">PoseRBPF [8]</td><td colspan="3">Ours (LD)</td><td colspan="3">Ours (D)</td><td colspan="3">Ours (L)</td></tr><tr><td>Pose Loss</td><td colspan="3">-</td><td colspan="3">\( \mathcal{L}_{\text{latent}} + \mathcal{L}_{\text{depth}} \)</td><td colspan="3">\( \mathcal{L}_{\text{depth}} \)</td><td colspan="3">\( \mathcal{L}_{\text{latent}} \)</td></tr><tr><td></td><td>ADD</td><td>ADD-S</td><td>Proj.2D</td><td>ADD</td><td>ADD-S</td><td>Proj.2D</td><td>ADD</td><td>ADD-S</td><td>Proj.2D</td><td>ADD</td><td>ADD-S</td><td>Proj.2D</td></tr><tr><td>black drills</td><td>59.78</td><td>82.94</td><td>49.80</td><td>56.67</td><td>79.06</td><td>53.77</td><td>62.15</td><td>82.36</td><td>59.36</td><td>51.61</td><td>80.81</td><td>48.05</td></tr><tr><td>cheezit</td><td>57.78</td><td>82.45</td><td>48.47</td><td>61.31</td><td>91.63</td><td>55.24</td><td>44.56</td><td>90.24</td><td>35.10</td><td>23.98</td><td>88.20</td><td>15.92</td></tr><tr><td>duplo_dude</td><td>56.91</td><td>82.14</td><td>47.11</td><td>74.02</td><td>89.55</td><td>52.49</td><td>76.81</td><td>90.50</td><td>59.83</td><td>53.26</td><td>89.51</td><td>38.54</td></tr><tr><td>duster</td><td>58.91</td><td>82.78</td><td>46.66</td><td>49.13</td><td>91.56</td><td>19.33</td><td>51.13</td><td>91.68</td><td>24.78</td><td>39.05</td><td>81.57</td><td>20.82</td></tr><tr><td>graphics_card</td><td>59.13</td><td>83.20</td><td>49.85</td><td>80.71</td><td>91.25</td><td>67.71</td><td>79.33</td><td>90.90</td><td>60.35</td><td>60.11</td><td>87.91</td><td>41.92</td></tr><tr><td>orange_drill</td><td>58.23</td><td>82.68</td><td>49.08</td><td>51.84</td><td>70.95</td><td>46.12</td><td>55.52</td><td>73.68</td><td>45.46</td><td>44.20</td><td>68.39</td><td>41.68</td></tr><tr><td>pouch</td><td>57.74</td><td>82.16</td><td>49.01</td><td>60.43</td><td>89.60</td><td>49.80</td><td>58.51</td><td>89.15</td><td>44.40</td><td>22.03</td><td>82.94</td><td>20.19</td></tr><tr><td>remote</td><td>56.87</td><td>82.04</td><td>48.06</td><td>55.38</td><td>94.80</td><td>37.73</td><td>63.18</td><td>94.96</td><td>45.27</td><td>62.39</td><td>91.58</td><td>41.96</td></tr><tr><td>rinse aid</td><td>57.74</td><td>82.53</td><td>48.13</td><td>65.63</td><td>92.58</td><td>28.61</td><td>67.09</td><td>93.66</td><td>27.62</td><td>57.54</td><td>87.44</td><td>19.00</td></tr><tr><td>toyPlane</td><td>62.41</td><td>85.10</td><td>49.81</td><td>60.18</td><td>90.24</td><td>51.70</td><td>56.80</td><td>88.54</td><td>40.16</td><td>34.29</td><td>87.22</td><td>35.07</td></tr><tr><td>vim_mug</td><td>58.09</td><td>82.38</td><td>48.08</td><td>30.11</td><td>80.76</td><td>14.38</td><td>49.89</td><td>77.79</td><td>32.85</td><td>27.49</td><td>78.59</td><td>10.51</td></tr><tr><td>mean</td><td>58.51</td><td>82.76</td><td>48.55</td><td>58.67</td><td>87.45</td><td>43.35</td><td>60.45</td><td>87.59</td><td>43.20</td><td>43.27</td><td>84.01</td><td>30.33</td></tr></table>
|
| 203 |
+
|
| 204 |
+
$0 - 10cm$ , and 3) Proj.2D with threshold between $0 - 40px$ We compute all metrics for all sampled frames.
|
| 205 |
+
|
| 206 |
+
We compare our method with PoseRBPF [8], a state-of-the-art model-based pose estimation method. Since PoseRBPF requires textured 3D models, we reconstruct a mesh for each object by aggregating point clouds from reference captures and building a TSDF volume. The point clouds are integrated into the volume using Kinect-Fusion [26]. The meshes have artifacts such as washed out high frequency details and shadow vertices due to slight misalignment (see supplementary materials). Table 5 shows quantitative comparisons on the MOPED dataset. Note that our method is not trained on the test objects while PoseRBPF has a separate encoder for each object. Our method achieves superior performance on both ADD and ADD-S. We evaluate different versions of our method with different combinations of loss functions. Compared to our combined loss, optimizing only $\mathcal{L}_{\mathrm{depth}}$ performs better for geometrically asymmetric objects but worse on textured objects such as the cheezit box. Optimizing both losses achieves better results on textured objects. Fig. 5 shows estimated poses for different test images. Please see supplementary materials for qualitative examples.
|
| 207 |
+
|
| 208 |
+
# 6.5. Ablation Studies
|
| 209 |
+
|
| 210 |
+
In this section, we analyze the effect of different design choices and how they affect the robustness of our method.
|
| 211 |
+
|
| 212 |
+
Number of reference views. We first evaluate the sensitivity of our method to the number of input reference views. Novel view synthesis is easier with more reference views because there is a higher chance that a query view will be close to a reference view. Table 3 shows that the accuracy increases with the number of reference views. In addition, having more than 8 reference views only yields marginal performance gains shows that our method does not require many views to achieve good pose estimation results.
|
| 213 |
+
|
| 214 |
+
View Fusion. We compare multiple strategies for aggregating the latent representations from each reference view. The naive way is to use a simple pooling function such as average/max pooling. Alternatively, we can integrate the volumes using an RNN such as a ConvGRU so that the network can reason across views. Table 4 shows the quantitative evaluation of these two variations. Although the average performance of the objects are very similar, the ConvGRU variation performs better than the average pooling variation. This indicates the importance of spatial relationship in the voxel representation for pose estimation.
|
| 215 |
+
|
| 216 |
+
# 7. Conclusion
|
| 217 |
+
|
| 218 |
+
We have presented a novel framework for building 3D object representations at inference time using a small number of reference images, as well as an accompanying neural renderer to render the 3D representation from arbitrary 6D viewpoints. Our networks are trained on thousands of shapes with random textures rendered under various lighting conditions allowing it to robustly generalize to unseen objects without additional training.
|
| 219 |
+
|
| 220 |
+
We leverage our reconstruction and rendering pipeline for zero-shot pose estimation. We perform pose estimation given just a small number of reference views and without needing to train any network. This greatly simplifies the process for performing pose estimation on novel objects as a detailed 3D model is not required. In addition, we have a single universal network which works for all objects including unseen ones. For future work, we plan to investigate unseen object pose estimation in cluttered scenes with occlusions. We also plan to speed up the pose estimation process by applying network optimization techniques.
|
| 221 |
+
|
| 222 |
+
# Acknowledgements
|
| 223 |
+
|
| 224 |
+
We thank Xinke Deng for helpful discussions.
|
| 225 |
+
|
| 226 |
+
# References
|
| 227 |
+
|
| 228 |
+
[1] Nicolas Ballas, Li Yao, Chris Pal, and Aaron Courville. Delving deeper into convolutional networks for learning video representations. arXiv preprint arXiv:1511.06432, 2015. 4
|
| 229 |
+
[2] Petr Beckmann and Andre Spizzichino. The scattering of electromagnetic waves from rough surfaces. Norwood, MA, Artech House, Inc., 1987. 5
|
| 230 |
+
[3] Blender Online Community. Blender - a 3D modelling and rendering package. Blender Foundation, 2019. 5
|
| 231 |
+
[4] Angel X. Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An Information-Rich 3D Model Repository. Technical Report arXiv:1512.03012 [cs.GR], 2015. 2, 5, 7
|
| 232 |
+
[5] Wenzheng Chen, Huan Ling, Jun Gao, Edward Smith, Jaakko Lehtinen, Alec Jacobson, and Sanja Fidler. Learning to predict 3D objects with an interpolation-based differentiable renderer. In Advances in Neural Information Processing Systems (NuerIPS), pages 9605-9616, 2019. 2
|
| 233 |
+
[6] Christopher Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3D-R2N2: A unified approach for single- and multi-view 3D object reconstruction. In European Conference on Computer Vision (ECCV), pages 628-644, 2016. 2
|
| 234 |
+
[7] Pieter-Tjerk De Boer, Dirk Kroese, Shie Mannor, and Reuven Rubinstein. A tutorial on the cross-entropy method. Annals of Operations Research, 134(1):19-67, 2005. 6
|
| 235 |
+
[8] Xinke Deng, Arsalan Mousavian, Yu Xiang, Fei Xia, Timothy Bretl, and Dieter Fox. PoseRBPF: A rao-blackwellized particle filter for 6D object pose tracking. In Robotics: Science and Systems (RSS), 2019. 1, 2, 6, 8
|
| 236 |
+
[9] Álvaro González. Measurement of areas on a sphere using fibonacci and latitude-longitude lattices. Mathematical Geosciences, 42(1):49, 2010. 6
|
| 237 |
+
[10] Peter Hedman, Julien Philip, True Price, Jan-Michael Frahm, George Drettakis, and Gabriel Brostow. Deep blending for free-viewpoint image-based rendering. ACM Transactions on Graphics (TOG), 37(6):1-15, 2018. 5
|
| 238 |
+
[11] Stefan Hinterstoisser, Stefan Holzer, Cedric Cagniart, Slobodan Ilic, Kurt Konolige, Nassir Navab, and Vincent Lepetit. Multimodal templates for real-time detection of texture-less objects in heavily cluttered scenes. In International Conference on Computer Vision (ICCV), pages 858-865, 2011. 6
|
| 239 |
+
[12] Stefan Hinterstoisser, Vincent Lepetit, Slobodan Ilic, Stefan Holzer, Gary Bradski, Kurt Konolige, and Nassir Navab. Model based training, detection and pose estimation of texture-less 3D objects in heavily cluttered scenes. In Asian Conference on Computer Vision (ACCV), pages 548-562, 2012. 6, 7
|
| 240 |
+
[13] Tomas Hodan, Frank Michel, Eric Brachmann, Wadim Kehl, Anders GlentBuch, Dirk Kraft, Bertram Drost, Joel Vidal, Stephan Ihrke, Xenophon Zabulis, Caner Sahin, Federico Tombari Fabian Manhardt, Tae-Kyun Kim, Jiri Matas, and Carsten Rother. BOP: Benchmark for 6D object pose
|
| 241 |
+
|
| 242 |
+
estimation. In European Conference on Computer Vision (ECCV), pages 19-34, 2018. 6
|
| 243 |
+
[14] Yinlin Hu, Joachim Hugonot, Pascal Fua, and Mathieu Salzmann. Segmentation-driven 6D object pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3385-3394, 2019. 2
|
| 244 |
+
[15] Wadim Kehl, Fabian Manhardt, Federico Tombari, Slobodan Ilic, and Nassir Navab. SSD-6D: Making RGB-based 3D detection and 6D pose estimation great again. In International Conference on Computer Vision (ICCV), pages 1521–1529, 2017. 2
|
| 245 |
+
[16] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 5, 6
|
| 246 |
+
[17] Abhijit Kundu, Yin Li, and James M Rehg. 3D-RCNN: Instance-level 3D object reconstruction via render-and compare. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3559–3568, 2018. 2
|
| 247 |
+
[18] Kiriakos Kutulakos and Steven Seitz. A theory of shape by space carving. International Journal of Computer Vision (IJCV), 38(3):199-218, 2000. 2, 3, 4
|
| 248 |
+
[19] Tzu-Mao Li, Miika Aittala, Frédo Durand, and Jaakko Lehtinen. Differentiable monte carlo ray tracing through edge sampling. ACM Transactions on Graphics (TOG), 37(6):1-11, 2018. 3
|
| 249 |
+
[20] Yi Li, Gu Wang, Xiangyang Ji, Yu Xiang, and Dieter Fox. DeepIM: Deep iterative matching for 6D pose estimation. In European Conference on Computer Vision (ECCV), pages 683-698, 2018. 2, 6, 7
|
| 250 |
+
[21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and Lawrence Zitnick. Microsoft COCO: Common objects in context. In European Conference on Computer Vision (ECCV), pages 740-755, 2014. 2, 5
|
| 251 |
+
[22] Shichen Liu, Tianye Li, Weikai Chen, and Hao Li. Soft rasterizer: A differentiable renderer for image-based 3D reasoning. International Conference on Computer Vision (ICCV), 2019. 3
|
| 252 |
+
[23] Stephen Lombardi, Tomas Simon, Jason Saragih, Gabriel Schwartz, Andreas Lehrmann, and Yaser Sheikh. Neural volumes: Learning dynamic renderable volumes from images. ACM Transactions on Graphics (TOG), 38(4):65, 2019. 4
|
| 253 |
+
[24] Jeffrey Mahler, Jacky Liang, Sherdil Niyaz, Michael Laskey, Richard Doan, Xinyu Liu, Juan Aparicio Ojea, and Ken Goldberg. Dex-Net 2.0: Deep learning to plan robust grasps with synthetic point clouds and analytic grasp metrics. In Robotics: Science and Systems (RSS), 2017. 5
|
| 254 |
+
[25] Arsalan Mousavian, Dragomir Anguelov, John Flynn, and Jana Kosecka. 3D bounding box estimation using deep learning and geometry. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
|
| 255 |
+
[26] Richard Newcombe, Shahram Izadi, Otmar Hilliges, David Molyneaux, David Kim, Andrew Davison, Pushmeet Kohli, Jamie Shotton, Steve Hodges, and Andrew Fitzgibbon. KinectFusion: Real-time dense surface mapping and tracking. In IEEE International Symposium on Mixed and Augmented Reality (ISMAR), volume 11, pages 127-136, 2011. 1, 2, 3, 7, 8
|
| 256 |
+
|
| 257 |
+
[27] Thu Nguyen-Phuoc, Chuan Li, Stephen Balaban, and Yong-Liang Yang. RenderNet: A deep convolutional network for differentiable rendering from 3D shapes. In Advances in Neural Information Processing Systems (NeurIPS), 2018. 2, 3, 4, 5
|
| 258 |
+
[28] Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. HoloGAN: Unsupervised learning of 3D representations from natural images. In International Conference on Computer Vision (ICCV), 2019. 2, 3, 4
|
| 259 |
+
[29] Andrea Palazzi, Luca Bergamini, Simone Calderara, and Rita Cucchiara. End-to-end 6-DOF object pose estimation through differentiable rasterization. In European Conference on Computer Vision (ECCV), pages 0–0, 2018. 2
|
| 260 |
+
[30] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 165-174, 2019. 2
|
| 261 |
+
[31] Kiru Park, Timothy Patten, and Markus Vincze. Pix2pose: Pixel-wise coordinate regression of objects for 6D pose estimation. In International Conference on Computer Vision (ICCV), pages 7668-7677, 2019. 6, 7
|
| 262 |
+
[32] Keunhong Park, Konstantinos Rematas, Ali Farhadi, and Steven Seitz. Photoshape: photorealistic materials for largescale shape collections. ACM Transactions on Graphics (TOG), 37(6):192, 2019. 2
|
| 263 |
+
[33] Sida Peng, Yuan Liu, Qixing Huang, Xiaowei Zhou, and Hu-jun Bao. Pvnet: Pixel-wise voting network for 6dof pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4561-4570, 2019. 2
|
| 264 |
+
[34] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Conference on Medical Image Computing and Computer-assisted Intervention, pages 234-241, 2015. 4
|
| 265 |
+
[35] Szymon Rusinkiewicz and Marc Levoy. Efficient variants of the icp algorithm. In International Conference on 3-D Digital Imaging and Modeling, pages 145-152, 2001. 7
|
| 266 |
+
[36] Harry Shum and Sing Bing Kang. Review of image-based rendering techniques. In Visual Communications and Image Processing, volume 4067, pages 2-13, 2000. 5
|
| 267 |
+
[37] Arjun Singh, James Sha, Karthik S Narayan, Tudor Achim, and Pieter Abbeel. BigBIRD: A large-scale 3D database of object instances. In IEEE International Conference on Robotics and Automation (ICRA), pages 509-516, 2014. 2
|
| 268 |
+
[38] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhöfer. Deepvoxels: Learning persistent 3D feature embeddings. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 4
|
| 269 |
+
[39] Vincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene representation networks: Continuous 3D-structure-aware neural scene representations. In Advances in Neural Information Processing Systems (NuerIPS), 2019. 2, 3
|
| 270 |
+
[40] Martin Sundermeyer, Maximilian Durner, En Yen Puang, Zoltan-Csaba Marton, and Rudolph Triebel. Multi-path
|
| 271 |
+
|
| 272 |
+
learning for object pose estimation across domains. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 7
|
| 273 |
+
[41] Martin Sundermeyer, Zoltan-Csaba Marton, Maximilian Durner, Manuel Brucker, and Rudolph Triebel. Implicit 3D orientation learning for 6D object detection from rgb images. In European Conference on Computer Vision (ECCV), pages 699-715, 2018. 1, 2, 6
|
| 274 |
+
[42] Jonathan Tremblay, Thang To, Balakumar Sundaralingam, Yu Xiang, Dieter Fox, and Stan Birchfield. Deep object pose estimation for semantic robotic grasping of household objects. In Conference on Robot Learning (CoRL), 2018. 1, 2
|
| 275 |
+
[43] Shubham Tulsiani, Alexei Efros, and Jitendra Malik. Multiview consistency as supervisory signal for learning shape and pose prediction. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 3
|
| 276 |
+
[44] Shubham Tulsiani, Tinghui Zhou, Alexei Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In IEEE conference on Computer Vision and Pattern Recognition (CVPR), 2017. 3
|
| 277 |
+
[45] Chen Wang, Danfei Xu, Yuke Zhu, Roberto Martin-Martin, Cewu Lu, Li Fei-Fei, and Silvio Savarese. DenseFusion: 6D object pose estimation by iterative dense fusion. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3343–3352, 2019. 1, 2
|
| 278 |
+
[46] Tuanfeng Wang, Hao Su, Qixing Huang, Jingwei Huang, Leonidas Guibas, and Niloy Mitra. Unsupervised texture transfer from images to model collections. ACM Transactions on Graphics (TOG), 35(6):1-13, 2016. 2
|
| 279 |
+
[47] Thomas Whelan, Stefan Leutenegger, R Salas-Moreno, Ben Glocker, and Andrew Davison. ElasticFusion: Dense SLAM without a pose graph. In Robotics: Science and Systems (RSS), 2015. 3
|
| 280 |
+
[48] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguuang Zhang, Xiaou Tang, and Jianxiong Xiao. 3D ShapeNets: A deep representation for volumetric shapes. In IEEE conference on Computer Vision and Pattern Recognition (CVPR), pages 1912-1920, 2015. 6, 7
|
| 281 |
+
[49] Yu Xiang, Tanner Schmidt, Venkatraman Narayanan, and Dieter Fox. PoseCNN: A convolutional neural network for 6D object pose estimation in cluttered scenes. In Robotics: Science and Systems (RSS), 2018. 1, 2
|
| 282 |
+
[50] Christopher Xie, Yu Xiang, Arsalan Mousavian, and Dieter Fox. The best of both modes: Separately leveraging RGB and depth for unseen object instance segmentation. In Conference on Robot Learning (CoRL), 2019. 2, 7
|
| 283 |
+
[51] Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. PointFlow: 3D point cloud generation with continuous normalizing flows. In International Conference on Computer Vision (ICCV), 2019. 2
|
| 284 |
+
[52] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Fast global registration. In European Conference on Computer Vision (ECCV), pages 766-782, 2016. 7
|
| 285 |
+
[53] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Open3D: A modern library for 3D data processing. arXiv:1801.09847, 2018. 7
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de32ab57c7865c1e6d56ca799714385fc35cd300c847aa6888b2d066a58c62e3
|
| 3 |
+
size 462804
|
latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c2d5458da98c1129c4e3a175a863c87461f74da983553e501a777882edbe5dd
|
| 3 |
+
size 425114
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a368f0ba978494f86ed350280bab4f974b83b75f66822fdf17e4e5e656e332b3
|
| 3 |
+
size 77317
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d9506993a76c6afdec577e39e29728e37b83906ddd5c8ef31bbb74b25b6bfab
|
| 3 |
+
size 93269
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa0906bfd315df1286d3b9a3085b2c14aca90cbc2bf801285066405e1613fc25
|
| 3 |
+
size 349753
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/full.md
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learn2Perturb: an End-to-end Feature Perturbation Learning to Improve Adversarial Robustness
|
| 2 |
+
|
| 3 |
+
Ahmadreza Jeddi<sup>1</sup>, Mohammad Javad Shafiee<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
Michelle Karg², Christian Scharfenberger², Alexander Wong¹
|
| 6 |
+
|
| 7 |
+
<sup>1</sup>Waterloo AI Institute, University of Waterloo, Waterloo, Ontario, Canada
|
| 8 |
+
|
| 9 |
+
$^{2}$ ADC Automotive Distance Control Systems GmbH, Continental, Germany
|
| 10 |
+
|
| 11 |
+
$^{1}$ {a2jeddi, mjshafiee, a28wong}@uwaterloo.ca
|
| 12 |
+
|
| 13 |
+
$^{2}\{michelle.karg,christian.scharfenberger\} @$ continental-corporation.com
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
While deep neural networks have been achieving state-of-the-art performance across a wide variety of applications, their vulnerability to adversarial attacks limits their widespread deployment for safety-critical applications. Alongside other adversarial defense approaches being investigated, there has been a very recent interest in improving adversarial robustness in deep neural networks through the introduction of perturbations during the training process. However, such methods leverage fixed, pre-defined perturbations and require significant hyperparameter tuning that makes them very difficult to leverage in a general fashion. In this study, we introduce Learn2Perturb, an end-to-end feature perturbation learning approach for improving the adversarial robustness of deep neural networks. More specifically, we introduce novel perturbation-injection modules that are incorporated at each layer to perturb the feature space and increase uncertainty in the network. This feature perturbation is performed at both the training and the inference stages. Furthermore, inspired by the Expectation-Maximization, an alternating back-propagation training algorithm is introduced to train the network and noise parameters consecutively. Experimental results on CIFAR-10 and CIFAR-100 datasets show that the proposed Learn2Perturb method can result in deep neural networks which are $4 - 7\%$ more robust on $l_{\infty}$ FGSM and PDG adversarial attacks and significantly outperforms the state-of-the-art against $l_{2}$ C&W attack and a wide range of well-known black-box attacks<sup>1</sup>.
|
| 18 |
+
|
| 19 |
+
# 1. Introduction
|
| 20 |
+
|
| 21 |
+
The vulnerability of DNN models to adversarial examples have raised major concerns [1, 7, 9, 25, 31] on their
|
| 22 |
+
|
| 23 |
+
large-scale adaption in a wide variety of applications.
|
| 24 |
+
|
| 25 |
+
Adversarial attacks can be divided into two categories of black-box and white-box attacks based on the level of information available to the attacker. Black-box attacks usually perform queries on the model, and they have partial information regarding the data and the structure of the targeted model [16, 28]. On the other hand, white-box attacks have a better understanding of the model that they attack to; therefore, they are more powerful than black-box attacks [14, 34]. This understanding might vary between different white-box attack algorithms; nonetheless, gradients of the model's loss function with respect to the input data is the most common information utilized to modify input samples and generate adversarial examples. First-order white-box adversaries are the most common attacking algorithms which only use the first order of gradients [6, 24, 25, 34] to craft the adversarial perturbation.
|
| 26 |
+
|
| 27 |
+
In the realm of defense mechanisms, approaches like distillation [26, 29], feature denoising [35], and adversarial training [11, 24] have been proposed to resolve the vulnerability of DNNs on adversarial attacks. Adversarial training is considered as a very intuitive yet very promising solution to improve the robustness of DNN models against adversarial attacks.
|
| 28 |
+
|
| 29 |
+
Madry et al. [24] illustrated that adversarial learning using Projected Gradient Descent (PGD) for generating on-the-fly adversarial samples during training can lead to trained models which provide robustness guarantees against all first-order adversaries. They experimentally showed that the adversarial examples in a $l_{\infty}$ ball distance around the original sample with many random starts in the ball generated with PGD, all have approximately the same loss value when are fed to the network as input. Due to this fact, they provide the guarantee that as long as the attack algorithm is a first-order adversary, the local maxima of the loss value would not be significantly better than those found by PGD.
|
| 30 |
+
|
| 31 |
+
Applying regularization techniques is another approach to train more robust network models [5]. To do so, either new loss functions were proposed with added or embedded regularization terms (i.e., adversarial generalization) [10, 15, 33] or the network was augmented with new modules [14, 20, 21, 22] for regularization purposes making the network more robust at the end.
|
| 32 |
+
|
| 33 |
+
Randomization approaches and specifically random noise injection [14, 21, 22] has been recently proposed as one of the network augmentation methods to address the adversarial robustness in deep neural networks. A random noise generator as an extra module is embedded in the network architecture adding random noise to the input or the output of layers. Although the noise distribution usually follows a Gaussian distribution for its simplicity, it is possible to use different noise distributions. This noise augmentation technique adds more uncertainty in the network and makes the adversarial attack optimization harder which improves the robustness of the model.
|
| 34 |
+
|
| 35 |
+
While the noise injection technique has shown promising results, determining the parameters of the distribution and how to add the noise values to the network are still challenging. The majority of the methods proposed in literature [20, 21, 22, 36] manually select the parameters of the distribution. However, He et al. [14] recently proposed a new algorithm in which the noise distributions are learned in the training step. Their proposed Parametric Noise Injection (PNI) technique injects trainable noise to the activations or the weights of the CNN model. The problem associated to the proposed PNI technique is that the noise parameters tend to converge to zero as the training progresses, making the noise injection progressively less effective over time. This problem is partially compensated through the utilization of PGD adversarial training as suggested by Madry et al. [24], but the decreasing trend of noise parameter magnitudes still remains, and thus, limits the overall effect of the PNI.
|
| 36 |
+
|
| 37 |
+
In this paper, the Learn2Perturb framework, an end-to-end feature perturbation learning approach is proposed to improve the robustness of DNN models. An alternating back-propagation strategy is introduced where the following two steps are performed in an alternating manner: i) the network parameters are updated in the presence of feature perturbation injection to improve adversarial robustness, and ii) the parameters of the perturbation injection modules are updated to strengthen perturbation capabilities against the improved network. Decoupling these two steps helps both sets of parameters (i.e., network parameters and perturbation injection modules) to be trained to their full functionalities and produces a more robust network. To this end, our contributions can be folded as below:
|
| 38 |
+
|
| 39 |
+
- A highly efficient and stable end-to-end learning mechanism is introduced to learn the perturbation
|
| 40 |
+
|
| 41 |
+
injection modules to improve the model robustness against adversarial attacks. The proposed alternating back-propagation method inspired by Expectation-Maximization (EM) concept trains the network and noise parameters in a consecutive way gradually without any significant parameter-tuning effort.
|
| 42 |
+
|
| 43 |
+
- A new effective regularizer is introduced to help the network learning process which smoothly improves the noise distributions. Combining this regularizer and PGD-adversarial training helps the proposed Learn2Perturb algorithm achieve the state-of-the-art performances.
|
| 44 |
+
- Exhaustive experiments are conducted for various white-box and black-box adversarial attacks on CIFAR-10 and CIFAR-100 datasets, and new state-of-the-art performances are reported for these algorithms.
|
| 45 |
+
|
| 46 |
+
The paper is organized as follows: section 2 provides a discussion of related work in terms of different adversarial attacks; the proposed Learn2Perturb approach is presented in Section 3 and experimental results and discussion are presented in Section 4 followed by a conclusion.
|
| 47 |
+
|
| 48 |
+
# 2. Related Work
|
| 49 |
+
|
| 50 |
+
The gradients of the loss function with respect to the input data are very common information used by adversarial attack algorithms. In this type of approaches, the proposed algorithms try to maximize the loss value of the network by crafting the minimum perturbations into input data.
|
| 51 |
+
|
| 52 |
+
Fast Gradient Sign Method (FGSM) [34] is the simplest yet a very efficient white-box attack. For a DNN parametrized with $W$ (i.e., where the network is encoded as $f_{W}(x)$ ) and loss function $\mathcal{L}$ , for any input $x$ , the FGSM attack computes the adversarial example $x'$ as:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
x ^ {\prime} = x + \epsilon \cdot \operatorname {s i g n} \left(\nabla_ {x} \mathcal {L} \left(f _ {W} (x), x\right)\right) \tag {1}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
where $\epsilon$ determines the attack strength and $\mathrm{sign}(\cdot)$ returns the sign tensor for a given tensor. Using this gradient ascent step, FGSM tries to locally maximize the loss function $\mathcal{L}$ .
|
| 59 |
+
|
| 60 |
+
The FGSM approach is extended by projected gradient descent (PGD) [19, 24] where for a number of $k$ iterations, PGD produces $x_{t + 1} = \mathrm{bound}_{l_p}(FGSM(x_t),x_0)$ , in which $x_0$ is the original input and $0\leq t\leq k - 1$ . Using projection, the bound $\mathbf{l}_p(x',x)$ simply ensures that $x^{\prime}$ is within a specified $l_{p}$ range of the original input $x$ .
|
| 61 |
+
|
| 62 |
+
Madry et al. [24] illustrated that different PGD attack restarts, each with a random initialization for input within the $l_{\infty}$ -ball around $x$ , find different local maxima with very similar loss values. Based on this finding, they claimed that PGD is a universal first-order adversary.
|
| 63 |
+
|
| 64 |
+
C&W attack [6] is another strong first-order attack algorithm which finds perturbation $\delta$ added to input $x$ by solving the optimization problem formulated as:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\min \left[ | | \delta | | _ {p} + c \cdot f (x + \delta) \right] \quad s. t. \quad x + \delta \in [ 0, 1 ] ^ {n} \tag {2}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $p$ shows the norm distance. While $p$ can be any arbitrary number, C&W is most effective when $p = 2$ ; as such, here, we only consider $l_{2}$ -norm for C&W evaluations. Moreover, $f(\cdot)$ encodes the objective function driving the perturbed sample to be misclassified (ideally $f(\cdot) \leq 0$ ), and $c$ is a constant balancing the two terms involved in 2. It is worth noting that, all the white-box attacks explained here (i.e. FGSM, PGD, and C&W) are first-order adversaries.
|
| 71 |
+
|
| 72 |
+
Black-box attacks can only access a model via queries; sending inputs and receiving corresponding outputs to estimate the inner working of the network. To fool a network, the well-known black-box attacks either use surrogate networks [16, 28] or estimate the gradients [8, 32] via multiple queries to the targeted network.
|
| 73 |
+
|
| 74 |
+
In the surrogate network approach, a new network mimicking the behavior of the target model [28] is trained. Attackers perform queries on the target model and generate a synthetic dataset with the query inputs and associated outputs. Having this dataset, a surrogate network is trained. Recent works [23, 28] showed that adversarial examples fooling the surrogate model can also fool the target model with a high success rate. A simple variant of the surrogate model attack, Transferability adversarial attacks [27], is when the surrogate model has access to the same training data as the interested network. Adversarial examples fooling the substituted network are usually transferred to (and fool) the target model as well. Since substitute networks may not always be successful [8, 16], black-box gradient estimation attacks only deal with the target model itself. Zeroth order optimization (ZOO) [8] and attacks alternating only a few pixels [32] approaches are examples of this kind of black-box attack, to name a few.
|
| 75 |
+
|
| 76 |
+
# 3. Methodology
|
| 77 |
+
|
| 78 |
+
In this work, we propose a new framework called Learn2Perturb for improving the adversarial robustness of a deep neural network through end-to-end feature perturbation learning. Although it has been illustrated both theoretically and practically [2, 30] that randomization techniques can improve the robustness of deep neural networks $^2$ , there is still not an effective way to select the distribution of the noise in the neural networks. In Learn2Perturb, trainable perturbation-injection modules are integrated into a deep neural network with the goal of injecting customized perturbations into the feature space at different parts of the
|
| 79 |
+
|
| 80 |
+
network to increase the uncertainty of its inner workings within an optimal manner. We formulate the joint problem of learning the model parameters and the perturbation distributions of the perturbation-injection modules in an end-to-end learning framework via an alternating back-propagation approach [12]. As shown in Figure 1, the proposed alternating back-propagation strategy for the joint learning of the network parameters and the perturbation-injection modules is inspired from the EM technique; and it comprises of two key alternating steps: i) Perturbation-injected network training: the network parameters are trained by gradient descent while the proposed perturbation-injection modules add layer-wise noise to the feature maps (different locations in the network). Noise injection parameters are fixed during this step. ii) Perturbation-injection module training: the parameters of the perturbation-injection modules are updated via gradient descent and based on the regularization term added to the network loss function, while network parameters are fixed.
|
| 81 |
+
|
| 82 |
+
The effect of using such a training strategy is that in step (i), the model minimizes the loss function of the classification problem when noise is being injected into multiple layers, and the model learns how to classify despite the injected perturbations. And in step (ii), the noise parameters are updated with a combination of network gradients and the regularization term applied to these parameters. The goal of this step is to let the network react to the noise injections via gradient descent and pose a bigger challenge to the network via a smooth increase of noise based on the regularizer. The trained perturbation-injection modules perturb the feature layers of the model in the inference phase as well.
|
| 83 |
+
|
| 84 |
+
# 3.1. Perturbation-Injection Distribution
|
| 85 |
+
|
| 86 |
+
Given the observable variables $X$ , $W$ as the input and the set of weights in the neural network, respectively, the goal is to model the neural network as a probabilistic model such that the output of the model, $Y$ , is drawn from a distribution rather than a deterministic function. A probabilistic output is more robust against adversarial perturbation. As such, $Y$ can be formulated as:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
Y \sim P (X; W, \theta) \tag {3}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where $W$ and $\theta$ show the set of network and noise parameters, respectively, and $X$ is the input fed into the network. The output $Y$ is drawn from a distribution driven from $W$ and the set of independent parameters, $\theta$ .
|
| 93 |
+
|
| 94 |
+
For a given layer $l$ of the neural network, the perturbation-injection modules can be used to achieve the following probability model for the layer's final activations:
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
P _ {l} \left(X _ {l}; W _ {l}, \theta_ {l}\right) = f _ {l} \left(X _ {l}, W _ {l}\right) + Q \left(\theta_ {l}\right) \tag {4}
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 1. Overview of Learn2Perturb: During training, an alternating back-propagation strategy is introduced where the following two steps are performed in an alternating manner: i) the network parameters are updated in the presence of feature perturbation injection to improve adversarial robustness, and ii) the parameters of the perturbation injection modules are updated to strengthen perturbation capabilities against improved network. The learned perturbation injection modules can be added to some or all tensors in the network to inject perturbations in feature space for two-prong adversarial robustness: i) improve robustness during training when training under perturbation injection, and ii) increase network uncertainty through interference-time perturbation injection to make it difficult to learn an adversarial attack.
|
| 102 |
+
|
| 103 |
+
where $f_{l}(X_{l},W_{l})$ represents the activation of layer $l$ with weights $W_{l}$ , $X_{l}$ as its input, and $Q(\theta_l)$ is a noise distribution with parameters $\theta_{l}$ following an exponential distribution function. While $Q(\cdot)$ can be any exponential distribution, we choose Gaussian distribution because of its simplicity and effectiveness, which can be formulated as follow:
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
Q \left(\theta_ {l}\right) = \theta_ {l} \cdot \mathcal {N} (0, 1). \tag {5}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
The parameter $\theta_{l}$ scales the magnitude of the output from the normal distribution encoding the standard deviation of the distribution $Q(\cdot)$ . Substituting the right hand-side of $Q(\cdot)$ defined in (5) into (4) enforces $P_{l}(\cdot)$ to follow a Gaussian distribution:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
P _ {l} \left(X _ {l}; W _ {l}, \theta_ {l}\right) \approx \mathcal {N} \left(f _ {l} \left(X _ {l}, W _ {l}\right), \theta_ {l}\right). \tag {6}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
This new probabilistic formulation of layer activations can be extended to the whole network, so instead of a deterministic output $Y$ , network outputs $P(X;W,\theta) \approx \mathcal{N}\Big(f(X,W),\theta \Big)$ , with $W$ and $\theta$ showing the parameters of all layers.
|
| 116 |
+
|
| 117 |
+
Having this new formulation for a deep neural network, a proper training process to effectively learn both sets of these parameters is highly desired. To this end, we propose a new training mechanism to learn both network parameters and perturbation-injection modules in an alternating backpropagation approach.
|
| 118 |
+
|
| 119 |
+
# 3.2. Alternating Back-Propagation
|
| 120 |
+
|
| 121 |
+
The proposed neural network structure comprises of two sets of parameters, $W$ and $\theta$ , being trained given training samples $(X, T)$ as the input and the ground truth output to the network. However, these two sets of parameters are in conflict with each other and try to push the learning process in two opposite directions. Having the probabilistic representation $P(\cdot)$ , $W$ is mapping the input $X$ to output $T$ based
|
| 122 |
+
|
| 123 |
+
on the mean of the distribution $P(\cdot)$ , $f(X, W)$ ; while, the set of $\theta$ improves the generalization of the model by including perturbations into the training mechanism.
|
| 124 |
+
|
| 125 |
+
The proposed alternating back-propagation framework decouples the learning process associated to network parameters $W$ and perturbation-injection distributions $\theta$ to effectively update both sets of parameters. To this end, the network parameters and perturbation-injection modules are updated in a consecutive manner.
|
| 126 |
+
|
| 127 |
+
The training process of the proposed Learn2Perturb is done within two main steps:
|
| 128 |
+
|
| 129 |
+
- Perturbation-injected network training; the parameters of the network, $W$ , are updated via gradient descent to decrease the network loss in the presence of perturbations, caused by the currently fixed perturbation-injection distribution, $Q|_{\theta}$ .
|
| 130 |
+
- Perturbation-injection distribution training; the parameters of the perturbation-injection distribution, $\theta$ , are updated given the set of parameters $W$ are fixed to improve the generalization of the network and as a result, improve its robustness against adversarial perturbation.
|
| 131 |
+
|
| 132 |
+
These two steps are performed consecutively; however, the number of iterations for each step before moving to the next step can be determined based on the application.
|
| 133 |
+
|
| 134 |
+
Utilizing a generic loss function in the training of the network when the perturbation-injection modules are embedded forces the noise parameters to converge to zero and eventually removes the effect of the perturbation-injection distributions by making them very small. In other words, the neural network with generic loss tends to learn $P(\cdot)$ as a Dirac distribution where the $Q(\cdot)$ is close to zero. As such, a new regularization term is designed and added to the loss function to prevent the aforementioned problem; the new
|
| 135 |
+
|
| 136 |
+
Algorithm 1: Alternating back-propagation of the Learn2Perturb framework
|
| 137 |
+
Input: Training set D = { $(x_i, t_i), i = 1, \dots, n\}$ Number of training epochs, $I$ $0$ , initial values for $t$ Learning rate, lr, and constant $y$
|
| 138 |
+
Output: Learned parameters $W$ Learned noise distributions $Q(\theta)$
|
| 139 |
+
for $t \gets 1$ to $I$ do
|
| 140 |
+
Perturbation-injected training: update $W$ based on the loss function $\mathcal{L}(\cdot)$ Eq. (7) while $0$ is fixed
|
| 141 |
+
$W^t \gets W^{t-1} - lr \cdot \nabla_W \mathcal{L}\left(P(X; W^{t-1}, \theta^{t-1}), T\right)$
|
| 142 |
+
Perturbation-injection module training: update $0$ based on Eq. (7) while $W$ is fixed
|
| 143 |
+
$\theta^t \gets \theta^{t-1} - lr$ .
|
| 144 |
+
$\nabla_\theta \mathcal{L}\left(P(X; W^{t-1}, \theta^{t-1}), T\right) - \gamma \cdot \nabla_\theta g(\theta^{t-1})$
|
| 145 |
+
Values of $\theta^t$ smaller than $0$ are projected to $0$
|
| 146 |
+
end
|
| 147 |
+
|
| 148 |
+
loss function can be formulated as:
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\underset {W, \theta} {\arg \min } \left[ \mathcal {L} (P (X; W, \theta), T) + \gamma \cdot g (\theta) \right] \tag {7}
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
where $\mathcal{L}(\cdot)$ is the classification loss function (i.e., usually cross entropy) such that the set of parameters $W$ need to be tuned to generate the associated output of the input $X$ . The function $g(\theta)$ is the regularizer enforcing smooth increase in the parameters $\theta = \{\theta_{l,j}\}_{j=1:K}$ , where $\theta_{l,j}$ shows the $j$ th noise parameter in the $l$ th layer, corresponding to an element of the output feature map. $K$ and $M_l$ represent the number of layers and noise parameters per layer, respectively. $\gamma$ is the hyper-parameter balancing the two terms in the optimization. Independent distributions are learnt for perturbation-injection models in each layer. The regularizer function should be enforced with an annealing characteristic where the perturbation-injection distributions are gradually improved and converged thus the parameters $W$ can be trained effectively. As such the regularization function is formulated as below:
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
g (\theta) = - \frac {\theta^ {1 / 2}}{\tau} \tag {8}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
where $\tau$ is the output of a harmonic series given the current epoch value in the training process. Using a harmonic series to determine $\tau$ , gradually decreases the effect of the regularizer function in the loss and lets the neural network
|
| 161 |
+
|
| 162 |
+
converge. While the squared root of $\theta$ makes the equation easier to take the derivative, it also provides a slower rate of change for larger values of $\theta$ which helps the network to converge to a steady state smoothly.
|
| 163 |
+
|
| 164 |
+
As seen in Algorithm 1, first, the perturbation-injection distributions $Q$ and network parameters $W$ are initialized. Then the model parameters $W$ are updated based on the classification loss $\mathcal{L}(\cdot)$ , and this loss function is minimized in the presence of perturbation-injection modules. Then, the perturbation-injection distributions $Q$ are updated by performing the "perturbation-injection module training" step.
|
| 165 |
+
|
| 166 |
+
One of the main advantages of this approach is that since the learning process of these two sets of parameters is decoupled, the training process can be easily performed without a significant manual hyper-parameter tweaking compared to other randomized state-of-the-art approaches. Moreover, the proposed method can help the model to converge faster as the perturbation-injection distributions are continuously improved during the training process.
|
| 167 |
+
|
| 168 |
+
# 3.3. Model Setup, Training and Inference
|
| 169 |
+
|
| 170 |
+
Perturbation-injection distributions are added to the network in different locations and specifically after each convolution operation to create a new network model based on the Learn2Perturb framework. As shown in Figure 1, these modules generate the perturbations with the same size as the feature activation maps of that specific layer. Each perturbation-injection distribution follows independent distribution and therefore, the generated perturbation value for each feature is drawn independently.
|
| 171 |
+
|
| 172 |
+
In the training phase, the model parameters and the perturbation-injection distributions are trained in an iterative and consecutive manner and based on the proposed alternating back-propagation approach. It is worth to mention that the model parameters are trained for 20 epochs before activating the perturbation distributions to help the network parameters converge to a good initial point. After 20 epochs, the alternating back-propagation is applied to train both model parameters and perturbation-injection distributions. Furthermore, we take advantage of adversarial training technique which adds on-the-fly adversarial examples into the training data, to improve the model's robustness more effectively against perturbations. As such, PGD adversarial technique is incorporated in the training to provide stronger guarantee bounds against all first-order adversaries optimizing in $l_{\infty}$ space.
|
| 173 |
+
|
| 174 |
+
The perturbation-injection distributions are applied in the inference step, as well. This will introduce a dynamic nature into the inference process and as a result, it makes it harder for the adversaries to find an optimal adversarial examples to fool the network.
|
| 175 |
+
|
| 176 |
+
# 4. Experiments
|
| 177 |
+
|
| 178 |
+
To illustrate the effectiveness of the proposed Learn2Perturb, we train various models using this framework and evaluate their robustness against different adversarial attack algorithms. Furthermore, the proposed method is compared with different state-of-the-art approaches including PGD adversarial training [24] (also denoted as Vanilla model), Parametric Noise Injection (PNI) [14], Adversarial Bayesian Neural Network (Adv-BNN) [22], Random Self-Ensemble (RSE) [21] and PixelDP (DP) [20].
|
| 179 |
+
|
| 180 |
+
# 4.1. Dataset & Adversarial Attacks
|
| 181 |
+
|
| 182 |
+
For the evaluation purpose, the CIFAR-10 and CIFAR-100 datasets [18] are utilized for training and evaluating the networks. Both of these datasets contain 50,000 training data and 10,000 test data of natural color images of $32 \times 32$ . While CIFAR-10 has 10 different class with 6000 images per class, CIFAR-100 has 100 classes with 600 images per class.
|
| 183 |
+
|
| 184 |
+
Different white-box and black-box attacks are utilized to evaluate the proposed Learn2Perturb along with state-of-the-art methods. The competing algorithms are evaluated via white-box attacks including FGSM [34], PGD [19] and C&W attacks [6]. One-Pixel attack [32], and Transferability attack [27] are utilized as the black-box attacks to evaluate the competing method.
|
| 185 |
+
|
| 186 |
+
# 4.2. Experimental Setup
|
| 187 |
+
|
| 188 |
+
We use ResNet based architectures [13] as the baseline for our experiments; The classical ResNet architecture (i.e., ResNet-V1 and its variations) and the new ResNet architecture (i.e., ResNet-V2) are used for evaluation. The main difference between two architectures is the number of stages and the number of blocks in each stage. Moreover, average pooling is utilized for down-sampling in ResNet-V1 architecture while the ResNet-V2 uses $1 \times 1$ CNN layers for this purpose. Followed by the experimental setup proposed in [14], data normalization is done via adding a nontrainable layer at the beginning of the network and the adversarial perturbations are directly added to the original input data, before normalization being applied. Both adversarial training and robustness testing setup follow the same configurations as introduced in [24] and [14]. Adversarial training with PGD and testing robustness against PGD, are both done in 7 iterations with the maximum $l_{\infty} = 8 / 255$ (i.e., $\epsilon$ ) and step sizes of 0.01 for each iteration. FGSM attack also uses the same 8/255 limit for perturbation. For C&W attack, we use ADAM [17] optimizer with learning rate $5e^{-4}$ . Maximum number of iterations is 1000, and for the constant $c$ in 2 we choose the range $1e^{-3}$ to $1e^{10}$ ; furthermore to find the value of $c$ , binary search with up to 9
|
| 189 |
+
|
| 190 |
+
steps is performed. The confidence, $\kappa$ , parameter of C&W attack, which turns out to have a big effect while evaluating defense approaches involving randomization, takes values ranging from 0 to 5.
|
| 191 |
+
|
| 192 |
+
In the case of transferability attacks, a PGD adversarially trained network (i.e. a vanilla model) is used as the source network for generating adversarial examples and these adversarial samples are then utilized to attack competing models. For one/few-pixel attacks, we consider the case $\{1,2,3\}$ -pixel attack in this work.
|
| 193 |
+
|
| 194 |
+
# 4.3. Experimental Results
|
| 195 |
+
|
| 196 |
+
To evaluate the proposed Learn2Perturb framework, the method is compared with PGD adversarial trained model (also denoted as Vanilla). The proposed module is evaluated on three different ResNet architectures. Table 1 shows the effectiveness of the proposed Learn2Perturb method in improving the robustness of different networks architectures. Results demonstrate that the proposed perturbation-injection modules improve the network's robustness. As seen, the proposed perturbation-injection modules can provide robust performance on both 'ResNet-V1' (both with 20 and 56 layers) and 'ResNet-V2' (18 layers) architectures against both FGSM and PGD attacks which illustrates the effectiveness of the proposed module in providing more robust network architectures. Furthermore, the evaluation results for no defense approach (a network without any improvement) are provided as a reference point.
|
| 197 |
+
|
| 198 |
+
We also evaluate a variation of the proposed Learn2Perturb framework (i.e. Learn2Perturb-R) where we analyze a different approach in performing the two steps of "perturbation-injected network training" and "perturbation-injection module training". In this variation, the perturbation-injection modules are only updated using the regularizer function $g(\theta)$ , and network gradients are not used to update $\theta$ parameters.
|
| 199 |
+
|
| 200 |
+
As it can be seen in table 1, taking advantage of both network gradient and the regularizer performs better than when we only take into account the regulator effect. One reason to justify this outcome is allowing the gradient of loss function $\mathcal{L}(\cdot)$ to update perturbation-injection modules in Learn2Perturb. This would let the loss function to react to perturbations when they cannot tolerate the injected noise and updates the perturbation-injection noise modules more frequently. Nonetheless, the results in table 1 show that Learn2Perturb-R still outperforms other proposed methods in adversarial robustness, though it provides slightly lower accuracy on clean data.
|
| 201 |
+
|
| 202 |
+
# 4.4. Robustness Comparison
|
| 203 |
+
|
| 204 |
+
In this section, to further illustrate the effectiveness of the proposed Learn2Perturb framework, we compare
|
| 205 |
+
|
| 206 |
+
Table 1. Evaluating the effectiveness of the proposed perturbation-injection modules by comparing against adversarial training algorithm (Vanilla) within the proposed framework and its variation (Learn2Perturb-R).
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">#Parameter</td><td colspan="3">No defense</td><td colspan="3">Vanilla[24]</td><td colspan="3">Learn2Perturb-R</td><td colspan="3">Learn2Perturb</td></tr><tr><td>Clean</td><td>PGD</td><td>FGSM</td><td>Clean</td><td>PGD</td><td>FGSM</td><td>Clean</td><td>PGD</td><td>FGSM</td><td>Clean</td><td>PGD</td><td>FGSM</td></tr><tr><td>ResNet-V1(20)</td><td>269,722</td><td>92.10</td><td>0.0±0.0</td><td>14.10</td><td>83.80</td><td>39.10±0.10</td><td>46.60</td><td>81.15±0.02</td><td>50.23±0.14</td><td>55.89±0.04</td><td>83.62±0.02</td><td>51.13±0.08</td><td>58.41±0.07</td></tr><tr><td>ResNet-V1(56)</td><td>853,018</td><td>93.30</td><td>0.0±0.0</td><td>24.20</td><td>86.50</td><td>40.10±0.10</td><td>48.80</td><td>82.35±0.03</td><td>53.30±0.10</td><td>58.71±0.04</td><td>84.82±0.04</td><td>54.84±0.10</td><td>61.53±0.04</td></tr><tr><td>ResNet-V2(18)</td><td>11.173.962</td><td>95.20</td><td>0.1±0.0</td><td>43.10</td><td>85.46</td><td>43.90±0.00</td><td>52.50</td><td>82.46±0.17</td><td>53.33±0.12</td><td>59.09±0.17</td><td>85.30±0.09</td><td>56.06±0.16</td><td>62.43±0.06</td></tr></table>
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 2. Analyzing the effectiveness of the proposed method compared to state-of-the-art algorithms on different $\epsilon$ values for FGSM attack.
|
| 212 |
+
|
| 213 |
+
Learn2Perturb with PNI [14] and Adv-BNN [22] as two randomization state-of-the-art approaches to improve the robustness of deep neural networks. Table 2 reports these comparison results for different network architectures varying in network depth and capacity. We examine the effect of different network depths including ResNet-V1(20), ResNet-V1(32), ResNet-V1(44) and ResNet-V1(56) along with the effect of network width in Table 2 by increasing the number of filters in ResNet-V1(20) which results to ResNet-V1(20)[1.5×], ResNet-V1(20)[2×] and ResNet-V1(20)[4×]. As seen, while the competing methods do not provide consistent performance by increasing the capacity of the network (increasing depth or width) the proposed framework provides consistent robustness through different network capacities.
|
| 214 |
+
|
| 215 |
+
The reported results in Table 2 show that while PNI provides minor boosting in network accuracy on clean data, the proposed Learn2Perturb method performs with much higher accuracy when the input data is perturbed with adversarial noise. The main reason for this phenomena is the fact that PNI reach to a very low level of the noise perturbation during the training as the loss function tries to remove the effect of perturbation by making the noise parameters to zero. The results demonstrate that the proposed Learn2Perturb algorithm outperforms the PNI method by $4 - 7\%$ on both FGSM and PGD adversarial attacks. The proposed method is also compared with Adv-BNN [22]. Results show that while Adv-BNN can provide robust networks in some cases compared to PNI, it is not scalable when the network width is increased and the performance
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 3. Evaluating the robustness of the proposed Learn2Perturb compared with other state-of-the-art methods through different $\epsilon$ based on PGD attack.
|
| 219 |
+
|
| 220 |
+
of the networks drop drastically. This is illustrated one of the drawbacks of Bayesian approach which they need to be designed carefully for each network architecture separately.
|
| 221 |
+
|
| 222 |
+
It has been shown, there is no guarantee that methods robust against $l_{\infty}$ attacks would provide the same level of robustness against $l_{2}$ attacks [2]. Araujo et al. [2] illustrated experimentally that randomization technique trained with $l_{\infty}$ can improve the robustness against $l_{2}$ attacks as well. In this work we further validate this finding. In order to provide more powerful $l_{2}$ attacks challenging the effect of randomization, we apply C&W attacks with different confidence values, $\kappa$ . The parameter $\kappa$ enforces the $f(\cdot)$ in 2 to be $\leq -\kappa$ rather than simply $\leq 0$ . As seen in Table 3, for bigger values of $\kappa$ the success rate of C&W attack increases; nonetheless, our proposed method outperforms the other competing methods with a big margin for all values of $\kappa$ .
|
| 223 |
+
|
| 224 |
+
Table 4 shows the comparison results for the proposed method and state-of-the-art approaches in providing robust network model on CIFAR-10 dataset. The proposed Learn2Perturb method outperforms other state-the-art methods and provides a more robust network model with better performance when dealing with PGD attack.
|
| 225 |
+
|
| 226 |
+
We also analyze the effectiveness of the proposed method in dealing with different adversarial noise levels. To this end, the ResNet-V2(18) architecture is utilized for all competing methods. The network architectures are designed and trained via four different competing methods; and the trained networks are examined with both FGSM and PGD attacks but with a variation of $\epsilon$ values.
|
| 227 |
+
|
| 228 |
+
Table 2. The effect of network capacity on the performance of the proposed method and other state-of-the-art algorithms. The proposed Learn2Perturb is compared with Parametric Noise Injection (PNI) method [14] and Adv-BNN [22]. Results show the effectiveness of the proposed Learn2Perturb algorithm in training robust neural network models. To have a fair comparison, we evaluated methods on different network sizes and capacities. Result are reported by standard deviation because of the randomness involved in these methods.
|
| 229 |
+
|
| 230 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">#Parameter</td><td colspan="3">PNI [14]</td><td colspan="3">Adv-BNN [22]</td><td colspan="3">Learn2Perturb</td></tr><tr><td>Clean</td><td>PGD</td><td>FGSM</td><td>Clean</td><td>PGD</td><td>FGSM</td><td>Clean</td><td>PGD</td><td>FGSM</td></tr><tr><td>ResNet-V1(20)</td><td>269,722</td><td>84.90±0.1</td><td>45.90±0.1</td><td>54.50±0.4</td><td>65.76±5.92</td><td>44.95±1.21</td><td>51.58±1.49</td><td>83.62±0.02</td><td>51.13±0.08</td><td>58.41±0.07</td></tr><tr><td>ResNet-V1(32)</td><td>464,154</td><td>85.90±0.1</td><td>43.50±0.3</td><td>51.50±0.1</td><td>62.95±5.63</td><td>54.62±0.06</td><td>50.29±2.70</td><td>84.19±0.06</td><td>54.62±0.06</td><td>59.94±0.11</td></tr><tr><td>ResNet-V1(44)</td><td>658,586</td><td>84.70±0.2</td><td>48.50±0.2</td><td>55.80±0.1</td><td>76.87±0.24</td><td>54.62±0.06</td><td>58.55±0.49</td><td>85.61±0.01</td><td>54.62±0.06</td><td>61.32±0.13</td></tr><tr><td>ResNet-V1(56)</td><td>853,018</td><td>86.80±0.2</td><td>46.30±0.3</td><td>53.90±0.1</td><td>77.20±0.02</td><td>54.62±0.06</td><td>57.88±0.02</td><td>84.82±0.04</td><td>54.62±0.06</td><td>61.53±0.04</td></tr><tr><td>ResNet-V1(20)[1.5×]</td><td>605,026</td><td>86.00±0.1</td><td>46.70±0.2</td><td>54.50±0.2</td><td>65.58±0.42</td><td>28.07±1.11</td><td>36.11±1.29</td><td>85.40±0.08</td><td>53.32±0.02</td><td>61.10±0.06</td></tr><tr><td>ResNet-V1(20)[2×]</td><td>1,073,962</td><td>86.20±0.1</td><td>46.10±0.2</td><td>54.60±0.2</td><td>79.03±0.04</td><td>53.46±0.06</td><td>58.30±0.14</td><td>85.89±0.10</td><td>54.29±0.02</td><td>61.61±0.05</td></tr><tr><td>ResNet-V1(20)[4×]</td><td>4,286,026</td><td>87.70±0.1</td><td>49.10±0.3</td><td>57.00±0.2</td><td>82.31±0.03</td><td>52.61±0.12</td><td>59.01±0.04</td><td>86.09±0.05</td><td>55.75±0.07</td><td>61.32±0.02</td></tr><tr><td>ResNet-V2(18)</td><td>11,173,962</td><td>87.21±0.0</td><td>49.42±0.01</td><td>58.06±0.02</td><td>82.15±0.06</td><td>53.62±0.06</td><td>60.04±0.01</td><td>85.30±0.09</td><td>56.06±0.08</td><td>62.43±0.06</td></tr></table>
|
| 231 |
+
|
| 232 |
+
Table 3. Comparison results of the proposed Learn2Perturb and competing methods on C&W [6] attack.
|
| 233 |
+
|
| 234 |
+
<table><tr><td>Confidence</td><td>No defense</td><td>Vanilla</td><td>PNI</td><td>Adv-BNN</td><td>Learn2Perturb</td></tr><tr><td>κ = 0.0</td><td>0.0</td><td>0.0</td><td>66.9</td><td>78.9</td><td>83.6</td></tr><tr><td>κ = 0.1</td><td>0.0</td><td>0.0</td><td>66.1</td><td>78.1</td><td>84.0</td></tr><tr><td>κ = 1.0</td><td>0.0</td><td>0.0</td><td>34.0</td><td>65.1</td><td>76.4</td></tr><tr><td>κ = 2.0</td><td>0.0</td><td>0.0</td><td>16.0</td><td>49.1</td><td>66.5</td></tr><tr><td>κ = 5.0</td><td>0.0</td><td>0.0</td><td>00.8</td><td>16.0</td><td>34.8</td></tr></table>
|
| 235 |
+
|
| 236 |
+
Table 4. Comparison results of the proposed Learn2Perturb and state-of-the-art methods in providing a robust network model. Some of the numbers are extracted from [14]. The reported results are either based on the maximum accuracy achieved in the literature or own results if we achieved higher level of accuracy.
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Defense Method</td><td>Model</td><td>Clean</td><td>PGD</td></tr><tr><td>RSE [21]</td><td>ResNext</td><td>87.5</td><td>40</td></tr><tr><td>DP [20]</td><td>28-10 wide ResNet</td><td>87</td><td>25</td></tr><tr><td>Adv-BNN [22]</td><td>ResNet-V1(56)</td><td>77.20</td><td>54.62±0.06</td></tr><tr><td>PGD adv. training [24]</td><td>ResNet-V1(20) [4×]</td><td>87</td><td>46.1±0.1</td></tr><tr><td>PNI [14]</td><td>ResNet-V1(20) [4×]</td><td>87.7±0.1</td><td>49.1±0.3</td></tr><tr><td>Learn2Perturb</td><td>ResNet-V2(18)</td><td>85.3±0.1</td><td>56.3±0.1</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Figure 2 demonstrates the robustness of four competing methods in dealing with FGSM adversarial attack. As seen, while increasing $\epsilon$ decreases the robustness of all trained networks, the network designed and trained by the proposed Learn2Perturb approach outperforms other methods through all variations of adversarial noise values ( $\epsilon$ 's).
|
| 241 |
+
|
| 242 |
+
To confirm the results shown in Figure 2, the same experiment is conducted to examine the robustness of the trained networks on PGD attack. While the PGD attack is more powerful in fooling the networks, results show that the network designed and trained by the proposed Learn2Perturb framework still outperforms other state-of-the-art approaches.
|
| 243 |
+
|
| 244 |
+
# 4.5. Expectation over Transformation (EOT)
|
| 245 |
+
|
| 246 |
+
Athalye et. al [3] showed that many of the defense algorithms that take advantage of injecting randomization to network interior layers or applying random transformations on the input before feeding it to the network achieve robustness through false stochastic gradients. They further stated that these methods obfuscate the gradients that attackers utilize to perform iterative attacking optimizations. As such, they proposed the EOT attack (originally introduced in [4]) to evaluate these types of defense mechanisms. They showed
|
| 247 |
+
|
| 248 |
+
that the false gradients cannot protect the network when the attack uses the gradients which are the expectation over a series of transformations.
|
| 249 |
+
|
| 250 |
+
Since our Learn2Perturb algorithm and other competing methods involve randomization, the tested algorithms in this study are evaluated via the EOT attack method as well. To do so, followed by [30], at every iteration of PGD attack, the gradient is achieved as the expectation calculated from a Monte Carlo method with 80 simulations of different transformations. Results show that the network trained via PNI can provide $48.65\%$ robustness compared to AdvBNN which provides $51.19\%$ robustness for the CIFAR-10 dataset against this attack. Experimental result illustrates that the proposed Learn2Perturb approach can produce a model which achieves $53.34\%$ robustness and outperforms the other two state-of-the-art algorithms.
|
| 251 |
+
|
| 252 |
+
It is worth mentioning that the experimental results showed that neither the proposed Learn2Perturb method nor the other competing approaches studied in this work suffer from obfuscated gradients. Furthermore, the proposed Learn2Perturb method successfully passes the five metrics introduced in [3], and thus further illustrates that Learn2Perturb is not subjected to obfuscated gradients.
|
| 253 |
+
|
| 254 |
+
# 5. Conclusion
|
| 255 |
+
|
| 256 |
+
In this paper, we proposed Learn2Perturb, an end-to-end feature perturbation learning approach for improving adversarial robustness of deep neural networks. Learned perturbation injection modules are introduced to increase uncertainty during both training and inference to make it harder to craft successful adversarial attacks. A novel alternating back-propagation approach is also introduced to learn both network parameters and perturbation-injection module parameters in an alternating fashion. Experimental results on both different black-box and white-box attacks demonstrated the efficacy of the proposed Learn2Perturb algorithm, which outperformed the state-of-the-art methods in improving robustness against different adversarial attacks. Future work involves exploring extending the proposed modules to inject a greater perturbation type diversity for greater generalization in terms of adversarial robustness.
|
| 257 |
+
|
| 258 |
+
# References
|
| 259 |
+
|
| 260 |
+
[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018. 1
|
| 261 |
+
[2] Alexandre Araujo, Rafael Pinot, Benjamin Negrevergne, Laurent Meunier, Yann Chevaleyre, Florian Yger, and Jamal Atif. Robust neural networks using randomized adversarial training. arXiv preprint arXiv:1903.10219, 2019. 3, 7
|
| 262 |
+
[3] Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018. 8
|
| 263 |
+
[4] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017. 8
|
| 264 |
+
[5] Alberto Bietti, Grégoire Mialon, Dexiong Chen, and Julien Mairal. A kernel perspective for regularizing deep neural networks. In International Conference on Machine Learning, pages 664-674, 2019. 2
|
| 265 |
+
[6] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy (SP), pages 39-57. IEEE, 2017. 1, 3, 6, 8
|
| 266 |
+
[7] Nicholas Carlini and David Wagner. Audio adversarial examples: Targeted attacks on speech-to-text. In IEEE Security and Privacy Workshops (SPW), pages 1-7. IEEE, 2018. 1
|
| 267 |
+
[8] Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based blackbox attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pages 15-26. ACM, 2017. 3
|
| 268 |
+
[9] Minhao Cheng, Jinfeng Yi, Huan Zhang, Pin-Yu Chen, and Cho-Jui Hsieh. Seq2sick: Evaluating the robustness of sequence-to-sequence models with adversarial examples. arXiv preprint arXiv:1803.01128, 2018. 1
|
| 269 |
+
[10] Gamealeldin Elsayed, Dilip Krishnan, Hossein Mobahi, Kevin Regan, and Samy Bengio. Large margin deep networks for classification. In Advances in neural information processing systems, pages 842-852, 2018. 2
|
| 270 |
+
[11] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. 1
|
| 271 |
+
[12] Tian Han, Yang Lu, Song-Chun Zhu, and Ying Nian Wu. Alternating back-propagation for generator network. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. 3
|
| 272 |
+
[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 6
|
| 273 |
+
[14] Zhezhi He, Adnan Siraj Rakin, and Deliang Fan. Parametric noise injection: Trainable randomness to improve deep neural network robustness against adversarial attack. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 588-597, 2019. 1, 2, 6, 7, 8
|
| 274 |
+
[15] Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial
|
| 275 |
+
|
| 276 |
+
manipulation. In Advances in Neural Information Processing Systems, pages 2266-2276, 2017. 2
|
| 277 |
+
[16] Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. arXiv preprint arXiv:1804.08598, 2018. 1, 3
|
| 278 |
+
[17] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 6
|
| 279 |
+
[18] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. 6
|
| 280 |
+
[19] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. 2, 6
|
| 281 |
+
[20] Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified robustness to adversarial examples with differential privacy. arXiv preprint arXiv:1802.03471, 2018. 2, 6, 8
|
| 282 |
+
[21] Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In Proceedings of the European Conference on Computer Vision (ECCV), pages 369–385, 2018. 2, 6, 8
|
| 283 |
+
[22] Xuanqing Liu, Yao Li, Chongruo Wu, and Cho-Jui Hsieh. Adv-bnn: Improved adversarial defense through robust bayesian neural network. arXiv preprint arXiv:1810.01279, 2018. 2, 6, 7, 8
|
| 284 |
+
[23] Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. arXiv preprint arXiv:1611.02770, 2016. 3
|
| 285 |
+
[24] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. 1, 2, 6, 7, 8
|
| 286 |
+
[25] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2574–2582, 2016. 1
|
| 287 |
+
[26] Nicolas Papernot and Patrick McDaniel. On the effectiveness of defensive distillation. arXiv preprint arXiv:1607.05113, 2016. 1
|
| 288 |
+
[27] Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016. 3, 6
|
| 289 |
+
[28] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia conference on computer and communications security, pages 506-519. ACM, 2017. 1, 3
|
| 290 |
+
[29] Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In IEEE Symposium on Security and Privacy (SP), pages 582-597. IEEE, 2016. 1
|
| 291 |
+
[30] Rafael Pinot, Laurent Meunier, Alexandre Araujo, Hisashi Kashima, Florian Yger, Cédric Gouy-Pailler, and Jamal Atif.
|
| 292 |
+
|
| 293 |
+
Theoretical evidence for adversarial robustness through randomization: the case of the exponential family. arXiv preprint arXiv:1902.01148, 2019. 3, 8
|
| 294 |
+
[31] Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, pages 1528-1540. ACM, 2016. 1
|
| 295 |
+
[32] Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. IEEE Transactions on Evolutionary Computation, 2019. 3, 6
|
| 296 |
+
[33] Shizhao Sun, Wei Chen, Liwei Wang, Xiaoguang Liu, and Tie-Yan Liu. On the depth of deep neural networks: A theoretical view. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. 2
|
| 297 |
+
[34] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. 1, 2, 6
|
| 298 |
+
[35] Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan L Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 501-509, 2019. 1
|
| 299 |
+
[36] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan. Theoretically principled trade-off between robustness and accuracy. arXiv preprint arXiv:1901.08573, 2019. 2
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21c783103aac2a317481e80da5497b368e71a76bc7f05498601b535f815f2ccb
|
| 3 |
+
size 337374
|
learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce9480e2609ff09fdd2fdecce07f1e4507207cb97e0710629e709e95b0f49ee4
|
| 3 |
+
size 411392
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b94d0167f5b1c28500b0d7f023dfa6356a3dc06a660ccc435f5b853b3fae322b
|
| 3 |
+
size 89283
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6add969ca6991526658c21a746555ca4643e8b3b5ebb5c8bcd0b8764630c44c
|
| 3 |
+
size 115690
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a02f4025c90993814164c21128193d053695ad5abee95782ca9991ca9d635e8
|
| 3 |
+
size 2112542
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/full.md
ADDED
|
@@ -0,0 +1,511 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learned Image Compression with Discretized Gaussian Mixture Likelihoods and Attention Modules
|
| 2 |
+
|
| 3 |
+
Zhengxue Cheng $^{1}$ , Heming Sun $^{2,3}$ , Masaru Takeuchi $^{2}$ , Jiro Katto $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Department of Computer Science and Communication Engineering, Waseda University, Tokyo, Japan
|
| 6 |
+
|
| 7 |
+
$^{2}$ Waseda Research Institute for Science and Engineering, Tokyo, Japan $^{3}$ JST, PRESTO, 4-1-8 Honcho, Kawaguchi, Saitama, Japan
|
| 8 |
+
|
| 9 |
+
{zxcheng@asagi., hemingsun@aoni., masaru-t@aoni., katto@}waseda.jp
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Image compression is a fundamental research field and many well-known compression standards have been developed for many decades. Recently, learned compression methods exhibit a fast development trend with promising results. However, there is still a performance gap between learned compression algorithms and reigning compression standards, especially in terms of widely used PSNR metric. In this paper, we explore the remaining redundancy of recent learned compression algorithms. We have found accurate entropy models for rate estimation largely affect the optimization of network parameters and thus affect the rate-distortion performance. Therefore, in this paper, we propose to use discretized Gaussian Mixture Likelihoods to parameterize the distributions of latent codes, which can achieve a more accurate and flexible entropy model. Besides, we take advantage of recent attention modules and incorporate them into network architecture to enhance the performance. Experimental results demonstrate our proposed method achieves a state-of-the-art performance compared to existing learned compression methods on both Kodak and high-resolution datasets. To our knowledge our approach is the first work to achieve comparable performance with latest compression standard Versatile Video Coding (VVC) regarding PSNR. More importantly, our approach generates more visually pleasant results when optimized by MS-SSIM.
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Image compression is an important and fundamental research topic in the field of signal processing for many decades to achieve efficient image transmission and storage. Classical image compression standards include JPEG [1], JPEG2000 [2], HEVC/H.265 [3] and ongoing Versatile Video Coding (VVC) [4] which will be the next generation compression standard expected by the end of 2020. Typically they rely on hand-crafted creativity to present module
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Proposed Method [MS-SSIM 0.106bhp, 27.21dB, 0.952
|
| 25 |
+
Proposed Method [MSE] 1.101hnp,30.72dB,0.929
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Original Image
|
| 29 |
+
HEVC(BPG),0101-30.03 IP 0.016
|
| 30 |
+
Figure 1: Visualization of reconstructed images Kodim04 from Kodak dataset with approximately 0.1 bpp.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
JPG2000,39.58/IF 0.001
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
JPEG, 312x312, p. 776
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
VVC (VTM 5.2), 111Hz, 30.80-HP, 0.92
|
| 40 |
+
0.111Bpp, 30.80dB, 0.92)
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
$\frac{1}{2} =$ 小圆
|
| 44 |
+
$\therefore m = \frac{3}{11}$
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
STG2000
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
JPEG
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
$\therefore m = \frac{3}{11}$
|
| 54 |
+
$\therefore m - 1 \neq 0$ ;
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
HEVC
|
| 58 |
+
|
| 59 |
+
based encoder/decoder (codec) block diagrams. They use fixed transform matrix, intra prediction, quantization, context adaptive arithmetic coders and various de-blocking or loop filters to reduce spatial redundancy to improve the coding efficiency. The standardization of a conventional codec has historically spanned several years. Along with the fast development of new image formats and the proliferation of high-resolution mobile devices, existing image compression standards are not expected to be an optimal and general solutions for all kinds of image contents.
|
| 60 |
+
|
| 61 |
+
Various approaches has been investigated for end-to-end image compression. Recently, the notable approaches are context-adaptive entropy models for learned image compression [19, 20, 21] to achieve superior performance among all the learned codecs. The work [19] proposed a hyperprior to add additional bits to model the entropy model. The work [20] jointly combine an autoregressive mask convolution and the hyperprior. The work [21] proposed a quite similar idea by considering two types of contexts, bit-consuming contexts (that is, hyperprior) and bit-free contexts (that is, autoregressive model) to realize a context-
|
| 62 |
+
|
| 63 |
+
adaptive entropy model. Our proposed methods are based on the development of these recent entropy model techniques to further improve the performance.
|
| 64 |
+
|
| 65 |
+
In this paper, our main contribution is to present a more accurate and flexible entropy model by leveraging discretized Gaussian mixture likelihoods. We visualize the spatial redundancy of compressed codes from recent learned compression techniques. Motivated from it, we propose to use discretized Gaussian mixture likelihoods to parameterize the distributions, which removes remaining redundancy to achieve accurate entropy model, and thus directly lead to fewer required encoding bits. Besides, we adopt a simplified version of attention module into our network architecture. Attention module can make learned models pay more attention to complex regions to improve our coding performance with moderate training complexity.
|
| 66 |
+
|
| 67 |
+
Experimental results demonstrate our proposed method leads to the state-of-the-art performance on both PSNR and MS-SSIM quality metrics, in comparison with classical image compression standards HEVC, JPEG2000, JPEG and existing deep learning based compression approaches. To our knowledge, we are the first work to reach very close performance with ongoing versatile video coding test model VTM 5.2 with intra profile in terms of PSNR. Moreover, our method produces visually pleasant reconstructed images when optimizing by MS-SSIM as Fig. 1.
|
| 68 |
+
|
| 69 |
+
# 2. Related Work
|
| 70 |
+
|
| 71 |
+
Hand-crafted Compression Existing image compression standards, such as JPEG [1], JPEG2000 [2], HEVC [3] and VVC [4], reply on hand-crafted module design individually. Specifically, these modules include intra prediction, discrete cosine transform or wavelet transform, quantization, and entropy coder such as Huffman coder or content adaptive binary arithmetic coder (CABAC). They design each module with multiple modes and conduct the rate-distortion optimization to determine the best mode. Especially, VVC [4] supports larger coding unit, more prediction modes, more transform types and other coding tools. Besides, along with the development of classical compression algorithms, some hybrid methods have been proposed, by taking advantage of both conventional compression algorithms and latest learned super resolution approaches, such as [23].
|
| 72 |
+
|
| 73 |
+
Learned Compression Recently, we have seen a great surge of deep learning based image compression approaches utilizing autoencoder architecture [5], which have achieved a great success with promising results. The development of previous learning based compression models have spanned several years and have many related works. In the early stage, some works are proposed to deal with non-differential quantization and rate estimation to make end-to-end training possible, such as [6, 7, 8]. After that, some works focus on the design of network structure, which
|
| 74 |
+
|
| 75 |
+
is able to extract more compact and efficient latent representation and to reconstruct high-quality images from compressed features. For instance, some works [9, 10, 11] use recurrent neural networks to compress the residual information recursively, but they mainly relied on binary representation at each iteration to achieve scalable coding for image compression. Some approaches [12, 13, 14] use generative models to learn the distribution of images using adversarial training to achieve better subjective quality at extremely low bit rate. Some approaches include a content-weighted strategy [15] or de-correlating different channels using principle component analysis [16], or consider energy compaction [17], or use deep residual units to enhance the network architecture [18]. Recently, several studies investigate the adaptive context model for entropy estimation to navigate the optimization process of neural network parameters to achieve best tradeoff between reconstruction errors and required bits (entropy), including [19, 20, 21, 22]. Entropy estimation techniques have greatly improved the learned compression algorithms, and the most representative methods are hyperprior model and joint model. However, there is still a gap between the estimated distribution and true marginal distribution of latent representation.
|
| 76 |
+
|
| 77 |
+
Parameterized Model Some image generation studies have investigated several parameterized distribution models. For instance, standard PixelCNN [24] uses full 256-way softmax likelihoods, but they are extremely memory-consuming. To address this problem, PixelCN++ [25] proposed a discretized logistic mixture likelihoods to achieve faster training. Learned lossless image compression work L3C [26] followed the PixelCNN++ to use a logistic mixture model. These works are basically used to estimate the likelihoods of 8-bit pixel values with fixed range of [0, 255]. However, in learned image compression task, few studies explore the effect of parameterized distribution models.
|
| 78 |
+
|
| 79 |
+
# 3. Proposed Method
|
| 80 |
+
|
| 81 |
+
# 3.1. Formulation of Learned Compression Models
|
| 82 |
+
|
| 83 |
+
In the transform coding approach [27], image compression can be formulated by (as Fig. 2(a))
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array}{l} \boldsymbol {y} = g _ {a} (\boldsymbol {x}; \phi) \\ \hat {\boldsymbol {y}} = Q (\boldsymbol {y}) \tag {1} \\ \hat {\boldsymbol {x}} = g _ {s} (\hat {\boldsymbol {y}}; \boldsymbol {\theta}) \\ \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\pmb{x}, \hat{\pmb{x}}, \pmb{y}$ , and $\hat{\pmb{y}}$ are raw images, reconstructed images, a latent presentation before quantization, and compressed codes, respectively. $\phi$ and $\theta$ are optimized parameters of analysis and synthesis transforms. $U|Q$ represents the quantization and entropy coding. During the training, the quantization is approximated by a uniform noise $\mathcal{U}\left(-\frac{1}{2},\frac{1}{2}\right)$ to generate noisy codes $\tilde{\pmb{y}}$ . During the inference, $U|Q$ represents
|
| 90 |
+
|
| 91 |
+

|
| 92 |
+
(a) Baseline
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
(b) Hyperprior
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
(c) Joint
|
| 99 |
+
Figure 2: Operational diagrams of learned compression models (a)(b)(c) and proposed Gaussian Mixture Likelihoods (d).
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
(d) Proposed Model
|
| 103 |
+
|
| 104 |
+
real round-based quantization to generate $\hat{\pmb{y}}$ and followed entropy coders to generate the bitstream. To simplify, we use $\hat{\pmb{y}}$ to denote $\tilde{\pmb{y}}|\hat{\pmb{y}}$ . If a probability model $p_{\hat{\pmb{y}}}(\hat{\pmb{y}})$ is given, entropy coding techniques, such as arithmetic coding [28], can losslessly compress the quantized codes. Besides, arithmetic coder are a near-optimal entropy coder, which makes it feasible to use the entropy of $\pmb{y}$ as the rate estimation during the training. In the baseline architecture, the marginal distribution of latent $\pmb{y}$ is unknown and no additional bits are available to estimate $p_{\hat{\pmb{y}}}(\hat{\pmb{y}})$ . Typically a non-adaptive density model is used and shared between encoder and decoder, also called factorized prior.
|
| 105 |
+
|
| 106 |
+
In the work [19], Balle proposed a hyperprior, by introducing a side information $\mathbf{z}$ to capture spatial dependencies among the elements of $\mathbf{y}$ , formulated by (as Fig. 2(b))
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\boldsymbol {z} = h _ {a} (\boldsymbol {y}; \phi_ {\boldsymbol {h}});
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\hat {z} = Q (z) \tag {2}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
p _ {\hat {y} | \hat {z}} (\hat {y} | \hat {z}) \leftarrow h _ {s} (\hat {z}; \boldsymbol {\theta} _ {\boldsymbol {h}})
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where $h_a$ and $h_s$ denote the analysis and synthesis transforms in the auxiliary autoencoder, where $\phi_h$ and $\theta_h$ are optimized parameters. $p_{\hat{y}|\hat{z}}(\hat{y}|\hat{z})$ are estimated distributions conditioned on $\hat{z}$ . For instance, the work [19] parameterized a zero-mean Gaussian distribution with scale parameters $\sigma^2 = h_s(\hat{z}; \theta_h)$ to estimate $p_{\hat{y}|\hat{z}}(\hat{y}|\hat{z})$ .
|
| 121 |
+
|
| 122 |
+
Following that, an enhanced work [20] proposed a more accurate entropy model, which jointly utilize an autoregressive context model (denoted as $C_m$ in Fig. 2(c)) and a mean and scale hyperprior. The work [21] also proposed a similar idea. The operational diagram is explained in Fig. 2(c).
|
| 123 |
+
|
| 124 |
+
Learned image compression is a Lagrangian multiplier-based rate-distortion optimization. The loss function is
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\begin{array}{l} \mathcal {L} = \mathcal {R} (\hat {\boldsymbol {y}}) + \mathcal {R} (\hat {\boldsymbol {z}}) + \lambda \cdot \mathcal {D} (\boldsymbol {x}, \hat {\boldsymbol {x}}) \\ = \mathbb {E} \left[ - \log_ {2} \left(p _ {\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}} (\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}})\right) \right] + \mathbb {E} \left[ - \log_ {2} \left(p _ {\hat {\boldsymbol {z}} | \psi} (\hat {\boldsymbol {z}} | \psi)\right) \right] \tag {3} \\ + \lambda \cdot \mathcal {D} (\boldsymbol {x}, \hat {\boldsymbol {x}}) \\ \end{array}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $\lambda$ controls the rate-distortion tradeoff. Different $\lambda$ values are corresponding to different bit rates. $\mathcal{D}(\pmb {x},\hat{\pmb{x}})$ de
|
| 131 |
+
|
| 132 |
+
notes the distortion term. There is no prior for $\hat{z}$ , so a factorized density model $\psi$ is used to encode $\hat{z}$ as
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
p _ {\hat {z} | \psi} (\hat {z} | \psi) = \prod_ {i} \left(p _ {z _ {i} | \psi} (\psi) * \mathcal {U} \left(- \frac {1}{2}, \frac {1}{2}\right)\right) \left(\hat {z} _ {i}\right) \tag {4}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
where $z_{i}$ denotes the $i$ -th element of $\mathbf{z}$ , and $i$ specifies to the position of each element or each signal. The remaining part is how to model the $p_{\hat{\mathbf{y}}}(\hat{\mathbf{y}}|\hat{\mathbf{z}})$ accurately.
|
| 139 |
+
|
| 140 |
+
# 3.2. Discretized Gaussian Mixture Likelihoods
|
| 141 |
+
|
| 142 |
+
Whether the parameterized distribution model fits the marginal distribution of $\hat{\pmb{y}}$ is a significant factor for the entropy model, thus affecting rate-distortion performance. Lots of efforts have been conducted to model the conditional probability distribution $p_{\hat{\pmb{y}}}(\hat{\pmb{y}}|\hat{\pmb{z}})$ after decoding $\hat{\pmb{z}}$ . Balle work [19] firstly assumed a univariate Gaussian distribution model for the hyperprior, that is,
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
p _ {\hat {y} | \hat {z}} (\hat {y} | \hat {z}) \sim \mathcal {N} (0, \sigma^ {2}) \tag {5}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
The improved work [20] extended a scale hyperprior to a mean and scale Gaussian distribution, that is,
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
p _ {\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}} (\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}) \sim \mathcal {N} (\boldsymbol {\mu}, \sigma^ {2}) \tag {6}
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
and combine with a autoregressive model, denoted as Joint.
|
| 155 |
+
|
| 156 |
+
To illustrate how entropy models work, we visualize different entropy models in Fig. 3 with the same network architecture. We only depict the channel with the highest entropy. The first rows visualize the mean and scale HyperPrior. The 1-st column is the quantized codes $\hat{\pmb{y}}$ . The second and third columns are the predicted mean $\mu$ and s-scale $\sigma$ . The 4-th column is normalized values, calculate by $\frac{\hat{y} - \mu}{\sigma}$ . It is used to visualize the extent of remaining redundancy which is not captured by entropy models. The 5-th column visualizes the Required bits for each element for encoding, which is calculated as $(- \log_2(p_{\hat{y}|\hat{z}}(\hat{y}|\hat{z}))$ , which uses predicted distribution models.
|
| 157 |
+
|
| 158 |
+
Typically, predicted mean $\pmb{\mu}$ is close to $\hat{\pmb{y}}$ . Complex regions have large $\sigma$ , requiring more bits for encoding. Instead, smooth regions have smaller $\sigma$ , resulting to fewer
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Latent codes $\hat{y}$
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Latent codes $\hat{y}$
|
| 167 |
+
Required bits
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Original image
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Mean
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Mean
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Mean
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
#
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Scale
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Scale
|
| 191 |
+
|
| 192 |
+

|
| 193 |
+
Scale
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
Figure 3: Visualization of different entropy models for the channel with the highest entropy using $\text{kodim}21$ from Kodak dataset as an example. It shows our approach provides a more flexible parameterized distribution models with smaller scale parameters and better spatial redundancy reduction, which directly results in a more accurate entropy model and fewer bits.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
Remaining redundancy
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Remaining redundancy
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Remaining redundancy
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
Required bits
|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
Required bits
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Weight
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
|
| 226 |
+
bits for encoding. HyperPrior still has spatial redundancy remaining in simple regions, such as sky of kodim21. Similarly, we visualize the Joint entropy model. Compared with HyperPrior, Joint removes more structures for normalized values by adding the autoregressive model, which is implemented by a $5 \times 5$ mask convolution, to capture the correlation with neighboring elements.
|
| 227 |
+
|
| 228 |
+
However, Joint entropy model is not perfect, because some spatial redundancy is still observed in the 2-nd row, the 4-th column of Fig. 3. Although neighboring elements have already served as the input of context models, parameterized distributions cannot represent well to fully utilize the contexts and information from neighboring elements and additional bits $\hat{z}$ . It might be limited by fixed shape of single Gaussian distribution. This motivates us to consider more flexible parameterized models to achieve arbitrary likelihoods. Therefore, we propose the Gaussian mixture model, i.e.
|
| 229 |
+
|
| 230 |
+
$$
|
| 231 |
+
p _ {\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}} (\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}) \sim \sum_ {k = 1} ^ {K} \boldsymbol {w} ^ {(k)} \mathcal {N} \left(\boldsymbol {\mu} ^ {(k)}, \boldsymbol {\sigma} ^ {2 (k)}\right) \tag {7}
|
| 232 |
+
$$
|
| 233 |
+
|
| 234 |
+
Eq.(7) usually refers to continuous values, but $\hat{y}$ is discrete-valued after quantization. Inspiring by [25], we propose to use discretized Gaussian mixture likelihoods. The reason why we did not use Logistic mixture likelihoods, because Gaussian achieves slightly better performance than logistic [20]. Then the entropy model is formulated as
|
| 235 |
+
|
| 236 |
+
$$
|
| 237 |
+
p _ {\hat {\mathbf {y}} | \hat {\mathbf {z}}} (\hat {\mathbf {y}} | \hat {\mathbf {z}}) = \prod_ {i} p _ {\hat {\mathbf {y}} | \hat {\mathbf {z}}} (\hat {y} _ {i} | \hat {\mathbf {z}})
|
| 238 |
+
$$
|
| 239 |
+
|
| 240 |
+
$$
|
| 241 |
+
\begin{array}{l} p _ {\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}} (\hat {y} _ {i} | \hat {\boldsymbol {z}}) = (\sum_ {k = 1} ^ {K} w _ {i} ^ {(k)} \mathcal {N} (\mu_ {i} ^ {(k)}, \sigma_ {i} ^ {2 (k)}) * \mathcal {U} (- \frac {1}{2}, \frac {1}{2})) (\hat {y} _ {i}) \\ = c \left(\hat {y} _ {i} + \frac {1}{2}\right) - c \left(\hat {y} _ {i} - \frac {1}{2}\right) \tag {8} \\ \end{array}
|
| 242 |
+
$$
|
| 243 |
+
|
| 244 |
+
where $i$ specifies the location in feature maps. For example, $\hat{y}_i$ denotes the $i$ -th element of $\pmb{y}$ and $\mu_{i}$ denotes the $i$ -th element of $\pmb{\mu}$ . $k$ denotes the index of mixtures. Each mixture is characterized by a Gaussian distribution with 3 parameters, i.e. weights $w_{i}^{(k)}$ , means $\mu_i^{(k)}$ and variances $\sigma_i^{2(k)}$ for each element $\hat{y}_i$ . $c(\cdot)$ is the cumulative function. The range
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
Figure 4: Network architecture.
|
| 248 |
+
|
| 249 |
+
Table 1: Required bits and quality metrics for Kodim21.
|
| 250 |
+
|
| 251 |
+
<table><tr><td>Model</td><td>PSNR (dB)</td><td>MS-SSIM</td><td>Rate (bpp)</td></tr><tr><td>Joint</td><td>33.435</td><td>0.980</td><td>0.533</td></tr><tr><td>Ours</td><td>33.623</td><td>0.981</td><td>0.519</td></tr></table>
|
| 252 |
+
|
| 253 |
+
of $\hat{\pmb{y}}$ is automatically learned and unknown ahead of time. To achieve stable training, we clip the range of $\hat{\pmb{y}}$ to [-255, 256] because empirically $\hat{\pmb{y}}$ would not exceed this range. For the edge case of $-255$ , replace $c(\hat{y}_i - \frac{1}{2})$ by zero, i.e. $c(-\infty) = 0$ . For the edge case of 256, replace $c(\hat{y}_i + \frac{1}{2})$ by one, i.e. $c(+\infty) = 1$ . It provides a numerically stable implementation for training.
|
| 254 |
+
|
| 255 |
+
The visualization of our approach is shown as the last three rows in Fig. 3. We use $K = 3$ in our experiments. Different from the above two rows, the 5-th column shows the weights $w_{i}^{(k)}$ for each element and each mixture. Although each mixture still remains some spatial redundancy as shown in the 4-th column in some parts, mixture model can adjust weights to different mixtures and different regions. For instance, the mixture $k = 1$ has some redundancy in the sky as shown in the 4-th row and 4-th column, but the weights of this mixture for the sky are very small. The mixture $k = 2$ remains some redundancy in the while tower as shown in the 5-th row and 4-th column, and mixture model also assigns small weights to the tower regions as shown in the 5-th row and 5-th column. Besides, the scales of our approach are smaller than Joint and Hyperprior, which demonstrates our entropy model is more accurate, thus directly resulting to fewer bits. Required bits at the 5-th row and 1-st column visualizes the required bits of our approach for encoding, which is calculated by $(-\log_2(p_{\hat{y}|\hat{z}}(\hat{y}_i|\hat{z})))$ . Required bits of our approach is fewer than Joint as Table 1 and visualized in Fig. 3. All the models are trained with $\lambda = 0.015$ with the same network architecture.
|
| 256 |
+
|
| 257 |
+
The Gaussian mixture model can achieve better performance because it selects $K$ most probable values and as-
|
| 258 |
+
|
| 259 |
+
Table 2: Performance of different attention modules.
|
| 260 |
+
|
| 261 |
+
<table><tr><td>Module</td><td>(a)w/ NLB</td><td>(b)w/o NLB</td><td>w/o attention</td></tr><tr><td>Loss</td><td>2.705</td><td>2.754</td><td>3.026</td></tr><tr><td>Time(s)/epoch</td><td>1119</td><td>336</td><td>216</td></tr></table>
|
| 262 |
+
|
| 263 |
+
sign small scale (i.e. high likelihoods) to them. Somehow this mechanism resembles the most probable symbol (MP-S) in the Context-based Adaptive Binary Arithmetic coding (CABAC), which has been widely used in traditional video coding standards, but our latent codes are not limited to be binary. To the one extreme, if three selected mean values are the same, it will degrades to a single Gaussian model, which happens in the smooth regions. To the other extreme, three selected mean values are completely different from each other, our model would have three peaks of likelihoods representing three most probable values, which usually happens in the boundaries, edges or complex regions. Besides, all the parameters, weights $w_{i}^{(k)}$ , means $\mu_{i}^{(k)}$ and variances $\sigma_{i}^{2(k)}$ for each element, are learnable during the training. Therefore, our method is a flexible and accurate entropy model, and operation diagram is shown as Fig. 2(d).
|
| 264 |
+
|
| 265 |
+
# 3.3. Network Architecture
|
| 266 |
+
|
| 267 |
+
Our network architecture has a similar structure as [18] in Fig. 4. We use residual blocks to increase large receptive field and improve the rate-distortion performance. Decoder side uses subpixel convolution instead of transposed convolution as upsampling units to keep more details. $N$ denotes the number of channels and represents the model capacity. We use Gaussian mixture model, thus requiring $3 \times N \times K$ channels for the output of auxiliary autoencoder.
|
| 268 |
+
|
| 269 |
+
Furthermore, recent works use attention module to improve the performance for image restoration [29] and compression [30]. The proposed attention module is illustrated in Fig. 5(a), but very time-consuming for training. We simplify this module by removing the non local block, because
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
(b) Simplified attention module
|
| 273 |
+
|
| 274 |
+
the deep residual blocks can already capture very large receptive field in our network architecture. The loss and training time comparison is given by Table 2, where this loss is trained after 16 epochs. Simplified attention module is shown in Fig. 5(b) and can also reduce the loss with moderate complexity. Attention module can help the networks to pay more attention to challenging parts and reduce the bits of simple parts. Then we insert simplified attention module into encoder-decoder network as Fig. 4.
|
| 275 |
+
|
| 276 |
+
# 4. Implementation Details
|
| 277 |
+
|
| 278 |
+
Training Details For training, we used a subset of ImageNet database [31], and cropped them into 13830 samples with the size of $256 \times 256$ . To train our image compression models, the model was optimized using Adam [32] with a batch size of 8. The learning rate was maintained at a fixed value of $1 \times 10^{-4}$ during the training process, and was reduced to $1 \times 10^{-5}$ for the last $80k$ iterations.
|
| 279 |
+
|
| 280 |
+
We optimized our models using two quality metrics, i.e. mean square error (MSE) and MS-SSIM. When optimized by MSE, $\lambda$ belongs to the set $\{0.0016, 0.0032, 0.0075, 0.015, 0.03, 0.045\}$ . $N$ is set as 128 for three lower-rate models, and is set as 192 for three higher rate models. To achieve high subjective quality, we also train the model using MS-SSIM quality metrics [33] and then distortion term is defined by $\mathcal{D}(\boldsymbol{x}, \hat{\boldsymbol{x}}) = 1 - \mathrm{MS-SSIM}(\boldsymbol{x}, \hat{\boldsymbol{x}})$ . When optimized by MS-SSIM, $\lambda$ is in the set $\{3, 12, 40, 120\}$ . $N$ is set as 128 for two lower-rate models, and is set as 192 for the two higher-rate models. Each model was trained up to $10^{6}$ iterations for each $\lambda$ to achieve stable performance.
|
| 281 |
+
|
| 282 |
+
Evaluation For comparison, we tested commonly used Kodak lossless image database [34] with 24 uncompressed $768 \times 512$ images. To validate the robustness of our proposed method, we also tested our proposed method using CVPR workshop CLIC professional validation dataset [35] with 41 high resolution and high quality images.
|
| 283 |
+
|
| 284 |
+
To evaluate the rate-distortion performance, the rate is measured by bits per pixel (bpp), and the quality is measured by either PSNR or MS-SSIM, corresponding to op
|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
(a) Loss curves with $N = 128$ .
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
(b) RD points with $N = 128$
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 5: Different attention modules.
|
| 294 |
+
(c) Loss curves with $N = 192$ .
|
| 295 |
+
Figure 6: Ablation Study.
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
(d) RD points with $N = 192$
|
| 299 |
+
|
| 300 |
+
timized distortion metrics. The rate-distortion (RD) curves are drawn to demonstrate their coding efficiency.
|
| 301 |
+
|
| 302 |
+
Traditional Codec For VVC and HEVC, we used the official test model VTM 5.2 (accessed on July 2019) [36] with intra profile and BPG software [37] to test the performance. For both of them, we used non-default YUV444 format as the configuration, because it prevents the color component loss during color space conversion. We used official test model OpenJPEG [38] with default configuration YUV420 to represent the performance of JPEG2000. For JPEG compression, we use PIL library [39].
|
| 303 |
+
|
| 304 |
+
# 5. Experiments
|
| 305 |
+
|
| 306 |
+
# 5.1. Ablation Study
|
| 307 |
+
|
| 308 |
+
In order to show the effectiveness of our proposed Gaussian mixture model (GMM) and simplified attention module, we test them with different model capacity, i.e. $N = 128$ , and $N = 192$ . These models are optimized by MSE with $\lambda = 0.015$ . The loss curves are shown in Fig. 6(a) and Fig. 6(c). The asymptotic loss curves show along with the increase of training iterations, the effectiveness of our proposed approaches become strong. The corresponding rate-distortion points are depicted in Fig. 6(b) and Fig. 6(d), to show the coding gain of proposed approaches. It can be observed our proposed approaches can improve the rate-distortion performance regardless of the model capacity. Besides, GMM works better on 192 filters than 128 filters, probably because 192 filters have large model capacity, so
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 7: Performance Evaluation on Kodak dataset.
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Figure 8: Performance Evaluation on CLIC Professional Validation dataset.
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
|
| 320 |
+
easily resulting more remaining spatial redundancy, and our proposed Gaussian mixture likelihoods can capture them effectively to reduce the bits.
|
| 321 |
+
|
| 322 |
+
# 5.2. Rate-distortion Performance
|
| 323 |
+
|
| 324 |
+
The rate-distortion performance on Kodak dataset is shown in Fig. 7. MS-SSIM is converted to decibels $(-10\log_{10}(1 - \mathrm{MS - SSIM}))$ to illustrate the difference clearly. We compare our method with well-known compression standards, and recent neural network-based learned compression methods, including the works of Li et al. [15], Balle et al. [19], Minnen et al. [20] and Lee et al. [21]. RD curves of [21] are from their released source code<sup>1</sup>. RD points of [19] and [20] are obtained by contacting corresponding authors. RD points of [15] are traced from their paper with only PSNR. Regarding PSNR, our method yields a competitive results with VVC and achieves better coding performance than previous learning based methods. To our
|
| 325 |
+
|
| 326 |
+
knowledge, our approach is the first work to achieve comparable PSNR with VVC. Regarding MS-SSIM, our method achieves state-of-the-art results among existing works.
|
| 327 |
+
|
| 328 |
+
Fig. 8 shows the comparison results with JPEG, JPEG2000, HEVC, VVC and the work of Lee et al. [21] on CLIC validation dataset. Regarding PSNR, our approach outperforms all the other CODECs, except for VVC. This performance gap might be resulted from small size of training patches. Regarding MS-SSIM, our approaches significantly outperform all the CODECs. It shows our method also works for high resolution images.
|
| 329 |
+
|
| 330 |
+
# 5.3. Qualitative Results
|
| 331 |
+
|
| 332 |
+
To demonstrate our method can generate more visually pleasant results, we visualize some reconstructed images for qualitative performance comparison.
|
| 333 |
+
|
| 334 |
+
Fig. 1 shows reconstructed images $\text{kodim}04$ with approximately 0.10 bpp and a compression ratio of 240:1. More details are kept for our method optimized by MS-SSIM, and the hair appears much more natural than other codec
|
| 335 |
+
|
| 336 |
+

|
| 337 |
+
Original Image
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Proposed Method [MS-SSIM],
|
| 341 |
+
|
| 342 |
+

|
| 343 |
+
Proposed Method [MSE],
|
| 344 |
+
|
| 345 |
+

|
| 346 |
+
VVC (VTM 5.2)
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
|
| 350 |
+

|
| 351 |
+
|
| 352 |
+

|
| 353 |
+
Original
|
| 354 |
+
Ours [MS-SSIM]
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Ours [MSE
|
| 364 |
+
|
| 365 |
+
VC
|
| 366 |
+
|
| 367 |
+

|
| 368 |
+
VC
|
| 369 |
+
|
| 370 |
+
HEVC
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
0.096bpp, 27.60dB, 0.972
|
| 374 |
+
HEVC (BPG),
|
| 375 |
+
0.103bpp,28.79dB,0.945
|
| 376 |
+
|
| 377 |
+

|
| 378 |
+
0.098bpp, 29.99dB, 0.958
|
| 379 |
+
JPEG2000,
|
| 380 |
+
0.099bpp,26.43dB,0.905
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
0.099bpp,29.92dB,0.957
|
| 384 |
+
JPEG
|
| 385 |
+
0.117bpp,23.16dB,0.834
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
|
| 389 |
+

|
| 390 |
+
JPEG2000
|
| 391 |
+
JPEG
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
|
| 395 |
+
2000
|
| 396 |
+
|
| 397 |
+

|
| 398 |
+
$\therefore m = \frac{3}{11}$
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
HEVC
|
| 402 |
+
|
| 403 |
+

|
| 404 |
+
|
| 405 |
+

|
| 406 |
+
Figure 9: Visualization of reconstructed images $\text{kodim}07$ from Kodak dataset.
|
| 407 |
+
Original Image
|
| 408 |
+
|
| 409 |
+

|
| 410 |
+
Proposed Method [MS-SSIM],
|
| 411 |
+
|
| 412 |
+

|
| 413 |
+
Proposed Method [MSE].
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
VVC (VTM 5.2),
|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
Original
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
|
| 423 |
+

|
| 424 |
+
Ours [MS-SSIM]
|
| 425 |
+
Ours [MSE]
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
0.110bpp,26.53dB,0.954
|
| 429 |
+
HEVC (BPG),
|
| 430 |
+
0.112bpp, 26.38dB, 0.919
|
| 431 |
+
|
| 432 |
+

|
| 433 |
+
0.113bnn,27.12dB,0.937
|
| 434 |
+
JPEG2000
|
| 435 |
+
0.119bpp, 25.30dB, 0.902
|
| 436 |
+
Figure 10: Visualization of reconstructed images $\text{kodim}21$ from Kodak dataset.
|
| 437 |
+
|
| 438 |
+

|
| 439 |
+
0.111bpp, 27.12dB, 0.931
|
| 440 |
+
JPEG,
|
| 441 |
+
0.121bpp, 21.83dB, 0.776
|
| 442 |
+
|
| 443 |
+

|
| 444 |
+
JPEG2000
|
| 445 |
+
|
| 446 |
+

|
| 447 |
+
JPEG
|
| 448 |
+
|
| 449 |
+

|
| 450 |
+
VVC
|
| 451 |
+
|
| 452 |
+

|
| 453 |
+
HEVC
|
| 454 |
+
|
| 455 |
+
s. Our method optimized by MSE achieves comparable results with VVC, and outperform HEVC, JPEG2000, JPEG. Fig. 9 shows reconstructed images $kodim07$ with approximately 0.10 bpp and a compression ratio of 240:1. Our proposed method optimized by MS-SSIM generates more visually pleasant results, as shown by enlarged brick wall and red flowers. Our model optimized by MSE is slightly worse than VVC, but better than HEVC, JPEG2000 and JPEG. Fig. 10 shows reconstructed images $kodim21$ with approximately 0.12 bpp and a compression ratio of 200:1. The shape of cloud is well preserved in our proposed method optimized by MS-SSIM. Our proposed method optimized by MSE achieves comparable quality with VVC. For the other three CODECs, i.e. HEVC, JPEG2000 and JPEG, clear artifacts and blocking effect appeared. More subjective quality results are visualized in supplementary materials.
|
| 456 |
+
|
| 457 |
+
# 6. Conclusion
|
| 458 |
+
|
| 459 |
+
We propose a learned image compression approach using a discretized Gaussian mixture likelihoods and attention modules. By exploring the remaining redundancy of
|
| 460 |
+
|
| 461 |
+
recent learned compression techniques, we have found single parameterized model can not achieve arbitrary likelihoods, limiting the accuracy of entropy models. Therefore, we use a discretized Gaussian Mixture Likelihoods to achieve a more flexible and accurate entropy model to enhance the performance. Besides, we utilize a simplified attention module with moderate complexity in our network architecture to achieve high coding efficiency.
|
| 462 |
+
|
| 463 |
+
Experimental results validate our proposed method achieves a state-of-the-art performance compared to existing learned compression methods and coding standards including HEVC, JPEG2000, JPEG. Besides, we achieve comparable performance with next-generation compression standard VVC for PSNR. The visual quality of our trained models using MS-SSIM outperforms existing methods.
|
| 464 |
+
|
| 465 |
+
# Acknowledgement
|
| 466 |
+
|
| 467 |
+
This work was supported in part by the Japan Society for the Promotion of Science (JSPS) Research Fellowship DC2 Grant Number 201914620, in part by JST, PRESTO Grant Number JPMJPR19M5, Japan.
|
| 468 |
+
|
| 469 |
+
# References
|
| 470 |
+
|
| 471 |
+
[1] G. K Wallace, “The JPEG still picture compression standard”, IEEE Trans. on Consumer Electronics, vol. 38, no. 1, pp. 43-59, Feb. 1991. 1, 2
|
| 472 |
+
[2] Majid Rabbani, Rajan Joshi, "An overview of the JPEG2000 still image compression standard", ELSEVIER Signal Processing: Image Communication, vol. 17, no. 1, pp. 3-48, Jan. 2002. 1, 2
|
| 473 |
+
[3] G. J. Sullivan, J. Ohm, W. Han and T. Wiegand, “Overview of the High Efficiency Video Coding (HEVC) Standard”, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, pp. 1649-1668, Dec. 2012. 1, 2
|
| 474 |
+
[4] G. J. Sullivan and J. R. Ohm, "Versatile video coding Towards the next generation of video compression", Picture Coding Symposium, Jun. 2018. 1, 2
|
| 475 |
+
[5] P. Vincent, H. Larochelle, Y. Bengio and P.-A. Manzagol, "Extracting and composing robust features with denoising autoencoders", Intl. conf. on Machine Learning (ICML), pp. 1096-1103, July 5-9. 2008. 2
|
| 476 |
+
[6] Lucas Theis, Wenzhe Shi, Andrew Cunningham and Ferenc Huszar, "Lossy Image Compression with Compressive Autoencoders", Intl. Conf. on Learning Representations (ICLR), pp. 1-19, April 24-26, 2017. 2
|
| 477 |
+
[7] J. Balle, Valero Laparra, Eero P. Simoncelli, “End-to-End Optimized Image Compression”, Intl. Conf. on Learning Representations (ICLR), pp. 1-27, April 24-26, 2017. 2
|
| 478 |
+
[8] E. Agustsson, F. Mentzer, M. Tschannen, L. Cavigelli, R. Timofte, L. Benini, L. V. Gool, "Soft-to-Hard Vector Quantization for End-to-End Learning Compressible Representations", Neural Information Processing Systems (NIPS) 2017, arXiv:1704.00648v2. 2
|
| 479 |
+
[9] G. Toderici, S. M.O'Malley, S. J. Hwang, et al., "Variable rate image compression with recurrent neural networks", arXiv: 1511.06085, 2015. 2
|
| 480 |
+
[10] G, Toderici, D. Vincent, N. Johnson, et al., "Full Resolution Image Compression with Recurrent Neural Networks", IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pp. 1-9, July 21-26, 2017. 2
|
| 481 |
+
[11] Nick Johnson, Damien Vincent, David Minnen, et al., "Improved Lossy Image Compression with Priming and Spatially Adaptive Bit Rates for Recurrent Networks", arXiv:1703.10114, pp. 1-9, March 2017. 2
|
| 482 |
+
[12] Ripple Oren, L. Bourdev, “Real Time Adaptive Image Compression”, Proc. of Machine Learning Research, Vol. 70, pp. 2922-2930, 2017. 2
|
| 483 |
+
[13] S. Santurkar, D. Budden, N. Shavit, "Generative Compression", Picture Coding Symposium, June 24-27, 2018. 2
|
| 484 |
+
[14] E. Agustsson, M. Tschannen, F. Mentzer, R. Timofte, and L. V. Gool, "Generative Adversarial Networks for Extreme Learned Image Compression", arXiv:1804.02958. 2
|
| 485 |
+
[15] M. Li, W. Zuo, S. Gu, D. Zhao, D. Zhang, “Learning Convolutional Networks for Content-weighted Image Compression”, IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 17-22, 2018. 2, 7
|
| 486 |
+
|
| 487 |
+
[16] Z. Cheng, H. Sun, M. Takeuchi, J. Katto, "Deep Convolutional AutoEncoder-based Lossy Image Compression", Picture Coding Symposium, pp. 1-5, June 24-27, 2018. 2
|
| 488 |
+
[17] Z. Cheng, H. Sun, M. Takeuchi, J. Katto, "Learning Image and Video Compression through Spatial-Temporal Energy Compaction", IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 16-20, 2019. 2
|
| 489 |
+
[18] Z. Cheng, H. Sun, M. Takeuchi, J. Katto, "Deep Residual Learning for Image Compression", CVPR Workshop, pp. 1-4, June 16-20, 2019. 2, 5
|
| 490 |
+
[19] Johannes Balle, D. Minnen, S. Singh, S. J. Hwang, N. Johnston, "Variational Image Compression with a Scale Hyperprior", Intl. Conf. on Learning Representations (ICLR), pp. 1-23, 2018. 1, 2, 3, 7
|
| 491 |
+
[20] D. Minnen, J. Balle, G. Toderici, "Joint Autoregressive and Hierarchical Priors for Learned Image Compression", arXiv.1809.02736. 1, 2, 3, 4, 7
|
| 492 |
+
[21] J. Lee, S. Cho, S-K Beack, "Context-Adaptive Entropy Model for End-to-end optimized Image Compression", Intl. Conf. on Learning Representations (ICLR) 2019. 1, 2, 3, 7
|
| 493 |
+
[22] F. Mentzer, E. Agustsson, M. Tschannen, R. Timofte, L. V. Gool, “Conditional Probability Models for Deep Image Compression”, IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 17-22, 2018. 2
|
| 494 |
+
[23] Z. Cheng, H. Sun, M. Takeuchi, J. Katto, "Performance Comparison of Convolutional AutoEncoders, Generative Adversarial Networks and Super-Resolution for Image Compression", CVPR Workshop and Challenge on Learned Image Compression (CLIC), pp. 1-4, June 17-22, 2018. 2
|
| 495 |
+
[24] A. van den Oord, N. Kalchbrenner, O. Vinyals, L. Espehold, A. Graves, and K. Kavukcuoglu, "Conditional Image Generation with PixelCNN Decoders", Advances in Neural Information Processing Systems (NIPS), 2016 2
|
| 496 |
+
[25] T. Salimans, A. Karpathy, X. Chen, D. P. Kingma, "PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture Likelihood and Other Modifications", Intl. Conf. on Learning Representations (ICLR), 2017. 2, 4
|
| 497 |
+
[26] F. Mentzer, E. Agustsson, M. Tschannen, R. Timofte, L. V. Gool, “Practical Full Resolution Learned Lossless Image Compression”, CVPR 2019. 2
|
| 498 |
+
[27] Goyal Vivek K. “Theoretical Foundations of Transform Coding”, IEEE Signal Processing Magazine, Vol. 18, No. 5, Sep. 2001. 2
|
| 499 |
+
[28] Rissanen Jorma and Glen G. Langdon Jr., “Universal modeling and coding”, IEEE Transactions on Information Theory, Vol. 27, No. 1, Jan. 1981. 3
|
| 500 |
+
[29] Y.Zhang, K. Li, K. Li, B. Zhong, Y. Fu, “Residual Nonlocal Attention Networks for Image Restoration”, Intl. Conf. on Learning Representations (ICLR), pp. 1-18, 2019. 5
|
| 501 |
+
[30] H. Liu, T. Chen, P. Guo, Q. Shen, X. Cao, Y. Wang, Z. Ma, "Non-local Attention Optimized Deep Image Compression", arXiv.1904.09757. 5
|
| 502 |
+
|
| 503 |
+
[31] J. Deng, W. Dong, R. Socher, L. Li, K. Li and L. Fei-Fei, "ImageNet: A Large-Scale Hierarchical Image Database", IEEE Conf. on Computer Vision and Pattern Recognition, pp. 1-8, June 20-25, 2009. 6
|
| 504 |
+
[32] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization”, arXiv:1412.6980, pp.1-15, Dec. 2014. 6
|
| 505 |
+
[33] Z. Wang, E. P. Simoncelli and A. C. Bovik, “Multiscale structural similarity for image quality assessment”, The 36th Asilomar Conference on Signals, Systems and Computers, Vol.2, pp. 1398-1402, Nov. 2013. 6
|
| 506 |
+
[34] Kodak Lossless True Color Image Suite, Download from http://r0k.us/graphics/kodak/ 6
|
| 507 |
+
[35] Workshop and Challenge on Learned Image Compression, CVPR2018, http://www.compression.cc/challenge/6
|
| 508 |
+
[36] VVC Official Test Model VTM, https://vcert.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/tree/VTM-5.2, accessed on July, 2019. 6
|
| 509 |
+
[37] BPG Image Format, https://bellard.org/bpg/6
|
| 510 |
+
[38] JPEG2000 official software OpenJPEG, https://jpeg.org/jpeg2000/software.html 6
|
| 511 |
+
[39] Python Imaging Library (PIL), https://pillow.readthedocs.io/en/5.1.x/index.html 6
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3837f8061c616305def83b04da557482ee7be957224d02efde634c8a475714c
|
| 3 |
+
size 909776
|
learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:768385fb3e53e290242d8a607ab2d8d54bcdb30f9a6482ffe41b0fec923b744e
|
| 3 |
+
size 614899
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6ecfc4c3da98d313b5a092c8b44419912e9da507f1e12b3616e32bf1e57e24e
|
| 3 |
+
size 72227
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb21b557b258fd9ddadf0417b1aad3ab5ab41e4428d5fb8085df44219a84bf07
|
| 3 |
+
size 90655
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c820ecc5d74f3f66b6644e8db22bf9ad5605ecbdb89ee5074b1d6fdbd7f072d
|
| 3 |
+
size 5766034
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/full.md
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learning 3D Semantic Scene Graphs from 3D Indoor Reconstructed
|
| 2 |
+
|
| 3 |
+
Johanna Wald $^{1, *}$ Helisa Dhamo $^{1, *}$ Nassir Navab $^{1}$ Federico Tombari $^{1,2}$ $^{1}$ Technische Universität München $^{2}$ Google
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Scene understanding has been of high interest in computer vision. It encompasses not only identifying objects in a scene, but also their relationships within the given context. With this goal, a recent line of works tackles 3D semantic segmentation and scene layout prediction. In our work we focus on scene graphs, a data structure that organizes the entities of a scene in a graph, where objects are nodes and their relationships modeled as edges. We leverage inference on scene graphs as a way to carry out 3D scene understanding, mapping objects and their relationships. In particular, we propose a learned method that regresses a scene graph from the point cloud of a scene. Our novel architecture is based on PointNet and Graph Convolutional Networks (GCN). In addition, we introduce 3DSSG, a semiautomatically generated dataset, that contains semantically rich scene graphs of 3D scenes. We show the application of our method in a domain-agnostic retrieval task, where graphs serve as an intermediate representation for 3D-3D and 2D-3D matching.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
3D scene understanding relates to the perception and interpretation of a scene from 3D data, with a focus on its semantic and geometric nature, which includes not only recognizing and localizing the objects present in the 3D space therein, but also their context and relationships. This thorough understanding is of high interest for various applications such as robotic navigation, augmented and virtual reality. Current 3D scene understanding works include perception tasks such as instance segmentation [12, 21, 44, 50], semantic segmentation [34, 36, 5, 38] as well as 3D object detection and classification [40, 34, 35, 54]. While these works mostly focus on object semantics, their context and relationships are primarily used to improve the per-object class accuracy.
|
| 12 |
+
|
| 13 |
+
Scene understanding from images has recently explored the use of scene graphs to aid understanding object relationships in addition to characterizing objects individu
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1. Overview Given a class-agnostic instance segmentation of a 3D scene (left) our graph prediction network infers a semantic scene graph $\mathcal{G}$ (right) from a point cloud.
|
| 17 |
+
|
| 18 |
+
ally. Before that, scene graphs have been used in computer graphics to arrange spatial representations of a graphical scene, where nodes commonly represent scene entities (object instances), while the edges represent relative transformations between two nodes. This is a flexible representation of a scene which encompasses also complex spatial relations and operation grouping. Some of these concepts where successively adapted or extended in computer vision datasets, such as support structures [32], semantic relationships and attributes [19] and hierarchical mapping of scene entities [3]. Scene graphs have been shown to be relevant, for instance, for partial [46] and full matching [17] in image search, as well as image generation [16].
|
| 19 |
+
|
| 20 |
+
In 3D, scene graphs have only recently gained more popularity [3]. In this work, we want to focus on the semantic aspects of 3D scene graphs as well as their potential. Our goal is to obtain dense graphs with labeled instances (nodes), semantically meaningful relationships (edges) such as lying on or same as and attributes including color, shape or affordances (see Fig. 1). These resemble the scene graph representation of [17], associated with images. We believe semantic scene graphs are especially important in 3D since a) they are a compact representation, that describes a (potentially large) 3D scene, b) they are robust towards small scene changes and noise and c) they close the gap between different domains, such as text or images. These properties make them suitable for cross domain tasks such as 2D-3D Scene Retrieval or VQA.
|
| 21 |
+
|
| 22 |
+
We believe that the capability of regressing the scene graph of a given 3D scene can be a fundamental piece for 3D scene understanding, as a way to learn and represent object relationships and contextual information of an environment. For this purpose, we propose a learned method, based on PointNet [34] and Graph Convolutional Networks (GCNs) [18], to predict 3D semantic graphs. Given a class-agnostic instance segmentation of a 3D point cloud, we jointly infer a 3D scene graph composed of nodes (scene components) and edges (their relationships). For this purpose, we introduce a 3D semantic scene graph dataset that features detailed semantics in the nodes (instances) including attributes and edges (relationships), which will be publicly released<sup>1</sup>. Generating 3D semantic scene graphs from real-world scans is particularly challenging due to missing data and clutter and the complexity of the relationships between objects. For instance, two chairs that are of the same style could have very different appearances, while a jacket lying on one of them might occlude most of its visible surface. While our method outperforms the baseline, it operates end-to-end and is able to predict multiple relationships per edges. We further show how – in a cross-domain scenario – scene graphs serve as a common encoding between 3D and 2D in a scene retrieval task in changing conditions. Given a single image the task is to find the matching 3D model from a pool of scans. Scene graphs suit particularly well because they are inherently robust towards dynamic environments, which manifest illumination changes and (non-)rigid changes introduced by human activity. In summary, we explore the prediction and application of semantic scene graphs in 3D indoor environments with the following contributions:
|
| 23 |
+
|
| 24 |
+
- We present 3DSSG, a large scale 3D dataset that extends 3RScan [45] with semantic scene graph annotations, containing relationships, attributes and class hierarchies. Interestingly, 2D scene graphs can be obtained by rendering the 3D graphs, which results in 363k graph-image pairs.
|
| 25 |
+
- We propose the first learned method that generates a semantic scene graph from a 3D point cloud.
|
| 26 |
+
- We show how 3D semantic scene graphs can be used in cross-domain retrieval, specifically 2D-3D scene retrieval of changing indoor environments.
|
| 27 |
+
|
| 28 |
+
# 2. Related Work
|
| 29 |
+
|
| 30 |
+
Semantic Scene Graphs with Images. Johnson et al. [17] introduced scene graphs - motivated by image retrieval - as a representation that semantically describes an image,
|
| 31 |
+
|
| 32 |
+
where each node is an object while edges represent interactions between them. Additionally, the object nodes contain attributes that describe object properties. Later, Visual Genome [19], a large scale dataset with scene graph annotations on images, gave rise to a line of deep learning based advances on scene graph prediction from images [48, 11, 37, 51, 25, 49, 24, 33]. These methods propose diverse strategies for graph estimation and processing, such as message passing [48], graph convolutional networks (GCN) [49], permutation invariant architectures [11] and attention mechanisms [37]. Most of these methods rely on an object detector to extract node- and edge-specific features prior to the graph computation [48, 49, 24]. Recent works explore the reverse problem of using scene graphs to generate new images [16] or manipulate existing images [6].
|
| 33 |
+
|
| 34 |
+
3D Understanding: From Objects to Relationships. An active research area within 3D scene understanding focuses on 3D semantic segmentation [34, 4, 36, 7, 38, 12] and object detection and classification [41, 34, 35, 52]. These works mostly focus on object semantics and context is only used to improve object class accuracy. Holistic scene understanding [40] on the other side predicts not only object semantics, but also the scene layout and sometimes even the camera pose [13]. Scene context is often represented through a hierarchical tree, where the leaves are typically objects and the intermediate nodes group the objects in scene components or functional entities. A line of works use probabilistic grammar to parse scenes [28, 53] or control scene synthesis [15]. Shi et al. [39] show that the object detection task benefits from joint prediction of the hierarchical context. GRAINS [23] explore hierarchical graphs to synthesize diverse 3D scenes, using a recursive VAE that generates a layout, followed by object retrieval. In a 3D from single image scenario, Kulkarni et al. [20] consider relative 3D poses between objects (as edges), which are shown to outperform neighbour-agnostic 6D pose estimation.
|
| 35 |
+
|
| 36 |
+
Another line of works incorporate graphs structures for object-level understanding, rather than entire scenes. Te et al. [43] use a Graph CNN for semantic segmentation of object parts. StructureNet [31] represent the latent space of an object as a hierarchical graph of composing parts, with the goal of generating plausible shapes. However, all of these works are either focused on object parts, or do not consider semantic relationships that go beyond generic edges (without semantic labels) or relative transformations. In the context of semantic scene graphs on synthetic data, Fisher et al. [9] use graph kernels for 3D scene comparison, based on support and spatial relationships. Ma et al. [30] parse natural language into semantic scene graphs, considering pairwise and group relationships, to progressively retrieve sub-scenes for 3D synthesis.
|
| 37 |
+
|
| 38 |
+
Only recently the community started to explore seman
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2. Scene graph representation in 3DSSG including hierarchical class labels $c$ and attributes $A$ per node, as well as relationship triplets between nodes.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
tic relationships in 3D and on real world data. Armeni et al. [3] present a hierarchical mapping of 3D models of large spaces in four layers: camera, object, room and building. While they feature smaller graphs (see Tbl. 1) their focus is not on semantically meaningful inter-instance relationships such as support. Moreover, the absence of changing scenes, does not enable the proposed 3D scene retrieval task.
|
| 46 |
+
|
| 47 |
+
3D Scene Retrieval Many image-based 3D retrieval works focus on retrieving 3D CAD models from RGB images: IM2CAD generates a 3D scene from a single image by detecting the objects, estimating the room layout and retrieving a corresponding CAD model for each bounding box [14]. Pix3D on the other hand propose a dataset for single image 3D shape modeling based on highly accurate 3D model alignments in the 2D images [42]. Liu et al. show improved 2D-3D model retrieval by simulating local context to generate false occlusion [27]. The SHREC benchmark [1, 2], enables 2D-3D retrieval of diverse scenes (beach, bedroom or castle), while [30] and [9] operate on indoor environments but also only focus on synthetic data rather than real 3D reconstructions.
|
| 48 |
+
|
| 49 |
+
# 3. 3D Semantic Scene Graphs
|
| 50 |
+
|
| 51 |
+
With this work, we release 3DSSG which provides 3D semantic scene graphs for 3RScan [45], a large scale, real-world dataset which features 1482 3D reconstructions of 478 naturally changing indoor environments. A semantic scene graph $\mathcal{G}$ in 3DSSG, is a set of tuples $(\mathcal{N},\mathcal{R})$ between nodes $\mathcal{N}$ and edges $\mathcal{R}$ (see Fig. 2). Nodes represent specific 3D object instances in a 3D scan. In contrast to previous works [19, 3, 4, 45], our nodes are not
|
| 52 |
+
|
| 53 |
+
assigned a single object category $\mathcal{C}$ only, but instead are defined by a hierarchy of classes $c = (c_{1},\dots,c_{d})$ where $c\in \mathcal{C}^d$ , and $d$ can vary. Additionally to these object categories each node has a set of attributes $A$ that describe the visual and physical appearance of the object instance. A special subset of the attributes are affordances [47]. We consider them particularly important since we deal with changing environments. The edges in our graphs define semantic relationships (predicates) between the nodes such as standing on, hanging on, more comfortable than, same material. To obtain the data in 3DSSG we combine semantic annotations with geometric data and additional human verification to ensure high quality graphs. In summary, our dataset features 1482 scene graphs with 48k object nodes and 544k edges. An interesting feature of 3D scene graphs is that they can easily be rendered to 2D. Given a 3D model and a camera pose, one can filter the graph nodes and edges that are present in that image. Support and attribute comparison relations remain the same, while directional relationships (left, right, behind, front) must be updated automatically for the new viewpoint. Given the 363k RGB-D images with camera poses of 3RScan, this results in 363k 2D scene graphs. A comparison of our dataset with the only other real 3D semantic scene graph dataset, namely Armeni et al. [3] is listed in Tbl. 1. More information and statistics about 3DSSG are provided in the supplementary. In the following a detailed description of the different entities of our 3D semantic scene graphs are given.
|
| 54 |
+
|
| 55 |
+
Table 1. Semantic 3D scene graph comparison.
|
| 56 |
+
|
| 57 |
+
<table><tr><td>dataset</td><td>size</td><td>instances</td><td>classes</td><td>obj. rel.</td></tr><tr><td rowspan="2">Armeni et al. [3]*</td><td>35 buildings</td><td rowspan="2">3k</td><td rowspan="2">28</td><td rowspan="2">4</td></tr><tr><td>727 rooms</td></tr><tr><td rowspan="2">3DSSG (Ours)</td><td>1482 scans</td><td rowspan="2">48k</td><td rowspan="2">534</td><td rowspan="2">40</td></tr><tr><td>478 scenes</td></tr></table>
|
| 58 |
+
|
| 59 |
+
# 3.1. Nodes
|
| 60 |
+
|
| 61 |
+
The nodes in our graph are per definition 3D object instances, and each instance is assigned to a 3D scene. Each instance is defined by a class hierarchy where the class of order 1, $c_{1}$ , in $c$ is the corresponding annotated label. The subsequent class labels are acquired by recursively parsing the lexical definition for hypernyms of $c_{1}$ using WordNet [8]. The definition "chair with a support on each side for arms" gives us $c_{n+1} =$ chair as a hypernym for $c_{n} =$ armchair. Lexical ambiguities result in multiple interpretations of a class label (lexeme); therefore a selection step is required to get only a single definition per class that is most likely in an indoor setting. Given the fact that the 1.5k 3D reconstructions feature 534 different class labels, 534 lexical descriptions and their corresponding class hierarchy are provided. Fig. 3 visualizes the lexical relationships on a small subset of classes. A more complete graph can be found in the supplementary.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 3. Simplified graphical visualization of the lexical relationships on a small subset of classes
|
| 65 |
+
|
| 66 |
+
# 3.2. Attributes
|
| 67 |
+
|
| 68 |
+
Attributes are semantic labels that describe object instances. This includes static and dynamic properties, as well as affordances. Due to the large number of object instances and the desired semantic diversity of the attributes, an efficient extraction and annotation design is crucial. In the following we define the different types of attributes and their acquisition.
|
| 69 |
+
|
| 70 |
+
Static Properties include visual object features such as the color, size, shape or texture but also physical properties e.g. the (non-)rigidity. Geometric data and class labels are utilized to identify the relative size of the object in comparison with other objects of the same category. Since some features are class specific, we assign them on the class level. An example is an automatic attribute extraction from the lexical descriptions e.g. a ball is spherical. The remaining, more complex, attributes such as the material (wooden, metal), shape (rectangular, L-shaped) or the texture (color or pattern) are instance specific and manually annotated by ex
|
| 71 |
+
|
| 72 |
+
pert annotators with an interface that was specifically designed for this purpose. We annotate static attributes in the reference scan and copy to each rescan, since they are not subject of change.
|
| 73 |
+
|
| 74 |
+
Dynamic Properties are particularly important object attributes, which we refer to as states, such as open / closed, full / empty or on / off. We define a state category to be class specific, while its current condition is a matter of instance and therefore also annotated with the aforementioned interface, together with generic static properties. Since state properties of objects can change over time specific instances in the rescans are separately annotated.
|
| 75 |
+
|
| 76 |
+
Affordances Following previous works [10, 47, 3] we define affordances as interaction possibilities or object functionalities of nodes of a specific object class e.g. a seat is for sitting. We however condition them with their state attribute: only a closed door can be opened. This is particularly interesting since our 3D scans are from changing scenes. These changes often involve state changes caused by human interaction (see examples in the supplementary material). Overall, 3DSSG features 93 different attributes on approx. 21k object instances and 48k attributes in total.
|
| 77 |
+
|
| 78 |
+
# 3.3. Relationships
|
| 79 |
+
|
| 80 |
+
3DSSG has a rich set of relationships classifiable into a) spatial / proximity relationships b) support relations and c) comparative relationships.
|
| 81 |
+
|
| 82 |
+
Support Relationships Support relationships indicate the supporting structures of a scene [32]. By definition, an instance can have multiple supports; walls are by default supported by the floor and the floor is the only instance that, by definition, does not have any support. Automatically extracting support relationships is quite challenging due to the noisy and partial nature of real 3D scans. For each object in the scene, we consider neighbouring instances in a small radius (e.g. 5cm) support candidates. These support candidates then undergo a verification procedure to a) eliminate incorrect supports and b) complete missing candidates. Remaining class-to-class (e.g. bottle-table) support pairs are then annotated with a so called semantic support (e.g. standing, lying) and then specified for each instance in the dataset.
|
| 83 |
+
|
| 84 |
+
Proximity Relationships Proximity relationships describe the spatial relationships (e.g. next to, in front of) with respect to a reference view. To limit
|
| 85 |
+
|
| 86 |
+
redundancy, we only compute proximity relationships between the nodes that share a support parent. A bottle on a table therefore has no proximity relationship with a chair but the supporting table does, since the proximity relationship of the bottle can automatically be derived from its support parent.
|
| 87 |
+
|
| 88 |
+
Comparative Relationships The last group of relationships are derived from comparison of attributes, e.g. bigger than, darker than, cleaner than, same shape as. We use aforementioned attributes, see Section 3.2, to generate these.
|
| 89 |
+
|
| 90 |
+
# 4. Graph Prediction
|
| 91 |
+
|
| 92 |
+
Given the point set $\mathcal{P}$ of a scene $s$ and the class-agnostic instance segmentation $\mathcal{M}$ , the goal of the Scene Graph Prediction Network (SGPN) is to generate a graph $\mathcal{G} = (\mathcal{N},\mathcal{R})$ , describing the objects in the scene $\mathcal{N}$ as well as their relationships $\mathcal{R}$ , Fig. 4. We base our learning method in a common principle in scene graph prediction [29, 48, 49], which involves extraction of visual features for every node $\phi_{n}$ and edge $\phi_r$ . We use two PointNet [34] architectures for the extraction of $\phi_{n}$ and $\phi_r$ , which we dub namely ObjPointNet and RelPointNet. For a scene $s$ , we extract the point set of every instance $i$ separately, masked with $\mathcal{M}$
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathcal {P} _ {i} = \left\{\delta_ {m _ {k} i} \odot p _ {k} \right\} _ {k = 1, | \mathcal {P} |} \tag {1}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $\delta$ represents the Kronecker delta $^2$ , $p, m$ are instances of $\mathcal{P}, \mathcal{M}$ and $|\cdot|$ is the cardinality of $\mathcal{P}$ , i.e. the number of points. Each of the individual point sets $\mathcal{P}_i$ is the input to ObjPointNet.
|
| 99 |
+
|
| 100 |
+
Additionally, we extract a point set for every pair of nodes $i$ and $j$ , using the union of the respective 3D bounding boxes $\mathcal{B}$
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\mathcal {P} _ {i j} = \left\{p _ {k} \mid p _ {k} \in \left(\mathcal {B} ^ {i} \cup \mathcal {B} ^ {j}\right) \right\} _ {k = 1, | \mathcal {P} |}. \tag {2}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
The input to RelPointNet is a point set $\mathcal{P}_{ij}$ , concatenated with the respective mask $\mathcal{M}_{ij}$ , which is one if the point corresponds to object $i$ , two if the point corresponds to object $j$ and zero otherwise. Preserving the orientation of the edge context $\mathcal{P}_{ij}$ is important to infer proximity relationships like left or right. Therefore, we disable rotational augmentation. We normalize the center of the object and edge point clouds, before feeding them to the respective networks. We arrange the extracted features in a graph structure, in the form of relationship triples (subject, predicate, object), where $\phi_{n}$ occupy subject / object units, while edge features $\phi_{r}$ occupy the predicate units.
|
| 107 |
+
|
| 108 |
+
We employ a Graph Convolutional Network (GCN) [18], similar to [16], to process the acquired triples. As scenes
|
| 109 |
+
|
| 110 |
+
come with diverse complexities, we want the GCN to allow flexibility in the number of input nodes. Each message-passing layer $l$ of the GCN consists of two steps. First, each triplet $ij$ is fed in an MLP $g_{1}(\cdot)$ for information propagation
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\left(\psi_ {s, i j} ^ {(l)}, \phi_ {p, i j} ^ {(l + 1)}, \psi_ {o, i j} ^ {(l)}\right) = g _ {1} \left(\phi_ {s, i j} ^ {(l)}, \phi_ {p, i j} ^ {(l)}, \phi_ {s, i j} ^ {(l)}\right) \tag {3}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
where $\psi$ represent the processed features, $s$ indicates subject, $o$ indicates object, and $p$ predicate. Second, for a certain node, in an aggregation step, the signals coming from all the valid connections of that node (either as a subject or an object) are averaged together
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\rho_ {i} ^ {(l)} = \frac {1}{\left| \mathcal {R} _ {i , s} \right| + \left| \mathcal {R} _ {i , o} \right|} \left(\sum_ {j \in \mathcal {R} _ {s}} \psi_ {s, i j} ^ {(l)} + \sum_ {j \in \mathcal {R} _ {o}} \psi_ {o, j i} ^ {(l)}\right) \tag {4}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
where $|\cdot|$ denotes cardinality and $\mathcal{R}_s$ and $\mathcal{R}_o$ are the set of connections of the node as subject and as objects respectively. The resulting node feature is fed in another MLP $g_2(\cdot)$ . Inspired by [22], we adapt a residual connection to overcome potential Laplacian smoothing on graphs and obtain the final node feature as
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\phi_ {i} ^ {(l + 1)} = \phi_ {i} ^ {(l)} + g _ {2} \left(\rho_ {i} ^ {(l)}\right). \tag {5}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
The final features $\phi_{s,ij}^{(l + 1)},\phi_{p,ij}^{(l + 1)},\phi_{o,ij}^{(l + 1)}$ are then processed by the next convolutional layer $l$ , in the same fashion. After each layer $l$ , the node visibility is propagated to a further neighbour level. Hence, the number of layers equals the order of relations that the model can capture.
|
| 129 |
+
|
| 130 |
+
The last part of the GCN consists of two MLPs for the prediction of the node and predicate classes.
|
| 131 |
+
|
| 132 |
+
Losses We train our model end-to-end, optimizing an object classification loss $\mathcal{L}_{\mathrm{obj}}$ as well as a predicate classification loss $\mathcal{L}_{\mathrm{pred}}$
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\mathcal {L} _ {\text {t o t a l}} = \lambda_ {o b j} \mathcal {L} _ {\text {o b j}} + \mathcal {L} _ {\text {p r e d}} \tag {6}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
where $\lambda_{obj}$ is a weighting factor. We assume that, realistically, for a certain object pair there are multiple valid relationships that describe their interaction. For instance, in Fig. 1, a chair can be front of another chair, while simultaneously having the same appearance (same as). Therefore, we formulate $\mathcal{L}_{\mathrm{pred}}$ as per-class binary cross entropy. This way, it is judged independently whether an edge should be assigned a certain label (e.g. standing on) or none. To deal with class imbalance, for both loss terms we use a focal loss [26]
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\mathcal {L} = - \alpha_ {t} (1 - p _ {t}) ^ {\gamma} \log p _ {t} \tag {7}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where $p_t$ represents the logits of a prediction and $\gamma$ is a hyper-parameter. $\alpha_t$ is the normalized inverse frequency for the multi-class loss $(\mathcal{L}_{obj})$ and a fixed edge / no-edge factor for the per-class loss $(\mathcal{L}_{pred})$ .
|
| 145 |
+
|
| 146 |
+
Implementation details are provided in the supplement.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Input: Point set of a scene $\mathcal{P}$
|
| 150 |
+
Figure 4. Scene Graph Prediction Network Given a point set $\mathcal{P}$ of a scene, annotated with instance segmentation $\mathcal{M}$ , we infer a scene graph $\mathcal{G}$ . Left: Visual point features $\phi$ are extracted per object (color-coded) and per edge. Center: The features $\phi$ are arranged in a graph structure for further processing from a GNN. Right: The predicted graph, consisting of labeled object nodes and directed labeled edges.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
ObjPointNet
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Fully-Connected Graph of Features
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Output: 3D Scene Graph $\mathcal{G}$
|
| 160 |
+
|
| 161 |
+
# 5. Scene Retrieval
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 5. Cross Domain 2D-3D Scene Retrieval: scene graphs are used in our cross-domain scene retrieval task to close the domain gap between 2D images, 3D scenes and other modalities
|
| 165 |
+
|
| 166 |
+
We introduce a new cross-domain task named image based 3D scene retrieval in changing indoor environments which is about identifying the 3D scene from a list of scans given a single 2D image with potential global and local changes (see Fig. 5). This is particularly challenging since it involves a) multiple domains (2D images and 3D models) and b) scene changes (moving objects, changing illumination). For the evaluation we select semantically rich 2D images from the rescan sequences in 3RScan [45]. Due to the domain gap between 2D images and 3D we propose
|
| 167 |
+
|
| 168 |
+
carrying out this novel retrieval task through scene graphs – which are by definition more stable towards scene changes – and serve as a shared domain between 2D and 3D. Such an approach also allows to retrieve 3D scenes from any input domain from which a scene graph can be generated e.g. natural language or 3D directly. We show how different similarity metrics can be used to successfully find the correct 3D scene using not only object semantics but also the scene context in form of semantically meaningful relationships between object instances. Computing the similarity between graphs is a NP-complete problem, so instead of matching graphs directly via their graph edit distance we first transform our scene graphs into multisets containing node classes and their (semantic) edges / tuples. Please note that these potentially have repetition of elements. To get the similarity of two graphs, a similarity scores $\tau$ is applied on the corresponding multisets $s(\mathcal{G})$ respectively. For our tests we explore two different similarity functions: Jaccard $\tau_J(A,B)$ , eq. 8 and Szymkiewicz-Simpson $\tau_S(A,B)$ , eq. 9.
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\tau_ {J} (A, B) = \frac {| A \cap B |}{| A \cup B |} \tag {8}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
$$
|
| 175 |
+
\tau_ {S} (A, B) = \frac {| A \cap B |}{\min (| A | , | B |)} \tag {9}
|
| 176 |
+
$$
|
| 177 |
+
|
| 178 |
+
While the Jaccard coefficient is a widely used metric, the Szymkiewicz-Simpson coefficient can provide more meaningful similarity scores especially when the two sets $A$ and $B$ have very different sizes which is often the case in a 2D-3D scenario. When matching two graphs $\mathcal{G}$ and $\mathcal{G}'$ we combine the similarity metric of the object semantics, generic node edges $\mathcal{E}$ as well as semantic relationships $\mathcal{R}$ and obtain
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 6. Qualitative results of our scene graph prediction model (best viewed in the digital file). Green: correctly predicted edges, blue: missing ground truth, red: miss-classified edges, gray: wrongly predicted as none when GT is a valid relationship.
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
f \left(\hat {\mathcal {G}}, \hat {\mathcal {G}} ^ {\prime}\right) = \frac {1}{| \hat {G} |} \sum_ {i = 1} ^ {| \hat {\mathcal {G}} |} \tau \left(s \left(\hat {\mathcal {G}} ^ {(i)}\right), s \left(\hat {\mathcal {G}} ^ {\prime (i)}\right)\right) ^ {3} \tag {10}
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
where $\tau$ is either the Jaccard or Szymkiewicz-Simpson coefficient and $\hat{\mathcal{G}}$ is defined as the augmented graph $\hat{\mathcal{G}} = (\mathcal{N},\mathcal{E},\mathcal{R})$ where $\mathcal{E}$ are binary edges. Interestingly, one can use our retrieval method to find rooms that fulfill certain requirements such as the available of objects e.g. meeting room with a TV, whiteboard but could also include affordances: sitting for 20 people.
|
| 188 |
+
|
| 189 |
+
# 6. Evaluation
|
| 190 |
+
|
| 191 |
+
In the following, we first report results of our 3D graph prediction by comparing it against a relationship prediction baseline, inspired by [29], on our newly created 3DSSG-dataset. We re-implemented and adapted their method to work with 3D data. The baseline extracts node and edge features from an image, which we translate to PointNet features in 3D, similar to our network. The edge and node features are passed directly, namely to a predicate and object classifier. For evaluation we use the same train and test splits as originally proposed by [45]. We validate the effectiveness of our multi predicate classifier and GCN in our proposed network in an ablation study. In the second section, we evaluate different graph matching functions in 2D-3D as well as 3D-3D retrieval by matching changed scenes.
|
| 192 |
+
|
| 193 |
+
# 6.1. Semantic Scene Graph Prediction
|
| 194 |
+
|
| 195 |
+
Here, we report the results of our scene graph prediction task. Following previous works [48] we first separately evaluate the predicate (relationship) prediction in isolation from the object classes. The overall scene graph prediction performance is evaluated jointly where the relationship as well as the object categories are to be predicted given a set of localized objects. Since our method predicts the relationship as well as the object categories independently from another, we obtain an ordered list of triplet classification scores by multiplying the respective scores [49]. Similarly to the predicate prediction, the performance of the object categories is reported. We adopt the recall metric used in [29] to evaluate most confident (subject, predicate, object) triplets against the ground-truth in a top-n manner. Tbl. 2 shows that we outperform the baseline in graph related metrics, while being on par in object classification. Additionally, as expected, the multiple predicate prediction model leads to a higher predicate accuracy, which we attribute to the inherent ambiguity in a single classification problem, when multiple outputs are plausible. Moreover, we compare two versions of our model, in which the object classification is performed a) directly on the PointNet features $\phi_{n}$ and b) to the output of the GCN. We observe a slight improvement in the object and predicate accuracy for the former. Fig. 6 illustrates the predicted scene graphs. In all edges and nodes we show the predictions together with the ground truth in brackets. More examples can be found in the supplement.
|
| 196 |
+
|
| 197 |
+
Table 2. Evaluation of the scene graph prediction task on 3DSSG. We present triples prediction, object classification as well as predicate prediction accuracy.
|
| 198 |
+
|
| 199 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Relationship Prediction</td><td colspan="2">Object Class Prediction</td><td colspan="2">Predicate Prediction</td></tr><tr><td>R@50</td><td>R@100</td><td>R@5</td><td>R@10</td><td>R@3</td><td>R@5</td></tr><tr><td>① Relation Prediction Baseline</td><td>0.39</td><td>0.45</td><td>0.66</td><td>0.77</td><td>0.62</td><td>0.88</td></tr><tr><td>Single Predicate, ObjCls from PointNet Features</td><td>0.37</td><td>0.43</td><td>0.68</td><td>0.78</td><td>0.42</td><td>0.58</td></tr><tr><td>② Multi Predicate, ObjCls from PointNet Features</td><td>0.40</td><td>0.66</td><td>0.68</td><td>0.78</td><td>0.89</td><td>0.93</td></tr><tr><td>Multi Predicate, ObjCls from GCN Features</td><td>0.30</td><td>0.60</td><td>0.60</td><td>0.73</td><td>0.79</td><td>0.91</td></tr></table>
|
| 200 |
+
|
| 201 |
+
# 6.2. Scene Retrieval
|
| 202 |
+
|
| 203 |
+
Tbl. 3 and 4 report two scene retrieval tasks. The goal is to match either a single 2D image (Tbl. 4) or a 3D rescan of an indoor scene (Tbl. 3) with the most similar instance from a pool of 3D reference scans from the validation set of 3RScan. We compute the scene graph similarity between each rescan (2D or 3D) and the target reference scans. We then order the matches by their similarity and report the top-n metric, i.e. the percentage of the true positive assignments, placed in the top-n matches from our algorithm. In our experiment, we either use ground truth or predictions for the query and source graphs (see Graph-column in Tbl. 3 and 4). To measure the effect of the different similarity functions, decoupled from the graph prediction accuracy, we first evaluate $\tau_J(A,B)$ and $\tau_S(A,B)$ using ground truth graphs. Since the size of image and 3D scene graphs are significantly different, using the Szymkiewicz-Simpson coefficient in 2D-3D matching leads to better results while the performance of the Jaccard coefficient is on par or better in the 3D-3D scenario. We observe that adding semantic relationships to the graph matching improves the scene retrieval. The results also confirm that our predicted graphs $②$ achieve higher matching accuracy compared to the baseline model $①$ . Note that for the purpose of this experiment, predicted 2D graphs are obtained by rendering the predicted 3D graphs as described in Section 3.
|
| 204 |
+
|
| 205 |
+
Table 3. Evaluation: 3D-3D scene retrieval of changing 3D rescans to reference 3D scans in 3RScan.
|
| 206 |
+
|
| 207 |
+
<table><tr><td></td><td>Graph</td><td>Top-1</td><td>Top-3</td><td>Top-5</td></tr><tr><td>τS(s(N3D),s(N3D))</td><td>GT</td><td>0.86</td><td>0.99</td><td>1.00</td></tr><tr><td>fS(G3D,G3D)</td><td>GT</td><td>0.96</td><td>1.00</td><td>1.00</td></tr><tr><td>τJ(s(N3D),s(N3D))</td><td>GT</td><td>0.89</td><td>0.95</td><td>0.95</td></tr><tr><td>fJ(G3D,G3D)</td><td>GT</td><td>0.95</td><td>0.96</td><td>0.98</td></tr><tr><td>τJ(s(N3D),s(N3D))</td><td>①</td><td>0.15</td><td>0.40</td><td>0.45</td></tr><tr><td>fJ(G3D,G3D)</td><td>①</td><td>0.29</td><td>0.50</td><td>0.59</td></tr><tr><td>τJ(s(N3D),s(N3D))</td><td>②</td><td>0.32</td><td>0.46</td><td>0.50</td></tr><tr><td>fJ(G3D,G3D)</td><td>②</td><td>0.34</td><td>0.51</td><td>0.56</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Table 4. Evaluation: 2D-3D scene retrieval of changing rescans to reference 3D scans in 3RScan.
|
| 210 |
+
|
| 211 |
+
<table><tr><td></td><td>Graph</td><td>Top-1</td><td>Top-3</td><td>Top-5</td></tr><tr><td>τJ(s(N2D), s(N3D))</td><td>GT</td><td>0.49</td><td>0.75</td><td>0.84</td></tr><tr><td>τS(s(N2D), s(N3D))</td><td>GT</td><td>0.98</td><td>0.99</td><td>1.00</td></tr><tr><td>fJ(G2D, G3D)</td><td>GT</td><td>0.55</td><td>0.85</td><td>0.86</td></tr><tr><td>fS(G2D, G3D)</td><td>GT</td><td>1.00</td><td>1.00</td><td>1.00</td></tr><tr><td>τS(s(N2D), s(N3D))</td><td>①</td><td>0.17</td><td>0.36</td><td>0.42</td></tr><tr><td>fS(G2D, G3D)</td><td>①</td><td>0.10</td><td>0.25</td><td>0.32</td></tr><tr><td>τS(s(N2D), s(N3D))</td><td>②</td><td>0.17</td><td>0.36</td><td>0.41</td></tr><tr><td>fS(G2D, G3D)</td><td>②</td><td>0.13</td><td>0.38</td><td>0.42</td></tr></table>
|
| 212 |
+
|
| 213 |
+
# 7. Conclusion
|
| 214 |
+
|
| 215 |
+
In this work, we explore 3D semantic scene graphs. We release 3DSSG a 3D scene graph dataset with semantically rich relationships based on 3RScan [45]. We use our data to train a graph prediction network for 3D scenes that is able to estimate not only object semantics but also relationships between objects. Further, we show the usefulness of graphs in 3D scenes by applying it to a new cross-domain task called image based 3D scene retrieval in changing indoor environments. This shows how semantic scene graphs are useful to bridge the domain gap between 2D-3D; opening doors for new applications such as text-3D scene retrieval or VQA. We further believe that scene graphs (and their changes) could potentially help to better reason about human activities in changing indoor environments.
|
| 216 |
+
|
| 217 |
+
# Acknowledgment
|
| 218 |
+
|
| 219 |
+
We would like to thank Mariia Gladkova, Alina Karimova and Premankur Banerjee for their help with the data preparation and annotations. This work was funded by the Deutsche Forschungsgemeinschaft (DFG) #381855581, the Bavarian State Ministry of Education, Science and the Arts in the framework of the Centre Digitisation Bavaria (ZD.B) and a Google AR/VR University Research Award.
|
| 220 |
+
|
| 221 |
+
# References
|
| 222 |
+
|
| 223 |
+
[1] Hameed Abdul-Rashid, Juefei Yuan, Bo Li, Yijuan Lu, Song Bai, Xiang Bai, Ngoc-Minh Bui, Minh N. Do, Trong-Le Do, Anh-Duc Duong, Xinwei He, Tu-Khiem Le, Wenhui Li, Anan Liu, Xiaolong Liu, Khac-Tuan Nguyen, Vinh-Tiep Nguyen, Weizhi Nie, Van-Tu Ninh, Yuting Su, Vinh Ton-That, Minh-Triet Tran, Shu Xiang, Heyu Zhou, Yang Zhou, and Zhichao Zhou. 2D Image-based 3D Scene Retrieval. In Eurographics Workshop on 3D Object Retrieval, 2018. 3
|
| 224 |
+
[2] Hameed Abdul-Rashid, Juefei Yuan, Bo Li, Yijuan Lu, Tobias Schreck, Ngoc-Minh Bui, Trong-Le Do, Mike Holenderski, Dmitri Jarnikov, Khiem T. Le, Vlado Menkovski, Khac-Tuan Nguyen, Thanh-An Nguyen, Vinh-Tiep Nguyen, Tu V. Ninh, Perez Rey, Minh-Triet Tran, and Tianyang Wang. Extended 2D Scene Image-Based 3D Scene Retrieval. In Silvia Biasotti, Guillaume Lavou, and Remco Veltkamp, editors, Eurographics Workshop on 3D Object Retrieval, 2019. 3
|
| 225 |
+
[3] Iro Armeni, Zhi-Yang He, JunYoung Gwak, Amir R. Zamir, Martin Fischer, Jitendra Malik, and Silvio Savarese. 3D Scene Graph: A Structure for Unified Semantics, 3D Space, and Camera. In International Conference on Computer Vision (ICCV), 2019. 1, 3, 4
|
| 226 |
+
[4] Angela Dai, Angel Xuan Chang, Manolis Savva, Maciej Halber, Tom Funkhouser, and Matthias Nießner. ScanNet: Richly-annotated 3D reconstructions of indoor scenes. In International Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2, 3
|
| 227 |
+
[5] Angela Dai and Matthias Nießner. 3DMV: Joint 3D-Multiview Prediction for 3D Semantic Scene Segmentation. In European Conference on Computer Vision (ECCV), 2018. 1
|
| 228 |
+
[6] Helisa Dhamo, Azade Farshad, Iro Laina, Nassir Navab, Gregory D. Hager, Federico Tombari, and Christian Rupprecht. Semantic Image Manipulation Using Scene Graphs. In Computer Vision and Pattern Recognition (CVPR), 2020. 2
|
| 229 |
+
[7] Francis Engelmann, Theodora Kontogianni, Alexander Hermans, and Bastian Leibe. Exploring Spatial Context for 3D Semantic Segmentation of Point Clouds. In International Conference on Computer Vision (ICCV) Workshops, 2017. 2
|
| 230 |
+
[8] Christiane Fellbaum, editor. WordNet: an electronic lexical database. MIT Press, 1998. 4
|
| 231 |
+
[9] Matthew Fisher, Manolis Savva, and Pat Hanrahan. Characterizing structural relationships in scenes using graph kernels. ACM Trans. Graph, 2011. 2, 3
|
| 232 |
+
[10] James J. Gibson. The Ecological Approach to Visual Perception. Boston: Houghton Mifflin, 1979. 4
|
| 233 |
+
[11] Roei Herzig, Moshiko Raboh, Gal Chechik, Jonathan Berant, and Amir Globerson. Mapping Images to Scene Graphs with Permutation-Invariant Structured Prediction. In Conference on Neural Information Processing Systems (NeurIPS), 2018. 2
|
| 234 |
+
[12] Ji Hou, Angela Dai, and Matthias Nießner. 3D-SIS: 3D Semantic Instance Segmentation of RGB-D Scans. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2
|
| 235 |
+
|
| 236 |
+
[13] Siyuan Huang, Siyuan Qi, Yinxue Xiao, Yixin Zhu, Ying Nian Wu, and Song-Chun Zhu. Cooperative Holistic Scene Understanding: Unifying 3D Object, Layout, and Camera Pose Estimation. In Conference on Neural Information Processing Systems (NeurIPS), 2018. 2
|
| 237 |
+
[14] Hamid Izadinia, Qi Shan, and Steven M Seitz. IM2CAD. In Computer Vision and Pattern Recognition (CVPR), 2017. 3
|
| 238 |
+
[15] Chenfanfu Jiang, Siyuan Qi, Yixin Zhu, Siyuan Huang, Jenny Lin, Lap-Fai Yu, Demetri Terzopoulos, and Song-Chun Zhu. Configurable 3D Scene Synthesis and 2D Image Rendering with Per-pixel Ground Truth Using Stochastic Grammars. International Journal of Computer Vision (IJCV), 2018. 2
|
| 239 |
+
[16] Justin Johnson, Agrim Gupta, and Li Fei-Fei. Image Generation from Scene Graphs. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2, 5
|
| 240 |
+
[17] J. Johnson, R. Krishna, M. Stark, L. Li, D. A. Shamma, M. S. Bernstein, and L. Fei-Fei. Image retrieval using scene graphs. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 1, 2
|
| 241 |
+
[18] Thomas N. Kipf and Max Welling. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations (ICLR), 2017. 2, 5
|
| 242 |
+
[19] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalanditis, Li-Jia Li, David A Shamma, Michael Bernstein, and Li Fei-Fei. Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations. International Journal of Computer Vision (IJCV), 2017. 1, 2, 3
|
| 243 |
+
[20] Nilesh Kulkarni, Ishan Misra, Shubham Tulsiani, and Abhinav Gupta. 3D-RelNet: Joint Object and Relational Network for 3D Prediction. International Conference on Computer Vision (ICCV), 2019. 2
|
| 244 |
+
[21] Jean Lahoud, Bernard Ghanem, Marc Pollefeys, and Martin R. Oswald. 3D Instance Segmentation via Multi-Task Metric Learning. In International Conference on Computer Vision (ICCV), 2019. 1
|
| 245 |
+
[22] Guohao Li, Matthias Miller, Ali Thabet, and Bernard Ghanem. DeepGCNs: Can GCNs Go as Deep as CNNs? In International Conference on Computer Vision (ICCV), 2019. 5
|
| 246 |
+
[23] Manyi Li, Akshay Gadi Patil, Kai Xu, Siddhartha Chaudhuri, Owais Khan, Ariel Shamir, Changhe Tu, Baoquan Chen, Daniel Cohen-Or, and Hao Zhang. GRAINS: Generative Recursive Autoencoders for Indoor Scenes. ACM Transactions on Graphics (TOG), 2018. 2
|
| 247 |
+
[24] Yikang Li, Wanli Ouyang, Bolei Zhou, Jianping Shi, Chao Zhang, and Xiaogang Wang. Factorizable Net: An Efficient Subgraph-Based Framework for Scene Graph Generation. In European Conference on Computer Vision (ECCV), 2018. 2
|
| 248 |
+
[25] Yikang Li, Wanli Ouyang, Bolei Zhou, Kun Wang, and Xiaogang Wang. Scene Graph Generation from Objects, Phrases and Region Captions. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
|
| 249 |
+
[26] T. Lin, P. Goyal, R. Girshick, K. He, and P. Dollr. Focal Loss for Dense Object Detection. In International Conference on Computer Vision (ICCV), 2017. 5
|
| 250 |
+
|
| 251 |
+
[27] Mingming Liu, Yunfeng Zhang, Jingwu He, Jie Guo, and Yanwen Guo. Image-Based 3D Model Retrieval for Indoor Scenes by Simulating Scene Context. International Conference on Image Processing (ICIP), 2018. 3
|
| 252 |
+
[28] Tianqiang Liu, Siddhartha Chaudhuri, Vladimir Kim, Qixing Huang, Niloy Mitra, and Thomas Funkhouser. Creating Consistent Scene Graphs Using a Probabilistic Grammar. ACM Transactions on Graphics (TOG), 2014. 2
|
| 253 |
+
[29] Cewu Lu, Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. Visual Relationship Detection with Language Priors. In European Conference on Computer Vision (ECCV), 2016. 5, 7
|
| 254 |
+
[30] Rui Ma, Akshay Gadi Patil, Matthew Fisher, Manyi Li, Sren Pirk, Binh-Son Hua, Sai-Kit Yeung, Xin Tong, Leonidas Guibas, and Hao Zhang. Language-Driven Synthesis of 3D Scenes from Scene Databases. In SIGGRAPH Asia, Technical Papers, 2018. 2, 3
|
| 255 |
+
[31] Kaichun Mo, Paul Guerrero, Li Yi, Hao Su, Peter Wonka, Niloy Mitra, and Leonidas Guibas. StructureNet: Hierarchical Graph Networks for 3D Shape Generation. ACM Transactions on Graphics (TOG), 2019. 2
|
| 256 |
+
[32] Pushmeet Kohli Nathan Silberman, Derek Hoiem and Rob Fergus. Indoor Segmentation and Support Inference from RGBD Images. In European Conference on Computer Vision (ECCV), 2012. 1, 4
|
| 257 |
+
[33] Alejandro Newell and Jia Deng. Pixels to graphs by associative embedding. In Conference on Neural Information Processing Systems (NeurIPS), 2017. 2
|
| 258 |
+
[34] Charles Ruizhongtai Qi, Hao Su, Kaichun Mo, and Leonidas Guibas. PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 1, 2, 5
|
| 259 |
+
[35] Charles Ruizhongtai Qi, Hao Su, Matthias Nießner, Angela Dai, Mengyuan Yan, and Leonidas Guibas. Volumetric and Multi-View CNNs for Object Classification on 3D Data. In Computer Vision and Pattern Recognition (CVPR), 2016. 1, 2
|
| 260 |
+
[36] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas Guibas. PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space. In Conference on Neural Information Processing Systems (NeurIPS), 2017. 1, 2
|
| 261 |
+
[37] Mengshi Qi, Weijian Li, Zhengyuan Yang, Yunhong Wang, and Jiebo Luo. Attentive Relational Networks for Mapping Images to Scene Graphs. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
|
| 262 |
+
[38] Dario Rethage, Johanna Wald, Jürgen Sturm, Nassir Navab, and Federico Tombari. Fully-Convolutional Point Networks for Large-Scale Point Clouds. In European Conference on Computer Vision (ECCV), 2018. 1, 2
|
| 263 |
+
[39] Yifei Shi, Angel Xuan Chang, , Zhelun Wu, Manolis Savva, and Kai Xu. Hierarchy Denoising Recursive Autoencoders for 3D Scene Layout Prediction. In Computer Vision and Pattern Recognition (CVPR), 2019. 2
|
| 264 |
+
[40] Shuran Song, Samuel Lichtenberg, and Jianxiong Xiao. SUN RGB-D: A RGB-D Scene Understanding Benchmark Suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 1, 2
|
| 265 |
+
|
| 266 |
+
[41] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view Convolutional Neural Networks for 3D Shape Recognition. In International Conference on Computer Vision (ICCV), 2015. 2
|
| 267 |
+
[42] Xingyuan Sun, Jiajun Wu, Xiuming Zhang, Zhoutong Zhang, Chengkai Zhang, Tianfan Xue, Joshua B. Tenenbaum, and William T. Freeman. Pix3D: Dataset and Methods for Single-Image 3D Shape Modeling. In Computer Vision and Pattern Recognition (CVPR), 2018. 3
|
| 268 |
+
[43] Gusi Te, Wei Hu, Amin Zheng, and Zongming Guo. RGCNN: Regularized Graph CNN for Point Cloud Segmentation. In International Conference on Multimedia, 2018. 2
|
| 269 |
+
[44] Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatrix Marcotegui, Francois Goulette, and Leonidas J. Guibas. KPConv: Flexible and Deformable Convolution for Point Clouds. In International Conference on Computer Vision (ICCV), 2019. 1
|
| 270 |
+
[45] Johanna Wald, Armen Avetisyan, Nassir Navab, Federico Tombari, and Matthias Nießner. RIO: 3D Object Instance Re-Localization in Changing Indoor Environments. In International Conference on Computer Vision (ICCV), 2019. 2, 3, 6, 7, 8
|
| 271 |
+
[46] Miao Wang, Yu-Kun Lai, Yuan Liang, Ralph R. Martin, and Shi-Min Hu. BiggerPicture: Data-driven Image Extrapolation Using Graph Matching. ACM Transactions on Graphics (TOG), 2014. 1
|
| 272 |
+
[47] Fei Xia, Amir R. Zamir, Zhi-Yang He, Alexander Sax, Jitendra Malik, and Silvio Savarese. Gibson Env: Real-World Perception for Embodied Agents. In Computer Vision and Pattern Recognition (CVPR). IEEE, 2018. 3, 4
|
| 273 |
+
[48] Danfei Xu, Yuke Zhu, Christopher Choy, and Li Fei-Fei. Scene Graph Generation by Iterative Message Passing. In Computer Vision and Pattern Recognition (CVPR), 2017. 2, 5, 7
|
| 274 |
+
[49] Jianwei Yang, Jiasen Lu, Stefan Lee, Dhruv Batra, and Devi Parikh. Graph R-CNN for Scene Graph Generation. In European Conference on Computer Vision (ECCV), 2018. 2, 5, 7
|
| 275 |
+
[50] Li Yi, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas J. Guibas. GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1
|
| 276 |
+
[51] Rowan Zellers, Mark Yatskar, Sam Thomson, and Yejin Choi. Neural Motifs: Scene Graph Parsing with Global Context. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
|
| 277 |
+
[52] Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3D Point Capsule Networks. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
|
| 278 |
+
[53] Yibiao Zhao and Song chun Zhu. Image Parsing with Stochastic Scene Grammar. In Conference on Neural Information Processing Systems (NeurIPS), 2011. 2
|
| 279 |
+
[54] Yin Zhou and Oncel Tuzel. VoxelNet: End-to-End Learning for Point Cloud Based 3D Object Detection. Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 1
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43ed1a027d0bce87779fe4b488641420865f427bf73d6ce211e85e7e9b74fae1
|
| 3 |
+
size 533520
|
learning3dsemanticscenegraphsfrom3dindoorreconstructions/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0b9abacacf305bd55160f47ed79253adfdeb4885ae59ac3d4deb107ad0feed1
|
| 3 |
+
size 375102
|
learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4203fce3660b3a7b6810134c5eb92cce9800499d3e2c3f6cab8fe7865c565242
|
| 3 |
+
size 73575
|
learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fa2a0b1c384c3f5a9b85d2e9a5130933ae055ab311f28f53eaf7e502f220d98
|
| 3 |
+
size 87011
|