diff --git a/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_content_list.json b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..87709e339ddc9ff2af3f98e6a844e0e446ae32f1
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:205f91d43124c6e1c2784b575a5f13828fedd6986156fc01a4ee7814b389d6e5
+size 71747
diff --git a/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_model.json b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ece6d9e15ba686036a51e76e70482a452fe0ae6
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:38a859563561974fa8af1126641601506306a84684e8ee446adc204ce129b043
+size 88907
diff --git a/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_origin.pdf b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0be1b9b5196d244dc6a2f6ad39aa5d569935ee95
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/0dc2a4fb-2c37-4d3f-9e78-1d2e7c79c2ce_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da66edbde6858b2b58631fc12e783af5559005cce482dec8327234181cfbee98
+size 1358743
diff --git a/labeldecouplingframeworkforsalientobjectdetection/full.md b/labeldecouplingframeworkforsalientobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..38e8cb9e4319bc651dcf366e32fe4fd044fc1454
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/full.md
@@ -0,0 +1,284 @@
+# Label Decoupling Framework for Salient Object Detection
+
+Jun Wei $^{1,2}$ , Shuhui Wang $^{1*}$ , Zhe Wu $^{2,3}$ , Chi Su $^{4}$ , Qingming Huang $^{1,2,3}$ , Qi Tian $^{5}$
+
+1Key Lab of Intell. Info. Process., Inst. of Comput. Tech., CAS, Beijing, China
+
+$^{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
+
+jun.wei@vipl.ict.ac.cn, wangshuhui@ict.ac.cn, zhe.wu@vipl.ict.ac.cn
+
+suchi@kingsoft.com, qmhuang@ucas.ac.cn, tian.qil@huawei.com
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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
+
+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.
+
+
| EGNet [41] | SCRN [34] |
| ECSSD | DUTS | DUT-O | ECSSD | DUTS | DUT-O |
| MAEglobal | 0.037 | 0.039 | 0.053 | 0.037 | 0.040 | 0.056 |
| MAEedge | 0.289 | 0.292 | 0.298 | 0.299 | 0.297 | 0.302 |
+
+
+(a) EGNet [41]
+
+
+(b) SCRN [34]
+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.
+
+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
+
+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].
+
+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.
+
+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.
+
+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
+
+ment procedure is helpful for obtaining gradually accurate saliency maps prediction.
+
+We conduct experiments on six popular SOD datasets and demonstrate the superior performance of LDF. In summary, our contributions are as follows:
+
+- 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.
+- 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.
+- 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].
+
+# 2. Related Work
+
+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.
+
+# 2.1. Aggregation-based Models
+
+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.
+
+
+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.
+
+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.
+
+# 2.2. Edge-based Models
+
+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
+
+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.
+
+# 3. Methodology
+
+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.
+
+# 3.1. Label Decoupling
+
+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
+
+pixel has a value corresponding to the minimum distance from the background by a distance function.
+
+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
+
+$$
+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}
+$$
+
+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
+
+$$
+\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}
+$$
+
+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.
+
+# 3.2. Feature Extraction
+
+As suggested by [28, 27, 21], we use ResNet-50 [14] as our backbone network. Specifically, we remove the fully
+
+
+(a).Image
+
+
+(b).Ground Truth
+
+
+(c).Body Label
+
+
+(d).Detail Label
+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).
+
+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.
+
+# 3.3. Feature Interaction Network
+
+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.
+
+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
+
+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.
+
+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.
+
+# 3.4. Loss Function
+
+Our training loss is defined as the summation of the outputs of all iterations as,
+
+$$
+\mathcal {L} = \sum_ {k = 1} ^ {K} \alpha_ {k} \ell^ {(k)}, \tag {3}
+$$
+
+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:
+
+$$
+\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}
+$$
+
+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:
+
+$$
+\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}
+$$
+
+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
+
+measure the similarity of two images on the whole rather than a single pixel. It is defined as:
+
+$$
+\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}
+$$
+
+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.
+
+# 4. Experiments
+
+# 4.1. Datasets and Evaluation Metrics
+
+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.
+
+$$
+M A E = \frac {1}{H \times W} \sum_ {i = 1} ^ {H} \sum_ {j = 1} ^ {W} | P (i, j) - G (i, j) | \tag {7}
+$$
+
+where $P$ is the predicted map and $G$ is the ground truth.
+
+# 4.2. Implementation Details
+
+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
+
+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.
+
+| Algorithm | ECSSD 1,000 images | PASCAL-S 850 images | DUTS-TE 5,019 images | HKU-IS 4,447 images | DUT-OMRON 5,168 images | THUR15K 6,232 images | |
| MAE | mF | Eξ | MAE | mF | Eξ | MAE | mF | Eξ | MAE | mF | Eξ | MAE | mF | Eξ | MAE | mF | Eξ |
| BMPM [38] | .044 | .894 | .914 | .073 | .803 | .838 | .049 | .762 | .859 | .039 | .875 | .937 | .063 | .698 | .839 | .079 | .704 | .803 |
| DGRL [28] | .043 | .903 | .917 | .074 | .807 | .836 | .051 | .764 | .863 | .037 | .881 | .941 | .063 | .709 | .843 | .077 | .716 | .811 |
| R³Net [7] | .051 | .883 | .914 | .101 | .775 | .824 | .067 | .716 | .827 | .047 | .853 | .921 | .073 | .690 | .814 | .078 | .693 | .803 |
| RAS [4] | .055 | .890 | .916 | .102 | .782 | .832 | .060 | .750 | .861 | .045 | .874 | .931 | .063 | .711 | .843 | .075 | .707 | .821 |
| PiCA-R [21] | .046 | .867 | .913 | .075 | .776 | .833 | .051 | .754 | .862 | .043 | .840 | .936 | .065 | .695 | .841 | .081 | .690 | .803 |
| AFNet [13] | .042 | .908 | .918 | .070 | .821 | .846 | .046 | .792 | .879 | .036 | .888 | .942 | .057 | .738 | .853 | .072 | .730 | .820 |
| BASNet [23] | .037 | .880 | .921 | .076 | .775 | .847 | .048 | .791 | .884 | .032 | .895 | .946 | .056 | .756 | .869 | .073 | .733 | .821 |
| CPD-R [33] | .037 | .917 | .925 | .072 | .824 | .849 | .043 | .805 | .886 | .034 | .891 | .944 | .056 | .747 | .866 | .068 | .738 | .829 |
| EGNet-R [41] | .037 | .920 | .927 | .074 | .823 | .849 | .039 | .815 | .891 | .032 | .898 | .948 | .053 | .755 | .867 | .067 | .741 | .829 |
| PAGE [31] | .042 | .906 | .920 | .077 | .810 | .841 | .052 | .777 | .869 | .037 | .882 | .940 | .062 | .736 | .853 | - | - | - |
| TDBU [30] | .041 | .880 | .922 | .071 | .779 | .852 | .048 | .767 | .879 | .038 | .878 | .942 | .061 | .739 | .854 | - | - | - |
| SCRN [34] | .037 | .918 | .926 | .064 | .832 | .857 | .040 | .808 | .888 | .034 | .896 | .949 | .056 | .746 | .863 | .066 | .741 | .833 |
| SIBA [24] | .035 | .923 | .928 | .070 | .830 | .855 | .040 | .815 | .892 | .032 | .900 | .950 | .059 | .746 | .860 | .068 | .741 | .832 |
| PoolNet [20] | .039 | .915 | .924 | .074 | .822 | .850 | .040 | .809 | .889 | .032 | .899 | .949 | .056 | .747 | .863 | .070 | .732 | .822 |
| LDF(ours) | .034 | .930 | .925 | .060 | .848 | .865 | .034 | .855 | .910 | .027 | .914 | .954 | .051 | .773 | .873 | .064 | .764 | .842 |
+
+
+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.
+
+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.
+
+# 4.3. Ablation Studies
+
+Number of Feature Interaction. Tab. 4 shows the performance with different numbers of feature interaction. Compared with the baseline which has no feature inter
+
+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.
+
+Different Combinations of Supervision. Tab. 5 shows the performance with different combinations of supervision.
+
+
+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.
+
+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.
+
+| Attr | PiCA-R | BMPM | R3Net | DGRL | RAS | AFNet | BASNet | PoolNet | CPD-R | EGNet-R | SCRN | Ours |
| AC | 0.721 | 0.727 | 0.659 | 0.744 | 0.664 | 0.763 | 0.773 | 0.746 | 0.765 | 0.739 | 0.770 | 0.774 |
| BO | 0.706 | 0.802 | 0.637 | 0.847 | 0.654 | 0.824 | 0.780 | 0.677 | 0.821 | 0.743 | 0.743 | 0.803 |
| CL | 0.703 | 0.708 | 0.667 | 0.735 | 0.616 | 0.740 | 0.721 | 0.723 | 0.741 | 0.707 | 0.751 | 0.772 |
| HO | 0.727 | 0.738 | 0.683 | 0.773 | 0.682 | 0.778 | 0.769 | 0.768 | 0.766 | 0.747 | 0.775 | 0.807 |
| MB | 0.779 | 0.757 | 0.669 | 0.809 | 0.687 | 0.794 | 0.791 | 0.784 | 0.810 | 0.741 | 0.815 | 0.840 |
| OC | 0.692 | 0.711 | 0.625 | 0.724 | 0.608 | 0.730 | 0.721 | 0.713 | 0.741 | 0.699 | 0.732 | 0.756 |
| OV | 0.778 | 0.783 | 0.677 | 0.797 | 0.666 | 0.805 | 0.802 | 0.774 | 0.799 | 0.768 | 0.801 | 0.820 |
| SC | 0.678 | 0.702 | 0.626 | 0.725 | 0.645 | 0.711 | 0.713 | 0.723 | 0.726 | 0.708 | 0.738 | 0.774 |
| SO | 0.569 | 0.588 | 0.546 | 0.618 | 0.560 | 0.615 | 0.619 | 0.631 | 0.635 | 0.605 | 0.639 | 0.676 |
| Avg | 0.662 | 0.673 | 0.611 | 0.698 | 0.608 | 0.700 | 0.697 | 0.694 | 0.709 | 0.680 | 0.710 | 0.739 |
+
+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.
+
+# 4.4. Comparison with State-of-the-arts
+
+Quantitative Comparison. To demonstrate the effectiveness of the proposed method, 14 state-of-the-art SOD
+
+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
+
+
+(a) ECSSD
+
+
+(b) DUTS
+
+
+(c) HKU-IS
+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.
+
+
+(d) THUR15K
+
+Table 4. Performance with different numbers of feature interaction. Number=0 means two branches have no feature interaction.
+
+| Number | THUR15K | DUTS-TE |
| MAE | mF | Eξ | MAE | mF | Eξ |
| 0 | 0.069 | 0.751 | 0.834 | 0.038 | 0.839 | 0.897 |
| 1 | 0.064 | 0.764 | 0.842 | 0.034 | 0.855 | 0.910 |
| 2 | 0.066 | 0.756 | 0.837 | 0.035 | 0.849 | 0.903 |
| 3 | 0.068 | 0.753 | 0.834 | 0.037 | 0.842 | 0.897 |
+
+Table 5. Comparison on different combinations of supervision. Body, detail, saliency and edge maps are used, respectively.
+
+| Label | THUR15K | DUTS-TE |
| MAE | mF | Eξ | MAE | mF | Eξ |
| Body + Detail | 0.064 | 0.764 | 0.842 | 0.034 | 0.855 | 0.910 |
| Body + Edge | 0.066 | 0.758 | 0.836 | 0.036 | 0.850 | 0.904 |
| Sal + Detail | 0.066 | 0.756 | 0.835 | 0.037 | 0.848 | 0.901 |
| Sal + Edge | 0.070 | 0.752 | 0.827 | 0.039 | 0.844 | 0.895 |
+
+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.
+
+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.
+
+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
+
+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.
+
+# 5. Conclusion
+
+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.
+
+# 6. Acknowledgement
+
+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.
+
+# References
+
+[1] Radhakrishna Achanta, Sheila S. Hemami, Francisco J. Estrada, and Sabine Susstrunk. Frequency-tuned salient region detection. In CVPR, pages 1597-1604, 2009. 1
+[2] Jingdong Wang andn Huaizu Jiang, Zejian Yuan, Ming-Ming Cheng, Xiaowei Hu, and Nanning Zheng. Salient
+
+object detection: A discriminative regional feature integration approach. International Journal of Computer Vision, 123(2):251-268, 2017. 2
+[3] Ali Borji and Laurent Itti. Exploiting local and global patch rarities for saliency detection. In CVPR, pages 478-485, 2012. 2
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 3, 4
+[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
+[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
+[17] Guanbin Li and Yizhou Yu. Visual saliency based on multiscale deep features. In CVPR, pages 5455-5463, 2015. 5
+
+[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
+[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
+[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
+[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
+[22] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015. 2
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+
+[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
+[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
+[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
+[36] Qiong Yan, Li Xu, Jianping Shi, and Jiaya Jia. Hierarchical saliency detection. In CVPR, pages 1155-1162, 2013. 2, 5
+[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
+[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
+[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
+[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
+[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
+[42] Ting Zhao and Xiangqian Wu. Pyramid feature attention network for saliency detection. In CVPR, pages 3085-3094, 2019. 1, 2, 3
\ No newline at end of file
diff --git a/labeldecouplingframeworkforsalientobjectdetection/images.zip b/labeldecouplingframeworkforsalientobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..513289f5c8185933956f1bfb4383299eb49477bd
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d4d530c4ddf81498d035c4ed24ea1a223015a2e131cb1e5b4df3ab2a1f1690c
+size 957127
diff --git a/labeldecouplingframeworkforsalientobjectdetection/layout.json b/labeldecouplingframeworkforsalientobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..debcf1696d577680ab80ee7b66d3ee4449cf6ba1
--- /dev/null
+++ b/labeldecouplingframeworkforsalientobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6ddb562838a9210f31f61ea83adf66d06333e8fd1820d874dc2de6495624b0f2
+size 367909
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_content_list.json b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef9550a7340d47a2c2fb3a1254ae888020272e59
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a656e73513b388edb725ba713a8557f97863c2e4825f3c66a7643fa9cee467d5
+size 76336
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_model.json b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..df65917e98cfe294ed47a31845cd3ed61ae416e7
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b3ae56e0df00d36c11aea0549bacb385bf54fa8a132767ce954335776ab7b61c
+size 93891
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_origin.pdf b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..daa3e5895753a5d676d204cff5ff0a92954a3cf1
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/3f62e22f-de17-455e-87cc-6fa23ad7f543_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea8e9f32308794cbad2e8f27652442a7603c574207c243f07e3c2d133f0b7a37
+size 355052
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/full.md b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ddad1f7ca3a482ca35acac2c4dad495c8a6b1d8c
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/full.md
@@ -0,0 +1,290 @@
+# Label Distribution Learning on Auxiliary Label Space Graphs for Facial Expression Recognition
+
+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
+
+{skchen, xgeng}@seu.edu.cn jianfeng.wang@cs.ox.ac.uk
+
+donald.chen@ntu.edu.sg {shizc2, yongrui}@lenovo.com
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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
+
+
+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.
+
+
+
+
+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.
+
+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.
+
+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
+
+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.
+
+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)).
+
+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.
+
+Our contributions are summarized as follows,
+
+- 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.
+- Proposed LDL-ALSG framework is end-to-end and independent of the backbone network and put no additional burden on inference.
+- Proposed LDL-ALSG can effectively deal with label ambiguity and label noise, outperforming the state-of-the-art approaches with a huge margin.
+
+
+Figure 3. Visualization of action units with TSNE for $\mathrm{CK + }$ dataset.
+
+
+Figure 4. Visualization of facial landmarks with TSNE for $\mathrm{CK + }$ dataset.
+
+# 2. Related Works
+
+# 2.1. Facial Expression Recognition
+
+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.
+
+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.
+
+Aiming to improve deep learning models, some scholars assembled network models in feature [4] and decision
+
+
+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.
+
+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.
+
+Although extensive research has paid attention to data and model as aforementioned, only a small number of research spotlighting the label is extant.
+
+# 2.2. Methods for Label Inconsistency
+
+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.
+
+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.
+
+# 2.3. Methods for Label Ambiguity and Label Noise
+
+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.
+
+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
+
+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.
+
+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.
+
+# 3. Label Distribution Learning on Auxiliary Label Space Graphs
+
+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.
+
+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.
+
+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
+
+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.
+
+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.
+
+# 3.1. Problem Formulations
+
+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}$ .
+
+This model can be trained by solving the following problem
+
+$$
+\underset {\boldsymbol {\theta}} {\arg \min } \boldsymbol {L} (\boldsymbol {\theta}) + \lambda \sum_ {1} ^ {T} \boldsymbol {\Omega} _ {t} (\boldsymbol {\theta}) \tag {1}
+$$
+
+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.
+
+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
+
+$$
+\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}
+$$
+
+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
+
+$$
+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}
+$$
+
+
+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.
+
+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
+
+$$
+\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}
+$$
+
+# 3.2. The overall LDL-ALSG framework
+
+Formulating the LDL-ALSG problem into an optimization framework over Eq.(2) and Eq.(4) yields the total loss function
+
+$$
+\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}
+$$
+
+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.
+
+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
+
+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.
+
+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.
+
+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).
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We mainly used two types of datasets, including in-the-wild datasets (RAF [22], AffectNet [28] and SFEW [8]) and
+
+ | In-the-Wild | Lab-Controlled (Posed) | Average |
| AffNet | RAF | SFEW | CK+ | CFEE | MMI | Oulu-CASIA | Wild | Posed | Overall |
| Baseline [39] | 57.97 | 81.81 | 52.19 | 88.99 | 77.22 | 67.79 | 59.35 | 63.99 | 73.34 | 69.33 |
| AIR[1] | 54.23 | 67.37 | 49.88 | 43.87 | 64.47 | 59.64 | 47.03 | 60.80 | 53.75 | 56.10 |
| NAL[15] | 55.97 | 84.22 | 58.13 | 91.20 | 75.84 | 64.71 | 61.00 | 66.11 | 73.19 | 70.15 |
| IPA2LT (LTNet)*[39] | 57.85 | 83.80 | 53.15 | 91.82 | 78.02 | 68.22 | 62.69 | 64.93 | 75.19 | 70.79 |
| LDL-ALSG(AU) | 58.32 | 85.32 | 56.50 | 91.35 | 77.59 | 70.49 | 63.85 | 66.94 | 75.85 | 72.01 |
| LDL-ALSG(FL) | 59.35 | 85.53 | 54.91 | 91.19 | 78.28 | 70.29 | 63.53 | 66.60 | 75.82 | 71.87 |
| LDL-ALSG(AU+FL) | 58.29 | 85.33 | 55.87 | 93.08 | 77.97 | 70.03 | 63.94 | 66.64 | 76.25 | 72.13 |
+
+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.
+
+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.
+
+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.
+
+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.
+
+# 4.2. Experiment Settings
+
+To make a fair comparison with other state-of-the-art approaches that focus on label-side improvement, we adopted
+
+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.
+
+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.
+
+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.
+
+# 4.3. Experiment Results
+
+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.
+
+AIR and NAL were proposed primarily to address
+
+| Training Data | Method | Accuracy |
| Wild | Lab | All |
| Clean data | LDL-ALSG | 66.64 | 76.25 | 72.13 |
| IPA2LT(LTNet) | 64.93 | 75.19 | 70.79 |
| Baseline | 63.99 | 73.34 | 69.33 |
| 5% noise | LDL-ALSG | 66.06 | 74.81 | 71.06 |
| IPA2LT(LTNet) | 64.42 | 71.53 | 68.48 |
| Baseline | 63.35 | 70.42 | 67.39 |
| 10% noise | LDL-ALSG | 65.76 | 73.96 | 70.45 |
| IPA2LT(LTNet) | | Failed | |
| Baseline | 61.21 | 70.01 | 66.24 |
| 15% noise | LDL-ALSG | 65.03 | 72.40 | 69.24 |
| IPA2LT(LTNet) | | Failed | |
| Baseline | 60.32 | 68.73 | 65.12 |
+
+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.
+
+| Training Data | Method | Accuracy |
| Wild | Lab | All |
| Clean Data | baseline | 63.99 | 73.34 | 69.33 |
| 5% noise(A) | baseline | 63.35 | 70.43 | 67.39 |
| 10% nosie(B) | baseline | 61.21 | 70.01 | 66.24 |
| 15% noise(C) | baseline | 60.32 | 68.73 | 65.12 |
| mixture of ABC | baseline | 61.92 | 71.34 | 67.30 |
| inconsistent annotation | IPA2LT | 64.01 | 73.56 | 69.46 |
| mixture of ABC | Ours | 65.19 | 74.21 | 70.44 |
+
+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.
+
+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.
+
+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.
+
+Experiment Results for Different Settings. We evaluated three different settings of LDL-ALSG and a baseline model
+
+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.
+
+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.
+
+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.
+
+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.
+
+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.
+
+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
+
+| Backbone Network | Method | Accuracy |
| Wild | Lab | All |
| Resnet-18 | LDL-ALSG | 65.40 | 73.61 | 70.08 |
| Baseline | 62.37 | 72.35 | 68.07 |
| MobilieNet V2 | LDL-ALSG | 65.56 | 75.48 | 71.27 |
| Baseline | 64.71 | 74.01 | 70.03 |
+
+Table 4. Average test accuracy (%) for different backbone network.
+
+| Neighbor Number | λ | Accuracy |
| AU | FP | Wild | Lab | All |
| 2 | 0 | 0.001 | 66.81 | 75.86 | 71.98 |
| 4 | 0 | 0.001 | 66.94 | 75.82 | 72.01 |
| 8 | 0 | 0.001 | 66.69 | 75.44 | 71.69 |
| 0 | 2 | 0.001 | 66.30 | 75.43 | 71.52 |
| 0 | 4 | 0.001 | 66.60 | 75.82 | 71.87 |
| 0 | 8 | 0.001 | 66.59 | 75.64 | 71.76 |
+
+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.
+
+# 4.4. Ablation Study
+
+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.
+
+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.
+
+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
+
+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.
+
+| Neighbor Number | λ | Accuracy |
| AU | FP | Wild | Lab | All |
| 4 | 0 | 0.0001 | 66.36 | 75.58 | 71.61 |
| 4 | 0 | 0.001 | 66.94 | 75.82 | 72.01 |
| 4 | 0 | 0.01 | 66.33 | 74.96 | 71.27 |
| 0 | 4 | 0.0001 | 66.54 | 75.78 | 71.82 |
| 0 | 4 | 0.001 | 66.60 | 75.82 | 71.87 |
| 0 | 4 | 0.01 | 65.89 | 75.45 | 71.36 |
+
+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.
+
+| Neighbor Number | λ | Accuracy |
| AU | FP | Wild | Lab | All |
| 4 | 4 | 0.0001 | 67.13 | 75.84 | 72.11 |
| 4 | 4 | 0.0005 | 66.64 | 76.25 | 72.13 |
| 4 | 4 | 0.001 | 66.42 | 75.52 | 71.62 |
| 4 | 4 | 0.01 | 66.34 | 75.68 | 71.68 |
+
+Table 7. Comparison of different $\lambda$ , when utilizing topological information from both graphs. The number of neighbors was fixed to 4.
+
+Table.(7). When guidance loss from both tasks were combined, setting $\lambda$ to 0.0005 produced the best results.
+
+We also performed experiments on two different backbone network to show that our method is network independent as shown in Table.(4).
+
+# 5. Conclusion
+
+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.
+
+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.
+
+# References
+
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[12] Xin Geng. Label distribution learning. IEEE Transactions on Knowledge and Data Engineering, 28(7):1734-1748, 2016.
+[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.
+[14] Xin Geng, Chao Yin, and Zhi-Hua Zhou. Facial age estimation by learning from label distributions. IEEE transactions
+
+on pattern analysis and machine intelligence, 35(10):2401-2412, 2013.
+[15] Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. 2016.
+[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.
+[17] Peng Hou, Xin Geng, and Min-Ling Zhang. Multi-label manifold learning. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[26] Mengyi Liu, Shaoxin Li, Shiguang Shan, and Xilin Chen. Au-aware deep networks for facial expression recognition. In $FG$ , pages 1-6, 2013.
+[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.
+[28] Ali Mollahosseini, Behzad Hasani, and Mohammad H Ma-hoor. Affectnet: A database for facial expression, va
+
+lence, and arousal computing in the wild. arXiv preprint arXiv:1708.03985, 2017.
+[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.
+[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.
+[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.
+[32] Sainbayar Sukhbaatar and Rob Fergus. Learning from noisy labels with deep neural networks. Eprint Arxiv, 2014.
+[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.
+[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.
+[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.
+[36] Ning Xu, An Tao, and Xin Geng. Label enhancement for label distribution learning. In *IJCAI*, pages 2926-2932, 2018.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+
+[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.
+[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.
+[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.
+[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.
+[47] Xiaojin Zhu, John Lafferty, and Ronald Rosenfeld. Semi-supervised learning with graphs. PhD thesis, Carnegie Mellon University, language technologies institute, school of ..., 2005.
\ No newline at end of file
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/images.zip b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b24e94cd28146020ee546b35ac53a235af4301fe
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:63f09c9ef7ed1cff37133279f43f843adb2d68e73e4b87865335efc82f0ee793
+size 472097
diff --git a/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/layout.json b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..283f5369ffd388cde6a262d5cdc2b2346374003d
--- /dev/null
+++ b/labeldistributionlearningonauxiliarylabelspacegraphsforfacialexpressionrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca82cfff7bbb1c417c8334bf77791fb010e0af7a8758ef1b9293c5f425dd3bc2
+size 349162
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_content_list.json b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..017126685d8cc2a79ab1aa0c9b5b86ab1b9ccaed
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d0be9c04694d067e92d9bd2189f9e3b86981f0236a62b8b08151f7512c660762
+size 72745
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_model.json b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..089b48bb9f39019cfdb89bde835005aa5331bee8
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:75e869012057b6025736056950c664b5422f84d17c2430dacbdaadc2e70f058d
+size 89460
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_origin.pdf b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c23a491f922fa087487bfe1c8e1fdb05a99c47ae
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/ee44f732-2ca8-4fa4-bbd0-0bf2fd9e4bcc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86c462281899e0550496aef36ca41407a69d027fe78913d0b3dcd7887effcbf5
+size 4687687
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/full.md b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b9d83d6bda61fdcc06b675fd98cef74d424ea360
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/full.md
@@ -0,0 +1,312 @@
+# Large-Scale Object Detection in the Wild from Imbalanced Multi-Labels
+
+Junran Peng\*1,2,3, Xingyuan Bu\*2, Ming Sun?, Zhaoxiang Zhang+1,3, Tieniu Tan1,3, and Junjie Yan2
+
+1University of Chinese Academy of Sciences
+
+$^{2}$ SenseTime Group Limited
+
+3Center for Research on Intelligent Perception and Computing, CASIA
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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
+
+easily learned that the development of an area is closely related to the data.
+
+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.
+
+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.
+
+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-
+
+
+(a)
+
+
+(b)
+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.
+
+
+(c)
+
+
+(d)
+
+tated as each other in both training and validation set, for example, torch and flashlight, as shown in 1.
+
+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.
+
+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.
+
+# 2. Related Works
+
+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.
+
+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.
+
+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.
+
+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.
+
+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
+
+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.
+
+# 3. Problem Setting
+
+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].
+
+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.
+
+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.
+
+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.
+
+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:
+
+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.
+2) For infrequent categories, the excessive over-sampling on them may cause severe over-fitting and degrade the generalizability of recognition on these classes.
+
+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.
+
+# 4. Methodology
+
+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.
+
+# 4.1. Multi-Label Object Detection
+
+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:
+
+$$
+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}
+$$
+
+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.
+
+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
+
+
+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)
+
+
+(a) We select the top-55 confused category pairs and show their concurrent rates.
+
+
+(b) We show the ratio of parent annotations without leaf label and total parent annotations.
+Figure 3: Implicit multi-label problem caused by confused categories and absence of leaf classes.
+
+like below:
+
+$$
+\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}
+$$
+
+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.
+
+# 4.1.1 Concurrent Softmax
+
+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:
+
+$$
+L _ {c l s} ^ {*} (b) = - \sum_ {i = 1} ^ {C} y _ {i} \log \sigma_ {i} ^ {*}, \tag {3}
+$$
+
+$$
+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}}},
+$$
+
+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:
+
+$$
+\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}
+$$
+
+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.
+
+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.
+
+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:
+
+$$
+\sigma_ {i} ^ {\dagger} = \frac {e ^ {z _ {i}}}{\sum_ {j = 1} ^ {C} (1 - r _ {i j}) e ^ {z _ {j}}}, \tag {5}
+$$
+
+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.
+
+# 4.1.2 Compared with BCE loss
+
+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.
+
+# 4.2. Soft-balance Sampling with Hybrid Training
+
+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.
+
+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
+
+ability of class-aware balance can be reformulated as:
+
+$$
+P _ {a} (i) = \frac {1}{C} = \frac {1}{C P _ {n} (i)} P _ {n} (i) = \alpha P _ {n} (i), \tag {6}
+$$
+
+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.
+
+To reconcile the frequent and infrequent categories, we introduce soft-balance sampling by adjusting the balance factor with a new hyper-parameter $\lambda$ :
+
+$$
+\begin{array}{l} P _ {s} (i) = \alpha^ {\lambda} P _ {n} (i) \tag {7} \\ = P _ {a} (i) ^ {\lambda} P _ {n} (i) ^ {(1 - \lambda)}. \\ \end{array}
+$$
+
+Note that $\lambda = 0$ corresponds to non-balance sampling and $\lambda = 1$ corresponds to class-aware balance. The normalized probability is:
+
+$$
+P _ {s} ^ {*} (i) = \frac {P _ {s} (i)}{\sum_ {j = 1} ^ {C} P _ {s} (j)}. \tag {8}
+$$
+
+This sampling strategy guarantees more sufficient training on dominate categories and decreases the excessive sampling frequency of infrequent categories.
+
+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.
+
+# 5. Experiments
+
+# 5.1. Dataset
+
+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].
+
+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.
+
+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 labels1 are ignored.
+
+# 5.2. Implementation Details
+
+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.
+
+# 5.3. Concurrent Softmax
+
+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.
+
+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].
+
+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.
+
+# 5.4. Soft-balance Sampling
+
+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
+
+Table 1: The comparison of different loss functions method. Models are trained in mini-train and evaluated on mini-val.
+
+| Loss Type | Balance | mAP |
| Focal Loss [20] | ✓ | 50.18 |
| BCE Loss | ✓ | 54.29 |
| Co-BCE Loss [1] | ✓ | 55.74 |
| dist-CE Loss [24] | ✓ | 55.90 |
| Softmax Loss | | 38.16 |
| Concurrent Softmax Loss | | 39.14 |
| Softmax Loss | ✓ | 55.45 |
| Concurrent Softmax Loss | ✓ | 56.58 |
+
+Table 2: The effectiveness of concurrent softmax during testing. Models are trained in mini-train and evaluated on mini-val.
+
+| Train Method | Test Method | mAP |
| Softmax | Softmax | 55.45 |
| Softmax | Concurrent Softmax | 55.77 |
| Concurrent Softmax | Softmax | 56.58 |
| Concurrent Softmax | Concurrent Softmax | 56.95 |
+
+Table 3: The comparison of different sampling methods. Models are trained in mini-train and evaluated on mini-val.
+
+| Methods | λ | mAP |
| Non-balance | - | 38.16 |
| Class-aware Sampling [10] | - | 55.45 |
| Effective Number [6] | - | 45.72 |
| Soft-balance | 0.3 | 50.69 |
| 0.5 | 56.19 |
| 0.7 | 57.04 |
| 1.0 | 55.45 |
| 1.5 | 52.41 |
+
+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
+
+
+Figure 4: Training curves of the proposed soft-balance sampling. Soft-balance with $\lambda = 0.7$ achieves the best performance.
+
+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.
+
+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.
+
+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
+
+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.
+
+| Method | Pretrain | Epochs | mAP |
| Non-balance | ImageNet | 7 | 56.06 |
| ImageNet | 11 | 59.12 |
| ImageNet | 14 | 59.85 |
| ImageNet | 16 | 59.95 |
| Scratch | 20 | 60.70 |
| Class-aware Sampling | ImageNet | 7 | 64.68 |
| ImageNet | 14 | 62.85 |
| Non-balance I14 | 14+7 | 65.60 |
| Non-balance S20 | 20+7 | 65.92 |
| Soft-balance Soft-balance* | Non-balance S20 | 20+7 | 67.09 |
| Non-balance S20 | 20+7 | 68.23 |
+
+always better than $\lambda = 1.0$ on the full category space.
+
+# 5.5. Hybrid Training Scheduler
+
+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].
+
+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}$ .
+
+# 5.6. Extension Results on Test-challenge Set
+
+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
+
+
+(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).
+
+
+
+
+(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).
+
+
+Figure 5: The comparison of sampling strategy among categories. (Best viewed on high-resolution display)
+
+Table 5: Results with bells and whistles on Open Images public test-challenge set.
+
+| Methods | Ensemble | Public Test |
| 2018 1st [1] | | 55.81 |
| Ours | | 60.90 |
| 2018 1st [1] | ✓ | 62.88 |
| 2018 2nd [10] | ✓ | 62.16 |
| 2018 3rd | ✓ | 61.70 |
| Ours | ✓ | 67.17 |
| Baseline (ResNeXt-152) | | 53.88 |
| +Class-aware Sampling | | 57.56 |
| +Concurrent Softmax Loss | | 58.60 |
| +Soft-balance | | 59.86 |
| +Hybrid Training Scheduler | | 60.90 |
| +Other Tricks | | 62.34 |
| +Ensemble | ✓ | 67.17 |
+
+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,
+
+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.
+
+# 6. Conclusion
+
+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.
+
+# 7. Acknowledgements
+
+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.
+
+# References
+
+[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.
+[2] Matthew R Boutell, Jiebo Luo, Xipeng Shen, and Christopher M Brown. Learning multi-label scene classification. Pattern recognition, 37(9):1757-1771, 2004.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[12] Kaiming He, Ross Girshick, and Piotr Dollar. Rethinking image pre-training. arXiv preprint arXiv:1811.08883, 2018.
+[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.
+[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.
+
+[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.
+[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.
+[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.
+[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.
+[19] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. arXiv preprint arXiv:1901.01892, 2019.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[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.
+[39] Qizhe Xie, Eduard Hovy, Minh-Thang Luong, and Quoc V. Le. Self-training with noisy student improves imagenet classification, 2019.
+[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.
+
+[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.
\ No newline at end of file
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/images.zip b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4dfa531279e4721fb85c5e824758835ebf251ff7
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3f7aeba679dff673d26ceaaa3736bac02d10ef7ac2b81198f3f3e1d98d391dc9
+size 560650
diff --git a/largescaleobjectdetectioninthewildfromimbalancedmultilabels/layout.json b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a003541cb813b5f93e2f171e2862ce98680631c2
--- /dev/null
+++ b/largescaleobjectdetectioninthewildfromimbalancedmultilabels/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0775ab9ade4191e3df1a532cc7ab528102be505c3ad85e3cfe8b06b11f691475
+size 368360
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_content_list.json b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e4bd68bbb2c732cac9e36389ef9db7a1300283c
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a255c08a17ace2f9584b4436d7b8e02e6c0d886f54bef36cd5d79382d2bbf92
+size 85466
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_model.json b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b845ff83fa507cf361038766d91db6ae706b8173
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8080a39cfe93f1cab3247810d28aab0acf1c58007cd38aae1037269ff4a256b9
+size 106122
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_origin.pdf b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2929eed75c2ad7a38a13701d4dc5896e4149f335
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/483a540a-7cc0-4cd2-ba86-6b3376ec2785_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:873c6abf8e00e833f78804bd18285fdc6bd2b848c3b7d4dd86f0a4bf8012bbc8
+size 603859
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/full.md b/largescalevideorepresentationlearningviarelationalgraphclustering/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..93b4a7e7a4a1b3ae0a27d6b67ded4bb6ced28d4d
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/full.md
@@ -0,0 +1,356 @@
+# Large Scale Video Representation Learning via Relational Graph Clustering
+
+Hyodong Lee*
+MIT
+
+hyo@mit.edu
+
+Joonseok Lee
+
+Google Research
+
+joonseok@google.com
+
+Joe Yue-Hei Ng
+
+Google Research
+
+yhng@google.com
+
+Paul Natev
+
+Google Research
+
+natsev@google.com
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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.
+
+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
+
+
+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.
+
+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.
+
+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.
+
+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
+
+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.
+
+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.
+
+The major contributions of this work are as follows:
+
+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.
+2. We verify that both of the proposed methods are highly scalable on large-scale datasets with hundreds of millions of videos.
+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.
+
+# 2. Related Work
+
+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].
+
+Metric Learning. Metric learning embeds the examples
+
+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.
+
+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].
+
+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].
+
+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.
+
+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.
+
+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.
+
+# 3. Methods
+
+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).
+
+# 3.1. Problem Setting
+
+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.
+
+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.
+
+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.
+
+
+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.
+
+# 3.2. Graph Clustering
+
+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.
+
+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.
+
+# 3.3. Graph Clustering Metric Learning (GCML)
+
+Smart Negative Sampling. Once we have the clustering results, the triplets are sampled using the relational graph
+
+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.
+
+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:
+
+$$
+\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] _ {+}
+$$
+
+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.
+
+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.
+
+# 3.4. Cluster Labels Classification (CLC)
+
+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.
+
+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
+
+
+Figure 3. Network architecture of the embedding network.
+
+costs. Specifically, a subset of classes are sampled in each step to compute the softmax loss during training.
+
+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.
+
+# 4. Experiments
+
+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.
+
+# 4.1. Network Architecture
+
+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.
+
+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.
+
+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}$
+
+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.
+
+**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).
+
+# 4.2. Experimental Settings
+
+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.
+
+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.
+
+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.
+
+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.
+
+# 4.3. Related Video Retrieval
+
+We first evaluate the performance of models on related video retrieval, which is highly relevant to video-to-video
+
+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.
+
+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:
+
+$$
+\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}
+$$
+
+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.
+
+# 4.3.1 Evaluation Protocol
+
+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.
+
+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.
+
+Evaluation Metrics. The retrieval performance is evaluated using two different ranking metrics:
+
+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
+
+$$
+D C G @ k = \sum_ {i = 1} ^ {k} \frac {2 ^ {r e l _ {i}} - 1}{\log_ {2} (i + 1)}, \tag {2}
+$$
+
+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.
+
+2) Mean Average Precision (MAP) measures the accuracy of ranking by computing the area under the precision-recall curve:
+
+$$
+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)
+$$
+
+| Method | Training set | MAP | NDCG@60 |
| CDML [25] | 150M | 2.85% | 6.05% |
| 458M | 3.34% | 7.07% |
| GCML (ours) | 45M | 3.57% | 7.19% |
| 420M | 3.74% | 7.66% |
| CLC (ours) | 405M | 3.41% | 6.99% |
+
+
+Figure 4. Related video retrieval performance with different batch sizes.
+
+
+
+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.
+
+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.
+
+# 4.3.2 Results and Discussion
+
+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.
+
+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.
+
+Table 1. Performance on related video retrieval task
+
+| Level of Difficulty | MAP | NDCG@60 |
| GCML (Easy; 45M) | 3.37% | 6.64% |
| GCML (Medium; 45M) | 3.43% | 6.91% |
| GCML (Hard; 45M) | 3.57% | 7.19% |
| CDML [25] (150M) | 2.85% | 6.05% |
+
+Table 2. Related video retrieval performance with different difficulty levels of sampled smart negatives.
+
+
+Figure 5. Usage ratio of the assigned negatives. Our smart negatives are used more frequently compared to random negatives.
+
+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.
+
+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.
+
+# 4.3.3 Analysis of Negative Sampling
+
+We further analyze how the proposed smart negative sampling benefits the video metric learning.
+
+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.
+
+Figure 5 shows the ratio of the assigned negatives being
+
+| Method | Margin |
| No Online Mining (Assigned Neg.) | w/ Online Mining (Semi-hard Neg.) |
| CDML [25] | 0.62 ~ 0.76 | 0.01 ~ 0.02 |
| GCML | -0.08 ~ 0.05 | 0.015 ~ 0.02 |
+
+Table 3. Margin of assigned (random or smart) negatives vs. semi-hard negatives. Each range corresponds to $+/-$ one standard deviation from the mean.
+
+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.
+
+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.
+
+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:
+
+$$
+\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}
+$$
+
+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.
+
+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.
+
+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.
+
+| Samples per cluster | MAP | NDCG@60 |
| 20 | 3.42% | 6.86% |
| 50 | 3.43% | 6.80% |
| 100 | 3.41% | 6.83% |
| 1,000 | 3.24% | 6.58% |
+
+Table 4. Different number of sampled videos per cluster in CLC.
+
+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.
+
+# 4.3.4 Sampling in Cluster Classification
+
+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.
+
+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.
+
+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.
+
+# 4.4. Video Annotation
+
+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].
+
+| Sampled classes | MAP | NDCG@60 |
| 10,000 | 3.21% | 6.53% |
| 50,000 | 3.31% | 6.60% |
| 200,000 | 3.42% | 6.86% |
| 400,000 | 3.42% | 6.84% |
+
+Table 5. Different number of sampled class for training cluster labeling model. Sampling 200,000 labels is enough for good performance.
+
+| Methods | Embedding only | w/ Audio-visual |
| GAP | MAP | GAP | MAP |
| 2018 Challenge (YouTube-8M features) |
| KANU [19] | - | - | 88.5% | 58.3% |
| YT8M-T [43] | - | - | 88.7% | 58.8% |
| PhoneixLin [27] | - | - | 88.7% | 59.7% |
| Samsung AI [35] | - | - | 88.7% | 58.4% |
| Next top GB [39] | - | - | 89.0% | 59.6% |
| Audio-visual features (Section 4.1) |
| Audio-visual only | - | - | 89.0% | 55.5% |
| CDML [25] (150M) | 86.6% | 51.7% | 89.0% | 55.7% |
| GCML (45M) | 86.9% | 52.5% | 89.1% | 56.0% |
| CDML [25] (458M) | 88.4% | 55.5% | 89.4% | 57.0% |
| GCML (420M) | 88.3% | 55.5% | 89.4% | 57.1% |
| CLC | 87.9% | 54.6% | 89.2% | 56.5% |
+
+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.
+
+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.
+
+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).
+
+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,
+
+Table 6. Classification performance on YouTube-8M. The numbers in parenthesis are the number of triplets used for training.
+
+| Methods | Embedding only | w/ Audiovisual |
| Hit@1 | Hit@5 | Hit@1 | Hit@5 |
| Audio-visual only | - | - | 70.0% | 86.3% |
| CDML [25] (150M) | 67.0% | 86.4% | 70.8% | 87.7% |
| GCML (45M) | 68.7% | 87.5% | 71.4% | 88.3% |
| CDML [25] (458M) | 71.0% | 89.1% | 72.2% | 88.7% |
| GCML (420M) | 71.7% | 89.5% | 72.6% | 89.2% |
| CLC | 71.3% | 89.4% | 72.2% | 88.9% |
+
+Table 7. Classification performance on Sports-1M. The numbers in parenthesis are the number of triplets used for training.
+
+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.
+
+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.
+
+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.
+
+# 5. Conclusion
+
+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.
+
+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.
+
+# References
+
+[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
+[2] Unaiza Ahsan, Rishi Madhok, and Irfan Essa. Video jigsaw: Unsupervised learning of spatiotemporal context for video action recognition. In WACV, 2019. 2
+[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
+[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
+[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
+[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
+[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
+[8] Weifeng Ge. Deep metric learning with hierarchical triplet loss. In Proc. of the European Conference on Computer Vision (ECCV), 2018. 2
+[9] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv:1703.07737, 2017. 2
+[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
+[11] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015. 4
+[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
+[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
+[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
+
+[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
+[16] Michael I Jordan and Robert A Jacobs. Hierarchical mixtures of experts and the em algorithm. Neural computation, 6(2):181-214, 1994. 8
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+
+[29] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016. 8
+[30] Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv:1511.05440, 2015. 2
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[40] Kihyuk Sohn. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems (NIPS), 2016. 2
+[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.
+[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
+[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
+
+[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
+[45] Evgeniya Ustinova and Victor Lempitsky. Learning deep embeddings with histogram loss. In Advances in Neural Information Processing Systems, 2016. 2
+[46] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In Advances in Neural Information Processing Systems (NIPS), 2016. 2
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
\ No newline at end of file
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/images.zip b/largescalevideorepresentationlearningviarelationalgraphclustering/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e38d87c51b50eb45442dffa22f847618aeb7a19a
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2132e04e77bf0b50ec3a7ae0835211df2c962328f7d054f74f6def63182e33b8
+size 346871
diff --git a/largescalevideorepresentationlearningviarelationalgraphclustering/layout.json b/largescalevideorepresentationlearningviarelationalgraphclustering/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..feb3959a75d7114503af426075debc09189e66d1
--- /dev/null
+++ b/largescalevideorepresentationlearningviarelationalgraphclustering/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52bec7cfa0511c24731c012b441963a07462366f390592fa3c78b3db4fdf4b71
+size 382075
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_content_list.json b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d3f53cd3023a3751160a68fa492f6317a294f945
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ceaa9f905744e8e06a7da4393c51ca1aa43163d745e6eeceedd74d324fdc1ac1
+size 81103
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_model.json b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8041fbe00141bd5be630f20b3d0661d54bfde41d
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2679a993f4c75816e9e1508105155fd3fc3ad929ee331bef0fbc60bdd5351f25
+size 100465
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_origin.pdf b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..13c3c47c2e3a5bf05552d964431f534fa540f3de
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/bbcef0ae-5528-4a6d-8ca0-27ef030887cb_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a0cc78917b7a331db120522c6b8f4a015ccf9edf8eb9c699231b963b89306cd3
+size 1269146
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/full.md b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c1afdd5fd494a5c11ff9d870b3e35524779107c0
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/full.md
@@ -0,0 +1,285 @@
+# LatentFusion: End-to-End Differentiable Reconstruction and Rendering for Unseen Object Pose Estimation
+
+Keunhong Park $^{1,2*}$ Arsalan Mousavian $^{2}$ Yu Xiang $^{2}$ Dieter Fox $^{1,2}$ $^{1}$ University of Washington $^{2}$ NVIDIA
+
+
+1. Reconstruction and Rendering
+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.
+
+
+2. Pose Estimation
+
+# Abstract
+
+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.
+
+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/.
+
+# 1. Introduction
+
+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
+
+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.
+
+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.
+
+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.
+
+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
+
+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.
+
+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.
+
+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.
+
+Some key benefits of our method are:
+
+1. Ease of Capture - we perform pose estimation given just a few reference images rather than 3D scans;
+2. Robustness to Appearance - we create a latent representation from images rather than relying on a 3D model with baked appearance; and
+3. Practicality - our zero-shot formulation requires only one neural network model for all objects and requires no training for novel objects.
+
+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
+
+ages. MOPED provides registered reference and test images for evaluating pose estimation in a zero-shot setting.
+
+# 2. Related Work
+
+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.
+
+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
+
+
+1. Reconstruction
+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.
+
+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.
+
+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.
+
+# 3. Overview
+
+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
+
+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.
+
+Camera Model. Throughout this paper we use a perspective pinhole camera model with an intrinsic matrix
+
+$$
+\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}
+$$
+
+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}\}$ .
+
+# 4. Neural Reconstruction and Rendering
+
+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.
+
+
+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.
+
+# 4.1. Modeling
+
+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.
+
+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}$ .
+
+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
+
+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)$ .
+
+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)$ .
+
+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.
+
+# 4.2. Rendering
+
+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.
+
+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.
+
+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
+
+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})$ .
+
+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.
+
+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.
+
+# 4.3. Implementation Details
+
+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.
+
+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
+
+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$ .
+
+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].
+
+# 5. Object Pose Estimation
+
+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.
+
+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}\}$ .
+
+# 5.1. Losses
+
+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
+
+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:
+
+$$
+\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}
+$$
+
+where $\lambda, \gamma, \eta$ are the weights of the losseses. The parameters of the losses are omitted for clarity.
+
+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:
+
+$$
+\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)
+$$
+
+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.
+
+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.
+
+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].
+
+
+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.
+
+
+Figure 5: Qualitative results on the MOPED dataset.
+
+# 6. Experiments
+
+We evaluate our method on LINEMOD [11], ModelNet [48] and our new dataset MOPED. We aim to evaluate pose estimation accuracy on unseen objects.
+
+# 6.1. Evaluation Metrics
+
+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.
+
+# 6.2. Experiments on the LINEMOD Dataset
+
+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
+
+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.
+
+| Method | Input | ape | benchvice | camera | can | cat | driller | duck | eggbox* | glue* | holepunch | iron | lamp | phone | mean |
| Ours | RGB-D | 83.7 | 91.3 | 74.3 | 83.4 | 84.4 | 90.6 | 71.3 | 39.3 | 94.7 | 53.7 | 70.0 | 87.8 | 90.3 | 78.0 |
| DeepIM [20] | RGB | 77.0 | 97.5 | 93.5 | 96.5 | 82.1 | 95.0 | 77.7 | 97.1 | 99.4 | 52.8 | 98.3 | 97.5 | 87.7 | 88.6 |
| pix2pose [31] | RGB | 58.1 | 91.0 | 60.9 | 84.4 | 65.0 | 76.3 | 43.8 | 96.8 | 79.4 | 74.8 | 83.4 | 82.0 | 45.0 | 72.4 |
+
+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.
+
+# 6.3. Experiments on the ModelNet Dataset
+
+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.
+
+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.
+
+# 6.4. Experiments on the MOPED Dataset
+
+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
+
+Table 2: ModelNet pose refinement experiments compared to DeepIM (DI) [20] and Multi-Path Learning (MP) [40].
+
+ | (5°, 5cm) | ADD (0.1d) | Proj2D (5px) |
| DI | MP | Ours | DI | MP | Ours | DI | MP | Ours |
| bathtub | 71.6 | 85.5 | 85.0 | 88.6 | 91.5 | 92.7 | 73.4 | 80.6 | 94.9 |
| bookshelf | 39.2 | 81.9 | 80.2 | 76.4 | 85.1 | 91.5 | 51.3 | 76.3 | 91.8 |
| guitar | 50.4 | 69.2 | 73.5 | 69.6 | 80.5 | 83.9 | 77.1 | 80.1 | 96.9 |
| range_hood | 69.8 | 91.0 | 82.9 | 89.6 | 95.0 | 97.9 | 70.6 | 83.9 | 91.7 |
| sofa | 82.7 | 91.3 | 89.9 | 89.5 | 95.8 | 99.7 | 94.2 | 86.5 | 97.6 |
| tv_stand | 73.6 | 85.9 | 88.6 | 92.1 | 90.9 | 97.4 | 76.6 | 82.5 | 96.0 |
| wardrobe | 62.7 | 88.7 | 91.7 | 79.4 | 92.1 | 97.0 | 70.0 | 81.1 | 94.2 |
| Mean | 64.3 | 84.8 | 85.5 | 83.6 | 90.1 | 94.3 | 73.3 | 81.6 | 94.7 |
+
+Table 3: AUC metrics on MOPED by reference view count.
+
+| # Views | 1 | 2 | 4 | 8 | 16 | 32 |
| ADD | 15.91 | 25.00 | 40.38 | 55.35 | 58.67 | 55.81 |
| ADD-S | 63.14 | 75.91 | 85.62 | 87.72 | 87.45 | 88.70 |
| Proj.2D | 8.68 | 15.43 | 28.41 | 38.87 | 43.35 | 38.45 |
+
+Table 4: AUC metrics for different view fusion strategies
+
+ | ADD | ADD-S | Proj.2D |
| Avg Pool | 56.78 | 88.04 | 39.82 |
| ConvGRU | 56.36 | 88.28 | 40.43 |
+
+
+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.
+
+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
+
+Table 5: Quantitative Results on MOPED Dataset. We report the Area Under Curve (AUC) for each metric.
+
+ | PoseRBPF [8] | Ours (LD) | Ours (D) | Ours (L) |
| Pose Loss | - | \( \mathcal{L}_{\text{latent}} + \mathcal{L}_{\text{depth}} \) | \( \mathcal{L}_{\text{depth}} \) | \( \mathcal{L}_{\text{latent}} \) |
| ADD | ADD-S | Proj.2D | ADD | ADD-S | Proj.2D | ADD | ADD-S | Proj.2D | ADD | ADD-S | Proj.2D |
| black drills | 59.78 | 82.94 | 49.80 | 56.67 | 79.06 | 53.77 | 62.15 | 82.36 | 59.36 | 51.61 | 80.81 | 48.05 |
| cheezit | 57.78 | 82.45 | 48.47 | 61.31 | 91.63 | 55.24 | 44.56 | 90.24 | 35.10 | 23.98 | 88.20 | 15.92 |
| duplo_dude | 56.91 | 82.14 | 47.11 | 74.02 | 89.55 | 52.49 | 76.81 | 90.50 | 59.83 | 53.26 | 89.51 | 38.54 |
| duster | 58.91 | 82.78 | 46.66 | 49.13 | 91.56 | 19.33 | 51.13 | 91.68 | 24.78 | 39.05 | 81.57 | 20.82 |
| graphics_card | 59.13 | 83.20 | 49.85 | 80.71 | 91.25 | 67.71 | 79.33 | 90.90 | 60.35 | 60.11 | 87.91 | 41.92 |
| orange_drill | 58.23 | 82.68 | 49.08 | 51.84 | 70.95 | 46.12 | 55.52 | 73.68 | 45.46 | 44.20 | 68.39 | 41.68 |
| pouch | 57.74 | 82.16 | 49.01 | 60.43 | 89.60 | 49.80 | 58.51 | 89.15 | 44.40 | 22.03 | 82.94 | 20.19 |
| remote | 56.87 | 82.04 | 48.06 | 55.38 | 94.80 | 37.73 | 63.18 | 94.96 | 45.27 | 62.39 | 91.58 | 41.96 |
| rinse aid | 57.74 | 82.53 | 48.13 | 65.63 | 92.58 | 28.61 | 67.09 | 93.66 | 27.62 | 57.54 | 87.44 | 19.00 |
| toyPlane | 62.41 | 85.10 | 49.81 | 60.18 | 90.24 | 51.70 | 56.80 | 88.54 | 40.16 | 34.29 | 87.22 | 35.07 |
| vim_mug | 58.09 | 82.38 | 48.08 | 30.11 | 80.76 | 14.38 | 49.89 | 77.79 | 32.85 | 27.49 | 78.59 | 10.51 |
| mean | 58.51 | 82.76 | 48.55 | 58.67 | 87.45 | 43.35 | 60.45 | 87.59 | 43.20 | 43.27 | 84.01 | 30.33 |
+
+$0 - 10cm$ , and 3) Proj.2D with threshold between $0 - 40px$ We compute all metrics for all sampled frames.
+
+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.
+
+# 6.5. Ablation Studies
+
+In this section, we analyze the effect of different design choices and how they affect the robustness of our method.
+
+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.
+
+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.
+
+# 7. Conclusion
+
+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.
+
+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.
+
+# Acknowledgements
+
+We thank Xinke Deng for helpful discussions.
+
+# References
+
+[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
+[2] Petr Beckmann and Andre Spizzichino. The scattering of electromagnetic waves from rough surfaces. Norwood, MA, Artech House, Inc., 1987. 5
+[3] Blender Online Community. Blender - a 3D modelling and rendering package. Blender Foundation, 2019. 5
+[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
+[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
+[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
+[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
+[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
+[9] Álvaro González. Measurement of areas on a sphere using fibonacci and latitude-longitude lattices. Mathematical Geosciences, 42(1):49, 2010. 6
+[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
+[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
+[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
+[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
+
+estimation. In European Conference on Computer Vision (ECCV), pages 19-34, 2018. 6
+[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
+[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
+[16] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 5, 6
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[40] Martin Sundermeyer, Maximilian Durner, En Yen Puang, Zoltan-Csaba Marton, and Rudolph Triebel. Multi-path
+
+learning for object pose estimation across domains. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 7
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[52] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Fast global registration. In European Conference on Computer Vision (ECCV), pages 766-782, 2016. 7
+[53] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Open3D: A modern library for 3D data processing. arXiv:1801.09847, 2018. 7
\ No newline at end of file
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/images.zip b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..063f69764efac5c872cdb44f2674133e8b086f91
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de32ab57c7865c1e6d56ca799714385fc35cd300c847aa6888b2d066a58c62e3
+size 462804
diff --git a/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/layout.json b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..21b51772212e1680f3574e851bd5f6d42994928c
--- /dev/null
+++ b/latentfusionendtoenddifferentiablereconstructionandrenderingforunseenobjectposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c2d5458da98c1129c4e3a175a863c87461f74da983553e501a777882edbe5dd
+size 425114
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_content_list.json b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..42a01f9f18db46d49ad8e9997dae66667102f0fc
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a368f0ba978494f86ed350280bab4f974b83b75f66822fdf17e4e5e656e332b3
+size 77317
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_model.json b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1301c0d2edd1a9e24a31fca04389933f7d5beae3
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d9506993a76c6afdec577e39e29728e37b83906ddd5c8ef31bbb74b25b6bfab
+size 93269
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_origin.pdf b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..29392f49b5f3a1f540083809353e9f0911ffdf51
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/8680c3e3-40b7-47a4-99d1-aa1c766cefd9_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa0906bfd315df1286d3b9a3085b2c14aca90cbc2bf801285066405e1613fc25
+size 349753
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/full.md b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ec46331e8d3a380dc6f83bd7b3c6e2448ec5667a
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/full.md
@@ -0,0 +1,299 @@
+# Learn2Perturb: an End-to-end Feature Perturbation Learning to Improve Adversarial Robustness
+
+Ahmadreza Jeddi1, Mohammad Javad Shafiee1
+
+Michelle Karg², Christian Scharfenberger², Alexander Wong¹
+
+1Waterloo AI Institute, University of Waterloo, Waterloo, Ontario, Canada
+
+$^{2}$ ADC Automotive Distance Control Systems GmbH, Continental, Germany
+
+$^{1}$ {a2jeddi, mjshafiee, a28wong}@uwaterloo.ca
+
+$^{2}\{michelle.karg,christian.scharfenberger\} @$ continental-corporation.com
+
+# Abstract
+
+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 attacks1.
+
+# 1. Introduction
+
+The vulnerability of DNN models to adversarial examples have raised major concerns [1, 7, 9, 25, 31] on their
+
+large-scale adaption in a wide variety of applications.
+
+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.
+
+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.
+
+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.
+
+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.
+
+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.
+
+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.
+
+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:
+
+- A highly efficient and stable end-to-end learning mechanism is introduced to learn the perturbation
+
+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.
+
+- 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.
+- 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.
+
+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.
+
+# 2. Related Work
+
+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.
+
+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:
+
+$$
+x ^ {\prime} = x + \epsilon \cdot \operatorname {s i g n} \left(\nabla_ {x} \mathcal {L} \left(f _ {W} (x), x\right)\right) \tag {1}
+$$
+
+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}$ .
+
+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$ .
+
+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.
+
+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:
+
+$$
+\min \left[ | | \delta | | _ {p} + c \cdot f (x + \delta) \right] \quad s. t. \quad x + \delta \in [ 0, 1 ] ^ {n} \tag {2}
+$$
+
+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.
+
+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.
+
+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.
+
+# 3. Methodology
+
+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
+
+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.
+
+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.
+
+# 3.1. Perturbation-Injection Distribution
+
+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:
+
+$$
+Y \sim P (X; W, \theta) \tag {3}
+$$
+
+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$ .
+
+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:
+
+$$
+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}
+$$
+
+
+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.
+
+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:
+
+$$
+Q \left(\theta_ {l}\right) = \theta_ {l} \cdot \mathcal {N} (0, 1). \tag {5}
+$$
+
+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:
+
+$$
+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}
+$$
+
+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.
+
+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.
+
+# 3.2. Alternating Back-Propagation
+
+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
+
+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.
+
+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.
+
+The training process of the proposed Learn2Perturb is done within two main steps:
+
+- 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}$ .
+- 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.
+
+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.
+
+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
+
+Algorithm 1: Alternating back-propagation of the Learn2Perturb framework
+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$
+Output: Learned parameters $W$ Learned noise distributions $Q(\theta)$
+for $t \gets 1$ to $I$ do
+Perturbation-injected training: update $W$ based on the loss function $\mathcal{L}(\cdot)$ Eq. (7) while $0$ is fixed
+ $W^t \gets W^{t-1} - lr \cdot \nabla_W \mathcal{L}\left(P(X; W^{t-1}, \theta^{t-1}), T\right)$
+Perturbation-injection module training: update $0$ based on Eq. (7) while $W$ is fixed
+ $\theta^t \gets \theta^{t-1} - lr$ .
+ $\nabla_\theta \mathcal{L}\left(P(X; W^{t-1}, \theta^{t-1}), T\right) - \gamma \cdot \nabla_\theta g(\theta^{t-1})$
+Values of $\theta^t$ smaller than $0$ are projected to $0$
+end
+
+loss function can be formulated as:
+
+$$
+\underset {W, \theta} {\arg \min } \left[ \mathcal {L} (P (X; W, \theta), T) + \gamma \cdot g (\theta) \right] \tag {7}
+$$
+
+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:
+
+$$
+g (\theta) = - \frac {\theta^ {1 / 2}}{\tau} \tag {8}
+$$
+
+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
+
+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.
+
+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.
+
+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.
+
+# 3.3. Model Setup, Training and Inference
+
+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.
+
+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.
+
+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.
+
+# 4. Experiments
+
+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].
+
+# 4.1. Dataset & Adversarial Attacks
+
+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.
+
+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.
+
+# 4.2. Experimental Setup
+
+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
+
+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.
+
+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.
+
+# 4.3. Experimental Results
+
+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.
+
+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.
+
+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.
+
+# 4.4. Robustness Comparison
+
+In this section, to further illustrate the effectiveness of the proposed Learn2Perturb framework, we compare
+
+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).
+
+| Model | #Parameter | No defense | Vanilla[24] | Learn2Perturb-R | Learn2Perturb |
| Clean | PGD | FGSM | Clean | PGD | FGSM | Clean | PGD | FGSM | Clean | PGD | FGSM |
| ResNet-V1(20) | 269,722 | 92.10 | 0.0±0.0 | 14.10 | 83.80 | 39.10±0.10 | 46.60 | 81.15±0.02 | 50.23±0.14 | 55.89±0.04 | 83.62±0.02 | 51.13±0.08 | 58.41±0.07 |
| ResNet-V1(56) | 853,018 | 93.30 | 0.0±0.0 | 24.20 | 86.50 | 40.10±0.10 | 48.80 | 82.35±0.03 | 53.30±0.10 | 58.71±0.04 | 84.82±0.04 | 54.84±0.10 | 61.53±0.04 |
| ResNet-V2(18) | 11.173.962 | 95.20 | 0.1±0.0 | 43.10 | 85.46 | 43.90±0.00 | 52.50 | 82.46±0.17 | 53.33±0.12 | 59.09±0.17 | 85.30±0.09 | 56.06±0.16 | 62.43±0.06 |
+
+
+Figure 2. Analyzing the effectiveness of the proposed method compared to state-of-the-art algorithms on different $\epsilon$ values for FGSM attack.
+
+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.
+
+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
+
+
+Figure 3. Evaluating the robustness of the proposed Learn2Perturb compared with other state-of-the-art methods through different $\epsilon$ based on PGD attack.
+
+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.
+
+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$ .
+
+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.
+
+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.
+
+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.
+
+| Model | #Parameter | PNI [14] | Adv-BNN [22] | Learn2Perturb |
| Clean | PGD | FGSM | Clean | PGD | FGSM | Clean | PGD | FGSM |
| ResNet-V1(20) | 269,722 | 84.90±0.1 | 45.90±0.1 | 54.50±0.4 | 65.76±5.92 | 44.95±1.21 | 51.58±1.49 | 83.62±0.02 | 51.13±0.08 | 58.41±0.07 |
| ResNet-V1(32) | 464,154 | 85.90±0.1 | 43.50±0.3 | 51.50±0.1 | 62.95±5.63 | 54.62±0.06 | 50.29±2.70 | 84.19±0.06 | 54.62±0.06 | 59.94±0.11 |
| ResNet-V1(44) | 658,586 | 84.70±0.2 | 48.50±0.2 | 55.80±0.1 | 76.87±0.24 | 54.62±0.06 | 58.55±0.49 | 85.61±0.01 | 54.62±0.06 | 61.32±0.13 |
| ResNet-V1(56) | 853,018 | 86.80±0.2 | 46.30±0.3 | 53.90±0.1 | 77.20±0.02 | 54.62±0.06 | 57.88±0.02 | 84.82±0.04 | 54.62±0.06 | 61.53±0.04 |
| ResNet-V1(20)[1.5×] | 605,026 | 86.00±0.1 | 46.70±0.2 | 54.50±0.2 | 65.58±0.42 | 28.07±1.11 | 36.11±1.29 | 85.40±0.08 | 53.32±0.02 | 61.10±0.06 |
| ResNet-V1(20)[2×] | 1,073,962 | 86.20±0.1 | 46.10±0.2 | 54.60±0.2 | 79.03±0.04 | 53.46±0.06 | 58.30±0.14 | 85.89±0.10 | 54.29±0.02 | 61.61±0.05 |
| ResNet-V1(20)[4×] | 4,286,026 | 87.70±0.1 | 49.10±0.3 | 57.00±0.2 | 82.31±0.03 | 52.61±0.12 | 59.01±0.04 | 86.09±0.05 | 55.75±0.07 | 61.32±0.02 |
| ResNet-V2(18) | 11,173,962 | 87.21±0.0 | 49.42±0.01 | 58.06±0.02 | 82.15±0.06 | 53.62±0.06 | 60.04±0.01 | 85.30±0.09 | 56.06±0.08 | 62.43±0.06 |
+
+Table 3. Comparison results of the proposed Learn2Perturb and competing methods on C&W [6] attack.
+
+| Confidence | No defense | Vanilla | PNI | Adv-BNN | Learn2Perturb |
| κ = 0.0 | 0.0 | 0.0 | 66.9 | 78.9 | 83.6 |
| κ = 0.1 | 0.0 | 0.0 | 66.1 | 78.1 | 84.0 |
| κ = 1.0 | 0.0 | 0.0 | 34.0 | 65.1 | 76.4 |
| κ = 2.0 | 0.0 | 0.0 | 16.0 | 49.1 | 66.5 |
| κ = 5.0 | 0.0 | 0.0 | 00.8 | 16.0 | 34.8 |
+
+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.
+
+| Defense Method | Model | Clean | PGD |
| RSE [21] | ResNext | 87.5 | 40 |
| DP [20] | 28-10 wide ResNet | 87 | 25 |
| Adv-BNN [22] | ResNet-V1(56) | 77.20 | 54.62±0.06 |
| PGD adv. training [24] | ResNet-V1(20) [4×] | 87 | 46.1±0.1 |
| PNI [14] | ResNet-V1(20) [4×] | 87.7±0.1 | 49.1±0.3 |
| Learn2Perturb | ResNet-V2(18) | 85.3±0.1 | 56.3±0.1 |
+
+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).
+
+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.
+
+# 4.5. Expectation over Transformation (EOT)
+
+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
+
+that the false gradients cannot protect the network when the attack uses the gradients which are the expectation over a series of transformations.
+
+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.
+
+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.
+
+# 5. Conclusion
+
+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.
+
+# References
+
+[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
+[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
+[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
+[4] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017. 8
+[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
+[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
+[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
+[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
+[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
+[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
+[11] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. 1
+[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
+[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
+[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
+[15] Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial
+
+manipulation. In Advances in Neural Information Processing Systems, pages 2266-2276, 2017. 2
+[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
+[17] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 6
+[18] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. 6
+[19] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. 2, 6
+[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
+[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
+[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
+[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
+[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
+[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
+[26] Nicolas Papernot and Patrick McDaniel. On the effectiveness of defensive distillation. arXiv preprint arXiv:1607.05113, 2016. 1
+[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
+[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
+[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
+[30] Rafael Pinot, Laurent Meunier, Alexandre Araujo, Hisashi Kashima, Florian Yger, Cédric Gouy-Pailler, and Jamal Atif.
+
+Theoretical evidence for adversarial robustness through randomization: the case of the exponential family. arXiv preprint arXiv:1902.01148, 2019. 3, 8
+[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
+[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
+[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
+[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
+[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
+[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
\ No newline at end of file
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/images.zip b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..870c53984ffe3b9e2bf79b527139e21dd1f98489
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21c783103aac2a317481e80da5497b368e71a76bc7f05498601b535f815f2ccb
+size 337374
diff --git a/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/layout.json b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e0c7a352483854b8105035ca9cf7dc7d59937bfb
--- /dev/null
+++ b/learn2perturbanendtoendfeatureperturbationlearningtoimproveadversarialrobustness/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ce9480e2609ff09fdd2fdecce07f1e4507207cb97e0710629e709e95b0f49ee4
+size 411392
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_content_list.json b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4b49231a6f359aa523bb1ad469eed2352ee03b5f
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b94d0167f5b1c28500b0d7f023dfa6356a3dc06a660ccc435f5b853b3fae322b
+size 89283
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_model.json b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..65b74a6c5241e2b170ad90878dfe93493abb90be
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6add969ca6991526658c21a746555ca4643e8b3b5ebb5c8bcd0b8764630c44c
+size 115690
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_origin.pdf b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..25cc06c83c18ff706a1c36a91160bb88d43d6711
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/5e32ee5e-2195-4975-8967-d98c1324b4cd_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a02f4025c90993814164c21128193d053695ad5abee95782ca9991ca9d635e8
+size 2112542
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/full.md b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ded53e583e704624926ad514c8d7288e9851622b
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/full.md
@@ -0,0 +1,511 @@
+# Learned Image Compression with Discretized Gaussian Mixture Likelihoods and Attention Modules
+
+Zhengxue Cheng $^{1}$ , Heming Sun $^{2,3}$ , Masaru Takeuchi $^{2}$ , Jiro Katto $^{1}$
+
+$^{1}$ Department of Computer Science and Communication Engineering, Waseda University, Tokyo, Japan
+
+$^{2}$ Waseda Research Institute for Science and Engineering, Tokyo, Japan $^{3}$ JST, PRESTO, 4-1-8 Honcho, Kawaguchi, Saitama, Japan
+
+{zxcheng@asagi., hemingsun@aoni., masaru-t@aoni., katto@}waseda.jp
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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
+
+
+
+
+
+
+Proposed Method [MS-SSIM 0.106bhp, 27.21dB, 0.952
+Proposed Method [MSE] 1.101hnp,30.72dB,0.929
+
+
+Original Image
+HEVC(BPG),0101-30.03 IP 0.016
+Figure 1: Visualization of reconstructed images Kodim04 from Kodak dataset with approximately 0.1 bpp.
+
+
+JPG2000,39.58/IF 0.001
+
+
+JPEG, 312x312, p. 776
+
+
+VVC (VTM 5.2), 111Hz, 30.80-HP, 0.92
+0.111Bpp, 30.80dB, 0.92)
+
+
+$\frac{1}{2} =$ 小圆
+$\therefore m = \frac{3}{11}$
+
+
+STG2000
+
+
+JPEG
+
+
+$\therefore m = \frac{3}{11}$
+$\therefore m - 1 \neq 0$ ;
+
+
+HEVC
+
+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.
+
+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-
+
+adaptive entropy model. Our proposed methods are based on the development of these recent entropy model techniques to further improve the performance.
+
+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.
+
+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.
+
+# 2. Related Work
+
+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].
+
+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
+
+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.
+
+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.
+
+# 3. Proposed Method
+
+# 3.1. Formulation of Learned Compression Models
+
+In the transform coding approach [27], image compression can be formulated by (as Fig. 2(a))
+
+$$
+\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}
+$$
+
+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
+
+
+(a) Baseline
+
+
+(b) Hyperprior
+
+
+(c) Joint
+Figure 2: Operational diagrams of learned compression models (a)(b)(c) and proposed Gaussian Mixture Likelihoods (d).
+
+
+(d) Proposed Model
+
+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.
+
+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))
+
+$$
+\boldsymbol {z} = h _ {a} (\boldsymbol {y}; \phi_ {\boldsymbol {h}});
+$$
+
+$$
+\hat {z} = Q (z) \tag {2}
+$$
+
+$$
+p _ {\hat {y} | \hat {z}} (\hat {y} | \hat {z}) \leftarrow h _ {s} (\hat {z}; \boldsymbol {\theta} _ {\boldsymbol {h}})
+$$
+
+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})$ .
+
+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).
+
+Learned image compression is a Lagrangian multiplier-based rate-distortion optimization. The loss function is
+
+$$
+\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}
+$$
+
+where $\lambda$ controls the rate-distortion tradeoff. Different $\lambda$ values are corresponding to different bit rates. $\mathcal{D}(\pmb {x},\hat{\pmb{x}})$ de
+
+notes the distortion term. There is no prior for $\hat{z}$ , so a factorized density model $\psi$ is used to encode $\hat{z}$ as
+
+$$
+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}
+$$
+
+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.
+
+# 3.2. Discretized Gaussian Mixture Likelihoods
+
+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,
+
+$$
+p _ {\hat {y} | \hat {z}} (\hat {y} | \hat {z}) \sim \mathcal {N} (0, \sigma^ {2}) \tag {5}
+$$
+
+The improved work [20] extended a scale hyperprior to a mean and scale Gaussian distribution, that is,
+
+$$
+p _ {\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}} (\hat {\boldsymbol {y}} | \hat {\boldsymbol {z}}) \sim \mathcal {N} (\boldsymbol {\mu}, \sigma^ {2}) \tag {6}
+$$
+
+and combine with a autoregressive model, denoted as Joint.
+
+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.
+
+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
+
+
+
+
+Latent codes $\hat{y}$
+
+
+Latent codes $\hat{y}$
+Required bits
+
+
+Original image
+
+
+
+
+Mean
+
+
+Mean
+
+
+Mean
+
+
+#
+
+
+Scale
+
+
+Scale
+
+
+Scale
+
+
+
+
+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.
+
+
+Remaining redundancy
+
+
+Remaining redundancy
+
+
+Remaining redundancy
+
+
+
+
+
+
+Required bits
+
+
+Required bits
+
+
+Weight
+
+
+
+
+
+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.
+
+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.
+
+$$
+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}
+$$
+
+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
+
+$$
+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}})
+$$
+
+$$
+\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}
+$$
+
+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
+
+
+Figure 4: Network architecture.
+
+Table 1: Required bits and quality metrics for Kodim21.
+
+| Model | PSNR (dB) | MS-SSIM | Rate (bpp) |
| Joint | 33.435 | 0.980 | 0.533 |
| Ours | 33.623 | 0.981 | 0.519 |
+
+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.
+
+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.
+
+The Gaussian mixture model can achieve better performance because it selects $K$ most probable values and as-
+
+Table 2: Performance of different attention modules.
+
+| Module | (a)w/ NLB | (b)w/o NLB | w/o attention |
| Loss | 2.705 | 2.754 | 3.026 |
| Time(s)/epoch | 1119 | 336 | 216 |
+
+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).
+
+# 3.3. Network Architecture
+
+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.
+
+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
+
+
+(b) Simplified attention module
+
+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.
+
+# 4. Implementation Details
+
+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.
+
+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.
+
+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.
+
+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
+
+
+(a) Loss curves with $N = 128$ .
+
+
+(b) RD points with $N = 128$
+
+
+Figure 5: Different attention modules.
+(c) Loss curves with $N = 192$ .
+Figure 6: Ablation Study.
+
+
+(d) RD points with $N = 192$
+
+timized distortion metrics. The rate-distortion (RD) curves are drawn to demonstrate their coding efficiency.
+
+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].
+
+# 5. Experiments
+
+# 5.1. Ablation Study
+
+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
+
+
+
+
+Figure 7: Performance Evaluation on Kodak dataset.
+
+
+Figure 8: Performance Evaluation on CLIC Professional Validation dataset.
+
+
+
+easily resulting more remaining spatial redundancy, and our proposed Gaussian mixture likelihoods can capture them effectively to reduce the bits.
+
+# 5.2. Rate-distortion Performance
+
+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 code1. 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
+
+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.
+
+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.
+
+# 5.3. Qualitative Results
+
+To demonstrate our method can generate more visually pleasant results, we visualize some reconstructed images for qualitative performance comparison.
+
+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
+
+
+Original Image
+
+
+Proposed Method [MS-SSIM],
+
+
+Proposed Method [MSE],
+
+
+VVC (VTM 5.2)
+
+
+
+
+
+
+Original
+Ours [MS-SSIM]
+
+
+
+
+
+
+
+
+Ours [MSE
+
+VC
+
+
+VC
+
+HEVC
+
+
+0.096bpp, 27.60dB, 0.972
+HEVC (BPG),
+0.103bpp,28.79dB,0.945
+
+
+0.098bpp, 29.99dB, 0.958
+JPEG2000,
+0.099bpp,26.43dB,0.905
+
+
+0.099bpp,29.92dB,0.957
+JPEG
+0.117bpp,23.16dB,0.834
+
+
+
+
+JPEG2000
+JPEG
+
+
+
+2000
+
+
+$\therefore m = \frac{3}{11}$
+
+
+HEVC
+
+
+
+
+Figure 9: Visualization of reconstructed images $\text{kodim}07$ from Kodak dataset.
+Original Image
+
+
+Proposed Method [MS-SSIM],
+
+
+Proposed Method [MSE].
+
+
+VVC (VTM 5.2),
+
+
+Original
+
+
+
+
+Ours [MS-SSIM]
+Ours [MSE]
+
+
+0.110bpp,26.53dB,0.954
+HEVC (BPG),
+0.112bpp, 26.38dB, 0.919
+
+
+0.113bnn,27.12dB,0.937
+JPEG2000
+0.119bpp, 25.30dB, 0.902
+Figure 10: Visualization of reconstructed images $\text{kodim}21$ from Kodak dataset.
+
+
+0.111bpp, 27.12dB, 0.931
+JPEG,
+0.121bpp, 21.83dB, 0.776
+
+
+JPEG2000
+
+
+JPEG
+
+
+VVC
+
+
+HEVC
+
+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.
+
+# 6. Conclusion
+
+We propose a learned image compression approach using a discretized Gaussian mixture likelihoods and attention modules. By exploring the remaining redundancy of
+
+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.
+
+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.
+
+# Acknowledgement
+
+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.
+
+# References
+
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[12] Ripple Oren, L. Bourdev, “Real Time Adaptive Image Compression”, Proc. of Machine Learning Research, Vol. 70, pp. 2922-2930, 2017. 2
+[13] S. Santurkar, D. Budden, N. Shavit, "Generative Compression", Picture Coding Symposium, June 24-27, 2018. 2
+[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
+[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
+
+[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
+[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
+[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
+[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
+[20] D. Minnen, J. Balle, G. Toderici, "Joint Autoregressive and Hierarchical Priors for Learned Image Compression", arXiv.1809.02736. 1, 2, 3, 4, 7
+[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
+[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
+[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
+[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
+[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
+[26] F. Mentzer, E. Agustsson, M. Tschannen, R. Timofte, L. V. Gool, “Practical Full Resolution Learned Lossless Image Compression”, CVPR 2019. 2
+[27] Goyal Vivek K. “Theoretical Foundations of Transform Coding”, IEEE Signal Processing Magazine, Vol. 18, No. 5, Sep. 2001. 2
+[28] Rissanen Jorma and Glen G. Langdon Jr., “Universal modeling and coding”, IEEE Transactions on Information Theory, Vol. 27, No. 1, Jan. 1981. 3
+[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
+[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
+
+[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
+[32] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization”, arXiv:1412.6980, pp.1-15, Dec. 2014. 6
+[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
+[34] Kodak Lossless True Color Image Suite, Download from http://r0k.us/graphics/kodak/ 6
+[35] Workshop and Challenge on Learned Image Compression, CVPR2018, http://www.compression.cc/challenge/6
+[36] VVC Official Test Model VTM, https://vcert.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/tree/VTM-5.2, accessed on July, 2019. 6
+[37] BPG Image Format, https://bellard.org/bpg/6
+[38] JPEG2000 official software OpenJPEG, https://jpeg.org/jpeg2000/software.html 6
+[39] Python Imaging Library (PIL), https://pillow.readthedocs.io/en/5.1.x/index.html 6
\ No newline at end of file
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/images.zip b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2b1698d7a6128920a5a9bd487e0aa20ada97f224
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3837f8061c616305def83b04da557482ee7be957224d02efde634c8a475714c
+size 909776
diff --git a/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/layout.json b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..aa187f90d1162580f764a424103be1f9a5ac6f68
--- /dev/null
+++ b/learnedimagecompressionwithdiscretizedgaussianmixturelikelihoodsandattentionmodules/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:768385fb3e53e290242d8a607ab2d8d54bcdb30f9a6482ffe41b0fec923b744e
+size 614899
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_content_list.json b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..41c217ce0874d0d294df144822c0758111648be6
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6ecfc4c3da98d313b5a092c8b44419912e9da507f1e12b3616e32bf1e57e24e
+size 72227
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_model.json b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7dc4f7cfca2c06f68550a575a3bb9b9823cccd66
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fb21b557b258fd9ddadf0417b1aad3ab5ab41e4428d5fb8085df44219a84bf07
+size 90655
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_origin.pdf b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..288ec6c8d170d5d52e80cd796d2d80a051401fca
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/d585ff68-1823-4681-909a-d06ddccdb0c7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c820ecc5d74f3f66b6644e8db22bf9ad5605ecbdb89ee5074b1d6fdbd7f072d
+size 5766034
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/full.md b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..69004ddafa799a41d943eb5707bd14aef5fad4a8
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/full.md
@@ -0,0 +1,279 @@
+# Learning 3D Semantic Scene Graphs from 3D Indoor Reconstructed
+
+Johanna Wald $^{1, *}$ Helisa Dhamo $^{1, *}$ Nassir Navab $^{1}$ Federico Tombari $^{1,2}$ $^{1}$ Technische Universität München $^{2}$ Google
+
+# Abstract
+
+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.
+
+# 1. Introduction
+
+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.
+
+Scene understanding from images has recently explored the use of scene graphs to aid understanding object relationships in addition to characterizing objects individu
+
+
+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.
+
+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].
+
+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.
+
+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 released1. 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:
+
+- 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.
+- We propose the first learned method that generates a semantic scene graph from a 3D point cloud.
+- We show how 3D semantic scene graphs can be used in cross-domain retrieval, specifically 2D-3D scene retrieval of changing indoor environments.
+
+# 2. Related Work
+
+Semantic Scene Graphs with Images. Johnson et al. [17] introduced scene graphs - motivated by image retrieval - as a representation that semantically describes an image,
+
+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].
+
+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.
+
+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.
+
+Only recently the community started to explore seman
+
+
+Figure 2. Scene graph representation in 3DSSG including hierarchical class labels $c$ and attributes $A$ per node, as well as relationship triplets between nodes.
+
+
+
+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.
+
+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.
+
+# 3. 3D Semantic Scene Graphs
+
+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
+
+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.
+
+Table 1. Semantic 3D scene graph comparison.
+
+| dataset | size | instances | classes | obj. rel. |
| Armeni et al. [3]* | 35 buildings | 3k | 28 | 4 |
| 727 rooms |
| 3DSSG (Ours) | 1482 scans | 48k | 534 | 40 |
| 478 scenes |
+
+# 3.1. Nodes
+
+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.
+
+
+Figure 3. Simplified graphical visualization of the lexical relationships on a small subset of classes
+
+# 3.2. Attributes
+
+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.
+
+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
+
+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.
+
+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.
+
+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.
+
+# 3.3. Relationships
+
+3DSSG has a rich set of relationships classifiable into a) spatial / proximity relationships b) support relations and c) comparative relationships.
+
+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.
+
+Proximity Relationships Proximity relationships describe the spatial relationships (e.g. next to, in front of) with respect to a reference view. To limit
+
+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.
+
+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.
+
+# 4. Graph Prediction
+
+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}$
+
+$$
+\mathcal {P} _ {i} = \left\{\delta_ {m _ {k} i} \odot p _ {k} \right\} _ {k = 1, | \mathcal {P} |} \tag {1}
+$$
+
+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.
+
+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}$
+
+$$
+\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}
+$$
+
+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.
+
+We employ a Graph Convolutional Network (GCN) [18], similar to [16], to process the acquired triples. As scenes
+
+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
+
+$$
+\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}
+$$
+
+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
+
+$$
+\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}
+$$
+
+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
+
+$$
+\phi_ {i} ^ {(l + 1)} = \phi_ {i} ^ {(l)} + g _ {2} \left(\rho_ {i} ^ {(l)}\right). \tag {5}
+$$
+
+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.
+
+The last part of the GCN consists of two MLPs for the prediction of the node and predicate classes.
+
+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}}$
+
+$$
+\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}
+$$
+
+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]
+
+$$
+\mathcal {L} = - \alpha_ {t} (1 - p _ {t}) ^ {\gamma} \log p _ {t} \tag {7}
+$$
+
+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})$ .
+
+Implementation details are provided in the supplement.
+
+
+Input: Point set of a scene $\mathcal{P}$
+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.
+
+
+ObjPointNet
+
+
+Fully-Connected Graph of Features
+
+
+Output: 3D Scene Graph $\mathcal{G}$
+
+# 5. Scene Retrieval
+
+
+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
+
+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
+
+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.
+
+$$
+\tau_ {J} (A, B) = \frac {| A \cap B |}{| A \cup B |} \tag {8}
+$$
+
+$$
+\tau_ {S} (A, B) = \frac {| A \cap B |}{\min (| A | , | B |)} \tag {9}
+$$
+
+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
+
+
+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.
+
+$$
+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}
+$$
+
+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.
+
+# 6. Evaluation
+
+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.
+
+# 6.1. Semantic Scene Graph Prediction
+
+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.
+
+Table 2. Evaluation of the scene graph prediction task on 3DSSG. We present triples prediction, object classification as well as predicate prediction accuracy.
+
+| Method | Relationship Prediction | Object Class Prediction | Predicate Prediction |
| R@50 | R@100 | R@5 | R@10 | R@3 | R@5 |
| ① Relation Prediction Baseline | 0.39 | 0.45 | 0.66 | 0.77 | 0.62 | 0.88 |
| Single Predicate, ObjCls from PointNet Features | 0.37 | 0.43 | 0.68 | 0.78 | 0.42 | 0.58 |
| ② Multi Predicate, ObjCls from PointNet Features | 0.40 | 0.66 | 0.68 | 0.78 | 0.89 | 0.93 |
| Multi Predicate, ObjCls from GCN Features | 0.30 | 0.60 | 0.60 | 0.73 | 0.79 | 0.91 |
+
+# 6.2. Scene Retrieval
+
+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.
+
+Table 3. Evaluation: 3D-3D scene retrieval of changing 3D rescans to reference 3D scans in 3RScan.
+
+ | Graph | Top-1 | Top-3 | Top-5 |
| τS(s(N3D),s(N3D)) | GT | 0.86 | 0.99 | 1.00 |
| fS(G3D,G3D) | GT | 0.96 | 1.00 | 1.00 |
| τJ(s(N3D),s(N3D)) | GT | 0.89 | 0.95 | 0.95 |
| fJ(G3D,G3D) | GT | 0.95 | 0.96 | 0.98 |
| τJ(s(N3D),s(N3D)) | ① | 0.15 | 0.40 | 0.45 |
| fJ(G3D,G3D) | ① | 0.29 | 0.50 | 0.59 |
| τJ(s(N3D),s(N3D)) | ② | 0.32 | 0.46 | 0.50 |
| fJ(G3D,G3D) | ② | 0.34 | 0.51 | 0.56 |
+
+Table 4. Evaluation: 2D-3D scene retrieval of changing rescans to reference 3D scans in 3RScan.
+
+ | Graph | Top-1 | Top-3 | Top-5 |
| τJ(s(N2D), s(N3D)) | GT | 0.49 | 0.75 | 0.84 |
| τS(s(N2D), s(N3D)) | GT | 0.98 | 0.99 | 1.00 |
| fJ(G2D, G3D) | GT | 0.55 | 0.85 | 0.86 |
| fS(G2D, G3D) | GT | 1.00 | 1.00 | 1.00 |
| τS(s(N2D), s(N3D)) | ① | 0.17 | 0.36 | 0.42 |
| fS(G2D, G3D) | ① | 0.10 | 0.25 | 0.32 |
| τS(s(N2D), s(N3D)) | ② | 0.17 | 0.36 | 0.41 |
| fS(G2D, G3D) | ② | 0.13 | 0.38 | 0.42 |
+
+# 7. Conclusion
+
+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.
+
+# Acknowledgment
+
+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.
+
+# References
+
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[8] Christiane Fellbaum, editor. WordNet: an electronic lexical database. MIT Press, 1998. 4
+[9] Matthew Fisher, Manolis Savva, and Pat Hanrahan. Characterizing structural relationships in scenes using graph kernels. ACM Trans. Graph, 2011. 2, 3
+[10] James J. Gibson. The Ecological Approach to Visual Perception. Boston: Houghton Mifflin, 1979. 4
+[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
+[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
+
+[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
+[14] Hamid Izadinia, Qi Shan, and Steven M Seitz. IM2CAD. In Computer Vision and Pattern Recognition (CVPR), 2017. 3
+[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
+[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
+[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
+[18] Thomas N. Kipf and Max Welling. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations (ICLR), 2017. 2, 5
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+
+[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
+[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
+[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
+[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
+[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
+[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
+[33] Alejandro Newell and Jia Deng. Pixels to graphs by associative embedding. In Conference on Neural Information Processing Systems (NeurIPS), 2017. 2
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[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
+[53] Yibiao Zhao and Song chun Zhu. Image Parsing with Stochastic Scene Grammar. In Conference on Neural Information Processing Systems (NeurIPS), 2011. 2
+[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
\ No newline at end of file
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/images.zip b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e01c12b733c9e93db829c1730daa413a06fc20de
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43ed1a027d0bce87779fe4b488641420865f427bf73d6ce211e85e7e9b74fae1
+size 533520
diff --git a/learning3dsemanticscenegraphsfrom3dindoorreconstructions/layout.json b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5c39a5ad77461e6b03490eef9d21504ec4e80d10
--- /dev/null
+++ b/learning3dsemanticscenegraphsfrom3dindoorreconstructions/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0b9abacacf305bd55160f47ed79253adfdeb4885ae59ac3d4deb107ad0feed1
+size 375102
diff --git a/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_content_list.json b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..73755320efa1f2aa59cdacbb7aff95af97a2af6d
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4203fce3660b3a7b6810134c5eb92cce9800499d3e2c3f6cab8fe7865c565242
+size 73575
diff --git a/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_model.json b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b36d1f1852262d2765721e2757f9b82031eadb5d
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fa2a0b1c384c3f5a9b85d2e9a5130933ae055ab311f28f53eaf7e502f220d98
+size 87011
diff --git a/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_origin.pdf b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3a939a3e5757b11f57954841118c9beb0e5f4877
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/d1a82b30-8334-4351-ba2a-10fd58ff3d5a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5441996406836292a4ee5cec9680258c0cb9d3785fb3995b9097f9d9bf732404
+size 3337489
diff --git a/learningadynamicmapofvisualappearance/full.md b/learningadynamicmapofvisualappearance/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..999185d6510ea8bb541579546604c8825592b1aa
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/full.md
@@ -0,0 +1,326 @@
+# Learning a Dynamic Map of Visual Appearance
+
+Tawfiq Salem
+
+Miami University
+
+Scott Workman
+
+DZYNE Technologies
+
+Nathan Jacobs
+
+University of Kentucky
+
+# Abstract
+
+The appearance of the world varies dramatically not only from place to place but also from hour to hour and month to month. Every day billions of images capture this complex relationship, many of which are associated with precise time and location metadata. We propose to use these images to construct a global-scale, dynamic map of visual appearance attributes. Such a map enables fine-grained understanding of the expected appearance at any geographic location and time. Our approach integrates dense overhead imagery with location and time metadata into a general framework capable of mapping a wide variety of visual attributes. A key feature of our approach is that it requires no manual data annotation. We demonstrate how this approach can support various applications, including image-driven mapping, image geolocation, and metadata verification.
+
+# 1. Introduction
+
+Recent concern about "fake news" has lead to a significant interest in verifying that imagery is real and unmanipulated. Early work on this problem focused on low-level image statistics [4, 6], but this approach is unable to detect the falsification of image metadata. Matzen and Snively [21] introduce an approach for finding anomalous timestamps, but their method is based on visual correspondences and requires overlapping imagery. Recent work has begun to look at this problem more thoroughly, with new datasets [10] and proposals for comprehensive systems [3]. However, no previous work provides the dynamic map of visual attributes that is necessary for detecting time/location metadata falsification.
+
+We propose to use visual attributes estimated from ground-level images, such as those shown in Figure 1, to learn a dynamic map of visual attributes. Beyond metadata verification, there are numerous applications for such a map, including geolocalizing images, providing contextual information for autonomous vehicles, and supporting further studies on the relationship between the visual environ
+
+
+Figure 1: Visual appearance changes dramatically due to differences in location and time. Our work takes advantage of sparsely distributed ground-level image data, with associated location and time metadata, in conjunction with overhead imagery to construct dynamic maps of visual appearance attributes.
+
+ronment and human health and happiness [26].
+
+Predicting visual attributes directly from location and time is difficult because of the complexity of the distribution. It would, for example, require memorizing the location of every road and building in the area of interest. To overcome this, our model combines overhead imagery with location and time using a multi-modal convolutional neural network. The result is a model capable of generating a worldwide, dynamic map of visual attributes that captures both local and global patterns.
+
+We focus on two visual attributes: the scene category [44], such as whether the image views an attic or a zoo, and transient attributes [15], which consist of time-varying
+
+properties such as sunny and foggy. We selected these because they are well known, easy to understand, and have very different spatiotemporal characteristics. The former is relatively stable over time, but can change rapidly with respect to location, especially in urban areas. The latter has regular, dramatic changes throughout the day and with respect to the season.
+
+Our approach has several useful properties: it does not require any manually annotated training data; it can model differences in visual attributes at large and small spatial scales; it captures spatiotemporal trends, but does not require overhead imagery at every time; and is extendable to a wide range of visual attributes. To evaluate our approach, we created a large dataset of paired ground-level and overhead images each with location and time metadata, which we call Cross-View Time (CVT). Using CVT, we demonstrate the effectiveness of our dynamic mapping approach on several tasks. In each case, our full model, which combines overhead imagery and metadata, is superior.
+
+# 2. Related Work
+
+Recent advances in computer vision have enabled the estimation of a wide variety of visual attributes, including scene category [44], weather conditions [15], and demographics [7]. As these techniques mature, many application areas have developed that require an understanding of the relationship between visual attributes, geographic location, and time.
+
+# 2.1. Image-driven mapping
+
+Typically image-based methods for generating maps start by extracting visual attributes from large-scale geotagged image collections and then apply a form of spatial smoothing, such as locally weighted averaging. Examples include methods for mapping land cover [17], scenicism [41], snowfall [34], facial appearance [2], and a variety of other visual attributes [33].
+
+Integrating overhead imagery with image-driven mapping reduces the need for spatial smoothing, resulting in higher quality maps. This has been demonstrated for a variety of visual attributes, including building properties [40], natural beauty [39], scene layouts [42], soundscapes [25], object distributions [9, 24], and land use [28]. Recent work has taken this to the extreme by synthesizing complete ground-level images [5, 23, 42].
+
+In this work, we perform image-driven mapping using overhead imagery, with location and time as additional context, resulting in high-resolution, dynamic maps of visual attributes. Most previous work has either ignored time, or merely used it to filter images outside of a time interval prior to spatial smoothing. Our work is similar to [37], but we focus on mapping visual attributes.
+
+# 2.2. Image geolocation
+
+Recently, there has been a significant interest in the problem of image geolocation, i.e., estimating the geographic location of the camera, or an object in the scene, given visual attributes extracted from the image [11, 35]. More recent work has shown that learning a feature mapping between ground-level and overhead image viewpoints enables image localization in regions without nearby ground-level images [18, 19, 36, 38]. From this work, we see that image geolocation requires the ability to extract visual attributes from ground-level images and an understanding of the geospatial distribution of these attributes. The former motivates our focus on generating high-quality, dynamic maps of visual attributes.
+
+# 2.3. Location context aids image understanding
+
+Studies have shown that additional context can aid visual understanding. Tang et al. [29] use the location an image was captured to improve classification accuracy. Luo et al. [20] use overhead imagery as additional context to improve event recognition in ground-level photos. Zhai et al. [43] describe methods for learning image features using location and time metadata. Lee et al. [16] use map data to learn to estimate geo-informative attributes such as population density and elevation. Wang et al. [32] use location information along with weather conditions to learn a feature representation for facial attribute classification. One potential use of our dynamic mapping approach would be as a model of the context needed for such image understanding applications.
+
+# 3. Cross-View Time (CVT) Dataset
+
+In an effort to support dynamic image-driven mapping, we introduce a new large-scale dataset that contains geotagged ground-level images, corresponding capture time, and co-located overhead images. We refer to our dataset as the Cross-View Time (CVT) dataset. It is similar to previous cross-view datasets [31, 36, 38], but ours is unique in providing timestamps for all images.
+
+Our dataset is built from two sources of ground-level images. The first source is the Archive of Many Outdoor Scenes (AMOS) [13], a collection of over a billion images captured from public outdoor webcams around the world. This subset [22] includes images captured between the years 2013 and 2014, from 50 webcams, totaling 98633 images. Each image is associated with the location of the webcam and a timestamp (UTC) indicating when the image was captured. The second source is a subset of the Yahoo Flickr Creative Commons 100 Million Dataset (YFCC100M) [30]. This subset [43] contains geotagged outdoor images, with timestamps, captured by smartphones.
+
+We combined images from both of these sources to form
+
+
+Figure 2: An overhead image and the corresponding ground-level images from our CVT dataset.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 3: The spatial distribution of the CVT dataset. The blue (yellow) dots represent the training (testing) data.
+
+a hybrid dataset containing 305 011 ground-level images. For each image, we also downloaded an orthorectified overhead image from Bing Maps $(800 \times 800, 0.60$ meters/pixel), centered on the geographic location. We randomly selected 25 000 ground-level images, and the corresponding overhead images, and reserved them for testing. This resulted in a training dataset of 280 011 image pairs. Figure 2 shows example images from the CVT dataset.
+
+Figure 3 shows the spatial distribution of the training images (blue dots) and testing images (yellow dots). Visual analysis of the distribution reveals that the images are captured from all over the world, with more images from Europe and the United States. Furthermore, examining the capture time associated with each image shows that the images cover a wide range of times. Figure 4 visualizes the distribution over month and hour for both ground-level image sources. We observe that the webcam images are captured more uniformly across time than the cellphone images. The dataset is available at our project website.
+
+# 4. Dynamic Visual Appearance Mapping
+
+We present a general approach for dynamic visual appearance mapping that could be used to model a broad range of attributes and support many tasks.
+
+
+
+
+Figure 4: The temporal distribution of the CVT dataset.
+
+# 4.1. Problem Statement
+
+Our objective is to construct a map that represents the expected appearance at any geographic location and time. The expected appearance is defined using a set of visual attributes, which could be low level, such as a color histogram, or high level, such as the scene category. For a given visual attribute, $a$ , such a map can be modeled as a conditional probability distribution, $P(a|t,l)$ , given the time, $t$ , and location, $l$ , of the viewer. The distribution $P(a|t,l)$ is challenging to learn because it essentially requires memorizing the Earth and how it changes over time.
+
+We assume we are given a set of ground-level images, $\{I_i\}$ , each with associated capture time, $\{t_i\}$ , and geolocation metadata, $\{l_i\}$ . Furthermore, we assume we have the ability to calculate, or estimate with sufficient accuracy, each visual attribute from all images. The computed visual attributes, $\{a_i\}$ , can be considered samples from the proba
+
+
+Figure 5: An overview of our network architecture, which includes the network we train to predict visual attributes (left) and the (frozen) networks we use to extract visual attributes from the ground-level images (right).
+
+bility distribution, $P(a|t,l)$ , and used for model fitting.
+
+# 4.2. Approach Overview
+
+To overcome the difficulty of directly modeling $P(a|t, l)$ , we also condition the distribution on an overhead image, $I(l)$ , of the location. Specifically, we define a conditional probability distribution, $P(a|t, l, I(l))$ . In doing so, the network no longer has to memorize, for example, the location of every road, river, and building in the world. We implement this using a mixture of convolutional and fully-connected neural networks to map from the conditioning variables to the parameters of distributions over a visual attribute, $P(a|F(t, l, I(l); \Theta))$ , where $\Theta$ represents the parameters of all neural networks.
+
+See Figure 5 for an overview of our complete architecture, which, in this case, simultaneously predicts two visual attributes. From the left, we first construct a feature embedding for each conditioning variable using a set of context neural networks. We combine these context features to predict the visual attributes using a per-attribute, estimator network. From the right, a set of pre-trained networks extract visual attributes from the ground-level images. These networks are only used for extracting visual attributes and are not trained in our framework.
+
+This macro-architecture was carefully designed to balance several criteria. Most importantly, the overhead image is not dependent on time. This means that an overhead image is not required for every timestamp, $t$ , of interest. An overhead image is required for each location, but this is not a significant limitation given the wide availability of high-resolution satellite and aerial imagery. In addition, at inference time, feature extraction for the satellite image only needs to happen once, because the extraction process is not time or attribute dependent.
+
+# 4.3. Network Architecture Details
+
+We propose a novel macro-architecture for modeling a dynamic visual appearance map. In this section, we define the specific neural network architectures and hyperparameters we used for evaluation.
+
+Visual Attributes We focus on two visual attributes: Places [44], which is a categorical distribution over 365 scene categories, and Transient [15], which is a multi-label attribute with 40 values that each reflect the degree of presence of different time-varying attributes, such as sunny, cloudy, or gloomy. To extract the Places attributes, we use the pre-trained VGG-16 [27] network. To extract the Transient attributes, we use a ResNet-50 [12] model that we trained using the Transient Attributes Database [15].
+
+Context Networks The context networks encode every conditioning variable, i.e., time, geographic location, and overhead image, to a 128-dimensional feature vector. For the time and geolocation inputs, we use two similar encoding networks, each consisting of three fully connected layers with a ReLU activation. The layers have 256, 512, and 128 neurons respectively. The geographic location is represented in earth-centered earth-fixed coordinates, scaled to the range $[-1,1]$ . The time is factored into two components: the month of the year and the hour of the day. Each is scaled to the range $[-1,1]$ . For the overhead image, we use a ResNet-50 model to extract the 2048-dimensional feature vector from the last global average pooling layer. This feature is passed to a per-attribute head. Each head consists of two fully connected layers that are randomly initialized using the Xavier scheme [8]. The layers of each head have 256 and 128 neurons respectively, each with a ReLU activation.
+
+Estimator Networks For each visual attribute there is a separate estimator network, with only fully connected layers, that directly predicts the visual attribute. The input for these is the concatenation of the outputs of the context
+
+| Model | Places | Transient |
| Top-1 | Top-5 | Within-0.1 | Within-0.2 |
| loc (k-NN) | 17.68 | 40.26 | 50.96 | 77.10 |
| time (k-NN) | 5.84 | 17.82 | 48.75 | 75.77 |
| time+loc (k-NN) | 19.08 | 41.15 | 51.84 | 77.51 |
| loc (CNN) | 12.70 | 32.45 | 48.50 | 75.45 |
| time (CNN) | 4.45 | 16.91 | 47.37 | 75.34 |
| time+loc (CNN) | 17.05 | 35.50 | 54.69 | 79.15 |
| sat (CNN) | 15.16 | 38.40 | 49.87 | 76.55 |
| sat+loc (CNN) | 16.98 | 41.46 | 50.57 | 77.17 |
| sat+time (CNN) | 19.66 | 40.78 | 56.14 | 79.79 |
| sat+time+loc (CNN) | 21.58 | 44.00 | 56.91 | 80.55 |
+
+Table 1: A comparison of the prediction accuracy of our full approach, $sat + time + loc$ , with various baseline models.
+
+networks. For each estimator network, the first two layers (which have ReLU activations) contain 256 and 512 neurons, respectively. The third layer represents the output, with the number of neurons depending on the visual attribute. In this case, there are 365 output neurons for the Places estimator, with a softmax activation, and 40 for the Transient estimator, with a sigmoid activation.
+
+# 4.4. Implementation Details
+
+We jointly optimize all estimator and context networks with losses that reflect the quality of our prediction of the visual attributes extracted from ground-level images, $\{I_i\}$ . For the Places estimator, the loss function is the KL divergence between attributes estimated from the ground-level image and the network output. For the Transient estimator, the loss function is the mean squared error (MSE). These losses are optimized using Adam [14] with mini-batches of size 32. We applied $L_{2}$ regularization with scale 0.0005 and trained all models for 10 epochs with learning rate 0.001.
+
+All networks were implemented using TensorFlow [1] and will be shared with the community. Input images are resized to $224 \times 224$ and scaled to $[-1, 1]$ . We pre-trained the overhead context network to directly predict Places and ImageNet categories of co-located ground-level images, minimizing the KL divergence for each attribute. The weights are then frozen and only the added attribute-specific heads are trainable.
+
+For extracting Transient attributes from the ground-level images, we train a ResNet-50 using the Transient Attributes Database [15] with the MSE loss. The weights were initialized randomly using the Xavier scheme, and optimized using Adam [14] until convergence with learning rate 0.001 and batch size 64. The resulting model achieves $3.04\%$ MSE on the test set, improving upon the $4.3\%$ MSE presented in the original work [15].
+
+# 5. Evaluation
+
+We evaluate our approach using the CVT dataset quantitatively, qualitatively, and on a variety of applications. We use Top-1 and Top-5 classification accuracy as the metric for evaluating quality of the Places attribute predictions. For the Transient attribute we use the percent of attribute predictions within a threshold (0.1 or 0.2) of the ground truth. In both cases, these are averaged across the full test set.
+
+# 5.1. Exploratory Dataset Analysis
+
+To better understand the relationship between location, time, and these attributes, we conducted a preliminary study without using overhead imagery. For the Places attribute, we use a k-NN classifier $(k = 30)$ to explore this relationship. As features we used time (linear) and latitude/longitude (degrees). We scaled the time using grid-search to optimize the accuracy when using all features. The resulting classifier obtained $19.08\%$ accuracy on the test set (see Table 1). If we remove the time feature, the accuracy drops a small amount to $17.68\%$ . If we remove both location features, the accuracy is $5.84\%$ , which is better than ignoring all features $(1.96\%)$ . From this, we can see that the Places attribute is highly dependent on location but less-so on time. We were surprised that the time feature by itself resulted in such high accuracy. We suspect that this is due to differences in the types of pictures taken at different times of year.
+
+For the Transient attributes, we used a similar setup. The only change was using a k-NN regression model. Table 1 shows that the difference between features is less dramatic than it was for the Places attributes. Instead, we focus on the impact of removing the location and time features on the individual attributes. When removing the location feature, we found, for example, that the accuracy for some attributes went down more than $6\%$ (e.g., busy, fog, gloomy) while for others it went up more than $2\%$ (e.g., dawn dusk, dark, night). For the time feature, we found that the accuracy went down for all attributes, with some going down significantly (e.g., winter, snow, lush) but others only marginally (e.g., rain, sunrisesunset, sentimental).
+
+These results highlight that the relationship between visual attributes, location, and time is complex and that our dataset enables us to translate intuitive notions into concrete experimental results.
+
+# 5.2.Quantitative Evaluation
+
+We trained several variants of our full model, $sat + time + loc$ . For each, we omit either one or two of the conditioning variables but retain all other aspects. We use the same training data, training approach, and micro-architectures. In total, we trained six baseline models: $loc$ ,
+
+
+Figure 6: Dynamic visual attribute maps for different Transient attributes. In each, yellow (blue) corresponds to a higher (lower) value for the corresponding attribute. Each attribute exhibits unique spatial and temporal patterns, which closely match the authors' personal travel experiences.
+
+time, sat, time + loc, sat + loc, and sat + time. We evaluate the accuracy of all methods on the test set.
+
+Table 1 shows the accuracy for all approaches on both visual attributes. We find that our method has the highest accuracy. However, the ranking of baseline models changes depending on the visual attribute. For example, the accuracy for the $sat + loc$ model is relatively worse for the Transient attribute than the Places attribute. This makes sense because the former is highly dependent on when an image was captured and the latter is more stable over time. We also note the significant improvement, for both attributes, obtained by including overhead imagery in the model. For example, the $time + loc$ model is significantly worse than our full model.
+
+# 5.3. Examples of Visual Attribute Maps
+
+Figure 6 shows several example attribute maps rendered from our model. To construct these we use the CVUSA dataset [38], which contains overhead imagery across the continental United States. Specifically, we use a subset of 488243 overhead images associated with the Flickr images in the dataset. For each overhead image, we compute visual attributes using our full model, $sat + time + loc$ . We specify the time of day as $4\mathrm{pm}$ , and vary the month.
+
+The trends we observe are in line with our expectations. For example, for the transient attribute $\text{lush}$ , which refers to vegetation growing, January has low values (blue) in the northernmost regions. However, the highest estimates (yellow) include regions like Florida and California. The lush-
+
+ness estimate progressively increases from January through April, achieving its highest value in July. Similarly, the warm attribute is highest in the southwest during both winter and spring, but reaches higher overall values in the summer months. Meanwhile, the gloomy attribute is highest during winter, with a bias towards the Pacific Northwest, and decreases during the summer.
+
+Figure 7 shows an example of how the estimated attribute varies over time. Our proposed model captures changes in the different attributes not only over months of the year but also over hours of the day. In Figure 7 (top, right) the cold attribute during a day in January is higher than a day in July, whereas in Figure 7 (bottom, right) the warm attribute is opposite. These results demonstrate that our model has captured temporal trends.
+
+# 6. Applications
+
+We show how our dynamic mapping approach can be used to support three image-understanding applications: localization, retrieval, and metadata verification. Together, they demonstrate that combining overhead imagery, location, and time is critical for correctly modeling the dynamic distribution of visual attributes.
+
+A key component of each application is computing the distance between the visual attributes of a ground-level image and the visual attributes predicted by our model. For the Places attribute we use the KL divergence and for the Transient attribute we use the $L_{2}$ distance. We also define Combine which is a weighted average of these two, with $\lambda$
+
+
+Latitude: 47.367
+Longitude: 8.55
+
+
+
+
+Figure 7: For a given location and corresponding overhead image, (top, right) shows the predictions from our model for the cold attribute. Similarly, (bottom, right) shows the warm attribute. Both examples show that our model has learned dynamic patterns of visual attributes.
+
+| Context | Transient | Places | Combine |
| Top-1% | Top-5% | Top-1% | Top-5% | Top-1% | Top-5% |
| sat | 4.80 | 15.30 | 18.80 | 42.00 | 21.60 | 42.60 |
| sat+loc | 5.50 | 15.40 | 23.00 | 45.40 | 23.90 | 45.00 |
| sat+time | 13.10 | 22.50 | 23.90 | 43.60 | 24.90 | 44.00 |
| sat+time+loc | 13.70 | 25.00 | 28.70 | 47.60 | 31.20 | 49.30 |
+
+as the weight for $\text{Places}$ and $1 - \lambda$ for Transient. The value of $\lambda$ is selected empirically for each application.
+
+# 6.1. Application: Image Localization
+
+We evaluated the accuracy of our models on the task of image geolocation, using a set of 1000 ground-level query images randomly sampled from the test set. To localize an image, we first extract its visual attributes. Then, we predict the visual attributes for all 1000 overhead images. As context, we use the location of the corresponding overhead image and the capture time of the ground-level image. We compute the distance between these predicted attributes and the attributes extracted from the image. We use $\lambda = 0.58$ when computing the Combine distance.
+
+Table 2 shows the results of this experiment. Each number represents the percentage of query images that were correctly localized within the Top- $k\%$ of candidate locations. For a given threshold, a higher percentage localized is better. This experiment shows that our full model outperforms the baselines and that using the Combine distance results in the highest accuracy. It also shows that the time attribute is essential when localizing using the Transient feature. In all cases, using only the imagery, which is the current state of the art, results in the lowest accuracy.
+
+Table 2: Localization accuracy of different models and distance measures.
+
+| Context | Transient | Places | Combine |
| Top-1% | Top-5% | Top-1% | Top-5% | Top-1% | Top-5% |
| time | 13.4 | 48.90 | 10.85 | 45.40 | 13.25 | 48.85 |
| loc+time | 31.50 | 81.50 | 27.20 | 74.90 | 36.20 | 82.10 |
| sat+time | 34.50 | 81.65 | 31.65 | 79.55 | 37.50 | 83.30 |
| sat+time+loc | 32.95 | 82.30 | 33.60 | 79.85 | 40.30 | 84.35 |
+
+Table 3: Time verification accuracy of various baselines and two thresholds. Our approach with the Combine distance outperforms all other methods.
+
+# 6.2. Application: Image Retrieval
+
+In this qualitative application, we show how we can use our model to retrieve a set of ground-level images that would be likely to be observed at a given location and time. We start with an overhead image, specify a time of interest, and predict the visual attributes. We use the Combine distance defined in the previous section to find the closest ground-level images. In Figure 8, we show examples of images retrieved using this process. We observe that the ground-level images contain the expected scene type and appear to be from the appropriate time of day. For example, the top left overhead image contains a bridge and the closest ground-level images are visually consistent at both input timestamps.
+
+# 6.3. Application: Metadata Verification
+
+We focus on verifying the time that an image, with known location, was captured. For a given ground-level image, we first extract its visual attributes and then predict the visual attributes for a range of different times. We compute the distance between the actual and predicted attributes resulting in a distance for each possible time. Figure 9 shows heatmaps of these distances for two test examples, using our full model and the Combine distance. These show that our model is able to identify a small set of likely times.
+
+We conducted a quantitative evaluation on a sample of 2000 images. For each image, we compute the distances as described above and then rank the times based on distance. Ideally, the correct time will have the lowest distance. In Table 3, we show the percent of images for which the correct time was within the Top-k% of possible times. The results show that the Combine distance outperforms both Places and Transient. While this approach does not fully solve the problem of detecting metadata falsification, it demonstrates that our model could be an important part of the solution.
+
+# 7. Conclusion
+
+We introduced a novel method for constructing dynamic visual attribute maps. In several large scale experiments, we demonstrated the practical utility of the model and highlighted the importance of including time, location, and an overhead image of the location as conditioning variables.
+
+
+Overhead Image
+
+
+5pm (UTC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2am (UTC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 8: For each overhead image, we predict the visual attributes using our full model and compute the average distance between them and those of the ground-level images in the test set. (left) The overhead images of two query locations. The closest images when using August at 5pm as input (middle) and when using August at 2am (right).
+
+
+
+
+Figure 9: Two examples highlighting temporal patterns learned by our model. For each example, we show the original image and the overhead image of its location. For every possible hour and month, we use our full model to predict the visual attributes. The heatmap shows the distance between the true and predicted visual attributes, with dark green (white) representing smaller (larger) distances.
+
+
+
+
+
+
+
+Such a model has many potential uses, including image-driven mapping, image localization, and metadata verification. In future work, we plan to focus on adapting this model to more directly support the application of metadata verification and to include additional visual attributes.
+
+Acknowledgements: We gratefully acknowledge the financial support of an NSF CAREER grant (IIS-1553116), the University of Kentucky Center for Computational Sciences, and a Google Faculty Research Award. Thanks to Armin Hadzic for helpful feedback on the manuscript.
+
+# References
+
+[1] M. Abadi et al. Tensorflow: A system for large-scale machine learning. In USENIX Symposium on Operating Systems Design and Implementation, 2016. 5
+[2] Zachary Bessinger, Chris Stauffer, and Nathan Jacobs. Who goes there? Approaches to mapping facial appearance diversity. In ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, 2016. 2
+[3] Aparna Bharati, Daniel Moreira, Joel Brogan, Patricia Hale, Kevin Bowyer, Patrick Flynn, Anderson Rocha, and Walter Scheirer. Beyond pixels: Image provenance analysis leveraging metadata. In IEEE Winter Conference on Applications of Computer Vision, 2019. 1
+[4] Tiziano Bianchi and Alessandro Piva. Image forgery localization via block-grained analysis of JPEG artifacts. IEEE Transactions on Information Forensics and Security, 7(3):1003-1017, 2012. 1
+[5] Xueqing Deng, Yi Zhu, and Shawn Newsam. What is it like down there? Generating dense ground-level views and image features from overhead imagery using conditional generative adversarial networks. In ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, 2018. 2
+[6] Hany Farid. Image forgery detection. IEEE Signal Processing Magazine, 26(2):16-25, 2009. 1
+[7] Timnit Gebru, Jonathan Krause, Yilun Wang, Duyun Chen, Jia Deng, Erez Lieberman Aiden, and Li Fei-Fei. Using deep learning and google street view to estimate the demographic makeup of neighborhoods across the united states. Proceedings of the National Academy of Sciences, 114(50):13108–13113, 2017. 2
+[8] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics, 2010. 4
+[9] Connor Greenwell, Scott Workman, and Nathan Jacobs. What goes where: Predicting object distributions from above. In IEEE International Geoscience and Remote Sensing Symposium, 2018. 2
+[10] Haiying Guan, Mark Kozak, Eric Robertson, Yooyoung Lee, Amy N Yates, Andrew Delgado, Daniel Zhou, Timothee Kheyrkhah, Jeff Smith, and Jonathan Fiscus. MFC datasets: Large-scale benchmark datasets for media forensic challenge evaluation. In IEEE Winter Conference on Applications of Computer Vision, 2019. 1
+[11] James Hays and Alexei A Efros. IM2GPS: Estimating geographic information from a single image. In IEEE Conference on Computer Vision and Pattern Recognition, 2008. 2
+[12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, 2016. 4
+[13] Nathan Jacobs, Nathaniel Roman, and Robert Pless. Consistent temporal variations in many outdoor scenes. In IEEE Conference on Computer Vision and Pattern Recognition, 2007. 2
+
+[14] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014. 5
+[15] Pierre-Yves Laffont, Zhile Ren, Xiaofeng Tao, Chao Qian, and James Hays. Transient attributes for high-level understanding and editing of outdoor scenes. ACM Transactions on Graphics, 33(4):149, 2014. 1, 2, 4, 5
+[16] Stefan Lee, Haipeng Zhang, and David J Crandall. Predicting geo-informative attributes in large-scale image collections using convolutional neural networks. In IEEE Winter Conference on Applications of Computer Vision, 2015. 2
+[17] Daniel Leung and Shawn Newsam. Proximate sensing: Inferring what-is-where from georeferenced photo collections. In IEEE Conference on Computer Vision and Pattern Recognition, 2010. 2
+[18] Tsung-Yi Lin, Serge Belongie, and James Hays. Cross-view image geolocation. In IEEE Conference on Computer Vision and Pattern Recognition, 2013. 2
+[19] Tsung-Yi Lin, Yin Cui, Serge Belongie, and James Hays. Learning deep representations for ground-to-aerial geolocation. In IEEE Conference on Computer Vision and Pattern Recognition, 2015. 2
+[20] Jiebo Luo, Jie Yu, Dhiraj Joshi, and Wei Hao. Event recognition: Viewing the world with a third eye. In ACM International Conference on Multimedia, 2008. 2
+[21] Kevin Matzen and Noah Snavely. Scene chronology. In European Conference on Computer Vision, 2014. 1
+[22] Radu P Mihail, Scott Workman, Zach Bessinger, and Nathan Jacobs. Sky segmentation in the wild: An empirical study. In IEEE Winter Conference on Applications of Computer Vision, 2016. 2
+[23] Krishna Regmi and Ali Borji. Cross-view image synthesis using conditional GANs. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[24] Tawfiq Salem, Connor Greenwell, Hunter Blanton, and Nathan Jacobs. Learning to map nearly anything. In IEEE International Geoscience and Remote Sensing Symposium, 2019. 2
+[25] Tawfiq Salem, Menghua Zhai, Scott Workman, and Nathan Jacobs. A multimodal approach to mapping soundscapes. In IEEE International Geoscience and Remote Sensing Symposium, 2018. 2
+[26] Chanuki Illushka Seresinhe, Tobias Preis, and Helen Susannah Moat. Quantifying the impact of scenic environments on health. Scientific reports, 5:16899, 2015. 1
+[27] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2015. 4
+[28] Shivangi Srivastava, John E Vargas-Muñoz, and Devis Tuia. Understanding urban landuse from the above and ground perspectives: A deep learning, multimodal solution. Remote Sensing of Environment, 228:129-143, 2019. 2
+[29] Kevin Tang, Manohar Paluri, Li Fei-Fei, Rob Fergus, and Lubomir Bourdev. Improving image classification with location context. In IEEE International Conference on Computer Vision, 2015. 2
+
+[30] Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. YFCC100M: The new data in multimedia research. Communications of the ACM, 59(2):64-73, 2016. 2
+[31] Yicong Tian, Chen Chen, and Mubarak Shah. Cross-view image matching for geo-localization in urban environments. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+[32] Jing Wang, Yu Cheng, and Rogerio Schmidt Feris. Walk and learn: Facial attribute representation learning from egocentric video and contextual data. In IEEE International Conference on Computer Vision, 2016. 2
+[33] Jingya Wang, Mohammed Korayem, Saul Blanco, and David J Crandall. Tracking natural events through social media and computer vision. In ACM International Conference on Multimedia, 2016. 2
+[34] Jingya Wang, Mohammed Korayem, and David Crandall. Observing the natural world with flickr. In ICCV Workshop on Computer Vision for Converging Perspectives, 2013. 2
+[35] Tobias Weyand, Ilya Kostrikov, and James Philbin. Planet-photo geolocation with convolutional neural networks. In European Conference on Computer Vision, 2016. 2
+[36] Scott Workman and Nathan Jacobs. On the location dependence of convolutional neural network features. In IEEE/ISPRS Workshop: EARTHVISION: Looking From Above: When Earth Observation Meets Vision, 2015. 2
+[37] Scott Workman and Nathan Jacobs. Dynamic traffic modeling from overhead imagery. In IEEE Conference on Computer Vision and Pattern Recognition, 2020. 2
+[38] Scott Workman, Richard Souvenir, and Nathan Jacobs. Wide-area image geolocation with aerial reference imagery. In IEEE International Conference on Computer Vision, 2015. 2, 6
+[39] Scott Workman, Richard Souvenir, and Nathan Jacobs. Understanding and mapping natural beauty. In IEEE International Conference on Computer Vision, 2017. 2
+[40] Scott Workman, Menghua Zhai, David Crandall, and Nathan Jacobs. A unified model for near and remote sensing. In IEEE International Conference on Computer Vision, 2017. 2
+[41] Ling Xie and Shawn Newsam. IM2MAP: Deriving maps from georeferenced community contributed photo collections. In ACM SIGMM International Workshop on Social Media, 2011. 2
+[42] Menghua Zhai, Zachary Bessinger, Scott Workman, and Nathan Jacobs. Predicting ground-level scene layout from aerial imagery. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+[43] Menghua Zhai, Tawfiq Salem, Connor Greenwell, Scott Workman, Robert Pless, and Nathan Jacobs. Learning geotemporal image features. In *British Machine Vision Conference*, 2018. 2
+[44] Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6):1452-1464, 2017. 1, 2, 4
\ No newline at end of file
diff --git a/learningadynamicmapofvisualappearance/images.zip b/learningadynamicmapofvisualappearance/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7736dc4e503dbfafb7c994e1cad32867069c35d2
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0103a6846407e2ecabd78111db0c55f43a4e3e7f2a2261139dfa7a7eaa0487a3
+size 732415
diff --git a/learningadynamicmapofvisualappearance/layout.json b/learningadynamicmapofvisualappearance/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8ca34aabd78008a29d68ff50b21c3452e0448022
--- /dev/null
+++ b/learningadynamicmapofvisualappearance/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fb6a5f597feb96341feda60b16676a7c731d5362c09a32e4522559d02a2d921
+size 358699
diff --git a/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_content_list.json b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..22c2efd9bf1b0d103e30a0fc26522843b7cea025
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:22f35c6ce7477fa123bf9d38e7a8042d068ff4b8cdcd3b3aaf6d2f69ff2f8adc
+size 71527
diff --git a/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_model.json b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9c4dc268cab4e11e5ad7a499700d521b1e50ac0d
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d896a32cc3a09770575f8f77c7286bce01a9115201b76f7f92016008e1b81510
+size 85180
diff --git a/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_origin.pdf b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ab7fdd353dae4678ba58772440b23095443c82e5
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/f6fb3b14-9e14-4e73-94cd-c7af0937259b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4eccc18fe42e5829fcfc6fe8a1381de3fd7307a8fb0ac584dea700081aef4264
+size 3819277
diff --git a/learninganeural3dtexturespacefrom2dexemplars/full.md b/learninganeural3dtexturespacefrom2dexemplars/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c74409bdb297be8e8ff5dda4bec3ec5cc4694c27
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/full.md
@@ -0,0 +1,330 @@
+# Learning a Neural 3D Texture Space from 2D Exemplars
+
+Philipp Henzler1
+
+p.henzler@cs.ucl.ac.uk
+
+Niloy J. Mitra1,2
+
+n.mitra@cs.ucl.ac.uk
+
+Tobias Ritschel
+
+t.ritschel@ucl.ac.uk
+
+1University College London
+
+2Adobe Research
+
+# Abstract
+
+We propose a generative model of 2D and 3D natural textures with diversity, visual fidelity and at high computational efficiency. This is enabled by a family of methods that extend ideas from classic stochastic procedural texturing (Perlin noise) to learned, deep, non-linearities. The key idea is a hard-coded, tunable and differentiable step that feeds multiple transformed random 2D or 3D fields into an MLP that can be sampled over infinite domains. Our model encodes all exemplars from a diverse set of textures without a need to be re-trained for each exemplar. Applications include texture interpolation, and learning 3D textures from 2D exemplars. Project website: https://geometry.cs.ucl.ac.uk/projects/2020/neuraltexture.
+
+# 1. Introduction
+
+Textures are stochastic variations of attributes over 2D or 3D space with applications in both image understanding and synthesis. This paper suggests a generative model of natural textures. Previous texture models either capture a single exemplar (e.g., wood) alone or address non-stochastic (stationary) variation of appearance across space: Which location on a chair should have a wood color? Which should be cloth? Which metal? Our work combines these two complementary views.
+
+Requirements We design the family of methods with several requirements in mind: completeness, generativeness, compactness, interpolation, infinite domains, diversity, infinite zoom, and high speed.
+
+A space of textures is complete, if every natural texture has a compact code $\mathbf{z}$ in that embedding. To be generative, every texture code should map to a useful texture. This is important for intuitive design where a user manipulates the texture code and expects the outcome to be a texture. Compactness is achieved if codes are low-dimensional. We also demand the method to provide interpolation: texture
+
+
+Figure 1. Our approach allows casually-captured 2D textures (blue) to be mapped to latent texture codes and support interpolation (blue-to-red), projection, or synthesis of volumetric textures.
+
+generated at coordinates between $\mathbf{z}_1$ and $\mathbf{z}_2$ should also be valid. This is important for design or when storing texture codes into a (low-resolution) 2D image, 3D volume or at mesh vertices with the desire to interpolate. The first four points are typical for generative modelling; achieving them jointly while meeting more texture-specific requirements (stochasticity, efficiency) is our key contribution.
+
+First, we want to support infinite domains: Holding the texture code e fixed, we want to be able to query this texture so that a patch around any position $\mathbf{x}$ has the statistics of the exemplar. This is important for querying textures in graphics applications for extended virtual worlds, i.e., grass on a football field where it extends the size of the texture.
+
+Second, for visual fidelity, the statistics under which textures are similar to the exemplar. The Gram matrix of VGG activations is one established metric for this similarity [5].
+
+Third, infinite zoom means each texture should have variations on a wide range of scales and not be limited to any fixed resolution that can be held in memory. This is required to zoom into details of geometry and appreciate the fine variation such as wood grains, etc. In practice, we are limited by
+
+the frequency content of the exemplars we train on, but the method should not impose any limitations across scales.
+
+Fourth and finally, our aim is computational efficiency: the texture needs to be queryable without requiring prohibitive amounts of memory or time, in any dimension. Ideally, it would be constant in both and parallel. This rules out simple convolutional neural networks, that do not scale favorable in memory consumption to 3D.
+
+# 2. Previous Work
+
+Capturing the variations of nature using stochastic on many scales has a long history [14]. Making noise useful for graphics and vision is due to Perlin's 1995 work [17]. Here, textures are generated by computing noise at different frequencies and mixing it with linear weights. A key benefit is that this noise can be evaluated in 2D as well as in 3D making it popular for many graphics applications.
+
+Computer vision typically had looked into generating textures from exemplars, such as by non-parametric sampling [4], vector quantization [25], optimization [12] or nearest-neighbor field synthesis (PatchMatch [2]) with applications in in-painting and also (3D) graphics. Typically, achieving spatial and temporal coherence as well as scalability to fine spatial details remains a challenge. Such classic methods cater to the requirements of human texture perception as stated by Julesz [9]: a texture is an image full of features that in some representation have the same statistics.
+
+The next level of quality was achieved when representations became learned, such as the internal activations of the VGG network [22]. Neural style transfer [5] looked into the statistics of those features, in particular, their Gram matrices. By optimizing over pixel values, these approaches could produce images with the desired texture properties. If these properties are conditioned on existing image structures, the process is referred to as style transfer. VGG was also used for optimization-based multi-scale texture synthesis [20]. Such methods require optimizations for each individual exemplar.
+
+Ulyanov et al. [23] and Johnson et al. [8] have proposed networks that directly produce the texture without optimization. While now a network generated the texture, it was still limited to one exemplar, and no diversity was demonstrated. However, noise at different resolutions [17] is input to these methods, also an inspiration to our work. Follow up work [24] has addressed exactly this difficulty by introducing an explicit diversity term i.e., asking all results in a batch to be different. Unfortunately, this frequently introduces mid-frequency oscillations of brightness that appear admissible to VGG instead of producing true diversity. In our work, we achieve diversity, by restricting the networks input to stochastic values only, i.e., diversity-by-construction
+
+A certain confusion can be noted around the term "texture". In the human vision [9] and computer vision literature [4, 6], it exclusively refers to stochastic variation. In
+
+computer graphics, e. g., OpenGL, "texture" can model both stochastic and non-stochastic variation of color. For example, Visual Object Networks [29] generate a voxel representation of shape and diffuse albedo and refer to the localized color appearance, e. g., wheels of a car are dark, the rim are silver, etc., as "texture". Similar, Oechsle et al. [16] and Saito et al. [19] use an implicit function to model this variation of appearance in details beyond voxel resolution. Our comparison will show, how methods tackling space of non-stochastic texture variation [16, 29], unfortunately are not suitable to model stochastic appearance. Our work is progress towards learning spaces of stochastic and non-stochastic textures.
+
+Some work has used adversarial training to capture the essence of textures [21, 3], including the non-stationary case [28] or even inside a single image [21]. In particular StyleGAN [10] generates images with details by transforming noise in adversarial training. We avoid the challenges of adversarial training but train a NN to match VGG statistics.
+
+Aittala et al. [1] have extended Gatsy et al.'s 2015 [5] approach to not only generate color, but also ensembles of 2D BRDF model parameter maps from single 2D exemplars. Our approach is compatible with this approach, for example to generate 3D bump, specular, etc. maps, but from 2D input.
+
+At any rate, none of the texture works in graphics or vision [17, 5, 23, 4, 2, 26, 27] generate a space of textures, such as we suggest here, but all work on a single texture while the ones that work on a space of exemplars [29, 16] do not create stochastic textures. Our work closes this gap, by creating a space of stochastic textures.
+
+The graphics community, however, has looked into generating spaces of textures [15], which we here revisit from a deep learning perspective. Their method deforms all pairs of exemplars to each other and constructs a graph with edges that are valid for interpolation when there is evidence that the warping succeeded. To blend between them, histogram adjustments are made. Consequently, interpolation between exemplars is not a straight path from one another, but a traversal along valid observations. Similarly, our method could also construct valid paths in the latent space interpolation.
+
+Finally, all these methods require to learn the texture in the same space it will be used, while our approach can operate in any dimension and across dimensions, including the important case of generating procedural 3D solid textures from 2D observations [11] or slices [18] only.
+
+Summary The state of the art is depicted in Tbl. 1. Rows list different methods while columns address different aspects of each method. A method is "Diverse" if more than a single exemplar can be produced. MLP [16] is not diverse as the absolute position allows overfitting. We denote a method to have "Detail" if it can produce features on all scales. CNN does not have details, as, in particular in 3D, it needs to represent the entire domain in memory, while MLPs and ours are
+
+Table 1. Comparison of texture synthesis methods. Please see text for refined definition of the rows and columns.
+
+| Method | | Diverse | Details | Speed | 3D | Quality | Space | 2D-to-3D |
| Perlin | perlin | ✓ | ✓ | ✓ | ✓ | × | × | × |
| Perlin + transform | perlinT | ✓ | ✓ | ✓ | ✓ | × | × | × |
| CNN | cnn | × | × | × | × | ✓ | × | × |
| CNN + diversity | cnnD | ✓ | × | × | × | × | × | × |
| MLP | mlp | × | × | ✓ | ✓ | × | × | ✓ |
| Ours + position | oursP | × | ✓ | ✓ | ✓ | × | ✓ | ✓ |
| Ours - transform | oursNoT | × | × | ✓ | ✓ | ✓ | ✓ | ✓ |
| Ours | ours | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
+
+point operations. "Speed" refers to computational efficiency. Due to high bandwidth and lacking data parallelism, a CNN, in particular in 3D, is less efficient than ours. This prevents application to "3D". "Quality" refers to visual fidelity, a subjective property. CNN, MLP and ours achieve this, but Perlin is too simple a model. CNN with diversity [24] have decent quality, but a step back from [23]. Our approach creates a "Space" of a class of textures, while all others only work with single exemplars. Finally, our approach allows to learn from a single 2D observation i.e., 2D-to-3D. MLP [16] also learn from 2D images, but have multiple images of one exemplar, and pixels are labeled with depth.
+
+# 3. Overview
+
+Our approach has two steps. The first embeds the exemplar into a latent space using an encoder. The second provides sampling at any position by reading noise fields at that position and combining them using a learned mapping to match the exemplar statistics. We now detail both steps.
+
+
+Figure 2. Overview of our approach as explained in Sec. 3.
+
+Encoder The encoder $g$ maps a 2D texture exemplar image $\mathbf{y}$ to a latent texture code $\mathbf{z} = g(\mathbf{y})$ . We use a convolutional neural network to encode the high number of exemplar pixels into a compact latent texture code $\mathbf{z}$ .
+
+Sampler Sampling $s(\mathbf{x}|\mathbf{z})$ of a texture with code $\mathbf{z}$ at individual 2D or 3D positions $\mathbf{x}$ has two steps: a translator and a decoder, which are both described next.
+
+Decoder Our key idea is to prevent the decoder $f(\mathbf{n}|\mathbf{e})$ to access the position $\mathbf{x}$ and to use a vector of noise values $\mathbf{n}$ instead. Each $n_i = \mathrm{noise}\left(\mathsf{T}_i2^{i-1}\mathbf{x}|\xi_i\right)$ is read at different linear transformations $\mathsf{T}_i2^{i-1}\mathbf{x}$ of that position $\mathbf{x}$ from random fields with different seeds $\xi_i$ . The random field $\mathrm{noise}(\mathbf{x}|\xi_i)$ is implemented as an infinite, single-channel 2D or 3D function that has the same random value for all continuous coordinates $\mathbf{x}$ in each integer lattice cell for one seed $\xi_i$ . The factors of $2^{i-1}$ initialize the decoder to behave similar to Perlins's octaves for identity $\mathsf{T}_i$ . Applying $\mathsf{T}_i2^{i-1}$ to $\mathbf{x}$ is similar to Spatial Transformer Networks [7]. (Fig. 3).
+
+
+Figure 3. Noise field for different octaves and transformations T.
+
+These noise values are combined with the extended texture code e in a learned way. It is the task of the translator, explained next, to control, given the exemplar, how noise is transformed and to generate an extended texture code.
+
+Translator The translator $h(\mathbf{z}) = \{\mathbf{e},\mathsf{T}\}$ maps the texture code $\mathbf{z}$ to a tuple of parameters required by the decoder: the vector of transformation matrices $\mathsf{T}$ and an extended texture code vector e. The matrices $\mathsf{T}$ are used to transform
+
+
+Figure 4. Translator.
+
+the coordinates before reading the noise as explained before. The extended texture parameter code $\mathbf{e}$ is less compact than the texture code $\mathbf{z}$ , but allows the sampler to execute more effectively, i.e., do not repeat computations required for different $\mathbf{x}$ as they are redundant for the same $z$ .
+
+See Fig. 4 where for example two $2 \times 2$ transformation matrices with 8 DOF are parameterized by three parameters.
+
+Training For training, the encoder is fed with a random $128 \times 128$ patch $P_{\mathrm{e}}$ of a random exemplar $\mathbf{y}$ , followed by the sampler evaluating a regular grid of $128 \times 128$ points $\mathbf{x}$ in random 2D slices of the target domain to produce a "slice" image $P_{\mathrm{s}}$ (Fig. 5). The seed $\xi$ is held constant per train step, as one lattice cell will map to multiple pixels, and the decoder $f$ relies on these being consistent. During
+
+inference changing the seed $\xi$ and keeping the texture code e will yield diverse textures.
+
+
+Figure 5. Sliced loss for learning 3D procedural textures from 2D exemplars: Our method, as it is non-convolutional, can sample the 3D texture (a) at arbitrary 3D positions. This enables to also sample arbitrary 2D slices (b). For learning, this allows to simply slice 3D space along the three major axes (red, yellow, blue) and ask each slice to have the same VGG statistics as the exemplar (c).
+
+The loss is the $\mathcal{L}_2$ distance of Gram matrix of VGG feature activations [5, 8, 24, 23, 1] of the patches $P_{\mathrm{e}}$ and $P_{\mathrm{s}}$ .
+
+If the source and target domain are the same (synthesizing 2D textures from 2D exemplars) the slicing operation is the identity. However, it also allows for the important condition in which the target domain has more dimensions than the source domain, such as learning 3D from 2D exemplars.
+
+Spaces-of Our method can be used to either fit a single exemplar or an entire space of textures. In the single mode, we directly optimize for the trainable parameters $\theta = \{\theta_{\mathrm{d}}\}$ of the decoder. When learning the entire space of textures, the full cascade of encoder $g$ , translator $h$ and sampler $s$ parameters are trained, i.e., $\theta = \{\theta_{\mathrm{g}},\theta_{\mathrm{h}},\theta_{\mathrm{d}}\}$ jointly.
+
+# 4. Learning stochastic space coloring
+
+Here we will introduce different implementations of samplers $s \colon \mathbb{R}^n \to \mathbb{R}^3$ which "color" 2D or 3D space at position $\mathbf{x}$ . We discuss pros and cons with respect to the requirements from the introduction, ultimately leading to our approach.
+
+Perlin noise is a simple and effective method to generate natural textures in 2D or 3D [17], defined as
+
+$$
+s (\mathbf {x} | \mathbf {z}) = \sum_ {i = 1} ^ {m} \operatorname {n o i s e} \left(2 ^ {i - 1} \mathbf {x}, \xi_ {i}\right) \otimes w _ {i}, \tag {1}
+$$
+
+where $h(\mathbf{z}) = \{w_1, w_2, \ldots\}$ are the RGB weights for $m$ different noise functions $\mathrm{noise}_i$ which return bilinearly-sampled RGB values from an integer grid. $\otimes$ is channel-wise multiplication. Here, $\mathbf{e}$ is a list of all linear per-layer RGB weights e.g., an $8 \times 3$ vector for the $m = 8$ octaves we use. This is a simple latent code, but we will see increasingly complex ones later. Also our encoder $g$ is designed such that it can cater to all decoders, even Perlin noise i.e., we can also create a space of textures with a Perlin noise back-end.
+
+Coordinates $\mathbf{x}$ are multiplied by factors of two (octaves), so with increasing $i$ , increasingly smooth noises are combined. This is motivated well in the spectra of natural signals [14, 17], but also limiting. Perlin's linear scaling allows the noise to have different colors, yet no linear operation can reshape a distribution to match a target. Our work seeks to overcome these two limitations, but tries to retain the desirable properties of Perlin noise: simplicity and computational efficiency as well as generalization to 3D.
+
+Transformed Perlin relaxes the scaling by powers of two
+
+$$
+s (\mathbf {x} | \mathbf {z}) = \sum_ {i = 1} ^ {m} \operatorname {n o i s e} \left(\mathrm {T} _ {i} 2 ^ {i - 1} \mathbf {x}, \xi_ {i}\right) \otimes w _ {i} \tag {2}
+$$
+
+by allowing each noise $i$ to be independently scaled by its own transformation matrix $\mathsf{T}_i$ since $h(\mathbf{z}) = \{w_1, \mathsf{T}_1, w_2, \mathsf{T}_2, \ldots\}$ . Please note, that the choice of noise frequency is now achieved by scaling the coordinates reading the noise. This allows to make use of anisotropic scaling for elongated structures, different orientations or multiple random inputs at the same scale.
+
+CNN utilizes the same encoder $g$ as our approach to generate a texture code that is fed in combination with noise to a convolutional decoder similar to [24].
+
+$$
+s (\mathbf {x} | \mathbf {z}) = \operatorname {c n n} (\mathbf {x} | \mathbf {e}, \text {n o i s e} (\xi)) \tag {3}
+$$
+
+The CNN is conditioned on e without additional translation. Their visual quality is stunning, CNNs are powerful and the loss is able to capture perceptually important texture features, hence CNNs are a target to chase for us in 2D in terms of quality. However, there are two main limitations of this approach we seek to lift: efficiency and diversity.
+
+CNNs do not scale well to 3D in high resolutions. To compute intermediate features at $\mathbf{x}$ , they need to have access to neighbors. While this is effective and output-sensitive in 2D, it is not in 3D: we need results for 2D surfaces embedded in 3D, and do so in spatial high resolution (say $1024 \times 1024$ ), but this requires CNNs to compute a full 3D volume with the same order of pixels. While in 2D partial outputs can be achieved with sliding windows, it is less clear how to slide a window in 3D, such that it covers all points required to cover all 3D points that are part of the visible surface.
+
+The second issue is diversity: CNNs are great for producing a re-synthesis of the input exemplar, but it has not been demonstrated that changing the seed $\xi$ will lead to variation in the output in most classic works [23, 8] and in classic style transfer [5] diversity is eventually introduced due to the randomness in SGD. Recent work by Ulyanov and colleagues [24] explicitly incentivizes diversity in the loss. The main idea is to increase the pixel variance inside all exemplars
+
+produced in one batch. Regrettably, this often is achieved by merely shifting the same one exemplar slightly spatially or introducing random brightness fluctuations.
+
+MLP maps a 3D coordinate to appearance:
+
+$$
+s (\mathbf {x} | \mathbf {z}) = \operatorname {m l p} (\mathbf {x} | \mathbf {e}) \tag {4}
+$$
+
+where $h(\mathbf{z}) = \mathbf{e}$ . Texture-fields [16] have used this approach to produce what they call "texture", detailed and high-quality appearance decoration of 3D surfaces, but what was probably not intended is to produce diversity or any stochastic results. At least, there is no parameter that introduces any randomness, so all results are identical. We took inspiration in their work, as it makes use of 3D point operations, that do not require accessing any neighbors and no intermediate storage for features in any dimensions, including 3D. It hence reduces bandwidth compared to CNN, is perfectly data-parallel and scalable. The only aspect missing to make it our colorization operator, required to create a space and evolve from 2D exemplars to 3D textures, is stochasticity.
+
+Ours combines the noise from transformed Perlin for stochasticity, the losses used in style and texture synthesis CNNs for quality as well as the point operations in MLPs for efficiency as follows:
+
+$$
+\begin{array}{l} s (\mathbf {x} | \mathbf {z}) = f (\text {n o i s e} (\mathsf {T} _ {1} 2 ^ {0} \quad \mathbf {x}, \xi_ {1}), \ldots , \\ \operatorname {n o i s e} \left(\mathrm {T} _ {m} 2 ^ {m - 1} \mathbf {x}, \xi_ {m}\right) | \mathbf {e}) \tag {5} \\ \end{array}
+$$
+
+Different from MLPs that take the coordinate $\mathbf{x}$ as input, position itself is hidden. Instead of position, we take multiple copies of spatially smooth noise noise(x) as input, with explicit control of how the noise is aligned in space expressed by the transformations T. Hence, the MLP requires to map the entire distribution of noise values such that it suits the loss, resulting in build-in diversity. We chose number of octaves $m$ to be 8, i.e., the transformation matrices $\mathrm{T}_1,\ldots ,\mathrm{T}_m$ require $8\times 4 = 32$ values in 2D. The texture code size e is 64 and the compact code z is 8. The decoder $f$ consists of four stacked linear layers, with 128 units each followed by ReLUs. The last layer is 3-valued RGB.
+
+Non-stochastic ablation seeks to investigate what happens if we do not limit our approach to random variables, but also provide access to deterministic information $\mathbf{x}$ :
+
+$$
+\begin{array}{l} s (\mathbf {x} | \mathbf {z}) = f (\mathbf {x}, \text {n o i s e} (2 ^ {0} \quad \mathbf {x}, \xi_ {1}), \dots , \\ \operatorname {n o i s e} \left(2 ^ {m - 1} \mathbf {x}, \xi_ {m}\right) | \mathbf {e}) \tag {6} \\ \end{array}
+$$
+
+is the same as MLP, but with access to noise. We will see that this effectively removes diversity.
+
+Non-transformed ablation evaluates, if our method were to read only from multi-scale noise without control over how it is transformed. Its definition
+
+$$
+\begin{array}{l} s (\mathbf {x} | \mathbf {z}) = f (\text {n o i s e} (2 ^ {0} \quad \mathbf {x}, \xi_ {1}), \dots , \\ \operatorname {n o i s e} \left(2 ^ {m - 1} \mathbf {x}, \xi_ {m}\right) | \mathbf {e}) \tag {7} \\ \end{array}
+$$
+
+# 5. Evaluation
+
+Our evaluation covers qualitative (Sec. 5.2) and quantitative (Sec. 5.3) aspects as well as a user study (Sec. 5.4).
+
+# 5.1. Protocol
+
+We suggest a data set that for which we explore the relation of different methods, according to different metrics to quantify texture similarity and diversity.
+
+Data set Our data set contains four classes (WOOD, MARBLE, GRASS and RUST) of 2D textures, acquired from internet image sources. Each class contains 100 images.
+
+Methods We compare eight different methods that are competitors, ablations and ours.
+
+As five competitors we study variants of Perlin noise, CNNs and MLPs. perlin implements Perlin noise (Eq. 1, [17]) and perlinT our variant extending it by a linear transformation (Eq. 2). Next, cnn is a classic TextureNet [23] and cnnD the extension to incentivise diversity ([24], Eq. 3). mlp uses an MLP following Eq. 4.
+
+We study three ablations. First, we compare to oursP that is our method, but with the absolute position as input and no transform. Second, oursNoT omits the absolute position as input and transformation but still uses Perlin's octaves (Eq. 7). The final method is ours method (Eq. 5).
+
+Metrics We evaluate methods in respect to three metrics: similarity and diversity and a joint measure, success.
+
+Similarity is high, if the result produced has the same statistics as the exemplar in terms of L2 differences of VGG Gram matrices. This is identical to the loss used. Similarity is measured on a single exemplar.
+
+Diversity is not part of the loss, but can be measured on a set of exemplars produced by a method. We measure diversity by looking at the VGG differences between all pairs of results in a set produced for a different random seed. Note, that this does not utilize any reference. Diversity is maximized by generating random VGG responses, yet without similarity.
+
+Success of the entire method is measured as the product of diversity and the maximum style error minus the style error. We apply this metric, as it combines similarity and diversity that are conflicting goals we jointly want to maximize.
+
+
+Figure 6. Quantitative evaluation. Each plot shows the histogram of a quantity (from top to bottom: success, style error and diversity) for different data sets (from left to right: all space together, WOOD, MARBLE, GRASS). For a discussion, see the last paragraph in Sec. 5.2.
+
+
+
+
+
+
+
+Memory and speed are measured at a resolution of 128 pixels/voxels on an Nvidia Titan Xp.
+
+# 5.2. Quantitative results
+
+Table 2. Efficiency in terms of compute time and memory usage in 2D and 3D (columns) for different methods (rows).
+
+| Method | Time | Memory |
| 2D | 3D | 2D | 3D |
| perlin • | 0.18 ms | 0.18 ms | 65 k | 16 M |
| perlinT • | 0.25 ms | 0.25 ms | 65 k | 16 M |
| cnn • | 1.45 ms | 551.59 ms | 8,000 k | 646 M |
| cnnD • | 1.45 ms | 551.59 ms | 8,000 k | 646 M |
| mlp • | 1.43 ms | 1.43 ms | 65 k | 16 M |
| oursP • | 1.44 ms | 1.44 ms | 65 k | 16 M |
| oursNoT • | 1.24 ms | 1.24 ms | 65 k | 16 M |
| ours • | 1.55 ms | 1.50 ms | 65 k | 16 M |
+
+Efficiency We first look at computational efficiency in Tbl. 2. We see that our method shares the speed and memory efficiency with Perlin noise and MLPs / Texture Fields [16]. Using a CNN [23, 24] to generate 3D textures as volumes is not practical in terms of memory, even at a modest resolution. Ours scales linear with pixel resolution as an MLP is a point-estimate in any dimension that does not require any memory other than its output. A CNN has to store the internal activations of all layers in memory for information exchange between neighbors.
+
+
+
+Table 3. Similarity and diversity for methods on different textures.
+
+| Method | ALL | WOOD | GRASS | MARBLE |
| Sim | Div | Suc | Sim | Div | Suc | Sim | Div | Suc | Sim | Div | Suc |
| perlin | 20.6 | 48.0 | 7.0 | 23.8 | 37.9 | 4.9 | 24.6 | 72.8 | 18.1 | 13.3 | 31.8 | 7.84 |
| perlinT | 19.6 | 48.2 | 7.2 | 18.4 | 39.6 | 5.02 | 25.9 | 65.6 | 13.8 | 14.2 | 38.4 | 8.03 |
| cnn | 5.4 | 0.5 | 7.5 | 13.4 | 0.5 | 0.07 | 1.9 | 0.5 | 0.14 | 1.1 | 0.3 | 0.08 |
| cnnD | 3.9 | 48.2 | 7.75 | 3.9 | 35.2 | 5.19 | 4.8 | 59.2 | 20.9 | 3.6 | 48.8 | 8.5 |
| mlp | 14.1 | 0.0 | 7.98 | 15.7 | 0.0 | 0.0 | 16.7 | 0.0 | 0.0 | 9.6 | 0.0 | 0.0 |
| oursP | 5.4 | 93.4 | 8.23 | 9.7 | 67.4 | 5.33 | 4.8 | 126 | 21.5 | 1.8 | 84.5 | 9.0 |
| oursNoT | 8.4 | 94.5 | 8.54 | 18.3 | 74.7 | 5.40 | 5.1 | 120 | 21.7 | 1.9 | 87.0 | 9.3 |
| ours | 12.1 | 99.7 | 8.82 | 13.3 | 72.5 | 5.48 | 13.6 | 127 | 22.1 | 9.4 | 98.2 | 9.6 |
| Similarity | All | Wood | Grass | Marble |
| Success | 0 | 0 | 0 | 0 |
+
+Fidelity Fig. 6 and Tbl. 3 summarize similarity, diversity and success of all methods in numbers. ours method (black) comes best in diversity and success on average across all sets (first column in Tbl. 3 and top first plot in Fig. 6). cnn (yellow) and cnnd (green) have better similarity than any of our methods. However, no other method combines similarity with diversity as well as ours. This is visible from the overall leading performance in the final measure, success. This is a substantial achievement, as maximizing for only one goal is trivial: an identity method has zero similarity error while a random method has infinite diversity.
+
+When looking at the similarity, we see that both a cnn and its diverse variant cnnD can perform similar. Perlin
+
+
+Figure 7. Different methods and the exemplar (columns), as defined in Sec. 5.2, applied to different exemplars (rows). Each row shows, arranged vertically, two re-synthesises with different seeds. Please see the text for discussion.
+
+noise produces the largest error. In particular, perlinT has a large error, indicating it is not sufficient to merely add a transform. Similar, mlp alone cannot solve the task, as it has no access to noise and need to fit exactly, which is doable for single exemplars, but impossible for a space. oursNoT has error similar to ours, but less diversity.
+
+When looking at diversity, it is clear that both cnn and mlp have no diversity as they either do not have the right loss to incentivize it or have no input to generate it. perlin and perlinT both create some level of diversity, which is not surprising as they are simple remappings of random numbers. However, they do not manage to span the full VGG space, which only ours and its ablations can do.
+
+Generating 3D textures from the exemplar in Fig. 7, we find that our diversity and similarity are 44.5 and 1.48, which compares favorable to Perlin 3D Noise at 14.9 and 7.11.
+
+# 5.3. Qualitative results
+
+Visual examples from the quantitative evaluation on a single exemplar for different methods can be seen in Fig. 7. We see that some methods have diversity when the seed is changed (rows one vs. two and three vs. four) and some do not. Diversity is clear for Perlin and its variant, CNNs with a diversity term and our approach. No diversity is found for MLPs and CNNs. We also note, that CNNs with diversity produce typically shifted copies of the same exemplar, so their diversity is over-estimated by the metric.
+
+A meaningful latent texture code space should also allow for interpolation as seen in Fig. 8, where we took pairs of texture codes (left and right-most exemplar) and interpolated rows in-between. We see, that different paths produce pla
+
+
+Figure 8. Interpolation of one exemplar (left) into another one (right) in latent space (first three rows) and linear (last row).
+
+sible blends, with details appearing and disappearing, which is not the case for a linear blend (last row).
+
+Our method does not work on an explicit pixel grid, which allows to zoom into arbitrary fine details as show in Fig. 9, comparing favorable to cubic upsampling. This is particularly useful in 3D, where storing a complete volume to span multiple levels of detail requires prohibitive amounts of memory while ours is output-sensitive.
+
+
+Figure 9. Zoom.
+
+Fig. 10 shows a stripe re-synthesized from a single exemplar. We note that the pattern captures the statistics, but does not repeat.
+
+Fig. 12 documents the ability to reproduce the entire space. We mapped exemplars unobserved at training time to texture codes, from which we reconstruct them, in 2D. We
+
+
+Figure 10. Stripes of re-synthesized textures from exemplars on the left. See the supplemental for more examples.
+
+
+Figure 11. 3D texturing of different 3D shapes. Insets (right) compare ours to 2D texturing. See supplemental for 3D spin.
+
+
+
+
+
+
+
+
+
+
+Figure 12. Our reconstruction of WOOD, GRASS, RUST, and MARBLE. The first row shows different input exemplars. The second and third row show our reconstruction with different seeds.
+
+find that our approach reproduces the exemplars faithfully, albeit totally different on the pixel level.
+
+Our system can construct textures and spaces of textures in 3D from 2D exemplars alone. This is shown in Fig. 11. We first notice, that the textures have been transferred to 3D faithfully, inheriting all the benefits of procedural textures in image synthesis. We can now take any shape, without a texture parametrization and by simply running the NN at each pixel's 3D coordinate produce a color. We compare to a 2D approach by loading the objects in Blender and applying its state-of-the-art UV mapping approach [13]. Inevitably, a sphere will have discontinuities and poles that can not be resolved in 2D, that are no issue to our 3D approach while both take the same 2D as input.
+
+# 5.4. User study
+
+Presenting $M = 144$ pairs of images produced by either perlinT, cnnD, mlp,oursP,oursNoT and ours for one exemplar texture to $N = 28$ subjects and asking which result "they prefer" in a two-alternative forced choice, we find that $16.7\%$ prefer the ground truth, $4.9\%$ perlin, $7.7\%$ perlinT, $14.3\%$ cnn, $8.8\%$ cnnD, $9.4\%$ mlp, $10.8\%$ oursNoT, $12.9\%$ oursP and $14.5\%$ ours (statistical significance; $p < .1$ , binomial test). Given ground truth and cnn are not diverse, out of all methods that synthesize infinite textures our results are preferred over all other.
+
+# 6. Conclusion
+
+We have proposed a generative model of natural 3D textures. It is trained on 2D exemplars only, and provides interpolation, synthesis and reconstruction in 3D. The key inspiration is Perlin Noise – now more than 30 years old – revisited with NNs to match complex color relations in 3D according to the statistics of VGG activations in 2D. The approach has the best combination of similarity and diversity compared to a range of published alternatives, that are less computationally efficient.
+
+Reshaping noise to match VGG activations using MLPs can be a scalable solution to other problems in even higher dimensions, such as time, that are difficult for CNNs.
+
+Acknowledgements This work was supported by the ERC Starting Grant SmartGeometry, a GPU donation by NVIDIA Corporation and a Google AR/VR Research Award.
+
+# References
+
+[1] Miika Aittala, Timo Aila, and Jaakko Lehtinen. Reflectance modeling by neural texture synthesis. ACM Trans. Graph. (Proc. SIGGRAPH), 35(4):65, 2016.
+[2] Connelly Barnes, Eli Shechtman, Adam Finkelstein, and Dan B Goldman. Patchmatch: A randomized correspondence algorithm for structural image editing. ACM Trans. Graph. (Proc. SIGGRAPH), 28(3):24, 2009.
+[3] Urs Bergmann, Nikolay Jetchev, and Roland Vollgraf. Learning texture manifolds with the periodic spatial gan. In JMLR, pages 469-477, 2017.
+[4] Alexei A Efros and Thomas K Leung. Texture synthesis by non-parametric sampling. In ICCV, 1999.
+[5] Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In NIPS, 2015.
+[6] Aaron Hertzmann, Charles E Jacobs, Nuria Oliver, Brian Curless, and David H Salesin. Image analogies. In Proc. SIGGRAPH, 2001.
+[7] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, pages 2017-2025, 2015.
+[8] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In ECCV, 2016.
+[9] Bela Julesz. Texture and visual perception. Scientific American, 212(2), 1965.
+[10] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, pages 4401-4410, 2019.
+[11] Johannes Kopf, Chi-Wing Fu, Daniel Cohen-Or, Oliver Deussen, Dani Lischinski, and Tien-Tsin Wong. Solid texture synthesis from 2D exemplars. ACM Trans. Graph. (Proc. SIGGRAPH), 26(3):2, 2007.
+[12] Vivek Kwatra, Irfan Essa, Aaron Bobick, and Nipun Kwatra. Texture optimization for example-based synthesis. In ACM Trans. Graph., volume 24, 2005.
+[13] Bruno Lévy, Sylvain Petitjean, Nicolas Ray, and Jérôme Maillot. Least squares conformal maps for automatic texture atlas generation. 21(3):362-71, 2002.
+[14] Benoit B Mandelbrot. The fractal geometry of nature, volume 173. WH Freeman New York, 1983.
+[15] Wojciech Matusik, Matthias Zwicker, and Frédo Durand. Texture design using a simplicial complex of morphable textures. ACM Trans. Graph. (Proc. SIGGRAPH), 24(3), 2005.
+[16] Michael Oechsle, Lars Mescheder, Michael Niemeyer, Thilo Strauss, and Andreas Geiger. Texture fields: Learning texture representations in function space. In ICCV, 2019.
+
+[17] Ken Perlin. An image synthesizer. SIGGRAPH Comput. Graph., 19(3), 1985.
+[18] Nico Pietroni, Miguel A Otaduy, Bernd Bickel, Fabio Ganovelli, and Markus Gross. Texturing internal surfaces from a few cross sections. 26(3), 2007.
+[19] Shunsuke Saito, Zeng Huang, Ryota Natsume, Shigeo Morishima, Angjoo Kanazawa, and Hao Li. PiFu: Pixel-aligned implicit function for high-resolution clothed human digitization. In CVPR, pages 2304-2314, 2019.
+[20] Omry Sendik and Daniel Cohen-Or. Deep correlations for texture synthesis. ACM Trans. Graph., 36(5):161, 2017.
+[21] Tamar Rott Shaham, Tali Dekel, and Tomer Michaeli. SinGAN: Learning a generative model from a single natural image. In ICCV, 2019.
+[22] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556, 2014.
+[23] Dmitry Ulyanov, Vadim Lebedev, Andrea Vedaldi, and Victor S Lempitsky. Texture networks: Feed-forward synthesis of textures and stylized images. In ICML, 2016.
+[24] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Improved texture networks: Maximizing quality and diversity in feed-forward stylization and texture synthesis. In CVPR, 2017.
+[25] Li-Yi Wei and Marc Levoy. Fast texture synthesis using tree-structured vector quantization. In Proc. SIGGRAPH, 2000.
+[26] Wenqi Xian, Patsorn Sangkloy, Varun Agrawal, Amit Raj, Jingwan Lu, Chen Fang, Fisher Yu, and James Hays. TextureGAN: Controlling deep image synthesis with texture patches. In CVPR, 2018.
+[27] Ning Yu, Connelly Barnes, Eli Shechtman, Sohrab Amirghodsi, and Michal Lukac. Texture Mixer: A network for controllable synthesis and interpolation of texture. In CVPR, 2019.
+[28] Yang Zhou, Zhen Zhu, Xiang Bai, Dani Lischinski, Daniel Cohen-Or, and Hui Huang. Nonstationary texture synthesis by adversarial expansion. arXiv:1805.04487, 2018.
+[29] Jun-Yan Zhu, Zhoutong Zhang, Chengkai Zhang, Jia-jun Wu, Antonio Torralba, Josh Tenenbaum, and Bill Freeman. Visual object networks: Image generation with disentangled 3D representations. In NIPS, 2018.
\ No newline at end of file
diff --git a/learninganeural3dtexturespacefrom2dexemplars/images.zip b/learninganeural3dtexturespacefrom2dexemplars/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..81db269a933d35353e6aeda449d0b81cbe4ac359
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fea0947b3944e2678e0b5ed6a9182dc293d7f53e25b106de040467befd902b8
+size 859067
diff --git a/learninganeural3dtexturespacefrom2dexemplars/layout.json b/learninganeural3dtexturespacefrom2dexemplars/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..74ea401d2fe668af05cabb9bff8629c5b6b59a9c
--- /dev/null
+++ b/learninganeural3dtexturespacefrom2dexemplars/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f175215ebc0ba7e374648bd81b4d8c8eb454d5fefddd92ffd13ad46549c8c86
+size 365356
diff --git a/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_content_list.json b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..1f4c639eae04dd30f79a57a003ba80a687e0c987
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:921c1139e916f8537453dc3bd3214cf4b13919768fceb7eca1502ec5239287a8
+size 76636
diff --git a/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_model.json b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3394beea0c9896c95cfbc5a993157addbf82a9de
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9aa872d13e7c5d2bd184ead263b65805f93ebd8d2f1e040aa18b070e2a1967a7
+size 93839
diff --git a/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_origin.pdf b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..16607539f421d8286044a6cec8b541e7e9273134
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/d15408d9-b9b7-4943-8391-d1a5d8affe46_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6c1f76ca2c006ba31c1a30128406f456a8f9bae2a3bba92af40fd993c23873de
+size 739746
diff --git a/learningaugmentationnetworkviainfluencefunctions/full.md b/learningaugmentationnetworkviainfluencefunctions/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..bc00ddf610eb9c25ee512121c56b4d4010e165ca
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/full.md
@@ -0,0 +1,317 @@
+# Learning Augmentation Network via Influence Functions
+
+Donghoon Lee Hyunsin Park Trung Pham Chang D. Yoo Korea Advanced Institute of Science and Technology (KAIST)
+
+{iamdh, hs.park, trungpx, cd.yoo}@kaist.ac.kr
+
+# Abstract
+
+Data augmentation can impact the generalization performance of an image classification model in a significant way. However, it is currently conducted on the basis of trial and error, and its impact on the generalization performance cannot be predicted during training. This paper considers an influence function that predicts how generalization performance, in terms of validation loss, is affected by a particular augmented training sample. The influence function provides an approximation of the change in validation loss without actually comparing the performances that include and exclude the sample in the training process. Based on this function, a differentiable augmentation network is learned to augment an input training sample to reduce validation loss. The augmented sample is fed into the classification network, and its influence is approximated as a function of the parameters of the last fully-connected layer of the classification network. By backpropagating the influence to the augmentation network, the augmentation network parameters are learned. Experimental results on CIFAR-10, CIFAR-100, and ImageNet show that the proposed method provides better generalization performance than conventional data augmentation methods do.
+
+# 1. Introduction
+
+In supervised learning, deep neural networks generally require large amounts of labeled data for training. An insufficient number of labeled data will lead to poor generalization performance due to overfitting. One simple method to reduce overfitting and improve generalization performance is to perform data augmentation, whereby each training sample is transformed with a label-preserving transformation to create additional labeled data. Different augmentations can result in significant differences in generalization performances depending on the task [7, 11, 14, 49]; however, this has not yet been extensively explored. Even in a well-studied image classification task [15, 34, 46], training data is often augmented in a manner similar to that performed in training AlexNet [21]. The composition of pre
+
+defined transformations, such as rotation, translation, cropping, scaling, and color perturbation, is a popular choice; however, choosing the transformations and determining the strength of each transformation, e.g. rotation angle, that result in the best performance is often conducted empirically through observations of validation loss [3, 33].
+
+Most recently, strategies for composing the transformations through learning [6, 22, 28, 29, 35] rather than tuning by trial and error have been studied. To learn such a strategy, various learning criteria have been considered. Without considering a classification model, Ratner et al. [29] and Sixt et al. [35] adopted a strategy for augmenting realistic samples. Given a classification model, [22] and [28] consider antithetical strategies for augmenting samples that minimize and maximize training loss, respectively. It is not yet fully understood why these antithetical studies, which relate data augmentation to training loss, are effective in improving performance on test samples. Cubuk et al. [6] considered small child models to compute validation loss for augmenting samples to improve generalization performance. Here, learning requires a reinforcement learning framework with the validation loss as a reward. This necessitates the classification model to be learned from scratch for every update of the augmentation model parameters, requiring thousands of GPU hours for learning.
+
+This paper proposes a data augmentation method that links the impact of augmentation to the validation loss. To predict impact, an influence function [5, 20] is incorporated to compute the effect of a particular augmented training sample on the validation loss. Without a leave-one-out retraining process, the influence function approximates the change in validation loss due to the inclusion or exclusion of the augmented training sample. A differentiable augmentation network is proposed to augment the sample based on its predicted impact on the validation loss. The transformation space of the proposed network encompasses compositions of predefined transformations. The influence function and the differentiable augmentation model enable the gradient of validation loss to flow to the augmentation model.
+
+The remainder of this paper is organized as follows. Section 2 briefly reviews some of the most relevant literature
+
+related to the proposed method, while Sections 3 and 4 describe the details of the proposed method. Experimental and comparative results are reported in Section 5. Section 6 summarizes and concludes the paper.
+
+# 2. Related work
+
+# 2.1. Data augmentation methods
+
+This sub-section provides a brief overview of data augmentation methods in the following three categories: (i) unsupervised methods that do not involve labels during learning $^{1}$ , (ii) adversarial methods that maximize classification loss, and (iii) supervised methods that minimize classification loss.
+
+Unsupervised methods Unsupervised methods include conventional data augmentation methods, which use a composition of predefined transformations, such as rotating, translating, cropping, scaling and color perturbation [15, 21, 34, 46]. The transformations are manually chosen through trial and error by empirically observing validation loss [3, 33]. Ratner et al. [29] considers a generator that generates a sequence of predefined transformations. Given the sequence, the training sample is augmented by consecutively applying predefined transformations. The generator is learned in the generative adversarial network (GAN) framework [13]. The generated sequence produces a realistic augmented sample; however, the classifier is not involved during the learning process and the effect of data augmentation can only be observed through trial and error.
+
+Adversarial methods Adversarial methods include hard sample mining that collects or augments samples that are misclassified by the current classification model. They have been used in training support vector machines (SVM) [8], boosted decision trees [11], shallow neural networks [30], and deep neural networks [31]. Wang et al. [42] and Peng et al. [28] selected hard samples by adversarially updating the ranges of predefined transformations, such as occluding [28, 42], scaling, and rotating [28].
+
+Adversarial examples are slightly perturbed or transformed samples that result in a classification model predicting an incorrect answer with high confidence [38]. For these methods, flexible and complex transformation models [2, 45] cannot be used to generate adversarial examples [28]. Training the classification model with adversarial examples will improve robustness to those adversarial examples but may degrade performance on clean test samples [40, 41]. Recent studies have shown that adversarial updates
+
+in convolution-based transformations [2] and spatial transformations [45] can potentially generate adversarial examples.
+
+Supervised methods Lemley et al. [22] designed an augmentation model that learns to augment samples that reduce training classification loss, but the performance on test samples can only be empirically evaluated and not be predicted. Cubuk et al. [6] considered small child classification models for computing validation loss to evaluate several augmentation policies over predefined transformations. However, learning requires a reinforcement learning framework as predefined transformations are non-differentiable and cannot be backpropagated. The child model must be learned from scratch for every update of the augmentation model parameters and thus requires thousands of GPU hours. Furthermore, the validation loss of the small child model may not be a good predictor of the validation loss of the final classification model.
+
+# 2.2. Generative adversarial networks for data augmentation
+
+Goodfellow et al. [13] proposed a framework for training a deep generative network in an adversarial manner referred to as the generative adversarial network (GAN). The framework simultaneously trains two networks: a generator that generates a sample from random noise and a discriminator that estimates the probability that a sample came from the training data rather than from the generator. An adversarial process is formed by a two-player minimax game in which a discriminator tries to distinguish the source of a sample while a generator tries to generate an indistinguishable sample.
+
+Several studies have demonstrated the potential of using the GAN framework in data augmentation by either improving the realism of synthetic samples [32, 35, 43] or by generating class-conditional images [24, 26, 25]. However, generative models are generally known to require more data to train than a classification model, and for training, additional synthetic [32, 35, 43] and/or unlabeled [24, 26, 25] samples are required.
+
+# 2.3. Influence functions
+
+The influence function is a function from robust statistics [5] to estimate how model parameters change due to up-weighting a particular training sample. Cook and Weisberg [5] developed influence function of removing training data in learning a linear model, and in [4, 39, 44], influence functions concerning a wider variety of perturbations were studied. Koh and Liang [20] considered influence function to non-convex and highly-complex models, including deep neural networks, by using efficient approximations based on Hessian-vector products (HVPs) [27], conjugate gradients
+
+
+Figure 1: A generic data augmentation framework for a classification task. An input training sample $x$ is transformed to $\tilde{x}$ by a transformation model, which is parameterized by $\tau$ . The conventional method usually defines $G$ as a composition of predefined transformations based on randomly sampled range $\tau$ (solid line path). In this paper, $G$ is a differentiable network. A learnable network $E$ estimates $\tau$ given $x$ to obtain the transformed sample $\tilde{x}$ , where $\tilde{x}$ maximizes the generalization performance of the classification model (dashed line path).
+
+[23], and stochastic estimation [1]. They also considered the influence of up-weighting a particular training sample on validation loss. In [20], the influence functions are used for various purposes: debugging models, detecting dataset errors, and creating training-set attacks.
+
+# 3. Augmented data evaluation
+
+Figure 1 depicts a general framework for tuning or learning an augmentation model that may involve evaluating an augmented sample. Given a classification model, the evaluation is often performed by computing the training loss of the sample; however, the effect on test samples cannot be predicted and can only be empirically evaluated. To evaluate the impact of an augmented sample using validation loss requires learning two classifiers: one that includes and the other that excludes the sample during the learning process for comparing their performances. Learning both classifiers is computationally expensive as the models need to be fully trained from scratch and evaluated over all validation samples. Rather than repeating this prohibitive process, a method is proposed to approximate the validation loss difference due to a particular augmented sample, thus eliminating the retraining process.
+
+# 3.1. Problem set up
+
+In a classification task, given an input space $\mathcal{X}$ , an output space $\mathcal{Y}$ , and a parameter space $\Theta$ , a learner aims to learn a classification model $F$ that maps $\mathcal{X} \mapsto \mathcal{Y}$ and is parameterized by $\theta$ . Define $l(z,\theta)$ to be the loss evaluated on the sample $z = (x,y) \in \mathcal{X} \times \mathcal{Y}$ and model parameters $\theta \in \Theta$ . Given training data $\mathbf{z}^{\mathrm{tr}} = \{z_i\}_{i=1}^N$ , an empirical risk minimizer is given as:
+
+$$
+\hat {\theta} (\mathbf {z} ^ {\mathrm {t r}}) = \underset {\theta \in \Theta} {\arg \min } \mathcal {L} (\mathbf {z} ^ {\mathrm {t r}}, \theta), \tag {1}
+$$
+
+where the empirical risk is given as
+
+$$
+\mathcal {L} \left(\mathbf {z} ^ {\mathrm {t r}}, \theta\right) = \frac {1}{N} \sum_ {i: z _ {i} \in \mathbf {z} ^ {\mathrm {t r}}} l \left(z _ {i}, \hat {\theta}\right). \tag {2}
+$$
+
+To measure the generalization performance of the classification model $F$ , validation data $\mathbf{z}^{\mathrm{val}} = \{z_j\}_{j = N + 1}^{(N + M)}$ is often considered. Generalization performance is approximated as the average loss over validation data $\mathbf{z}^{\mathrm{val}}$ with parameter $\hat{\theta} (\mathbf{z}^{\mathrm{tr}})$ as
+
+$$
+\mathcal {L} \left(\mathbf {z} ^ {\text {v a l}}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) = \frac {1}{M} \sum_ {j: z _ {j} \in \mathbf {z} ^ {\text {v a l}}} l \left(z _ {j}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right). \tag {3}
+$$
+
+Consider a label preserving transformation $G$ that maps $\mathcal{X}\mapsto \mathcal{X}$ such as the one shown in Figure 1. Let $\tau$ be the control parameters, $\tilde{x} = G(x,\tau)$ be an augmented input, $\tilde{z} = (\tilde{x},y)$ be an augmented sample, and $\tilde{\mathbf{z}}^{\mathrm{tr}} = \{\tilde{z}_i\}_{i = 1}^N$ be an augmented training dataset. In addition, consider a learnable network $E$ parameterized by $\phi$ . It estimates $\tau$ given $x$ . Thus, $\tilde{x} = G(x,E(x,\phi))$ .
+
+Given the transformation model $G$ , the goal is to find the optimal $\tau$ for each input $x$ ; otherwise, find optimal parameters $\phi$ of $E$ that minimizes the validation loss when the classification model is learned using $\tilde{\mathbf{z}}^{\mathrm{tr}}$ . This is mathematically represented as follows
+
+$$
+\phi = \underset {\phi \in \Phi} {\arg \min } \mathcal {L} \left(\mathbf {z} ^ {\text {v a l}}, \hat {\theta} \left(\bar {\mathbf {z}} ^ {\text {t r}}\right)\right), \tag {4}
+$$
+
+where
+
+$$
+\hat {\theta} (\tilde {\mathbf {z}} ^ {\mathrm {t r}}) = \underset {\theta \in \Theta} {\arg \min } \mathcal {L} (\tilde {\mathbf {z}} ^ {\mathrm {t r}}, \theta). \tag {5}
+$$
+
+Solving Equations 4-5 requires a bilevel optimization where one problem is embedded (nested) within another.
+
+# 3.2. Influence by weighting a training sample
+
+Consider a change in model parameters $\theta$ due to the exclusion of a particular training sample $z_{i}$ . Formally, this change is given as $\hat{\theta} (\mathbf{z}^{\mathrm{tr}}\backslash z_i) - \hat{\theta} (\mathbf{z}^{\mathrm{tr}})$ . Influence functions [5, 20] provide an efficient approximation without a retraining process to obtain $\hat{\theta} (\mathbf{z}^{\mathrm{tr}}\backslash z_i)$ . Let us consider the change
+
+in model parameters due to upweighting $z_{i}$ by an amount of $\epsilon l(z_{i},\theta)$ in the loss function:
+
+$$
+\hat {\theta} \left(\mathbf {z} ^ {\operatorname {t r}} \cup \epsilon z _ {i}\right) = \underset {\theta \in \Theta} {\arg \min } \mathcal {L} \left(\mathbf {z} ^ {\operatorname {t r}}, \theta\right) + \epsilon l \left(z _ {i}, \theta\right). \tag {6}
+$$
+
+Then, from [5], the following approximation can be derived:
+
+$$
+- \frac {1}{N} \mathcal {I} _ {\text {u p , p a r a m s}} \left(z _ {i}\right) \simeq \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}} \backslash z _ {i}\right) - \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right), \tag {7}
+$$
+
+where
+
+$$
+\begin{array}{l} \mathcal {I} _ {\mathrm {u p}, \text {p a r a m s}} \left(z _ {i}\right) \triangleq \left. \frac {d \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}} \cup \epsilon z _ {i}\right)}{d \epsilon} \right| _ {\epsilon = 0} (8) \\ = - H \left(\hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right) ^ {- 1} \nabla_ {\theta} l \left(z _ {i}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right). (9) \\ \end{array}
+$$
+
+Here, $H(\theta) \triangleq \frac{1}{N} \sum_{i=1}^{N} \nabla_{\theta}^2 l(z_i, \theta)$ is the Hessian evaluated at $\theta$ .
+
+Using Equation 9 and applying the chain rule, the influence of up-weighting $z_{i} \in \mathbf{z}^{\mathrm{tr}}$ on the validation loss at $z_{j} \in \mathbf{z}^{\mathrm{val}}$ can be approximated [20] as shown below:
+
+$$
+- \frac {1}{N} \mathcal {I} _ {\text {u p}, \text {l o s s}} \left(z _ {i}, z _ {j}\right) \simeq l \left(z _ {j}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}} \backslash z _ {i}\right)\right) - l \left(z _ {j}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right), \tag {10}
+$$
+
+where
+
+$$
+\begin{array}{l} \mathcal {I} _ {\mathrm {u p}, \text {l o s s}} \left(z _ {i}, z _ {j}\right) \triangleq \frac {d l \left(z _ {j} , \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}} \cup \epsilon z _ {i}\right)\right)}{d \epsilon} \Bigg | _ {\epsilon = 0} (11) \\ = \nabla_ {\theta} l \left(z _ {j}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right) ^ {\top} \frac {d \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}} \cup \epsilon z _ {i}\right)}{d \epsilon} \Bigg | _ {\epsilon = 0} (12) \\ = - \nabla_ {\theta} l \left(z _ {j}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right) ^ {\top} H \left(\hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right) ^ {- 1} \nabla_ {\theta} l \left(z _ {i}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right). (13) \\ \end{array}
+$$
+
+For the validation dataset $\mathbf{z}^{\mathrm{val}}$ , Equation 12 can be expanded given by:
+
+$$
+\begin{array}{l} \mathcal {I} _ {\text {u p}, \text {l o s s}} (z _ {i}, \mathbf {z} ^ {\text {v a l}}) \\ = - \nabla_ {\theta} \mathcal {L} \left(\mathbf {z} ^ {\text {v a l}}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) ^ {\top} H \left(\hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) ^ {- 1} \nabla_ {\theta} l \left(z _ {i}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right). \tag {14} \\ \end{array}
+$$
+
+Equation 11 describes a gradient of $l(z_{j},\hat{\theta} (\mathbf{z}^{\mathrm{tr}}\cup \epsilon z_{i}))$ with respect to $\epsilon$ at nearby $\epsilon = 0$ . The influence of excluding $z_{i}$ can be approximated by Equation 10.
+
+# 3.3. Influence by augmentation
+
+With a training sample $z_{i}$ and the corresponding augmented training sample $\tilde{z}_i$ , let $\hat{\theta} (\mathbf{z}^{\mathrm{tr}}\cup \epsilon \tilde{z}_i\backslash \epsilon z_i)$ be the estimate of $\theta$ by downweighting $z_{i}$ and upweighting $\tilde{z}_i$ by $\epsilon$ . Let $\hat{\theta} (\mathbf{z}^{\mathrm{tr}}\cup \tilde{z}_i\backslash z_i)$ be the estimate of $\theta$ by replacing $z_{i}$ with $\tilde{z}_i$ . An analogous approximation of Equations 10-13 yields:
+
+$$
+\begin{array}{l} - \frac {1}{N} \mathcal {I} _ {\text {a u g , l o s s}} \left(z _ {i}, \tilde {z} _ {i}, \mathbf {z} ^ {\text {v a l}}\right) \\ \simeq \mathcal {L} (\mathbf {z} ^ {\text {v a l}}, \hat {\theta} (\mathbf {z} ^ {\text {t r}})) - \mathcal {L} (\mathbf {z} ^ {\text {v a l}}, \hat {\theta} (\mathbf {z} ^ {\text {t r}} \cup \tilde {z} _ {i} \backslash z _ {i})), \tag {15} \\ \end{array}
+$$
+
+where the influence function $\mathcal{I}_{\mathrm{aug,loss}}(z_i,\tilde{z}_i,\mathbf{z}^{\mathrm{val}})$ is:
+
+$$
+\begin{array}{l} \mathcal {I} _ {\text {a u g , l o s s}} \left(z _ {i}, \tilde {z} _ {i}, \mathbf {z} ^ {\text {v a l}}\right) \\ \triangleq \left. \frac {d \mathcal {L} \left(\mathbf {z} ^ {\text {v a l}} , \hat {\theta} \left(\mathbf {z} ^ {\text {t r}} \cup \epsilon \tilde {z} _ {i} \backslash \epsilon z _ {i}\right)\right)}{d \epsilon} \right| _ {\epsilon = 0} (16) \\ = \nabla_ {\theta} \mathcal {L} \left(\mathbf {z} ^ {\text {v a l}}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) ^ {\top} \frac {\hat {d} \theta \left(\mathbf {z} ^ {\text {t r}} \cup \epsilon \tilde {z} _ {i} \backslash \epsilon z _ {i}\right)}{d \epsilon} \Big | _ {\epsilon = 0} (17) \\ = - \nabla_ {\theta} \mathcal {L} \left(\mathbf {z} ^ {\text {v a l}}, \hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) ^ {\top} H \left(\hat {\theta} \left(\mathbf {z} ^ {\text {t r}}\right)\right) ^ {- 1} \\ \left(\nabla_ {\theta} l \left(\tilde {z} _ {i}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right) - \nabla_ {\theta} l \left(z _ {i}, \hat {\theta} \left(\mathbf {z} ^ {\mathrm {t r}}\right)\right)\right) (18) \\ = \mathcal {I} _ {\text {u p , l o s s}} \left(\tilde {z} _ {i}, \mathbf {z} ^ {\text {v a l}}\right) - \mathcal {I} _ {\text {u p , l o s s}} \left(z _ {i}, \mathbf {z} ^ {\text {v a l}}\right). (19) \\ \end{array}
+$$
+
+The influence function $\mathcal{I}_{\mathrm{aug,loss}}(z_i,\tilde{z}_i,\mathbf{z}^{\mathrm{val}})$ predicts the differences between the influences of the augmented sample and the original sample. In addition, the influence function can be used to evaluate the effectiveness of the augmented sample $\tilde{z}_i$ compared to that of the original sample.
+
+# 3.4. Reformulation of influence functions
+
+To compute the influence functions efficiently, techniques such as conjugate gradients and stochastic estimation are adopted, as used in [20]. Given $F$ , inverse Hessian-vector products (iHVPs) $s_{\mathrm{val}} = H(\hat{\theta} (\mathbf{z}^{\mathrm{tr}}))^{-1}\nabla_{\theta}\mathcal{L}(\mathbf{z}^{\mathrm{val}},\hat{\theta} (\mathbf{z}^{\mathrm{tr}}))$ are precomputed and cumulated for validation samples using conjugate gradients and stochastic estimation techniques. The iHVPs are fixed during learning $G$ and $E$ and are used to compute influence functions of augmented samples. The influence function is further approximated through considerations of only the top fully connected layer of $F$ . Thus the remaining $\nabla_{\theta}l(z_i,\hat{\theta} (\mathbf{z}^{\mathrm{tr}}))$ can be represented by a simple closed form. This makes it possible to represent $s_{\mathrm{val}}\nabla_{\theta}l(z_i,\hat{\theta} (\mathbf{z}^{\mathrm{tr}}))$ in a closed form by regarding $s_{\mathrm{val}}$ as a fixed vector. The gradient from this flows through fixed $F$ and is then used to update $G$ and $E$ by the chain rule.
+
+# 4. Transformation models
+
+Transformations for augmenting images can be categorized as either spatial transformations or appearance transformations. In this section, the proposed transformation models that generalize both transformations are described. As the models are differentiable, the gradient from the influence function can be propagated to $G$ and $E$ during learning.
+
+# 4.1. Spatial transformation model
+
+Spatial transformations include random flip, crop, scaling, rotation, shearing, translation, and affine transformations. These transformations can be defined by the coordinate change in pixel locations. The proposed transformation model for spatial transformation is illustrated in Figure 2(a). Spatial transformation is defined—in a way similar to
+
+
+(a) Spatial transformation model
+
+
+(b) Appearance transformation model
+Figure 2: The proposed transformation models for spatial and appearance transformations. (a) The proposed transformation models for spatial transformation. Spatial transformation model $G_{s}$ takes an input $\tau_{s}$ and then generates $s_w$ and $s_b$ . Flow field $s$ denotes the coordinates to be transformed and is obtained by operations like the point-wise affine transform by $s_w$ and $s_b$ . The warp operation transforms $x$ to $\tilde{x}$ by interpolating $x$ based on the coordinates in $s$ . (b) The proposed transformation models for appearance transformation. Appearance transformation model $G_{a}$ takes an input $\tau_{a}$ and then generates $c_w$ and $c_b$ . $\tilde{x}$ is obtained by filtering $x$ by a filter with weights $c_w$ and bias $c_b$ .
+
+[17, 45]—by
+
+$$
+\begin{array}{l} \left[ \begin{array}{c} s (i, j, 1) \\ s (i, j, 2) \end{array} \right] = \left[ \begin{array}{c c} s _ {w} (i, j, 1) & s _ {w} (i, j, 2) \\ s _ {w} (i, j, 3) & s _ {w} (i, j, 4) \end{array} \right] \left[ \begin{array}{c} i \\ j \end{array} \right] \\ + \left[ \begin{array}{l} s _ {b} (i, j, 1) \\ s _ {b} (i, j, 2) \end{array} \right] + \left[ \begin{array}{l} i \\ j \end{array} \right]. \tag {20} \\ \end{array}
+$$
+
+Here, $i,j$ denotes the source coordinate, and $s_w(i,j)$ and $s_b(i,j)$ denote the multiplication factor and bias, respectively. Note that when global average pooling is performed on $s_w$ and $s_b$ , the transformation is reduced to the affine transformation. In this formulation, the spatial transformation is fully defined by $s_w$ and $s_b$ that are obtained by feeding $\tau_s$ into $G_s$ .
+
+Spatial transformation model $G_{g}$ takes an input $\tau_{s}$ and then generates $s_w$ and $s_b$ . Flow field $s$ denotes the coordinates to be transformed and is obtained by performing operations such as the point-wise affine transform by $s_w$ and $s_b$ . The warp operation in Figure 2-(a) transforms $x$ to $\tilde{x}$ based on the bilinear interpolation indexed by $s$ . The model is designed by a stacked transposed convolutional network with $4 + 2$ channels in its final layer. Once $s$ is obtained, $4 \times 4$ average pooling is applied to smoothing $s$ . The image is then warped by bilinear interpolation, which is differentiable operation [17]. All computations in this formulation can be implemented by a feed-forward neural network.
+
+# 4.2. Appearance transformation model
+
+Transformations in appearance include alterations of contrast, brightness, color, and hue. These transformations can be formed by $1 \times 1$ spatial dimension filters. Thus, to
+
+formulate the appearance transformation model, generating $1 \times 1$ spatial filters is of primary concern. The proposed transformation model for the appearance transformation is illustrated in Figure 2-(b). The appearance transformation model $G_{a}$ takes an input $\tau_{a}$ and then generates $c_{w}$ and $c_{b}$ , which are average pooled in the same way as the spatial transformation model. The transformed image $\tilde{x}$ is obtained by $x + \delta x$ , where $\delta x$ is obtained by filtering $x$ with filter weights $c_{w}$ and bias $c_{b}$ . The model is designed by a transposed convolutional network with $3 \times 3 + 3$ channels for RGB images in its final layer. For grey images, the appearance transformation model is not considered.
+
+# 4.3. Learning transformation models
+
+During learning, $G$ is trained based on the GAN framework. Then $E$ and $G$ are trained to predict $\tau$ which is used to augment inputs, which maximize the influence function for each $x$ and $\tilde{x} = G(x,E(x))$ pair. In practice, the spatial and appearance transformation models are combined by concatenating $(\tau_s,\tau_a)$ and $(s_w,s_b,c_w,c_b)$ . By sharing conv $(E)$ and convr $(G)$ blocks for the spatial and appearance transformations, the combined transformation model has single $\tau$ (implicitly include $\tau_{s}$ and $\tau_{a}$ ) and outputs $s_w,s_b,c_w,c_b$ . Thus, the spatial and appearance transformation models are learned together during entire learning process. The relativistic average GAN (RaGAN) [18] is used for training $G$ with modification. To avoid trivial solutions (identity transformation), a simple trick (with standard loss function) to match distributions of transformed image and baseline augmented image (instead of original image) is used. Using this method, $G$ was pretrained to mimic the baseline augmenta
+
+| Dataset | % | Model | None | Heur. | Ratner MF [29] | Ratner LSTM [29] | Proposed |
| MNIST | 1 | 4 layer CNN | 9.8 | 4.1 | 3.5 | 3.3 | 3.1 |
| 10 | 4 layer CNN | 2.7 | 1.0 | 0.8 | 0.9 | 0.8 |
| CIFAR-10 | 10 | ResNet-56 [15] | 34.0 | 22.5 | 20.2 | 18.5 | 17.7 |
| CIFAR-10 | 100 | ResNet-56 [15] | 12.2 | 7.7 | 5.6 | 6.0 | 5.2 |
| CIFAR-100 | 100 | ResNet-56 [15] | 36.3 | 31.6 | - | - | 29.6 |
+
+Table 1: Test set error rates (\%) of classification models trained on subsamples of the labeled training data. The experiments are conducted under the same setting as [29].
+
+| Dataset | Model | Baseline | Cutout [10] | AutoAug. [6] | Proposed |
| CIFAR-10 | Wide-ResNet-28-10 [48] | 3.9 | 3.1 | 2.6 | 2.8 |
| Shake-Shake (26 2x96d) [12] | 2.9 | 2.6 | 2.0 | 2.1 |
| PyramidNet+ShakeDrop [47] | 2.7 | 2.3 | 1.5 | 1.7 |
| CIFAR-100 | Wide-ResNet-28-10 [48] | 18.8 | 18.4 | 17.1 | 17.3 |
| Shake-Shake (26 2x96d) [12] | 17.1 | 16.0 | 14.3 | 14.6 |
| PyramidNet+ShakeDrop [47] | 14.0 | 12.2 | 10.7 | 11.9 |
+
+Table 2: Test set error rates (%) on CIFAR-10 and CIFAR-100 datasets. The experiments are conducted under the same setting as [6].
+
+
+Figure 3: Diverse transforms can be obtained from the same input image of CIFAR-10 dataset using dropout $\tau$ .
+
+tion method. Two discriminators over the image space and feature space—feature map in the last fully-connected layer of $F$ —are considered. The discriminator over the feature space is defined by single fully-connected layer. Given $F$ , the learning steps for training $E$ and $G$ are arranged as follows: (1) pretrain $G$ in the GAN framework, (2) compute iHVPS, and (3) train $E$ and $G$ to maximize the influence. Omitting the pretrain stage does not affect accuracy. Including this stage provides better initialization for $G$ which leads to a more stable learning and faster convergence during stages (2) and (3). Classification model $F$ is retrained using augmented samples from learned $E$ and $G$ thereafter. During learning $E$ and $G$ , dropout [36] with probability 0.5 is applied to $\tau$ . Dropout is retained during retraining $F$ to obtain diverse augmented samples as shown in Figure 3.
+
+# 5. Experiments
+
+# 5.1. MNIST dataset
+
+Experiments were performed on the MNIST using only a subset of class labels to train the classification models and treating the rest as unlabeled data. A 4-layer all-convolutional neural network was used for classification.
+
+Experiments were conducted under the same settings as [29]. In Table 1, classification errors on test set are listed for various data augmentation methods from [29]. None indicates that no augmentation is applied, and Heur is the standard heuristic approach of applying random compositions of the given set of transformation operations. Ratner denotes the results from [29]. A 128 dimensional $\tau$ and 4-layer convolutional neural network was used. For $G$ , a 4-layer transposed convolutional neural network was used. For the proposed method, the random cropping technique is used as did in [29]. The proposed method shows lower test error than those of [29]. Architectures and hyper-parameters in the optimization are shown in Supplementary-B.
+
+# 5.2. CIFAR-10 and CIFAR-100 datasets
+
+Performance comparison is made among the proposed method, heuristic, [29], and [6] under the exact equal settings. For fair performance comparison, benchmark script made available by the authors of [29] and [6] was used to obtain exact identical baseline performance. A 128 dimensional $\tau$ and 5-layer convolutional neural network were used. For $G$ , a 5-layer transposed convolutional neural network was used. All of the reported results are averaged over 5 runs. The detailed settings of the hyper-parameters are described in Supplementary-B.
+
+For comparison with [29], a subset of the class labels was used to train the classification models and the rest was treated as unlabeled data. A ResNet-56 [15] was used. For the proposed method, random cropping and horizontal flip
+
+
+Figure 4: Images are transformed by applying ten linearly interpolated $\tau$ 's to the same training sample in the CIFAR-10 dataset. Each row represents: (i) the training image, (ii) spatial transformation model outputs, (iii) spatially transformed images, (iv) appearance transformation model outputs, and (v) final transformed images.
+
+
+Figure 5: Some corrected test samples of CIFAR-10 dataset.
+
+were used as was used in [29]. For the comparison with [6], the experiments were conducted with the same setting as [6]. Wide-ResNet-28-10 [48], Shake-Shake [12], and Shake-Drop [47] were used as classification models. The baseline augmentation follows the convention for state-of-the-art CIFAR-10 models: standardizing the data and using horizontal flips with $50\%$ probability, random crops, and finally Cutout [10] with 16x16 pixels. The proposed augmentation was applied in addition to the baseline as used in [6].
+
+In Table 1 and Table 2, test errors are listed to compare the proposed method with [29] and [6], respectively. For CIFAR-10, detailed in Table 1, the proposed method shows performance improvement over $[29]^2$ . In Table 2, the proposed method achieved comparable performances to [6] but approximately 600 times faster than [6] in terms of GPU
+
+hours (Table 4).
+
+In Figure 4, transformed images from the same input image by traversing in the $\tau$ -space are shown. Images are transformed by applying ten linearly interpolated $\tau$ 's to the same training sample in the CIFAR-10 dataset. Each row represents: (i) the training image, (ii) spatial transformation model outputs, (iii) spatially transformed images, (iv) appearance transformation model outputs, and (v) final transformed images. Given an input, we note that learned spatial transformations are (relatively) specific while learned appearance transformations allow a wider range of transformations (Figure 3). Corrected test samples by using learned augmentation model (Figure 5) show some similarities: (1) object is only partially shown or the size is small and (2) the color of the object is rare (e.g. white horse).
+
+To analyze the effect of appearance and spatial transform, We conducted experiments on CIFAR-10 using Res-56 and the following results (error rates) are obtained: (1) Heur. $(7.7\%)$ Table 1),2 pretrained $G$ $(6.4\%)$ 3 spatial transform only $(6.1\%)$ 4 appearance transform only $(5.8\%)$ ,5 combined transform (in serial) $(5.4\%)$ ,and (6) combined transform (in parallel) $(5.2\%)$ ,Table 1).
+
+For the dimensions of $\tau$ , the results are as follows: (1) 32 dim $(5.8\%)$ , (2) 64 dim $(5.4\%)$ , (3) 128 dim $(5.2\%)$ , Table 1), and (4) 256 dim $(5.2\%)$ .
+
+| Model | Baseline [6] | Baseline (ours) | AutoAug. [6] | Proposed |
| ResNet-50 [15] | 76.3 / 93.1 | 76.1 / 93.0 | 77.6 / 93.8 | 77.1 / 93.4 |
| ResNet-200 [15] | 78.5 / 94.2 | 78.1 / 94.0 | 80.0 / 95.0 | 79.0 / 94.6 |
+
+Table 3: Validation set Top-1 / Top-5 accuracy $(\%)$ on ImageNet dataset. The experiments are conducted under the same setting as [6]. All results are obtained using 1-crop testing.
+
+| Dataset | AutoAug. [6] | Proposed |
| CIFAR-10 | 5,000 | 8 |
| ImageNet | 15,000 | 40 |
+
+Table 4: GPU hours comparison of AutoAugment and the proposed method. Ours are estimated with Titan-X Pascal.
+
+# 5.3. ImageNet dataset
+
+The experiments on the ImageNet dataset [9] were conducted focusing on the comparisons between baseline, AutoAugment [6], and the proposed method. To train the augmentation model, 50,000 samples were split from the original training set to create a hyper-validation set, and the remaining was used as the training set. The hyperv validation set was used to compute the influence function. The ResNet-50 and ResNet-200 [15] were used as backbone architectures. During pretraining the transformation models, the progressive learning technique proposed in [19] was adopted to stabilize the GAN training process. In training $F$ , a batch size of 4096 and a learning rate of 1.6 were used. The learning rate was decayed by 10-fold at epochs 90, 180, and 240 as used in [6]. Due to the unavailability of ImageNet performance reproduction script of [6], our system had to run with in-house script resulting in a slightly lower benchmark performance than that reported in [6]. For baseline augmentation, the standard Inception-style preprocessing was used, which involves scaling pixel values to [-1,1], horizontal flips with $50\%$ probability, scaling, cropping, aspect ratio change, and random distortions of colors [16, 37].
+
+The trained ResNet-50 and ResNet-200 [15] were then used to compute the influence function. A 128 dimensional $\tau$ and 8-layer convolutional neural network and 8-layer transposed convolutional neural network were used for $E$ and $G$ , respectively. Refer to Supplementary-B for the details. For the proposed method, inputs were preprocessed by the baseline augmentation method as did in [6]. In Table 3, classification accuracies are listed for the comparison with AutoAugment [6]. The proposed method achieved the comparable performance to [6], and the training time was reduced from 15,000 GPU hours to 40 GPU hours as shown in Table 4 (375 times faster).
+
+# 6. Conclusion
+
+To improve data augmentation, the influence function that predicts the effects of a particular augmented training sample on generalization performance is proposed. The differentiable augmentation network is learned to generate augmented samples that maximize the influence function, thereby minimizing the validation loss. The influence function provides an approximation of the change in validation
+
+tion loss without comparing the performances that include and exclude the augmented training sample in the training process. The differentiable augmentation network and the reformulation of the influence function allow augmentation network parameters to be updated by backpropagation. Also, the proposed augmentation network can generalize the conventional composition of predefined transformations. The experimental results confirmed that the proposed method provides better generalization than conventional data augmentation methods do on various datasets including CIFAR-10, CIFAR-100, and ImageNet.
+
+# Acknowledgements
+
+This work was partly supported by Institute for Information & communications Technology Promotion (IITP) grant funded by the Korea government (MSIT) (No.2016-0-00563, Research on Adaptive Machine Learning Technology Development for Intelligent Autonomous Digital Companion) and Institute for Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No. 2019-0-01396, Development of framework for analyzing, detecting, mitigating of bias in AI model and training data).
+
+# References
+
+[1] Naman Agarwal, Brian Bullins, and Elad Hazan. Second-order stochastic optimization in linear time. stat, 1050:15, 2016. 3
+[2] Shumeet Baluja and Ian Fischer. Learning to attack: adversarial transformation networks. In AAAI Conference on Artificial Intelligence, 2018. 2
+[3] Dan Ciregan, Ueli Meier, and Jürgen Schmidhuber. Multicolumn deep neural networks for image classification. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2012. 1, 2
+[4] R Dennis Cook. Assessment of local influence. Journal of the Royal Statistical Society. Series B (Methodological), pages 133-169, 1986. 2
+[5] R Dennis Cook and Sanford Weisberg. Characterizations of an empirical influence function for detecting influential cases in regression. Technometrics, 22(4):495-508, 1980. 1, 2, 3, 4
+[6] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: learning augmentation policies from data. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 6, 7, 8
+
+[7] Xiaodong Cui, Vaibhava Goel, and Brian Kingsbury. Data augmentation for deep neural network acoustic modeling. IEEE/ACM Transactions on Audio, Speech and Language Processing, 23(9):1469-1477, 2015. 1
+[8] Navneet Dalal and Bill Triggs. Histograms of oriented gradients for human detection. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2005. 2
+[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 8
+[10] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 6, 7
+[11] Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg, Martin Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with exemplar convolutional neural networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPMAI), 38(9):1734-1747, 2016. 1, 2
+[12] Xavier Gastaldi. Shake-shake regularization. arXiv preprint arXiv:1705.07485, 2017. 6, 7
+[13] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems (NeurIPS), 2014. 2
+[14] Benjamin Graham. Fractional max-pooling. arXiv preprint arXiv:1412.6071, 2014. 1
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1, 2, 6, 8
+[16] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 8
+[17] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in Neural Information Processing Systems (NeurIPS), 2015. 5
+[18] Alexia Jolicoeur-Martineau. The relativistic discriminator: a key element missing from standard gan. arXiv preprint arXiv:1807.00734, 2018. 5
+[19] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations (ICML), 2018. 8
+[20] Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In International Conference on Machine Learning (ICML), 2017. 1, 2, 3, 4
+[21] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2012. 1, 2
+[22] Joseph Lemley, Shabab Bazrafkan, and Peter Corcoran. Smart augmentation learning an optimal data augmentation strategy. IEEE Access, 5:5858-5869, 2017. 1, 2
+[23] James Martens. Deep learning via hessian-free optimization. In International Conference on Machine Learning (ICML), 2010. 3
+
+[24] Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014. 2
+[25] Anh Nguyen, Jeff Clune, Yoshua Bengio, Alexey Dosovitskiy, and Jason Yosinski. Plug & play generative networks: conditional iterative generation of images in latent space. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[26] Augustus Odena, Christopher Olah, and Jonathon Shlens. Conditional image synthesis with auxiliary classifier gans. In International Conference on Machine Learning (ICML), 2017. 2
+[27] Barak A Pearlmutter. Fast exact multiplication by the hessian. Neural computation, 6(1):147-160, 1994. 2
+[28] Xi Peng, Zhiqiang Tang, Fei Yang, Rogerio S Feris, and Dimitris Metaxas. Jointly optimize data augmentation and network training: adversarial data augmentation in human pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2
+[29] Alexander J Ratner, Henry Ehrenberg, Zeshan Hussain, Jared Dunnmon, and Christopher Ré. Learning to compose domain-specific transformations for data augmentation. In Advances in Neural Information Processing Systems (NeurIPS), 2017. 1, 2, 6, 7
+[30] Henry A Rowley, Shumeet Baluja, and Takeo Kanade. Neural network-based face detection. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 20(1):23-38, 1998. 2
+[31] Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
+[32] Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[33] Patrice Y Simard, David Steinkraus, John C Platt, et al. Best practices for convolutional neural networks applied to visual document analysis. In International Conference on Document Analysis and Recognition (ICDAR), 2003. 1, 2
+[34] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. 1, 2
+[35] Leon Sixt, Benjamin Wild, and Tim Landgraf. Rendering: Generating realistic labeled data. Frontiers in Robotics and AI, 5:66, 2018. 1, 2
+[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research (JMLR), 15(1):1929-1958, 2014. 6
+[37] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 8
+
+[38] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations (ICLR), 2014. 2
+[39] William Thomas and R Dennis Cook. Assessing influence on predictions from generalized linear models. Technometrics, 32(1):59-65, 1990. 2
+[40] Florian Tramér, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: attacks and defenses. In International Conference on Learning Representations (ICLR), 2018. 2
+[41] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations (ICLR), 2019. 2
+[42] Xiaolong Wang, Abhinav Shrivastava, and Abhinav Gupta. A-fast-rcnn: Hard positive generation via adversary for object detection. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[43] Xinlong Wang, Mingyu You, and Chunhua Shen. Adversarial generation of training examples for vehicle license plate recognition. arXiv preprint arXiv:1707.03124, 2017. 2
+[44] Bo-Cheng Wei, Yue-Qing Hu, and Wing-Kam Fung. Generalized leverage and its applications. Scandinavian Journal of statistics, 25(1):25-37, 1998. 2
+[45] Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. In International Conference on Learning Representations (ICLR), 2018. 2, 5
+[46] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 1, 2
+[47] Fisher Yu, Dequan Wang, Evan Shelhamer, and Trevor Darell. Deep layer aggregation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 6, 7
+[48] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conference (BMVC), 2016. 6, 7
+[49] Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in Neural Information Processing Systems (NeurIPS), 2015. 1
\ No newline at end of file
diff --git a/learningaugmentationnetworkviainfluencefunctions/images.zip b/learningaugmentationnetworkviainfluencefunctions/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6556070fece97967965adb5963f01432ad85e5e1
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b79c896b273e311ef5bebaaf569027b619484efe010ce9a63b94e760c5f70a54
+size 410158
diff --git a/learningaugmentationnetworkviainfluencefunctions/layout.json b/learningaugmentationnetworkviainfluencefunctions/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7d55bb3a77e9e7a9f5e0d08d7e67f01904c3b7ca
--- /dev/null
+++ b/learningaugmentationnetworkviainfluencefunctions/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:452c0bd1603bbe1e542cc05326d7d343277b24a561b748e5f89873565aebc819
+size 466155
diff --git a/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_content_list.json b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..eb9fec83214df94d130f90cd0e02b0cd8889bc2a
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e814692de847e158d22db085b7aaa56438234b58b2a798b66c26112be3e75ab
+size 80952
diff --git a/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_model.json b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6009a42b750c087425753add2d49927a865ebaaa
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e0e9e8331ae95244b0c813d5e870cf7b6c4232f0d636e08f59dbb2805d6b3a46
+size 100918
diff --git a/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_origin.pdf b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5fce85e47d70d597dd2aa17bc60e2d4d91c8f8f0
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/011f6659-3b0a-429e-95e9-d8b0ec082f64_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:947e023f2533bac40eec617e8ca294e1c72e503d4b99cd82469624877a9cf7d4
+size 1167586
diff --git a/learningbetterlosslesscompressionusinglossycompression/full.md b/learningbetterlosslesscompressionusinglossycompression/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..eae97dbc5417a853b579ce8739c7ff7446f71c68
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/full.md
@@ -0,0 +1,365 @@
+# Learning Better Lossless Compression Using Lossy Compression
+
+Fabian Mentzer
+
+ETH Zurich
+
+mentzerf@vision.ee.ethz.ch
+
+Luc Van Gool
+
+ETH Zurich
+
+vangool@vision.ee.ethz.ch
+
+Michael Tschannen
+
+Google Research, Brain Team
+
+tschannen@google.com
+
+# Abstract
+
+We leverage the powerful lossy image compression algorithm BPG to build a lossless image compression system. Specifically, the original image is first decomposed into the lossy reconstruction obtained after compressing it with BPG and the corresponding residual. We then model the distribution of the residual with a convolutional neural network-based probabilistic model that is conditioned on the BPG reconstruction, and combine it with entropy coding to losslessly encode the residual. Finally, the image is stored using the concatenation of the bitstreams produced by BPG and the learned residual coder. The resulting compression system achieves state-of-the-art performance in learned lossless full-resolution image compression, outperforming previous learned approaches as well as PNG, WebP, and JPEG2000.
+
+# 1. Introduction
+
+The need to efficiently store the ever growing amounts of data generated continuously on mobile devices has spurred a lot of research on compression algorithms. Algorithms like JPEG [51] for images and H.264 [53] for videos are used by billions of people daily.
+
+After the breakthrough results achieved with deep neural networks in image classification [27], and the subsequent rise of deep-learning based methods, learned lossy image compression has emerged as an active area of research (e.g. [6, 45, 46, 37, 2, 4, 30, 28, 48]). In lossy compression, the goal is to achieve small bitrates $R$ given a certain allowed distortion $D$ in the reconstruction, i.e., the rate-distortion trade-off $R + \lambda D$ is optimized. In contrast, in lossless compression, no distortion is allowed, and we aim to reconstruct the input perfectly by transmitting as few bits as possible. To this end, a probabilistic model of the data can be used together with entropy coding techniques to encode and transmit data via a bitstream. The theoretical foundation for this idea is given in Shannon's landmark paper [40], which proves a lower bound for the bitrate achievable by such a probabilistic model, and the
+
+
+Figure 1. Overview of the proposed learned lossless compression approach. To encode an input image $x$ , we feed it into the Q-Classifier (QC) CNN to obtain an appropriate quantization parameter $Q$ , which is used to compress $x$ with BPG. The resulting lossy reconstruction $x_{l}$ is fed into the Residual Compressor (RC) CNN, which predicts the probability distribution of the residual, $p(r|x_{l})$ , conditionally on $x_{l}$ . An arithmetic coder (AC) encodes the residual $r$ to a bitstream, given $p(r|x_{l})$ . In gray we visualize how to reconstruct $x$ from the bitstream. Learned components are shown in violet.
+
+overhead incurred by using an imprecise model of the data distribution. One beautiful result is that maximizing the likelihood of a parametric probabilistic model is equivalent to minimizing the bitrate obtained when using that model for lossless compression with an entropy coder (see, e.g., [29]). Learning parametric probabilistic models by likelihood maximization has been studied to a great extent in the generative modeling literature (e.g. [50, 49, 39, 34, 25]). Recent works have linked these results to learned lossless compression [29, 18, 47, 24].
+
+Even though recent learned lossy image compression methods achieve state-of-the-art results on various data sets, the results obtained by the non-learned H.265-based BPG [43, 7] are still highly competitive, without requiring sophisticated hardware accelerators such as GPUs to run. While BPG was outperformed by learning-based approaches across the bitrate spectrum in terms of PSNR [30] and visual quality [4], it still excels particularly at high-PSNR lossy reconstructions.
+
+In this paper, we propose a learned lossless compression system by leveraging the power of the lossy BPG, as
+
+illustrated in Fig. 1. Specifically, we decompose the input image $x$ into the lossy reconstruction $x_{l}$ produced by BPG and the corresponding residual $r$ . We then learn a probabilistic model $p(r|x_{l})$ of the residual, conditionally on the lossy reconstruction $x_{l}$ . This probabilistic model is fully convolutional and can be evaluated using a single forward pass, both for encoding and decoding. We combine it with an arithmetic coder to losslessly compress the residual and store or transmit the image as the concatenation of the bitstrings produced by BPG and the residual compressor. Further, we use a computationally inexpensive technique from the generative modeling literature, tuning the "certainty" (temperature) of $p(r|x_{l})$ , as well as an auxiliary shallow classifier to predict the quantization parameter of BPG in order to optimize our compressor on a per-image basis. These components together lead to a state-of-the-art full-resolution learned lossless compression system. All of our code and data sets are available on github.1
+
+In contrast to recent work in lossless compression, we do not need to compute and store any side information (as opposed to L3C [29]), and our CNN is lightweight enough to train and evaluate on high-resolution natural images (as opposed to [18, 24], which have not been scaled to full-resolution images to our knowledge).
+
+In summary, our main contributions are:
+
+- We leverage the power of the classical state-of-the-art lossy compression algorithm BPG in a novel way to build a conceptually simple learned lossless image compression system.
+- Our system is optimized on a per-image basis with a light-weight post-training step, where we obtain a lower-bitrate probability distribution by adjusting the confidence of the predictions of our probabilistic model.
+- Our system outperforms the state-of-the-art in learned lossless full-resolution image compression, L3C [29], as well as the classical engineered algorithms WebP, JPEG200, PNG. Further, in contrast to L3C, we are also outperforming FLIF on Open Images, the domain where our approach (as well as L3C) is trained.
+
+# 2. Related Work
+
+Learned Lossless Compression Arguably most closely related to this paper, Mentzer et al. [29] build a computationally cheap hierarchical generative model (termed L3C) to enable practical compression on full-resolution images.
+
+Townsend et al. [47] and Kingma et al. [24] leverage the "bits-back scheme" [17] for lossless compression of an image stream, where the overall bitrate of the stream is reduced by leveraging previously transmitted information. Motivated by recent progress in generative modeling using (continuous) flow-based models (e.g. [35, 23]), Hooge-
+
+boom et al. [18] propose Integer Discrete Flows (IDFs), defining an invertible transformation for discrete data. In contrast to L3C, the latter works focus on smaller data sets such as MNIST, CIFAR-10, ImageNet32, and ImageNet64, where they achieve state-of-the-art results.
+
+Likelihood-Based Generative Modeling As mentioned in Section 1, virtually every generative model can be used for lossless compression, when used with an entropy coding algorithm. Therefore, while the following generative approaches do not take a compression perspective, they are still related. The state-of-the-art PixelCNN [50]-based models rely on auto-regression in RGB space to efficiently model a conditional distribution. The original PixelCNN [50] and PixelRNN [49] model the probability distribution of a pixel given all previous pixels (in raster-scan order). To use these models for lossless compression, $O(H \cdot W)$ forward passes are required, where $H$ and $W$ are the image height and width, respectively. Various speed optimizations and a probability model amendable to faster training were proposed in [39]. Different other parallelization techniques were developed, including those from [34], modeling the image distribution conditionally on subsampled versions of the image, as well as those from [25], conditioning on a RGB pyramid and grayscale images. Similar techniques were also used by [9, 31].
+
+Engineered Lossless Compression Algorithms The wide-spread PNG [33] applies simple autoregressive filters to remove redundancies from the RGB representation (e.g. replacing pixels with the difference to their left neighbor), and then uses the DEFLATE [11] algorithm for compression. In contrast, WebP [52] uses larger windows to transform the image (enabling patch-wise conditional compression), and relies on a custom entropy coder for compression. Mainly in use for lossy compression, JPEG 2000 [41] also has a lossless mode, where an invertible mapping from RGB to compression space is used. At the heart of FLIF [42] is an entropy coding method called "meta-adaptive near-zero integer arithmetic coding" (MANIAC), which is based on the CABAC method used in, e.g., H.264 [53]. In CABAC, the context model used to compress a symbol is selected from a finite set based on local context [36]. The "meta-adaptive" part in MANIAC refers to the context model which is a decision tree learned per image.
+
+Artifact Removal Artifact removal methods in the context of lossy compression are related to our approach in that they aim to make predictions about the information lost during the lossy compression process. In this context, the goal is to produce sharper and/or more visually pleasing images given a lossy reconstruction from, e.g., JPEG. Dong et al. [12] proposed the first CNN-based approach using a network inspired by super-resolution networks. [44] extends
+
+this using a residual structure, and [8] relies on hierarchical skip connections and a multi-scale loss. Generative models in the context of artifact removal are explored by [13], which proposes to use GANs [14] to obtain more visually pleasing results.
+
+# 3. Background
+
+# 3.1. Lossless Compression
+
+We give a very brief overview of lossless compression basics here and refer to the information theory literature for details [40, 10]. In lossless compression, we consider a stream of symbols $x_{1}, \ldots, x_{N}$ , where each $x_{i}$ is an element from the same finite set $\mathcal{X}$ . The stream is obtained by drawing each symbol $x_{i}$ independently from the same distribution $\tilde{p}$ , i.e., the $x_{i}$ are i.i.d. according to $\tilde{p}$ . We are interested in encoding the symbol stream into a bitstream, such that we can recover the exact symbols by decoding. In this setup, the entropy of $\tilde{p}$ is equal to the expected number of bits needed to encode each $x_{i}$ :
+
+$$
+H (\tilde {p}) = \operatorname {b i t s} (x _ {i}) = \mathbb {E} _ {x _ {i} \sim \tilde {p}} \left[ - \log_ {2} \tilde {p} (x _ {i}) \right].
+$$
+
+In general, however, the exact $\tilde{p}$ is unknown, and we instead consider the setup where we have an approximate model $p$ . Then, the expected bitrate will be equal to the cross-entropy between $\tilde{p}$ and $p$ , given by:
+
+$$
+H (\tilde {p}, p) = \mathbb {E} _ {x _ {i} \sim \tilde {p}} \left[ - \log_ {2} p (x _ {i}) \right]. \tag {1}
+$$
+
+Intuitively, the higher the discrepancy between the model $p$ used for coding is from the real $\tilde{p}$ , the more bits we need to encode data that is actually distributed according to $\tilde{p}$ .
+
+Entropy Coding Given a symbol stream $x_{i}$ as above and a probability distribution $p$ (not necessarily $\tilde{p}$ ), we can encode the stream using entropy coding. Intuitively, we would like to build a table that maps every element in $\mathcal{X}$ to a bit sequence, such that $x_{i}$ gets a short sequence if $p(x_{i})$ is high. The optimum is to output $\log_2 p(x_i)$ bits for symbol $x_{i}$ , which is what entropy coding algorithms achieve. Examples include Huffman coding [19] and arithmetic coding [54].
+
+In general, we can use a different distribution $p_i$ for every symbol in the stream, as long as the $p_i$ are also available for decoding. Adaptive entropy coding algorithms work by allowing such varying distributions as a function of previously encoded symbols. In this paper, we use adaptive arithmetic coding [54].
+
+# 3.2. Lossless Image Compression with CNNs
+
+As explained in the previous section, all we need for lossless compression is a model $p$ , since we can use entropy coding to encode and decode any input losslessly given $p$ .
+
+
+Figure 2. Histogram of the marginal pixel distribution of residual values obtained using BPG and $Q$ predicted from QC, on Open Images.
+
+In particular, we can use a CNN to parametrize $p$ . To this end, one general approach is to introduce (structured) side information $z$ available both at encoding and decoding time, and model the probability distribution of natural images $x^{(i)}$ conditionally on $z$ , using the CNN to parametrize $p(x|z)$ . Assuming that both the encoder and decoder have access to $z$ and $p$ , we can losslessly encode $x^{(i)}$ as follows: We first use the CNN to produce $p(x|z)$ . Then, we employ an entropy encoder (described in the previous section) with $p(x|z)$ to encode $x^{(i)}$ to a bitstream. To decode, we once again feed $z$ to the CNN, obtaining $p(x|z)$ , and decode $x^{(i)}$ from the bitstream using the entropy decoder.
+
+One key difference among the approaches in the literature is the factorization of $p(x|z)$ . In the original PixelCNN paper [49] the image $x$ is modeled as a sequence of pixels, and $z$ corresponds to all previous pixels. Encoding as well as decoding are done autoregressively. In IDF [18], $x$ is mapped to a $z$ using an invertible function, and $z$ is then encoded using a fixed prior $p(z)$ , i.e., $p(x|z)$ here is a deterministic function of $z$ . In approaches based on the bits-back paradigm [47, 24], while encoding, $z$ is obtained by decoding from additional available information (e.g. previously encoded images). In L3C [29], $z$ corresponds to features extracted with a hierarchical model that are also saved to the bitstream using hierarchically predicted distributions.
+
+# 3.3.BPG
+
+BPG is a lossy image compression method based on the HEVC video coding standard [43], essentially applying HEVC on a single image. To motivate our usage of BPG, we show the histogram of the marginal pixel distribution of the residuals obtained by BPG on Open Images (one of our testing sets, see Section 5.1) in Fig. 2. Note that while the possible range of a residual is $\{-255,\dots ,255\}$ , we observe that for most images, nearly every point in the residual is in the restricted set $\{-6,\ldots ,6\}$ , which is indicative of the high-PSNR nature of BPG. Additionally, Fig. A1 (in the suppl.) presents a comparison of BPG to the state-of-the-art learned image compression methods, showing that BPG is still very competitive in terms of PSNR.
+
+BPG follows JPEG in having a chroma format parameter to enable color space subsampling, which we disable by setting it to 4:4:4. The only remaining parameter to set
+
+is the quantization parameter $Q$ , where $Q \in \{1, \dots, 51\}$ . Smaller $Q$ results in less quantization and thus better quality (i.e., different to the quality factor of JPEG, where larger means better reconstruction quality). We learn a classifier to predict $Q$ , described in Section 4.4.
+
+# 4. Proposed Method
+
+We give an overview of our method in Fig. 1. To encode an image $x$ , we first obtain the quantization parameter $Q$ from the $Q$ -Classifier (QC) network (Section 4.4). Then, we compress $x$ with BPG, to obtain the lossy reconstruction $x_{l}$ which we save to a bitstream. Given $x_{l}$ , the Residual Compressor (RC) network (Section 4.1) predicts the probability mass function of the residual $r = x - x_{l}$ , i.e.,
+
+$$
+p (r | x _ {l}) = \operatorname {R C} (x _ {l}).
+$$
+
+We model $p(r|x_l)$ as a discrete mixture of logistic distributions (Section 4.2). Given $p(r|x_l)$ and $r$ , we compress $r$ to the bitstream using adaptive arithmetic coding algorithm (see Section 3.1). Thus, the bitstream $B$ consists of the concatenation of the codes corresponding to $x_l$ and $r$ . To decode $x$ from $B$ , we first obtain $x_l$ using the BPG decoder, then we obtain once again $p(r|x_l) = \mathrm{RC}(x_l)$ , and subsequently decode $r$ from the bitstream using $p(r|x_l)$ . Finally, we can reconstruct $x = x_l + r$ . In the formalism of Section 3.2, we have $x = r, z = x_l$ .
+
+Note that no matter how bad RC is at predicting the real distribution of $r$ , we can always do lossless compression. Even if RC were to predict, e.g., a uniform distribution—in that case, we would just need many bits to store $r$ .
+
+# 4.1. Residual Compressor
+
+We use a CNN inspired by ResNet [15] and U-Net [38], shown in detail in Fig. 3. We first extract an initial feature map $f_{\mathrm{in}}$ with $C_f = 128$ channels, which we then downscale using a stride-2 convolution, and feed through 16 residual blocks. Instead of BatchNorm [20] layers as in ResNet, our residual blocks contain GDN layers proposed by [5]. Subsequently, we upscale back to the resolution of the input image using a transposed convolution. The resulting features are concatenated with $f_{\mathrm{in}}$ , and convolved to contract the $2 \cdot C_f$ channels back to $C_f$ , like in U-Net. Finally, the network splits into four tails, predicting the different parameters of the mixture model, $\pi, \mu, \sigma, \lambda$ , described next.
+
+# 4.2. Logistic Mixture Model
+
+We use a discrete mixture of logistics to model the probability mass function of the residual, $p(r|x_l)$ , similar to [29, 39]. We closely follow the formulation of [29] here: Let $c$ denote the RGB channel and $u, v$ the spatial location. We define
+
+$$
+p (r | x _ {l}) = \prod_ {u, v} p \left(r _ {1 u v}, r _ {2 u v}, r _ {3 u v} \mid x _ {l}\right). \tag {2}
+$$
+
+We use a (weak) autoregression over the three RGB channels to define the joint distribution over channels via logistic mixtures $p_m$ :
+
+$$
+\begin{array}{l} p \left(r _ {1}, r _ {2}, r _ {3} \mid x _ {l}\right) = p _ {m} \left(r _ {1} \mid x _ {l}\right) \cdot p _ {m} \left(r _ {2} \mid x _ {l}, r _ {1}\right) \cdot \\ p _ {m} \left(r _ {3} \mid x _ {l}, r _ {2}, r _ {1}\right), \tag {3} \\ \end{array}
+$$
+
+where we removed the indices $uv$ to simplify the notation. For the mixture $p_m$ we use a mixture of $K = 5$ logistic distributions $p_{\mathrm{L}}$ . Our distributions are defined by the outputs of the RC network, which yields mixture weights $\pi_{cuv}^k$ , means $\mu_{cuv}^k$ , variances $\sigma_{cuv}^k$ , as well as mixture coefficients $\lambda_{cuv}^k$ . The autoregression over RGB channels is only used to update the means using a linear combination of $\mu$ and the target $r$ of previous channels, scaled by the coefficients $\lambda$ . We thereby obtain $\tilde{\mu}$ :
+
+$$
+\begin{array}{l} \tilde {\mu} _ {1 u v} ^ {k} = \mu_ {1 u v} ^ {k} \quad \tilde {\mu} _ {2 u v} ^ {k} = \mu_ {2 u v} ^ {k} + \lambda_ {\alpha u v} ^ {k} r _ {1 u v} \\ \tilde {\mu} _ {3 u v} ^ {k} = \mu_ {3 u v} ^ {k} + \lambda_ {\beta u v} ^ {k} r _ {1 u v} + \lambda_ {\gamma u v} ^ {k} r _ {2 u v}. \tag {4} \\ \end{array}
+$$
+
+With these parameters, we can define
+
+$$
+p _ {m} \left(r _ {c u v} \mid x _ {l}, r _ {\text {p r e v}}\right) = \sum_ {k = 1} ^ {K} \pi_ {c u v} ^ {k} p _ {\mathrm {L}} \left(r _ {c u v} \mid \tilde {\mu} _ {c u v} ^ {k}, \sigma_ {c u v} ^ {k}\right), \tag {5}
+$$
+
+where $r_{\mathrm{prev}}$ denotes the channels with index smaller than $c$ (see Eq. 3), used to obtain $\tilde{\mu}$ as shown above, and $p_{\mathrm{L}}$ is the logistic distribution:
+
+$$
+p _ {\mathrm {L}} (r | \mu , \sigma) = \frac {e ^ {- (r - \mu) / \sigma}}{\sigma (1 + e ^ {- (r - \mu) / \sigma}) ^ {2}}.
+$$
+
+We evaluate $p_{\mathrm{L}}$ at discrete $r$ , via its CDF, as in [39, 29], evaluating
+
+$$
+p _ {\mathrm {L}} (r) = \operatorname {C D F} (r + 1 / 2) - \operatorname {C D F} (r - 1 / 2). \tag {6}
+$$
+
+# 4.3. Loss
+
+As motivated in Section 3.1, we are interested in minimizing the cross-entropy between the real distribution of the residual $\tilde{p}(r)$ and our model $p(r)$ : the smaller the cross-entropy, the closer $p$ is to $\tilde{p}$ , and the fewer bits an entropy coder will use to encode $r$ . We consider the setting where we have $N$ training images $x^{(1)}, \ldots, x^{(N)}$ . For every image, we compute the lossy reconstruction $x_{l}^{(i)}$ as well as the corresponding residual $r^{(i)} = x^{(i)} - x_{l}^{(i)}$ . While the true distribution $\tilde{p}(r)$ is unknown, we can consider the empirical distribution obtained from the samples and minimize:
+
+$$
+\mathcal {L} (R C) = - \sum_ {i = 1} ^ {N} \log p \left(r ^ {(i)} \mid x _ {l} ^ {(i)}\right). \tag {7}
+$$
+
+This loss decomposes over samples, allowing us to minimize it over mini-batches. Note that minimizing Eq. 7 is the same as maximizing the likelihood of $p$ , which is the perspective taken in the likelihood-based generative modeling literature.
+
+
+Figure 3. The architecture of the residual compressor (RC). On the left, we show a zoom-in of the Residual Block and the Tail networks. Given $x_{l}$ , the lossy reconstruction of the image $x$ , the network predicts the probability distribution of the residual, $p(r|x_{l})$ . This distribution is a mixture of logistics parametrized via $\mu, \sigma, \pi, \lambda$ .
+
+# 4.4. Q-Classifier
+
+A random set of natural images is expected to contain images of varying "complexity", where complex can mean a lot of high frequency structure and/or noise. While virtually all lossy compression methods have a parameter like BPG's $Q$ , to navigate the trade-off between bitrate and quality, it is important to note that compressing a random set of natural images with the same fixed $Q$ will usually lead to the bitrates of these images being spread around some $Q$ -dependent mean. Thus, in our approach, it is suboptimal to fix $Q$ for all images.
+
+Indeed, in our pipeline we have a trade-off between the bits allocated to BPG and the bits allocated to encoding the residual. This trade-off can be controlled with $Q$ : For example, if an image contains components that are easier for the RC network to model, it is beneficial to use a higher $Q$ , such that BPG does not waste bits encoding these components. We observe that for a fixed image, and a trained RC, there is a single optimal $Q$ .
+
+To efficiently obtain a good $Q$ , we train a simple classifier network, the Q-Classifier (QC), and then use $Q = \mathrm{QC}(x)$ to compress $x$ with BPG. For the architecture, we use a light-weight ResNet-inspired network with 8 residual blocks for QC, and train it to predict a class in $\mathcal{Q} = \{11,\dots ,17\}$ , given an image $x$ ( $\mathcal{Q}$ was selected using the Open Images validation set). In contrast to ResNet, we employ no normalization layers (to ensure that the prediction is independent of the input size). Further, the final features are obtained by average pooling each of the final $C_f = 256$ channels of the $C_f\times H'\times W'$ -dimensional feature map. The resulting $C_f$ -dimensional vector is fed to a fully connected layer, to obtain the logits for the $|\mathcal{Q}|$ classes, which are then normalized with a softmax. Details are shown in Section A.1 in the supplementary material.
+
+While the input to QC is the full-resolution image, the network is shallow and downsamples multiple times, making this a computationally lightweight component.
+
+# 4.5. $\tau$ -Optimization
+
+Inspired by the temperature scaling employed in the generative modeling literature (e.g. [22]), we further optimize the predicted distribution $p$ with a simple trick: Intuitively, if RC predicts a $\mu_{cuv}$ that is close to the target $r_{cuv}$ , we can make the cross-entropy in Eq. 7 (and thus the bitrate) smaller by making the predicted logistic "more certain" by choosing a smaller $\sigma$ . This shifts probability mass towards $r_{cuv}$ . However, there is a breaking point, where we make it "too certain" (i.e., the probability mass concentrates too tightly around $\mu_{cuv}$ ) and the cross-entropy increases again.
+
+While RC is already trained to learn a good $\sigma$ , the prediction is only based on $x_{l}$ . We can improve the final bitrate during encoding, when we additionally have access to the target $r_{cuv}$ , by rescaling the predicted $\sigma_{cuv}^{k}$ with a factor $\tau_{c}^{k}$ , chosen for every mixture $k$ and every channel $c$ . This yields a more optimal $\tilde{\sigma}_{cuv}^{k} = \tau_{c}^{k} \cdot \sigma_{cuv}^{k}$ . Obviously, $\tau$ also needs to be known for decoding, and we thus have to transmit it via the bitstream. However, since we only learn a $\tau$ for every channel and every mixture (and not for every spatial location), this causes a completely negligible overhead of $C \cdot K = 3 \cdot 5$ floats = 60 bytes.
+
+We find $\tau_c^k$ for a given image $x^{(i)}$ by minimizing the likelihood in Eq. 7 on that image, i.e., we optimize
+
+$$
+\min _ {\tau} \sum_ {c, u, v} \log p _ {\tau} \left(r ^ {(i)} \mid x _ {l, c u v} ^ {(i)}\right), \tag {8}
+$$
+
+where $p_{\tau}$ is equal to $p$ predicted from RC but using $\tilde{\sigma}_{cuv}^{k}$ . To optimize Eq. 8, we use stochastic gradient descent with a very high learning rate of $9\mathrm{E}^{-2}$ and momentum 0.9, which converges in 10-20 iterations, depending on the image.
+
+We note that this is also computationally cheap. Firstly, we only need to do the forward pass through RC once, to get $\mu, \sigma, \lambda, \pi$ , and then in every step of the $\tau$ -optimization, we only need to evaluate $\tau_c^k \cdot \sigma_{cuv}^k$ and subsequently Eq. 8. Secondly, the optimization is only over 15 parameters. Finally, since for practical $H \times W$ -dimensional images, $15 \ll H \cdot W$ , we can do the sum in Eq. 8 over a $4 \times$ spatially subsampled version of $p_\tau$ .
+
+| [bps] | Open Images | CLIC-mobile | CLIC.pro | DIV2K |
| RC (Ours) | 2.790 | 2.538 | 2.933 | 3.079 |
| L3C | 2.991 +7.2% | 2.639 +4.0% | 2.944 +0.4% | 3.094 +0.5% |
| PNG | 4.005 +44% | 3.896 +54% | 3.997 +36% | 4.235 +38% |
| JPEG2000 | 3.055 +9.5% | 2.721 +7.2% | 3.000 +2.3% | 3.127 +1.6% |
| WebP | 3.047 +9.2% | 2.774 +9.3% | 3.006 +2.5% | 3.176 +3.2% |
| FLIF | 2.867 +2.8% | 2.492 -1.8% | 2.784 -5.1% | 2.911 -5.5% |
+
+# 5. Experiments
+
+# 5.1.Data sets
+
+Training Like L3C [29], we train on 300 000 images from the Open Images data set [26]. These images are made available as JPEGs, which is not ideal for the lossless compression task we are considering, but we are not aware of a similarly large scale lossless training data set. To prevent overfitting on JPEG artifacts, we downscale each training image using a factor randomly selected from $[0.6, 0.8]$ by means of the Lanczos filter provided by the Pillow library [32]. For a fair comparison, the L3C baseline results were also obtained by training on the exact same data set.
+
+Evaluation We evaluate our model on four data sets: Open Images is a subset of 500 images from Open Images validation set, preprocessed like the training data. CLIC-mobile and CLIC.pro are two new data sets commonly used in recent image compression papers, released as part of the "Workshop and Challenge on Learned Image Compression" (CLIC) [1]. CLIC/mobile contains 61 images taken using cell phones, while CLIC.pro contains 41 images from DSLRs, retouched by professionals. Finally, we evaluate on the 100 images from DIV2K [3], a super-resolution data set with high-quality images. We show examples from these data sets in Section A.3.
+
+For a small fraction of exceptionally high-resolution images (note that the considered testing sets contain images of widely varying resolution), we follow L3C in extracting 4 non-overlapping crops $x_{c}$ from the image $x$ such that combining $x_{c}$ yields $x$ . We then compress the crops individually. However, we evaluate the non-learned baselines on the full images to avoid a bias in favor of our method.
+
+# 5.2. Training Procedures
+
+Residual Compressor We train for 50 epochs on batches of 16 random $128 \times 128$ crops extracted from the training set, using the RMSProp optimizer [16]. We start with an initial learning rate (LR) of $5\mathrm{E}^{-5}$ , which we decay every 100 000 iterations by a factor of 0.75. Since our Q-Classifier is trained on the output of a trained RC network,
+
+it is not available while training the RC network. Thus, we compress the training images with a random $Q$ selected from $\{12, 13, 14\}$ , obtaining a pair $(x, x_l)$ for every image.
+
+Q-Classifier Given a trained RC network, we randomly select $10\%$ of the training set, and compress each selected image $x$ once for each $Q \in \mathcal{Q}$ , obtaining a $x_{l}^{(Q)}$ for each $Q \in \mathcal{Q}$ . We then evaluate RC for each pair $(x, x_{l}^{(Q)})$ to find the optimal $Q'$ that gives the minimum bitrate for that image. The resulting list of pairs $(x, x_{l}^{(Q')})$ forms the training set for the QC. For training, we use a standard cross-entropy loss between the softmax-normalized logits and the one-hot encoded ground truth $Q'$ . We train for 11 epochs on batches of 32 random $128 \times 128$ crops, using the Adam optimizer [21]. We set the initial LR to the Adam-default $1E^{-4}$ , and decay after 5 and 10 epochs by a factor of 0.25.
+
+# 5.3. Architecture and Training Ablations
+
+Training on Fixed $Q$ As noted in Section 5.2, we select a random $Q$ during training, since QC is only available after training. We explored fixing $Q$ to one value (trying $Q \in \{12, 13, 14\}$ ) and found that this hurts generalization performance. This may be explained by the fact that RC sees more varied residual statistics during training if we have random $Q$ 's.
+
+Effect of the Crop Size Using crops of $128 \times 128$ to train a model evaluated on full-resolution images may seem too constraining. To explore the effect of crop size, we trained different models, each seeing the same number of pixels in every iteration, but distributed differently in terms of batch size vs. crop size. We trained each model for 600 000 iterations, and then evaluated on the Open Images validation set (using a fixed $Q = 14$ for training and testing). The results are shown in the following table and indicate that smaller crops and bigger batch-sizes are beneficial.
+
+Table 1. Compression performance of the proposed method (RC) compared to the learned L3C [29], as well as the classical engineered approaches PNG, JPEG2000, WebP, and FLIF. We show the difference in percentage to our approach, using green to indicate that we achieve a better bpsp and red otherwise.
+
+| Batch Size | Crop Size | BPSP on Open Images |
| 16 | 128×128 | 2.854 |
| 4 | 256×256 | 2.864 |
| 1 | 512×512 | 2.877 |
+
+GDN We found that the GDN layers are crucial for good performance. We also explored instance normalization, and conditional instance normalization layers, in the latter case conditioning on the bitrate of BPG, in the hope that this would allow the network to distinguish different operation modes. However, we found that instance normalization is more sensitive to the resolution used for training, which led worse overall bitrates.
+
+# 6. Results and Discussion
+
+# 6.1. Compression performance in bpsp
+
+We follow previous work in evaluating bits per subpixel (Each RGB pixel has 3 subpixels), bpsp for short, sometimes called bits per dimension. In Table 1, we show the performance of our approach on the described test sets. On Open Images, the domain where we train, we are outperforming all methods, including FLIF. Note that while L3C was trained on the same data set, it does not outperform FLIF. On the other data sets, we consistently outperform both L3C and the non-learned approaches PNG, WebP, and JPEG2000.
+
+These results indicate that our simple approach of using a powerful lossy compressor to compress the high-level image content and leverage a complementary learned probabilistic model to model the low level variations for lossless residual compression is highly effective. Even though we only train on Open Images, our method can generalize to various domains of natural images: mobile phone pictures (CLIC-mobile), images retouched by professional photographers (CLIC.pro), as well as high-quality images with diverse complex structures (DIV2K).
+
+
+Figure 4. Top: Distribution of bpsp, on the 500 images from Open Images validation set. The images are sorted by the bpsp achieved using our approach. We show PNG and FLIF, as well as the bpsp needed to store the lossy reconstruction only (" $x_{l}$ only"). Bottom: Fraction of total bits used by our approach that are used to store $x_{l}$ . Images follow the same order as on the top panel.
+
+In Fig. 4 we show the bpsp of each of the 500 images of Open Images, when compressed using our method, FLIF, and PNG. For our approach, we also show the bits used to store $x_{l}$ for each image, measured in bpsp on top (" $x_{l}$ only"), and as a percentage on the bottom. The percentage averages at $42\%$ , going up towards the high-bpsp end of the figure. This plot shows the wide range of bpsp covered by a random set of natural images, and motivates our Q-Classifier. We can also see that while our method tends to outperform FLIF on average, FLIF is better for some high-bpsp images, where the bpsp of both FLIF and our method approach that of PNG.
+
+# 6.2. Runtime
+
+We compare the decoding speed of RC to that of L3C for $512 \times 512$ images, using an NVidia Titan XP. For our components: BPG: 163ms; RC: 166ms; arithmetic coding: 89.1ms; i.e., in a total 418ms, compared to L3C's 374ms.
+
+QC and $\tau$ -optimization are only needed for encoding. We discussed above that both components are computationally cheap. In terms of actual runtime: QC: 6.48ms; $\tau$ -optimization: 35.2ms.
+
+# 6.3. Q-Classifier and $\tau$ -Optimization
+
+In Table 2 we show the benefits of using the Q-Classifier as well as the $\tau$ -optimization. We show the resulting bpsp for the Open Images validation set (top) and for DIV2K (bottom), as well as the percentage of predicted $Q$ that are $\pm 1$ away from the optimal $Q'$ (denoted " $\pm 1$ to $Q''$ ), against a baseline of using a fixed $Q = 14$ (the mean over QC's training set, see Section 5.2). The last column shows the required number of forward passes through RC.
+
+Q-Classifier We first note that even though the QC was only trained on Open Images (see Sec 5.2), we get similar behavior on Open Images and DIV2K. Moreover, we see that using QC is clearly beneficial over using a fixed $Q$ for all images, and only incurs a small increase in bpsp compared to using the optimal $Q'$ (0.18% for Open Images, 0.26% for DIV2K). This can be explained by the fact that QC manages to predict $Q$ within $\pm 1$ of $Q'$ for 94.8% of the images in Open Images and 90.2% of the DIV2K images.
+
+Furthermore, the small increase in bpsp is traded for a reduction from requiring 7 forward passes to compute $Q'$ to a single one. In that sense, using the QC is similar to the "fast" modes common in image compression algorithms, where speed is traded against bitrate.
+
+$\tau$ -Optimization Table 2 shows that using $\tau$ -Optimization on top of QC reduces the bitrate on both testing sets.
+
+Discussion While the gains of both components are small, their computational complexity is also very low (see Section 6.2). As such, we found it quite impressive to get the
+
+
+Input/Output $x$
+
+
+Lossy reconstruction $x_{l}$
+
+
+Residual $r = x - x_{l}$
+
+
+Two samples from our predicted $p(r|x_{l})$
+
+
+
+
+Figure 5. Visualizing the learned distribution $p(r|x_l)$ by sampling from it. We compare the samples to the ground-truth target residual $r$ . We also show the image $x$ that we losslessly compress as well as the lossy reconstruction $x_l$ obtained from BPG. For easier visualizations, pixels in the residual images equal to 0 are set to white, instead of gray. Best viewed on screen due to the high-frequency noise.
+
+
+
+
+
+
+
+
+
+reported gains. We believe the direction of tuning a handful of parameters post training on an instance basis is a very promising direction for image compression. One fruitful direction could be using dedicated architectures and including a tuning step end-to-end as in meta learning.
+
+# 6.4. Visualizing the learned $p(r|x_l)$
+
+While the bpsp results from the previous section validate the compression performance of our model, it is interesting to investigate the distribution predicted by RC. Note that we predict a mixture distribution per pixel, which is hard to visualize directly. Instead, we sample from the predicted
+
+| Data set | Setup | bpsp | ±1 to Q' | # forward |
| Open Images | Optimal Q' | 2.789 | 100% | |Q|=7 |
| Fixed Q=14 | 2.801 | 82.6% | 1 |
| Our QC | 2.794 | 94.8% | 1 |
| Our QC+τ | 2.790 | | 1 |
| DIV2K | Optimal Q' | 3.080 | 100% | |Q|=7 |
| Fixed Q=14 | 3.096 | 73.0% | 1 |
| Our QC | 3.088 | 90.2% | 1 |
| Our QC+τ | 3.079 | | 1 |
+
+Table 2. On Open Images and DIV2K, we compare using the optimal $Q'$ for encoding images, vs. a fixed $Q = 14$ and vs. using $Q$ predicted by the Q-Classifier. For each data set, the last row shows the additional gains obtained from applying the $\tau$ -optimization. The forth column shows the percentage of predicted $Q$ that are $\pm 1$ away from the optimal $Q'$ and the last column corresponds to the number of forward passes required for $Q$ -optimization.
+
+distribution. We expect the samples to be visually similar to the ground-truth residual $r = x - x_{l}$ .
+
+The sampling results are shown in Fig. 5, where we visualize two images from CLIC.pro with their lossy reconstructions, as obtained by BPG. We also show the ground-truth residuals $r$ . Then, we show two samples obtained from the probability distribution $p(r|x_l)$ predicted by our RC network. For the top image, $r$ is in $\{-9,\dots ,9\}$ , for the bottom it is in $\{-5,\ldots ,4\}$ (cf. Fig. 2), and we re-normalized $r$ to the RGB range $\{0,\dots ,255\}$ for visualization, but to reduce eye strain we replaced the most frequent value (128, i.e., gray), with white.
+
+We can clearly see that our approach i) learned to model the noise patterns discarded by BPG inherent with these images, ii) learned to correctly predict a zero residual where BPG manages to perfectly reconstruct, and iii) learned to predict structures similar to the ones in the ground-truth.
+
+# 7. Conclusion
+
+In this paper, we showed how to leverage BPG to achieve state-of-the-art results in full-resolution learned lossless image compression. Our approach outperforms L3C, PNG, WebP, and JPEG2000 consistently, and also outperforms the hand-crafted state-of-the-art FLIF on images from the Open Images data set. Future work should investigate input-dependent optimizations, which are also used by FLIF and which we started to explore here by optimizing the scale of the probabilistic model for the residual ( $\tau$ -optimization). Similar approaches could also be applied to latent probability models of lossy image and video compression methods.
+
+# References
+
+[1] Workshop and Challenge on Learned Image Compression. https://www.compression.cc/challenge/.6
+[2] Eirikur Agustsson, Fabian Mentzer, Michael Tschannen, Lukas Cavigelli, Radu Timofte, Luca Benini, and Luc Van Gool. Soft-to-Hard Vector Quantization for End-to-End Learning Compressible Representations. In NIPS, 2017. 1
+[3] Eirikur Agustsson and Radu Timofte. NTIRE 2017 Challenge on Single Image Super-Resolution: Dataset and Study. In CVPR Workshops, 2017. 6
+[4] Eirikur Agustsson, Michael Tschannen, Fabian Mentzer, Radu Timofte, and Luc Van Gool. Generative Adversarial Networks for Extreme Learned Image Compression. In ICCV, 2019. 1
+[5] Johannes Ballé, Valero Laparra, and Eero P Simoncelli. Density modeling of images using a generalized normalization transformation. arXiv preprint arXiv:1511.06281, 2015. 4
+[6] Johannes Ballé, Valero Laparra, and Eero P Simoncelli. End-to-end Optimized Image Compression. *ICLR*, 2016. 1
+[7] Fabrice Bellard. BPG Image format. https:// bellard.org/bpg/.1
+[8] Lukas Cavigelli, Pascal Hager, and Luca Benini. Cas-cnn: A deep convolutional neural network for image compression artifact suppression. In IJCNN, pages 752-759, 2017. 3
+[9] Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. PixelSNAIL: An Improved Autoregressive Generative Model. In ICML, 2018. 2
+[10] Thomas M Cover and Joy A Thomas. Elements of Information Theory. John Wiley & Sons, 2012. 3
+[11] Peter Deutsch. DEFLATE compressed data format specification version 1.3. Technical report, 1996. 2
+[12] Chao Dong, Yubin Deng, Chen Change Loy, and Xiaou Tang. Compression artifacts reduction by a deep convolutional network. In ICCV, pages 576-584, 2015. 2
+[13] Leonardo Galteri, Lorenzo Seidenari, Marco Bertini, and Alberto Del Bimbo. Deep generative adversarial compression artifact removal. In ICCV, pages 4826-4835, 2017. 3
+[14] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014. 3
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 4, 11
+[16] Geoffrey Hinton, Nitish Srivastava, and Kevin Swersky. Neural Networks for Machine Learning Lecture 6a Overview of mini-batch gradient descent. 6
+[17] Geoffrey Hinton and Drew Van Camp. Keeping neural networks simple by minimizing the description length of the weights. In $COLT$ , 1993. 2
+[18] Emiel Hoogeboom, Jorn WT Peters, Rianne van den Berg, and Max Welling. Integer discrete flows and lossless compression. In NIPS, 2019. 1, 2, 3
+[19] David A Huffman. A method for the construction of minimum-redundancy codes. Proc. IRE, 40(9):1098-1101, 1952. 3
+
+[20] Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In ICML, 2015. 4
+[21] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 6
+[22] Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018. 5
+[23] Durk P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In NIPS, 2016. 2
+[24] Friso H Kingma, Pieter Abbeel, and Jonathan Ho. Bit-swap: Recursive bits-back coding for lossless compression with hierarchical latent variables. In ICML, 2019. 1, 2, 3
+[25] Alexander Kolesnikov and Christoph H Lampert. PixelCNN Models with Auxiliary Variables for Natural Image Modeling. In ICML, 2017. 1, 2
+[26] Ivan Krasin, Tom Duerig, Neil Alldrin, Vittorio Ferrari, Sami Abu-El-Haija, Alina Kuznetsova, Hassan Rom, Jasper Uijlings, Stefan Popov, Shahab Kamali, Matteo Malloci, Jordi Pont-Tuset, Andreas Veit, Serge Belongie, Victor Gomes, Abhinav Gupta, Chen Sun, Gal Chechik, David Cai, Zheyun Feng, Dhyanesh Narayanan, and Kevin Murphy. OpenImages: A public dataset for large-scale multi-label and multi-class image classification. Dataset available from https://storage.googleapis.com/openimages/web/index.html, 2017. 6
+[27] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. 1
+[28] Fabian Mentzer, Eirikur Agustsson, Michael Tschannen, Radu Timofte, and Luc Van Gool. Conditional Probability Models for Deep Image Compression. In CVPR, 2018. 1
+[29] Fabian Mentzer, Eirikur Agustsson, Michael Tschannen, Radu Timofte, and Luc Van Gool. Practical full resolution learned lossless image compression. In CVPR, 2019. 1, 2, 3, 4, 6
+[30] David Minnen, Johannes Ballé, and George D Toderici. Joint Autoregressive and Hierarchical Priors for Learned Image Compression. In NeurIPS. 2018. 1, 11
+[31] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Łukasz Kaiser, Noam Shazeer, and Alexander Ku. Image Transformer. ICML, 2018. 2
+[32] Pillow Library for Python. https://python-pillow.org.6
+[33] Portable Network Graphics (PNG). http://libpng.org/pub/png/libpng.html.2
+[34] Scott Reed, Aaron Oord, Nal Kalchbrenner, Sergio Gomez Colmenarejo, Ziyu Wang, Yutian Chen, Dan Belov, and Nando Freitas. Parallel Multiscale Autoregressive Density Estimation. In ICML, 2017. 1, 2
+[35] Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015. 2
+[36] Iain E Richardson. H. 264 and MPEG-4 video compression: video coding for next-generation multimedia. John Wiley & Sons, 2004. 2
+
+[37] Oren Rippel and Lubomir Bourdev. Real-Time Adaptive Image Compression. In ICML, 2017. 1
+[38] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, pages 234-241, 2015. 4
+[39] Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P. Kingma. PixelCNN++: A PixelCNN Implementation with Discretized Logistic Mixture Likelihood and Other Modifications. In ICLR, 2017. 1, 2, 4
+[40] C. E. Shannon. A Mathematical Theory of Communication. Bell System Technical Journal, 27(3):379-423, 1948. 1, 3
+[41] Athanassios Skodras, Charilaos Christopoulos, and Touradj Ebrahimi. The JPEG 2000 still image compression standard. IEEE Signal Processing Magazine, 18(5):36-58, 2001. 2
+[42] J. Sneyers and P. WUILLE. FLIF: Free lossless image format based on MANIAC compression. In ICIP, 2016. 2
+[43] Gary J Sullivan, Jens-Rainer Ohm, Woo-Jin Han, and Thomas Wiegand. Overview of the high efficiency video coding (hevc) standard. IEEE Transactions on Circuits and Systems for Video Technology, 22(12):1649-1668, 2012. 1, 3
+[44] Pavel Svoboda, Michal Hradis, David Barina, and Pavel Zemcik. Compression artifacts removal using convolutional neural networks. arXiv preprint arXiv:1605.00366, 2016. 2
+[45] Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszar. Lossy Image Compression with Compressive Autoencoders. In ICLR, 2017. 1
+[46] George Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full Resolution Image Compression with Recurrent Neural Networks. In CVPR, 2017. 1
+[47] James Townsend, Tom Bird, and David Barber. Practical lossless compression with latent variables using bits back coding. In ICLR, 2019. 1, 2, 3
+[48] Michael Tschannen, Eirikur Agustsson, and Mario Lucic. Deep Generative Models for Distribution-Preserving Lossy Compression. In NeurIPS. 2018. 1
+[49] Aäron van den Oord, Nal Kalchbrenner, Lasse Espeholt, kōray kavukcuoglu, Oriol Vinyals, and Alex Graves. Conditional Image Generation with PixelCNN Decoders. In NIPS, 2016. 1, 2, 3
+[50] Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel Recurrent Neural Networks. In ICML, 2016. 1, 2
+[51] Gregory K Wallace. The JPEG still picture compression standard. IEEE Transactions on Consumer Electronics, 38(1):xviii-xxxiv, 1992. 1
+[52] WebP Image format. https://developers.google.com/speed/webp/.2
+[53] Thomas Wiegand, Gary J Sullivan, Gisle Bjontegaard, and Ajay Luthra. Overview of the h. 264/avc video coding standard. IEEE Transactions on Circuits and Systems for Video Technology, 13(7):560-576, 2003. 1, 2
+[54] Ian H Witten, Radford M Neal, and John G Cleary. Arithmetic coding for data compression. Communications of the ACM, 30(6):520-540, 1987. 3
\ No newline at end of file
diff --git a/learningbetterlosslesscompressionusinglossycompression/images.zip b/learningbetterlosslesscompressionusinglossycompression/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8c490e2cc8f0037f0c92cfdeebadc29f307fa531
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de71a1ad3a4a1be2106849ae6437035c24c5e5858172ec9de5723c751b0a9f48
+size 503912
diff --git a/learningbetterlosslesscompressionusinglossycompression/layout.json b/learningbetterlosslesscompressionusinglossycompression/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6292f132c0af9d0a28d83953c92e8a3ff83638a9
--- /dev/null
+++ b/learningbetterlosslesscompressionusinglossycompression/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6eda235408d17213be9d2734278a7c8bd8b902c135402268cb12d9cbf851d998
+size 576322
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_content_list.json b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6eae648062a2c63ca35a5c65e1a00240bbeb680d
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:01e31c591cac0033346b28188b062ec697bb59aac67dde544ee9a404eb29ed50
+size 66882
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_model.json b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4d9355a287ae2f38a2fefdb05a47c38b271fd006
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:74719cf850d6887f6694468392f26552a6711ef19483f7dc8c112ef05332785f
+size 83079
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_origin.pdf b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b2cef838d61e10612fda03e9a02edbdb94ca351c
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/30ecdee8-6a06-4e9d-978a-9152ece9d83d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8f19b0d1c47f69708eab7120d19d0f512a3af06d56bb3e0465654194eed52b47
+size 2754478
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/full.md b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..13defe7d0ab9aafacc871f4e1965d923ca0affb2
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/full.md
@@ -0,0 +1,265 @@
+# Learning Canonical Shape Space for Category-Level 6D Object Pose and Size Estimation
+
+Dengsheng Chen $^{1,*}$ Jun Li $^{1,*}$
+
+$^{1}$ National University of Defense Technology
+
+Zheng Wang $^{3}$ Kai Xu $^{1,2,\dagger}$
+
+$^{2}$ SpeedBot Robotics Ltd. Taobao.com
+
+# Abstract
+
+We present a novel approach to category-level 6D object pose and size estimation. To tackle intra-class shape variations, we learn canonical shape space (CASS), a unified representation for a large variety of instances of a certain object category. In particular, CASS is modeled as the latent space of a deep generative model of canonical 3D shapes with normalized pose. We train a variational auto-encoder (VAE) for generating 3D point clouds in the canonical space from an RGBD image. The VAE is trained in a cross-category fashion, exploiting the publicly available large 3D shape repositories. Since the 3D point cloud is generated in normalized pose (with actual size), the encoder of the VAE learns view-factorized RGBD embedding. It maps an RGBD image in arbitrary view into a pose-independent 3D shape representation. Object pose is then estimated via contrasting it with a pose-dependent feature of the input RGBD extracted with a separate deep neural networks. We integrate the learning of CASS and pose and size estimation into an end-to-end trainable network, achieving the state-of-the-art performance.
+
+# 1. Introduction
+
+6D object pose estimation based on a single-view RGB(D) image is an essential building block for several real-world applications ranging from robotic navigation and manipulation to augmented reality. Most existing works have so far been addressing instance-level 6D pose estimation where each target object has a corresponding CAD model with exact shape and size [17]. Thereby, the problem is largely reduced to finding sparse or dense correspondence between the target object and the stock 3D model. Pose hypotheses can then be generated and verified based on the correspondences. Although enjoying high pose accuracy, the requirement of exact CAD models by these techniques hinders their practical use in many application scenarios.
+
+
+Figure 1: We present a method for category-level 6D object pose and size estimation (left) via learning canonical shape space. The input RGBD image is embedded into the shape space, resulting in a view-factorized RGBD embedding. Object pose is then estimated via contrasting it with a pose-dependent feature of the input RGBD. A side-product of our method is the full-shape reconstruction of the input single-view RGBD, which supports not only size calculation but also precise robotic grasping. In the figure, the reconstructed 3D point clouds are placed into the scene point cloud (unprojected from the input depth map). Two of them are highlighted in the middle.
+
+
+
+Recently, category-level 6D object pose estimation starts to gain attention [21,29]. In this problem, the target object of a shape category is unseen before and no CAD model is available, although some other instances of the same category may have been seen. Therefore, the major challenge is how to deal with intra-class variation [20]. In general, household objects could exhibit significant variations in color, texture, shape and size even within the same category. Without an exactly same CAD model, correspondence-based approach would find difficulty given the considerable intra-class shape variation.
+
+To resolve this, a unified representation for a variety of instances of an object category is needed, to which the target object in observation could be "matched". The recently proposed Normalized Object Coordinate Space (NOCS) [29] is a nice example of such unified representation. Based on this representation, category-level object poses can be estimated with high accuracy through mapping each pixel of the in-
+
+put image to a point in NOCS. Finding dense mappings between NOCS and an unseen object, however, is an ill-posed problem under significant shape variation. Therefore, a generalizable mapping function accommodating large amount of unknown shape variants can be difficult to learn.
+
+In this work, we propose to learn a canonical shape space (CASS) as our unified representation. CASS is modeled by the latent space of a deep generative model of canonical 3D shapes with normalized pose and actual metric size. In particular, we train a variational auto-encoder (VAE) for generating 3D point clouds in the canonical space from an RGBD image. The VAE is trained in a cross-category fashion, exploiting the publicly available large 3D shape repositories. Since the 3D point cloud is generated with normalized pose and metric size, the encoder of the VAE learns view-factorized RGBD embedding. It maps an RGBD image in arbitrary view into a pose-independent 3D shape representation. Object pose can then be estimated via contrasting it with a pose-dependent feature of the input RGBD extracted with a separate deep neural networks (Figure 1). This circumvents the difficulty in estimating dense correspondence between two representations as in other methods [17,29].
+
+We integrate the learning of CASS and pose and size estimation into an end-to-end trainable network which involves several key designs. First, through learning the canonical shape space with plentiful shape variants, we obtain a unified representation encompassing adequate shape variations. Second, to overcome the lack of real-world training images with 3D point clouds, we enhance the encoder of the VAE to take both RGBD images and 3D shapes as input. This allows us to train the VAE through exploiting off-the-shelf 3D shape repositories. Third, in realizing pose estimation, we opt for feature contrasting over dense correspondence, leading to better generality to unseen instances. Meanwhile, to match the distributions of pose-dependent and pose-independent features so that pose estimation can be easily trained, we propose a few crucial designs, e.g., network weight sharing and training batch mixing. Last, our VAE model is able to reconstruct a 3D point cloud of the target object with metric size, which reduces the learning difficulty by decoupling the estimation of pose and size.
+
+Through evaluating on public category-level datasets, we show that our method archives the state-of-the-art pose accuracy and comparably high size accuracy. Our work makes the following contributions:
+
+- We propose a novel correspondence-free approach to category-level object pose and size estimation based on learned canonical shape space.
+- We design an end-to-end trainable deep neural network for jointly learning the canonical shape space and estimating object pose and size.
+
+- We devise several key designs to ease the network training such as distribution matching between pose-dependent and pose-independent features.
+
+# 2. Related Work
+
+Instance-level approaches. Many works on instance-level 6D pose estimation adopt template-based methods [11, 15]. In these methods, a set of RGB(D) templates rendered from CAD models in various poses are matched against the input image in a sliding-window fashion, based on hand-designed or learned feature descriptors. The final pose is retrieved from the best matched template or estimated by 3D model registration. Another group of works pursue to match the target object to the corresponding 3D model. Depending on the input modality, the core task is to find 2D-to-3D [8, 12], 2.5D(depth)-to-3D [5, 6] or 3D-to-3D correspondence [1]. Several other works opt to learn a 6D object pose regressor directly from the feature descriptions [22, 25]. Brachmann et al. [3] learn to regress an object coordinate representation which can then be used in pose estimation.
+
+Learning effective feature representation using convolutional neural networks (CNNs) for robust matching has become a main focus of the recent literature [2, 14, 24, 30, 33]. Another line of works utilize CNNs to detect feature points or corner points [19, 26]. PVNet [17] is a unique approach of feature point detection using CNNs: A vector field is estimated for the input RGB image based on which the feature points are voted. Some other works choose to learn an end-to-end deep model that can directly regress 6D object pose from the raw RGB(D) input [7, 16, 31]. SSD-6D [13] combines single-shot object detection in RGB images with pose hypothesis regression and verification. Similar approach has also been used for multi-view active pose estimation [23]. Wang et al. [28] propose DenseFusion to learn pixel-wise feature extraction and pose estimation. The network can also predict a confidence for each pose hypothesis for final pose selection.
+
+Xiao et al. [32] train a CNN that takes as input both an image and a CAD model, and outputs object pose with respect to the 3D model. This model can generalize to the target objects which are unseen during training. However, they still require the target CAD model during inference. Thus, we classify it as an instance-level work.
+
+Category-level approaches. There has been a large body of works on category-level object detection and 2D/3D/4D pose estimation. However, methods designed for estimating $6D$ poses is still scarce [20]. Sahin et al. [21] introduce a part-based random forest approach for this task. In their method, parts extracted from CAD model instances of some category are represented with skeletons, which are
+
+
+Figure 2: An overview of our network architecture. A pre-processing (left) is devised to produce image crop and point patch of the object of interest which are fed into the main network (right). The main network is composed of three modules: 1) CASS learning, pose-factorizing embedding and point cloud reconstruction (background shaded in light blue), 2) pose-dependent feature extraction (light green), and 3) pose estimation (light red). The network branch indicated with red arrows is used only in training.
+
+
+
+fed into a random forest for hypothesizing 6D poses. Due to the reliance on purely geometric features, this method mainly deals with depth input. Wang et al. [29] introduce Normalized Object Coordinate Space (NOCS) as a shared canonical representation of object instances within a category. They train a region-based neural network to directly infer the pixel-wise correspondence between an RGB image to NOCS. Together with instance mask and depth map, 6D object pose is estimated using shape matching. Recently, Wang et al. [27] realized category-level 6D pose tracking based on keypoint matching.
+
+CASS vs. NOCS. Although both CASS and NOCS can be regarded as a unified shape space spanning intra-class variations, there are several substantial differences. First, NOCS is explicitly defined through consistently aligning all object instances of a category in a normalized 3D space. Our CASS is a shape embedding space implicitly learned with a generative model. Second, when conducting object pose estimation, NOCS is used as the target of pixel-wise correspondence, based on which 6D pose is computed geometrically. In contrast, CASS is treated as a normalized, holistic shape representation from which pose is estimated in an end-to-end and correspondence-free manner. Third, different from NOCS where the coordinates are regressed only for visible area, our network learns to reconstruct a complete 3D shape in CASS which is a global shape understanding beneficial to pose estimation.
+
+# 3. Model
+
+Our model is an end-to-end trainable network integrating the learning of both shape space and pose estimation. We first provide an overview of the network architecture and then elaborate the various network modules. Training details such as loss functions, parameter setting and training protocol will then follow.
+
+Architecture overview. Figure 2 shows an overview of our network architecture. The input to the network is a calibrated RGBD image. The one output is the 6DoF pose of the object of interest, represented by a rigid transformation $[R|t]$ with $R \in SO(3)$ and $t \in \mathbb{R}^3$ . The other output is a reconstructed 3D point cloud of the object in normalized pose but with metric size. To handle multiple objects in a cluttered scene, we employ an off-the-shelf object detector to detect and segment the individual object instances. For each detected object, we crop the RGB image with the bounding box of the segmentation mask and segment it out of the point cloud (converted from the depth image) using the mask, resulting in an image crop and a point patch for the object, respectively. Both the image crop and the point patch are sent to the main part of our network.
+
+Our core network is composed of three modules responsible for 1) Canonical Shape Space learning, view-factorizing RGBD embedding and point cloud reconstruction, 2) pose-dependent feature extraction and 3) pose estimation, respec
+
+
+Figure 3: Illustrating the flow of pose information in our network. Data and features are depicted with rounded boxes and networks with rectangles. Data/features shaded in light blue contain pose information; no shading means pose-normalized. Networks are shaded in light green if they are pose factorizing and no shading otherwise.
+
+tively. The three components are tightly coupled and jointly trained using both synthetic and real-world data. Next, we elaborate the design of the three modules.
+
+# 3.1. Canonical Shape Space and View Factorization
+
+Our goal is to learn a shape space spanning as many shape variants of a category as possible, where all shapes are pose-normalized but with actual metric size. Moreover, to work with RGBD inputs, we also need a function to map an RGBG image to the point in that space representing the corresponding full shape in normalized pose and metric size. Such a mapping factorizes the view in the RGBD image so that the RGBD feature embedding is view-factorized.
+
+Learning Canonical Shape Space. We model the space of canonical shapes with the latent space of a deep generative model of pose-normalized shapes. In achieving so, we leverage the publicly available 3D shape repositories such as ShapeNet [4]. The 3D models in ShapeNet are consistently oriented and properly scaled within each category. We sample each model into a point cloud of $M = 500$ points. The point sampled 3D shapes, $X_{3\mathrm{D}}$ , are used to train a variational auto-encoder (VAE). The encoder employs the geometric embedding network for 3D point clouds proposed in [28], which is a variant of PointNet [18]. Based on the learned feature, the decoder warps a point cloud of 3D ellipsoid to match the shape of the input point cloud. We turn the auto-encoder into a VAE by adding a sampling layer between the encoder and decoder. The learned posterior distribution $z \sim p(z|X_{3\mathrm{D}})$ models the space of canonical shapes.
+
+Learning view-factorizing RGBD embedding. Having learned the CASS, our next task is to project an RGBD image in arbitrary view to the space so that the projector functions as view factorization. Such cross-modality data projection task could be finished with the help of data correspondence between the two modalities [9], where metric
+
+loss is used to optimize the projector. Let us refer to this solution as correspondence-based projection. This approach can be adapted to VAE straightforwardly where a projector is trained to map data in one modality to the latent space learned for another modality based on cross-modality data correspondence. However, we found that this method leads to suboptimal point cloud reconstruction and pose estimation due to 1) possibly incorrect correspondences and 2) the compromise between the metric loss and other losses.
+
+To address these issues, we opt for a joint embedding approach. Specifically, we learn a VAE which has two encoders mapping both RGBD images and 3D point clouds to a shared latent space. Whilst the 3D encoder adopts PointNet, the RGBD encoder employs the dense fusion architecture proposed in [28] (we use the global feature for the whole image instead of the pixel-wise features). Our crucial design is that the two encoders, albeit having different network architectures, are trained with mixed training batch and shared training gradients. The latter means that gradients computed for either modality are back-propagated to tune both encoders. Through such mixed training, the learned shared latent space spans the joint feature space of the both modalities.
+
+Compared to correspondence-based approaches, our joint embedding has the following advantages: Firstly, our model can be trained in a correspondence-free or unpaired fashion. This means the two modalities do not have to share object instances: It is unnecessary for the object in an RGBD image to have a corresponding 3D model in the training shape set. Secondly, our model introduces no extra loss function other than the basic ones of conventional VAEs. Thirdly and most importantly, the mixed training of the two encoders help to match the feature distributions of the two data modalities (see Figure 4), leading to better model generality and domain transferability.
+
+In summary, the learning of the CASS and the RGBD feature embedding (denoted by $F_{\mathrm{vf}}$ ) optimizes the following loss functions:
+
+$$
+L _ {\mathrm {C A S S}} = L _ {\text {r e c o n}} \left(X _ {3 \mathrm {D}}, X _ {3 \mathrm {D}} ^ {\mathrm {R}}\right) + L _ {\text {r e c o n}} \left(X _ {\text {r g b d}} ^ {\mathrm {R}}, X _ {3 \mathrm {D}} ^ {*}\right) + L _ {\mathrm {K L}}, \tag {1}
+$$
+
+where $L_{\mathrm{recon}}$ and $L_{\mathrm{KL}}$ are the reconstruction loss and KL divergence loss, respectively. $X_{3\mathrm{D}}$ and $X_{3\mathrm{D}}^{\mathrm{R}}$ are the input and reconstructed 3D point clouds, and $X_{\mathrm{rgbd}}^{\mathrm{R}}$ and $X_{3\mathrm{D}}^{*}$ the 3D point cloud reconstructed from the input RGBD and the corresponding ground-truth, respectively. We use Chamfer distance to measure reconstruction loss. During test, the 3D point cloud encoder (corresponding to the network branch with red arrows in Figure 2) is discarded and only the RGBD encoder is used for feature extraction.
+
+The RGBD encoder factorizes image view, resulting in pose-independent RGBD feature (CASS code). However,
+
+
+Feature distribution with batch mixing
+
+
+Feature distribution without batch mixing
+Figure 4: Comparing the t-SNE plot of view-factorized RGBD features and the geometric features of canonical point clouds for with and without batch mixing. Batch mixing helps to match the distributions of the two features.
+
+the 3D encoder does not factorize object pose or size. This is because both the input and output of the 3D encoder are pose-normalized and metrically sized. It simply maps a pose-normalized shape to the canonical shape space, without processing on its pose or size. Figure 3 gives an illustrative summary of the view/pose-factorization ability for all network modules, and the pose-dependency of all involved data and features. Figure 5 (top row) shows the t-SNE visualization of the two feature embeddings. In the plot of view-factorized RGBD features, objects are clustered by category with different poses mixed together, indicating the factorization of view. The plot of geometric features of canonical point clouds (no pose) also demonstrates category-based clustering effect.
+
+# 3.2. Pose-Dependent Feature Extraction
+
+To facilitate pose estimation from an input RGBD image, we also extract pose-dependent features for the RGBD image. We devise two networks for extracting photometric and geometric features separately, based on the RGB and the depth images, respectively. In our network, these features are used for pose estimation through comparing against pose-dependent features, they are expected to encode the information of pose-color and pose-geometry correlations, respectively. Figure 5 (bottom row) shows the t-SNE plots of the two features, which both exhibit pose-induced subspace clustering effect.
+
+Photometric feature extraction. Given the image crop containing the object of interest, we train a fully convolutional network that processes the color information into a color feature $F_{\mathrm{pho}}$ . Similar to [28], the image embedding network is an auto-encoder architecture that maps an image of size $H \times W \times 3$ to a pixel-wise feature map $H \times W \times N$ . Each pixel has a $N$ -dimensional vector. We then perform an average pooling over all pixel-wise features, obtaining a $N$ -dimensional feature for the full image.
+
+Geometric feature extraction. Given the corresponding point patch, we utilize point-based CNNs to extract an $N$ -
+
+
+View-factorized RGBD features
+
+
+Geometric features of canonical point clouds
+
+
+Geometric features of point patch
+Figure 5: Comparing t-SNE visualization of the various features involved in our network. Different symbols indicate different object categories while distinct colors correspond to different poses.
+
+
+Photometric feature of image crop
+
+dim geometric feature $F_{\mathrm{geo}}$ . Here, a key design is that this point-based feature extractor can share the same network of the PointNet-based geometric feature encoder trained for CASS learning. As mentioned above, the geometry encoder is not pose-factorizing. Consequently, it can be used to extract pose-dependent geometric features. Consequently, we have a Siamese network of PointNet-based encoders, one for pose-independent CASS embedding and the other for pose-dependent geometric feature extraction (see Figure 2). Having these two tasks share network weights reduces the amount of parameters to be learned. Furthermore, it helps to match the distributions of the CASS codes and the geometric features. This makes them more comparable in facilitating feature-comparison-based pose estimation.
+
+# 3.3. Pose and Size Estimation
+
+We concatenate $F_{\mathrm{vf}}$ , $F_{\mathrm{pho}}$ and $F_{\mathrm{geo}}$ into a feature vector of $3N$ length and then feed it into a CNN with 1D convolutions. The output contains a rotation represented by a quaternion $q$ and a 3D translation vector $t$ . The loss function for pose prediction is defined as the discrepancy between the object point clouds transformed by the ground-truth pose and by the predicted one:
+
+$$
+L _ {\text {p o s e}} = \frac {1}{M} \sum_ {i} \| \left(R x _ {i} + t\right) - \left(R ^ {*} x _ {i} + t ^ {*}\right) \|, \tag {2}
+$$
+
+where $x_{i}$ is the $i$ -th point of the $M = 500$ sampled points for the object. $[R^{*}|t^{*}]$ and $[R|t]$ are the ground-truth and predicted poses, respectively. To handle the alignment ambiguity of symmetric objects, we relax the point-wise
+
+matching loss to Chamfer distance, similar to [28]. Object size is calculated as the dimension of the axis-aligned bounding box (AABB) of the reconstructed 3D point cloud.
+
+# 3.4. Training Details
+
+Network settings. The input to our method is a $640 \times 480$ RGBD image. With the RGB image, we perform object detection and segmentation. Any off-the-shelf method can be used. For example, we utilize Mask-RCNN [10] for the CAMERA dataset. The image crops do not need to be resize as they are fed into pixel-wise CNNs. All point patches and 3D models are re-sampled into 500 points for PointNet feature encoding. The dimensionality of CASS code and all other features is $N = 1024$ . The DenseFusion and FoldingNet modules involved in the various network components use the same network configuration as the original works. The configuration of all other network modules such as CNNs and MLPs are given in Figure 2 (e.g., "4L" means four layers and "1D" means 1D convolutional layers). For each convolutional layer in the various modules, we add a Batch Normalization layer followed by an ReLU nonlinearity. See more details in the supplemental material.
+
+Training protocol. We adopt a three-stage training. The first stage trains the VAE for CASS learning and view-factorizing RGBD embedding (the part shaded in light blue in Figure 2) for $80\mathrm{K}$ iterations. The size of mixed batch is 8 which randomly mixes the training data of RGBD encoding and 3D encoding. In the second stage, we fix the VAE and jointly train pose-dependent feature extraction (the light green part) and pose estimation (the light red part) for $80\mathrm{K}$ iterations. The third stage then jointly fine-tunes all parts for $40\mathrm{K}$ iterations. All training batch has the size of 8. We use an initial learning rate of 0.0001 and the ADAM optimizer $(\beta_{1} = 0.9$ and $\beta_{2} = 0.999)$ with a $1\times 10^{-6}$ weight decay. In each stage, we decrease the learning rate by a factor of 10 for every $40\mathrm{K}$ iterations.
+
+# 4. Results and evaluations
+
+In this section, we aim to answer the following questions with both qualitative and quantitative evaluations. 1) Whether are the various network modules and design choices necessary? 2) How does our method perform in terms of pose accuracy and when does it outperform the state-of-the-arts? 3) How capable is our network in terms of single-view shape reconstruction?
+
+# 4.1. Datasets
+
+We use the datasets from NOCS [29] which contains six categories: bottle, bowl, camera, can, laptop, and mug.
+
+Table 1: Quantitative comparison with NOCS [29] (we use its best-performing variant, i.e., 32-bin NOCS map classification).
+
+| Method | mAP |
| IoU25 | IoU50 | 5° 5cm | 10° 5cm | 10° 10cm |
| NOCS | 84.4 | 79.3 | 16.1 | 43.7 | 43.1 |
| Ours | 84.2 | 77.7 | 23.5 | 58.0 | 58.3 |
+
+The dataset has two parts: a real-world dataset with 4.3K RGBD images from 7 scene videos (3 instances per category) and a synthetic dataset with 275K rendered images generated with 1085 model instances from ShapeNet-Core [4] under random views. We evaluate our method on the NOCS-REAL275 dataset, which contains 2.75K real scene images with 3 unseen instances per category. In learning the CASS, we also utilized the 3D models from the ShapeNetCore dataset.
+
+# 4.2. Evaluation Metrics
+
+We follow the evaluation metrics in NOCS [29] which jointly measure the object detection and pose estimation:
+
+- IoU25 & IoU50: the average precision of object instances for which the 3D overlap between the two bounding boxes is larger than $25\%$ or $50\%$ under predicted and ground truth poses respectively;
+- $5^{\circ}5\mathrm{cm}, 10^{\circ}5\mathrm{cm}$ & $10^{\circ}10\mathrm{cm}$ : the average precision of object instances for which the error is less than $n^{\circ}$ for rotation and $m$ cm for translation. We choose $5^{\circ}5\mathrm{cm}, 10^{\circ}5\mathrm{cm}, 10^{\circ}10\mathrm{cm}$ similar to [29].
+
+Additionally, we employ the Chamfer Distance (CD) and Earth Mover's Distance (EMD) to evaluate shape reconstruction from single-view RGBD images.
+
+# 4.3. Evaluation on NOCS-REAL275 Dataset
+
+Category-level pose and size estimation. In Table 1, we compare our method against NOCS [29], which is the state-of-the-art method for category-level 6D object pose and size estimation. In their method, the network is trained to find a normalized coordinate for each pixel and then solve for the pose and size with the help of depth map. On the contrary, our method directly regresses the 6D pose by comparing pose-independent and pose-dependent features. We report the results of NOCS with 32 pose classification bins, which is its best-performing variant. Like NOCS, our results were not post-processed, e.g., by ICP refinement, although that
+
+
+Figure 6: Result on NOCS REAL275 test dataset, average precision (AP) vs. different thresholds on 3D IoU, rotation error, and translation error.
+
+is potentially facilitated by our point cloud reconstruction. The results show that our method outperforms NOCS in all metrics except the IoU metrics. The slightly lower IoU values are caused by our less accurate size calculation based on point cloud reconstruction. Direct regression of 6D pose is a hard problem. The success of our method is mainly attributed to the strong view-factorized (pose-independent) feature learning with the help of CASS learning and its RGBD embedding. Figure 6 shows more detailed analysis with category-wise plots of the various evaluation metrics.
+
+Shape reconstruction. Table 2 reports a quantitative evaluation of 3D point cloud reconstruction from RGBD input, based on the test set of NOCS-REAL275. From the table, batch mixing leads to much higher reconstruction accuracy in terms of both Chamfer Distance (CD) and Earth Mover's Distance (EMD) metrics. This is because batch mixing ensures the distributions matching between the RGBD embedding and canonical point cloud embedding. This leads to a more accurate RGBD projection (embedding) into the latent shape space.
+
+# 4.4. Ablation Studies
+
+To experimentally justify the various design choices of our method, we make the following ablations (or their combinations) to our model:
+
+- w/o CASS. Train the pose & size estimation network without the CASS code as an input.
+- w/o Distribution Matching (DM). Replace the Siamese network with two independent modules, without matching the distribution of the CASS codes and the geometric features.
+
+Table 2: Evaluation of point cloud reconstruction accuracy with CD $(\times 10^{-3})$ and EMD metrics. The results show that method with batch mixing achieves uniformly higher reconstruction accuracy.
+
+ | w/o Batch Mixing | w/ Batch Mixing |
| CD | EMD | CD | EMD |
| bottle | 1.71 | 0.24 | 0.75 | 0.04 |
| bow | 0.93 | 0.07 | 0.38 | 0.04 |
| camera | 5.26 | 0.22 | 0.77 | 0.05 |
| can | 1.79 | 0.20 | 0.42 | 0.04 |
| laptop | 1.94 | 0.10 | 3.73 | 0.09 |
| mug | 2.40 | 0.11 | 0.32 | 0.03 |
| overall | 2.33 | 0.16 | 1.06 | 0.05 |
+
+Table 3: Ablation study of our model. The results show that our full method works the best for most criteria.
+
+| Method | mAP |
| IoU25 | IoU50 | 5° 5cm | 10° 5cm | 10° 10cm |
| w/o CASS | 83.8 | 76.2 | 4.2 | 29.5 | 30.0 |
| w/o BM | 83.6 | 77.3 | 4.7 | 31.8 | 32.7 |
| w/o DM | 84.0 | 79.0 | 8.4 | 39.5 | 40.2 |
| w/o VAE | 83.7 | 77.0 | 17.0 | 42.1 | 43.6 |
| Full | 84.2 | 77.7 | 23.5 | 58.0 | 58.3 |
+
+- w/o Batch Mixing (BM). Remove batch mixing and use $L_{2}$ distance as an additional loss to train the projection from an RGBD image in arbitrary view to the canonical shape space.
+- w/o VAE. Replacing the VAE with AE.
+
+From the results reported in Table 3, we can see that CASS learning is the most important component for our method. Without CASS learning, the accuracy drops the most especially on the $xx^{\circ}yy$ -cm metrics. Next to CASS learning, batch mixing is also very important factors. VAE is beneficial to model generalization to unseen objects since it helps learning a well-spanned CASS space with the normal distribution prior. However, it does lead to blurred 3D reconstruction at the same time, which may sacrifices size accuracy (see the IoU comparison in Table 1). Nevertheless, all factors together contributes the high-precision ( $5^{\circ}5\mathrm{cm}$ ) estimation of pose and size.
+
+# 4.5. Qualitative results
+
+Visual results of pose and size estimation. Figure 7 shows some visual comparisons between our method and NOCS. According to the estimate pose and scale, we draw orien
+
+
+NOCS
+
+
+Figure 7: Qualitative comparison with NOCS [29] for pose and size estimation (depicted with reconstructed point clouds).
+Figure 8: 3D Reconstruction from single-view RGBD. The point clouds in grey color are unprojected from depth maps. The blue point clouds are reconstructed by our network.
+
+tated bounding box for each detected instance overlaid on top of the input RGB images. As can be observed, our method achieves better accuracy especially for size estimation under object occlusion and background distraction.
+
+Visual results of shape reconstruction. Figure 8 shows visual results of shape reconstruction. Our method is able to reconstruct full 3D shapes in point cloud from single-view RGBD images, contrasting them with the point clouds unprojected from depth maps.
+
+# 5. Conclusion
+
+We have presented a novel correspondence-free approach to category-level object pose and size estimation. This is achieved by learning a shape space of 3D models in normalized pose and metric size based on deep generative model. The input RGBD image is embedded into the
+
+shape space, extracting pose-independent features. Pose estimation is realized by comparing the pose-independent and pose-dependent features. Evaluation shows that our method arrives at the state-of-the-art performance.
+
+Limitations and future work. Our current method has a few limitations on which we aim to improve as future work. First, our method cannot handle well very complex shapes due to the difficulty in reconstructing shapes with complicated geometry (e.g. high genus). In this aspect, our method can be enhanced by learning a more powerful shape reconstruction with, e.g., volumetric 3D representation. Second, our current method does not close the loop in terms of utilizing the reconstructed shape geometry to guide/supervise the training of pose estimation. This may lead to a unsupervised or self-taught approach which we plan to investigate in a future work. Third, our method still cannot achieve very high precision, as reflected by the relatively lower accuracy for the $5^{\circ}5\mathrm{cm}$ metric. This may be an inherent limitation for a correspondence-free or sparse approach. Note, however, our method did not use ICP to refine the pose or size. Last, we plan to extend our current framework to online object pose tracking similar to [27].
+
+# Acknowledgement
+
+We thank the anonymous reviewers for the valuable suggestions. We are grateful to Chen Wang, one of the authors of DenseFusion, for the help and discussion. This work was supported in part by the National Key Research and Development Program of China (No. 2018AAA0102200), the NSFC (61532003, 61902419, 61572507, 61622212), the NUDT Research Grants (No.ZK19-30) and the Natural Science Foundation of Hunan Province for Distinguished Young Scientists (2017JJ1002).
+
+# References
+
+[1] Armen Avetisyan, Manuel Dahnert, Angela Dai, Manolis Savva, Angel X Chang, and Matthias Nießner. Scan2cad: Learning cad model alignment in rgb-d scans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2614-2623, 2019. 2
+[2] Vassileios Balntas, Andreas Doumanoglou, Caner Sahin, Juil Sock, Rigas Kouskouridas, and Tae-Kyun Kim. Pose guided rgbd feature learning for 3d object pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3856-3864, 2017. 2
+[3] Eric Brachmann, Alexander Krull, Frank Michel, Stefan Gumhold, Jamie Shotton, and Carsten Rother. Learning 6d object pose estimation using 3d object coordinates. In European conference on computer vision, pages 536-551. Springer, 2014. 2
+[4] Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. 4, 6
+[5] Changhyun Choi and Henrik I Christensen. 3d pose estimation of daily objects using an rgb-d camera. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 3342-3349. IEEE, 2012. 2
+[6] Changhyun Choi, Yuichi Taguchi, Oncel Tuzel, Ming-Yu Liu, and Srikumar Ramalingam. Voting-based pose estimation for robotic assembly using a 3d sensor. In 2012 IEEE International Conference on Robotics and Automation, pages 1724-1731. IEEE, 2012. 2
+[7] Thanh-Toan Do, Ming Cai, Trung Pham, and Ian Reid. Deep-6dpose: Recovering 6d object pose from a single rgb image. arXiv preprint arXiv:1802.10367, 2018. 2
+[8] Georgios Georgakis, Srikrishna Karanam, Ziyan Wu, and Jana Kosecka. Matching rgb images to cad models for object pose estimation. arXiv preprint arXiv:1811.07249, 2018. 2
+[9] Rohit Girdhar, David F Fouhey, Mikel Rodriguez, and Abhinav Gupta. Learning a predictable and generative vector representation for objects. In European Conference on Computer Vision, pages 484-499. Springer, 2016. 4
+[10] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 6
+[11] Tomáš Hodań, Xenophon Zabulis, Manolis Lourakis, Štepan Obdržálek, and Jiří Matas. Detection and fine 3d pose estimation of texture-less objects in rgb-d images. In Proc. IROS, pages 4421-4428. IEEE, 2015. 2
+[12] Hamid Izadinia, Qi Shan, and Steven M Seitz. Im2cad. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5134-5143, 2017. 2
+[13] 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 Proceedings of the IEEE International Conference on Computer Vision, pages 1521–1529, 2017. 2
+[14] Wadim Kehl, Fausto Milletari, Federico Tombari, Slobodan Ilic, and Nassir Navab. Deep learning of local rgb-d patches
+
+for 3d object detection and 6d pose estimation. In European Conference on Computer Vision, pages 205-220. Springer, 2016. 2
+[15] Yoshinori Konishi, Kosuke Hattori, and Manabu Hashimoto. Real-time 6d object pose estimation on cpu. arXiv preprint arXiv:1811.08588, 2018. 2
+[16] Yi Li, Gu Wang, Xiangyang Ji, Yu Xiang, and Dieter Fox. Deepim: Deep iterative matching for 6d pose estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 683-698, 2018. 2
+[17] Sida Peng, Yuan Liu, Qixing Huang, Xiaowei Zhou, and Hu-jun Bao. PVNet: Pixel-wise voting network for 6dof pose estimation. In Proc. CVPR, pages 4561-4570, 2019. 1, 2
+[18] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 652-660, 2017. 4
+[19] Mahdi Rad and Vincent Lepetit. Bb8: A scalable, accurate, robust to partial occlusion method for predicting the 3d poses of challenging objects without using depth. In Proc. ICCV, pages 3828-3836, 2017. 2
+[20] Caner Sahin, Guillermo Garcia-Hernando, Juil Sock, and Tae-Kyun Kim. Instance-and category-level 6d object pose estimation. arXiv preprint arXiv:1903.04229, 2019. 1, 2
+[21] Caner Sahin and Tae-Kyun Kim. Category-level 6d object pose recovery in depth images. In Proceedings of the ECCV Workshop, 2018. 1, 2
+[22] Caner Sahin, Rigas Kouskouridas, and Tae-Kyun Kim. Iterative though forest with histogram of control points for 6 dof object registration from depth images. In Proc. IROS, pages 4113-4118. IEEE, 2016. 2
+[23] Juil Sock, S Hamidreza Kasaei, Luis Seabra Lopes, and Tae-Kyun Kim. Multi-view 6d object pose estimation and camera motion planning using rgbd images. In Proceedings of the IEEE International Conference on Computer Vision, pages 2228-2235, 2017. 2
+[24] Juil Sock, Kwang In Kim, Caner Sahin, and Tae-Kyun Kim. Multi-task deep networks for depth-based 6d object pose and joint registration in crowd scenarios. arXiv preprint arXiv:1806.03891, 2018. 2
+[25] Alykhan Tejani, Danhang Tang, Rigas Kouskouridas, and Tae-Kyun Kim. Latent-class hough forests for 3d object detection and pose estimation. In Proc. ECCV, pages 462-477. Springer, 2014. 2
+[26] Bugra Tekin, Sudipta N Sinha, and Pascal Fua. Real-time seamless single shot 6d object pose prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 292-301, 2018. 2
+[27] Chen Wang, Roberto Martín-Martín, Danfei Xu, Jun Lv, Cewu Lu, Li Fei-Fei, Silvio Savarese, and Yuke Zhu. 6-pack: Category-level 6d pose tracker with anchor-based keypoints. arXiv preprint arXiv:1910.10750, 2019. 3, 8
+[28] Chen Wang, Danfei Xu, Yuke Zhu, Roberto Martín-Martín, Cewu Lu, Li Fei-Fei, and Silvio Savarese. Densefusion: 6d object pose estimation by iterative dense fusion. In Proc. CVPR, pages 3343–3352, 2019. 2, 4, 5, 6
+
+[29] He Wang, Srinath Sridhar, Jingwei Huang, Julien Valentin, Shuran Song, and Leonidas J Guibas. Normalized object coordinate space for category-level 6d object pose and size estimation. In Proc. CVPR, pages 2642-2651, 2019. 1, 2, 3, 6, 8
+[30] Paul Wohlhart and Vincent Lepetit. Learning descriptors for object recognition and 3d pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3109-3118, 2015. 2
+[31] Yu Xiang, Tanner Schmidt, Venkatraman Narayanan, and Dieter Fox. PoseCNN: A convolutional neural network for 6d object pose estimation in cluttered scenes. arXiv preprint arXiv:1711.00199, 2017. 2
+[32] Yang Xiao, Xuchong Qiu, Pierre-Alain Langlois, Mathieu Aubry, and Renaud Marlet. Pose from shape: Deep pose estimation for arbitrary 3d objects. arXiv preprint arXiv:1906.05105, 2019. 2
+[33] Haoruo Zhang and Qixin Cao. Holistic and local patch framework for 6d object pose estimation in rgb-d images. Computer Vision and Image Understanding, 180:59-73, 2019. 2
\ No newline at end of file
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/images.zip b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b289fa157443f63656ae17a5223cde9c5b6c5af0
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4374b3fc2d058ce12fc312075f1440f6ff6f32d8d7bac3e381fb6fcd2c7a5451
+size 511556
diff --git a/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/layout.json b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..336a8da55d66b5be111dd838c3c796d6ba9e2635
--- /dev/null
+++ b/learningcanonicalshapespaceforcategorylevel6dobjectposeandsizeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03274e8b18c1090240eaef7cb6454e6d534d21b7d67563493460232853d7e913
+size 318271
diff --git a/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_content_list.json b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bd3e50017bea4750ad6a6c6f6bb4b6425fad2c22
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1b0c1a3c3f8cca3dcf6d344cf4aef5718f7c9bf6ecb7c0b66aad0d843c9e1891
+size 82095
diff --git a/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_model.json b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9f71ac0de1317d60efc109d855958ab0f98e244
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f090f606bd90d7031fda76e903b8f653cc6e39aff23389c3fbd7a7fff96f4353
+size 100362
diff --git a/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_origin.pdf b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..43180d1cc0a9f9e5693ac4ec8c8c570a7c0e1442
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/02d25c7c-62fb-40c8-9ff9-c41cf21c55d0_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:819cd37584e299ece7cd77331855225cc9c5c1ee774f313cb235b626b8f9a489
+size 593110
diff --git a/learningcombinatorialsolverforgraphmatching/full.md b/learningcombinatorialsolverforgraphmatching/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..90b01b8320faee50db3e1a71abc4ee693e640bbc
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/full.md
@@ -0,0 +1,359 @@
+# Learning Combinatorial Solver for Graph Matching
+
+Tao Wang $^{1,2}$ He Liu $^{1}$ Yidong Li $^{1}$ Yi Jin $^{1}$ Xiaohui Hou $^{2}$ Haibin Ling $^{3}$
+
+1The Beijing Key Laboratory of Traffic Data Analysis and Mining, Beijing Jiaotong University, Beijing 100044, China
+
+$^{2}$ HiScene Information Technologies, Shanghai 201210, China
+
+3Stony Brook University, Stony Brook, NY 11794, USA.
+
+{twang, liuhe1996, ydli, yjin}@bjtu.edu.cn, houxh@hiscene.com, hling@cs.stonybrook.edu
+
+# Abstract
+
+Learning-based approaches to graph matching have been developed and explored for more than a decade, and have grown rapidly in scope and popularity recently. However, previous learning-based algorithms, with or without deep learning strategy, mainly focus on the learning of node and/or edge affinities generation, and pay less attention to the learning of the combinatorial solver. In this paper we propose a fully trainable framework for graph matching, in which learning of affinities and solving for combinatorial optimization are not explicitly separated as in many previous arts. We firstly convert the problem of building node correspondences between two input graphs to the problem of selecting reliable nodes from a constructed assignment graph. Subsequently, the graph network block module is adopted to perform computation on the graph to form structured representations for each node. It finally predicts a label for each node that is used for node classification, and the training is performed under the regularization of both permutation differences and the one-to-one matching constraints. The proposed method is evaluated on four public benchmarks in comparison with state-of-the-art algorithms, and the experimental results illustrate its excellent performance.
+
+# 1. Introduction
+
+As a fundamental problem in computer science, graph matching involves establishing correspondences between vertex sets of given graphs while keeping the consistency between their edge sets as well. It closely relates to many computer vision problems including feature registration [23], shape reconstruction [30], object recognition [31], visual tracking [28], object labeling [22], etc. Graph matching is a well-known general NP-hard problem, and it is hard to acquire a global optimum for graphs of reasonable sizes. Consequently, approximate algorithms that seek acceptable suboptimal solutions by utilizing relaxation to har
+
+ness the solution searching are popular in this topic. Despite decades of research effort devoted to graph matching [6,8,10,11,13,20,29,34,35,38], it remains a challenging problem due to not only the non-convex objective but also the combinatorial constraints.
+
+Aiming to improve the matching accuracy in the assistance of data analysis and machine learning technology, learning-based algorithms have been investigated in the past decade. Early methods [4, 16, 17] employ simple and shallow parametric models that control geometric affinities between pairs of vertices, and the promotion to the matching performance derived from these models are usually limited. With the growing interest in using deep features for both geometric and semantic visual matching tasks, learning graph matching using deep network has attracted much research attention. Researchers [27, 33] presented deep learning frameworks for graph matching with general applicability to model deep feature extraction, unary and pairwise affinity generation and combinatorial optimization. However, these studies mainly focus on the architecture for learning the affinity functions while less investigation has been devoted to the design of the combinatorial solver. In particular, in these studies the quadratic assignment problem is usually relaxed to easier ones and is solved by some nonparametric and relatively simple combinatorial solvers that may hurt the matching accuracy. It therefore demands research attention on how to design fully trainable network to boost graph matching.
+
+Addressing the above mentioned issues, we propose a novel deep learning framework for graph matching aiming to improve the matching accuracy. Roughly speaking, our framework is a fully trainable network designed on top of graph neural network, in which learning of affinities and solving for combinatorial optimization are not explicitly separated. We first construct an assignment graph for two input graphs to be matched considering each candidate match a node, and convert the problem of building node correspondences between input graphs to the problem of selecting reliable nodes from the constructed assignment
+
+graph. Subsequently, the graph network block module is extended in our framework to perform computation on the constructed assignment graph, which forms structured representations for each node by several convolutional filters. Our network finally reads out node labels from the updated graph state, which are used to classify the nodes into positive or negative ones. Moreover, the training of our network is guided by taking both the permutation differences and the one-to-one matching constraints as supervision.
+
+For evaluation we test our algorithm on four public benchmarks, in comparison with eight state-of-the-art baselines including both non-learning and learning-based algorithms. Our algorithm exhibits robustness against noises and outliers, and outperforms all baseline algorithms in general. The source code along with the experiments is made available at https://www.cs.stonybrook.edu/~hling/code/LearningGraphMatching.zip.
+
+In summary, with the proposed learning framework for graph matching, this paper makes contribution in three-fold:
+
+- we transform learning of graph matching to learning of node selection by constructing an assignment graph given two input graphs to be matched;
+- we combine learning of affinities and solving for combinatorial optimization into a unified learning framework, and extend the graph network block module for structural representation and relational reasoning; and
+- we design a novel loss function in which the one-to-one matching constraints are imposed to supervise the training of the network.
+
+# 2. Related Work
+
+# 2.1. Traditional Graph Matching
+
+Graph matching has been investigated for decades and many algorithms have been proposed. In general, graph matching has combinatorial nature that makes the global optimum solution hardly available, and approximate solutions that seek acceptable suboptimal solutions are thus commonly applied to graph matching.
+
+A notable work by Leordeanu and Hebert [13] approximates graph matching based on spectral relaxation, which constructs an assignment graph by representing the potential correspondences as nodes and between-correspondence pairwise agreements as edges. The discovery of correct correspondences is formulated as detecting the main strongly connected cluster in the assignment graph, and is then solved using an eigen-analysis approach. This work is later extended by Cour et al. [8], who encode the mapping constraints into the spectral decomposition and apply a bistochastic normalization on the compatibility matrix to considerably reduce matching errors; and by Cho et al. [6], who cast graph correspondence searching as a node ranking and
+
+selection problem, and introduce an affinity-preserving random walk algorithm to drive the node ranking based on its quasi-stationary distribution. From a different and probabilistic perspective, Zass and Shashua [35] propose a soft matching criterion for the problem input and output, and derive an algebraic relation between the hyper-edge weight matrix and the desired node-to-node probabilistic matching. Later, Egozi et al. [10] combine the spectral relaxation solution and the probabilistic framework by interpreting the former as a maximum likelihood estimate of the assignment probabilities, and present a new probabilistic formulation of quadratic matching by relaxing some of the assumptions.
+
+Since constraint relaxation and post discretization are commonly used in the approximate methods, many important algorithms have been designed on top of the relaxation and discretization strategy. For example, Gold and Ranganarajan [11] employ the graduated assignment technique to iteratively solve a series of linear approximations of the cost function using Taylor expansion. Along the line there comes the group of so called path following algorithms. In particular, Zaslavskiy et al. [34] reformulate graph matching as a convex-concave relaxation procedure (CCRP) problem and then solve it by interpolating between two relatively simpler and relaxed problems, one with convex relaxation and the other with concave relaxation. Following the work, Zhou and De la Torre [38] factorize an affinity matrix into a Kronecker product of smaller matrices and provide specified convex relaxation and concave relaxation based on the factorized matrices; Liu and Qiao [20] propose the graduated nonconvexity and concavity procedure (GNCCP) and prove that it equivalently realizes CCRP on partial permutation matrix; Wang et al. [29] present the path following algorithm that uses adaptive and branching path following (ABPF) strategy to discover singular points on the original path and then branches new paths for potential better results.
+
+Different from the above algorithms that drop the discrete constraints for optimization, some purely discrete methods [1, 32] are recently proposed to search the solution directly in the discrete space. These methods do not require any post-optimization step because the generated solutions always obey the discrete affine mapping constraints, but they usually suffer from limited optimality, which is dependent largely on the initialization [1].
+
+# 2.2. Learning Graph Matching
+
+The above studies mostly rely on handcrafted affinities, which are taken as input of the combinatorial solver. Such a predefined parametric affinity model will limit the flexibility to capture the structure of a real-world matching task, and inappropriate affinity model may make the matching solver deviating from the ground truth matching solution.
+
+Addressing this issue, the learning for graph matching has demonstrated its superior performance in terms of
+
+improving matching accuracy [36, 37], which is mainly boosted by learning the parameters of the graph affinity metric to replace the handcrafted affinity metric. Most conventional algorithms for learning graph matching are supervised ones [4, 14, 24] that require detailed labeling of each node correspondence in each positive graph for training. These algorithms use large margin methods [25], nonlinear inverse optimization [19], and smoothing-based techniques to train matching parameters in a supervised fashion, respectively. Compared to supervised methods, the unsupervised method [16] does not require a large amount of node-level labeling. Later, Leordeanu et al. [17] offer a semi-supervised learning formulation for models with constraints beyond second order. Different from these methods, Cho [5] proposes to parameterize a graph model for all instances of a class and learn its structural attributes for visual object matching.
+
+The literature on deep learning of graph matching remains limited, despite the demonstrated power of deep learning techniques in many areas. The few pioneering studies mainly aimed to encode parametric affinity functions in deep networks, so as to obtain correct matching assignments under computed node and edge affinities. Zanfir and Sminchisescu [33] formulates graph matching as a quadratic assignment problem under unary and pair-wise node affinities represented using deep parametric feature hierarchies. It adopts spectral matching [13] as the combinatorial solver which is differentiable for back propagation. Wang et al. [27] employ the graph convolutional network (GCN) framework [12] as a node embedding module that aggregates graph structure information to generate node-to-node affinity. By this way, graph matching is relaxed to linear assignment and a Sinkhorn net is adopted as the combinatorial solver.
+
+Our work falls into the group of deep learning algorithms. Compared with previous arts, our method focuses on learning of not only the affinity functions but also the combinatorial solver, which are effectively combined into a fully trainable graph network. Strong structured representations and their relational inductive biases are imposed into our learning framework to promote the matching accuracy, and the experiments illustrate its excellent performance.
+
+# 3. Problem Formulation
+
+# 3.1. The Graph Matching Problem
+
+An attributed relational graph of $n$ nodes can be represented by $\mathbb{G} = (\mathbb{V},\mathbb{E},\mathcal{V},\mathcal{E})$ , where
+
+- $\mathbb{V} = \{v_{1},\dots ,v_{n}\}$ denotes the node set,
+- $\mathbb{E} \subseteq \mathbb{V} \times \mathbb{V}$ denotes the edge set,
+- $\mathcal{V} = \{\mathbf{v}_i|\mathbf{v}_i\in \mathbb{R}^{d_V},i = 1,2,\ldots n\}$ denotes the node attribute set, and
+
+- $\mathcal{E} = \{\mathbf{e}_i|\mathbf{e}_i\in \mathbb{R}^{d_E},i = 1,2,\dots,|\mathbb{E}|\}$ denotes the edge attribute set.
+
+The node relations of an undirect graph are often conveniently represented by a symmetric adjacency matrix $A \in \mathbb{R}^{n \times n}$ , such that $A_{ij} = 1$ if and only if there is an edge $(v_i, v_j) \in \mathbb{E}$ .
+
+For graph matching, given two graphs $\mathbb{G}^{(i)} = (\mathbb{V}^{(i)},\mathbb{E}^{(i)},\mathcal{V}^{(i)},\mathcal{E}^{(i)})$ of $n$ node $^1$ , $i = 1,2$ , the problem is to find a node correspondence $X\in \{0,1\}^{n\times n}$ between $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ , in which each element $X_{ij} = 1$ if and only if $v_{i}^{(1)}\in \mathbb{V}^{(1)}$ corresponds to $v_{j}^{(2)}\in \mathbb{V}^{(2)}$ . In practice, the matching is often restricted to be a one-to-one function that requires $X\mathbf{1}_n = \mathbf{1}_n$ and $X^{\top}\mathbf{1}_n = \mathbf{1}_n$ , where $\mathbf{1}_n$ denotes a vector of $n$ ones. The graph matching problem can be formulated as a quadratic assignment problem (QAP)
+
+$$
+\mathbf {x} ^ {*} = \arg \max _ {\mathbf {x}} \mathbf {x} ^ {\top} K \mathbf {x}, \tag {1}
+$$
+
+where $\mathbf{x} \doteq \operatorname{vec}(X) \in \{0,1\}^{n^2}$ is the vectorized version of matrix $X$ and $K \in \mathbb{R}^{n^2 \times n^2}$ is the corresponding affinity matrix. Specifically, $K$ is defined to measure pairwise affinities
+
+$$
+K _ {\operatorname {i n d} \left(i _ {1}, i _ {2}\right) \operatorname {i n d} \left(j _ {1}, j _ {2}\right)} = \left\{ \begin{array}{l l} c _ {i _ {1} i _ {2}} & \text {i f} i _ {1} = j _ {1} \text {a n d} i _ {2} = j _ {2}, \\ d _ {i _ {1} j _ {1} i _ {2} j _ {2}} & \text {e l s e i f} A _ {i _ {1} j _ {1}} ^ {(1)} A _ {i _ {2} j _ {2}} ^ {(2)} > 0, \\ 0 & \text {o t h e r w i s e ,} \end{array} \right. \tag {2}
+$$
+
+where $\operatorname{ind}(\cdot, \cdot)$ is a bijection mapping a node correspondence to an integer index, $c_{i_1i_2}$ measures the consistency between the node attributes $\mathbf{v}_{i_1}^{(1)}$ and $\mathbf{v}_{i_2}^{(2)}$ , and $d_{i_1j_1i_2j_2}$ the consistency between edge attributes $\mathbf{e}_{(i_1,j_1)}^{(1)}$ and $\mathbf{e}_{(i_2,j_2)}^{(2)}$ .
+
+# 3.2. Matching as Node Labeling
+
+Different from the traditional graph matching algorithms [6, 8, 10, 11, 13, 20, 29, 34, 35, 38] that usually adopt handcrafted affinity functions $c$ and $d$ , previous learning-based algorithms [4, 16, 27, 33] are devoted to learning appropriate affinity functions from data. However, the combinatorial solvers for the QAP (Eq. 1) employed in these learning algorithms are still un-trainable and relatively simple, which may hurt the final matching accuracy. In this paper we propose a novel learning framework that integrates the learning of both affinity functions and the combinatorial solver into a unified node labeling pipeline.
+
+Basically, the problem of graph matching between the two graphs $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ can be interpreted in a node labeling view by constructing an assignment graph $\mathbb{G}^A = (\mathbb{V}^A,\mathbb{E}^A,\mathcal{V}^A,\mathcal{E}^A)$ following [6, 13]. Given two graphs $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ , we consider each candidate correspondence
+
+
+Figure 1. Illustration of assignment graph.
+
+$(v_{i}^{(1)}, v_{a}^{(2)}) \in \mathbb{V}^{(1)} \times \mathbb{V}^{(2)}$ a node $v_{ia}^{A} \in \mathbb{V}^{A}$ . For edge generation of $\mathbb{G}^{A}$ , we build an edge between a pair of nodes $v_{ia}^{A}, v_{jb}^{A} \in \mathbb{V}^{A}$ if and only if there are two edges $(v_{i}^{(1)}, v_{j}^{(1)}) \in \mathbb{E}^{(1)}$ and $(v_{a}^{(2)}, v_{b}^{(2)}) \in \mathbb{E}^{(2)}$ .
+
+Fig. 1 illustrates a sampled assignment graph where each candidate match between $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ corresponds to a node in the assignment graph $\mathbb{G}^A$ . Thus, the original graph matching problem between $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ is converted to classifying the nodes in $\mathbb{G}^A$ into positive nodes and negative ones. For example, building node correspondences $\{(v_i^{(1)}, v_a^{(2)}), (v_j^{(1)}, v_c^{(2)}), (v_k^{(1)}, v_b^{(2)})\}$ between $\mathbb{V}^{(1)}$ and $\mathbb{V}^{(2)}$ is equivalent to selecting nodes $\{v_{ia}^A, v_{jc}^A, v_{kb}^A\}$ out of $\mathbb{V}^A$ .
+
+In previous approaches to this node selection problem, node attributes $\mathcal{V}^A$ and edge attributes $\mathcal{E}^A$ are usually assigned according to the predefined affinity functions, and some optimization techniques, for instance eigenanalysis [13] and Markov random walks [6], are subsequently employed to acquire reliable nodes from the assignment graph $\mathbb{G}^A$ .
+
+Different from these hand-engineered algorithms, our algorithm does not require predefined affinity functions. It instead combines the raw attributes of $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ to form the initial attributes of $\mathbb{G}^A$ as
+
+$$
+\begin{array}{l} \mathbf {v} _ {i a} ^ {A} = [ \mathbf {v} _ {i} ^ {(1)}; \mathbf {v} _ {a} ^ {(2)} ], \\ \mathbf {e} _ {(i a, j b)} ^ {A} = \left[ \mathbf {e} _ {(i, j)} ^ {(1)}; \mathbf {e} _ {(a, b)} ^ {(2)} \right]. \tag {3} \\ \end{array}
+$$
+
+In order to learn how to select reliable nodes from the generated assignment graph $\mathbb{G}^A$ , we propose a fully trainable graph network that takes $\mathbb{G}^A$ as input, performs computation over the structure, and predicts a label for each node as output. The predicted label of each node, for instance $v_{ia}^A$ , is used to distinguish whether the candidate match $(v_i^{(1)}, v_a^{(2)})$ is a desired one for the original graph matching problem. The pipeline of the proposed learning framework is described in details in Sec. 4.
+
+# 4. The Proposed Method
+
+As described in Sec. 3.2, the graph matching problem is transformed to node labeling on the constructed assignment graph. Although the input graphs are usually extracted
+
+from images (for example in our experiments), the traditional convolutional neural network (CNN) is inadequate to perform computation and reasoning on graphs due to lacks of relational inductive biases.
+
+Graph neural networks (GNNs), which operate on graphs and structure their computations accordingly, have grown rapidly in scope and popularity in recent years [2, 9, 12, 18, 26]. Inspired by these studies, we explore a flexible learning-based approach to graph matching based on GNN, which embeds strong relational inductive biases to capitalize on explicitly structured representations and computations.
+
+# 4.1. Pipeline Overview
+
+Our learning framework for graph matching is designed on the top of graph network block (GNB) presented in [2], which defines a class of functions for relational reasoning over graph-structured representations. It is extended in our framework to fit the graph matching problem by eliminating redundant components and redefining certain functions. We employ the extended module to perform computation over the constructed assignment graph and return the predicted node labels as output for node classification.
+
+As illustrated in Fig. 2, the proposed learning pipeline for graph matching consists of four main modules:
+
+- Assignment Graph Generation: This module takes the graphs to be matched as input, and constructs an assignment graph by considering each candidate match as a node in the graph, as that is described in Sec. 3.2.
+- Encoder/Decoder: The encoder module takes the constructed assignment graph as input, and transforms its attributes into latent representations. Decoder is coupled to the encoder module, which reads out the final output from the updated graph state and reports the predicted node labels for loss computation.
+- Convolution Module: This module is the core component of our learning framework, which convolves the information of neighborhoods of each node to form a structured representation through several convolutional operators. Each instance of the convolution module consists of an edge convolution layer and a node convolution layer, and $k$ instances are stacked to aggregate the information of $k^{th}$ -order neighborhoods, i.e., the nodes that are at maximum $k$ steps away from the central node.
+- Loss Computation: In addition to the permutation loss that evaluates the difference between the predicted node labels and the ground-truth node labels, we impose the one-to-one matching constraints into the loss function to guide the training of the network.
+
+The proposed framework takes raw attributes of the nodes and edges as input and predicts node labels based on
+
+
+Figure 2. The pipeline overview of the proposed learning graph matching framework. We first construct an assignment graph given a pair of input graphs to be matched. The encoder module transforms the attributes of the constructed assignment graph into latent representations by two parametric update functions $\phi_{\mathrm{enc}}^v$ and $\phi_{\mathrm{enc}}^e$ . Subsequently, the stacked $k$ instances of the convolution module convolves the $k^{th}$ -order neighborhoods of each node to form its structured representations via four convolutional filters $\rho^e$ , $\phi^e$ , $\rho^v$ and $\phi^v$ . The convolved node attributes are finally decoded to node labels by an update function $\phi_{\mathrm{dec}}^v$ .
+
+convolved node features. In this pipeline the learning of affinities and solving for combinatorial optimization are intertwined and iterated through stacked multiple instances of the convolutional module. Our network finally produces a soft matching, and we adopt a simple greedy/max-activation approach as a post-processing for testing to guarantee a combinatorial one-to-one matching.
+
+It is notable that the generation of input graphs, including node and edge feature extraction and edge generation, is dependent on the task and is not embedded as a component into our network. Different from [27, 33] that employ CNN to extract visual features from images, we ignore all appearance information and utilize only geometric cues. Specifically, we take the coordinates of each point as the node feature, and concatenate the features of two nodes associated with the same edge to form the edge feature. The reason of ignoring appearance cues lies that our framework is not limited in the scenario of matching images despite it is validated on two real image datasets in experiments. Furthermore, eliminating such a CNN module makes our framework more lightweight and easier to train. In experiments our algorithm exhibits excellent performance and outperforms state-of-the-art baselines despite of absence of appearance cues.
+
+# 4.2. Encoder and Decoder
+
+The encoder module transforms the attributes of the input graph into latent representations by two parametric update functions $\phi_{\mathrm{enc}}^v$ and $\phi_{\mathrm{enc}}^e$ . In this work $\phi_{\mathrm{enc}}^v$ and $\phi_{\mathrm{enc}}^e$ are designed as two multi-layer perceptrons (MLPs), each of which takes respectively a node attribute vector and an edge attribute vector as input and transforms them into latent spaces. Note that $\phi_{\mathrm{enc}}^v$ is mapped across all nodes to compute per-node updates, and $\phi_{\mathrm{enc}}^e$ is mapped across all edges to compute per-edge updates.
+
+For simplicity we denote $\phi_{\mathrm{enc}}^v (\mathcal{V}^A)$ and $\phi_{\mathrm{enc}}^{e}(\mathcal{E}^{A})$ the up
+
+dated node attributes and edge attributes by applying $\phi_{\mathrm{enc}}^v$ and $\phi_{\mathrm{enc}}^e$ to each node and each edge respectively. Then the encoder module can be briefly described as
+
+$$
+\mathbb {G} ^ {A} \leftarrow \operatorname {e n c o d e} \left(\mathbb {G} ^ {A}\right) = \left(\mathbb {V} ^ {A}, \mathbb {E} ^ {A}, \phi_ {\mathrm {e n c}} ^ {v} \left(\mathcal {V} ^ {A}\right), \phi_ {\mathrm {e n c}} ^ {e} \left(\mathcal {E} ^ {A}\right)\right). \tag {4}
+$$
+
+The updated graph $\mathbb{G}^A$ is then passed to the subsequent convolution modules as input.
+
+The decoder module reads out the final output from the updated graph state. Since only the node labels are required for final evaluation, the decoder module contains only one update function $\phi_{\mathrm{dec}}^v$ that transforms the node attributes into a desired space
+
+$$
+Y = \operatorname {d e c o d e} \left(\mathbb {G} ^ {A}\right) = \phi_ {\mathrm {d e c}} ^ {v} \left(\mathcal {V} ^ {A}\right) \tag {5}
+$$
+
+where $Y \in \mathbb{R}^{n^2 \times 2}$ denotes the predicted node labels. Similarly, $\phi_{\mathrm{dec}}^v$ is parameterized by an MLP and is mapped across all nodes to form per-node label.
+
+# 4.3. The Convolution Module
+
+The convolution module consists of an edge convolution layer and a node convolution layer, which aggregates the information of the neighborhoods of each node to update its attributes. The edge convolution layer assembles the attributes of the two nodes associated with each edge to generate a new attribute of this edge. It is followed by the node convolution layer that collects the attributes of all the edges adjacent to each node to compute per-node updates. Note that each instance of the convolution module aggregates the information of the $1^{st}$ -order neighborhoods, and thus the stack of $k$ instances can convolve the $k^{th}$ -order neighborhoods for each node. These neighborhoods serve as the receptive fields of a convolutional architecture, allowing our framework to learn effective graph representations.
+
+The edge convolution layer: This layer is to update the edge attributes in $\mathbb{G}^A$ by aggregating the information of as-
+
+sociated nodes for each edge. It consists of an aggregation function $\rho^e$ and an update function $\phi^e$
+
+$$
+\bar {\mathbf {e}} _ {i} = \rho^ {e} \left(\mathbf {v} _ {s _ {i}}, \mathbf {v} _ {r _ {i}}\right), \tag {6}
+$$
+
+$$
+\mathbf {e} _ {i} ^ {\prime} = \phi^ {e} (\overline {{\mathbf {e}}} _ {i}, \mathbf {e} _ {i}),
+$$
+
+where $\mathbf{e}_i$ denotes the attributes of the $i$ -th edge in $\mathbb{G}^A$ , $\mathbf{v}_{s_i}$ and $\mathbf{v}_{r_i}$ the attributes of its source node and receive node respectively. The edge convolution layer uses computed $\mathbf{e}_i'$ to update the edge attribute and takes the updated assignment graph as output. Specifically, the aggregate function $\rho^e$ is parameterized as
+
+$$
+\rho^ {e} \left(\mathbf {v} _ {s _ {i}}, \mathbf {v} _ {r _ {i}}\right) = M \left(\mathbf {v} _ {s _ {i}} \odot \mathbf {v} _ {r _ {i}}\right), \tag {7}
+$$
+
+where $M \in \mathbb{R}^{d_e \times d_v}$ is the parameter matrices and $\odot$ denotes element-wise multiplication of two vectors. The update function $\phi^e$ is specified as an MLP that takes the concatenated vector $[\bar{\mathbf{e}}_i; \mathbf{e}_i]$ as input and outputs an updated edge attribute vector. Similar to cases in the encoder, $\rho^e$ and $\phi^e$ are shared across all edges to compute per-edge affinity.
+
+The node convolution layer: For each node, this layer aims to collect attributes of adjacent edges for node convolution. The computation of node convolution is performed by an aggregation function $\rho^v$ and an update function $\phi^v$
+
+$$
+\overline {{\mathbf {v}}} _ {i} = \rho^ {v} \left(\mathbb {E} _ {i} ^ {A}\right), \tag {8}
+$$
+
+$$
+\mathbf {v} _ {i} ^ {\prime} = \phi^ {v} (\bar {\mathbf {v}} _ {i}, \mathbf {v} _ {i}),
+$$
+
+where $\mathbb{E}_i^A$ denote the set of all edge associated with the $i$ -th node in $\mathbb{G}^A$ . Different from the aggregating function $\rho^e$ in the edge convolution layer, $\rho^v$ in this layer is nonparametric and formulated as
+
+$$
+\rho^ {v} \left(\mathbb {E} _ {i} ^ {A}\right) = \sum_ {k \in \mathbb {E} _ {i} ^ {A}} \mathbf {e} _ {k}. \tag {9}
+$$
+
+Similar to $\phi^e$ in the edge convolution layer, the update function $\phi^v$ is parameterized by an MLP that takes the concatenated vector $[\overline{\mathbf{v}}_i; \mathbf{v}_i]$ as input.
+
+In summary, each instance of the convolution module contains one nonparametric function, $\rho^v$ , and three trainable functions, $\rho^e$ , $\phi^e$ and $\phi^v$ . In particular, these functions in different instances stacked in our framework are independent to each other, which allows our framework to aggregate information of neighborhoods at different orders with different degrees. It is notable that these functions are convolutional filters, i.e., they are translation invariant to spatial locations of nodes and edges. That is, they perform per-node and per-edge computations that are independent of the input data structure, allowing our framework to perform end-to-end training for graphs with variable size and structure.
+
+The number of Convolutional layers depends largely on the size of the constructed assignment graph, and we empirically fix it to 10 throughout our experiments.
+
+# 4.4. Loss function
+
+Similar to [27], we directly utilize the ground-truth node-to-node correspondence to guide the training of our network. Taking the ground-truth permutation matrix $X^{gt}$ between $\mathbb{G}^{(1)}$ and $\mathbb{G}^{(2)}$ , we first convert it to node labels $Y^{gt} \in \{0,1\}^{n^2 \times 2}$ of the assignment graph $\mathbb{G}^A$ as
+
+$$
+\left\{ \begin{array}{l} Y _ {i, 1} ^ {g t} = 1 - \mathbf {x} _ {i} ^ {g t} \\ Y _ {i, 2} ^ {g t} = \mathbf {x} _ {i} ^ {g t} \end{array} , \text {f o r} 1 \leq i \leq n ^ {2}, \right. \tag {10}
+$$
+
+where $\mathbf{x}^{gt} \doteq \operatorname{vec}(X^{gt})$ is the vectorized version of the ground-truth permutation matrix. To evaluate the difference between the predicted node labels $Y$ and the ground-truth node labels $Y^{gt}$ , we adopt cross entropy loss to compute a permutation loss
+
+$$
+\mathcal {L} ^ {\text {p e r m}} = - \sum_ {i = 1} ^ {n ^ {2}} \left(Y _ {i, 1} ^ {g t} \log Y _ {i, 1} + Y _ {i, 2} ^ {g t} \log Y _ {i, 2}\right). \tag {11}
+$$
+
+The one-to-one matching constraints of graph matching usually play crucial roles in guiding graph matching in traditional non-learning algorithms [20, 29, 38], but it has not been fully explored in previous deep learning algorithms [27, 33]. In particular, these constraints can be formulated as
+
+$$
+B \mathbf {x} ^ {g t} = \mathbf {1} _ {2 n}, \tag {12}
+$$
+
+where $B\in \{0,1\}^{2n\times n^2}$ is an auxiliary matrix (please refer to [29] for the details of the construction of $B$ ). To impose the one-to-one matching constraints in our graph network, we first compute an index vector $\mathbf{y}\in \{0,1\}^{n^2}$ such that
+
+$$
+\mathbf {y} _ {i} = \arg \max _ {k \in \{0, 1 \}} Y _ {i, k + 1}, \text {f o r} 1 \leq i \leq n ^ {2}, \tag {13}
+$$
+
+and then evaluate the degree of satisfaction of the one-to-one matching constraints by a constraint loss
+
+$$
+\mathcal {L} ^ {\text {c o n}} = \| B \left(\mathbf {y} - \mathbf {x} ^ {\mathrm {g t}}\right) \| _ {2}. \tag {14}
+$$
+
+We finally combine the permutation loss and the constraint loss
+
+$$
+\mathcal {L} = \mathcal {L} ^ {\text {p e r m}} + \alpha \mathcal {L} ^ {\text {c o n}}, \tag {15}
+$$
+
+as the supervised information for end-to-end training of our graph network, where $\alpha \geq 0$ controls the degree of the one-to-one constraints imposed. In practice we set $\alpha = 0$ at the beginning of training and increase it gradually as training goes on.
+
+# 5. Experiments
+
+We evaluate the proposed algorithm on four benchmarks in comparison with eight state-of-the-art algorithms, IPFP [15], RRWM [6], PSM [10], GNCCP [20], ABPF [29], HARG [5], GMN [33] and PCA [27], of which the last two are deep learning methods.
+
+
+(a) varying noise
+
+
+(b) varying outliers
+Figure 3. Comparison on 2D point sets.
+
+
+(a) varying sampling gap
+Figure 4. Comparison on the CMU house dataset.
+
+
+varying outlier
+
+# 5.1. Synthetic 2D Points
+
+We firstly compare these algorithms on the task of finding correspondences between sets of 2D points generated following the experimental protocol in [13]. For each trial, we construct two sets, $\mathbb{P}^{(1)}$ and $\mathbb{P}^{(2)}$ , with $n_{\mathrm{in}} = 10$ inlier points, and later add $n_{\mathrm{out}}$ outlier points to both sets. The inlier points in $\mathbb{P}^{(1)}$ are randomly selected in a given region of the plane. We then obtain the corresponding inliers in $\mathbb{P}^{(2)}$ by disturbing independently the points from $\mathbb{P}^{(1)}$ with white gaussian noise $\mathcal{N}(0,\sigma)$ , and then rotating and translating the whole data set $\mathbb{P}^{(2)}$ with a random rotation and translation. The outlier points of each set are randomly selected from the same region as liners. The range of the point coordinates in $\mathbb{P}^{(1)}$ is $256\sqrt{(n_{\mathrm{in}} + n_{\mathrm{out}}) / 10}$ . We generate 200,000 random pairs of point sets for training, in which $n_{\mathrm{out}}$ varies from 0 to 10 and $\sigma$ from 0 to 20. Given two pairs of points $(i,j)\in \mathbb{P}^{(1)}$ and $(a,b)\in \mathbb{P}^{(2)}$ , the edge affinity used in the non-learning methods is computed following [13].
+
+We compare the performance of the algorithms under two different settings: (1) we increase noise parameter $\sigma$ from 0 to 20 while fixing $n_{\mathrm{out}} = 5$ , and (2) we change the number of outliers $n_{\mathrm{out}}$ from 0 to 10 and set $\sigma = 20$ . Under each scenario we generate 500 random pairs of graphs for testing. As illustrated in Fig. 3, our algorithm exhibits stronger robustness against both noise and outlier than compared baseline algorithms.
+
+Table 1. Comparison of matching accuracy $(\%)$ on the Willow dataset.
+
+| Algorithm | Car | Duck | Face | Motor. | Wine. | AVG |
| IPFP [15] | 74.8 | 60.6 | 98.9 | 84.0 | 79.0 | 79.5 |
| RRWM [6] | 86.3 | 75.5 | 100 | 94.9 | 94.3 | 90.2 |
| PSM [10] | 88.0 | 76.8 | 100 | 96.4 | 97.0 | 91.6 |
| GNCCP [20] | 86.4 | 77.4 | 100 | 95.6 | 95.7 | 91.0 |
| ABPF [29] | 88.4 | 80.1 | 100 | 96.2 | 96.7 | 92.3 |
| HARG [5] | 71.9 | 72.2 | 93.9 | 71.4 | 86.1 | 79.1 |
| GMN [33] | 74.3 | 82.8 | 99.3 | 71.4 | 76.7 | 80.9 |
| PCA [27] | 84.0 | 93.5 | 100 | 76.7 | 96.9 | 90.2 |
| ours | 91.2 | 86.2 | 100 | 99.4 | 97.9 | 94.9 |
+
+# 5.2. CMU House Dataset
+
+The CMU house dataset is widely-used for graph matching, which includes 111 frames of image sequences, where all sequences contain the same house object with transformation cross sequence gaps. In order to assess the matching accuracy, 30 landmarks were manually tracked and labeled across all frames.
+
+We generate 300,000 random graph pairs for training. For each trial at training, we form graph pairs by randomly choosing two examples out of the 111 frames. To evaluate graph matching algorithms against noise, $n_1(10 \leq n_1 \leq 30)$ points are randomly chosen out of the 30 landmark points for the first example of the pair, which implies the second example contains $30 - n_1$ outlier points.
+
+We follow [29, 38] to generate the affinity matrix that is used in the non-learning algorithms. Graph edges are built by Delaunay triangulation [7], and each edge $(i,j)$ is associated with a weight $w_{ij}$ that is computed as the Euclidean distance between the connected nodes $v_{i}$ and $v_{j}$ . The node affinity is set to zero, and the edge affinity between edges $(i,j)$ in $\mathbb{G}^{(1)}$ and $(a,b)$ in $\mathbb{G}^{(2)}$ is computed as $K_{\mathrm{ind}(i,a)\mathrm{ind}(j,b)} = \exp \left(-\left(w_{ij}^{(1)} - w_{ab}^{(2)}\right)^{2} / 2500\right)$ .
+
+The matching accuracy of the compared methods are tested under two scenarios. In the first case (Fig. 4(a)) we set $n_1 = 20$ and match all possible image pairs, in total 560 pairs gapped by 10, 20, ..., 100 frames, where increasing sampling gaps implies the increase of deformation degree. In the second (Fig. 4(b)) we fix the sequence gap to 50 and vary $n_1$ from 30 to 20, i.e., increasing the number of outliers from 0 to 10. It is observed that the non-learning methods gain perfect matching results when no outlier point exists, but increasing outliers degrades greatly their performance. In contrast, the deep learning methods (GMN [33], PCA [27] and ours) are relatively robust against deformation and outlier by learning a more robust affinity function. In particular, our method outperforms all baseline methods in general, and achieves about $95\%$ matching accuracy under all tested scenarios.
+
+Table 2. Comparison of matching accuracy (%) on the Pascal VOC dataset.
+
+| Algorithm | aero | bike | bird | boat | bottle | bus | car | cat | chair | cow | table | dog | horse | mbike | person | plant | sheep | sofa | train | tv | AVG |
| IPFP [15] | 25.1 | 26.4 | 41.4 | 50.3 | 43.0 | 32.9 | 37.3 | 32.5 | 33.6 | 28.2 | 26.9 | 26.1 | 29.9 | 32.0 | 28.8 | 62.9 | 28.2 | 45.0 | 69.3 | 33.8 | 36.6 |
| RRWM [6] | 30.9 | 40.0 | 46.4 | 54.1 | 52.3 | 35.6 | 47.4 | 37.3 | 36.3 | 34.1 | 28.8 | 35.0 | 39.1 | 36.2 | 39.5 | 67.8 | 38.6 | 49.4 | 70.5 | 41.3 | 43.0 |
| PSM [10] | 32.6 | 37.5 | 49.9 | 53.2 | 47.8 | 34.6 | 50.1 | 35.5 | 37.2 | 36.3 | 23.1 | 32.7 | 42.4 | 37.1 | 38.5 | 62.3 | 41.7 | 54.3 | 72.6 | 40.8 | 43.1 |
| GNCCP [20] | 28.9 | 37.1 | 46.2 | 53.1 | 48.0 | 36.3 | 45.5 | 34.7 | 36.3 | 34.2 | 25.2 | 35.3 | 39.8 | 39.6 | 40.7 | 61.9 | 37.4 | 50.5 | 67.0 | 34.8 | 41.6 |
| ABPF [29] | 30.9 | 40.4 | 47.3 | 54.5 | 50.8 | 35.1 | 46.7 | 36.3 | 40.9 | 38.9 | 16.3 | 34.8 | 39.8 | 39.6 | 39.3 | 63.2 | 37.9 | 50.2 | 70.5 | 41.3 | 42.7 |
| GMN [33] | 31.9 | 47.2 | 51.9 | 40.8 | 68.7 | 72.2 | 53.6 | 52.8 | 34.6 | 48.6 | 72.3 | 47.7 | 54.8 | 51.0 | 38.6 | 75.1 | 49.5 | 45.0 | 83.0 | 86.3 | 55.3 |
| PCA [27] | 40.9 | 55.0 | 65.8 | 47.9 | 76.9 | 77.9 | 63.5 | 67.4 | 33.7 | 65.5 | 63.6 | 61.3 | 68.9 | 62.8 | 44.9 | 77.5 | 67.4 | 57.5 | 86.7 | 90.9 | 63.8 |
| ours | 46.9 | 58.0 | 63.6 | 69.9 | 87.8 | 79.8 | 71.8 | 60.3 | 44.8 | 64.3 | 79.4 | 57.5 | 64.4 | 57.6 | 52.4 | 96.1 | 62.9 | 65.8 | 94.4 | 92.0 | 68.5 |
+
+# 5.3. Willow Object Dataset
+
+The Willow Object dataset is provided by [5] containing images of five classes, namely car, duck, face, motorbike and winebottle from Caltech-256 and Pascal VOC 2007. Each class contains at least 40 images with different instances and 10 distinctive landmarks were manually labeled on the target object across all images in each class.
+
+Following [5] we randomly choose 20 images from each object class for training and keep the rest for testing. For testing we randomly select 1000 pairs of images from the testing set of each class respectively.
+
+To generate the affinity matrix used in the non-learning algorithms, we follow [29] using SIFT descriptor [21] to represent the node attributes and compute the node affinity via their appearance similarity. Delaunay triangulation is adopted to build graph edges, and each edge $(i,j)$ is associated with two features $d_{ij}$ and $\theta_{ij}$ , where $d_{ij}$ is the pairwise distance between the connected nodes $v_{i}$ and $v_{j}$ , and $\theta_{ij}$ is the absolute angle between the edge and the horizontal line, i.e., $0\leq \theta_{ij}\leq \pi /2$ . Consequently, the edge affinity between edges $(i,j)$ in $\mathbb{G}^{(1)}$ and $(a,b)$ in $\mathbb{G}^{(2)}$ is computed as $K_{\mathrm{ind}(i,a)\mathrm{ind}(j,b)} = \exp (-(|d_{ij} - d_{ab}| + |\theta_{ij} - \theta_{ab}|) / 2)$ .
+
+Table 1 shows the matching accuracy of our algorithm in comparison with baseline algorithms $^2$ . This dataset is considered relatively easy because the lack of pose, scale and illumination changes. The predefined affinity function is sufficient to capture the structure consistency, and thus the previous deep learning methods [27,33] that train only the affinity function illustrate less superiority to the non-learning methods. In contrast, our method is able to learn not only the affinity function but also the combinatorial solver for graph matching. As a result, our method achieves the best matching results in all object classes except the Duck class, and rises the average matching accuracy up to $94.9\%$ .
+
+# 5.4. Pascal VOC Keypoints
+
+This dataset is an extension of the PASCAL VOC dataset with Berkeley annotations of keypoints [3] that contains 20 classes of instances with labeled keypoint locations. This
+
+dataset is considered more difficult than the Willow dataset because instances may vary from its scale, pose and illumination, and the number of inliers ranges from 6 to 23.
+
+For fair evaluation we use the same filtered dataset as that in [27], which contains 7,020 annotated images for training and 1,682 for testing. As a training sample can be formed using any two images of the same class, we draw randomly 100,000 samples from each class for training.
+
+The method of affinity generation for the non-learning algorithms is the same as that in Sec. 5.3. As illustrated in Table 2, our algorithm outperforms not only non-learning baselines but also all learning-based baselines. Note that non-learning algorithms show remarkable inferiority to the learning-based algorithms on this complex dataset for that the handcrafted affinity function is unable to capture the structure consistency due to the noise and outliers.
+
+# 6. Conclusion
+
+In this paper, we proposed a novel deep learning algorithm for graph matching aiming to improve the matching accuracy. We first convert the problem of building node correspondences between input graphs to the problem of selecting reliable nodes from a constructed assignment graph. In order to solve for node classification, we propose a fully trainable network that embeds the graph network block module to form structured representations for each node by convolving its neighborhoods. Moreover, a new loss function that encodes the one-to-one matching constraints is proposed to guide the training of our network. Experimental results reveal that our graph matching algorithm gains robustness against noises and outliers, and outperforms state-of-the-art algorithms.
+
+Acknowledgment. This work is supported by the Fundamental Research Funds for the Central universities (No. 2018JBM015), the China National Key Research and Development Plan (No. 2016YFB1001200), the National Nature Science Foundation of China (Nos. 61673048 and 61872032), and the Beijing Municipal Natural Science Foundation (No.4202060). The work was supported partially by the Yahoo Faculty Research and Engagement Program Award and the Amazon AWS Machine Learning Research Award. The corresponding authors are Yidong Li and Haibin Ling.
+
+# References
+
+[1] Kamil Adamczewski, Yumin Suh, and Kyoung Mu Lee. Discrete tabu search for graph matching. In ICCV, pages 109-117, 2015.
+[2] Peter W. Battaglia, Jessica B. Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Flores Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulcehre, H. Francis Song, Andrew J. Ballard, Justin Gilmer, George E. Dahl, Ashish Vaswani, Kelsey R. Allen, Charles Nash, Victoria Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matthew Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. Relational inductive biases, deep learning, and graph networks. CoRR, abs/1806.01261, 2018.
+[3] Lubomir D. Bourdev and Jitendra Malik. Poselets: Body part detectors trained using 3d human pose annotations. In ICCV, pages 1365-1372, 2009.
+[4] Tiberio S. Caetano, Julian J. McAuley, Li Cheng, Quoc V. Le, and Alexander J. Smola. Learning graph matching. IEEE Trans. Pattern Anal. Mach. Intell., 31(6):1048-1058, 2009.
+[5] Minsu Cho, Karteek Alahari, and Jean Ponce. Learning graphs to match. In CVPR, pages 25-32, 2013.
+[6] Minsu Cho, Jungmin Lee, and Kyoung Mu Lee. Reweighted random walks for graph matching. In ECCV, pages 492-505, 2010.
+[7] Paolo Cignoni, Claudio Montani, and Roberto Scopigno. Dewall: A fast divide and conquer delaunay triangulation algorithm in Ed. Computer-Aided Design, 30(5):333-341, 1998.
+[8] Timothee Cour, Praveen Srinivasan, and Jianbo Shi. Balanced graph matching. In NIPS, pages 313-320, 2006.
+[9] Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In NIPS, pages 3837-3845, 2016.
+[10] Amir Egozi, Yosi Keller, and Hugo Guterman. A probabilistic approach to spectral graph matching. IEEE Trans. Pattern Anal. Mach. Intell., 35(1):18-27, 2013.
+[11] Steven Gold and Anand Rangarajan. A graduated assignment algorithm for graph matching. IEEE Trans. Pattern Anal. Mach. Intell., 18(4):377-388, 1996.
+[12] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
+[13] Marius Leordeanu and Martial Hebert. A spectral technique for correspondence problems using pairwise constraints. In ICCV, pages 1482-1489, 2005.
+[14] Marius Leordeanu and Martial Hebert. Smoothing-based optimization. In CVPR, 2008.
+[15] Marius Leordeanu, Martial Hebert, and Rahul Sukthankar. An integer projected fixed point method for graph matching and MAP inference. In NIPS, pages 1114-1122, 2009.
+[16] Marius Leordeanu, Rahul Sukthankar, and Martial Hebert. Unsupervised learning for graph matching. International Journal of Computer Vision, 96(1):28-45, 2012.
+[17] Marius Leordeanu, Andrei Zanfir, and Cristian Sminchisescu. Semi-supervised learning and optimization for hypergraph matching. In ICCV, pages 2274-2281, 2011.
+
+[18] Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated graph sequence neural networks. In ICLR, 2016.
+[19] C. Karen Liu, Aaron Hertzmann, and Zoran Popovic. Learning physics-based motion style with nonlinear inverse optimization. ACM Trans. Graph., 24(3):1071-1081, 2005.
+[20] Zhiyong Liu and Hong Qiao. GNCCP - graduated nonconvexity and concavity procedure. IEEE Trans. Pattern Anal. Mach. Intell., 36(6):1258-1267, 2014.
+[21] David G. Lowe. Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision, 60(2):91-110, 2004.
+[22] Gengyu Lyu, Songhe Feng, Tao Wang, Congyan Lang, and Yidong Li. GM-PLL: graph matching based partial label learning. IEEE Trans. Knowl. Data Eng., 2019.
+[23] Eduard Serradell, Miguel Amvel Pinheiro, Raphael Sznitman, Jan Kybic, Francesc Moreno-Noguer, and Pascal Fua. Non-rigid graph registration using active testing search. IEEE Trans. Pattern Anal. Mach. Intell., 37(3):625-638, 2015.
+[24] Lorenzo Torresani, Vladimir Kolmogorov, and Carsten Rother. Feature correspondence via graph matching: Models and global optimization. In ECCV, pages 596-609, 2008.
+[25] Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, and Yasemin Altun. Large margin methods for structured and interdependent output variables. J. Mach. Learn. Res., 6:1453-1484, 2005.
+[26] Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In ICLR, 2018.
+[27] Runzhong Wang, Junchi Yan, and Xiaokang Yang. Learning combinatorial embedding networks for deep graph matching. In ICCV, 2019.
+[28] Tao Wang and Haibin Ling. Gracker: A graph-based planar object tracker. IEEE Trans. Pattern Anal. Mach. Intell., 40(6):1494-1501, 2018.
+[29] Tao Wang, Haibin Ling, Congyan Lang, and Songhe Feng. Graph matching with adaptive and branching path following. IEEE Trans. Pattern Anal. Mach. Intell., 40(12):2853-2867, 2018.
+[30] Tao Wang, Haibin Ling, Congyan Lang, Songhe Feng, and Xiaohui Hou. Deformable surface tracking by graph matching. In ICCV, pages 901-910, 2019.
+[31] Jun Wu, Hong Shen, YiDong Li, ZhiBo Xiao, MingYu Lu, and ChunLi Wang. Learning a hybrid similarity measure for image retrieval. Pattern Recognition, 46(11):2927-2939, 2013.
+[32] Junchi Yan, Chao Zhang, Hongyuan Zha, Wei Liu, Xiaokang Yang, and Stephen M. Chu. Discrete hyper-graph matching. In CVPR, pages 1520-1528, 2015.
+[33] Andrei Zanfir and Cristian Sminchisescu. Deep learning of graph matching. In CVPR, pages 2684-2693, 2018.
+[34] Mikhail Zaslavskiy, Francis R. Bach, and Jean-Philippe Vert. A path following algorithm for the graph matching problem. IEEE Trans. Pattern Anal. Mach. Intell., 31(12):2227-2242, 2009.
+
+[35] Ron Zass and Amnon Shashua. Probabilistic graph and hypergraph matching. In CVPR, 2008.
+[36] Quanshi Zhang, Xuan Song, Xiaowei Shao, Huijing Zhao, and Ryosuke Shibasaki. Learning graph matching: Oriented to category modeling from cluttered scenes. In ICCV, pages 1329-1336, 2013.
+[37] Quanshi Zhang, Xuan Song, Xiaowei Shao, Huijing Zhao, and Ryosuke Shibasaki. Attributed graph mining and matching: An attempt to define and extract soft attributed patterns. In CVPR, pages 1394-1401, 2014.
+[38] Feng Zhou and Fernando De la Torre. Factorized graph matching. In CVPR, pages 127-134, 2012.
\ No newline at end of file
diff --git a/learningcombinatorialsolverforgraphmatching/images.zip b/learningcombinatorialsolverforgraphmatching/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..59e0ec6b008ca4cf2a410d7ce607b8e44e7b74db
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c0261724358fc93525ba0087ad6f4ff92beb1a97d61c2b7deac63cdcf118a33
+size 362193
diff --git a/learningcombinatorialsolverforgraphmatching/layout.json b/learningcombinatorialsolverforgraphmatching/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8535a3eb1c093f320a431c0786b6ef11abea26c5
--- /dev/null
+++ b/learningcombinatorialsolverforgraphmatching/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a8ddd79e28df66d1d47bc1ab8a676048e2d3808e7c2b8dba242c054db4428bb4
+size 481135
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_content_list.json b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..75eb69df57e7159eb4a52553ea8b8fca2758e7cb
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8639820e972331852977a022fcb60520cae50c7ad5816f8fa99415bb5a96f8bf
+size 75754
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_model.json b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d7874a6c783c65681eb29a3c5dc8cd29ee714eb
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f7025f9a22603614a4fb024873ced7d3a083f55117875f6035ab833ad5a33be
+size 91500
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_origin.pdf b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d521f561ae423718a6b7ee7198d869d969497ebc
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/bb3bf47d-69a0-4c69-80b1-08f6f4080a22_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:edca72f07ebc90eda1d0f8cf4e117928a29b7de50043dd6358154076e4804f99
+size 831361
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/full.md b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..77f4c1452f63239ed7a6eb66e8da99adeb771b76
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/full.md
@@ -0,0 +1,331 @@
+# Learning deep network for detecting 3D object keypoints and 6D poses
+
+Wanqing Zhao, Shaobo Zhang, Ziyu Guan*
+
+Northwest University
+
+Xi'an, China
+
+Wei Zhao
+
+Xidian University
+
+Xi'an, China
+
+{zhaowq@, zhangshaobo@stumail. ziyuguan@}nwu.edu.cn
+
+ywzhao@mail.xidian.edu.cn
+
+Jinye Peng*
+
+Northwest University
+
+Xi'an, China
+
+pjy@nwu.edu.cn
+
+Jianping Fan
+
+UNC-Charlotte
+
+NC28223, USA
+
+jfan@uncc.edu
+
+# Abstract
+
+The state-of-the-art 6D object pose detection methods use convolutional neural networks to estimate objects' 6D poses from RGB images. However, they require huge numbers of images with explicit 3D annotations such as 6D poses, 3D bounding boxes and 3D keypoints, either obtained by manual labeling or inferred from synthetic images generated by 3D CAD models. Manual labeling for a large number of images is a laborious task, and we usually do not have the corresponding 3D CAD models of objects in real environment. In this paper, we develop a keypoint-based 6D object pose detection method (and its deep network) called Object Keypoint based POSe Estimation (OK-POSE). OK-POSE employs relative transformation between viewpoints for training. Specifically, we use pairs of images with object annotation and relative transformation information between their viewpoints to automatically discover objects' 3D keypoints which are geometrically and visually consistent. Then, the 6D object pose can be estimated using a keypoint-based geometric reasoning method with a reference viewpoint. The relative transformation information can be easily obtained from any cheap binocular cameras or most smartphone devices, thus greatly lowering the labeling cost. Experiments have demonstrated that OK-POSE achieves acceptable performance compared to methods relying on the object's 3D CAD model or a great deal of 3D labeling. These results show that our method can be used as a suitable alternative when there are no 3D CAD models or a large number of 3D annotations.
+
+# 1. Introduction
+
+6D object pose detection aims to recognize the 3D location and orientation of an object. It serves as a crucial com
+
+ponent in some promising computer vision applications like augmented reality, robotic manipulation and autonomous driving. Traditional methods relying on depth images acquired from RGB-D cameras are quite robust [3, 15]. However, such cameras have limitations with respect to frame rate, field of view, resolution, and depth range, making them difficult to detect small, transparent, or fast moving objects.
+
+Alternatively, methods based on RGB images do not have those limitations, but it is more challenging for them to achieve high accuracy. Earlier methods in this direction calculate the 6D object pose through the matching of local features and 2D-3D correspondences [2, 24]. However, the matching of local features is time consuming and error-prone. Besides, they fail for objects with poor geometry or texture because they require there exists sufficient texture on the object to extract robust local features. Recently, deep Convolutional Neural Network (CNN) techniques have been proved to achieve better performance on processing object detection in RGB images and have been used to improve 6D object pose detection [14, 33]. The main idea of most CNN-based methods is learning the mapping function between an image and its 6D object pose from images with explicit 3D annotations such as 6D poses, 3D bounding boxes and 3D keypoints, either obtained by manual labeling or inferred from synthetic images generated by 3D CAD models. These methods are effective but require great labeling work or existence of 3D CAD models for the target objects. Manual labeling for a large number of images is a laborious task, and we usually do not have the corresponding 3D CAD models of objects in real environment.
+
+Compared with the above explicit 3D annotations, image pairs with relative transformation information indicating the position and rotation transformation between the viewpoints in 3D space are much easier to obtain. For example, image pairs with different viewpoints can be captured from a binocular camera, and the relative transformation in
+
+formation can be acquired from camera transformation. In addition, it can also be automatically measured from continuously captured photos using inertial navigation system (INS) installed in most smart phones. If this kind of information can be exploited for 6D pose detection, we can significantly lower the training cost and make related applications more practical. Previously, relative transformation is often used in manual-feature-based methods [39, 10] that covert 2D keypoints (e.g. SIFT keypoints) on images to 3D keypoints (2D coordinates plus depth) by epipolar geometry [38]. Such 3D keypoints could be used for geometric reasoning and 6D object pose detection. However, these methods suffer the limitations of manual local features. The relative transformation information has also been used as supervision in the CNN-based method [32] for 3D keypoints detection. Nevertheless, this method still requires 3D CAD models for generating synthetic training images. Its performance may degrade for real images.
+
+In this paper, we develop a keypoint-based 6D object pose detection method (and its deep network) called Object Keypoint based POSe Estimation (OK-POSE $^1$ ). OK-POSE learns to automatically detect 3D keypoints of objects which have invariance, distinctiveness and locality properties to estimate 6D object poses in real RGB images. Different from previous 6D pose detection methods, our method learns 3D keypoints from relative transformation between image pairs rather than explicit 3D labeling information or 3D CAD models. Considering real images often contain multiple objects, OK-POSE performs two tasks, namely, keypoint detection and object detection. For the keypoint detection task, its branch (called keypoint branch) is trained by a series of carefully designed keypoint loss functions including a distinctiveness loss, a depth regression loss, a cross-view consistency loss, a separation loss and a transformation recovery loss. The general goal of these loss functions is to seek optimal 3D keypoints that consistently locate on the same parts of the object across different viewpoints without keypoint annotation, even if they are invisible. For the object detection task, we devise its model branch (called object branch) and loss function similar to Faster R-cnn [27]. The object branch provides category indications for detected keypoints. In the inference phase, our network takes an RGB image as input and detects the categories, 2D locations and 3D keypoints of the target objects in the input image, by which the 6D object pose can be geometrically inferred from the corresponding keypoints in a reference image for each distinct object. The reference image is labeled with the pose information of the object as the datum, which sets the reference coordinate system for the input image. Since our network could predict all 3D keypoints including invisible ones in an image, only one reference image is enough in the inference phase. Experimental
+
+results over multiple benchmark datasets have demonstrated that OK-POSE achieves relatively accurate pose detection. It achieves acceptable performance compared to methods relying on the object's 3D CAD model or a great deal of 3D labeling. These results show that our method can be used as a suitable alternative when there are no 3D CAD models or a large number of 3D annotations.
+
+# 2. Related Work
+
+Previous works could be generally divided into manual-feature-based methods and CNN-based methods.
+
+Manual-feature-based methods. Manual-feature-based methods [28, 2, 24] usually consist of two stages. In the first stage, several local features (e.g. SIFT) are extracted from an image and matched with the features of known 3D locations. In the second stage, the 2D-3D correspondence will be used by the geometric reasoning framework (e.g. PnP algorithm [18]) to recover the 6D object poses. Brachmann et al. [4] proposed using regression forests to predict dense coordinates and the shape of an object, and then recover its pose. Manual-feature-based methods are often robust to occlusion and cluttered scenes due to the invariance, distinctiveness and locality properties of local features. However, the process of feature matching in these methods is error prone and time consuming. Besides, they rely on textured objects in high-resolution images.
+
+CNN-based methods. In recent years, CNN-based methods have shown great potential in vision recognition tasks like image classification [17, 30] and object detection [27, 20]. There are also some methods proposed to solve 6D object pose detection using CNNs [26, 16]. Methods in [36, 16] treat 6D object pose detection as a pose regression problem, using CNNs to directly predict the 6D pose. However, direct pose regression suffers from difficulties, e.g., it is difficult to satisfy orthonormality constraints for object rotation if the rotation is parametrized as a matrix. To avoid this problem, [14, 5] covert 6D object pose detection into a pose classification problem by discretizing the pose space. These methods use CNNs to output a probability distribution in the pose space, and associate it with explicit 3D information to regress the 6D pose. Other methods [33, 25] are 6D object pose detection pipelines containing a CNN architecture for object detection. These methods use some existing CNNs [20, 7] to locate objects in images and extract 2D keypoints [34] on the objects, and then compute the 6D object pose using a PnP algorithm. These methods are effective by leveraging supervision in the form of explicit 3D information annotations. However, the work of labeling images with explicit 3D information is magnitudes high and requires expert knowledge and a complex setup [12]. In order to generate more labeled training data, some methods [31, 32] render synthetic images using 3D CAD models. In
+
+real environment, we usually do not have 3D CAD models of real objects. A more relevant method to ours is keypoint-net [32] which directly discovers geometrically consistent keypoints from the relative transformation of image pairs. However, keypointnet still needs 3D CAD models to render training images with transparent backgrounds. Training on synthetic images may reduce detection performance on real images. Besides, because it cannot detect objects in complex backgrounds, it needs additional object detection pipeline for multi-object pose detection task. Our method integrates object and keypoint detection into an end-to-end network. It explores richer information (e.g., visual relationship and epipolar geometry) in paired real images to learn more reliable and robust keypoints without 3D CAD models or explicit 3D annotated images.
+
+# 3. The Approach
+
+Our objective is to infer the 6D object poses in real RGB images based on 3D keypoints learned from relative transformation between viewpoints. The OK-POSE network contains three components which are backbone, object branch and keypoint branch. The backbone is used to extract features over the whole image and is shared between the object branch and the keypoint branch. The two branches correspond to object detection and 3D keypoint detection tasks, respectively. Given two images of the same object with known relative transformation, we train the network to predict two lists of 3D keypoints in two images that are visually consistent w.r.t the target objects and enable recovery of the transformation. During inference, our network detects the 3D keypoints of an input image. Then we use a reference image with 3D keypoints detected by OK-POSE to infer its transformation relationship with the input image and estimate 6D object pose in the input image accordingly. The reference image contains the real pose as the datum. Figure 1 shows an overview of our approach. We detail each panel of Figure 1 in the following subsections.
+
+# 3.1. Network
+
+For the backbone, we use ResNet101 [9] together with a Feature Pyramid Network (FPN) [19] to extract features over the whole image. FPN uses a top-down architecture with lateral connections to build an in-network feature pyramid from a single-scale input. We extract Region of Interest (ROIs) identified as potential objects by Region Proposal Network (RPN) [27] and feed them to the two branches. The combination of ResNet, FPN and RPN as a backbone is widely used in object detection tasks [7, 27] and pose detection tasks [5, 14] for feature extraction. It gives excellent gains in both accuracy and speed for object and keypoint detection in our network.
+
+The keypoint branch takes a ROI as input and outputs a probability distribution map $P_{i}(\hat{u},\hat{v})$ for each keypoint that
+
+represents how likely the $i$ -th keypoint is to occur at each location $(\hat{u},\hat{v})$ in the map. The expected location of the $i$ -th keypoint $\hat{x}_i,\hat{y}_i$ can be computed by the following equation
+
+$$
+\hat {x} _ {i} = \sum_ {\hat {u}, \hat {v}} \left\lfloor \hat {u} \cdot P _ {i} (\hat {u}, \hat {v}) \right\rfloor , \hat {y} _ {i} = \sum_ {\hat {u}, \hat {v}} \left\lfloor \hat {v} \cdot P _ {i} (\hat {u}, \hat {v}) \right\rfloor \tag {1}
+$$
+
+where $\lfloor \cdot \rfloor$ is the floor operator. To generate 3D keypoints, we also predict a depth value at every location. The depth of the $i$ -th keypoint is the depth value at $(\hat{x}_i,\hat{y}_i)$ .
+
+The keypoint branch contains four consecutive convolutional layers, each with 64 output channels and $3 \times 3$ kernels after ROI feature maps. Each convolution layer is followed by a relu function [22]. To expand the size of the feature maps obtained from the last convolutional layer, we use a deconvolutional layer ( $3 \times 3$ kernels with stride 2) to upsample the feature map as the output layer. The output layer has $N + 1$ channels, with the first $N$ channels being un-normalized distribution maps for the $N$ keypoints and the last one containing depth predictions. The first $N$ channels are passed through spatial softmax to produce $P_{i}$ . The output of this branch is class-agnostic, i.e., this branch outputs category-irrelevant keypoints. We empirically found that this design reduces the model complexity and the prediction time, while it is nearly effective as the class-specific design (i.e., with a $C(N + 1)$ -dimensional output channels in which $C$ is the number of classes). This observation is consistent with those in some CNN-based image segmentation and pose regression methods [7, 5]. The training procedure will be detailed in the next subsection.
+
+For the object branch, we follow Faster R-cnn [27]. Each predicted object bundled with keypoints detected from the ROI will be output, and the pixel coordinates $[x_i,y_i]$ of the $i$ -th keypoint are obtained by mapping $[\hat{x}_i,\hat{y}_i]$ back to image space using the bounding box of the predicted object [8].
+
+# 3.2. Learning keypoints by relative transformation
+
+We are given an image pair $(I, I')$ of an object with a known relative transformation $\mathbf{T}$ between their viewpoints
+
+$$
+\mathbf {T} = \left[ \begin{array}{c c} \mathbf {R} ^ {3 \times 3} & \mathbf {t} ^ {3 \times 1} \\ 0 & 1 \end{array} \right] \tag {2}
+$$
+
+where $\mathbf{R}$ and $\mathbf{t}$ represent a 3D rotation and translation respectively. We aim to predict two optimal lists of 3D keypoints in the two images that have geometrical and visual consistency. Geometrical consistency means that 3D keypoints should preserve rotation invariance, position invariance and scale invariance w.r.t the object. Visual consistency means the locations of matched keypoints should share a similar visual appearance. To this end, we consider the following criterions to learn proper 3D keypoints.
+
+- A cross-view consistency loss that measures the discrepancy between the two lists of keypoints under the relative transformation.
+
+
+
+
+Figure 1. The overview of our proposed approach. Panel (a) shows the architecture of the network. Panel (b) illustrates the training stage, where a multi-task loss and the relative transformation $\mathbf{T}_{\mathbf{gt}}$ are used to train the network. Panel (c) represents an example of pose inference, where the pose is recovered by multiplying the relative transformation $\mathbf{T}_{trans}$ on the reference pose. $\mathbf{T}_{trans}$ is calculated by Kabsch algorithm [13] from the detected keypoints on the input image and the reference.
+
+- A depth regression loss that minimizes the distance between the predicted keypoint depth and depth calculated according to the relative transformation by epipolar geometry.
+- A distinctiveness loss that encourages keypoints to occur on visually distinctive areas.
+- A separation loss to avoid keypoints locating on the same 3D location.
+- A transformation recovery loss, which penalizes the difference between the transformation $\mathbf{R}'$ , $\mathbf{t}'$ recovered from two lists of keypoints and the real $\mathbf{R}$ , $\mathbf{t}$ .
+
+In follows, we will describe each loss functions in detail.
+
+Cross-view Consistency Loss This loss is to ensure that via relative transformation, each keypoint $(x,y,z)$ detected in $I$ is projected to the same pixel location as its corresponding keypoint $(x',y',z')$ in $I'$ , and vice versa. Such projections can be established by the following relationship:
+
+$$
+\mathbf {K} ^ {- 1} [ x, y, z, 1 ] ^ {\top} = \mathbf {T K} ^ {- 1} \left[ x ^ {\prime}, y ^ {\prime}, z ^ {\prime}, 1 \right] ^ {\top} \tag {3}
+$$
+
+where $\mathbf{K} \in R^{4 \times 4}$ denotes the intrinsic camera parameters. This formula means the corresponding keypoints should be projected to the same location in the camera 3D space. From this relationship, we can establish the aforementioned projections:
+
+$$
+[ x, y, z, 1 ] ^ {\top} = \mathbf {K T K} ^ {- 1} [ x ^ {\prime}, y ^ {\prime}, z ^ {\prime}, 1 ] ^ {\top} \triangleq [ \tilde {x}, \tilde {y}, \tilde {z}, 1 ] ^ {\top} \tag {4}
+$$
+
+$$
+\left[ x ^ {\prime}, y ^ {\prime}, z ^ {\prime}, 1 \right] ^ {\top} = \mathbf {K T} ^ {- 1} \mathbf {K} ^ {- 1} [ x, y, z, 1 ] ^ {\top} \triangleq \left[ \tilde {x} ^ {\prime}, \tilde {y} ^ {\prime}, \tilde {z} ^ {\prime}, 1 \right] ^ {\top} \tag {5}
+$$
+
+Consequently, the cross-view consistency loss is defined by
+
+a Smooth L1 loss $(S_{L1})$ [6] as follows:
+
+$$
+L _ {c o n} = \frac {1}{N} \sum_ {i = 1} ^ {N} S _ {L 1} \left(\left[ x _ {i}, y _ {i}, x _ {i} ^ {\prime}, y _ {i} ^ {\prime} \right] ^ {\top} - \left[ \tilde {x} _ {i}, \tilde {y} _ {i}, \tilde {x} _ {i} ^ {\prime}, \tilde {y} _ {i} ^ {\prime} \right] ^ {\top}\right) \tag {6}
+$$
+
+With the help of this loss function and training pairs with extensive transformation, the learned 3D keypoints will fall stably on the consistent locations of the object, even if the location is invisible in the image. This enables robust inference with only one reference image per object.
+
+Depth Regression Loss In order to predict 3D keypoints, we also need to learn the depth information. In our approach, the depth of keypoints can be estimated by image pair $(I,I^{\prime})$ with relative transformation $\mathbf{T}$ . Epipolar geometry [38] describes the relation between 3D keypoints and their 2D projections given the relative transformation $\mathbf{T}$ . Based on the relation, given the 2D projections of two corresponding keypoints: $\mathbf{e} = [x,y,1]^{\top}$ , $\mathbf{e}' = [x',y',1]^{\top}$ , we can calculate the depth $d$ , $d'$ of the two keypoints:
+
+$$
+d ^ {\prime} \mathbf {e} ^ {\wedge} \mathbf {R e} ^ {\prime} + \mathbf {e} ^ {\wedge} \mathbf {t} = 0 \tag {7}
+$$
+
+$$
+d \mathbf {e} = d ^ {\prime} \mathbf {R e} ^ {\prime} + \mathbf {t} \tag {8}
+$$
+
+where $\mathbf{e}^{\wedge}$ is the skew symmetric matrix of $\mathbf{e}$ . We solve Eq. (7) to obtain $d'$ using least square method, and then the depth $d$ can be obtained by Eq. (8). We take $d$ and $d'$ as fixed depth to optimize the predicted depth $z$ and $z'$ of two corresponding keypoints in $I$ and $I'$ . The depth regression loss is defined as:
+
+$$
+L _ {d e p} = \frac {1}{N} \sum_ {i = 1} ^ {N} \left[ \left(z _ {i} - d _ {i}\right) ^ {2} + \left(z _ {i} ^ {\prime} - d _ {i} ^ {\prime}\right) ^ {2} \right] \tag {9}
+$$
+
+Distinctiveness Loss To improve robustness of the detected keypoints, the distinctiveness loss is imposed to encourage keypoints to appear in visually salient regions and to have the properties of conspicuousness, ease of detection and diversity. We aim to find blob-like points [1] having these properties. Compared to surrounding regions in the images, blob-like points differ in properties such as brightness or color. Given an image $I$ , we produce a distribution map $l(u,v) \in (0,1)$ where $l(u,v) = 1$ represents that pixel $(u,v)$ is a keypoint candidate. To produce the map $l(u,v)$ , we first set up a Hessian matrix for each pixel. The Hessian matrix reflects the variations between a pixel and its surrounding pixels. The Hessian matrix $\mathbf{H}((u,v),\lambda)$ for $(u,v)$ with Gaussian scale $\lambda$ is defined as:
+
+$$
+\mathbf {H} ((u, v), \lambda) = \left[ \begin{array}{l l} L _ {u u} ((u, v), \lambda) & L _ {u v} ((u, v), \lambda) \\ L _ {u v} ((u, v), \lambda) & L _ {v v} ((v, v), \lambda) \end{array} \right] \tag {10}
+$$
+
+where $L_{uu}((u,v),\lambda), L_{uv}((u,v),\lambda)$ and $L_{vv}((u,v),\lambda)$ are the second order derivatives of the convolution of image $I$ at pixel $(u,v)$ with scale $\lambda$ . Then we calculate the determinant of Hessian matrix of each pixel. By applying a nonmaximum suppression (nms) [23], if $\det(\mathbf{H}((u,v),\lambda))$ is the maximum among its $3 \times 3$ neighborhood, it is considered to be a blob-like point.
+
+$$
+l (u, v) = \left\{ \begin{array}{c c} 1, & (u, v) = \underset {(u ^ {\prime}, v ^ {\prime}) \in \mathcal {N} _ {(u, v)} ^ {3 \times 3}} {\arg \max } \det (\mathbf {H} ((u ^ {\prime}, v ^ {\prime}), \lambda)) \\ 0, & e l s e \end{array} \right. \tag {11}
+$$
+
+where $\mathcal{N}_{(u,v)}^{3\times 3}$ is the $3\times 3$ neighborhood of $(u,v)$ . The $l(u,v) = 1$ means that pixel $(u,v)$ is a blob-like point, and can be considered as a keypoint candidate. Considering that the predicted 3D keypoints may appear in the occluded parts of an object, to avoid conflicting with cross-view consistency loss, we assume that at least half of the keypoints are visible and only constrain these keypoints to be conspicuous. The loss function is defined as:
+
+$$
+L _ {d i s} = \frac {2}{N} \sum_ {i \in \mathbb {M}} \left(1 - l \left(x _ {i}, y _ {i}\right) P _ {i} \left(\hat {x} _ {i}, \hat {y} _ {i}\right)\right) \tag {12}
+$$
+
+where $\mathbb{M}$ is the set of indices of top $N / 2$ keypoints ranked in ascending order of $(1 - l(x_i,y_i)P_i(\hat{x}_i,\hat{y}_i))$ . This means we tend to constrain keypoints with high values of $l$ and $P_{i}$ coinciding at the same position. Visible keypoints are much more likely to have this property during training.
+
+Separation Loss The separation loss is to encourage the distance between keypoints in one image is larger than a parameter $\delta$ . In other words, we penalize keypoints if they are closer than $\delta$ in 3D space:
+
+$$
+L _ {s e p} = \frac {1}{N ^ {2}} \sum_ {i, j} \exp \left(- \frac {\left\| \left[ x _ {i} , y _ {i} , z _ {i} \right] ^ {\top} - \left[ x _ {j} , y _ {j} , z _ {j} \right] ^ {\top} \right\| _ {2} ^ {2}}{2 \delta^ {2}}\right) \tag {13}
+$$
+
+This loss encourages the points to be sufficiently far from each other to prevent multiple keypoints from occupying
+
+very similar locations.
+
+Transformation Recovery Loss Accurately estimating the relative transformation between an image and a reference is crucial for 6D pose detection. Therefore, we also set up a transformation recovery loss which measures the accuracy of transformation recovery using predicted keypoints. We use a geodesic distance [21] as the lose function:
+
+$$
+L _ {t r a n s} = \frac {\left\| \log \left(\mathbf {R} ^ {\prime} \mathbf {R} ^ {\top}\right) \right\| _ {F}}{\sqrt {2}} + \| \mathbf {t} - \mathbf {t} ^ {\prime} \| _ {2} ^ {2} \tag {14}
+$$
+
+This function measures the angular distance between the estimated relative rotation $\mathbf{R}'$ and ground truth $\mathbf{R}$ and the Euclidean distance between the estimated translation $\mathbf{t}'$ and ground truth $\mathbf{t}$ . The $\mathbf{R}'$ and $\mathbf{t}'$ can be calculated from the two lists of predicted keypoints by Kabsch algorithm [13].
+
+# 3.3. Training and 6D pose inference
+
+Training: In order to train our network, a multi-task loss is defined to jointly train the object and keypoint branches. Formally, given a set of positive and negative ROIs generated by RPN [27], the total loss function is defined as:
+
+$$
+L (P o s, N e g) = \sum_ {N e g} L _ {c l a s s} + \sum_ {P o s} \left(L _ {c l a s s} + \beta L _ {b o x} + \gamma L _ {k e y p o i n t s}\right) \tag {15}
+$$
+
+The classification loss $L_{\text{class}}$ and the bounding box regression loss $L_{\text{box}}$ are defined as in Faster r-cnn [27]. $L_{\text{keypoints}}$ contains five parts $L_{\text{dis}}, L_{\text{dep}}, L_{\text{con}}, L_{\text{sep}}$ and $L_{\text{trans}}$ . The scales and aspect ratios in the RPN are set to the same values as in Faster r-cnn [27]. $\beta, \gamma$ and loss function weights in $L_{\text{keypoints}}$ are all empirically set to 1. $\lambda$ in Eq. (11) is normally set to 1.2 [1]. The parameters $\delta$ in Eq. (13) is set to 0.08 according to cross validation on training data. By comparing the results of different numbers of keypoints, we choose $N = 10$ considering the trade-off between speed and accuracy. We train the network using the Adam optimizer with a learning rate of $10^{-3}$ , a batchsize of 8 and 80000 iterations on a NVIDIA GTX 1080Ti.
+
+6D pose inference: The 6D object pose contains a 3D rotation matrix $\mathbf{R}_{6D}$ and a 3D translation vector $\mathbf{t}_{6D}$ , which determine the location and the orientation of an object in the camera 3D space. In the test phase, given an input image, the 3D keypoints of objects are extracted by our network. Then, the 6D object pose can be calculated by Kabsch algorithm from a reference. Specifically, given two sets of keypoints detected from the input image and the reference, the relative rotation $\mathbf{R}_{trans}$ and translation $\mathbf{t}_{trans}$ can be reasoned by Kabsch algorithm. Let $\mathbf{R}_{ref}$ and $\mathbf{t}_{ref}$ be the rotation and translation of the reference image in the camera 3D space. The rotation $\mathbf{R}_{6D}$ of the input image can be calculated by equation $\mathbf{R}_{6D} = \mathbf{R}_{trans} \cdot \mathbf{R}_{ref}$ , and its translation vector $\mathbf{t}_{6D} = \mathbf{t}_{trans} + \mathbf{t}_{ref}$ . In practice, the $\mathbf{t}_{ref}$ and $\mathbf{R}_{ref}$ of the reference image can be labeled by some existing methods [12, 35]. Since our network predicts all
+
+Table 1. Results with ablation loss function and various reference number on ape sequence.
+
+| Loss (ref. num) | w/o L_dis(1) | w/o L_dep(1) | w/o L_con(1) | w/o L(sep)(1) | w/o L_trans(1) | all (1) | all (3) | all (9) |
| Accuracy(ADD) | 15.8 | 6.7 | 8.5 | 24.9 | 23.3 | 35.8 | 38.0 | 39.84 |
+
+3D keypoints including invisible ones in images, one labeled reference image could be enough for relative transformation recovery and lead to acceptable performance, as demonstrated by the experiments.
+
+# 4. Experiment
+
+In this section, we evaluate our method on two widely used datasets, i.e., the single object pose dataset LINEMOD [11] and the multi-object pose dataset OCCLUSION [3]. We also compare our method with state-of-the-art baselines which require explicit 3D annotations or 3D CAD models.
+
+# 4.1. Datasets
+
+LINEMOD [11]: It is a dataset for the 6D object pose detection of objects in cluttered scenes. The central object in each RGB image is annotated with a 6D ground-truth pose and the category. The 3D CAD models of the objects are also provided. There are 15783 images in LINEMOD for 13 objects. Each object contains nearly 1200 images. Following [26] and [4], we use $15\%$ of the images which cover different views of the object from each object sequence to train a separate model. The remaining images are saved as the test set. Image pairs are randomly generated from the training images for training OK-POSE.
+
+OCCLUSION [3]: It is a multi-object pose detection dataset including 6 objects of LINEMOD, and all the objects are annotated, and some objects are partially occluded by others. We use the same training/test splits and picking rule as in LINEMOD.
+
+It should be emphasized that OK-POSE does not require the 6D ground-truth pose information for training. However, the two datasets do not offer the relative transformation information, so we have to obtain the relative transformation of image pairs based on their 6D poses. In practice, the relative transformation can be directly obtained by any cheap binocular cameras or most smartphone devices, without explicit 3D labeling. For symmetric objects, like SSD-6D [14], we solely sample views within the range $[0;\alpha]$ , where $\alpha$ is the angle of symmetry.
+
+# 4.2. Evaluation Metrics
+
+In order to evaluate the accuracy of the estimated pose, we use the standard metrics used in [26, 4]. For the pose error in 2D, we use the 2D-pose metric where the corresponding 3D object model is projected on the image using the ground truth pose and the estimated pose respectively. The estimated pose is accepted if the Intersection over Union (IoU) between the two projected boxes is more than 0.5. For
+
+the pose error in 3D, we use ADD metric [11] which calculates the average 3D distance between the 3D coordinates in the camera 3D space of each object model vertex recovered by the estimated/ground truth pose, and deems the estimated pose to be correct if the average distance is smaller than $10\%$ of the object's diameter. For re-projection error of 3D to 2D, we use the 2D re-projection metric which considers a pose to be correct when the mean distance between the 2D projections of the object's 3D mesh vertices using the estimated/ground truth pose is less than pixel threshold $\Delta (\Delta \in \{10,20,30,40,50\})$ .
+
+# 4.3. Ablation Studies
+
+To analyze the contribution of the keypoint-related loss functions, we omit one loss at a time and report the performance. Table 1 shows the results. It can be seen that when using all the loss functions, the result is the best. The effect of $L_{dep}$ and $L_{con}$ is important for our model. These two loss functions build the relationship from 2D to 3D and ensure consistency of the detected keypoints, which are obviously crucial for pose detection based on 3D keypoint correspondence. $L_{dis}$ also shows an important contribution to the performance, since it encourages the network to detect robust 3D keypoints steadily against variation in scale, rotation and illumination. $L_{trans}$ also promotes the performance because it encourages the network to find keypoints suitable for transformation recovery.
+
+During the pose inference, the reference image provides a unified real coordinate system for the input image. On the other hand, the effect of our method can be improved by using more references. More references could reduce keypoint consistency errors caused by excessive deviation of viewpoints. Therefore, we evaluate the accuracy of detection using different numbers of references (ref. num) on ape sequence. Specifically, we pick 1, 3, 9 images (trying to cover the whole view space) for each object as references respectively. The final pose estimate is the average of the poses calculated from different references. Table 1 shows that, with more references the accuracy will also increase gradually. However, the more references, the higher the annotation cost will be involved. For the following experiments, we only use a single reference.
+
+# 4.4. Single Object Pose Detection
+
+We conduct single object pose detection using the LINEMOD dataset. We compare OK-POSE with several state-of-the-art 6D pose detection methods that use synthetic images generated by 3D CAD models (keypointnet
+
+Table 2. The pose detection accuracy (ADD) on the LINEMOD dataset for single object category.
+
+| Training data | RGB with Relative Transformation | RGB with 3D CAD Models | RGB with 3D Annotation |
| OK-POSE | keypointnet+bbox [32] | keypointnet+mask [32] | SSD6D [14] | AAE [31] | DPOD [37] | Brachmann[4] | BB8 [26] |
| Ape | 35.8 | 8.4 | 18.3 | 0.00 | 3.96 | 37.22 | - | 27.9 |
| Benchvise | 26.1 | 19.2 | 3.8 | 0.18 | 20.92 | 66.76 | - | 62.0 |
| Cam | 34.7 | 6.2 | 17.5 | 0.41 | 30.47 | 24.22 | - | 40.1 |
| Can | 22.6 | 5.5 | 16.1 | 1.35 | 35.87 | 52.57 | - | 48.1 |
| Cat | 32.2 | 6.2 | 15.6 | 0.51 | 17.90 | 32.36 | - | 45.2 |
| Driller | 28.5 | 4.2 | 17.9 | 2.58 | 23.99 | 66.60 | - | 58.6 |
| Duck | 28.5 | 4.5 | 20.1 | 0.00 | 4.86 | 26.12 | - | 32.8 |
| Eggbox | 41.3 | 6.2 | 16.7 | 8.90 | 81.01 | 73.35 | - | 40.0 |
| Glue | 32.2 | 8.5 | 15.2 | 0.00 | 45.49 | 74.96 | - | 27.0 |
| Holepuncher | 15.0 | 19.4 | 2.9 | 0.30 | 17.60 | 24.50 | - | 42.4 |
| Iron | 38.9 | 6.2 | 18.6 | 8.86 | 32.03 | 85.02 | - | 67.0 |
| Lamp | 35.1 | 5.6 | 20.8 | 8.2 | 60.47 | 57.26 | - | 39.9 |
| Phone | 21.2 | 9.1 | 14.4 | 0.18 | 33.79 | 29.08 | - | 35.2 |
| Mean | 30.16 | 8.4 | 17.6 | 2.42 | 28.65 | 50 | 32.3 | 43.6 |
+
+
+Figure 2. Pose detection and keypoint detection results for an object from different views in a cluttered scene on the LINEMOD dataset.
+
+
+
+
+
+
+
+
+Figure 3. Keypoint detection under different lighting conditions and on a textureless object. The first and third columns are the visualization of blob-like points extracted in distinctiveness loss. The second and fourth columns show the detected keypoints.
+
+[32], SSD-6D [14], AAE [31] and DPOD [37]) and use 3D annotated real images for training (Brachmann [4] and BB8 [26]). It should be noted that the keypointnet cannot detect target objects. For fair comparison, we provide it with the detected bbox by OK-POSE or the mask generated by the 3D CAD model (provided by LINEMOD). These two versions of keypointnet are named as keypointnet $^+$ bbox and keypointnet $^+$ mask. Based on the detected keypoints by the keypointnet, the pose of the object is estimated by the same
+
+inference method and reference as ours. SSD-6D and BB8 can use depth information for further refinement. However, depth information cannot be easily obtained in practice. For fair comparison, we only compare with their methods without depth information. Table 2 shows the results on different objects. We can see OK-POSE beats keypointnet, even if it is given more fine-grained object masks. This is because, compared with keypointnet, our method explores richer information (e.g., visual relationship and epipolar geometry) for robustly detecting keypoints in real images. Although our approach on average is not as good as DPOD and the methods requiring 3D annotated real images and, it achieves relatively acceptable performance and provides a feasible solution when there is no 3D annotation or 3D CAD models in real environment. It is worth noting that our method still achieves close or even better results in some object sequences.
+
+Figure 3 shows the blob-like points and keypoints detected in the input images. As can be seen from the first line of Figure 3, although the lighting condition changes, our method can still find consistent keypoints. The object in second line of Figure 3 is textureless. The extracted blob-like points are different in different views. However, the detected keypoints are still consistent. The reason could be that, 3D cross-view consistency loss and transformation re
+
+covery loss will still try to find potential keypoints that are stable and consistent in the blob-like points. Note that our method can predict invisible keypoints. For example, the red, blue and white keypoints in the first row always track the eyes and nose of the cat. The reason should be that our network tries to learn geometrically consistent keypoints in different views even if they are invisible. Figure 2 shows the detected keypoints and the estimated 3D bounding boxes by our method. These results show that our network is able to precisely detect geometrically and visually consistent 3D keypoints in real images with cluttered scenes. Such keypoints are a good representation for 3D objects and can be used to estimate pose by reference.
+
+# 4.5. Multiple Object Pose Detection
+
+
+Figure 4. Percentages of 2D re-projection metric using different distance thresholds $\Delta$ on the Occlusion dataset.
+
+Table 3. The MAP on the OCCLUSION dataset.
+
+| Methods | Train data | MAP |
| OK-POSE | RGB w/ Realtime Transformation | 0.47 |
| keypointnet+bbox [32] | RGB w/ Realtime Transformation | 0.13 |
| keypointnet+mask [32] | RGB w/ 3D CAD Models | 0.27 |
| SSD6D [14] | RGB w/ 3D CAD Models | 0.38 |
| AAE [31] | RGB w/ 3D CAD Models | 0.39 |
| DPOD [37] | RGB w/ 3D CAD Models | 0.48 |
| Brachmann [4] | RGB w/ 3D Annotation | 0.51 |
| BB8 [26] | RGB w/ 3D Annotation | 0.62 |
+
+We run multiple object pose detection on OCCLUSION dataset. In the inference stage, each object in an image will be inferred independently in our method. Following [26], we also report 2D re-projection accuracy against different pixel thresholds in Figure 4. It demonstrates that even without 3D CAD models and a large number of explicit 3D annotated images, our method yields acceptable accuracy (e.g., average $66.7\%$ at the threshold of 40) in the case of severe occlusions. Table 3 reports Mean Average Precision (MAP) of the 2D-pose metric. Our method still achieve acceptable results compared to methods relying on the ob
+
+ject's 3D CAD model or a great deal of 3D labeling. A reasonable explanation is that our method could capture occluded (invisible) keypoints via the carefully designed keypoint losses, and the 6D pose could be inferred robustly.
+
+Table 4. Comparison of the overall computational runtime.
+
+| Methods (ref. num) | Overall Speed |
| Brachmann [4] | 2.5 FPS |
| BB8 [26] | 3 FPS |
| OK-POSE | 18 FPS |
+
+# 4.6. Timing
+
+In this section, we evaluate the speed of our method on LINEMODE dataset, on an Intel Core i7-5820K 3.30 GHz with a NVIDIA GTX 1080Ti. As Table 4 shows, OK-POSE using 50 references is 7.2 times faster than Brachmann and 6 times faster than BB8. It is because BB8 predicts the 6D object pose by three different deep networks, and Brachmann needs lots of iterations to filter outliers by pre-emptive RANSAC [29]. However, our method only has one detection network and 6D object pose can be directly calculated by Kabsch algorithm.
+
+# 5. Conclusion
+
+In this paper, we develop a keypoint-based 6D object pose detection method which employs relative transformation between viewpoints for training. Such relative transformation is easier and cheaper to obtain in the real environment. Therefore, our proposed method is a suitable option when there is a lack of 3D annotations and 3D CAD models. Compared with the state-of-the-art RGB-based 6D object pose detection methods requiring 3D CAD models or a great deal of 3D labeling, our method achieves acceptable performance. Furthermore, our method can infer the pose faster than methods requiring many 3D annotations. An interesting future work is to improve the network for detecting dense points on objects to handle more challenging tasks.
+
+# Acknowledgments
+
+This research was supported by the National Key Research and Development Program of China (No. 2017YFB1402103), the Program for Changjiang Scholars and Innovative Research Team in University (No. IRT_17R87), the National Natural Science Foundation of China (Grant Nos. 61903300, 61672409, 61936006, 61876144, 61876145, 61973250, 61973249), the Key Research and Development Program of Shaanxi (Program No. 2018ZDXM-GY-186), Shaanxi Province Science Fund for Distinguished Young Scholars (Grant No. 2018JC-016) and the Xi'an Key Laboratory of Intelligent Perception and Cultural Inheritance (No. 2019219614SYS011CG033).
+
+# References
+
+[1] H. Bay, T. Tuytelaars, and L. Van Gool. Surf: Speeded up robust features. In ECCV, 2006.
+[2] G. Braak, C. Nugteren, B. Mesman, and H. Corporaal. Fast hough transform on gpus: Exploration of algorithm trade-offs. In ACIVS, 2011.
+[3] E. Brachmann, A. Krull, F. Michel, S. Gumhold, J. Shotton, and C. Rother. Learning 6d object pose estimation using 3d object coordinates. In ECCV, 2014.
+[4] E. Brachmann, F. Michel, A. Krull, M.Y. Yang, S. Gumhold, and C. Rother. Uncertainty-driven 6d pose estimation of objects and scenes from a single rgb image. In CVPR, 2016.
+[5] T. Do, M. Cai, T. Pham, and I. Reid. Deep-6dpose: Recovering 6d object pose from a single rgb image. arXiv preprint arXiv:1802.10367, 2018.
+[6] R. Girshick. Fast r-cnn. In ICCV, 2015.
+[7] K. He, G. Gkioxari, P. Dollar, and R. Girshick. Mask r-cnn. In ICCV, 2017.
+[8] K. He, X. Zhang, S. Ren, and J. Sun. Spatial pyramid pooling in deep convolutional networks for visual recognition. TPAMI, 37(9):1-1, 2015.
+[9] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016.
+[10] D. Herrera, K. Kim, J. Kannala, K. Pulli, and J. Heikkilä. Dtslam: Deferred triangulation for robust slam. In 3DV, 2015.
+[11] S. Hinterstoisser, V. Lepetit, S. Ilic, S. Holzer, G. Bradski, K. Konolige, and N. Navab. Model based training, detection and pose estimation of texture-less 3d objects in heavily cluttered scenes. In ACCV, 2012.
+[12] Tomáš Hodan, P. Haluza, Štepan Obdržálek, J. Matas, M. Lourakis, and X. Zabulis. T-less: An rgb-d dataset for 6d pose estimation of texture-less objects. In WACV, 2017.
+[13] W. Kabsch. A solution for the best rotation to relate two sets of vectors. Acta Crystallographica, 32(5):922-923, 1976.
+[14] W. Kehl, F. Manhardt, F. Tombari, S. Ilic, and N. Navab. Ssd-6d: Making rgb-based 3d detection and 6d pose estimation great again. In ICCV, 2017.
+[15] W. Kehl, F. Milletari, F. Tombari, S. Ilic, and N. Navab. Deep learning of local rgb-d patches for 3d object detection and 6d pose estimation. In ECCV, 2016.
+[16] A. Kendall, M. Grimes, and R. Cipolla. Posenet: A convolutional network for real-time 6-dof camera relocalization. In ICCV, 2015.
+[17] A. Krizhevsky, I. Sutskever, and G. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
+[18] V. Lepetit, F. Moreno-Noguer, and p. Fua. Epnp: An accurate o(n) solution to the pnp problem. IJCV, 81(2):155-166, 2009.
+[19] T Lin, P Dólár, R Girshick, K He, and S Belongie. Feature pyramid networks for object detection. In CVPR, 2017.
+[20] W. Liu, D. Anguelov, D. Erhan, C. Szegedy, S. Reed, C.Y. Fu, and A. C. Berg. Ssd: Single shot multibox detector. In ECCV, 2016.
+[21] S. Mahendran, H. Ali, and R. Vidal. 3d pose regression using convolutional neural networks. In ICCVW, 2017.
+
+[22] V. Nair and G. Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, 2010.
+[23] A. Neubeck and L. Van Gool. Efficient non-maximum suppression. In ICPR, 2006.
+[24] G. Pavlakos, X. Zhou, A. Chan, K. Derpanis, and K. Dani-ilidis. 6-dof object pose from semantic keypoints. In ICRA, 2017.
+[25] S. Peng, Y. Liu, Q. Huang, X. Zhou, and H. Bao. Pvnet: Pixel-wise voting network for 6dof pose estimation. In CVPR, 2019.
+[26] M. Rad and V. Lepetit. Bb8: A scalable, accurate, robust to partial occlusion method for predicting the 3d poses of challenging objects without using depth. In ICCV, 2017.
+[27] S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: towards real-time object detection with region proposal networks. In NIPS, 2015.
+[28] F. Rothganger, S. Lazebnik, C. Schmid, and J. Ponce. 3d object modeling and recognition using local affine-invariant image descriptors and multi-view spatial constraints. In CVPR, 2006.
+[29] J. Shotton, B. Glocker, C. Zach, et al. Scene coordinate regression forests for camera relocalization in rgb-d images. In CVPR, 2013.
+[30] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In NIPS, 2015.
+[31] M. Sundermeyer, Z. Marton, M. Durner, M. Brucker, and R. Triebel. Implicit 3d orientation learning for 6d object detection from rgb images. In ECCV, 2018.
+[32] S. Suwajanakorn, S. Snavely, J. Tompson, and M. Norouzi. Discovery of latent 3d keypoints via end-to-end geometric reasoning. In NIPS, 2018.
+[33] B. Tekin, S.N. Sinha, and P. Fua. Real-time seamless single shot 6d object pose prediction. In CVPR, 2018.
+[34] S. Tulsiani and J. Malik. Viewpoints and keypoints. In CVPR, 2015.
+[35] Yu Xiang, Wonhui Kim, Wei Chen, Jingwei Ji, and Silvio Savarese. Objectnet3d: A large scale database for 3d object recognition. In European Conference on Computer Vision, 2016.
+[36] Y. Xiang, T. Schmidt, V. Narayanan, and D. Fox. PoseCNN: A convolutional neural network for 6d object pose estimation in cluttered scenes. arXiv preprint arXiv:1711.00199, 2017.
+[37] S. Zakharov, I. Shugurov, and S. Ilic. Dpod: 6d pose object detector and refiner. In ICCV, 2019.
+[38] Z. Zhang. Determining the epipolar geometry and its uncertainty: A review. IJCV, 27(2):161-195, 1998.
+[39] E. Zheng and C. Wu. Structure from motion using structureless resection. In ICCV, 2015.
\ No newline at end of file
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/images.zip b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6740edf60ecdbbdd2087c9ce2fcb4d3a70158683
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2e84124d231ea26ff8603d680d8a18d8934d9aa16c3de0eb5f985183561639a8
+size 540128
diff --git a/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/layout.json b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..da27552d857bd32cb3c025b27aa616ed9597c74b
--- /dev/null
+++ b/learningdeepnetworkfordetecting3dobjectkeypointsand6dposes/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a34c1435e271ae5be41365a4cefc65b3b1b669afe59385376dd24429e816c2c8
+size 395865
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_content_list.json b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b63141d0378aae7f7b143aa3bda8cff760bb3c69
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1ebb45dd21bd4601db03a849cd7d960e87b726c9285635d29053a1f36e10644
+size 82301
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_model.json b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..46f4885d0ebe024556a83cd4cb7a3f949305a0a2
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:81a22c82ef61e246d7f4063b7fb69a5ed0715f247faa218f974e7e76f09bee26
+size 102857
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_origin.pdf b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4256671d6013c5e08b175a5be0935f4f5852db64
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/b11245a5-67df-4a01-b26d-19ed7b003c04_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93477f33c896ccdbf988043b50e32b62b6a3d6d8c934b235db7c849bd67e3813
+size 2874379
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/full.md b/learningdepthguidedconvolutionsformonocular3dobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fc39381a83b8622f46c6f0fbf09070ecef78c9ad
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/full.md
@@ -0,0 +1,344 @@
+# Learning Depth-Guided Convolutions for Monocular 3D Object Detection
+
+Mingyu Ding $^{1,2}$ Yuqi Huo $^{2,5}$ Hongwei Yi $^{3}$ Zhe Wang $^{4}$ Jianping Shi $^{4}$ Zhiwu Lu $^{2,5}$ Ping Luo $^{1}$ $^{1}$ The University of Hong Kong ${}^{2}$ Gaoling School of Artificial Intelligence, Renmin University of China
+ $^{3}$ Shenzhen Graduate School, Peking University ${}^{4}$ SenseTime Research
+ $^{5}$ Beijing Key Laboratory of Big Data Management and Analysis Methods, Beijing 100872, China
+{myding, pluo}@cs.hku.hk {bohony, luzhiwu}@ruc.edu.cn
+
+# Abstract
+
+3D object detection from a single image without LiDAR is a challenging task due to the lack of accurate depth information. Conventional 2D convolutions are unsuitable for this task because they fail to capture local object and its scale information, which are vital for 3D object detection. To better represent 3D structure, prior arts typically transform depth maps estimated from 2D images into a pseudo-LiDAR representation, and then apply existing 3D point-cloud based object detectors. However, their results depend heavily on the accuracy of the estimated depth maps, resulting in suboptimal performance. In this work, instead of using pseudo-LiDAR representation, we improve the fundamental 2D fully convolutions by proposing a new local convolutional network (LCN), termed Depth-guided Dynamic-Depthwise-Dilated LCN ( $D^4$ LCN), where the filters and their receptive fields can be automatically learned from image-based depth maps, making different pixels of different images have different filters. $D^4$ LCN overcomes the limitation of conventional 2D convolutions and narrows the gap between image representation and 3D point cloud representation. Extensive experiments show that $D^4$ LCN outperforms existing works by large margins. For example, the relative improvement of $D^4$ LCN against the state-of-the-art on KITTI is $9.1\%$ in the moderate setting. $D^4$ LCN ranks $1^{\text{st}}$ on KITTI monocular 3D object detection benchmark at the time of submission (car, December 2019). The code is available at https://github.com/dingmyu/D4LCN.
+
+# 1. Introduction
+
+3D object detection is a fundamental problem and has many applications such as autonomous driving and robotics. Previous methods show promising results by utilizing Li-DAR device, which produces precise depth information in terms of 3D point clouds. However, due to the high-cost
+
+
+(a) Pseudo-LiDAR points from DORN
+
+
+
+
+(c) Our result using MonoDepth
+
+
+(b) Pseudo-LiDAR from MonoDepth
+(d) Result of Pesudo-LiDAR
+
+
+Figure 1. (a) and (b) show pseudo-LiDAR points generated by the supervised depth estimator, DORN [10] and the unsupervised
+
+
+
+
+
+to point cloud-representations to mimic the LiDAR signal. As shown in Figure 1, both of these methods have drawbacks, resulting in suboptimal performance.
+
+Specifically, the image-based methods typically fail to capture meaningful local object scale and structure informa
+
+tion, because of the following two factors. (1) Due to perspective projection, the monocular view at far and near distance would cause significant changes in object scale. It is difficult for traditional 2D convolutional kernels to process objects of different scales simultaneously (see Figure 2). (2) The local neighborhood of 2D convolution is defined in the camera plane where the depth dimension is lost. In this non-metric space (i.e. the distance between pixels does not have a clear physical meaning like depth), a filter cannot distinguish objects from the background. In that case, a car area and the background area would be treated equally.
+
+Although pseudo-LiDAR point-based approaches have achieved progressive results, they still possess two key issues. (1) The performance of these approaches heavily relies on the precision of estimated depth maps (see Figure 1). The depth maps extracted from monocular images are often coarse (point clouds estimated using them have wrong coordinates), leading to inaccurate 3D predictions. In other words, the accuracy of the depth map limits the performance of 3D object detection. (2) Pseudo-LiDAR methods cannot effectively employ high-level semantic information extracted from RGB images, leading to many false alarms. This is because point clouds provide spatial information but lose semantic information. As a result, regions like road-blocks, electrical boxes and even dust on the road may cause false detection, but they can be easily discriminated by using RGB images.
+
+To address the above problems, we propose a novel convolutional network, termed Depth-guided Dynamic-Depthwise-Dilated local convolutional network (D $^4$ LCN), where the convolutional kernels are generated from the depth map and locally applied to each pixel and channel of individual image sample, rather than learning global kernels to apply to all images. As shown in Figure 2, D $^4$ LCN treats the depth map as guidance to learn local dynamic-depthwise-dilated kernels from RGB images, so as to fill the gap between 2D and 3D representation. More specifically, the learned kernel in D $^4$ LCN is sample-wise (i.e. exemplar kernel [15]), position-wise (i.e. local convolution [20]), and depthwise (i.e. depthwise convolution [18]), where each kernel has its own dilation rate (i.e. different exemplar kernels have different receptive fields).
+
+$\mathrm{D^4LCN}$ is carefully designed with four considerations. (1) The exemplar kernel is to learn specific scene geometry for each image. (2) The local convolution is to distinguish object and background regions for each pixel. (3) The depth-wise convolution is to learn different channel filters in a convolutional layer with different purposes and to reduce computational complexity. (4) The exemplar dilation rate is to learn different receptive fields for different filters to account for objects with diverse scales. The above delicate designs can be easily and efficiently implemented by combining linear operators of shift and element-wise product. As a
+
+
+(a) Standard 2D Convolution
+
+
+(b) Spatially-aware Convolution
+
+
+(c) Dynamic Local Filtering
+
+
+(d) Dynamic-Depthwise-Dilated Local ConvNet
+Figure 2. Comparisons among different convolutional approaches. (a) is the traditional 2D convolution that uses a single convolutional kernel applied on each pixel to convolve the entire image. (b) applies multiple fixed convolutional kernels on different regions (slices) of an image. (c) uses the depth map to generate dynamic kernels with the same receptive fields for each pixel. (d) denotes our approach, where the filter is dynamic, depth-wise, and has adaptive receptive fields for each pixel and channel of the feature map. It can be implemented more efficiently with fewer parameters than (c). Best viewed in color.
+
+result, the efficient $\mathrm{D}^4\mathrm{LCN}$ can not only address the problem of the scale-sensitive and meaningless local structure of 2D convolutions, but also benefit from the high-level semantic information from RGB images compared with the pseudo-LiDAR representation.
+
+Our main contributions are three-fold. (1) A novel component for 3D object detection, $\mathrm{D}^4\mathrm{LCN}$ , is proposed, where the depth map guides the learning of dynamic-depthwise-dilated local convolutions from a single monocular image. (2) We carefully design a single-stage 3D object detection framework based on $\mathrm{D}^4\mathrm{LCN}$ to learn better 3D representation for reducing the gap between 2D convolutions and 3D point cloud-based operations. (3) Extensive experiments show that $\mathrm{D}^4\mathrm{LCN}$ outperforms state-of-the-art monocular 3D detection methods and takes the first place on the KITTI benchmark [12].
+
+# 2. Related Work
+
+Image-based Monocular 3D Detection. Previous monocular 3D detection methods [36, 26, 41, 1, 19, 17, 4, 54] usually make assumptions about the scene geometry and use this as a constraint to train the 2D-to-3D mapping. Deep3DBox [36] uses the camera matrix to project a pre
+
+dicted 3D box onto the 2D image plane, constraining each side of the 2d detection box, such that it corresponds to any of the eight corners of the 3D box. OFTNet [43] introduces the orthographic feature transform, which maps image-based features into an orthographic 3D space. It is helpful when scale of objects varies drastically. [21, 31] investigated different ways of learning the confidence to model heteroscedastic uncertainty by using a 3D intersection-over-union (IoU) loss. To introduce more prior information, [2, 24, 57, 53] used 3D shapes as templates to get better object geometry. [23] predicts a point cloud in an object-centered coordinate system and devises a projection alignment loss to learn local scale and shape information. [34] proposes a 3D synthetic data augmentation algorithm via in-painting recovered meshes directly onto the 2D scenes.
+
+However, as it is not easy for 2D image features to represent 3D structures, the above geometric constraints fail to restore accurate 3D information of objects from just a single monocular image. Therefore, our motivation is to utilize depth information, which essentially bridges gap between 2D and 3D representation, to guide learning the 2D-to-3D feature representation.
+
+Point Cloud-based Monocular 3D Detection. Previous monocular methods [48, 33, 50] convert image-based depth maps to pseudo-LiDAR representations for mimicking the LiDAR signal. With this representation, existing LiDAR-based detection algorithms can be directly applied to monocular 3D object detection. For example, [50] detects 2D object proposals in the input image and extracts a point cloud frustum from the pseudo-LiDAR for each proposal. [33] proposes a multi-modal features fusion module to embed the complementary RGB cue into the generated point clouds representation. However, this depth-to-LiDAR transformation relies heavily on the accuracy of depth map and cannot make use of RGB information. In contrast, our method treats depth map as guidance to learn better 3D representation from RGB images.
+
+LiDAR-based 3D Detection. With the development of deep learning on point sets, 3D feature learning [39, 40, 59] is able to learn deep point-based and voxel-based features. Benefit from this, LiDAR-based methods have achieved promising results in 3D detection. For example, [59] divides point clouds into equally spaced 3D voxels and transforms a group of points within each voxel into a unified feature representation. [47] applies the FPN technique to voxel-based detectors. [55] investigates a sparse convolution for voxel-based networks. [25] utilizes PointNets to learn a representation of point clouds organized in vertical columns (pillars). [38] leverages mature 2D object detectors to learn directly from 3D point clouds. [49] aggregates point-wise features as frustum-level feature vectors. [44, 7] directly generated a small number of high-quality 3D proposals from point clouds via segmenting the point clouds of
+
+the whole scene into foreground and background. There are also some works focus on multi-sensor fusion (LIDAR as well as cameras) for 3D object detection. [29, 28] proposed a continuous fusion layer that encodes both discrete-state image features as well as continuous geometric information. [6, 22] used LIDAR point clouds and RGB images to generate features and encoded the sparse 3D point cloud with a compact multi-view representation.
+
+Dynamic Networks. A number of existing techniques can be deployed to exploit the depth information for monocular 3D detection. M3D-RPN [1] proposes depth-aware convolution which uses non-shared kernels in the row-space to learn spatially-aware features. However, this rough and fixed spatial division has bias and fail to capture object scale and local structure. Dynamic filtering network [20] uses the sample-specific and position-specific filters but has heavy computational cost, and it also fails to solve the scale-sensitive problem of 2D convolutions. Trident network [27] utilizes manually defined multi-head detectors for 2D detection. However, it needs to manually group data for different heads. Other techniques like deformable convolution [8] and variants of [20] such as [14, 46, 52, 11], fail to capture object scale and local structure as well. In this work, our depth-guided dynamic dilated local convolutional network is proposed to solve the two problems associated with 2D convolutions and narrow the gap between 2D convolution and point cloud-based 3D processing.
+
+# 3. Methodology
+
+As a single-stage 3D detector, our framework consists of three key components: a network backbone, a depth-guided filtering module, and a 2D-3D detection head (see Figure 3). Details of each component are given below. First, we give an overview of our architecture as well as backbone networks. We then detail our depth-guided filtering module which is the key component for bridging 2D convolutions and the point cloud-based 3D processing. Finally, we outline the details of our 2D-3D detection head.
+
+# 3.1. Backbone
+
+To utilize depth maps as guidance of 2D convolutions, we formulate our backbone as a two-branch network: the first branch is the feature extraction network using RGB images, and the other is the filter generation network to generate convolutional kernels for feature extraction network using the estimated depth as input. These two networks process the two inputs separately and their outputs of each block are merged by the depth-guided filtering module.
+
+The backbone of the feature extraction network is ResNet-50 [16] without its final FC and pooling layers, and is pre-trained on the ImageNet classification dataset [9]. To obtain a larger field-of-view and keep the network stride at 16, we find the last convolutional layer (conv5_1, block4)
+
+
+Figure 3. Overview of our framework for monocular 3D object detection. The depth map is first estimated from the RGB image and used as the input of out two-branch network together with the RGB image. Then the depth-guided filtering module is used to fuse there two information of each residual block. Finally, a one-stage detection head with Non-Maximum Suppression (NMS) is employed for prediction.
+
+that decreases resolution and set its stride to 1 to avoid signal decimation, and replace all subsequent convolutional layers with dilated convolutional layers (the dilation rate is 2). For the filter generation network, we only use the first three blocks of ResNet-50 to reduce computational costs. Note the two branches have the same number of channels of each block for the depth guided filtering module.
+
+# 3.2. Depth-Guided Filtering Module
+
+Traditional 2D convolution kernels fail to efficiently model the depth-dependent scale variance of the objects and effectively reason about the spatial relationship between foreground and background pixels. On the other hand, pseudo-lidar representations rely too much on the accuracy of depth and lose the RGB information. To address these problems simultaneously, we propose our depth-guided filtering module. Notably, by using our module, the convolutional kernels and their receptive fields (dilation) are different for different pixels and channels of different images.
+
+Since the kernel of our feature extraction network is trained and generated by the depth map, it is sample-specific and position-specific, as in [20, 14], and thus can capture meaningful local structures as the point-based operator in point clouds. We first introduce the idea of depth-wise convolution [18] to the network, termed depth-wise local convolution (DLCN). Generally, depth-wise convolution (DCN) involves a set of global filters, where each filter only operates at its corresponding channel, while DLCN requires a feature volume of local filters the same size as the input feature maps. As the generated filters are actually a feature volume, a naive way to perform DLCN requires to convert the feature volume into $h_n \times w_n$ location-specific filters and then apply depth-wise and local convolutions to the feature maps, where $h_n$ and $w_n$ are the height and width of the feature maps at layer $n$ . This implementation
+
+would be time-consuming as it ignores the redundant computations in neighboring pixels. To reduce the time cost, we employ the shift and element-wise product operators, in which shift [51] is a zero-flop zero-parameter operation, and element-wise product requires little calculation. Concretely, let $I_{n} \in \mathbb{R}^{h_{n} \times w_{n} \times c_{n}}$ and $D_{n} \in \mathbb{R}^{h_{n} \times w_{n} \times c_{n}}$ be the output of the feature extraction network and filter generation network, respectively, where $n$ is the index of the block (note that block $n$ corresponds to the layer $conv_{n+1}$ in ResNet). Let $k$ denote the kernel size of the feature extraction network. By defining a shifting grid $\{(g_{i}, g_{j})\}, g \in (int)[1-k/2, k/2-1]$ that contains $k \cdot k$ elements, for every vector $(g_{i}, g_{j})$ , we shift the whole feature map $I \odot D$ towards the direction and step size indicated by $(g_{i}, g_{j})$ and get the result $(I \odot D)^{(g_{i}, g_{j})}$ . For example, $g \in \{-1, 0, 1\}$ when $k = 3$ , and the feature map is moved towards nine directions with a horizontal or vertical step size of 0 or 1. We then use the sum and element-wise product operations to compute our filtering result:
+
+$$
+I ^ {\prime} = \frac {1}{k \cdot k} \sum_ {g _ {i}, g _ {j}} (I \odot D) ^ {(g _ {i}, g _ {j})}. \tag {1}
+$$
+
+To encourage information flow between channels of the depth-wise convolution, we further introduce a novel shift-pooling operator in the module. Considering $n_f$ as the number of channels with information flow, we shift the feature maps along the channel axis for $n_f$ times by $1,2,\dots,n_f - 1$ to obtain new $n_f - 1$ shifted feature maps $I_s^{(n_i)},n_i\in \{1,2,\dots,n_f - 1\}$ . Then we perform element-wise mean to the shifted feature maps and the original $I$ to obtain the new feature map as the input of the module. The process of this shift-pooling operation is shown in Figure 4 ( $n_f = 3$ ).
+
+Compared to the idea 'group' of depth-wise convolution in [18, 58] which aims to group many channels into a group
+
+to perform information fusion between them, the proposed shift-pooling operator is more efficient and adds no additional parameters to the convolution. The size of our convolutional weights of each local kernel is always $k \times k \times c_n$ when applying shift-pooling, while it changes significantly in [18] for different number of groups from $k \times k \times c_n$ to $k \times k \times c_n \times c_n$ in group convolution (assume that the convolution keeps the number of channels unchanged). Note that it is difficult for the filter generation network to generate so many kernels for the traditional convolutions $\mathcal{F}$ between all channels, and the characteristic of being position-specific dramatically increases their computational cost.
+
+With our depth-wise formulation, different kernels can have different functions. This enables us to assign different dilation rates [56] for each filter to address the scale-sensitive problem. Since there are huge intra-class and inter-class scale differences in an RGB image, we use $I$ to learn an adaptive dilation rate for each filter to obtain different sizes of receptive fields by an adaptive function $\mathcal{A}$ . Specifically, let $d$ denote our maximum dilation rate, the adaptive function $\mathcal{A}$ consists of three layers: (1) an AdaptiveMaxPool2d layer with the output size of $d\times d$ and channel number $c$ ; (2) a convolutional layer with a kernel size of $d\times d$ and channel number $d\times c$ ; (3) a reshape and softmax layer to generate $d$ weights $\mathcal{A}^w (I)$ , $w\in (int)[1,d]$ with a sum of 1 for each filter. Formally, our guided filtering with adaptive dilated function $(\mathrm{D}^{4}\mathrm{LCN})$ is formulated as follows:
+
+$$
+I ^ {\prime} = \frac {1}{d \cdot k \cdot k} \cdot \sum_ {w} \mathcal {A} ^ {w} (I) \sum_ {g _ {i}, g _ {j}} (I \odot D) ^ {(g _ {i} * w, g _ {j} * w)}, \tag {2}
+$$
+
+For different images, our depth-guided filtering module assigns different kernels on different pixels and adaptive receptive fields (dilation) on different channels. This solves the problem of scale-sensitive and meaningless local structure of 2D convolutions, and also makes full use of RGB information compared to pseudo-LiDAR representations.
+
+# 3.3. 2D-3D Detection Head
+
+In this work, we adopt a single-stage detector with prior-based 2D-3D anchor boxes [42, 32] as our base detector.
+
+# 3.3.1 Formulation
+
+Inputs: The output feature map $I_4 \in \mathbb{R}^{h_4 \times w_4}$ of our backbone network with a network stride factor of 16. Following common practice, we use a calibrated setting which assumes that per-image camera intrinsics $K \in \mathbb{R}^{3 \times 4}$ are available both at the training and test time. The 3D-to-2D projection can be written as:
+
+$$
+\left[ \begin{array}{l} x \\ y \\ 1 \end{array} \right] _ {P} \cdot z _ {3 D} = K \cdot \left[ \begin{array}{l} x \\ y \\ z \\ 1 \end{array} \right] _ {3 D} \tag {3}
+$$
+
+
+Figure 4. An example of our shift-pooling operator of depth-wise convolution in depth-guided filtering module when $n_f$ is 3. It is efficiently implemented by shift and element-wise mean operators.
+
+where $[x,y,z]_{3D}$ denotes the horizontal position, height and depth of the 3D point in camera coordinates, and $[x,y]_P$ is the projection of the 3D point in 2D image coordinates.
+
+Ground Truth: We define a ground truth (GT) box using the following parameters: the 2D bounding box $[x, y, w, h]_{2D}$ , where $(x, y)$ is the center of 2D box and $w, h$ are the width and height of 2D box; the 3D center $[x, y, z]_{3D}$ represents the location of 3D center in camera coordinates; the 3D shapes $[w, h, l]_{3D}$ (3D object dimensions: height, width, length (in meters)), and the allocentric pose $\alpha_{3D}$ in 3D space (observation angle of object, ranging $[- \pi, \pi]$ ) [34]. Note that we use the minimum enclosing rectangle of the projected 3D box as our ground truth 2D bounding box.
+
+Outputs: Let $n_a$ denote the number of anchors and $n_c$ denote the number of classes. For each position $(i,j)$ of the input, the output for an anchor contains $35 + n_c$ parameters: $\{[t_x,t_y,t_w,t_h]_{2D},[t_x,t_y]_P,[t_z,t_w,t_h,t_l,t_\alpha ]_{3D}, t_C^{(m)},\mathbf{s}\}$ , where $[t_x,t_y,t_w,t_h]_{2D}$ is the predicted 2D box; $[t_x,t_y]_P$ is the position of the projected 3D corner in the 2D plane, $[t_z,t_w,t_h,t_l,t_\alpha ]_{3D}$ denotes the depth, predicted 3D shape and rotation, respectively; $t_C^{(m)} = \{[t_x^{(m)},t_y^{(m)}]_P,[t_z^{(m)}]_{3D}\} , m\in \{1,2,\dots,8\}$ denotes 8 projected 3D corners; s denotes the classification score of each class. The size of the output is $h_4\times w_4\times n_a\times (35 + n_c)$ where $(h_4,w_4)$ is the size of the input image with a down sampling factor of 16. The output is actually an anchor-based transformation of the 2D-3D box.
+
+# 3.3.2 2D-3D Anchor
+
+Inspired by [1], we utilize 2D-3D anchors with priors as our default anchor boxes. More specifically, a 2D-3D anchor is first defined on the 2D space as in [32] and then use the corresponding priors in the training dataset to calculate the part of it in the 3D space. One template anchor is defined using parameters of both spaces: $\{[A_x,A_y,A_w,A_h]_{2D},[A_z,A_w,A_h,A_l,A_\alpha ]_{3D}\}$ where $[A_z,A_w,A_h,A_l,A_\alpha ]_{3D}$ denotes the 3D anchor (depth, shape, rotation).
+
+For 2D anchors $[A_x, A_y, A_w, A_h]_{2D}$ , we use 12 differ
+
+ent scales ranging from 30 to 400 pixels in height following the power function of $30*1.265^{exp}$ , $exp\in (int)[0,11]$ and aspect ratios of [0.5, 1.0, 1.5] to define a total of 36 anchors. We then project all ground truth 3D boxes to the 2D space. For each projected box, we calculate its intersection over union (IoU) with each 2D anchor and assign the corresponding 3D box to the anchors that have an IoU $\geq 0.5$ . For each 2D anchor, we thus use the statistics across all matching ground truth 3D boxes as its corresponding 3D anchor $[A_z,A_w,A_h,A_l,A_\alpha ]_{3D}$ . Note that we use the same anchor parameters $[A_x,A_y]_{2D}$ for the regression of $[t_x,t_y]_{2D}$ and $[t_x,t_y]_P$ . The anchors enable our network to learn a relative value (residual) of the ground truth, which significantly reduces the difficulty of learning.
+
+# 3.3.3 Data Transformation
+
+We combine the output of our network which is an anchor-based transformation of the 2D-3D box and the pre-defined anchors to obtain our estimated 3D boxes:
+
+$$
+\begin{array}{l} [ x ^ {\prime}, y ^ {\prime} ] _ {2 D} = [ A _ {x}, A _ {y} ] _ {2 D} + [ t _ {x}, t _ {y} ] _ {2 D} * [ A _ {w}, A _ {h} ] _ {2 D} \\ [ x ^ {\prime}, y ^ {\prime} ] _ {P} = [ A _ {x}, A _ {y} ] _ {2 D} + [ t _ {x}, t _ {y} ] _ {P} * [ A _ {w}, A _ {h} ] _ {2 D} \\ [ x ^ {\prime (m)}, y ^ {\prime (m)} ] _ {P} = [ A _ {x}, A _ {y} ] _ {2 D} + [ t _ {x} ^ {(m)}, t _ {y} ^ {(m)} ] _ {P} * [ A _ {w}, A _ {h} ] _ {2 D} \\ \left[ w ^ {\prime}, h ^ {\prime} \right] _ {2 D} = \left[ A _ {w}, A _ {h} \right] _ {2 D} \cdot \exp \left(\left[ t _ {w}, t _ {h} \right] _ {2 D}\right) \\ \left[ w ^ {\prime}, h ^ {\prime}, l ^ {\prime} \right] _ {3 D} = \left[ A _ {w}, A _ {h}, A _ {l} \right] _ {3 D} \cdot \exp \left(\left[ t _ {w}, t _ {h}, t _ {l} \right] _ {3 D}\right) \\ [ z ^ {\prime}, z ^ {\prime (m)}, \alpha^ {\prime} ] _ {3 D} = [ A _ {z}, A _ {z}, A _ {\alpha} ] + [ t _ {z}, t _ {z}, t _ {\text {a l p h a}} ] _ {3 D}. \tag {4} \\ \end{array}
+$$
+
+where $[x', y']_P, [z', z'^{(m)}, \alpha']_{3D}$ denote respectively the estimated 3D center projection in 2D plane, the depth of 3D center and eight corners, the 3D rotation by combining output of the network and the anchor.
+
+# 3.3.4 Losses
+
+Our overall loss contains a classification loss, a 2D regression loss, a 3D regression loss and a 2D-3D corner loss. We use the idea of focal loss [30] to balance the samples. Let $s_t$ and $\gamma$ denote the classification score of target class and the focusing parameter, respectively. We have:
+
+$$
+L = \left(1 - s _ {t}\right) ^ {\gamma} \left(L _ {\text {c l a s s}} + L _ {2 d} + L _ {3 d} + L _ {\text {c o r n e r}}\right), \tag {5}
+$$
+
+where $\gamma = 0.5$ in all experiments, and $L_{\text{class}}, L_{2d}, L_{3d}, L_{\text{corner}}$ are the classification loss, 2D regression loss, 3D regression loss and D-3D corner loss, respectively.
+
+In this work, we employ the standard cross-entropy (CE) loss for classification:
+
+$$
+L _ {\text {c l a s s}} = - \log \left(s _ {t}\right). \tag {6}
+$$
+
+Moreover, for both 2D and 3D regression, we simply use
+
+the SmoothL1 regression losses:
+
+$$
+\begin{array}{l} L _ {2 D} = \operatorname {S m o o t h L 1} ([ x ^ {\prime}, y ^ {\prime}, w ^ {\prime}, h ^ {\prime} ] _ {2 D}, [ x, y, w, h ] _ {2 D}), \\ L _ {3 D} = S m o o t h L 1 ([ w ^ {\prime}, h ^ {\prime}, l ^ {\prime}, z ^ {\prime}, \alpha^ {\prime} ] _ {3 D}, [ w, h, l, z, \alpha ] _ {3 D}), \\ + S m o o t h L 1 \left(\left[ x ^ {\prime}, y ^ {\prime} \right] _ {P}, \left[ x, y \right] _ {P}\right), \\ \end{array}
+$$
+
+$$
+\begin{array}{l} L _ {c o r n e r} = \frac {1}{8} \sum S m o o t h L 1 ([ x ^ {\prime (m)}, y ^ {\prime (m)} ] _ {P}, [ x ^ {(m)}, y ^ {(m)} ] _ {P}) \\ + S m o o t h L 1 \left(\left[ z ^ {\prime (m)} \right] _ {3 D}, [ z ] _ {3 D}\right), \tag {7} \\ \end{array}
+$$
+
+where $[x^{(m)},y^{(m)}]_P$ denotes the projected corners in image coordinates of the GT 3D box and $[z]_{3D}$ is its GT depth.
+
+# 4. Experiments
+
+# 4.1. Dataset and Setting
+
+KITTI Dataset. The KITTI 3D object detection dataset [12] is widely used for monocular and LiDAR-based 3D detection. It consists of 7,481 training images and 7,518 test images as well as the corresponding point clouds and the calibration parameters, comprising a total of 80,256 2D-3D labeled objects with three object classes: Car, Pedestrian, and Cyclist. Each 3D ground truth box is assigned to one out of three difficulty classes (easy, moderate, hard) according to the occlusion and truncation levels of objects. There are two train-val splits of KITTI: the split1 [5] contains 3,712 training and 3,769 validation images, while the split2 [53] uses 3,682 images for training and 3,799 images for validation. The dataset includes three tasks: 2D detection, 3D detection, and Bird's eye view, among which 3D detection is the focus of 3D detection methods.
+
+Evaluation Metrics. Precision-recall curves are used for evaluation (with the IoU threshold of 0.7). Prior to Aug. 2019, 11-point Interpolated Average Precision (AP) metric $\mathrm{AP}|_{R_{11}}$ proposed in the Pascal VOC benchmark is separately computed on each difficulty class and each object class. After that, the 40 recall positions-based metric $\mathrm{AP}|_{R_{40}}$ is used instead of $\mathrm{AP}|_{R_{11}}$ , following [45]. All methods are ranked by $\mathrm{AP}|_{R_{11}}$ of the 3D car detection in the moderate setting.
+
+Implementation Details. We use our depth-guided filtering module three times on the first three blocks of ResNet, which have different network strides of 4,8,16, respectively. [10] is used for depth estimation. A drop-channel layer with a drop rate of 0.2 is used after each module and a dropout layer with a drop rate of 0.5 is used after the output of the network backbone. For our single-stage detector, we use two convolutional layers as our detection head. The number of channels in the first layer is 512, and $n_a * (35 + n_c)$ for the second layer, where $n_c$ is set to 4 for three object classes and the background class, and $n_a$ is set to 36. Non Maximum Suppression (NMS) with an IoU threshold of 0.4 is used on the network output in 2D space. Since the regression of the 3D rotation $\alpha$ is more difficult than other parameters, a hill-climbing post-processing step is used for optimizing $\alpha$ as in
+
+| Method | Test set | Split1 | Split2 |
| Easy | Moderate | Hard | Easy | Moderate | Hard | Easy | Moderate | Hard |
| OFT-Net [43] | 1.61 | 1.32 | 1.00 | 4.07 | 3.27 | 3.29 | - | - | - |
| FQNet [31] | 2.77 | 1.51 | 1.01 | 5.98 | 5.50 | 4.75 | 5.45 | 5.11 | 4.45 |
| ROI-10D [34] | 4.32 | 2.02 | 1.46 | 10.25 | 6.39 | 6.18 | - | - | - |
| GS3D [26] | 4.47 | 2.90 | 2.47 | 13.46 | 10.97 | 10.38 | 11.63 | 10.51 | 10.51 |
| Shift R-CNN [37] | 6.88 | 3.87 | 2.83 | 13.84 | 11.29 | 11.08 | - | - | - |
| MonoGRNet [41] | 9.61 | 5.74 | 4.25 | 13.88 | 10.19 | 7.62 | - | - | - |
| MonoPSR [23] | 10.76 | 7.25 | 5.85 | 12.75 | 11.48 | 8.59 | 13.94 | 12.24 | 10.77 |
| Mono3D-PLiDAR [50] | 10.76 | 7.50 | 6.10 | 31.50 | 21.00 | 17.50 | - | - | - |
| SS3D [21] | 10.78 | 7.68 | 6.51 | 14.52 | 13.15 | 11.85 | 9.45 | 8.42 | 7.34 |
| MonoDIS [45] | 10.37 | 7.94 | 6.40 | 11.06 | 7.60 | 6.37 | - | - | - |
| Pseudo-LiDAR [48] | - | - | - | 19.50 | 17.20 | 16.20 | - | - | - |
| M3D-RPN [1] | 14.76 | 9.71 | 7.42 | 20.27 | 17.06 | 15.21 | 20.40 | 16.48 | 13.34 |
| AM3D [1] | 16.50 | 10.74 | 9.52 (+0.01) | 32.23 (+5.26) | 21.09 | 17.26 | - | - | - |
| D4LCN (Ours) | 16.65 (+0.15) | 11.72 (+0.98) | 9.51 | 26.97 | 21.71 (+0.62) | 18.22 (+0.96) | 24.29 (+3.89) | 19.54 (+3.06) | 16.38 (+3.04) |
+
+Table 1. Comparative results on the KITTI 3D object detection dataset. For the test set, only $\mathrm{AP}|_{R_{40}}$ is provided by the official leaderboard. We thus show the results on the test set in $\mathrm{AP}|_{R_{40}}$ and split1/split2 in $\mathrm{AP}|_{R_{11}}$ . We use red to indicate the highest result with relative improvement in parentheses and blue for the second-highest result of the class car. Our method achieves 7 firsts and 2 seconds in 9 items.
+
+[1]. The input images are scaled to $512 \times 1760$ and horizontal flipping is the only data augmentation. $n_f$ is set to 3 and the maximum dilation rate $d$ is set to 3 in all experiments.
+
+The network is optimized by stochastic gradient descent (SGD), with a momentum of 0.9 and a weight decay of 0.0005. We take a mini-batch size of 8 on 4 Nvidia Tesla v100 GPUs (16G). We use the 'poly' learning rate policy and set the base learning rate to 0.01 and power to 0.9. The iteration number for the training process is set to 40,000.
+
+# 4.2. Comparative Results
+
+We conduct experiments on the official test set and two splits of validation set of the KITTI dataset. Table 1 includes the top 14 monocular methods in the leaderboard, among which our method ranks top-1. We can observe that: (1) Our method outperforms the second-best competitor for monocular 3D car detection by a large margin (relatively $9.1\%$ for 10.74 vs. 11.72) under the moderate setting (which is the most important setting of KITTI). (2) Most competitors, such as [23, 33, 45, 37, 50, 1], utilize the detector (e.g. Faster-RCNN) pre-trained on COCO/KITTI or resort to multi-stage training to obtain better 2D detection and stable 3D results, while our model is trained end-to-end using the standard ImageNet pre-trained model. However, we still achieve the state-of-the-art 3D detection results, validating the effectiveness of our $\mathrm{D}^4\mathrm{LCN}$ to learn 3D structure. (3) Recently KITTI uses $\mathrm{AP}|_{R_{40}}$ instead of $\mathrm{AP}|_{R_{11}}$ , however, all existing methods report the results under the old metric. We thus also give results under $\mathrm{AP}|_{R_{11}}$ on the validation set for fair comparison. It can be seen that our method outperforms all others on the two splits for 3D car detection. Our results under $\mathrm{AP}|_{R_{40}}$ on validation set are shown in ablation study.
+
+| Method | Task | AP|R11 | AP|R40 |
| Easy | Moderate | Hard | Easy | Moderate | Hard |
| 3DNet | 2D detection | 93.42 | 85.16 | 68.14 | 94.13 | 84.45 | 65.73 |
| 3D detection | 17.94 | 14.61 | 12.74 | 16.72 | 12.13 | 09.46 |
| Bird's-eye view | 24.87 | 19.89 | 16.14 | 23.19 | 16.67 | 13.39 |
| +CL | 2D detection | 94.04 | 85.56 | 68.50 | 94.98 | 84.93 | 66.11 |
| 3D detection | 20.66 | 15.57 | 13.41 | 17.10 | 12.09 | 09.47 |
| Bird's-eye view | 2903 | 23.82 | 19.41 | 24.12 | 17.75 | 13.66 |
| +DLCN | 2D detection | 92.98 | 85.35 | 68.63 | 93.81 | 86.71 | 70.19 |
| 3D detection | 23.25 | 17.92 | 15.58 | 18.32 | 13.50 | 10.61 |
| Bird's-eye view | 27.76 | 22.89 | 18.73 | 26.78 | 18.68 | 15.14 |
| +SP | 2D detection | 92.57 | 85.14 | 68.40 | 93.35 | 86.52 | 67.93 |
| 3D detection | 25.30 | 19.02 | 17.26 | 19.69 | 14.44 | 11.52 |
| Bird's-eye view | 31.39 | 24.40 | 19.85 | 26.91 | 20.07 | 15.77 |
| D4LCN | 2D detection | 93.59 | 85.51 | 68.81 | 94.25 | 86.93 | 70.34 |
| 3D detection | 26.97 | 21.71 | 18.22 | 22.32 | 16.20 | 12.30 |
| Bird's-eye view | 34.82 | 25.83 | 23.53 | 31.53 | 22.58 | 17.87 |
+
+Table 2. Ablation study on the class car on the KITTI split1.
+
+# 4.3. Detailed Analysis
+
+# 4.3.1 Ablation Study
+
+To conduct ablation study on our model, we make comparison among five versions of our model: (1) 3DNet: the baseline model using $L_{2D}$ and $L_{3D}$ without our depth-guided filtering module; (2) + CL: the Corner Loss is added to 3DNet; (3) + DLCN: depth-guided depth-wise local filtering is added; (4) + SP: shift-pooling operator is added (with $n_f = 3$ ); (5) D $^4$ LCN (our full model): adaptive dilation rates are added, as in Eq. 2. From Table 2, we can observe that: (1) The performance continuously increases when more components are used for 3D object detection, showing the contribution of each component. (2) Our depth-guided filtering module increases the 3D detection AP scores (moderate) from {15.57, 12.09} to {21.71, 16.20} w.r.t. the $\mathrm{AP}|_{R_{11}}$ and $\mathrm{AP}|_{R_{40}}$ metrics, respectively. This suggests that it is indeed effective to capture the meaningful local structure for 3D object detection. (3) The main improvement comes from our adaptive dilated convolution (2.69 and 1.76
+
+Depth
+
+MonoDepth
+
+DORN [10]
+
+DispNet [35]
+
+PSMNet [3]
+
+Table 3. Co
+
+detection on
+
+
+
+Table 4. N
+
+three data
+
+[33,50,48
+
+for AP channel and thus have tried found it
+
+# 4.3.2
+
+
+
+allows eachcaptive fieldsNote that we
+
+To study the impact of accuracy of depth maps on the performance of our method, we extract depth maps using four different methods [13, 10, 35, 3] and then apply them to 3D detection. As reported in previous works on depth estimation, the three supervised methods (i.e. PSMNet, DispNet, and DORN) significantly outperform the unsupervised method [13]. Among the supervised methods, Stereo-based methods [3, 35] are better than monocular-based DORN. With these conclusions, we have the following observations from Table 3: (1) The accuracy of 3D detection is higher with better depth map. This is because that better depth map can provide better scene geometry and local structure. (2) As the quality of depth map increases, the growth of detection accuracy becomes slower. (3) Even with the depth maps obtained by unsupervised learning [13], our method achieves state-of-the-art results. Compared to the pseudolidar based method [33], our method relies less on the quality of depth maps (19.63 vs. 15.45 using MonoDepth).
+
+# 4.3.3 Multi-Class 3D Detection
+
+Since a person is a non-rigid body, its shape varies and its depth information is hard to accurately estimate. For this reason, 3D detection of pedestrians and cyclists becomes particularly difficult. Note that all pseudo-LiDAR based methods [33, 50, 48] fail to detect these two categories. However, as shown in Table 4, our method still achieves satisfactory performance on 3D detection of pedestrians and
+
+
+Input Image
+
+
+Filter No.41: adaptive dilated weights 0.14, 0.60 0.26
+
+
+Filter No.89: adaptive dilated weights 0.05, 0.03, 0.92
+
+
+Filter No.70: adaptive dilated weights 0.96, 0.02, 0.02
+Figure 5. Visualization of active maps corresponding to different filters of block 3 of our $\mathrm{D}^4\mathrm{LCN}$ . Each filter learns three weights representing dilation rate of 1, 2, 3, respectively. Different filters have different functions in our model to handle the scale problem adaptively. For example, filter 89 has large receptive fields for large-scale cars, while filter 70 deals with the small-scale cars.
+
+cyclists. Moreover, we also show the active maps corresponding to different filters of our $\mathrm{D}^4\mathrm{LCN}$ in Figure 5. Different filters on the same layer of our model use different sizes of receptive fields to handle objects of different scales, including pedestrians (small) and cars (big), as well as distant cars (big) and nearby cars (small).
+
+# 5. Conclusion
+
+In this paper, we propose a Depth-guided Dynamic-Depthwise-Dilated Local ConvNet $(\mathrm{D}^4\mathrm{LCN})$ for monocular 3D objection detection, where the convolutional kernels and their receptive fields (dilation rates) are different for different pixels and channels of different images. These kernels are generated dynamically conditioned on the depth map to compensate the limitations of 2D convolution and narrow the gap between 2D convolutions and the point cloud-based 3D operators. As a result, our $\mathrm{D}^4\mathrm{LCN}$ can not only address the problem of the scale-sensitive and meaningless local structure of 2D convolutions, but also benefit from the high-level semantic information from RGB images. Extensive experiments show that our $\mathrm{D}^4\mathrm{LCN}$ better captures 3D information and ranks $1^{\mathrm{st}}$ for monocular 3D object detection on the KITTI dataset at the time of submission.
+
+# 6. Acknowledgements
+
+This work was partially supported by HKU Seed Fund for Basic Research, Start-up Fund and Research Donation from SenseTime. Zhiwu Lu is partially supported by National Natural Science Foundation of China (61976220, 61832017, and 61573363), and Beijing Outstanding Young Scientist Program (BJJWZYJH012019100020098). Thank Dr. Guorun Yang for his careful proofreading.
+
+# References
+
+[1] Garrick Brazil and Xiaoming Liu. M3d-rpn: Monocular 3d region proposal network for object detection. In ICCV, pages 9287-9296, 2019. 2, 3, 5, 7
+[2] Florian Chabot, Mohamed Chaouch, Jaonary Rabarisoa, Céline Teulière, and Thierry Chateau. Deep manta: A coarse-to-fine many-task network for joint 2d and 3d vehicle analysis from monocular image. In CVPR, pages 2040-2049, 2017. 3
+[3] Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. In CVPR, pages 5410-5418, 2018. 8
+[4] Xiaozhi Chen, Kaustav Kundu, Ziyu Zhang, Huimin Ma, Sanja Fidler, and Raquel Urtasun. Monocular 3d object detection for autonomous driving. In CVPR, pages 2147-2156, 2016. 1, 2
+[5] Xiaozhi Chen, Kaustav Kundu, Yukun Zhu, Andrew G Berneshawi, Huimin Ma, Sanja Fidler, and Raquel Urtasun. 3d object proposals for accurate object class detection. In NeurIPS, pages 424-432, 2015. 1, 6
+[6] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In CVPR, pages 1907-1915, 2017. 3
+[7] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Fast point r-cnn. In ICCV, 2019. 3
+[8] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, pages 764-773, 2017. 3
+[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 3
+[10] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Bat-manghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In CVPR, pages 2002-2011, 2018. 1, 6, 8
+[11] Peng Gao, Hongsheng Li, Shuang Li, Pan Lu, Yikang Li, Steven CH Hoi, and Xiaogang Wang. Question-guided hybrid convolution for visual question answering. In Proceedings of the European Conference on Computer Vision (ECCV), pages 469-485, 2018. 3
+[12] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, pages 3354-3361, 2012. 2, 6
+[13] Clément Godard, Oisin Mac Aodha, and Gabriel J. Brostow. Unsupervised monocular depth estimation with left-right consistency. In CVPR, 2017. 1, 8
+[14] David Ha, Andrew Dai, and Quoc V Le. Hypernetworks. arXiv preprint arXiv:1609.09106, 2016. 3, 4
+[15] Kaiming He, Jian Sun, and Xiaou Tang. Guided image filtering. In ECCV, pages 1-14, 2010. 2
+[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 3
+[17] Tong He and Stefano Soatto. Mono3d++: Monocular 3d vehicle detection with two-scale 3d hypotheses and task priors. arXiv preprint arXiv:1901.03446, 2019. 1, 2
+
+[18] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andretto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 2, 4, 5
+[19] Hou-Ning Hu, Qi-Zhi Cai, Dequan Wang, Ji Lin, Min Sun, Philipp Krahenbuhl, Trevor Darrell, and Fisher Yu. Joint monocular 3d vehicle detection and tracking. In ICCV, pages 5390-5399, 2019. 1, 2
+[20] Xu Jia, Bert De Brabandere, Tinne Tuytelaars, and Luc V Gool. Dynamic filter networks. In NeurIPS, pages 667-675, 2016. 2, 3, 4
+[21] Eskil Jörgensen, Christopher Zach, and Fredrik Kahl. Monocular 3d object detection and box fitting trained end-to-end using intersection-over-union loss. arXiv preprint arXiv:1906.08070, 2019. 3, 7
+[22] Jason Ku, Melissa Mozifian, Jungwook Lee, Ali Harakeh, and Steven L Waslander. Joint 3d proposal generation and object detection from view aggregation. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1-8, 2018. 3
+[23] Jason Ku, Alex D Pon, and Steven L Waslander. Monocular 3d object detection leveraging accurate proposals and shape reconstruction. In CVPR, pages 11867-11876, 2019. 3, 7
+[24] Abhijit Kundu, Yin Li, and James M Rehg. 3d-rcnn: Instance-level 3d object reconstruction via render-and-compare. In CVPR, pages 3559–3568, 2018. 3
+[25] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In CVPR, pages 12697-12705, 2019. 3
+[26] Buyu Li, Wanli Ouyang, Lu Sheng, Xingyu Zeng, and Xiaogang Wang. Gs3d: An efficient 3d object detection framework for autonomous driving. In CVPR, pages 1019-1028, 2019. 1, 2, 7
+[27] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. In ICCV, 2019. 3
+[28] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, pages 7345-7353, 2019. 3
+[29] Ming Liang, Bin Yang, Shenlong Wang, and Raquel Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In ECCV, pages 641-656, 2018. 3
+[30] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In ICCV, pages 2980-2988, 2017. 6
+[31] Lijie Liu, Jiwen Lu, Chunjing Xu, Qi Tian, and Jie Zhou. Deep fitting degree scoring network for monocular 3d object detection. In CVPR, pages 1057-1066, 2019. 3, 7
+[32] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In ECCV, pages 21-37, 2016. 5
+[33] Xinzhu Ma, Zhihui Wang, Haojie Li, Pengbo Zhang, Wanli Ouyang, and Xin Fan. Accurate monocular 3d object detection via color-embedded 3d reconstruction for autonomous driving. In ICCV, pages 6851-6860, 2019. 1, 3, 7, 8
+
+[34] Fabian Manhardt, Wadim Kehl, and Adrien Gaidon. Roi10d: Monocular lifting of 2d detection to 6d pose and metric shape. In CVPR, pages 2069-2078, 2019. 3, 5, 7
+[35] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In CVPR, pages 4040-4048, 2016. 8
+[36] Arsalan Mousavian, Dragomir Anguelov, John Flynn, and Jana Kosecka. 3d bounding box estimation using deep learning and geometry. In CVPR, pages 7074-7082, 2017. 1, 2
+[37] Andretti Naiden, Vlad Paunescu, Gyeongmo Kim, ByeongMoon Jeon, and Marius Leordeanu. Shift r-cnn: Deep monocular 3d object detection with closed-form geometric constraints. arXiv preprint arXiv:1905.09970, 2019. 7
+[38] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, pages 918-927, 2018. 3
+[39] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In CVPR, pages 652-660, 2017. 3
+[40] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In NeurIPS, pages 5099-5108, 2017. 3
+[41] Zengyi Qin, Jinglu Wang, and Yan Lu. Monogrnet: A geometric reasoning network for monocular 3d object localization. In AAAI, volume 33, pages 8851-8858, 2019. 1, 2, 7
+[42] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, pages 779-788, 2016. 5
+[43] Thomas Roddick, Alex Kendall, and Roberto Cipolla. Orthographic feature transform for monocular 3d object detection. arXiv preprint arXiv:1811.08188, 2018. 3, 7
+[44] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointr-cnn: 3d object proposal generation and detection from point cloud. In CVPR, pages 770-779, 2019. 3
+[45] Andrea Simonelli, Samuel Rota Rota Bulò, Lorenzo Porzi, Manuel López-Antequera, and Peter Kontschieder. Disentangling monocular 3d object detection. arXiv preprint arXiv:1905.12365, 2019. 6, 7
+[46] Jie Tang, Fei-Peng Tian, Wei Feng, Jian Li, and Ping Tan. Learning guided convolutional network for depth completion. arXiv preprint arXiv:1908.01238, 2019. 3
+[47] Bei Wang, Jianping An, and Jiayan Cao. Voxel-fpn: multiscale voxel feature aggregation in 3d object detection from point clouds. arXiv preprint arXiv:1907.05286, 2019. 3
+[48] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In CVPR, pages 8445-8453, 2019. 1, 3, 7, 8
+[49] Zhixin Wang and Kui Jia. Frustum convnet: Sliding frustums to aggregate local point-wise features for amodal 3d object detection. arXiv preprint arXiv:1903.01864, 2019. 3
+
+[50] Xinshuo Weng and Kris Kitani. Monocular 3d object detection with pseudo-lidar point cloud. arXiv preprint arXiv:1903.09847, 2019. 1, 3, 7, 8
+[51] Bichen Wu, Alvin Wan, Xiangyu Yue, Peter Jin, Sicheng Zhao, Noah Golmant, Amir Gholaminejad, Joseph Gonzalez, and Kurt Keutzer. Shift: A zero flop, zero parameter alternative to spatial convolutions. In CVPR, pages 9127-9135, 2018. 4
+[52] Jialin Wu, Dai Li, Yu Yang, Chandrajit Bajaj, and Xiangyang Ji. Dynamic filtering with large sampling field for convnets. In ECCV, pages 185-200, 2018. 3
+[53] Yu Xiang, Wongun Choi, Yuanqing Lin, and Silvio Savarese. Data-driven 3d voxel patterns for object category recognition. In CVPR, pages 1903-1911, 2015. 3, 6
+[54] Bin Xu and Zhenzhong Chen. Multi-level fusion based 3d object detection from monocular images. In CVPR, pages 2345-2353, 2018. 2
+[55] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. 3
+[56] Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122, 2015. 5
+[57] Muhammad Zeeshan Zia, Michael Stark, and Konrad Schindler. Are cars just 3d boxes?-jointly estimating the 3d shape of multiple objects. In CVPR, pages 3678-3685, 2014. 3
+[58] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In CVPR, pages 6848-6856, 2018. 4
+[59] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, pages 4490-4499, 2018. 3
\ No newline at end of file
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/images.zip b/learningdepthguidedconvolutionsformonocular3dobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9f98832cd52764863ab4af5bf075fcd6740b2219
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d99c3d023433aba00541330d316478ab069b5e8dd5e41032602f78cd754650a0
+size 632031
diff --git a/learningdepthguidedconvolutionsformonocular3dobjectdetection/layout.json b/learningdepthguidedconvolutionsformonocular3dobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e7e742819b8633956c6b3e54b1e76fa5d75dcba5
--- /dev/null
+++ b/learningdepthguidedconvolutionsformonocular3dobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af96b27c9574a7c04fa82bedebad3edb3023b3ab0cb2d62daf26e417c095c47f
+size 456466
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_content_list.json b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4524ca21741a6534fdf1e69c4c02a99c17f2eec0
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec26fd9195520034ea17be096bb87a32e5e761b23640e7790884a10141033299
+size 93362
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_model.json b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1b4ffe584b4e9bfe88ae6d1a2cb47ec5b5c2d737
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cabba03ad0b2a6f1306656fae2b855535bac265b264c2ff787e17449121c8ace
+size 108128
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_origin.pdf b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..161ce392baf7e04e6dd9538e93309a712d3a1bc2
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/2c55f07b-c27f-4f2e-956f-c3b1981a65fd_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fb7ce26344b38633720609a0cd7e6173d65334be74661ea86c2904193340172
+size 3048588
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/full.md b/learningdynamicrelationshipsfor3dhumanmotionprediction/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ef52b2ad6800111d250ddc909bddedfefbb80848
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/full.md
@@ -0,0 +1,299 @@
+# Learning Dynamic Relationships for 3D Human Motion Prediction
+
+Qiongjie Cui
+
+Huaijiang Sun*
+
+Fei Yang
+
+Nanjing University of Science and Technology, Nanjing, China
+
+cuiqiongjie@njust.edu.cn, sunhuaijiang@njust.edu.cn, yangfei92516@163.com
+
+# Abstract
+
+3D human motion prediction, i.e., forecasting future sequences from given historical poses, is a fundamental task for action analysis, human-computer interaction, machine intelligence. Recently, the state-of-the-art method assumes that the whole human motion sequence involves a fully-connected graph formed by links between each joint pair. Although encouraging performance has been made, due to the neglect of the inherent and meaningful characteristics of the natural connectivity of human joints, unexpected results may be produced. Moreover, such a complicated topology greatly increases the training difficulty. To tackle these issues, we propose a deep generative model based on graph networks and adversarial learning. Specifically, the skeleton pose is represented as a novel dynamic graph, in which natural connectivities of the joint pairs are exploited explicitly, and the links of geometrically separated joints can also be learned implicitly. Notably, in the proposed model, the natural connection strength is adaptively learned, whereas, in previous schemes, it was constant. Our approach is evaluated on two representations (i.e., angle-based, position-based) from various large-scale 3D skeleton benchmarks (e.g., H3.6M, CMU, 3DPW MoCap). Extensive experiments demonstrate that our approach achieves significant improvements against existing baselines in accuracy and visualization. Code will be available at https://github.com/cuiqiongjie/LDRGCN.
+
+# 1. Introduction
+
+Human motion prediction based on 3D skeleton data is committed to predicting future sequences from historical poses [24, 15]. Because of the potential in machine intelligence, autonomous vehicle, human-computer interaction, especially applications that require interaction with humans, it has been widely investigated and attracted considerable attention [14, 7, 24, 25, 21].
+
+Traditional approaches have typically resorted to RNNs to model the human motion sequence [11, 18, 10]. How-
+
+
+Figure 1. Example result. From top to bottom, we show the ground truth, the results of ConvSeqSeq, FC-GCN, FC-GCN 3D, Ours and Ours 3D. The red rectangle refers to a set of contrasting poses. The predictions of ours approach are indistinguishable from the ground truth in short-term prediction, and even for longer range prediction, the result are still semantically equivalent.
+
+ever, RNN calculates the temporal context frame by frame, which may lead to the gradient vanishing or exploding, bringing their well-known training difficulty. Correspondingly, as described in the previous work [21, 14], recurrent models inevitably involve error accumulation and convergence to the mean pose. On the other hand, CNNs are also introduced to further extract multi-scale spatial correlations and have achieved remarkable performance [21]. Yet, skeleton sequence is essentially a non-euclidean data, while CNNs are theoretically only applicable standard 2D grid representation.
+
+Recently, Graph Convolutional Networks (GCNs), a general form of conventional CNNs, with improved generalization and high interpretability, have received increasing attention and widely applied in many applications [6, 20, 33]. Researchers have also attempted to utilize GCNs to efficiently extract contextual information for forecasting human motion [23]. They suggest that the whole skeleton sequence serves as an implicit and unrestricted graph, and employs GCNs to learn these links between all joint pairs of the sequence. Although this fully-connected graph model (FC-GCN) has delivered impressive results, it cannot ex
+
+plicitly exploit the human skeleton structure. The hierarchical structure of the human body represents the topological relationship and indicates the inherent characteristics and strong dependencies of human joints. Ignoring such meaningful connectivities is equivalent to roughly viewing 3D skeleton data as a general format, thus generating unrealistic predictions.
+
+To handle these aforementioned challenges, we propose a novel graph generative model to efficiently predict future poses from given historical movements. Specifically, we construct two parameterized graphs to learn the dynamic relationships among joints in 3D skeleton sequences: One is the connective graph that explicitly leverages the natural kinematic links of the human skeleton. Due to the heterogeneous information of human joints, in contrast to the fixed strengths in previous work, we innovatively parameterize the adjacent matrix $A_{p}$ to learn these diverse patterns. Note that, for $A_{p}$ , only the relationship between physically connected parts is learnable, while the weights of other separated joints are always fixed; Another one is the global graph $Q$ . Except for natural connections, geometrically nonadjacent joints may potentially be interrelated. For example, during running, the movement of the left hand always shows a strong correlation with the right hand, rather than the left shoulder joint, which is connected to it. We solve this problem by a learnable global graph to learn these implicit connectivities along with the optimization process. Then, partially constrained $A_{p}$ helps the flexible $Q$ stabilize the training process, and $Q$ assists $A_{p}$ in capturing implicit relationships. Besides, inspired by [14], we further introduce a graph discriminator to distinguish the long sequence that spliced by input sequence and prediction or original future poses. Experiments empirically demonstrate that the adversarial regularization is indeed preserving the detail information and facilitating prediction visualizations.
+
+The major contributions of this paper are summarized as: (1) We parameterize the adjacent matrix as the connective graph to learn the weights of natural connections instead of fixed ones, and propose a learnable global graph to capture implicit relationships, as shown in Figure 2. This data-driven method increases the flexibility of graph construction, making it more specific and applicable to the human kinetic structure. (2) Graph adversarial discriminator is introduced to further enhance the visualization of prediction. (3) On two skeleton representations of various large-scale benchmarks (i.e., H3.6M [17], CMU [1], and 3DPW [28] MoCap datasets), extensive experiments show that our model surpasses the state-of-the-art methods in terms of visualization and precision in almost all scenarios.
+
+# 2. Related Work
+
+Human Motion Prediction. Typical methods formulate human motion prediction as a sequence-to-sequence
+
+
+Figure 2. Left: human skeleton. Middle: connective graph where blue lines indicate the learnable strengths of natural connectivities. Right: global graph, and the grey line is the implicit relationships for right knee joint.
+
+(seq2seq) learning problem [11, 24, 27]. Specifically, RNNs are proposed to capture the temporal information of human motion, achieving encouraging results [4, 25]. Fragkiadaki et al. [11] present two solutions: 3-layer long short-term memory (LSTM) network (i.e., LSTM-3LR) and Encoder-Recurrent-Decoder (i.e., ERD), where LSTM is utilized to extract long-term dependencies. Meanwhile, a structural RNN [18] is developed to semantically model the spatiotemporal structure of 3D skeleton sequence. The above two methods are action-specific models, and significant discontinuities between the predicted first frame and the last frame of the input sequence are often observed. Martinez et al. [24] introduce residual learning to recurrent model to produce a smooth prediction. Tang et al. [27] suggest using attention mechanism to capture the long-term temporal dependency to efficiently model human motion. However, RNN-based models often fall into the criticized problem of convergence to the static mean pose. Recently, researchers have proposed various variants of RNN, e.g., hierarchical motion recurrent model [22], Verso-Time Label Noise-RNN [12], and triangular-prism RNN [8]. Unfortunately, since RNN calculates the temporal context step by step, it still inevitably causes error accumulation.
+
+Currently, generative adversarial networks (GANs) have shown impressive performance [2, 13, 21, 30]. Li et al. [21] propose a convolutional discriminator to model human motion sequences and generate realistic predicted poses. Gui et al. [14] present a novel framework, called adversarial geometry aware encoder-decoder (AGED), in which the discriminator distinguishes the concatenations of observed frames and prediction or ground truth.
+
+Graph Convolutional Networks. As a generalization of CNNs, GCN is naturally suitable for data with specific graph structure, e.g., point cloud [30], social network [32], and 3D skeleton data [26, 23, 12]. Yan et al. [31] construct a spatial-temporal graph defined on the essential skeleton and the temporally consecutive poses for action recognition. This strategy leverages the strong natural dependencies among human joints; however, it reduces flexibility. Shi et al. [26] address this limitation by parameterizing an
+
+
+Figure 3. Illustration of the proposed model. Each GCN layer is followed by a temporal convolution to form GCN blocks to extract the spatial-temporal correlation hierarchically. In each block, solid lines and dashed lines respectively represent learnable natural connections and implicit relationships, wherein different gray depths indicate differential weights. The final model consists of 9 residual GCN blocks to learn the dynamic relationship of 3D skeleton sequences. Then, an observation of historical poses is fed into the network to predict the future sequence with an end-to-end manner. Note that the symbol $\oplus$ is residual learning or skip connections.
+
+unrestricted matrix to adaptively learn the implicit connections, except for natural connections. For human motion prediction, Mao et al. [23] suggest that the whole motion sequence serves as an unconstrained topology, presenting impressive results. However, such construction is equivalent to treating the motion sequence cursorily as general data without meaningful natural connections of human joints, and unconstrained learning may lead to unstable training. Instead of the above solutions, we set the adjacency matrix as the model parameter, where the weights of the naturally connected parts are learnable in the full training, while the others are fixed at 0. The partially constrained adjacency matrix ensures flexibility and sufficient utilizing of inherent relationships of the human skeleton. Moreover, inspired by [26], in addition to natural connections, we also parameterize a global graph to learn the implicit connectivities of joints. With the above graph construction, our model can learn the dynamic relationship of the 3D skeleton sequence, so as to produce a high-fidelity prediction.
+
+# 3. The Proposed Method
+
+Following the previous works [14, 21, 9], in this paper, the 3D skeleton samples are obtained from motion capture (MoCap) technologies. A motion sequence consists of a series of consecutive frames (poses), wherein each frame records the angle or position information of each joint. Suppose an observed motion sequence is formulated as $\mathbf{X}_{1:T} = \{\mathbf{x}_1,\mathbf{x}_2,\dots,\mathbf{x}_t,\dots,\mathbf{x}_T\}$ with $1\leq t\leq T$ and each $\mathbf{x}_t\in R^{3N}$ from $\mathbf{X}$ represents a pose at time step $t$ where $N$ is joints number. Then, we denote $\tilde{\mathbf{Y}} = \{\tilde{\mathbf{y}}_{T + 1},\tilde{\mathbf{y}}_{T + 2},\dots,\tilde{\mathbf{y}}_{T + \Delta t}\}$ be the prediction with $\Delta t$ frames, and $\mathbf{Y} = \{\mathbf{y}_{+1},\mathbf{y}_{T + 2},\dots,\mathbf{y}_{T + \Delta t}\}$ be the corresponding ground truth of future motion. Our goal is to learning an optimal generator $\mathcal{P}_{*}$ that accurately map historical poses $\mathbf{X}$ to future sequence $\mathbf{Y}$ . To this end, we propose to learn the dynamic relationships of skeleton sequences to minimize the
+
+difference between the prediction and ground truth.
+
+# 3.1. Learning Dynamic Relationships
+
+3D skeleton data, recording movement information of specific joint frame by frame from MoCap devices, which is essentially a sequential data and naturally suitable for recurrent neural networks (RNNs). However, due to limited abilities to extract spatial information and the inevitable error accumulation, RNN variants often produce unrealistic predictions. Additionally, conventional CNNs are also ignoring the kinematic dependencies of human joints.
+
+Convolution on Graphs. Therefore, in this work, a novel dynamic GCN model is proposed to automatically learn the spatio-temporal relationships in MoCap sequence in order to efficiently predict future poses. Specifically, we present a skeleton-based pose as a undirected graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , in which $\mathcal{V}$ is vertex set, i.e., joints set of human body. $\mathcal{E} = \{e_{ij} > 0\mid i,j\in 1,2,\dots,N\}$ is edge set that $v_{i}$ and $v_{j}$ are naturally connected. Then, a motion sequence is formulated as $\mathcal{M} = \{\mathcal{G}_1,\mathcal{G}_2,\dots,\mathcal{G}_T\}$ with $T$ frames. The typical operation of GCNs is formally expressed as:
+
+$$
+\boldsymbol {F} ^ {(l + 1)} = g \left(\boldsymbol {F} ^ {(l)}, \boldsymbol {A}\right) = \sigma \left[ \hat {\boldsymbol {A}} \boldsymbol {F} ^ {(l)} \boldsymbol {W} ^ {(l)} \right], \quad \hat {\boldsymbol {A}} = \tilde {\boldsymbol {D}} ^ {- \frac {1}{2}} \tilde {\boldsymbol {A}} \tilde {\boldsymbol {D}} ^ {\frac {1}{2}}, \tag {1}
+$$
+
+where $\pmb{F}^{(l)} \in R^{N,S_l}$ and $\pmb{F}^{(l + 1)} \in R^{N,S_{l + 1}}$ are input and output tensor at $l$ -th layer, respectively. $\pmb{W} \in R^{S_l,S_{l + 1}}$ is learnable weight matrix, $\sigma$ is activation function (e.g., ReLU). $\tilde{\pmb{D}} \in R^{N,N}$ is diagonal degree matrix where $\tilde{D}_{i,i} = \sum_{j}\tilde{A}_{i,j}$ . $\tilde{\pmb{A}} = \pmb {A} + \pmb{I}$ where $\pmb{A}$ is the adjacency matrix and $\pmb{I}$ is identity matrix. Note that in the previous work [20, 31, 12], the weight of the adjacency matrix is consistently fixed with optimization process, i.e., $A \in \{e_{i,j} = 1\}$ . With the deepening of the network hierarchy, this constant representation may also partially model high-level features. However, this strategy is not an optimal expression. Intuitively, all the joints that connected with the vertex $v_{i}$ contribute unequally to the movement pattern for $v_{i}$ . For example, during walking, the shoulder joint is more dependent on the trunk than
+
+the elbow joint.
+
+Connective Graph. To solve this problem, we innovatively develop a connective graph parameterized by the adjacency matrix, formally as $A_{p} \in R^{N,N}$ , which represents the learnable connection strength of the natural links for the human skeleton. Instead of the fixed weight of the adjacency matrix in prior work [31, 12], we suggest that the interdependencies of natural connection in human skeletons are trainable rather than constant, and then we learn the weights of such natural relationships adaptively. With the optimization process, the $A_{p}^{(l)} \in R^{N,N}$ at $l$ -th layer gradually reach the optimal solution, and the relative importance between physically connected joint pairs can be automatically obtained. The operation can be simplified as:
+
+$$
+\boldsymbol {F} ^ {(l + 1)} = g \left(\boldsymbol {F} ^ {(l)}\right) = \sigma \left[ \left(\boldsymbol {A} _ {p} ^ {(l)} \circ \boldsymbol {M}\right) \boldsymbol {F} ^ {(l)} W ^ {(l)} \right], \tag {2}
+$$
+
+where $\mathbf{A}_p$ is $N \times N$ learnable connective matrix, and $\mathbf{F}^{(l + 1)} \in R^{N \times S_{l + 1}}$ and $\mathbf{F}^{(l)} \in R^{N \times S_l}$ are input and output at $l$ -th layer. $\mathbf{M} \in R^{N,N}$ is a fixed mask matrix, and the symbol $\circ$ indicates element-wise product. With the binary $\mathbf{M}$ , for partially constrained $A_{p} = \{e_{ij}\}$ , throughout training, only the weights of the interconnected vertexes are optimized, while the separate parts are fixed at 0. In other words, $A_{p}$ is introduced to learn the natural connection strength of the human skeleton. Unlike constant adjacency matrix, parameterized $A_{p}$ can adaptively treat the connective relationships between joints, as shown in the middle of Figure 2. Besides, the fact that learnable $A_{p}$ with a fixed topology means regularizing the proposed model based on prior knowledge, which can help the model converge to the global minimum faster. Note that, the trainable $A_{p}$ is still initialized by the original adjacency matrix $\mathbf{A}$ .
+
+Global Graph. Up to now, the constructed graph is still manually designed from the kinematic structure of the human body. Even though the weights of natural connections are adaptively calculated, this configuration may fail in adequately modeling the spatial characteristics of the human skeleton. For instance, in the running, the left and the right leg always support each other, but there are no physical connectivities between them. Due to the separation of node relationships, $A_{p}$ has a low ability to model such valuable information. To tackle the challenges, we further present a global graph to capture implicit but critical structural features that transcend natural connections. Particularly, we parameterize a matrix $Q \in R^{N,N}$ initialized from the zeros matrix with the same size of $A_{p}$ to adaptively learn the underlying relationships among all human joints. In contrast to $A_{p}$ , $Q$ is flexible without any constraints, which means that it gradually achieves optimum along with the training process. Besides natural relations, the global $Q$ can learn useful and implicit connection weights distributed in training samples. Finally, the updating formulation of the proposed model is expressed as:
+
+$$
+\boldsymbol {F} ^ {(l + 1)} = g (\boldsymbol {F} ^ {(l)}) = \sigma \left[ \left(\boldsymbol {A} _ {p} ^ {(l)} \circ \boldsymbol {M} + \boldsymbol {Q} ^ {(l)}\right) \boldsymbol {F} ^ {(l)} \boldsymbol {W} ^ {(l)} \right], \tag {3}
+$$
+
+where $A_p^{(l)}, Q^{(l)} \in R^{N \times N}$ is optimal matrix at $l$ -th layer with training process to jointly learn dynamic relationships of skeleton sequence. Such a construction brings several significant benefits:
+
+(1) Learnable $A_{p}$ adaptively extract the heterogeneous information of natural connections of human joints;
+(2) Unconstrained $Q$ improves flexibility;
+(3) Partially restricted $A_{p}$ ensures stable training for $\mathcal{Q}$
+(4) $Q$ as a supplementary of $A_{p}$ to learn the underlying topology;
+(5) $A_{p}$ and $\mathbf{Q}$ cooperate to learn dynamic relationships of skeleton sequences effectively.
+
+Temporal modeling using convolutions The typical methods [24, 4, 27] are to use RNN to model the temporal information of human motion. However, RNN-based models inevitably accumulate errors and increases computational complexity. In contrast to RNN, TCN (i.e., 1D convolution) is a feed-forward operation, demonstrating advantages in parameter number, parallelism, accuracy, and model complexity for modeling temporal patterns [3, 31]. Consequently, we employ TCN along the time dimension of human motion to extract temporal correlations.
+
+# 3.2. Optimization
+
+Due to the different characteristics of the position-based and angle-based skeleton sequence, we introduce the following loss functions to obtain better visualization and accuracy of predicted poses.
+
+Content loss, to ensure that the predicted sequence is consistent with the global information of the experimental samples as much as possible, i.e.,
+
+$$
+\mathcal {L} _ {c o n} = \frac {1}{\Delta t} \sum_ {i = T + 1} ^ {T + \Delta t} \sum_ {j = 1} ^ {d} \left\| \mathbf {y} _ {i, j} - \tilde {\mathbf {y}} _ {i, j} \right\| _ {2}, \tag {4}
+$$
+
+where $\mathbf{y}_{i,j}$ and $\tilde{\mathbf{y}}_{i,j}$ is the $j$ -th joint of $i$ -th frame for ground turth and the prediction, respectively. $d$ , $N$ are number of human joints and prediction length. Note that, for the two representations of 3D skeleton sequence, $\mathbf{y}_{i,j}$ and $\tilde{\mathbf{y}}_{i,j}$ is angle or position information, respectively.
+
+Gram matrix loss, is also introduced to preserve the consistency between prediction patterns and the original pose, and avoid convergence to mean pose, i.e.,
+
+$$
+\mathcal {L} _ {\text {g r a m}} = \frac {1}{\Delta t} \sum_ {i = T + 1 t} ^ {T + \Delta t - 1} \left\| H \left(\tilde {\mathbf {y}} ^ {i}, \tilde {\mathbf {y}} ^ {i + 1}\right) - H \left(\mathbf {y} ^ {i}, \mathbf {y} ^ {i + 1}\right) \right\| _ {2}, \tag {5}
+$$
+
+where the gram matrix is defined as $H(\alpha, \beta) = [\alpha : \beta][\alpha : \beta]^T$ , and $[:]$ indicates concatenation.
+
+Bone length loss, enforces the bone length of each generated pose to approach the ground truth. Moreover, for 3D coordinates of skeleton sequence, a fixed bone length can force the predicted joint position to lie on a sphere with its parent joint as the origin and the bone length as the radius. This dramatically reduces the search space for joint movement and is conducive to the faster convergence of the network. For bone length $l_{i,j}$ of $j$ -th joint in $i$ -th pose and the
+
+
+(a) Walking Dog
+
+
+(b) Greeting
+
+
+(c) Smoking
+Figure 4. Qualitative comparison. The short-term predictions (400 ms) are shown in (a) walking dog, (b) greeting, and long-term prediction (1000 ms) in (c) smoking. In each sub-figure, the first row is ground truth; the second, third and fifth are the result of ConvSeq2Seq [21], FC-GCN [23], and our model based on angles; and the fourth and the bottom are the prediction of FC-GCN and our model based on 3D coordinate. In each row, the first 3 animations are observed poses, and the remainders are predicted frames, where the interval of each animation is 40 ms. The red rectangles refer to contrasting frames, and the circles are unreasonable parts. From the result, we observe that the proposed model produces more realistic visualization in all scenarios.
+
+corresponding predicted part, this loss is denoted as:
+
+$$
+\mathcal {L} _ {\text {b o n e}} = \frac {1}{\Delta t} \sum_ {i = T + \Delta t} ^ {T + N} \sum_ {j = 1} ^ {d} \left\| l _ {i, j} - \tilde {l} _ {i, j} \right\| _ {2}. \tag {6}
+$$
+
+Recently, GANs [13, 2] have introduced into the variation of GCNs and achieved remarkable performance in many applications [30, 5, 32]. Motivation from these works, we develop adversarial learning for our generator $\mathcal{P}$ to further enhance the prediction visualization. In particular, following the formalism of WGAN-GP [16, 4], we design a graph discriminator $\mathcal{D}$ with gradient penalty, which shares the generator architecture but has fewer layers. Then, the adversarial loss can be expressed as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathcal {D}} = \mathcal {D} ([ X: \mathcal {P} (X) ]) - \mathcal {D} ([ X: Y ]) + \lambda (\| \nabla_ {\hat {x}} \mathcal {D} (\hat {x}) \| _ {2} - 1) ^ {2}, (7) \\ \mathcal {L} _ {\mathcal {P}} = - \mathcal {D} ([ X: \mathcal {P} (X) ]), (8) \\ \end{array}
+$$
+
+where $(\|\nabla_{\hat{x}}\mathcal{D}(\hat{x})\|^{2}-1)^{2}$ is the gradient penalty term, and $\hat{x}=\epsilon([X:Y])+(1-\epsilon)([X:\mathcal{P}(X)])$ is a random sample with uniform distribution. Inspired by [14], the discriminator is introduced to distinguish the long sequence that is concatenated from the historical sequence and the prediction or ground truth, achieving better results. In all of our experiments, we set $\lambda=5$ .
+
+In this paper, we exploit two final loss functions for both angle-based and position-based representations of human motion respectively:
+
+Final loss for angle-based skeleton sequence. The following loss is used to optimize the proposed model based on joint angle representation, that is,
+
+$$
+\mathcal {P} ^ {*} = \arg \min _ {\mathcal {P}} \max _ {\mathcal {D} \in D} \lambda_ {c o n} \mathcal {L} _ {c o n} + \lambda_ {g r a m} \mathcal {L} _ {g r a m} + \mathcal {L} _ {\mathcal {P}} + \mathcal {L} _ {\mathcal {D}}, \tag {9}
+$$
+
+where $\lambda_{con} = 0.01$ , $\lambda_{gram} = 0.001$ are hyperparameters to balance the importance of each loss term;
+
+Final loss for position-based skeleton sequence. With optimum $\lambda_{con} = 0.01$ , $\lambda_{bone} = 0.0005$ , we present the final loss function for 3D coordinate skeleton sequence, i.e.,
+
+$$
+\mathcal {P} ^ {*} = \arg \min _ {\mathcal {P}} \max _ {\mathcal {D} \in D} \lambda_ {c o n} \mathcal {L} _ {c o n} + \lambda_ {b o n e} \mathcal {L} _ {b o n e} + \mathcal {L} _ {\mathcal {P}} + \mathcal {L} _ {\mathcal {D}} \tag {10}
+$$
+
+# 3.3. Implementation
+
+As a primary component, each block consists of a proposed GCN layer and a TCN layer, with dropout rate of 0.3. Besides, each layer is followed by a batch normalization (BN) and ReLU activation function, as shown in Figure 3. We also add a residual connection in each block to stabilize the training process. Then, the final model consists of 9 residual dynamic GCN blocks. Due to more abstract representations for deeper layers, we gradually increase the number of output channels in the GCN layer, i.e., 64, 64, 64, 128, 128, 128, 256, 256, 256. Skip connection is added to the input and output layers. We implement TCN with $k * 1$
+
+| Walking | Eating | Smoking | Discussion | Directions | |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | |
| Residual sup.[24] | 0.28 | 0.49 | 0.72 | 0.81 | 1.14 | 0.23 | 0.39 | 0.62 | 0.76 | 1.34 | 0.33 | 0.61 | 1.05 | 1.15 | 1.83 | 0.31 | 0.68 | 1.01 | 1.09 | 1.79 | 0.26 | 0.47 | 0.72 | 0.84 | 1.46 | |
| ConvSeqSeq[21] | 0.33 | 0.54 | 0.68 | 0.73 | 0.92 | 0.22 | 0.36 | 0.58 | 0.71 | 1.24 | 0.26 | 0.49 | 0.96 | 0.92 | 1.62 | 0.32 | 0.67 | 0.94 | 1.01 | 1.86 | 0.39 | 0.60 | 0.80 | 0.91 | 1.45 | |
| AGED w/o adv [14] | 0.28 | 0.42 | 0.66 | 0.73 | 0.73 | 0.22 | 0.35 | 0.61 | 0.74 | 0.74 | 0.30 | 0.55 | 0.98 | 0.98 | 0.99 | 0.30 | 0.63 | 0.97 | 1.06 | 1.06 | 0.26 | 0.46 | 0.71 | 0.81 | 1.32 | |
| AGED w/ adv [14] | 0.22 | 0.36 | 0.55 | 0.67 | 0.91 | 0.17 | 0.28 | 0.51 | 0.64 | 0.93 | 0.27 | 0.43 | 0.82 | 0.84 | 1.21 | 0.27 | 0.56 | 0.76 | 0.83 | 1.30 | 0.23 | 0.39 | 0.63 | 0.69 | 1.21 | |
| FC-GCN [23] | 0.18 | 0.31 | 0.49 | 0.56 | 0.79 | 0.16 | 0.29 | 0.50 | 0.62 | 1.05 | 0.22 | 0.41 | 0.86 | 0.80 | 1.13 | 0.20 | 0.51 | 0.77 | 0.85 | 0.85 | 0.26 | 0.45 | 0.71 | 0.79 | 1.07 | |
| Ours | 0.16 | 0.29 | 0.46 | 0.57 | 0.71 | 0.16 | 0.27 | 0.49 | 0.64 | 0.97 | 0.20 | 0.38 | 0.79 | 0.82 | 1.08 | 0.19 | 0.45 | 0.72 | 0.81 | 0.84 | 0.29 | 0.43 | 0.59 | 0.68 | 0.95 | |
| Greeting | Phoning | Posing | Purchase | Sitting | |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | | | | |
| Residual sup.[24] | 0.75 | 1.17 | 1.74 | 1.83 | 1.93 | 0.23 | 0.43 | 0.69 | 0.82 | 1.73 | 0.36 | 0.71 | 1.22 | 1.48 | 2.43 | 0.51 | 0.97 | 1.07 | 1.16 | 2.30 | 0.41 | 1.05 | 1.49 | 1.63 | 2.14 | |
| ConvSeqSeq[21] | 0.51 | 0.82 | 1.21 | 1.38 | 1.72 | 0.59 | 1.13 | 1.51 | 1.65 | 1.81 | 0.29 | 0.60 | 1.12 | 1.37 | 2.65 | 0.63 | 0.91 | 1.19 | 1.29 | 2.52 | 0.39 | 0.61 | 1.02 | 1.18 | 2.67 | |
| AGED w/o adv [14] | 0.61 | 0.95 | 1.44 | 1.61 | 1.81 | 0.23 | 0.42 | 0.61 | 0.79 | 1.77 | 0.34 | 0.70 | 1.19 | 1.40 | 2.01 | 0.46 | 0.89 | 1.06 | 1.11 | 1.89 | 0.46 | 0.87 | 1.23 | 1.51 | 2.11 | |
| AGED w/ adv [14] | 0.56 | 0.81 | 1.30 | 1.46 | 2.12 | 0.19 | 0.34 | 0.50 | 0.68 | 1.41 | 0.31 | 0.58 | 1.12 | 1.34 | 1.78 | 0.46 | 0.78 | 1.01 | 1.07 | 1.77 | 0.41 | 0.76 | 1.05 | 1.19 | 1.72 | |
| FC-GCN [23] | 0.36 | 0.60 | 0.95 | 1.13 | 1.43 | 0.53 | 1.02 | 1.35 | 1.48 | 2.08 | 0.19 | 0.44 | 1.01 | 1.24 | 1.54 | 0.43 | 0.65 | 1.05 | 1.13 | 1.73 | 0.29 | 0.45 | 0.80 | 0.97 | 1.47 | |
| Ours | 0.35 | 0.56 | 0.87 | 0.98 | 1.33 | 0.43 | 0.54 | 0.63 | 0.78 | 1.33 | 0.15 | 0.44 | 0.91 | 1.07 | 1.34 | 0.43 | 0.57 | 0.88 | 1.08 | 1.49 | 0.27 | 0.43 | 0.69 | 1.01 | 1.38 | |
| Sitting down | Taking photo | Waiting | Walking Dog | Walking together | |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | | | |
| Residual sup.[24] | 0.39 | 0.81 | 1.40 | 1.62 | 2.72 | 0.24 | 0.51 | 0.90 | 1.05 | 1.51 | 0.28 | 0.53 | 1.02 | 1.14 | 2.34 | 0.56 | 0.91 | 1.26 | 1.40 | 1.86 | 0.31 | 0.58 | 0.87 | 0.91 | 1.42 | |
| ConvSeqSeq[21] | 0.41 | 0.78 | 1.16 | 1.31 | 2.06 | 0.23 | 0.49 | 0.88 | 1.06 | 1.40 | 0.30 | 0.62 | 1.09 | 1.30 | 2.50 | 0.59 | 1.00 | 1.32 | 1.44 | 1.92 | 0.27 | 0.52 | 0.71 | 0.74 | 1.28 | |
| AGED w/o adv [14] | 0.38 | 0.77 | 1.18 | 1.41 | 1.88 | 0.24 | 0.52 | 0.92 | 1.01 | 1.22 | 0.31 | 0.64 | 1.08 | 1.12 | 1.91 | 0.51 | 0.87 | 1.21 | 1.33 | 1.51 | 0.29 | 0.51 | 0.72 | 0.75 | 1.08 | |
| AGED w/ adv [14] | 0.33 | 0.62 | 0.98 | 1.10 | 1.98 | 0.23 | 0.48 | 0.81 | 0.95 | 1.65 | 0.24 | 0.50 | 1.02 | 1.13 | 1.65 | 0.50 | 0.81 | 1.15 | 1.27 | 1.61 | 0.23 | 0.41 | 0.56 | 0.62 | 1.47 | |
| FC-GCN [23] | 0.30 | 0.61 | 0.90 | 1.00 | 1.45 | 0.14 | 0.34 | 0.58 | 0.70 | 1.35 | 0.23 | 0.50 | 0.91 | 1.14 | 1.23 | 0.46 | 0.79 | 1.12 | 1.29 | 1.31 | 0.15 | 0.34 | 0.52 | 0.57 | 1.41 | |
| Ours | 0.29 | 0.62 | 0.87 | 0.93 | 1.42 | 0.13 | 0.33 | 0.54 | 0.71 | 1.20 | 0.21 | 0.48 | 0.84 | 1.15 | 1.21 | 0.45 | 0.68 | 0.93 | 1.14 | 1.38 | 0.15 | 0.33 | 0.49 | 0.54 | 1.38 | |
+
+Table 1. Comparisons of angle error for short-term and long-term prediction on H3.6M dataset. The best results are highlighted in bold, and the second are underlined.
+
+filter size, where the temporal dimension is $k = 9$ . The discriminator has a similar structure with six layers. The unit number in the bottom layers of multi-layer perceptrons is set as 512, 246, 64, 1. Note that, inspired by AGED [14], our adversarial discriminator is introduced to distinguish the long sequence which is concatenated from historical poses and predictions or ground truth. The batch size is set to 32. We utilize Adam [19] to train our model, and the learning rate is initialized as 0.001 with a 0.98 decay per epoch.
+
+# 4. Experiments
+
+# 4.1. Datasets and Preprocessing
+
+We use several action analysis benchmarks to verify the effectiveness of the proposed model:
+
+H3.6M [17], is considered to be the largest and challenging human motion analysis dataset currently. It involves 15 complex action scenarios, including periodic (e.g., walking) or aperiodic (e.g., eating, smoking), performed by seven actors. Consistent with the solution of data preprocessing in [21, 23], we have removed global translation and rotation, and constant joints. Finally, each pose is represented as a skeleton of 17 joints. During training, we down-sample all sequences to 25 frames per second (fps) and re-expressed it as exponential mapping. Besides, skeleton sequences are normalized by subtracting the average pose of whole datasets and then dividing into the standard deviation. Following the previous works [18, 21, 14], we use the subject-5 (S5) to test our model, and S11 is the validation set, and the remaining five subjects are training samples.
+
+CMU MoCap [1]. We have also published experimental results on CMU MoCap dataset. As previous literature [24, 21, 23], 8 actions are selected as our samples, e.g., walking, running, wash window. We used the same training/test split in their released code, the validation set is unavailable due to data limitations. Other pre-processing strategies are the same as those of H3.6M.
+
+3DPW MoCap [29], is a recently released large-scale action analysis dataset, which contains 51k indoor or outdoor poses. In order to make a fair comparison, we adopt the partitioning solution of official training, testing and validation set. The frame rate of all sequences is 30fps.
+
+# 4.2. Evaluation Criteria and Baselines
+
+Criteria: Following the previous standard evaluation metric in [21, 24], we report the comparison results of the angle error between the ground truth and the prediction, i.e.,
+
+$$
+E _ {\text {a n g l e}} = \frac {1}{\Delta t} \frac {1}{N} \sum_ {i = T + 1} ^ {T + \Delta t} \sum_ {j = 1} ^ {N} \left| \mathbf {y} _ {i, j} - \tilde {\mathbf {y}} _ {i, j} \right|, \tag {11}
+$$
+
+where $\tilde{\mathbf{y}}_{i,j}$ is predicted angle in $i$ -th frame of $j$ -th joint, and $\mathbf{y}_{i,j}$ is the corresponding ground truth. Besides, we also evaluate 3D errors using Mean Per Joint Position Error (MPJPE) [17, 23] in millimeter, that is,
+
+$$
+E _ {3 D} = \sqrt {\frac {1}{\Delta t} \frac {1}{N} \sum_ {i = T + 1} ^ {T + \Delta t} \sum_ {j = 1} ^ {N} \left\| \mathbf {p} _ {i , j} - \tilde {\mathbf {p}} _ {i , j} \right\| _ {2} ^ {2}}, \tag {12}
+$$
+
+where $\mathbf{p}_{i,j}$ and $\tilde{\mathbf{p}}_{i,j}$ are the position of the ground truth and the prediction, which can be measured either by converting the predicted angles to 3D space, or directly train on 3D coordinates of the skeleton sequence.
+
+Baselines: To evaluate the effectiveness of the proposed model, five latest methods are used as the competitive methods, including recurrent model (Residual sup.) [24], feedforward model (ConvSeqSeq) [21], GAN-based (AGED w/ or w/o adv) [14] and graph method (FC-GCN) [23]. In addition to evaluating the angle error, we also investigate the 3D error of the baseline methods exploiting strategy in [23] to transform the predicted angle into 3D Cartesian space. On the other hand, we take the position-based motion sequence as the input and output of baselines and our method, to statistics the comparison results of 3D error.
+
+# 4.3. Results
+
+Following the previous work [24, 25, 4, 27], in this paper, we focus on high-accuracy prediction in the next $400ms$
+
+| Walking | Eating | Smoking | Discussion | Directions |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| ConvSeq2Seq [21] | 21.8 | 37.5 | 55.9 | 63.0 | 92.1 | 13.3 | 24.5 | 48.6 | 60.0 | 87.7 | 15.4 | 25.5 | 39.3 | 44.5 | 67.5 | 23.6 | 43.6 | 68.4 | 74.9 | 134.4 | 26.7 | 43.3 | 59.0 | 72.4 | 132.2 |
| ConvSeq2Seq 3D [21] | 17.1 | 31.2 | 53.8 | 61.5 | 89.2 | 13.7 | 25.9 | 52.5 | 63.3 | 74.4 | 11.1 | 21.0 | 33.4 | 38.3 | 52.2 | 18.9 | 39.3 | 67.7 | 75.7 | 123.9 | 22.0 | 37.2 | 59.6 | 73.4 | 118.3 |
| FC-GCN [23] | 11.1 | 19.0 | 32.0 | 39.1 | 53.7 | 9.2 | 19.5 | 40.3 | 48.9 | 62.5 | 9.2 | 16.6 | 26.1 | 29.0 | 47.3 | 11.3 | 23.7 | 41.9 | 46.6 | 81.4 | 11.2 | 23.2 | 52.7 | 64.1 | 92.5 |
| FC-GCN 3D [23] | 8.9 | 15.7 | 29.2 | 33.4 | 50.9 | 8.8 | 18.9 | 39.4 | 47.2 | 57.1 | 7.8 | 14.9 | 25.3 | 28.7 | 44.3 | 9.8 | 22.1 | 39.6 | 44.1 | 78.5 | 12.6 | 24.4 | 48.2 | 58.4 | 89.1 |
| Ours | 9.7 | 17.7 | 28.3 | 32.2 | 51.3 | 10.2 | 17.4 | 38.7 | 49.3 | 56.6 | 8.9 | 14.1 | 25.9 | 26.7 | 41.4 | 7.6 | 23.4 | 36.6 | 39.9 | 69.5 | 10.4 | 24.1 | 44.7 | 51.3 | 78.8 |
| Ours 3D | 8.9 | 14.9 | 25.4 | 29.9 | 45.8 | 7.6 | 15.9 | 37.2 | 41.7 | 53.8 | 8.1 | 13.4 | 24.8 | 24.9 | 43.1 | 9.4 | 20.3 | 35.2 | 41.2 | 67.4 | 13.1 | 23.7 | 44.5 | 50.9 | 78.3 |
| Greeting | Phoning | Posing | Purchase | Sitting |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | | | |
| ConvSeq2Seq [21] | 30.4 | 58.6 | 110.0 | 122.8 | 198.9 | 22.4 | 38.4 | 65.0 | 75.4 | 133.2 | 22.4 | 42.1 | 87.3 | 106.1 | 187.3 | 28.4 | 53.8 | 82.1 | 93.1 | 142.4 | 24.7 | 50.0 | 88.6 | 100.4 | 182.3 |
| ConvSeq2Seq 3D [21] | 24.5 | 46.2 | 90.0 | 103.1 | 191.2 | 17.2 | 29.7 | 53.4 | 61.3 | 127.5 | 16.1 | 35.6 | 86.2 | 105.6 | 163.9 | 29.4 | 54.9 | 82.2 | 93.0 | 139.3 | 19.8 | 42.4 | 77.0 | 88.4 | 132.5 |
| FC-GCN [23] | 14.2 | 27.7 | 67.1 | 82.9 | 153.4 | 13.5 | 22.5 | 45.2 | 52.4 | 117.9 | 11.1 | 27.1 | 69.4 | 86.2 | 142.1 | 20.4 | 42.8 | 69.1 | 78.3 | 128.6 | 11.7 | 27.0 | 55.9 | 66.9 | 130.2 |
| FC-GCN 3D [23] | 14.5 | 30.5 | 74.2 | 89.0 | 148.4 | 11.5 | 20.2 | 37.9 | 43.2 | 94.3 | 9.4 | 23.9 | 66.2 | 82.9 | 143.5 | 19.6 | 38.5 | 64.4 | 72.2 | 127.2 | 10.7 | 24.6 | 50.6 | 62.0 | 119.8 |
| Ours | 13.4 | 31.2 | 69.3 | 86.1 | 133.2 | 11.7 | 18.3 | 32.8 | 44.1 | 87.9 | 8.6 | 19.2 | 59.4 | 84.2 | 141.7 | 18.2 | 39.1 | 63.2 | 75.2 | 121.4 | 9.8 | 25.2 | 48.9 | 59.4 | 104.9 |
| Ours 3D | 9.6 | 27.9 | 66.3 | 78.8 | 129.7 | 10.4 | 14.3 | 33.1 | 39.7 | 85.8 | 8.7 | 21.1 | 58.3 | 81.9 | 133.7 | 16.2 | 36.1 | 62.8 | 76.2 | 112.6 | 9.2 | 23.1 | 47.2 | 57.7 | 106.5 |
| Sitting down | Taking photo | Waiting | Walking dog | Walking together |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | | | |
| ConvSeq2Seq [21] | 23.9 | 39.9 | 74.6 | 89.8 | 189.3 | 18.4 | 32.1 | 60.3 | 72.5 | 156.4 | 24.9 | 50.2 | 101.6 | 120.0 | 221.5 | 56.4 | 94.9 | 136.1 | 156.3 | 234.1 | 21.1 | 38.5 | 61.0 | 70.4 | 156.3 |
| ConvSeq2Seq 3D [21] | 17.1 | 34.9 | 66.3 | 77.7 | 177.5 | 14.0 | 27.2 | 53.8 | 66.2 | 151.2 | 17.9 | 36.5 | 74.9 | 90.7 | 205.8 | 40.6 | 74.7 | 116.6 | 138.7 | 210.2 | 15.0 | 29.9 | 54.3 | 65.8 | 149.8 |
| FC-GCN [23] | 11.5 | 25.4 | 53.9 | 65.6 | 156.2 | 8.3 | 15.8 | 38.5 | 49.1 | 124.4 | 12.1 | 27.5 | 67.3 | 85.6 | 178.4 | 35.8 | 63.6 | 106.7 | 126.8 | 198.3 | 11.7 | 23.5 | 46.0 | 53.5 | 113.8 |
| FC-GCN 3D [23] | 11.4 | 27.6 | 56.4 | 67.6 | 163.9 | 6.8 | 15.2 | 38.2 | 49.6 | 125.7 | 9.5 | 22.0 | 57.5 | 73.9 | 157.2 | 32.2 | 58.0 | 102.2 | 122.7 | 185.4 | 8.9 | 18.4 | 35.3 | 44.3 | 102.4 |
| Ours | 10.8 | 24.2 | 49.7 | 61.4 | 146.1 | 6.5 | 14.3 | 32.3 | 46.7 | 117.9 | 9.1 | 21.5 | 50.9 | 68.7 | 144.2 | 26.5 | 54.3 | 94.7 | 119.2 | 168.3 | 10.3 | 20.6 | 34.9 | 45.3 | 98.7 |
| Ours 3D | 9.3 | 21.4 | 46.3 | 59.3 | 144.6 | 7.1 | 13.8 | 29.6 | 44.2 | 116.4 | 9.2 | 17.6 | 47.2 | 71.6 | 127.3 | 25.3 | 56.6 | 87.9 | 99.4 | 143.2 | 8.2 | 18.1 | 31.2 | 39.4 | 79.2 |
+
+Table 2. Comparisons of 3D error on H3.6M dataset. For each method, we use two evaluation strategies: 1) train / test on angle-based samples, and then transfer the predicted angles to 3D position; 2) directly train / test on 3D coordinate sequence.
+
+for short-term prediction (i.e., 10 frames), and $1000ms$ for long-term prediction (i.e., 25 frames). We evaluate the angle error and the 3D error on three benchmarks.
+
+H3.6M: We first present qualitative comparison results on H3.6M dataset, as shown in Figure 4. For each subfigure, from the top to the bottom, we show the ground truth, and the prediction of ConvSeqSeq, FC-GCN, FC-GCN 3D, Ours, and Ours 3D. Note that FC-GCN 3D and Ours 3D are trained on 3D position-based skeleton sequences, while the others are based on angles. The Figure 4 (a) and (b) show the visualization of short-term prediction in "walking the dog" and "greeting" activities, and the Figure 4 (c) provides the long-term prediction results of "smoking" activity. The red rectangular indicates animations with distinct contrasts between the result of different methods, and the red circle or ellipse refer to unreasonable parts with ground truth. We observe that our method outperforms the competitive methods in both long-term and short-term prediction. Furthermore, the prediction of our method is closer to the ground truth than the baselines in almost all scenarios. This result evidences the superiority of our method.
+
+We also further evaluate the angle error between the prediction and ground truth. The Table 1 shows a quantitative comparison for long-term and short-term prediction. We observe that the angle err or obtained by our method is smaller than that of the baseline methods in almost all cases. Such small errors are difficult to be detected by human eyes in human character animation. On the other hand, RNN-based Residual sup. and AGED gradually obtain larger errors due to the inevitable error accumulation problem and the extension of the prediction horizon. ConvSeq2Seq based on adversarial learning has achieved slightly better performance, but 2D convolution is not suitable for the 3D skeleton of non-euclidean human motion in essence. FC-GCN and our method are feedforward and can capture the connective relationship of skeleton sequence. However, FC
+
+GCN ignores the meaningful natural connection and regards human motion as a general data. Our method can not only explicitly learn the weights of natural connections, but also dynamically capture the implicit dependencies of skeleton sequences, thus achieving slightly better performance.
+
+Angle-based representation is ambiguous, because poses with the same angle error may bring about differential distribution in 3D space. Moreover, the Euler angle cannot avoid the problem of gimbal lock. Therefore, to comprehensive verify our model, we also present the predicted 3D error using the following strategies: First, the predicted angles are converted into 3D position-based representation; Second, we directly train and test on 3D skeleton sequences. For example, in Table 2, we convert the predicted angle of FC-GCN into 3D space and then report the 3D error, while FC-GCN 3D directly takes the 3D coordinates of sequence, instead of the angles, as the input and output of the network. We observe that our method consistently surpasses the baselines (i.e., ConvSeq2Seq, FC-GCN) under the conversion from predicted angles to the corresponding position-based result. When the 3D skeleton sequence is directly used to train and test for the competitive methods (i.e., ConvSeq2Seq 3D, FC-GCN 3D) and Ours 3D, the proposed model also obtains realistic generalizations.
+
+CMU and 3DPW MoCap: Similar to the above experimental strategy, we also investigate our method on CMU and 3DPW datasets with angles and 3D position as training samples respectively, as shown in Table 3, Table 4, and Table 5. The experimental results show that the proposed model substantially exceeds the baselines in both short-term and long-term prediction. These results once again confirm the effectiveness of our model for human motion prediction.
+
+Comparison of training details with the state-of-the-art [23]. Previously, FC-GCN achieved the state-of-the-art results. However, FC-GCN is subject to a huge and unconstrained topology, which ignores the natural and meaning-
+
+| millisecond (ms) | Basketball | Basketball signal | Directing traffic | Jumping |
| 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| ConvSeq2Seq [21] | 0.37 | 0.62 | 1.07 | 1.18 | 1.95 | 0.32 | 0.59 | 1.04 | 1.24 | 1.96 | 0.25 | 0.56 | 0.89 | 1.00 | 2.04 | 0.39 | 0.60 | 1.36 | 1.56 | 2.01 |
| FC-GCN [23] | 0.33 | 0.52 | 0.89 | 1.06 | 1.71 | 0.11 | 0.20 | 0.41 | 0.53 | 1.00 | 0.15 | 0.32 | 0.52 | 0.60 | 2.00 | 0.31 | 0.49 | 1.23 | 1.39 | 1.80 |
| Ours | 0.28 | 0.43 | 0.76 | 0.89 | 1.52 | 0.12 | 0.16 | 0.39 | 0.51 | 0.89 | 0.14 | 0.30 | 0.45 | 0.58 | 1.79 | 0.29 | 0.41 | 0.91 | 1.17 | 1.77 |
| Running | Soccer | Walking | Wash window |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| ConvSeq2Seq [21] | 0.28 | 0.41 | 0.52 | 0.57 | 0.67 | 0.26 | 0.44 | 0.75 | 0.87 | 1.56 | 0.35 | 0.44 | 0.45 | 0.50 | 0.78 | 0.30 | 0.47 | 0.80 | 1.01 | 1.39 |
| FC-GCN [23] | 0.33 | 0.55 | 0.73 | 0.74 | 0.95 | 0.18 | 0.29 | 0.61 | 0.71 | 1.40 | 0.33 | 0.45 | 0.49 | 0.53 | 0.61 | 0.22 | 0.33 | 0.57 | 0.75 | 1.20 |
| Ours | 0.31 | 0.39 | 0.51 | 0.68 | 0.87 | 0.17 | 0.25 | 0.53 | 0.66 | 1.29 | 0.29 | 0.41 | 0.54 | 0.61 | 0.64 | 0.20 | 0.31 | 0.54 | 0.68 | 1.04 |
+
+Table 3. Quantitative comparisons of angle error for short-term and long-term prediction on 8 activities of the CMU MoCap dataset.
+
+| millisecond (ms) | Basketball | Basketball signal | Directing traffic | Jumping |
| 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| ConvSeq2Seq 3D [21] | 16.7 | 30.5 | 53.8 | 64.3 | 91.5 | 8.4 | 16.2 | 30.8 | 37.8 | 76.5 | 10.6 | 20.3 | 38.7 | 48.4 | 115.5 | 22.4 | 44.0 | 87.5 | 106.3 | 162.6 |
| FC-GCN 3D [23] | 14.0 | 25.4 | 49.6 | 61.4 | 106.1 | 3.5 | 6.1 | 11.7 | 15.2 | 53.9 | 7.4 | 15.1 | 31.7 | 42.2 | 152.4 | 16.9 | 34.4 | 76.3 | 96.8 | 164.6 |
| Ours 3D | 13.1 | 22.0 | 37.2 | 55.8 | 97.7 | 3.4 | 6.2 | 11.2 | 13.8 | 47.3 | 6.8 | 16.3 | 27.9 | 38.9 | 131.8 | 13.2 | 32.7 | 65.1 | 91.3 | 153.5 |
| Running | Soccer | Walking | Wash window |
| millisecond (ms) | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| ConvSeq2Seq 3D [21] | 14.3 | 16.3 | 18.0 | 20.2 | 27.5 | 12.1 | 21.8 | 41.9 | 52.9 | 94.6 | 7.6 | 12.5 | 23.0 | 27.5 | 49.8 | 8.2 | 15.9 | 32.1 | 39.9 | 58.9 |
| FC-GCN 3D [23] | 25.5 | 36.7 | 39.3 | 39.9 | 58.2 | 11.3 | 21.5 | 44.2 | 55.8 | 117.5 | 7.7 | 11.8 | 19.4 | 23.1 | 40.2 | 5.9 | 11.9 | 30.3 | 40.0 | 79.3 |
| Ours 3D | 15.2 | 19.7 | 23.3 | 35.8 | 47.4 | 10.3 | 21.1 | 42.7 | 50.9 | 91.4 | 7.1 | 10.4 | 17.8 | 20.7 | 37.5 | 5.8 | 12.3 | 27.8 | 38.2 | 56.6 |
+
+Table 4. Quantitative comparisons of 3D error for short-term and long-term prediction on CMU MoCap dataset. In this case, the network directly take 3D-position based sequence as the input and output.
+
+| millisecond (ms) | 200 | 400 | 600 | 800 | 1000 |
| ConvSeq2Seq [21] | 1.24 | 1.85 | 2.13 | 2.23 | 2.26 |
| FC-GCN [23] | 0.64 | 0.95 | 1.12 | 1.22 | 1.27 |
| Ours | 0.57 | 0.72 | 1.07 | 1.18 | 1.25 |
| ConvSeq2Seq 3D [21] | 71.6 | 124.9 | 155.4 | 174.7 | 187.5 |
| FC-GCN 3D [23] | 35.6 | 67.8 | 90.6 | 106.9 | 117.8 |
| Ours 3D | 33.9 | 57.4 | 84.6 | 95.2 | 109.1 |
+
+Table 5. Quantitative comparisons of mean angle error and mean 3D error on whole testing set of 3DPW MoCap dataset.
+
+ | parameters | training time (minute / epoch) | testing time (milliseconds / 25 frames) |
| FC-GCN [23] | ≈ 2.6 M | ≈ 4.1 min | ≈ 2.9 ms |
| Ours | ≈ 2.1 M | ≈ 3.5 min | ≈ 2.4 ms |
+
+ful dependencies between human joints. Moreover, such a complicated graph structure also increase the model size. Therefore, we compare the training details (parameter number, training time, and testing time) between FC-GCN and our method with angle-based H3.6M dataset on NVIDIA 1070TI GPU. Our method converges at around 40 epoch, while FC-GCN is 50. Other results are shown in Table 6.
+
+# 4.4. Ablation Analysis
+
+We have run various ablation studies on H3.6M dataset to further explore the impact of the proposed modules. Specifically, we report the impact of (1) residual connection and (2) adversarial discriminator. In this paper, we propose the connective graph $A_{p}$ and global graph $Q$ to learn the dynamic relationships of skeleton sequence. Therefore, we also investigate using only (3) $A_{p}$ , $Q$ or their combination respectively. The above results are shown in Table 7.
+
+Our discriminator distinguishes the long sequence that concatenates the input sequence and the prediction or ground truth, as shown in Table 8. Therefore, we also analyze the influence of (4) different inputs of discriminator: (a) short sequence (25 frames): prediction and ground truth; (b) long sequence (50 frames): concatenation of input sequence and predicted or ground truth. The ablation studies evidence that the proposed components indeed benefit to the
+
+Table 6. Training details comparison with the state-of-the-art.
+
+| resi | adv | mean angle error | mean 3D error |
| 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| yes | | 0.27 | 0.39 | 0.49 | 0.53 | 0.92 | 11.4 | 24.9 | 57.2 | 71.2 | 87.9 |
| yes | 0.35 | 0.64 | 0.69 | 0.98 | 1.45 | 14.2 | 35.3 | 76.2 | 81.3 | 132.1 |
| yes | yes | 0.24 | 0.37 | 0.45 | 0.52 | 0.89 | 10.4 | 22.2 | 56.7 | 64.2 | 81.3 |
| connective graph - Ap | global graph - Q | | | | | | | | | | |
| yes | | 0.31 | 0.43 | 0.57 | 0.64 | 0.96 | 14.2 | 29.4 | 67.8 | 71.2 | 83.8 |
| yes | 0.28 | 0.41 | 0.53 | 0.62 | 0.83 | 12.3 | 24.2 | 59.3 | 67.3 | 85.9 |
| yes | yes | 0.24 | 0.37 | 0.45 | 0.52 | 0.89 | 10.4 | 22.2 | 56.7 | 64.2 | 81.3 |
+
+Table 7. Top: Impact of residual connection and adversarial leaning; Bottom: Results on different graph construction.
+
+ | mean angle error | mean 3D error |
| 80 | 160 | 320 | 400 | 1000 | 80 | 160 | 320 | 400 | 1000 |
| (a) short sequence | 0.50 | 0.64 | 0.71 | 0.82 | 0.99 | 11.2 | 24.1 | 57.8 | 68.7 | 89.3 |
| (b) long sequence | 0.24 | 0.37 | 0.45 | 0.52 | 0.89 | 10.4 | 22.2 | 56.7 | 64.2 | 81.3 |
+
+Table 8. Influence of the different input of our discriminator.
+
+network to obtain more accurate predictions.
+
+# 5. Conclusion
+
+In this paper, we have proposed a novel GCN approach to effectively forecast the future poses from given historical sequence. We parameterize the human structure through the learnable adjacency matrix and global graph. With the optimization process, the proposed model can not only capture the strength of the natural connection, but also adaptively extract the connectivities of geometrically separated joints. This data-driven method improves the flexibility of graph construction and ensures stable training, which is more suitable for human motion modeling. The final model exceeds current state-of-the-art performance on several large-scale human motion prediction benchmarks. In our future work, we will consider further exploration of combining bones and joints information.
+
+# Acknowledgements
+
+This work was supported by the National Natural Science Foundation of China (NO. 61772272) and the Project of Science and Technology of Jiangsu Province of China under Grant BE2017031.
+
+# References
+
+[1] CMU Graphics Lab: Carnegie-Mellon Motion Capture (Mocap) Database, http://mocap.cs.cmu.edu, 2003.
+[2] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In ICML, pages 214-223, 2017.
+[3] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. CoRR, abs/1803.01271, 2018.
+[4] Emad Barsoum, John Kender, and Zicheng Liu. Hpgan: Probabilistic 3d human motion prediction via gan. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 1499-149909, 2017.
+[5] Aleksandar Bojchevski, Oleksandr Shchur, Daniel Zügner, and Stephan Gunnemann. Netgan: Generating graphs via random walks. In ICML, 2018.
+[6] Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013.
+[7] Judith Butepage, Michael J. Black, Danica Kragic, and Hedvig Kjellstrom. Deep representation learning for human motion prediction and classification. In CVPR, pages 1591-1599, 2017.
+[8] Hsu-kuang Chiu, Ehsan Adeli, Borui Wang, De-An Huang, and Juan Carlos Niebles. Action-agnostic human pose forecasting. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1423–1432. IEEE, 2019.
+[9] Qiongjie Cui, Beijia Chen, and Huaijiang Sun. Nonlocal low-rank regularization for human motion recovery based on similarity analysis. Information Sciences, 2019.
+[10] Qiongjie Cui, Huaijiang Sun, Yupeng Li, and Yue Kong. A Deep Bi-directional Attention Network for Human Motion Recovery. In IJCAI, 2019.
+[11] Katerina Fragkiadaki, Sergey Levine, Panna Felsen, and Jitendra Malik. Recurrent network models for human dynamics. In Proceedings of the IEEE International Conference on Computer Vision, pages 4346-4354, 2015.
+[12] Pallabi Ghosh, Yi Yao, Larry S Davis, and Ajay Divakaran. Stacked spatio-temporal graph convolutional networks for action segmentation. arXiv preprint arXiv:1811.10575, 2018.
+[13] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
+[14] Liang-Yan Gui, Yu-Xiong Wang, Xiaodan Liang, and José M. F. Moura. Adversarial geometry-aware human motion prediction. In ECCV, 2018.
+[15] Liang-Yan Gui, Yu-Xiong Wang, Deva Ramanan, and José M. F. Moura. Few-shot human motion prediction via meta-learning. In ECCV, 2018.
+[16] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C. Courville. Improved training of wasserstein gans. In NIPS, 2017.
+
+[17] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3.6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325-1339, 2013.
+[18] Ashesh Jain, Amir Roshan Zamir, Silvio Savarese, and Ashutosh Saxena. Structural-RNN: Deep Learning on Spatio-Temporal Graphs. In CVPR, pages 5308-5317, 2015.
+[19] Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In International Conference on Learning Representations (ICLR), 2015.
+[20] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
+[21] Chen Li, Zhen Zhang, Wee Sun Lee, and Gim Hee Lee. Convolutional sequence to sequence model for human dynamics. In CVPR, 2018.
+[22] Zhenguang Liu, Shuang Wu, Shuyuan Jin, Minghua Tang, Shijian Lu, Richard Zimmermann, and Li Chen Cheng. Towards Natural and Accurate Future Motion Prediction of Humans and Animals. In CVPR, 2019.
+[23] Wei Mao, Miaomiao Liu, Mathieu Salzmann, and Hongdong Li. Learning trajectory dependencies for human motion prediction. 2019.
+[24] Julieta Martinez, Michael J. Black, and Javier Romero. On human motion prediction using recurrent neural networks. In CVPR, 2017.
+[25] Alejandro Hernandez Ruiz, Juergen Gall, and Francesc Moreno-Noguer. Human motion prediction via spatiotemporal inpainting. arXiv preprint arXiv:1812.05478, 2018.
+[26] Lei Shi, Yifan Zhang, Jian Cheng, and Hanqing Lu. Two-stream adaptive graph convolutional networks for skeleton-based action recognition. In CVPR, 2019.
+[27] Yongyi Tang, Lin Ma, Wei Liu, and Wei-Shi Zheng. Long-term human motion prediction by modeling motion context and enhancing motion dynamics. In *IJCAI*, 2018.
+[28] Timo von Marcard, Roberto Henschel, Michael J. Black, Bodo Rosenhahn, and Gerard Pons-Moll. Recovering accurate 3d human pose in the wild using imus and a moving camera. In ECCV, 2018.
+[29] Timo von Marcard, Roberto Henschel, Michael J Black, Bodo Rosenhahn, and Gerard Pons-Moll. Recovering accurate 3d human pose in the wild using imus and a moving camera. In ECCV, 2018.
+[30] Huikai Wu, Junge Zhang, and Kaiqi Huang. Point cloud super resolution with adversarial residual graph networks. ArXiv, abs/1908.02111, 2019.
+[31] Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In AAAI, 2018.
+[32] Jiaxuan You, Rex Ying, Xiang Ren, William L. Hamilton, and Jure Leskovec. Graphrn: Generating realistic graphs with deep auto-regressive models. In ICML, 2018.
+[33] Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph neural networks: A review of methods and applications. ArXiv, abs/1812.08434, 2018.
\ No newline at end of file
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/images.zip b/learningdynamicrelationshipsfor3dhumanmotionprediction/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a1c62c0ce15c1f45892307cefd4ff28e5da23b09
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1f50808333295ecd33a8c62f1355c2b557f7c4fc44b1b2a6116b3f040ff98cc
+size 1056560
diff --git a/learningdynamicrelationshipsfor3dhumanmotionprediction/layout.json b/learningdynamicrelationshipsfor3dhumanmotionprediction/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ce81dad570e5871cd5661c303028a9eaf66d68ed
--- /dev/null
+++ b/learningdynamicrelationshipsfor3dhumanmotionprediction/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:229702465a8991fe86dce26d1cfda10f74e8de5e12ebadd0e6c4e3a7d14269a9
+size 385556
diff --git a/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_content_list.json b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d83f96b58f753e06f1ae42df82d6718a27af3b0
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8db03c403d7b4ea82b5ed2ee87da2c87772bfb2edd8d5f1c42ea8913461f5189
+size 78130
diff --git a/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_model.json b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..99e14f579665f79c2a98b283f2378da1338cd9b8
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a7c1006a80a0c743b20071c1946d0c6ffc3c2b4d495c41960b78ca484a55042
+size 96975
diff --git a/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_origin.pdf b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e134641e7dc0a1fc0e830b5c936f99e0704aeff2
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/22a039c8-329a-42b4-bf6a-2810130b7c0e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ecebb4167dcdf5cdca9f7d99d71dee8dcd45f1b8ab3311cf8b23cef3aade45c0
+size 1690347
diff --git a/learningdynamicroutingforsemanticsegmentation/full.md b/learningdynamicroutingforsemanticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e90c3094ec591989a25a7c19bc2d3e33bb0017b7
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/full.md
@@ -0,0 +1,342 @@
+# Learning Dynamic Routing for Semantic Segmentation
+
+Yanwei Li $^{1,2}$ , Lin Song $^{3}$ , Yukang Chen $^{1,2}$ , Zeming Li $^{4}$ , Xiangyu Zhang $^{4}$ , Xingang Wang $^{1}$ , Jian Sun $^{4}$
+
+$^{1}$ Institute of Automation, Chinese Academy of Sciences
+
+$^{2}$ University of Chinese Academy of Sciences
+
+$^{3}$ Xi'an Jiaotong University $^{4}$ Megvii Technology
+
+# Abstract
+
+Recently, numerous handcrafted and searched networks have been applied for semantic segmentation. However, previous works intend to handle inputs with various scales in pre-defined static architectures, such as FCN, U-Net, and DeepLab series. This paper studies a conceptually new method to alleviate the scale variance in semantic representation, named dynamic routing. The proposed framework generates data-dependent routes, adapting to the scale distribution of each image. To this end, a differentiable gating function, called soft conditional gate, is proposed to select scale transform paths on the fly. In addition, the computational cost can be further reduced in an end-to-end manner by giving budget constraints to the gating function. We further relax the network level routing space to support multipath propagations and skip-connections in each forward, bringing substantial network capacity. To demonstrate the superiority of the dynamic property, we compare with several static architectures, which can be modeled as special cases in the routing space. Extensive experiments are conducted on Cityscapes and PASCAL VOC 2012 to illustrate the effectiveness of the dynamic framework. Code is available at https://github.com/yanwei-li/DynamicRouting.
+
+# 1. Introduction
+
+Semantic segmentation, which aims at assigning each pixel with semantic categories, is one of the most fundamental yet challenging tasks in the computer vision field. One of the problems in semantic segmentation comes from the huge scale variance among inputs, e.g., the tiny object instances and the picture-filled background stuff. Moreover, the large distribution variance brings difficulties to feature representation as well as relationship modeling. Traditional methods try to solve this problem by well-designed network architectures. For instance, multi-resolution fu
+
+
+(a) Network architecture of large-scale input
+
+
+
+
+(b) Network architecture of small-scale input
+
+
+
+
+(c) Network architecture of mixed-scale input
+
+
+Figure 1. Given inputs with different scale distributions, the proposed dynamic routing will choose corresponding forward paths. For example, the architecture of large-scale instances 1(a) could ignore low-level features. The small-scale objects 1(b) may depend on low-level details as well as higher resolution. And the mixed-scale things 1(c) would enjoy both connection patterns. Red lines in diagrams denote the difference among them.
+
+sion [24, 28, 1, 32, 19] is adopted for detail-oriented feature maps, and long-range dependencies are captured for global context modeling [43, 35, 44, 6, 31]. With the development of Neural Architecture Search (NAS), there are several works delving in searching effective architectures for semantic segmentation automatically [3, 22, 25].
+
+However, both classic human-designed and NAS-based networks intend to represent all of the instances in a single network architecture, which lacks the adaptability to diverse scale distributions in the real-world environment. An example is presented in Fig. 1, where the scale of instances varies a lot. To this end, a more customizable network is needed to accommodate the scale variance of each image.
+
+In this paper, we propose a framework that is conceptu
+
+ally novel for semantic segmentation, called dynamic routing. In particular, the dynamic routing generates data-dependent forward paths during inference, which means the specific network architecture varies with inputs. With this method, instances (or backgrounds) with different scales could be allocated to corresponding resolution stages for customized feature transformation. As illustrated in Fig. 1, the input images with diverse scale distributions will choose different routes for feature transformation. There are some researches on dynamic networks for efficient object recognition via dropping blocks [38, 17, 33, 36] or pruning channels [39, 20]. Different from them, this work focuses on semantic representation and intends to alleviate scale variance as well as improve network efficiency.
+
+The routing space in traditional dynamic approaches for image classification [17, 33, 36] are usually limited to a resolution declining pipeline, which would not suffice for semantic segmentation. We draw inspiration from the search space of Auto-DeepLab [22] and develop a new routing space for better capacity, which contains several independent cells. Specifically, different from Auto-DeepLab, multi-path propagations and skip-connections, which are proved to be quiet essential in semantic segmentation [28, 6], are enabled in each forward during inference. Therefore, several classic network architectures can be included as special cases for comparisons (Fig. 3). In terms of the dynamic routing, a data-dependent routing gate, called soft conditional gate, is designed to select each path according to the input image. With the proposed routing gate, each basic cell, as well as the resolution transformation path, can be taken into consideration individually. Moreover, the proposed routing gate can be formulated into a differentiable module for end-to-end optimization. Consequently, given limited computational budgets (e.g., FLOPs), cells with little contribution will be dropped on the fly.
+
+The overall approach, named dynamic routing, can be easily instantiated for semantic segmentation. To elaborate on its superiority over the fixed architectures in both performance and efficiency, we give extensive ablation studies and detailed analyses in Sec. 4.3. Experimental results are further reported on two well-known datasets, namely Cityscapes [9] and PASCAL VOC 2012 [11]. With the simple scale transformation modules, the proposed dynamic routing achieves comparable results with the state-of-the-art methods but consumes much fewer resources.
+
+# 2. Related Works
+
+Traditional semantic segmentation researches mainly focused on designing subtle network architectures by human experiences [24, 28, 1, 43, 6]. With the development of NAS, there are several methods attempting to search for a static network automatically [3, 22, 25]. Unlike previous works, the dynamic routing is proposed to select the most
+
+suitable scale transform according to the input, which has seldom been explored. Herein, we first retrospect hand-designed architectures for semantic segmentation. Then we give an introduction to NAS-based approaches. Finally, previous developments of dynamic networks are reviewed.
+
+# 2.1. Handcrafted Architectures
+
+Handcrafted architectures have been well studied in recent years. There are several researches delving in network design for semantic segmentation, e.g., FCN [24], U-Net [28], Conv-Deconv [26], SegNet [1]. Based on the well-designed FCN [24] and U-shape architecture [28], numerous works have been proposed to model global context by capturing larger receptive field [43, 4, 5, 6, 41] or establishing pixel-wise relationships [44, 18, 12, 31]. Due to the high resource consumption of dense prediction, some lightweight architectures have been proposed for the sake of efficiency, including ICNet [42] and BiSeNet [40]. Overall, handcrafted architectures aim at utilizing multi-scale features from different stages in a static network, rather than adapting to input dynamically.
+
+# 2.2. NAS-based Approaches
+
+Recently, Neural Architecture Search (NAS) has been widely used for automatic network architecture design [45, 27, 23, 2, 13, 7]. When it comes to the specific domain, there are several approaches trying to search for effective architectures that are more suitable for semantic segmentation. Specifically, Chen et.al. [3] searches for multi-scale module to replace ASPP [5] block. Furthermore, Nekrasov et.al. [25] studies the routing type of auxiliary cells in the decoder using the NAS-based method. More recently, Auto-DeepLab [22] is proposed to search for a single route from the dense-connected search space. Different from the NAS-based approaches, which search for a single architecture and then retrain it, the proposed dynamic routing generates forward paths on the fly without searching.
+
+# 2.3. Dynamic Networks
+
+Dynamic networks, adjusting the network architecture to the corresponding input, have been recently studied in the computer vision domain. Traditional methods mainly focus on image classification by dropping blocks [38, 17, 33, 36] or pruning channels [39, 20] for efficient inference. For example, an early-existing strategy is adopted in MSDNet [17] for resource-efficient object recognition, which classifies easier inputs and gives output in earlier stages. And SkipNet [36] attempts to skip convolutional blocks using an RL-based gating network. However, dynamic routing has seldom been explored for scale transformation, especially in semantic segmentation. To utilize the dynamic property, an end-to-end dynamic routing framework is proposed in this paper to alleviate the scale variance among inputs.
+
+
+Figure 2. The proposed dynamic routing framework for semantic segmentation. Left: The routing space with layer $L$ and max down sampling rate 32. The beginning STEM and the final Upsample block are fixed for stability. Dashed lines denote alternative paths for dynamic routing. Right: Dynamic routing process at the cell level. Given the summed input from the former layer, we first generate activating weights using the Soft Conditional Gate. Paths with corresponding weights above zero are marked as activated, which would be selected for feature transformation. More details about the network are elaborated in Sec. 3.4. Best viewed in color.
+
+# 3. Learning Dynamic Routing
+
+Compared with static network architectures, dynamic routing has the superiority in network capacity and higher performance with the budgeted resource consumption. In this section, we first introduce the designed routing space. And then, the dynamic routing framework and the constraint mechanism are elaborated. The architecture details will be given at the end of this section.
+
+# 3.1. Routing Space
+
+To release the potential of dynamic routing, we provide fully-connected paths between adjacent layers with some prior constraints, e.g., the up-sampling or down-sampling stride between cells, as illustrated in Fig. 2. Specifically, following the common practices in the network design, the beginning of the network is a fixed 3-layer 'STEM' block, which reduces the resolution to $1/4$ scale. After that, a space with $L$ layers is designed for dynamic routing, called routing space. In the routing space, the scaling factor between adjacent cells is restricted to 2, which is widely adopted in ResNet-based methods. Thus, the minimum scale is set to $1/32$ . With these constraints, the number of candidates in each layer is up to 4. And there are 3 paths for scale transformation in each candidate, namely up-sampling, keeping resolution, and down-sampling. Inside each candidate, basic cell is designed for feature aggregation, while a fundamental gate is proposed for path selection, as presented in Fig. 2. The layer-by-layer up-sampling module is fixed at the end of the network to generate predictions. More details about the dynamic routing process are explained in Sec. 3.2.
+
+Different from Auto-DeepLab [22], where only one specific path in each node is selected in the inference stage, we further relax the routing space to support multi-path routes and skip-connections in each candidate. With the more generic space, a lot of popular architectures can be formulated as special cases, as visualized in Fig. 3. Further quantitative comparisons are given in Sec. 4.3 to demonstrate the superiority of the dynamic routing.
+
+# 3.2. Routing Process
+
+Given the routing space with several individual nodes, we adopt a basic cell and a corresponding gate inside each node to aggregate multi-scale features and choose routing paths, respectively. This process is briefly illustrated in Fig. 2. To be more specific, we first aggregate three inputs with different spatial sizes (namely, $s/2$ , $s$ , and $2s$ ) from layer $l-1$ , denoted as $\mathbf{Y}_{s/2}^{l-1}$ , $\mathbf{Y}_s^{l-1}$ , and $\mathbf{Y}_{2s}^{l-1}$ , respectively. Thus, the input $\mathbf{X}_s^l$ of the $l$ -th layer can be formulated as $\mathbf{X}_s^l = \mathbf{Y}_{s/2}^{l-1} + \mathbf{Y}_s^l + \mathbf{Y}_{2s}^{l-1}$ . Then the aggregated input will be utilized for feature transformation inside the Cell and Gate.
+
+# 3.2.1 Cell Operation
+
+With the input $\mathbf{X}_s^l\in \mathbb{R}^{B\times C\times W\times H}$ , we adopt widely-used stacks of separate convolutions as well as identity mapping [46, 23, 22] in each cell without bells-and-whistles. In particular, the hidden state $\mathbf{H}_s^l\in \mathbb{R}^{B\times C\times W\times H}$ can be represented as
+
+$$
+\mathbf {H} _ {s} ^ {l} = \sum_ {O ^ {i} \in \mathcal {O}} O ^ {i} \left(\mathbf {X} _ {s} ^ {l}\right) \tag {1}
+$$
+
+where $\mathcal{O}$ indicates the operation set, including $\mathrm{SepConv}3\times 3$ and identity mapping. Here, operations inside each cell are adopted for fundamental feature aggregation. Then the generated feature map $\mathbf{H}_s^l$ will be transformed to different scales according to the activating factor $\alpha_{s}^{l}$ . This process will be elaborated in the following section. Moreover, different cell components are compared in Sec. 4.4.1.
+
+# 3.2.2 Soft Conditional Gate
+
+The routing probability of each path is generated from the Gate function, as presented in the right diagram of Fig. 2. In more detail, we adopt light-weighted convolutional operations in the gate to learn the data-dependent vector $\mathbf{G}_s^l$ .
+
+$$
+\mathbf {G} _ {s} ^ {l} = \mathcal {F} \left(\omega_ {s, 2} ^ {l}, \mathcal {G} \left(\sigma \left(\mathcal {N} \left(\mathcal {F} \left(\omega_ {s, 1} ^ {l}, \mathbf {X} _ {s} ^ {l}\right)\right)\right)\right)\right) + \beta_ {s} ^ {l} \tag {2}
+$$
+
+
+(a) Network architecture modeled from FCN-32s [24]
+
+
+(b) Network architecture modeled from U-Net [28]
+
+
+(c) Network architecture modeled from DeepLabV3 [5]
+
+
+(d) Network architecture modeled from HRNetV2 [32]
+
+
+(e) Network architecture modeled from Auto-DeepLab [22]
+Figure 3. Sampled architectures from previous works. With the designed routing space, several classic architectures can be formulated in similar forms, e.g., FCN-32s 3(a), U-Net 3(b), DeepLabV3 3(c), HRNetV2 3(d), and Auto-DeepLab 3(e).
+
+where $\mathcal{F}(\cdot ,\cdot)$ denotes a convolutional function, $\sigma$ indicates ReLU activation, $\mathcal{N}$ and $\mathcal{G}$ represent batch normalization and global average pooling respectively. Both $\omega$ and $\beta$ are convolutional parameters. Different from traditional RL-based methods [36, 38, 34], which adopt policy gradient to update the agent for discrete path selection, we propose the soft conditional gate for differentiable routing. To this end, with the feature vector $\mathbf{G}_s^l\in \mathbb{R}^{B\times 3\times 1\times 1}$ , an activation function $\delta$ is designed as
+
+$$
+\delta (\cdot) = \max (0, \operatorname {T a n h} (\cdot)) \tag {3}
+$$
+
+Therefore, the activating factor $\alpha_{s}^{l}\in \mathbb{R}^{B\times 3\times 1\times 1}$ can be calculated by $\delta (\mathbf{G}_s^l)$ , where $\alpha_{s}^{l}$ belongs to [0,1). When
+
+$\alpha_{s \to j}^{l} = 0$ , the routing path from scale $s$ to $j$ will be marked as closed. And all of the paths with $\alpha_{s \to j}^{l} > 0$ will be reserved, enabling multi-path propagation. To be more specific, the $b$ -th input in batch $B$ would generate corresponding $\alpha_{b,s \to j}^{l} \in \mathbb{R}^{1 \times 1 \times 1 \times 1}$ , which means the routing paths varies with inputs, or so called data-dependent. In this way, each path can be taken into consideration individually, rather than only choose the relative important one for propagation [23, 37, 22]. Furthermore, different activation functions are investigated in Sec 4.4.2.
+
+With the proposed activation function $\delta$ , the transform from scale $s$ to $j \in \{s/2, s, 2s\}$ in the training process can be formulated as
+
+$$
+\mathbf {Y} _ {j} ^ {l} = \alpha_ {s \rightarrow j} ^ {l} \mathcal {T} _ {s \rightarrow j} \left(\mathbf {H} _ {s} ^ {l}\right) \tag {4}
+$$
+
+where $\mathcal{T}_{s\rightarrow j}$ denotes the scale transformation (including upsampling, keeping resolution, and down-sampling) from scale $s$ to $j$ . Therefore, with the activating factor $\alpha_{s}^{l}$ , the parameters in $\mathbf{G}_s^l$ will be optimized during back-propagation as long as one path is preserved (namely, $\sum_{j}\alpha_{s\rightarrow j}^{l} > 0$ ).
+
+In the inference stage, if all of the paths are marked as closed, the operations in Cell will be dropped to save computational footprints. Recall from Eq. 1, this process is summarized as
+
+$$
+\mathbf {H} _ {s} ^ {l} = \left\{\begin{array}{l l}\mathbf {X} _ {s} ^ {l}&\sum_ {j} \alpha_ {s \rightarrow j} ^ {l} = 0\\\sum_ {O ^ {i} \in \mathcal {O}} O ^ {i} \left(\mathbf {X} _ {s} ^ {l}\right)&\sum_ {j} \alpha_ {s \rightarrow j} ^ {l} > 0\end{array}\right. \tag {5}
+$$
+
+$$
+\mathbf {Y} _ {j} ^ {l} = \left\{\begin{array}{l l}0&\sum_ {j} \alpha_ {s \rightarrow j} ^ {l} = 0, j \neq s\\\mathbf {H} _ {s} ^ {l}&\sum_ {j} \alpha_ {s \rightarrow j} ^ {l} = 0, j = s\\\alpha_ {s \rightarrow j} ^ {l} \mathcal {T} _ {s \rightarrow j} (\mathbf {H} _ {s} ^ {l})&\sum_ {j} \alpha_ {s \rightarrow j} ^ {l} > 0\end{array}\right. \tag {6}
+$$
+
+# 3.3. Budget Constraint
+
+Considering limited computational resources in the real-world scene, we take the budget constraint into consideration for efficient dynamic routing. Let us denote $\mathcal{C}$ as the computational cost associated to the predefined operation, e.g., FLOPs. Recall from Eq. 1, 2, and 4, we formulate the expected cost inside the node in $s$ -th scale and $l$ -th layer as
+
+$$
+\begin{array}{l} \mathcal {C} \left(\operatorname {N o d e} _ {s} ^ {l}\right) = \mathcal {C} \left(\operatorname {C e l l} _ {s} ^ {l}\right) + \mathcal {C} \left(\operatorname {G a t e} _ {s} ^ {l}\right) + \mathcal {C} \left(\operatorname {T r a n s} _ {s} ^ {l}\right) \\ = \max \left(\alpha_ {s} ^ {l}\right) \sum_ {O ^ {i} \in \mathcal {O}} \mathcal {C} \left(O ^ {i}\right) + \mathcal {C} \left(\operatorname {G a t e} _ {s} ^ {l}\right) \\ + \sum_ {j} \alpha_ {s \rightarrow j} ^ {l} \mathcal {C} \left(\mathcal {T} _ {s \rightarrow j}\right) \tag {7} \\ \end{array}
+$$
+
+where $\mathrm{Cell}_s^l$ , $\mathrm{Gate}_s^l$ , and $\mathrm{Trans}_s^l$ indicates the functional operation inside Cell, Gate, and Scale Transform, respectively. Going one step further, the expected cost of the whole routing space could be calculated by
+
+$$
+\mathcal {C} (\text {S p a c e}) = \sum_ {l \leq L} \sum_ {s \leq 1 / 4} \mathcal {C} \left(\operatorname {N o d e} _ {s} ^ {l}\right) \tag {8}
+$$
+
+Then we formulate the expected resource cost $\mathcal{C}(\mathrm{Space})$ into loss function $\mathcal{L}_{\mathrm{C}}$ for the end-to-end optimization:
+
+$$
+\mathcal {L} _ {\mathrm {C}} = \left(\mathcal {C} (\text {S p a c e}) / \mathrm {C} - \mu\right) ^ {2} \tag {9}
+$$
+
+where $C$ represents the real resource cost of the whole routing space, and $\mu \in [0,1]$ indicates the designed attenuation factor. With different $\mu$ , the selected routes in each propagation would be adaptively restricted to corresponding budgets. The network performance under different budget constraints will be discussed in Sec. 4.4.3.
+
+Overall, the network weights, as well as the soft conditional gates, can be optimized with a joint loss function $\mathcal{L}$ in a unified framework.
+
+$$
+\mathcal {L} = \lambda_ {1} \mathcal {L} _ {\mathrm {N}} + \lambda_ {2} \mathcal {L} _ {\mathrm {C}} \tag {10}
+$$
+
+where $\mathcal{L}_{\mathrm{N}}$ and $\mathcal{L}_{\mathrm{C}}$ denotes loss function of the whole network and resource cost, respectively. $\lambda_{1}$ and $\lambda_{2}$ are utilized to balance the optimization process of network prediction and resource cost expectation, respectively.
+
+# 3.4. Architecture Details
+
+From a macro perspective, we set the depth of routing space to 16 or 33 which is identical with that in widely-used ResNet-50 and ResNet-101 [16], namely the total layer $L = 16$ or 33 in Fig. 2. This setting brings convenience to compare with the ResNet-based networks, which could be formulated using the proposed routing space directly.
+
+When it comes to micro nodes in the network, we adopt three $\operatorname{SepConv}3 \times 3$ in the 'STEM' block, where the number of filters is 64 for all of the convolutions. A stride $2\operatorname{Conv}1 \times 1$ is used for all of the $s \to s/2$ paths, both to reduce feature resolution and double the number of filters. And $\operatorname{Conv}1 \times 1$ followed by bilinear up-sampling is adopted for all of the $s \to 2s$ connections, both to increase spatial resolution as well as halve the number of filters.
+
+Moreover, a naive decoder is designed to fuse features for final predictions, which is represented as gray nodes at the end of the network in Fig. 2. Specifically, a $\mathrm{Conv}1\times 1$ combined with bilinear up-sampling is used to fuse features from different scales in the decoder. And the prediction in the scale $1 / 4$ is up-sampled by 4 to generate the final result. The weights in convolutions are initialized with normal distribution [15] while the bias $\beta_{s}^{l}$ in Eq. 2 is initialized to a constant value 1.5 experimentally. When given a budget constraint, we down-sample the input $\mathbf{X}_s^l$ in Eq. 2 by 4 times to reduce resource consumption of the gating function. Otherwise, the resolution of input $\mathbf{X}_s^l$ is kept unchanged.
+
+# 4. Experiments
+
+In this section, we first introduce the datasets and implementation details of the proposed dynamic routing. Then we conduct abundant ablation studies on the Cityscapes dataset [9]. And detailed analyses will be given to reveal the effect of each component. Finally, comparisons with several benchmarks on the Cityscapes [9] and PASCAL VOC 2012 dataset [11] will be reported to illustrate the effectiveness and the efficiency of the proposed method.
+
+# 4.1. Datasets
+
+Cityscapes: The Cityscapes [9] is a widely used dataset for urban scene understanding, which contains 19 classes for evaluation. The dataset involves 5000 fine annotations with size $1024 \times 2048$ , which can be divided into 2975, 500, and 1525 images for training, validation, and testing, respectively. It has another 20k coarse annotations for training, which are not used in our experiments.
+
+PASCAL VOC: We carry out experiments on the PASCAL VOC 2012 dataset [11] that includes 20 object categories and one background class. The original dataset contains 1464, 1449, and 1456 images for training, validation, and testing, respectively. Here, we use the augmented data provided by [14], resulting in 10582 images for training.
+
+# 4.2. Implementation Details
+
+Herein, optimization details are reported for convenient implementation. For better performance, the factor $\lambda_{1}$ in Eq. 10 is set to 1.0. And $\lambda_{2}$ is set according to different budget constraints in Sec. 4.4.3. The network optimization is conducted using SGD with weight decay $1e^{-4}$ and momentum 0.9. Similar to [5, 40, 31], we adopt the 'poly' schedule where the initial rate is multiplied by $(1 - \frac{iter}{iter_{max}})^{power}$ in each iteration with power 0.9. In training stage, we randomly flip and scale each image by 0.5 to $2.0\times$ . Different initial rates are applied according to the experimental setting. Specifically, we set initial rate to 0.05 and 0.02 when training from scratch and using ImageNet [10] pre-training, respectively. For Cityscapes [9], we construct each minibatch for training from 8 random $768\times 768$ image crops. For PASCAL VOC 2012 [11], 16 random $512\times 512$ image crops are adopted for optimization in each iteration.
+
+# 4.3. Dynamic Routing
+
+To demonstrate the superiority of the dynamic routing, we compare the dynamic networks with several existing architectures and static routes sampled from the routing space. In particular, traditional human-designed networks as well as searched architectures, including FCN-32s [24], U-Net [28], DeepLabV3 [5], HRNetV2 [32], and AutoDeepLab [22], are modeled in the routing space with similar connection patterns, as visualized in Fig. 3. For fair comparisons, we align the computational overhead with these methods by giving different budget constraints to the loss function in Eq. 9. Consequently, three types of dynamic networks can be generated (please refer to Sec. 4.4.3 for details), denoted as Dynamic-A, B, and C in Tab. 1. Compared with the handcrafted and searched architectures, the proposed dynamic routing achieves much better performance under similar costs. For instance, given the budget constraint around 45G, 55G, and 65G, the Dynamic-A, B, and C attain $5.8\%$ , $2.2\%$ , and $2.1\%$ absolute gain over the modeled DeepLabV3, U-Net, and HRNetV2, respectively.
+
+Table 1. Comparisons with classic architectures on the Cityscapes val set. 'Dynamic' denotes the proposed dynamic routing. 'A', 'B', and 'C' represent different computational budgets in Sec. 4.4.3. 'Common' indicates the common connection pattern of corresponding dynamic network. FLOPs ${}_{Avg}$ ,FLOPs ${}_{Max}$ ,and FLOPs ${}_{Min}$ represent the Average,Maximum,and Minimum FLOPs of the network,respectively. All of the architectures are sampled from the designed routing space and evaluated by ourselves under the same setting.
+
+| Method | Dynamic | Modeled from | mIoU(%) | FLOPs_Avg(G) | FLOPs_Max(G) | FLOPs_Min(G) | Params(M) |
| Handcrafted | X | FCN-32s [24] | 66.9 | 35.1 | 35.1 | 35.1 | 2.9 |
| X | DeepLabV3 [5] | 67.0 | 42.5 | 42.5 | 42.5 | 3.7 |
| X | U-Net [28] | 71.6 | 53.9 | 53.9 | 53.9 | 6.1 |
| X | HRNetV2 [32] | 72.5 | 62.5 | 62.5 | 62.5 | 5.4 |
| Searched | X | Auto-DeepLab [22] | 67.2 | 33.1 | 33.1 | 33.1 | 2.5 |
| Common-A | X | Dynamic-A | 71.6 | 41.6 | 41.6 | 41.6 | 4.1 |
| Common-B | X | Dynamic-B | 73.0 | 53.7 | 53.7 | 53.7 | 4.3 |
| Common-C | X | Dynamic-C | 73.2 | 57.1 | 57.1 | 57.1 | 4.5 |
| Dynamic-A | ✓ | Routing-Space | 72.8 | 44.9 | 48.2 | 43.5 | 17.8 |
| Dynamic-B | ✓ | Routing-Space | 73.8 | 58.7 | 63.5 | 56.8 | 17.8 |
| Dynamic-C | ✓ | Routing-Space | 74.6 | 66.6 | 71.6 | 64.3 | 17.8 |
+
+
+(a) Network architecture of Common-A
+
+
+(b) Network architecture of Common-B
+
+
+(c) Network architecture of Common-C
+Figure 4. Network architectures of Common-A, B, C, which are extracted from Dynamic models with different budget constraints in Tab. 1, are visualized in 4(a), 4(b), and 4(c), respectively.
+
+Furthermore, the fundamental routes of dynamic networks, which are preserved over $95\%$ forward inference, are extracted to formulate corresponding common network. The connection patterns of common networks are presented in Fig. 4. We further compare the dynamic networks with common architectures (Common-A, B, and C) in Tab. 1. Specifically, with the dynamic routing framework, the dynamic network will have better performance than the static common one under each budget constraint. This can be con
+
+cluded from the comparisons in Tab. 1.
+
+We observe that the connected routes of common networks in Fig. 4 share a similar tendency with several known architectures, e.g., the human-designed U-Net [28] and the NAS-based Auto-DeepLab [22]. In particular, down-sampling operations are adopted in the front part, and up-sampling operations are preferred in the latter part of the network. Moreover, high-resolution features in the low-level stage are needed for object details (visualized in Fig. 1), which may lead to better performance.
+
+# 4.4. Component-wise Analysis
+
+To reveal the effect of each component in the proposed method, we will decompose our approach step-by-step in this section. Firstly, the components inside cells will be discussed in detail. Then we investigate the activation function of the proposed soft conditional gate. The effect of different resource budgets will be further illustrated in the end.
+
+# 4.4.1 Cell Component
+
+For fair comparisons with previous architectures, only the basic convolutional operations and identity mapping are used inside each cell without bells-and-whistles. Experimental results with several classic operations including BottleNeck [16], MBConv [29], and SepConv [8] are presented in Tab. 2. We find the dynamic network achieve the best performance when stacking two SepConv $3 \times 3$ for feature transform and heavier operations contribute no more gain. We guess this could be attributed to the reason that the routing architecture plays a more significant role than heavier operations. Indeed, we also conduct experiments with larger kernels (e.g., SepConv $5 \times 5$ ) when the resolution scale is $1/4$ , but only find $0.2\%$ absolute gain. Thus, we only use SepConv $3 \times 3$ in this paper for simplicity.
+
+Table 2. Comparisons among different cell components on the Cityscapes val set. $\times 2$ and $\times 3$ mean stacking 2 and 3 SepConv $3 \times 3$ ,respectively. Due to the data-dependent property of the dynamic routing, we report the average FLOPs here.
+
+| Cell Operation | mIoU(%) | FLOPs(G) | Params(M) |
| BottleNeck [16] | 73.7 | 1134.8 | 203.9 |
| MBConv [29] | 75.0 | 323.8 | 48.2 |
| SepConv3×3 | 71.2 | 81.4 | 12.6 |
| SepConv3×3 × 2 | 76.1 | 119.5 | 17.8 |
| SepConv3×3 × 3 | 75.2 | 153.8 | 22.9 |
+
+Table 3. Comparisons among different activation functions on the Cityscapes val set. Due to the data-dependent property of the dynamic routing, we report the average FLOPs here.
+
+| Activation | mIoU(%) | FLOPs(G) | Params(M) |
| Fix | 74.5 | 103.1 | 15.3 |
| Softmax | 74.1 | 120.0 | 17.8 |
| Sigmoid | 75.9 | 120.0 | 17.8 |
| max(0, Tanh) | 76.1 | 119.5 | 17.8 |
+
+Table 4. Comparisons among different resource budgets on the Cityscapes val set. $\lambda_{2}$ and $\mu$ denote the coefficients for budget constraint in Sec. 3.3. Due to the data-dependent property of the dynamic routing, we report the average FLOPs here.
+
+| Method | λ2/μ | mIoU(%) | FLOPs(G) | Params(M) |
| Network-Fix | - | 74.5 | 103.1 | 15.3 |
| Dynamic-A | 0.8/0.1 | 72.8 | 44.9 | 17.8 |
| Dynamic-B | 0.5/0.1 | 73.8 | 58.7 | 17.8 |
| Dynamic-C | 0.5/0.2 | 74.6 | 66.6 | 17.8 |
| Dynamic-Raw | 0.0/0.0 | 76.1 | 119.5 | 17.8 |
+
+# 4.4.2 Activation Function
+
+We further compare several widely-used activation functions of the proposed soft conditional gate in Sec. 3.2.2. Firstly, all of the paths in the routing space are fixed with no difference to formulate our baseline, namely the 'Fix' in Tab. 3. Then, the activation function $\delta$ in Eq. 3 is replaced by the candidate in Tab. 3 directly. We find the proposed $\max(0, \mathrm{Tanh})$ achieves better performance than others. What's more, the performance of the Softmax activation, which considers three routing paths in each cell together, is inferior to that of considered individually, e.g., Sigmoid and $\max(0, \mathrm{Tanh})$ . This means each path should be decoupled in the soft conditional gate. Then, the paths with activating factor $\alpha > 0$ would be preserved during this forward inference, as elaborated in Sec. 3.2.2.
+
+# 4.4.3 Resource Budgets
+
+With the designed gating function, we give different resource budgets by adjusting the coefficient $\lambda_{2}$ and $\mu$ . As presented in Tab. 4, the routing framework will generate
+
+
+Figure 5. Distribution of route activating probabilities in dynamic networks. Most of the paths tend to be preserved without budget constraints in Dynamic-Raw. Given resource budgets, different proportions of routes will be closed in Dynamic-A, B, and C.
+
+Table 5. Experiments with different settings on Cityscapes val set with a single scale and no flipping. 'ImageNet' denotes ImageNet pre-training. 'SDP' indicates Scheduled Drop Path.
+
+| Method | Iter(K) | ImageNet | SDP | mIoU(%) |
| Network-Fix | 186 | X | X | 74.5 |
| Dynamic | 186 | X | X | 76.1 |
| Network-Fix | 372 | X | X | 76.3 |
| Dynamic | 372 | X | X | 77.4 |
| Network-Fix | 558 | X | ✓ | 76.7 |
| Dynamic | 558 | X | ✓ | 78.3 |
| Network-Fix | 186 | ✓ | X | 75.8 |
| Dynamic | 186 | ✓ | X | 78.6 |
+
+several types of dynamic networks (Dynamic-A, B, and C) if given different budget constraints. Compared with the raw dynamic network without resource budget (Dynamic-Raw), the cost in Dynamic-C is reduced to $55.7\%$ with little performance drop. Meanwhile, the Dynamic-C still outperforms the fully-connected Network-Fix both on effectiveness and efficiency. And the resource cost can be further reduced to $37.6\%$ (Dynamic-A) with stronger constraints.
+
+Moreover, we present the distribution of route activating probabilities in Fig. 5. It is clear that most of the paths tend to be preserved in Dynamic-Raw. Different proportions of routes will be dropped if given resource budgets, which can be learned from distributions in Fig 5. Consequently, the dynamic routing would cut out useless paths as well as cells during inference. We find the gap between $\mathrm{FLOPs}_{\text{Max}}$ and $\mathrm{FLOPs}_{\text{Min}}$ in Tab. 1 is relatively small (10%), which can be attributed to the effect of budget constraint. Indeed, we also tried different types of coefficient of variation [30] to enlarge the gap, but found inferior performance.
+
+# 4.5. Experiments on Cityscapes
+
+We carry out experiments on the Cityscapes [9] dataset using fine annotations only. In Tab. 5, we compare the dynamic network with the fixed backbone under several train
+
+Table 6. Comparisons with previous works on the Cityscapes. mIoU ${}_{\text{test }}$ and ${\mathrm{{mIoU}}}_{\text{val }}$ denote performance on test set and val set respectively. Multi-scale and flipping strategy are used in test set but dropped in val set. We report FLOPs with input size ${1024} \times {2048}$ .
+
+| Method | Backbone | mIoUtest(%) | mIoUval(%) | FLOPs(G) |
| BiSenet [40] | ResNet-18 | 77.7 | 74.8 | 98.3† |
| DeepLabV3 [5] | ResNet-101-ASPP | - | 78.5 | 1778.7 |
| Semantic FPN [19] | ResNet-101-FPN | - | 77.7 | 500.0 |
| DeepLabV3+ [6] | Xception-71-ASPP | - | 79.6 | 1551.1 |
| PSPNet [43] | ResNet-101-PSP | 78.4 | 79.7 | 2017.6 |
| Auto-DeepLab* [22] | Searched-F20-ASPP | 79.9 | 79.7 | 333.3 |
| Auto-DeepLab* [22] | Searched-F48-ASPP | 80.4 | 80.3 | 695.0 |
| Dynamic* | Layer16 | 79.1 | 78.3 | 111.7 |
| Dynamic | Layer16 | 79.7 | 78.6 | 119.4 |
| Dynamic | Layer33 | 80.0 | 79.2 | 242.3 |
| Dynamic | Layer33-PSP | 80.7 | 79.7 | 270.0 |
+
+$^\dagger$ estimated from corresponding settings
+* training from scratch
+
+Table 7. Comparisons with previous works on the PASCAL VOC 2012. $\mathrm{mIoU}_{test}$ and $\mathrm{mIoU}_{val}$ denote performance on test set and val set respectively. Multi-scale and flipping strategy are used in test set but dropped in val set. We report FLOPs with input size $512 \times 512$ .
+
+| Method | Backbone | mIoUtest(%) | mIoUval(%) | FLOPs(G) |
| DeepLabV3 [5] | MobileNet-ASPP | - | 75.3 | 14.3 |
| DeepLabV3 [5] | MobileNetV2-ASPP | - | 75.7 | 5.8 |
| Auto-DeepLab [22] | Searched-F20-ASPP | 82.5 | 78.3 | 41.7† |
| Dynamic | Layer16 | 82.8 | 78.6 | 14.9 |
| Dynamic | Layer33 | 84.0 | 79.0 | 30.8 |
+
+$\dagger$ estimated from corresponding settings
+
+ing settings on the val set. The proposed method achieves consistent improvement in different situations. With the Scheduled Drop Path [46, 22] and ImageNet [10] pretraining, the performance of the dynamic network ( $L = 16$ ) can be further improved. Comparisons with several previous works are given in Tab. 6. With the similar resource cost, the proposed dynamic network attains $78.6\%$ mIoU on the val set, which achieves a $3.8\%$ absolute gain over the well-designed BiSenet [40]. With the simple scale transform modules without bells-and-whistles, the dynamic network ( $L = 33$ ) achieves comparable performance with the state-of-the-art but consumes much fewer cost. Moreover, in conjunction with the context capturing module (e.g., PSP block), the proposed method has further improvements and achieves $80.7\%$ mIoU on the Cityscapes test set.
+
+# 4.6. Experiments on PASCAL VOC
+
+We further compare with similar methods (pre-trained on the COCO [21] dataset), which focus on the architecture design with comparable computational overhead, on the PASCAL VOC 2012 [11] dataset. In particular, the proposed approach surpasses Auto-DeepLab [22], which would cost 3 GPU days for architecture searching, in both accuracy and efficiency, as shown in Tab. 7. Compared with
+
+the MobileNet-based DeepLabV3 [5], the dynamic network still attains better performance with a similar resource cost.
+
+# 5. Conclusion
+
+In this work, we present the dynamic routing for semantic segmentation. The key difference from prior works lies in that we generate data-dependent forward paths according to the scale distribution of each image. To this end, the soft conditional gate is proposed to select scale transformation routes in an end-to-end manner, which will learn to drop useless operations for efficiency if given resource budgets. Extensive ablation studies have been conducted to demonstrate the superiority of the dynamic network over several static architectures, which can be modeled in the designed routing space. Experiments on Cityscapes and PASCAL VOC 2012 prove the effectiveness of the proposed method, which achieves comparable performance with state-of-the-art's but consumes much fewer computational resources.
+
+# Acknowledgement
+
+This work was supported by National Key Research and Development Program of China 2018YFD0400902 and National Natural Science Foundation of China 61573349.
+
+# References
+
+[1] Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. TPAMI, 2017. 1, 2
+[2] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019. 2
+[3] Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In NeurIPS, 2018. 1, 2
+[4] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. TPAMI, 2017. 2
+[5] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv:1706.05587, 2017. 2, 4, 5, 6, 8
+[6] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, 2018. 1, 2, 8
+[7] Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. In ICCV, 2019. 2
+[8] François Chollet. Xception: Deep learning with depthwise separable convolutions. In CVPR, 2017. 6
+[9] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016. 2, 5, 7
+[10] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. 5, 8
+[11] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. *IJCV*, 2010. 2, 5, 8
+[12] Jun Fu, Jing Liu, Hajie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In CVPR, 2019. 2
+[13] Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. arXiv:1904.00420, 2019. 2
+[14] Bharath Hariharan, Pablo Arbeláez, Lubomir Bourdev, Subhransu Maji, and Jitendra Malik. Semantic contours from inverse detectors. In ICCV, 2011. 5
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In ICCV, 2015. 5
+[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5, 6, 7
+[17] Gao Huang, Danlu Chen, Tianhong Li, Felix Wu, Laurens van der Maaten, and Kilian Q Weinberger. Multi-scale dense
+
+networks for resource efficient image classification. In ICLR, 2018. 2
+[18] Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. Ccnet: Criss-cross attention for semantic segmentation. In ICCV, 2019. 2
+[19] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dólar. Panoptic feature pyramid networks. In CVPR, 2019, 1, 8
+[20] Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In NeurIPS, 2017. 2
+[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 ECCV, 2014. 8
+[22] Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan L Yuille, and Li Fei-Fei. Autodeplab: Hierarchical neural architecture search for semantic image segmentation. In CVPR, 2019. 1, 2, 3, 4, 5, 6, 8
+[23] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In ICLR, 2019. 2, 3, 4
+[24] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. 1, 2, 4, 5, 6
+[25] Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. In CVPR, 2019. 1, 2
+[26] Hyeonwoo Noh, Seunghoon Hong, and Bohyung Han. Learning deconvolution network for semantic segmentation. In ICCV, 2015. 2
+[27] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, 2018. 2
+[28] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 1, 2, 4, 5, 6
+[29] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *CVPR*, 2018. 6, 7
+[30] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In ICLR, 2017. 7
+[31] Lin Song, Yanwei Li, Zeming Li, Gang Yu, Hongbin Sun, Jian Sun, and Nanning Zheng. Learnable tree filter for structure-preserving feature transform. In NeurIPS, 2019. 1, 2, 5
+[32] Ke Sun, Yang Zhao, Borui Jiang, Tianheng Cheng, Bin Xiao, Dong Liu, Yadong Mu, Xinggang Wang, Wenyu Liu, and Jingdong Wang. High-resolution representations for labeling pixels and regions. arXiv:1904.04514, 2019. 1, 4, 5, 6
+[33] Ravi Teja Mullapudi, William R Mark, Noam Shazeer, and Kayvon Fatahalian. Hydranets: Specialized dynamic architectures for efficient inference. In CVPR, 2018. 2
+[34] Tom Veniat and Ludovic Denoyer. Learning time/memory-efficient deep architectures with budgeted super networks. In CVPR, 2018. 4
+
+[35] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018. 1
+[36] Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In ECCV, 2018. 2, 4
+[37] Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In CVPR, 2019. 4
+[38] Zuxuan Wu, Tushar Nagarajan, Abhishek Kumar, Steven Rennie, Larry S Davis, Kristen Grauman, and Rogerio Feris. Blockdrop: Dynamic inference paths in residual networks. In CVPR, 2018. 2, 4
+[39] Zhonghui You, Kun Yan, Jinmian Ye, Meng Ma, and Ping Wang. Gate decorator: Global filter pruning method for accelerating deep convolutional neural networks. In NeurIPS, 2019. 2
+[40] Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, and Nong Sang. Bisenet: Bilateral segmentation network for real-time semantic segmentation. In ECCV, 2018. 2, 5, 8
+[41] Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, and Nong Sang. Learning a discriminative feature network for semantic segmentation. In CVPR, 2018. 2
+[42] Hengshuang Zhao, Xiaojuan Qi, Xiaoyong Shen, Jianping Shi, and Jiaya Jia. Icnet for real-time semantic segmentation on high-resolution images. In ECCV, 2018. 2
+[43] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2017. 1, 2, 8
+[44] Hengshuang Zhao, Yi Zhang, Shu Liu, Jianping Shi, Chen Change Loy, Dahua Lin, and Jiaya Jia. Psanet: Point-wise spatial attention network for scene parsing. In ECCV, 2018. 1, 2
+[45] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In ICLR, 2017. 2
+[46] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018. 3, 8
\ No newline at end of file
diff --git a/learningdynamicroutingforsemanticsegmentation/images.zip b/learningdynamicroutingforsemanticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f5fb4f319fdd7d677abbd0608c762c79c898ee56
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c35b7e84db893bc9ba390c4b4b8d342640f63f42c706c39af91a19a01d4cdcac
+size 597260
diff --git a/learningdynamicroutingforsemanticsegmentation/layout.json b/learningdynamicroutingforsemanticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..cffe0344bd278b76d9bc535eb04e94ccaa52a3e8
--- /dev/null
+++ b/learningdynamicroutingforsemanticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae59bb83b2164bae7f95b660937036cbabdd0b84cf45c008a6b4353f35c96479
+size 437095
diff --git a/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_content_list.json b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..722c7f425e4f12bf8103ad44a854fbec779375d4
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d8ca059bcb013d0c0b5d4cdd1fb21804f0129fbca76c8575792fc7d440449ef
+size 87750
diff --git a/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_model.json b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7240edd2f17ec0ae9782c50fd9e6e75d2f3bb70a
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12f103ce9dd20a4c8df7be308e38e0856863024513e2acedd67a8cd0ba4126fc
+size 111756
diff --git a/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_origin.pdf b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2e6379e7f98c77c01ca7517a7c33aa14069ddeb7
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/161d3062-966d-4ff0-9bd2-05e267f1c3f7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4cd6fbf4e2611d5d24fd7de4713bb2b9a9578c0efe1ccfb218f5720a87fefe40
+size 2887430
diff --git a/learningeventbasedmotiondeblurring/full.md b/learningeventbasedmotiondeblurring/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e44f563d701813a642cab04c7c80688acc15a924
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/full.md
@@ -0,0 +1,416 @@
+# Learning Event-Based Motion Deblurring
+
+Zhe Jiang $^{1,2}$ Yu Zhang $^{*,†,3}$ Dongqing Zou $^{1}$ Jimmy Ren $^{1}$ Jiancheng Lv $^{2}$ Yebin Liu $^{3}$ $^{1}$ SenseTime Research $^{2}$ Sichuan University $^{3}$ Department of Automation, Tsinghua University
+
+# Abstract
+
+Recovering sharp video sequence from a motion-blurred image is highly ill-posed due to the significant loss of motion information in the blurring process. For event-based cameras, however, fast motion can be captured as events at high time rate, raising new opportunities to exploring effective solutions. In this paper, we start from a sequential formulation of event-based motion deblurring, then show how its optimization can be unfolded with a novel end-to-end deep architecture. The proposed architecture is a convolutional recurrent neural network that integrates visual and temporal knowledge of both global and local scales in principled manner. To further improve the reconstruction, we propose a differentiable directional event filtering module to effectively extract rich boundary prior from the stream of events. We conduct extensive experiments on the synthetic GoPro dataset and a large newly introduced dataset captured by a DAVIS240C camera. The proposed approach achieves state-of-the-art reconstruction quality, and generalizes better to handling real-world motion blur.
+
+# 1. Introduction
+
+Motion blur happens commonly due to the exposure time required by modern camera sensors, during which scenes are recorded at different time stamps and accumulated into averaged (blurred) signal. The inverse problem called de blurring, which unravels the underlying scene dynamics behind a motion-blurred image and generates a sequence of sharp recovery of the scene, is still challenging in computer vision. While simple motion patterns (e.g. camera shake) have been well modelled [29, 22, 6, 8, 47, 12, 51, 2], formulating more sophisticated motion patterns in real world, however, is much more difficult.
+
+To model general motion blur, recent deep learning approaches propose to recover a blurred image by observing lots of sharp images and their blurred versions [42, 11, 52, 25, 15, 43]. Despite their success in certain scenarios, they
+
+
+(a) Blurred Image
+
+
+(b) Associated Events
+
+
+(c) Zhang et al.
+
+
+(d) Pan et al.
+Figure 1. Motivation of our approach. A severe motion-blurred image (a) is difficult to deblur by observing its ambiguous appearance only even with state-of-the-art deep architecture [50] (c). Though events (b) provide dense temporal cues, the physical reconstruction approach [31] still presents unaddressed blur due to the noisiness of events (d). The proposed deep motion deblurring learns to recover plausible details from imperfect image and events (e).
+
+
+(e) Our result
+
+may fail reconstructing the scene plausibly for severe motion blur (e.g. Fig. 1), which is common for handheld, vehicle or drone-equipped cameras. In this case, hallucinating the scene details is hardly possible due to the significant loss of temporal order and visual information.
+
+Instead of purely relying on computational architectures, this work adopts event-based cameras to alleviate this problem at data capture stage. Event cameras are biologically inspired sensors adept at recording the change of pixel intensities (called events) with microsecond accuracy and very low power consumption. The hybrid model of such sensors (e.g. [5]) allows the events being temporally calibrated with the image. As a result, such data naturally encodes dense temporal information that can facilitate motion deblurring. As shown in Fig. 1 (a) and (b), although the image undergoes significant blur, the accompanying events are temporally dense and reveal clear moving pattern of the scene.
+
+Despite the high potential of event-based motion deblurring, a critical issue is that events are lossy and noisy signals triggered only if pixel intensity changes up to certain threshold that can vary with the change of scene conditions [35]. Such discrete and inconsistent sampling makes textures and
+
+contrast difficult to restore. As shown in Fig. 1 (d), state-of-the-art physical deblurring method [31] still has difficulty reconstructing the image plausibly. Our solution is to plug deeply learned priors into event-based deblurring process, so as to surpass the imperfectness of data.
+
+In details, this work starts from a sequential formulation of event-based deblurring. By reinterpreting its optimization with deep networks, we propose a novel recurrent architecture trainable end-to-end. For each time step, coarse reconstructions are obtained from previous reconstruction as well as the local temporal events. Fine details are then supplied by network predictions, guided by appearance and temporal cues at both global and local scales. To further improve the quality of reconstruction, we propose a differentiable Directional Event Filtering (DEF) module, which effectively aggregates the motion boundaries revealed by events and produces sharp deblurring prior. To evaluate the proposed approach, we compile a large outdoor dataset captured using the DAVIS240C camera [5]. Extensive experiments on this dataset and the synthetic GoPro dataset [25] show that the proposed approach outperforms various state-of-the-art methods, either image-based or event-based, and generalizes better to handling real-world motion blur.
+
+Contributions of this paper are summarized as follows. 1) We propose a novel recurrent deep architecture for event-based motion deblurring, which achieves state-of-the-art results on two large benchmarks. 2) We propose directional event filtering to generate sharp boundary prior from events for motion deblurring. 3) We compile a new event dataset with real-world motion blur to facilitate future research.
+
+# 2. Related Work
+
+Blind motion deblurring aims to resolve a blurry image without knowing the blurring kernel. Early works have designed various blurring-aware indicators, such as color channel statistics [29, 47], patch recurrence [22] and "outlier" image signals [8], to define latent image priors. Several works propose to learn motion kernels [39, 28], restoration functions [45, 11] and image priors [55, 42] from data. More complex motion patterns compounded by different objects were also addressed [16, 37]. Richer prior knowledge such as scene geometry was proven useful [30, 32].
+
+A recent trend is to approach all the complexities of motion deblurring with deep neural networks. Various kinds of effective network designs are proposed, including enlarging the receptive field [52], multi-scale fusion [25, 27], feature distangling [26], and recurrent refinement [44]. There was also research on decoding the motion dynamics of a blurred image to a sharp video sequence [15]. Despite these advances, the considerable combinations of real-world lightings, textures and motions, which are severely missing in a blurred image, are still difficult to be plausibly recovered.
+
+Event cameras [19, 5] are a special kind of sensors that
+
+detect intensity changes of the scene at microsecond level with slight power consumption. They find applications in various vision tasks, such as visual tracking [34, 23], stereo vision [54, 1] and optical flow estimation [20, 48]. A related branch is to explore the corrupted event signals to restore high frame rate image sequences [38, 24, 40]. Recently, Pan et al. [31] formulates event-based motion blurring with a double integral model. Yet, the noisy hard sampling mechanism of event cameras often introduces strong accumulated noise and loss of scene details/contrast.
+
+This work shares the insight of recent works on event-to-video translation [33, 17, 36] that surpasses the imperfect event sampling by learning plausible details from data. While [33] addresses future frame prediction, [17, 36] translate events to plausible intensity images in streaming manner depending on local motion cues. Instead, this work explores both long-term, local appearance/motion cues as well as novel event boundary priors to solve motion deblurring.
+
+# 3. Learning Event-Based Motion Deblurring
+
+Given a motion-blurred image $\bar{\mathcal{I}}$ , our objective is to recover a sharp video sequence with $T$ frames, $\mathbb{I} = \{\mathcal{I}_i\}_{i=1}^T$ . We assume that a set of events $\mathbb{E}_{1 \sim T}$ are also captured by hybrid image-event sensors during the exposure, where the tilde denotes the time interval. Each event $\mathcal{E} \in \mathbb{E}_{1 \sim T}$ has the form $\mathcal{E}_{x,y,t}$ , meaning that it is triggered at image coordinate $(x,y)$ and time point $t \in [1,T]$ . Note here $t$ does not need to be an integer, but can be fractional due to the high temporal resolution (i.e. microsecond-level) of event camera. A polarity $p_{x,y,t}$ is recorded for $\mathcal{E}_{x,y,t}$ indicating the change of local intensity. Formally, it is defined as [19, 5]
+
+$$
+p _ {x, y, t} = \left\{ \begin{array}{l} + 1, \text {i f} \log \left(\frac {\mathcal {I} _ {t} (x , y)}{\mathcal {I} _ {t - \Delta t} (x , y)}\right) > \tau , \\ - 1, \text {i f} \log \left(\frac {\mathcal {I} _ {t} (x , y)}{\mathcal {I} _ {t - \Delta t} (x , y)}\right) < - \tau , \end{array} \right. \tag {1}
+$$
+
+Eqn. (1) shows that, events are triggered if the instant image at time point $t$ , namely $\mathcal{I}_t$ , has pixel intensity changed up to a threshold $\pm \tau$ in a small time period $\Delta t$ . Without loss of generality, we assume that $p_{x,y,t}$ takes zero in case that $\log \left(\frac{\mathcal{I}_t(x,y)}{\mathcal{I}_{t - \Delta t}(x,y)}\right)$ is in $[-\tau, \tau]$ . For adjacent latent images $\mathcal{I}_i$ and $\mathcal{I}_{i-1}$ , the following relationship can be derived:
+
+$$
+\mathcal {I} _ {i} (x, y) \approx \mathcal {I} _ {i - 1} (x, y) \cdot \exp \left(\tau \int_ {t = i - 1} ^ {i} p _ {x, y, t} \mathbb {1} \left(\mathcal {E} _ {x, y, t}\right) d t\right), \tag {2}
+$$
+
+The indicator function $\mathbb{1}(\cdot)$ equals 1 if the event $\mathcal{E}_{x,y,t}$ exists, or 0 otherwise.
+
+One should note that the approximation error of (2) is getting lower when $\Delta t, \tau \to 0$ , which implies denser events according to (1). However, with inconsistent $\tau$ affected by various kinds of noise, the approximation is mostly insufficient in practice, leading to loss of contrast and details. To
+
+address this issue, we propose a joint framework that learns to reconstruct clean images from data, by reinterpreting a sequential deblurring process.
+
+Deep sequential deblurring. Event-assisted deblurring can be formulated under Maximum-a-Posteriori:
+
+$$
+\mathbb {I} ^ {*} = \arg \max _ {\mathbb {I}} P (\mathbb {I} | \bar {\mathcal {I}}, \mathbb {E} _ {1 \sim T}). \tag {3}
+$$
+
+To solve the combinatorial problem (3) we make the following simplifications. For the joint posterior $P\left(\mathbb{I}|\bar{\mathcal{I}},\mathbb{E}_{1\sim \mathcal{T}}\right)$ , we make use of the temporal relations between adjacent latent images (2), and assume a Markov chain model:
+
+$$
+\begin{array}{l} P \left(\mathbb {I} | \bar {\mathcal {L}}, \mathbb {E} _ {1 \sim T}\right) \approx P \left(\mathcal {I} _ {T} | \bar {\mathcal {L}}, \mathbb {E} _ {1 \sim T}\right) \times \\ \prod_ {i = 1} ^ {T - 1} P \left(\mathcal {I} _ {i} \mid \mathcal {I} _ {i + 1}, \bar {\mathcal {I}}, \mathbb {E} _ {1 \sim T}\right), \tag {4} \\ \end{array}
+$$
+
+in which $P\left(\mathcal{I}_i|\mathcal{I}_{i + 1},\bar{\mathcal{I}},\mathbb{E}_{1\sim T}\right) = P\left(\mathcal{I}_i|\mathcal{I}_{i + 1},\bar{\mathcal{I}},\mathbb{E}_{i\sim i + 1}\right)$ with Markov assumption. Note that this simplified model first estimates $\mathcal{I}_T$ , then perform sequential reconstruction in backward order. According to Bayesian rule, the maximizer of a backward reconstruction step equals to:
+
+$$
+\mathcal {I} _ {i} ^ {*} = \arg \max _ {\mathcal {I} _ {i}} P \left(\mathcal {I} _ {i + 1}, \bar {\mathcal {I}}, \mathbb {E} _ {i \sim i + 1} \mid \mathcal {I} _ {i}\right) P \left(\mathcal {I} _ {i}\right). \tag {5}
+$$
+
+Here, the prior term $P(\mathcal{I}_i)$ imposes desired distributions of the latent image, e.g. $\ell_1$ gradient [3] or manifold smoothness [24] in recent event-based image reconstruction. To model the likelihood term, we assume that there is an initial estimate from previous reconstruction, via (2):
+
+$$
+\hat {\mathcal {I}} _ {i} = \mathcal {I} _ {i + 1} \odot \exp \left(- \tau \mathcal {S} _ {i + 1} ^ {i}\right), \tag {6}
+$$
+
+where $\forall x, y, S_{i+1}^{i}(x, y) = \int_{t=i}^{i+1} p_{x,y,t} \mathbb{1}(\mathcal{E}_{x,y,t}) dt$ , and $\odot$ denotes Hadamard product. Since the time interval is small, we assume constant $\tau$ which introduces only small drift and provides good initialization. To solve $\mathcal{I}_i^*$ , several works assume simple distributions centered around $\hat{\mathcal{I}}_i^*$ to define the likelihood term in (5), e.g. in [24] a Poisson distribution is used. In this manner, Eqn. (5) can be treated as a well-studied denoising problem.
+
+Instead of using simple image prior, we borrow from recent research on learning deep denoising prior [53, 50]. In particular, we plug a deep network $\mathcal{N}$ as a learned denoiser,
+
+$$
+\mathcal {I} _ {i} ^ {*} = \mathcal {N} \left(\hat {\mathcal {I}} _ {i}, \mathcal {I} _ {i + 1},, \bar {\mathcal {I}}, \mathbb {E} _ {i \sim i + 1}\right). \tag {7}
+$$
+
+As such, prior of latent image $P(\mathcal{I}_i)$ is not explicitly defined but implicitly learned from training data. To reduce parameter size and prevent overfitting, we use the same network governed by the same set of parameters for each deblurring step of (5), leading to a recurrent architecture.
+
+The remaining problem of solving (4) is how to get the initial latent image, i.e. $\mathcal{I}_T$ . We use the fact that the blurred
+
+image $\bar{\mathcal{I}}$ roughly equals the average of the instant images in the exposure process. Combining this fact with (6), we have
+
+$$
+\bar {\mathcal {I}} \approx \frac {1}{T} \sum_ {i = 1} ^ {T} \mathcal {I} _ {i} = \mathcal {I} _ {T} \odot \frac {1}{T} \left(1 + \sum_ {t = 2} ^ {T} \prod_ {i = 1} ^ {t - 1} \mathcal {B} _ {T - i + 1} ^ {T - i}\right), \tag {8}
+$$
+
+where $\mathcal{B}_{i + 1}^i = \exp \left(-\tau S_{i + 1}^i\right)$ and $S_{i + 1}^{i}$ is defined in (6). It provides an initial estimation of $\mathcal{I}_T$ , namely $\hat{\mathcal{I}}_T$ , using the blurred image $\bar{\mathcal{I}}$ and events. Thus, we also treat solving $\mathcal{I}_T$ a denoising problem, centered around $\hat{\mathcal{I}}_T$ , and use a network to approximate it. We note, however, the accumulative operator in (8) introduces more drift unlike the sequential deblurring steps. We thus correct $\hat{\mathcal{I}}_T$ via a separate and more powerful network: $\mathcal{I}_T^* = \mathcal{N}_0\left(\hat{\mathcal{I}}_T,\bar{\mathcal{I}},\mathbb{E}_{1\sim T}\right)$ The full deblurring process is summarized in Alg. 1. Note that by design (7), the latent image is conditioned on both local and long-term cues from the image and events.
+
+# Algorithm 1 Event-assisted Deep Motion Deblurring
+
+Require: the blurred image $\bar{\mathcal{L}}$ , events $\mathbb{E}_{1\sim T}$
+
+1: Get initial estimate $\mathcal{I}_T$ by solving (8)
+2: Deblurring: $\mathcal{I}_T^* = \mathcal{N}_0\left(\hat{\mathcal{I}}_T,\bar{\mathcal{I}},\mathbb{E}_{1\sim T}\right)$
+3: Initialize counter: $i = T - 1$
+4: while $i \geq 1$ do
+5: Get initial estimate $\hat{\mathcal{I}}_i$ by solving (2)
+6: Deblurring: $\mathcal{I}_i^* = \mathcal{N}\left(\hat{\mathcal{I}}_i, \mathcal{I}_{i+1}, \mathbb{E}_{i \sim i+1}, \bar{\mathcal{I}}, \mathbb{E}_{1 \sim T}\right)$
+7: $i\gets i - 1$
+8: end while
+9: return Deblurred sequence $\mathbb{I}^* = \{\mathcal{I}_i\}_{i=1}^T$
+
+# 4. Network Architecture
+
+Fig. 2 shows the proposed event-based motion deblurring architecture, which contains: a read network that traverses over the events and generates a single representation of the global scene motion, an initialize network that couples appearance and motion to generate the initial latent image, and the recurrent process network sequentially deblurring all the latent images1. The read and initialize networks instantiates $\mathcal{N}_0$ while the process network implements $\mathcal{N}$ in Alg. 1.
+
+The read network reads all the event data and generate a joint representation that accounts for the global event motion. To accomplish that, events during the exposure are first binned into equal-length time intervals (3 intervals in Fig. 2). In each time interval, events are represented with stacked event frames [17], through further dividing an interval into 8 equal-size chunks, summing over the polarities of events falling into each chunk, and stacking the results along channel dimension. The read network is a recurrent
+
+
+Figure 2. The proposed learning framework for event-based motion deblurring. For better visualization, we only assume 4 sharp frames are recovered from the blurred image. Detailed layer and parameter configurations are referred to the supplementary material. Note that the Motion Compensation (MC) module is not illustrated due to the lack of space. See text for detailed description of the architecture.
+
+encoder consisting of convolutional blocks and a convolutional LSTM [41] on top to accumulate features along time.
+
+The initialize network decodes the appearance from the blurred image and couples it with the global motion to solve the latent image $\mathcal{I}_T^*$ . It takes as input both the blurred image $\bar{\mathcal{I}}$ and the initial estimate $\hat{\mathcal{I}}_T$ (via solving Eqn. (8)) and processes them with a convolutional encoder, concatenates the encodings with the accumulated global motion features from the read network, and feeds the joint features into a decoder to get the result.
+
+Given the initial result, the process network then sequentially deblurs the remaining latent images. In the $i$ th step, it consumes both image and event-based observations. The image part includes: 1) the initial estimate $\hat{\mathcal{I}}_i$ as obtained by Eqn. (6) using the previous reconstruction $\mathcal{I}_{i+1}$ , 2) the local historical image by transforming the previous result $\mathcal{I}_{i+1}$ with the Motion Compensation ("MC" in Fig. 2) module, and 3) the boundary guidance map given by the Directional Event Filtering ("DEF" in Fig. 2) module. These two modules will be explained further shortly after. Input images are processed by convolutional layers and concatenated with the per-step event features extracted from the read network via latent fusion. The fused features are processed and fed to another convolutional LSTM to propagate temporal knowledge along time. Finally, a decoder takes the joint features and generates the deblurred image.
+
+Motion compensation. We use a motion compensation module to warp previous deblurring result $\mathcal{I}_{i + 1}$ and generate an initialization of the $i$ th time step. Although Eqn. (6) achieves this by event integration, we find it more effective to predict a flow field from which we directly warp the clean result $\mathcal{I}_{i + 1}$ as additional guidance. Motion compensation
+
+for events have already been discussed in [10]. For efficiency, we adopt a FlowNetS architecture [9] to take events $\mathbb{E}_{i\sim i + 1}$ as input and directly regress forward flows from $i$ to $i + 1$ . Warping is implemented with a differentiable spatial transformer layer [18, 14].
+
+Directional event filtering. The initial estimates $\hat{\mathcal{I}}_i$ may suffer unaddressed blur due to the naive blurring model (8) and the noisiness of events. We alleviate this issue with the aid of sharp boundary prior, a widely explored image prior for blind deblurring [7, 46], extracted from events $\mathbb{E}_{i\sim i + 1}$ .
+
+Events indicate local change of scene illuminance and reveal physical boundaries. However, as scene boundaries are moving, at a specific time they are only spatially aligned with the latest events triggered at their positions. As a toy example, Fig. (3) shows after the imaging the top and bottom lines correspond to events at two different time points. It gives that one can generate scene boundary prior by sampling events at proper space-time positions. Note that due to variation of scene depth, different scene parts may have distinct motion, and position-adaptive sampling is essential.
+
+Besides, as events are sparse, noisy, and non-uniformly distributed signals, a robust sampling process should decide both where (i.e. center) and how many (i.e. scale) to sample. We learn this task from data via differentiable sampling and filtering. For each image position $\mathbf{p}$ , a temporal center $c(\mathbf{p})$ and a set of $2k + 1$ filtering coefficients $\{\alpha_{i}\}_{i = -k}^{k}$ where $k$ is the support of filtering kernel, are predicted with a small network from the events, satisfying $\forall i,\alpha_{i}\geq 0$ and $\sum_{i = -k}^{k}\alpha_{k} = 1$ . The filtered result is obtained by
+
+$$
+\mathcal {G} (\mathbf {p}) = \sum_ {i = - k} ^ {k} \alpha_ {k} s (\mathbf {p} + \lambda k \mathbf {d} (\mathbf {p}, c (\mathbf {p})) \cdot c (\mathbf {p}) + \lambda k), \tag {9}
+$$
+
+
+Figure 3. Motivation of adaptive event sampling. (a) A toy scene where the top line moves down first, after which the bottom line moves up. Events with positive and negative polarities are shown as red and green dots, respectively. (b) The projected image of the scene after the imaging process. Scene boundaries correspond to the latest triggered events, which may vary for different positions, as indicated by arrows. (c) The accumulation map of events.
+
+where $\lambda$ defines sampling stride (we use $k = 2$ , $\lambda = 1$ ), $s(\cdot, \cdot)$ denotes a sampling function in space-time domain. For the stacked event frame representation of events $\mathbb{E}_i^{i+1}$ , one can apply the trilinear kernel for continuous sampling [21]. Note that the velocity $\mathbf{d}$ should follow the direction of local motion of events at space-time point $(\mathbf{p}, c(\mathbf{p}))$ to filter along the density surface of events but not across it.
+
+To get local velocity, we reuse the flow vectors predicted by motion compensation module. We assume object velocity stays constant, which is roughly true in this context as there is just a fraction of time duration (i.e. only $1 / (T - 1)$ the exposure). Motion compensation gives the velocities of all the positions $\mathbf{p}_0\in \mathbb{P}$ at time $i$ $\mathbf{d}(\mathbf{p}_0,i)$ . At time $c(\mathbf{p})$ , a pixel $\mathbf{p}_0$ would be shifted by the flows to a new position:
+
+$$
+\mathbf {n} \left(\mathbf {p} _ {0}\right) = \mathbf {p} _ {0} + (c (\mathbf {p}) - i) \mathbf {d} \left(\mathbf {p} _ {0}, i\right). \tag {10}
+$$
+
+Note that $\mathbf{n}(\mathbf{p}_0)$ inherits the velocity of $\mathbf{p}_0$ under the local constancy assumption: $\mathbf{d}(\mathbf{n}(\mathbf{p}_0),c(\mathbf{p})) = \mathbf{d}(\mathbf{p}_0,i)$ .
+
+However, the intersected positions at time plane $c(\mathbf{p})$ , namely $\{\mathbf{n}(\mathbf{p}_0) | \mathbf{p}_0 \in \mathbb{P}\}$ , does not ensure complete sampling of the image space. Thus, we resample the velocity at a given target $\mathbf{p}$ with a Nadaraya-Watson estimator [4]:
+
+$$
+\mathbf {d} (\mathbf {p}, c (\mathbf {p})) = \frac {\sum_ {\mathbf {p} _ {0} \in \mathbb {P}} \kappa (\mathbf {n} (\mathbf {p} _ {0}) - \mathbf {p}) \mathbf {d} (\mathbf {n} (\mathbf {p} _ {0}) , c (\mathbf {p}))}{\sum_ {\mathbf {p} _ {0} \in \mathbb {P}} \kappa (\mathbf {n} (\mathbf {p} _ {0}) - \mathbf {p})}, \tag {11}
+$$
+
+where the kernel $\kappa$ is simply defined with a standard Gaussian. This in spirit shares similarity with the "gather" approach in computer graphics for surface rendering [49].
+
+Eqn. (11) uses all $\mathbf{p}_0$ s to estimate each position $\mathbf{p}$ , which is inefficient. In practice we only use samples located within a local $L \times L$ window centered around $\mathbf{p}$ . The window size $L$ should account for the maximal spatial displacement of pixels, which we find $L = 20$ sufficient. All of the proposed steps are differentiable, and can be plugged into the network for end-to-end training.
+
+Loss Function. We use the following joint loss function:
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {c o n t e n t}} + \lambda_ {a} \mathcal {L} _ {\text {a d v}} + \mathcal {L} _ {\text {f l o w}} + \lambda_ {t} \mathcal {L} _ {\text {t v}}, \tag {12}
+$$
+
+Here, $\mathcal{L}_{content}$ is the photometric $\ell_{1}$ loss $\frac{1}{T}\sum_{i = 1}^{T}\| \mathcal{I}_i^* -$ $\mathcal{I}_i^g\|$ , where $\mathcal{I}_i^g$ is the groundtruth clean image. To improve sharpness of the result, we also incorporate an adversarial loss $\mathcal{L}_{adv}$ . We use the same PatchGAN discriminator [13] and follow its original loss definitions strictly.
+
+The flow network introduces two other loss terms. The first $\mathcal{L}_{flow}$ is the photometric reconstruction loss:
+
+$$
+\mathcal {L} _ {f l o w} = \frac {1}{T - 1} \sum_ {i = 1} ^ {T - 1} \| \omega \left(\mathcal {I} _ {i + 1} ^ {*}, \mathcal {F} _ {i \rightarrow i + 1}\right) - \mathcal {I} _ {i} ^ {g} \|, \tag {13}
+$$
+
+where $\omega (\cdot ,\cdot)$ is a backward warping function using forward flows $\mathcal{F}_{i\rightarrow i + 1}$ , and $\mathcal{L}_{tv} = \frac{1}{T - 1}\sum_{i = 1}^{T - 1}\| \nabla \mathcal{F}_{i\rightarrow i + 1}\|$ is the total variation loss for flow field smoothing. For these terms, we follow the same definitions of [14]. The weights $\lambda_{a}$ and $\lambda_{t}$ are set to 0.01 and 0.05, respectively.
+
+# 5. Experiments
+
+# 5.1. Experimental Settings
+
+Dataset preparation. We use two datasets for evaluation. First, we evaluate on the GoPro [25] dataset which is widely adopted for image motion deblurring and recently used by [31] to benchmark event-based deblurring. To synthesize events reliably, we use the open ESIM event simulator [35]. We follow the suggested training and testing split. The blurred image is also provided officially by averaging nearby (the number varies from 7 to 13) frames.
+
+As there lacks a large-scale dataset for evaluating event-based motion deblurring in real-world scenarios, we capture a novel dataset of urban environment, called Blur-DVS, with a DAVIS240C camera. It hybrids a high speed event sensor with a low frame-rate Active Pixel Sensor (APS) recording intensity images at $180 \times 240$ . Thus, APS may suffer motion blur in fast moving. We collect two subsets for evaluation. The slow subset consists of 15246 images captured with slow and stable camera movement of relatively static scenes, thus motion blur rarely happens. We synthesize motion blurs by averaging nearby 7 frames, resulting into 2178 pairs with blurred image and sharp sequence. In this manner, we can conduct quantitative benchmarkings. We select 1782 pairs for training, and 396 for testing. The fast subset consists of additional 8 sequences with 740 frames in total, captured under fast camera movement of fast moving scenes to investigate how the proposed approach generalizes to real motion blur. However, there is no groundtruth data available on this subset.
+
+Method comparison. We conduct extensive comparisons with recent motion deblurring methods with available
+
+Table 1. Single-image motion deblurring performance on the GoPro dataset.
+
+| Models | DCP [29] | MBR [42] | FLO [11] | EVS [15] | SRN [43] | SVR [52] | DMS [25] | MPN [50] | BHA [31] | Ours |
| PSNR | 23.50 | 25.30 | 26.05 | 26.98 | 30.26 | 29.18 | 29.08 | 31.50 | 29.06 | 31.79 |
| SSIM | 0.834 | 0.851 | 0.863 | 0.892 | 0.934 | 0.931 | 0.914 | 0.948 | 0.943 | 0.949 |
+
+
+Figure 4. Visual comparisons on the GoPro dataset. From left to right, we show two examples with the blurred image, results of MPN [50], BHA [31] and our approach, as well as groundtruth sharp image, respectively. Zoom in for better view.
+
+Table 2. Video reconstruction performance on the GoPro dataset.
+
+| Models | CIE [38] | CIE+SRN* | EVS [15] | BHA [31] | Ours |
| PSNR | 25.84 | 26.34 | 25.62 | 28.49 | 29.67 |
| SSIM | 0.790 | 0.809 | 0.856 | 0.920 | 0.927 |
+
+*A hybrid baseline that adopts CIE to reconstruct images first, then SRN to deblur each image. See [31] for details.
+
+results and/or codes. They include image-based methods: DCP [29], MBR [42], FLO [11], DMS [25], EVS [15], SRN [43], SVR [52] and MPN [50], and the state-of-the-art event-based motion deblurring method BHA [31]. We also compare with three event-based video reconstruction methods, including CIE [38], MRL [24] and the state-of-the-art learning-based approach ETV [36]. PSNR and SSIM metrics are used for quantitative evaluation.
+
+Implementation details. For both datasets, our training adopts a batch size of 2 training pairs and Adam optimizer. The network is trained for 400 epochs, with a learning rate $10^{-4}$ at the beginning and linearly decayed to zero starting from the 200th epoch. All the components of the network are jointly trained from scratch.
+
+# 5.2. Comparisons with State-of-the-Art Models
+
+On the GoPro dataset, we report the results on both single image deblurring (i.e. only recovering the middle frame) and video reconstruction (i.e. recover all the sharp frames) in Table 1 and 2, respectively. Numbers of other approaches are directly taken from papers. Our approach achieves the top place in both tasks, demonstrating the advantages of event-assisted deblurring than purely relying on images, and the superiority of the proposed framework over physical reconstruction model. We show visual comparisons on two fast moving scenes in Fig. 4: while image-based method MPN cannot well address such blur, BHA is sensitive to the noise of events especially along object edges. Our approach
+
+generates cleaner and sharper results.
+
+Note that GoPro dataset mainly presents small to moderate motion blur, thus the blurred input is of good quality and improvement from events is marginal. Thus recent powerful architectures SRN and MPN get very promising results though they do not see events. For this reason, we compare our approach with state-of-the-art methods on the proposed Blur-DVS dataset, in which severe motion blur are more universal. Again, we report results on single image deblurring (Table 3) and video reconstruction (Table 4) tasks. Note that for fair comparisons, The learning-based methods SRN, MPN and ETV are finetuned on the training set of Blur-DVS. We also compare with their enhanced versions that see both image and events: for image-based methods SRN and MPN, we concatenate the input blurred image with all the 48 (8 binned frames in each time interval and $(7 - 1)$ intervals) event frames. For the event-based method ETV, we also feed the blurred image along with the events to each of its recurrent reconstruction step. We denote these variants as $\mathrm{SRN + }$ , MPN+ and $\mathrm{ETV + }$ , respectively.
+
+In Table 3 and 4, the proposed approach achieves the best results. It also outperforms all the enhanced variants, demonstrating the effectiveness of the proposed framework. Fig. 5 illustrates that: 1) in case of fast motion, image-based cues alone are not sufficient, limiting performance of MPN; 2) the physical model BHA is prone to noise and presents unaddressed blur due to the lossy sampling mechanism of events; 3) event-based reconstruction methods CIE, MRL and ETV do not restore scene contrast correctly due to the lack of image guidance and/or the simplified physical model. Our approach does not suffer the mentioned issues, and presents sharper results even than the enhanced image+event variants equipped with powerful architectures.
+
+Finally, we analyse the generalization behavior to realworld motion blur. As shown in Fig. 6, the proposed ap
+
+Table 3. Single-image deblurring performance on the Blur-DVS dataset.
+
+| Models | DMS [25] | SRN [43] | SRN+* | MPN [50] | MPN+* | CIE [38] | MRL [24] | ETV [36] | ETV+* | BHA [31] | Ours |
| PSNR | 20.48 | 20.21 | 24.92 | 23.52 | 26.08 | 19.02 | 10.59 | 16.89 | 24.81 | 22.43 | 26.48 |
| SSIM | 0.572 | 0.567 | 0.821 | 0.753 | 0.831 | 0.478 | 0.195 | 0.597 | 0.790 | 0.715 | 0.839 |
+
+*SRN+, MPN+ and ETV+ denote enhanced versions of SRN, MPN, ETV respectively. See text for details.
+
+
+Figure 5. Representative results of two examples generated by different approaches on the slow subset of Blur-DVS dataset. More results can be found in our supplementary material. Zoom in for better view.
+
+Table 4. Video reconstruction performance on Blur-DVS dataset.
+
+| Models | CIE [38] | MRL [24] | ETV [36] | ETV+ | BHA [31] | Ours |
| PSNR | 18.94 | 10.57 | 16.60 | 24.10 | 22.06 | 25.33 |
| SSIM | 0.473 | 0.194 | 0.587 | 0.777 | 0.699 | 0.827 |
+
+proach achieves the best visual quality. We suspect that the explicit modeling of motion deblurring and introduction of strong deblurring priors may alleviate the learning difficulty and avoid potential overfitting in more black-box architectures. In practice we find such improvement consistent on real data, as demonstrated by more results on the fast subset provided in our supplementary material.
+
+# 5.3. Performance Analysis
+
+Analysing different components. We isolate the important algorithm components to see their contributions to the final performance, and summarize the results in Table 5 and Fig. 7. As it shows, each component is necessary to improve the PSNR and SSIM of the results. Using image appearance only without events (App.) cannot deblur the image well. Using events only, on the other hand, recovers plenty of details but intensity contrast is not well recovered (see Fig. 7
+
+Table 5. Component analysis on the Blur-DVS dataset. "App." and "event" denotes using the blurred image appearance and event data as input, respectively. "MC" and "DEF" refer to the motion compensation and directional event filtering modules, respectively.
+
+| App. | Event | +MC | +DEF | PSNR | SSIM |
| ✓ | ✗ | ✗ | ✗ | 16.50 | 0.418 |
| ✗ | ✓ | ✓ | ✗ | 16.38 | 0.560 |
| ✓ | ✓ | ✗ | ✗ | 23.39 | 0.760 |
| ✓ | ✓ | ✓ | ✗ | 24.71 | 0.786 |
| ✓ | ✓ | ✓ | ✓ | 25.33 | 0.827 |
+
+(b)). Using both input signals (App. + event) achieves better results, but the reconstructed image is not very smooth due to noise (e.g. the ground in Fig. 7 (c)). Further incorporating motion compensation (+MC) helps in these aspects as it imposes temporal smoothness. Finally, further introducing the directional event filtering module (+DEF), sharper results and richer details can be generated thanks to the learned boundary guidance.
+
+Justification of the DEF module. In Table 6, we justify the necessity of the proposed directional event filtering module. Here, "w/o guid." does not include boundary guidance in the whole pipeline. On the contrary, "guid
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6. Representative results generated by different approaches on the fast subset (real-world motion blur) of Blur-DVS dataset. More results can be found in our supplementary material. Zoom in for better view.
+(a) App.
+
+
+(b) Event
+
+
+(c) App. + Event
+
+
+(d) +MC
+Figure 7. Visually analysing the contributions of different components on the DVS-Blur dataset. See text for details.
+
+
+(e) +DEF
+
+
+(f) GT
+
+Table 6. Analysing the directional event filtering module on the DVS-Blur dataset. See text for details.
+
+| Models | guid. only | w/o guid. | full | +param. |
| PSNR | 25.16 | 24.71 | 25.33 | 24.64 |
| SSIM | 0.816 | 0.786 | 0.827 | 0.788 |
+
+only." discards event features in each sequential deblurring step while using boundary guidance only as additional cue. We further design a variant "+"param.", which does not incorporate DEF but has additional convolution layers in the encoder of process network which exceeds the current parameter size. Results show that the learned boundary guidance greatly improves the estimation (from 0.786 to 0.827 in SSIM), and itself without other cues can already leads to promising results. Simply enlarging the network size, however, does not observe meaningful improvement.
+
+In Fig. 8, we visualize the impact of learned boundary guidance. Note how the network learns to select different time centers according to the scene's motion (Fig. 8 (c)). Boundary guidance improves the sharpness of the scene significantly and recovers missing details (Fig. 8 (e) and (f)).
+
+Low-light photography. A potential application of the proposed approach is low-light photography, as shown in Fig 9. The short-exposure (13ms) image is light-starved. The long-exposure (104ms) one, however, may suffer severe motion blur. Leveraging event cues, our approach generates natural results without such blur.
+
+
+(a) Accumulated events
+
+
+(b) Boundary guidance
+
+
+(c) Temporal centers
+
+
+(d) Result w/o guidance
+
+
+(e) Result w/ guidance
+
+
+(f) Ground Truth
+
+
+Figure 8. Visualizing learned boundary guidance. Note how motion boundaries from different time stamps are selected in the attention map (c) (red for large value and blue for small values).
+(a) Short exposure (b) Long exposure
+Figure 9. Low-light photography using our approach. Images and events are captured with DAVIS240C camera in an indoor scene.
+
+
+
+(b) Long exposure
+
+
+(c) Events
+
+
+(d) Our result
+
+# 6. Conclusion
+
+In this work, we propose to extract a video from a severe motion-blurred image under the assistance of events. To this end, a novel deep learning architecture is proposed to effectively fuse appearance and motion cues at both global and local granularity. Furthermore, sharp event boundary guidance is extracted to improve reconstructed details with a novel directional event filtering module. Extensive evaluations show that the proposed approach achieves superior performance than various existing image and event-based methods, on both synthetic and real-world datasets.
+
+Acknowledgements. We thank the reviewers for their valuable feedback. This work is supported by Beijing Postdoctoral Research Foundation (Grant No. ZZ-2019-89), National Key R&D Program of China under contract No. 2017YFB1002201, National Natural Science Fund for Distinguished Young Scholar (Grant No. 61625204) and partially supported by the Key Program of National Science Foundation of China (Grant No. 61836006).
+
+# References
+
+[1] A. Andreopoulos, H. J. Kashyap, T. K. Nayak, A. Amir, and M. D. Flickner. A low power, high throughput, fully event-based stereo system. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7532-7542, 2018.
+[2] Y. Bahat, N. Efrat, and M. Irani. Non-uniform blind deblurring by reblurring. In IEEE International Conference on Computer Vision (ICCV), pages 3306-3314, 2017.
+[3] P. Bardow, A. J. Davison, and S. Leutenegger. Simultaneous optical flow and intensity estimation from an event camera. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 884-892, 2016.
+[4] H. J. Bierens. The Nadaraya-Watson Kernel regression function estimator. Serie Research Memoranda, (0058), 1988.
+[5] C. Brandli, R. Berner, M. Yang, S.-C. Liu, and T. Delbrück. A $240 \times 180$ 130 db $3\mu s$ latency global shutter spatiotemporal vision sensor. IEEE Journal of Solid-State Circuits, 49(10):2333-2341, 2014.
+[6] A. Chakrabarti. A neural approach to blind motion deblurring. In European Conference on Computer Vision (ECCV), pages 221-235, 2016.
+[7] S. Cho and S. Lee. Fast motion deblurring. ACM Transactions on Graphics, 28(5):145, 2009.
+[8] J. Dong, J. Pan, Z. Su, and M.-H. Yang. Blind image deblurring with outlier handling. In IEEE International Conference on Computer Vision (ICCV), pages 2497-2505, 2017.
+[9] A. Dosovitskiy, P. Fischer, E. Ilg, P. Häusser, C. Hazirbas, V. Golkov, P. van der Smagt, D. Cremers, and T. Brox. Flownet: Learning optical flow with convolutional networks. In IEEE International Conference on Computer Vision (ICCV), pages 2758-2766, 2015.
+[10] G. Gallego, H. Rebecq, and D. Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018.
+[11] D. Gong, J. Yang, L. Liu, Y. Zhang, I. D. Reid, C. Shen, A. Hengel, and Q. Shi. From motion blur to motion flow: A deep learning solution for removing heterogeneous motion blur. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3806-3815, 2017.
+[12] M. Hirsch, C. J. Schuler, S. Harmeling, and B. Schölkopf. Fast removal of non-uniform camera shake. In IEEE International Conference on Computer Vision (ICCV), pages 463-470, 2011.
+[13] P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros. Image-to-image translation with conditional adversarial networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5967-5976, 2017.
+[14] H. Jiang, D. Sun, V. Jampani, M.-H. Yang, E. G. Learned-Miller, and J. Kautz. Super slomo: High quality estimation of multiple intermediate frames for video interpolation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9000-9008, 2018.
+[15] M. Jin, G. Meishvili, and P. Favaro. Learning to extract a video sequence from a single motion-blurred image. In
+
+IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6334-6342, 2018.
+[16] T. H. Kim, B. Ahn, and K. M. Lee. Dynamic scene deblurring. In IEEE International Conference on Computer Vision (ICCV), pages 3160-3167, 2013.
+[17] Y.-S. Ho L. Wang, S. M. Mostafavi and K.-J. Yoon. Event-based High Dynamic Range Image and Very High Frame Rate Video Generation using Conditional Generative Adversarial Networks. 2019.
+[18] W.-S. Lai, J.-B. Huang, O. Wang, E. Shechtman, E. Yumer, and M.-H. Yang. Learning blind video temporal consistency. In European Conference on Computer Vision, pages 179-195, 2018.
+[19] P. Lichtsteiner, C. Posch, and T. Delbrück. A $128 \times 128$ 120 db $15~\mu s$ latency asynchronous temporal contrast vision sensor. Journal of Solid-State Circuits, 43(2):566-576, 2008.
+[20] M. Liu and T. Delbrück. Adaptive time-slice block-matching optical flow algorithm for dynamic vision sensors. In *British Machine Vision Conference (BMVC)*, page 88, 2018.
+[21] Z. Liu, R. A. Yeh, X. Tang, Y. Liu, and A. Agarwala. Video frame synthesis using deep voxel flow. In IEEE International Conference on Computer Vision (ICCV), pages 4473-4481, 2017.
+[22] T. Michaeli and M. Irani. Blind deblurring using internal patch recurrence. In European Conference on Computer Vision (ECCV), pages 783-798, 2014.
+[23] A. Mitrokhin, C. Fermüller, C. Parameshwara, and Y. Aloimonos. Event-based moving object detection and tracking. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1-9, 2018.
+[24] G. Munda, C. Reinbacher, and T. Pock. Real-time intensity-image reconstruction for event cameras using manifold regularisation. International Journal of Computer Vision (IJCV), 126(12):1381-1393, 2018.
+[25] S. Nah, T. H. Kim, and K. M. Lee. Deep multi-scale convolutional neural network for dynamic scene deblurring. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 257-265, 2017.
+[26] T. M. Nimisha, A. K. Singh, and A. N. Rajagopalan. Blur-invariant deep learning for blind-deblurring. In IEEE International Conference on Computer Vision (ICCV), pages 4762-4770, 2017.
+[27] M. Noroozi, P. Chandramouli, and P. Favaro. Motion deblurring in the wild. In German Conference on Pattern Recognition (GCPR), pages 65-77, 2017.
+[28] J. Pan, J. Dong, Y.-W. Tai, Z. Su, and M.-H. Yang. Learning discriminative data fitting functions for blind image deblurring. In IEEE International Conference on Computer Vision (ICCV), pages 1077-1085, 2017.
+[29] J.-S. Pan, D. Sun, H. Pfister, and M.-H. Yang. Blind image deblurring using dark channel prior. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1628-1636, 2016.
+[30] L. Pan, Y. Dai, M. Liu, and F. Porikli. Simultaneous stereo video deblurring and scene flow estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6987-6996, 2017.
+
+[31] L. Pan, C. Scheerlinck, X. Yu, R. Hartley, M. Liu, and Y. Dai. Bringing a blurry frame alive at high frame-rate with an event camera. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[32] H. Park and K. M. Lee. Joint estimation of camera pose, depth, deblurring, and super-resolution from a blurred image sequence. In IEEE International Conference on Computer Vision (ICCV), pages 4623-4631, 2017.
+[33] S. Pini, G. Borghi, R. Vezzani, and R. Cucchiara. Learn to See by Events: RGB Frame Synthesis from Event Cameras. ArXiv preprints arXiv:1812.02041 [cs.CV], 2018.
+[34] B. Ramesh, S. Zhang, Z. W. Lee, Z. Gao, G. Orchard, and C. Xiang. Long-term object tracking with a moving event camera. In *British Machine Vision Conference (BMVC)*, page 241, 2018.
+[35] H. Rebecq, D. Gehrig, and D. Scaramuzza. ESIM: an open event camera simulator. Conference on Robotics Learning (CoRL), 2018.
+[36] H. Rebecq, R. Ranftl, V. Koltun, and D. Scaramuzza. Events-to-video: Bringing modern computer vision to event cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[37] W. Ren, J. Pan, X. Cao, and M.-H. Yang. Video deblurring via semantic segmentation and pixel-wise non-linear kernel. In IEEE International Conference on Computer Vision (ICCV), pages 1086-1094, 2017.
+[38] C. Scheerlinck, N. Barnes, and R. Mahony. Continuous-time intensity estimation using event cameras. In *Asian Confence on Compututer Vision (ACCV)*, 2018.
+[39] U. Schmidt, C. Rother, S. Nowozin, J. Jancsary, and S. Roth. Discriminative non-blind deblurring. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 604-611, 2013.
+[40] P. A. Shedligeri and K. Mitra. Photorealistic Image Reconstruction from Hybrid Intensity and Event based Sensor. ArXiv preprint arXiv:1805.0614 [cs.CV], 2018.
+[41] X. Shi, Z. Chen, H. Wang, D.-Y. Yeung, W.-K. Wong, and W.-C. Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. In Advances in Neural Information Processing Systems (NIPS), pages 802-810, 2015.
+[42] J. Sun, W. Cao, Z. Xu, and J. Ponce. Learning a convolutional neural network for non-uniform motion blur removal. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 769-777, 2015.
+[43] X. Tao, H. Gao, X. Shen, J. Wang, and J. Jia. Scale-recurrent network for deep image deblurring. In CVPR, pages 8174-8182, 2018.
+[44] P. Wieschollek, M. Hirsch, B. Schölkopf, and H. P. A. Lensch. Learning blind motion deblurring. In IEEE International Conference on Computer Vision (ICCV), pages 231-240, 2017.
+[45] L. Xiao, J. Wang, W. Heidrich, and M. Hirsch. Learning high-order filters for efficient blind deconvolution of document photographs. In European Conference on Computer Vision, pages 734-749, 2016.
+
+[46] L. Xu and J. Jia. Two-phase kernel estimation for robust motion deblurring. In European Conference on Computer Vision, pages 157-170, 2010.
+[47] Y. Yan, W. Ren, Y. Guo, R. Wang, and X. Cao. Image deblurring via extreme channels prior. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6978-6986, 2017.
+[48] C. Ye, A. Mitrokhin, C. Fermüller, J. A. Yorke, and Y. Aloimonos. Unsupervised Learning of Dense Optical Flow, Depth and Egomotion from Sparse Event Data. ArXiv preprints arXiv:1809.08625 [cs.CV], 2018.
+[49] J. Yu and G. Turk. Reconstructing surfaces of particle-based fluids using anisotropic kernels. ACM Transactions on Graphics, 32(1):5:1-5:12, 2013.
+[50] H. Zhang, Y. Dai, H. Li, and P. Koniusz. Deep stacked hierarchical multi-patch network for image deblurring. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5978-5986, 2019.
+[51] H. Zhang and D. P. Wipf. Non-uniform camera shake removal using a spatially-adaptive sparse penalty. In Advances in Neural Information Processing Systems (NIPS), pages 1556-1564, 2013.
+[52] J. Zhang, J. Pan, J. S. J. Ren, Y. Song, L. Bao, R. W. H. Lau, and M.-H. Yang. Dynamic scene deblurring using spatially variant recurrent neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2521-2529, 2018.
+[53] K. Zhang, W. Zuo, S. Gu, and L. Zhang. Learning deep CNN denoiser prior for image restoration. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2808-2817, 2017.
+[54] A. Z. Zhu, Y. Chen, and K. Daniilidis. Realtime time synchronized event-based stereo. In European Conference on Computer Vision (ECCV), pages 438-452, 2018.
+[55] W. Zuo, D. Ren, S. Gu, L. Lin, and L. Zhang. Discriminative learning of iteration-wise priors for blind deconvolution. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3232-3240, 2015.
\ No newline at end of file
diff --git a/learningeventbasedmotiondeblurring/images.zip b/learningeventbasedmotiondeblurring/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..0b1356a8c1d761bfc241c4af9c8b5b3ca4ebc706
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a699cdd7283a4684df7cf4cb9f80ebe749f0c5860354b294541718a64476091d
+size 821160
diff --git a/learningeventbasedmotiondeblurring/layout.json b/learningeventbasedmotiondeblurring/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..87e3e6ab18af2900e23c80d1f9eb03f455f4f479
--- /dev/null
+++ b/learningeventbasedmotiondeblurring/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d8bb1c263bfce44c0178da6a796b64019d91426722c121f4eec72b0d2ae4150d
+size 520463
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_content_list.json b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..893cd57d87e43f1f66141829776e3c1a687a204c
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78d6885b81a3dd1652bb60d24de9ec9f299506cfc89c4390f70fd74dc7999d8e
+size 82751
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_model.json b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..793efbeae98f6f145f2d1469f8e85c3c5eaa079a
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a7d5c105cb8253ffb30d6dcd00ee82ee2074897ef8aa16fec2375b2e7bf6305
+size 100740
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_origin.pdf b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6f76c8ec06bbe00101b35b2ca6bfba23958753cd
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/6a68928d-af66-471c-bc45-f66289ca4b1a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23b2b4b82320c7ba22b65dbd112879627c36404a74db758a2a64eb6c155885ad
+size 2932273
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/full.md b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b5d1ac76b6e0f11ab0bc9ffb59d785ed13af19af
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/full.md
@@ -0,0 +1,286 @@
+# Learning Fast and Robust Target Models for Video Object Segmentation
+
+Andreas Robinson*
+
+Felix Jaremoto Lawin $^{1*}$
+
+Martin Danelljan
+
+Fahad Shahbaz Khan $^{1,3}$
+
+Michael Felsberg1
+
+$^{1}$ CVL, Linköping University, Sweden
+
+$^{2}$ CVL, ETH Zurich, Switzerland
+
+$^{3}$ IIAI, UAE
+
+# Abstract
+
+Video object segmentation (VOS) is a highly challenging problem since the initial mask, defining the target object, is only given at test-time. The main difficulty is to effectively handle appearance changes and similar background objects, while maintaining accurate segmentation. Most previous approaches fine-tune segmentation networks on the first frame, resulting in impractical frame-rates and risk of overfitting. More recent methods integrate generative target appearance models, but either achieve limited robustness or require large amounts of training data.
+
+We propose a novel VOS architecture consisting of two network components. The target appearance model consists of a light-weight module, which is learned during the inference stage using fast optimization techniques to predict a coarse but robust target segmentation. The segmentation model is exclusively trained offline, designed to process the coarse scores into high quality segmentation masks. Our method is fast, easily trainable and remains highly effective in cases of limited training data. We perform extensive experiments on the challenging YouTube-VOS and DAVIS datasets. Our network achieves favorable performance, while operating at higher frame-rates compared to state-of-the-art. Code and trained models are available at https://github.com/andr345/frtm-vos.
+
+# 1. Introduction
+
+The problem of video object segmentation (VOS) has a variety of important applications, including object boundary estimation for grasping [1, 25], autonomous driving [38, 40], surveillance [10, 13] and video editing [33]. The task is to predict pixel-accurate masks of the region occupied by a specific target object, in every frame of a given video sequence. This work focuses on the semi-supervised setting, where a target ground truth mask is provided in the first frame. Challenges arise in dynamic environments with similar background objects and when the target undergoes
+
+
+Image Target model output Segmentation
+
+
+
+
+Figure 1. During inference, our target model learns to produce segmentation score maps (center) of the target. As demonstrated in these examples, the target scores remain robust, despite difficult challenges, including distracting objects and appearance changes. Our segmentation network is trained to refine these coarse target score maps into a high-quality final object segmentation (right).
+
+considerable appearance changes or occlusions. Successful video object segmentation therefore requires both robust and accurate target pixel classification.
+
+Aiming to achieve a robust target-specific segmentation, several methods [4, 30, 36, 47] fine-tune a generic segmentation network on the first frame, given the ground-truth mask. Although capable of generating accurate segmentation masks under favorable circumstances, these methods suffer from low frame-rates, impractical for many real world applications. Moreover, fine-tuning is prone to overfit to a single view of the scene, while degrading generic segmentation functionality learned during offline training. This limits performance in more challenging videos involving drastic appearance changes, occlusions and distractor objects [48]. Further, the crucial fine-tuning step is not included in the offline training stage, which therefore does not simulate the full inference procedure.
+
+Recent works [20, 22, 33, 34, 44] address these limitations by employing internal models of the target and back
+
+ground appearance. They are based on, e.g., feature concatenation [33], feature matching [20, 34, 44] or Gaussian models [22]. Such generative models have the advantage of facilitating efficient closed-form solutions that are easily integrated into neural networks. A drawback to these methods is the demand for large amounts of data in order to learn representations applicable for the internal models [33, 34, 46]. Due to the limited availability of annotated video data, these methods rely heavily on pre-training on image segmentation and synthesized VOS data via augmentation techniques. On the other hand, discriminative methods generally yield superior predictive power [32] and have thus been preferred in many vision tasks, including image recognition [39], object detection [28] and tracking [26]. In this work, we therefore tackle the problem of integrating a discriminative model of the target appearance into a VOS architecture.
+
+Our approach integrates a light-weight discriminative target model and a segmentation network, for modeling the target appearance and generating accurate segmentation masks. Operating on deep features, the proposed target model learns during inference to provide robust segmentation scores. The segmentation network is designed to process features with the segmentation scores as guidance. During offline training the network learns to accurately adhere to object edges and to suppress erroneous classification scores from the target model, see Figure 1. To learn the network parameters, we propose a training strategy that simulates the inference stage. This is realized by optimizing the target model on reference frames in each batch, and back-propagating the segmentation errors on corresponding validation frames. Contrary to fine-tuning based methods, the target adaption process is thus fully simulated during the offline training stage. During inference we keep the segmentation network fixed, while the target-specific learning is entirely performed by the target appearance model. Consequently, the segmentation network is target agnostic, retaining generic object segmentation functionality.
+
+Unlike previous state-of-the-art methods, our discriminative target model requires no pre-training for image and synthetic video segmentation data. Our final approach, consisting of a single network architecture, is trained on VOS data in a single phase. Further, the employment of Gauss-Newton based optimization enables real-time video segmentation. We perform experiments on the DAVIS [37] and YouTube-VOS 2018 [48] datasets and demonstrate the impact of the components of our proposed approach in an ablative analysis. We further compare our approach to several state-of-the-art methods. Despite its simplicity, our approach achieves an overall score of 76.7 on DAVIS 2017 and 72.1 on YouTube-VOS, while operating at 22 frames per second (FPS). We also evaluate a faster version of our approach that achieves a speed of 41 FPS, with only a slight degradation in segmentation accuracy.
+
+# 2. Related work
+
+The task of video object segmentation has seen extensive study and rapid development in recent years, largely driven by the introduction and evolution of benchmarks such as DAVIS [37] and YouTube-VOS [48].
+
+First-frame fine-tuning: Most state-of-the-art approaches train a segmentation network offline, and then fine-tune it on the first frame [4, 30, 36, 47] to learn the target-specific appearance. This philosophy was extended [43] by additionally fine-tuning on subsequent video frames. Other approaches [8, 19, 29] further integrate optical flow as an additional cue. While obtaining impressive results on the DAVIS 2016 dataset, the extensive fine-tuning leads to impractically long run-times. Furthermore, such extensive fine-tuning is prone to overfitting, a problem only partially addressed by heavy data augmentation [23].
+
+Non-causal methods: Another line of research approaches the VOS problem by allowing non-causal processing [2, 9, 21, 27]. In this work, we focus on the causal setting in order to accommodate real-time applications.
+
+Mask propagation: Several recent methods [22, 33, 34, 36, 46, 49] employ a mask-propagation module to improve spatio-temporal consistency of the segmentation. In [36], the model is learned offline to predict the target mask through refinement of the previous frame's segmentation output. To further avoid first-frame fine-tuning, some approaches [33, 49] concatenate the current frame features with the previous mask and a target representation generated in the first frame. Unlike these methods, we do not explicitly enforce spatio-temporal consistency through mask-propagation. Instead, we use previous segmentation masks as training data for the discriminative model.
+
+Feature matching: Recent methods [6, 20, 33, 34, 44, 45, 46] incorporate feature matching to locate the target object. Rather than fine-tuning the network on the first frame, these methods first construct appearance models from features corresponding to the initial target labels. Features from incoming frames are then classified using techniques inspired by classical clustering methods [6, 22] or feature matching [20, 44, 46]. In [34], a dynamic memory is used to combine feature matching from multiple previous frames.
+
+Tracking: Efficient online learning of discriminative target-specific appearance models has been explored in visual tracking [15, 17]. Recently, optimization-based trackers [3, 11, 12] have achieved impressive results on benchmarks. These methods train convolution filters using efficient optimization to discriminate between target and background. The close relation between the two problem domains is made explicit in [7], where object trackers are used as external components to locate the target. Gauss-Newton has previously been used in object segmentation [41] for pose estimation of known object shapes. In contrast, we do not employ off-the-shelf trackers to predict the target or rely
+
+on target pose estimation. Instead we take inspiration from the optimization-based learning of a discriminative model, in order to capture the target object appearance.
+
+# 3. Method
+
+In this work, we tackle the problem of predicting accurate segmentation masks of a target object, defined in the first frame of the video. This is addressed by constructing two network modules, $D$ and $S$ , specifically designed for target modeling and segmentation respectively. The target model $D(\mathbf{x}; \mathbf{w})$ takes features $\mathbf{x}$ as input and generates a coarse, but robust, segmentation output $\mathbf{s} = D(\mathbf{x}; \mathbf{w})$ of the target object. It is parametrized by the weights $\mathbf{w}$ , which are solely learned during inference using the first-frame ground-truth, in order to capture the appearance of the target object.
+
+The coarse segmentation scores $\mathbf{s}$ , generated by the target model $D$ , is passed to the segmentation network $S(\mathbf{s},\mathbf{x};\theta)$ , additionally taking backbone features $\mathbf{x} = F(I)$ . The parameters $\theta$ of the segmentation network is only trained during the offline training stage to predict the final high-resolution segmentation of the target. The coarse segmentation $\mathbf{s}$ thus serves as a robust guide, indicating the target location. Crucially, this allows the segmentation network to remain target agnostic, and learn generic segmentation functionality. Since $S$ is trained with coarse segmentation inputs $\mathbf{s}$ generated by the target model, it learns to enhance its prediction and correct mistakes.
+
+During inference, we update the target model using the segmentation masks generated by $S$ . Specifically, the mask and associated features are stored in a memory $\mathcal{M}$ . Before the next incoming frame, we further adapt our model to the target appearance by re-optimizing $D$ over all samples in $\mathcal{M}$ . In contrast to simply re-training on the latest frame, adding more training data to $\mathcal{M}$ over time, reduces the risk for model drifting. Our full VOS architecture is illustrated in Figure 2.
+
+# 3.1. Target model
+
+We aim to develop a powerful and discriminative target appearance model, capable of differentiating between the target and background image regions. To successfully accommodate the VOS problem, the model must be robust to appearance changes and distractor objects. Moreover, it needs to be easily updated with new data and efficiently trainable. To this end, we employ a light-weight linear model $D(\mathbf{x};\mathbf{w})$ realized as two convolutional layers,
+
+$$
+\mathbf {s} = D (\mathbf {x}; \mathbf {w}) = \mathbf {w} _ {2} * \left(\mathbf {w} _ {1} * \mathbf {x}\right), \tag {1}
+$$
+
+with parameters $\mathbf{w}$ . These are trained exclusively during inference with image features $\mathbf{x}$ and the target segmentation mask $\mathbf{y}$ given in the first video frame. It then takes input
+
+
+Figure 2. Overview of our video segmentation architecture. Top left: Feature maps are extracted from the first frame. Top center: The features and given ground-truth mask are then stored in memory, and used by the optimizer to train the target model. Bottom left-center: In subsequent frames, features are extracted and then classified as foreground or background by the target model, forming low-resolution score maps. Bottom right: The score maps are refined to high-resolution segmentation masks in the segmentation network. The high resolution masks and associated features are continuously added to the memory, and the target model is periodically updated by the optimizer.
+
+feature maps $\mathbf{x}$ from subsequent video frames and outputs coarse segmentation scores s. The factorized formulation (1) is used for efficiency, where the first layer $\mathbf{w}_1$ reduces the feature dimensionality and the second layer $\mathbf{w}_2$ computes the actual segmentation scores.
+
+Fundamental to our approach, the target model parameters $\mathbf{w}$ must be learned with minimal computational impact. To enable the deployment of fast converging optimization techniques, we adopt an $L^2$ loss given by,
+
+$$
+\mathcal {L} _ {D} (\mathbf {w}; \mathcal {M}) = \sum_ {k} \gamma_ {k} \| \mathbf {v} _ {k} \cdot (\mathbf {y} _ {k} - U (D (\mathbf {x} _ {k})) \| ^ {2} + \sum_ {j} \lambda_ {j} \| \mathbf {w} _ {j} \| ^ {2}. \tag {2}
+$$
+
+Here, the parameters $\lambda_{j}$ control the regularization term and $\mathbf{v}_k$ are weight masks balancing the impact of target and background pixels. $U$ denotes bilinear up-sampling of the output from the target model to the spatial resolution of the labels $\mathbf{y}_k$ . The memory $\mathcal{M} = \left\{\left(\mathbf{x}_k,\mathbf{y}_k,\gamma_k\right)\right\}_{k = 1}^K$ consists of sample feature maps $\mathbf{x}_k$ , target labels $\mathbf{y}_k$ and sample weights $\gamma_{k}$ . During inference, $\mathcal{M}$ is updated with new samples from the video sequence. To add more variety in the initial frame, we generate additional augmented samples $\left\{\left(\tilde{\mathbf{x}}_k,\tilde{\mathbf{y}}_k,\gamma_k\right)\right\}_k$ using the initial image $I_{0}$ and labels $\mathbf{y}_0$ , see supplement for more details. Compared to blindly updating on the latest frame [43], $\mathcal{M}$ provides a controlled means of adding new samples while keeping past frames in memory by setting appropriate sample weights $\gamma_{k}$ .
+
+Optimization: We employ the Gauss-Newton (GN) based strategy from [11] to optimize the parameters $\mathbf{w}$ . In comparison to the commonly used gradient descent based approaches, this strategy has significantly faster convergence properties [31]. In each iteration, the optimal increment
+
+$\Delta \mathbf{w}$ is found using a quadratic approximation of the loss in (2)
+
+$$
+\mathcal {L} _ {D} (\mathbf {w} + \Delta \mathbf {w}) \approx \Delta \mathbf {w} ^ {T} J _ {\mathbf {w}} ^ {T} J _ {\mathbf {w}} \Delta \mathbf {w} + 2 \Delta \mathbf {w} ^ {T} J _ {\mathbf {w}} ^ {T} r _ {\mathbf {w}} + r _ {\mathbf {w}} ^ {T} r _ {\mathbf {w}}. \tag {3}
+$$
+
+Here, $r_{\mathbf{w}}$ contains the residuals (2) as $\sqrt{\gamma_k}\mathbf{v}_k\cdot (\mathbf{y}_k - U(D(\mathbf{x}_k)))$ and $\sqrt{\lambda_j}\mathbf{w}_j$ and $J_{\mathbf{w}}$ is the Jacobian of the residuals $r_{\mathbf{w}}$ at $\mathbf{w}$ and. The objective (3) results in a positive definite quadratic problem, which we minimize over $\Delta \mathbf{w}$ with Conjugate Gradient (CG) descent [18]. We then update $\mathbf{w}\gets \mathbf{w} + \Delta \mathbf{w}$ and execute the next GN iteration.
+
+Pixel weighting: To address the imbalance between target and background, we employ a weight mask $\mathbf{v}$ in (2) to ensure that the target influence is not too small relative to the usually much larger background region. We define the target influence as the fraction of target pixels in the image $\dot{\kappa}_k = N^{-1}\sum_n\mathbf{y}_k(n)$ , where $n$ is the pixel index and $N$ the total number of pixels. The weight mask is then defined as
+
+$$
+\mathbf {v} _ {k} = \left\{ \begin{array}{l l} \kappa / \hat {\kappa} _ {k}, & (\mathbf {y} _ {k}) _ {n} = 1 \\ (1 - \kappa) / (1 - \hat {\kappa} _ {k}), & (\mathbf {y} _ {k}) _ {n} = 0 \end{array} \right. \tag {4}
+$$
+
+where $\kappa = \max (\kappa_{\min},\hat{\kappa}_k)$ is the desired and $\hat{\kappa}_k$ the actual target influence. We set $\kappa_{\mathrm{min}} = 0.1$ in our approach.
+
+# 3.2. Segmentation Network
+
+While the target model provides robust but coarse segmentation scores, the final aim is to generate an accurate segmentation mask of the target at the original image resolution. To this end, we introduce a segmentation network, that processes the coarse score s along with backbone features. The network consists of two types of building blocks: a target segmentation encoder (TSE) and a refinement module (see Figure 3). From these we construct a U-Net based architecture for object segmentation as in [50]. Unlike most state-of-the-art methods for semantic segmentation [5, 51], the U-Net structure does not rely on dilated convolutions, but effectively integrates low-resolution deep feature maps. This is crucial for reducing the computational complexity of our target model during inference.
+
+The segmentation network takes features maps $\mathbf{x}^d$ as input from multiple depths in the backbone feature extractor network, with decreased resolution at each depth $d$ . For each layer, $\mathbf{x}^d$ along with the coarse scores $\mathbf{s}$ are first processed by a TSE block $T^d$ . The refinement module $R^d$ then inputs the resulting segmentation encoding generated by $T^d$ and the refined outputs $\mathbf{z}^{d + 1}$ from the preceding deeper layer $\mathbf{z}^d = R^d (T^d (\mathbf{x}^d,\mathbf{s}),\mathbf{z}^{d + 1})$ . The refinement modules are comprised of two residual blocks and a channel attention block (CAB), as in [50]. For the deepest block we set $\mathbf{z}^{d + 1}$ to an intermediate projection of $\mathbf{x}^d$ inside $T^d$ . The output $\mathbf{z}^1$ at the shallowest layer is processed by two convolutional layers, providing the final refined segmentation output $\hat{\mathbf{y}}$ .
+
+
+Figure 3. Illustration of one block in our segmentation network $S$ . Target scores $s$ are resized to matching stride and merged with the backbone feature $\mathbf{x}^d$ , in the target segmentation encoder (TSE). The output from the TSE is further processed by a residual block before it is combined with the output from the deeper segmentation block in the CAB module. Finally, the output from the CAB module is processed by another residual block and sent to the next segmentation block. The complete network has four such layers.
+
+Target segmentation encoder: Seeking to integrate features and scores, we introduce the target segmentation encoder (TSE). It processes features in two steps, as visualized in Figure 3 (right). First, we project the backbone features to 64 channels to reduce the subsequent computational complexity. We maintain 64 channels throughout the segmentation network, keeping the number of parameters low. After projection, the features are concatenated with the segmentation score s and encoded by three convolutional layers.
+
+# 3.3. Offline Training
+
+We learn the parameters in our segmentation network offline by training on VOS training data. To this end, we propose a training scheme to simulate the inference stage. The network is trained on samples consisting of one reference frame and one or more validation frames. These are all randomly selected from the same video sequence. A training iteration is then performed as follows: We first optimize the target model weights $\mathbf{w}$ , described in Section 3.1, based on the reference frame. We then apply our full network, along with the learned target model, on the validation frames to predict the target segmentations. The parameters in the network are learned by back-propagating through the binary cross-entropy loss with respect to the ground-truth masks.
+
+During offline training, we only learn the parameters of the segmentation network, and freeze the weights of the feature extractor. Since the target model only receives backbone features, we can pre-learn and store the target model weights for each sequence. The offline training time is therefore not significantly affected by the learning of $D$ .
+
+The network is trained in a single phase on VOS data. We select one reference frame and two validation frames per sample and train the segmentation network with the ADAM optimizer [24]. We start with the learning rate $\alpha = 10^{-3}$ , moment decay rates $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ and weight decay $10^{-5}$ , and train for about $10^{6}$ iterations, split into 120 epochs. The learning rate is then reduced to $\alpha = 10^{-4}$ , and we train for another 60 epochs. With pre-learned target model weights, the training is completed in less than a day.
+
+| Algorithm 1 Inference |
| Input: Images Ii, target y0 |
| 1: M0(I0,y0) = { (x̂k, ŷk, γk) }Kk=1 | # Init dataset., sec 3.1 |
| 2: w0 = optimize(LD(w;M0)) | # Init D, sec 3.1 |
| 3: for i = 1,2,... do |
| 4: xi = F(Ii) | # Extract features |
| 5: si = D(xi;wi-1) | # Predict target, sec 3.1 |
| 6:帽子i = S(xi,si) | # Segment target, sec 3.2 |
| 7:Mi = extend(xi,帽子iγi;Mi-1) | # Extend dataset |
| 8: if i mod ts = 0 then | # Update D every ts frame |
| 9: wi = optimize(LD(w;,Mi)) |
+
+# 3.4. Inference
+
+During inference, we apply our video segmentation procedure as summarized in Algorithm 1. We first generate the augmented dataset $\mathcal{M}_0$ , as described in Section 3.1, given the initial image $\mathbf{I}_0$ and the corresponding target mask $\mathbf{y}_0$ . We then optimize the target model $D$ on this dataset. In the consecutive frames, we first predict the coarse segmentation scores $\mathbf{s}$ using $D$ . Next, we refine $\mathbf{s}$ with the network $S$ (Section 3.2). The resulting segmentation output $\hat{\mathbf{y}}_i$ along with the input features $\mathbf{x}_i$ are added to the dataset. Each new sample $(\mathbf{x}_i, \hat{\mathbf{y}}_i, \gamma_i)$ is first given a weight $\gamma_i = (1 - \eta)^{-1} \gamma_{i-1}$ , with $\gamma_0 = \eta$ . We then normalize the sample weights to sum to unity. The parameter $\eta < 1$ controls the update rate, such that the most recent samples in the sequence are prioritized in the re-optimization of the target model $D$ . For practical purposes, we limit the maximum capacity $K_{\mathrm{max}}$ of the dataset. When the maximum capacity is reached, we remove the sample with the smallest weight from $\mathcal{M}_{i-1}$ before inserting a new one. In all our experiments we set $\eta = 0.1$ and $K_{\mathrm{max}} = 80$ .
+
+During inference, we optimize the target model parameters $\mathbf{w}_1$ and $\mathbf{w}_2$ on the current dataset $\mathcal{M}_i$ every $t_s$ -th frame. For efficiency, we keep the first layer of the target model $\mathbf{w}_1$ fixed during updates. Setting $t_s$ to a large value reduces the inference time and regularizes the update of the target model. On the other hand, it is important that the target model is updated frequently, for objects that undergo rapid appearance changes. In our approach we set $t_s = 8$ . The framework supports multi object segmentation by employing a target model for each object and fuse the final refined predictions with softmax aggregation as in [33]. We only require one feature extraction per image, since the features $\mathbf{x}_i$ are common for all target objects.
+
+# 3.5. Implementation details
+
+We implement our method in the PyTorch framework [35] and use a ResNet [16], pre-trained on ImageNet [39], as the feature extractor $F$ . Following the naming convention in Table 1 of [16], we extract four feature
+
+maps from the outputs of the blocks conv2_x through conv5_x. The target model $D$ accepts features from conv4_x and produces 1-channel score maps. Both the input features and output scores have a spatial resolution 1/16th of the input image.
+
+Target model: The first layer $\mathbf{w}_1$ has $1\times 1$ kernels reducing input features to $c = 96$ channels while $\mathbf{w}_2$ has a $3\times 3$ kernel with one output channel. During first-frame optimization, $\mathbf{w}_1$ and $\mathbf{w}_2$ are randomly initialized. Using the data augmentation (see the supplementary material), we generate a initial dataset $\mathcal{M}_0$ of 5 image and label pairs. We then optimize $\mathbf{w}_1$ and $\mathbf{w}_2$ with the Gauss-Newton algorithm outlined in Section 3.1 with $N_{\mathrm{GN}} = 5$ GN steps. We apply $N_{\mathrm{CG}} = 10$ CG iterations in all GN steps but the first one. Since the initialization is random, we reduce the number of iterations to $N_{\mathrm{CGi}} = 5$ in the first step. In the target model update step we use $N_{\mathrm{CGu}} = 10$ CG iterations, updating $\mathbf{w}_2$ every $t_s = 8$ frame, while keeping $\mathbf{w}_1$ fixed. We employ the aforementioned settings with a ResNet-101 backbone in our final approach, denoted Ours in the following sections.
+
+We additionally develop a fast version, named Oursfast, with a ResNet-18 backbone and fewer optimization steps. Specifically, we set $N_{\mathrm{GN}} = 4$ , $N_{\mathrm{CGi}} = 5$ , $N_{\mathrm{CG}} = 10$ and $N_{\mathrm{CGu}} = 5$ .
+
+# 4. Experiments
+
+We perform experiments on three benchmarks: DAVIS 2016 [37], DAVIS 2017 [37] and YouTube-VOS [48]. For YouTube-VOS, we compare on the official validation set, with withheld ground-truth. For ablative experiments, we also show results on a separate validation split of the YouTube-VOS train set, consisting of 300 videos not used for training. Following the standard DAVIS protocol, we report both the mean Jaccard $\mathcal{I}$ index and mean boundary $\mathcal{F}$ scores, along with the overall score $\mathcal{J} \& \mathcal{F}$ , which is the mean of the two. For comparisons on YouTube-VOS, we report $\mathcal{I}$ and $\mathcal{F}$ scores for classes included in the training set (seen) and the ones that are not (unseen). The overall score $\mathcal{G}$ is computed as the average over all four scores, defined in YouTube-VOS. In addition, we compare the computational speed of the methods in terms of frames per second (FPS), computed by taking the average over the DAVIS 2016 validation set. For our approach, we used a V100 GPU and included all steps in Algorithm 1 to compute the frame rates. Further results and analysis are provided in the supplement.
+
+# 4.1. Ablation study
+
+We analyze the contribution of the key components in our approach. All compared approaches are trained using the YouTube-VOS training split.
+
+Base net: We construct a baseline network to analyze the impact of our target model $D$ . This is performed by replacing $D$ with an offline-trained target encoder, and retraining
+
+the segmentation network $S$ . As for our proposed network we keep the backbone $F$ parameters fixed. The target encoder is comprised of two convolutional layers, taking reference frame features from ResNet blocks conv4_x and the corresponding target mask as input. Features (conv4_x) extracted from the test frame are concatenated with the output from the target encoder and processed with two additional convolutional layers. The output is then passed to the segmentation network $S$ in the same manner as for the coarse segmentation score s (see Section 3.2). We train this model with the same methodology as for our network.
+
+F.-T: We integrate a first-frame fine-tuning strategy into our network to compare this to our discriminative target model. For this purpose, we create an initial dataset $\mathcal{M}_0$ with 20 samples using the same sample generation procedure employed for our approach (section 3.1). We then fine-tune all components of the network, except for the feature extractor, with supervision on the target model (loss in (2)) and the pre-trained segmentation network (binary cross-entropy loss) using the ADAM optimizer with 100 iterations and a batch size of four. In this setting we omitted the proposed optimization strategy of the target model and instead initialize the parameters randomly before fine-tuning.
+
+$D$ -only - no update: To analyze the impact of the segmentation network $S$ , we remove it from our architecture and instead let the target-specific model $D$ output the final segmentations. The coarse target model predictions are upsampled to full image resolution through bilinear interpolation. In this version, we only train the target model $D$ on the first frame, and refrain from subsequent updates.
+
+$D$ -only: We further enable target model updates (as described in Section 3.4) using the raw target predictions.
+
+Ours - no update: For a fair comparison, we evaluate a variant of our approach with the segmentation network, but without any update of the target model $D$ during inference.
+
+Ours: Finally, we include target model updates with segmentation network predictions to obtain our final approach.
+
+In Table 1, we present the results in terms of the $\mathcal{J}$ score on a separate validation split of the YouTube-VOS training dataset. The base network, not employing the target model $D$ , achieves a score of $49.8\%$ . Employing fine-tuning on the first frame leads to an absolute improvement of $6\%$ . Remarkably, using only the linear target model $D$ is on par with online fine-tuning. While fine-tuning an entire segmentation network is prone to severe overfitting to the initial frame, our shallow target model has limited capacity, acting as an implicit regularization mechanism that benefits robustness and generalization to unseen aspects of the target and background appearance. Including updates results in an absolute improvement of $1.6\%$ , demonstrates that we benefit from online updates despite the coarseness of the target mode generated labels. Further adding the segmentation network $S$ (Ours - no update) leads to a major absolute gain
+
+| Version | D | S | Update. | J |
| Base net | | ✓ | | 49.8 |
| F.-T. | | ✓ | | 58.9 |
| D-only -no update | ✓ | | | 58.3 |
| D-only | ✓ | | ✓ | 59.6 |
| Ours - no update | ✓ | ✓ | | 67.9 |
| Ours | ✓ | ✓ | ✓ | 71.4 |
+
+Table 1. Ablative study on a validation split of 300 sequences from the YouTube-VOS train set. We analyze the different components of our approach, where $D$ and $S$ denote the target model and segmentation network respectively. Further, "Update" indicates if the target model update is enabled. Our target model $D$ outperforms the Base net and is comparable to first-frame fine-tuning ("F.-T.") even with updates are disabled. Further, the segmentation network significantly improves the raw predictions from the target model $D$ . Finally, the best performance is obtained when additionally updating target model $D$ .
+
+of $8.3\%$ . This improvement stems from the offline-learned processing of the coarse segmentations, yielding more accurate mask predictions. Finally, the proposed online updating strategy additionally improves the score to $71.4\%$ .
+
+# 4.2. Comparison to state-of-the-art
+
+We compare our method to recent approaches on the YouTube-VOS, DAVIS 2017 and DAVIS 2016 benchmarks. We provide results for two versions of our approach: Ours and Ours (fast) (see Section 3.5). Many compared methods include additional training data or employ models that have been pre-trained on segmentation data. For fair comparison we classify methods into two categories: "seg" for methods employing segmentation networks, pre-trained on e.g. PASCAL [14] or MS-COCO [28] and "synth" for methods that perform additional training on synthetic VOS data generated from image segmentation datasets.
+
+YouTube-VOS [48]: The official YouTube-VOS validation dataset has 474 sequences with objects from 91 classes. Out of these, 26 classes are not present in the training set. We provide results for Ours and Ours (fast), both trained on the YouTube-VOS 2018 training set. We compare our method with the results reported in [47], that were obtained by retraining the methods on YouTube-VOS. Additionally, we compare to PReMVOS[29], AGAME [22], RVOS [42] and STM [34]. The results are reported in Table 2.
+
+Among the methods using additional training data, OS-VOS [4], OnAVOS [43] and PReMVOS employ first-frame fine-tuning, leading to inferior frame-rates below 0.3 FPS. In addition to fine-tuning, PReMVOS constitutes a highly complex framework, encompassing multiple components and cues: mask-region proposals, optical flow based mask predictions, re-identification, merging and tracking modules. In contrast, our approach is simple, consisting of a single network together with a light-weight target model. Remarkably, our approach significantly outperforms PReMVOS by a relative margin of $5.2\%$ , yielding a final $\mathcal{G}$
+
+| Method | Training Data | G | J | F | FPS |
| seg | synth | overall | seen | unseen | seen | unseen | DAVIS16 |
| Ours | - | - | 72.1 | 72.3 | 65.9 | 76.2 | 74.1 | 21.9 |
| Ours-fast | - | - | 65.7 | 68.6 | 58.4 | 71.3 | 64.5 | 41.3 |
| STM (YV18) [34] | - | - | 68.2 | - | - | - | - | 6.25 |
| AGAME [22] | - | - | 66.1 | 67.8 | 60.8 | 69.5 | 66.2 | 14.3 |
| RVOS [42] | - | - | 56.8 | 63.6 | 45.5 | 67.2 | 51.0 | 22.7 |
| S2S [47] | - | - | 64.4 | 71.0 | 55.5 | 70.0 | 61.2 | 0.11 |
| STM [34] | - | ✓ | 79.4 | 79.7 | 72.8 | 84.2 | 80.9 | 6.25 |
| PREMVOS [29] | ✓ | ✓ | 66.9 | 71.4 | 56.5 | - | - | 0.03 |
| OnAVOS [43] | ✓ | - | 55.2 | 60.1 | 46.1 | 62.7 | 51.4 | 0.08 |
| OSVOS [4] | ✓ | - | 58.8 | 59.8 | 54.2 | 60.5 | 60.7 | 0.22 |
+
+Table 2. State-of-the-art comparison on the large-scale YouTube-VOS validation dataset, containing 474 videos. The results of our approach were obtained through the official evaluation server. We report the mean Jaccard $(\mathcal{J})$ and boundary $(\mathcal{F})$ scores for object classes that are seen and unseen in the training set, along with the overall mean $(\mathcal{G})$ . "seg" and "synth" indicate whether pre-trained segmentation models or additional data has been used during training. Our approaches achieve superior performance to methods that only trains on the YouTube-VOS train split, while operating at high frame-rates. Furthermore, Ours-fast obtains the highest frame-rates while performing comparable to state-of-the-art.
+
+score of 72.1. The recent STM method has the highest performance, employing feature matching with a dynamic memory to predict the target.
+
+RVOS is trained only on YouTube-VOS, achieving a $\mathcal{G}$ -score of 56.8 by employing recurrent networks. In addition to recurrent networks, S2S employs first-frame fine-tuning, achieving a $\mathcal{G}$ -score of 64.4 with a significantly slower frame-rate compared to RVOS. In AGAME a generative appearance model is employed, resulting in a $\mathcal{G}$ -score of 66.1. We further report results from a version of STM (YV18), where training has been performed solely on YouTube-VOS. This significantly degrades the performance to a $\mathcal{G}$ -score of 68.2. Ours outperforms all previous methods when only video data from YouTube-VOS has been used for training. We believe that, since our target model already provides robust predictions of the target on its own, our approach can achieve high performance without extensive training on additional data. Notably, Ours-fast, maintains an impressive $\mathcal{G}$ -score of 65.7, while being significantly faster than all previous methods at 41.3 FPS. DAVIS 2017 [37]: The validation set for DAVIS 2017 contains 30 sequences. We provide results for Ours and Ours-fast, trained a combination of the YouTube-VOS and DAVIS 2017 train splits, such that DAVIS 2017 is traversed eight times per epoch, and YouTube-VOS once. We report the results on DAVIS 2017 in Table 3. As in the YouTube-VOS comparison above, we categorize the methods with respect to usage of training data. Since our approaches (Ours and Ours-fast) and AGAME [22], RVOS [42], STM [34] and FEELVOS [44] all include the YouTube-VOS during training, we add a third category denoted "yv".
+
+OnAVOS [43], OSVOS-S [30], MGCRN [19], PRe-MVOS [29] employ extensive fine-tuning on the first-frame, experiencing impractical segmentation speed. The methods
+
+| Method | Training Data | DAVIS17 J&F | DAVIS16 J&F | FPS |
| yv | seg | synth |
| Ours (DV17) | - | - | - | 68.8 | 81.7 | 21.9 |
| AGAME (DV17) [22] | - | - | - | 63.2 | - | 14.3 |
| FAVOS [7] | - | - | - | 58.2 | 80.8 | 0.56 |
| STM (DV17) [34] | - | - | - | 43.0 | - | 6.25 |
| Ours | ✓ | - | - | 76.7 | 83.5 | 21.9 |
| Ours-fast | ✓ | - | - | 70.2 | 78.5 | 41.3 |
| RVOS [42] | ✓ | - | - | 50.3 | - | 22.7 |
| RANet [46] | - | - | ✓ | 65.7 | 85.5 | 30.3 |
| AGAME [22] | ✓ | - | ✓ | 70.0 | - | 14.3 |
| STM [34] | ✓ | - | ✓ | 81.8 | 89.3 | 6.25 |
| RGMP [33] | - | - | ✓ | 66.7 | 81.8 | 7.7 |
| FEELVOS [44] | ✓ | ✓ | - | 71.5 | 81.7 | 2.22 |
| OSNM [49] | - | - | ✓ | 54.8 | - | 7.14 |
| PReMVOS [29] | - | ✓ | ✓ | 77.8 | 86.8 | 0.03 |
| OSVOS-S [30] | - | ✓ | - | 68.0 | 86.5 | 0.22 |
| OnAVOS [43] | - | ✓ | - | 67.9 | 85.5 | 0.08 |
| MGCRN [19] | - | ✓ | - | - | 85.1 | 1.37 |
+
+Table 3. State-of-the-art comparison on DAVIS 2017 and DAVIS 2016 validation sets. The columns with "vv", "seg", and "synth" indicate whether YouTube-VOS, pre-trained segmentation models or additional synthetic data has been used during training. The best and second best entries are shown in red and blue respectively. In addition to Ours and Ours-fast, we report the results of our approach when trained on only DAVIS 2017, in Ours (DV17). Our approach outperform compared methods with practical framereates. Furthermore, we achieve competitive results when trained with only DAVIS 2017, owing to our discriminative target model.
+
+RGMP [33], AGAME [22], RANet [46] and FEELVOS [44] all employ mask-propagation, which is combined with feature matching in the latter three methods. Ours outperforms these methods with an $\mathcal{J}\& \mathcal{F}$ score of 76.7. In addition, Ours-fast is significantly faster than all previous approaches, maintaining a $\mathcal{J}\& \mathcal{F}$ score of 70.2. Our method is only outperformed by PReMVOS and the recent STM, achieving $\mathcal{J}\& \mathcal{F}$ scores of 77.8 and 81.8 respectively. PReMVOS, however, suffer from extremely slow frame rates: approximately 500 times lower than ours. Moreover, our approach outperforms PReMVOS on the more challenging and large scale YouTube-VOS (Table 2) by a large margin.
+
+We also evaluate our approach when only trained on DAVIS 2017, denoted Ours (DV17). We compare this approach to the methods FAVOS [7], AGAME (DV17) [22] and STM (DV17) [34], which have also only been trained on the DAVIS 2017 train split. Our method significantly outperforms all these methods with a $\mathcal{J}\&\mathcal{F}$ score of 68.8. Moreover, this result is superior to OnAVOS, OSVOS-S, RANet, RVOS, RGMP and comparable to AGAME and FEELVOS despite their use of additional training data.
+
+DAVIS 2016 [37]: Finally, we evaluate our method on the 20 validation sequences in DAVIS 2016, corresponding to a subset of DAVIS 2017 and report the results in Table 3. Our methods perform comparable to the fine-tuning based approaches PReMVOS, MGCRN [19], OnAVOS and OSVOS-S. Further, Ours outperforms AGAME, RGMP, OSNM, FAVOS and FEELVOS.
+
+
+Figure 4. Examples of three sequences from DAVIS 2017, demonstrating how our method performs under significant appearance changes compared to ground truth, OSVOS-S [30], AGAME [22], FEELVOS [44] and RGMP [33].
+
+
+Figure 5. Qualitative results of our method, showing both target model score maps and the output segmentation masks. The top three rows are success cases and the last two represents failures when objects are too thin or appear too similar.
+
+# 4.3. Qualitative Analysis
+
+State-of-the-art: We compare our approach to some state-of-the-art methods in Figure 4. By using an early and a late frame from each video sequence, we study how the methods cope with large target deformations over time. In the first sequence (first and second row), the fine-tuning based OSVOS-S struggles as the target pose changes. While the mask-propagation in RGMP and generative appearance model in AGAME are accurate on fine details, they both fail to segment the red target, possibly due to occlusions. In the second and third sequences (rows three to six), all of the above methods fail to robustly segment the different tar-
+
+gets. In contrast, our method accurately segments all targets in these challenging video sequences.
+
+Target model: Some examples of the coarse segmentation scores and the final segmentation output are visualized in Figures 1 and 5. In most cases, the target model provides robust segmentation scores of the target object. It however struggles is some cases where the target object contains thin or small structures or details. An example is the challenging kite lines in the kite-surfing sequence, which are not accurately segmented. This is likely due to the coarse feature maps the target model is operating on. It also have problems separating almost identical targets such as the sheep. On the other hand, the model successfully handles very similar targets as in the gold-fish sequence (row 2 in Figure 1).
+
+# 5. Conclusion
+
+We propose video object segmentation approach, integrating a light-weight but highly discriminative target appearance model and a segmentation network. We find that despite its simplicity, a linear discriminative model is capable of generating robust target predictions. The segmentation network converts the predictions into high-quality object segmentations. The target model is efficiently trained during inference. Our method operates at high frame-rates and achieves state-of-the-art performance on the YouTube-VOS dataset and competitive results on DAVIS 2017 despite trained on limited data.
+
+Acknowledgments: This work was supported by the ELLIIT Excellence Center, the Wallenberg AI, Autonomous Systems and Software Program (WASP) and the SSF project Symbicloud.
+
+# References
+
+[1] Peter K Allen, Aleksandar Timcenko, Billibon Yoshimi, and Paul Michelman. Automated tracking and grasping of a moving object with a robotic hand-eye system. IEEE Transactions on Robotics and Automation, 9(2):152-165, 1993. 1
+[2] Linchao Bao, Baoyuan Wu, and Wei Liu. Cnn in mrf: Video object segmentation via inference in a cnn-based higher-order spatio-temporal mrf. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5977-5986, 2018. 2
+[3] Goutam Bhat, Martin Danelljan, Luc Van Gool, and Radu Timofte. Learning discriminative model prediction for tracking. In IEEE/CVF International Conference on Computer Vision, ICCV, pages 6181-6190, 2019. 2
+[4] Sergi Caelles, K-K Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5320-5329. IEEE, 2017. 1, 2, 6, 7
+[5] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2018. 4
+[6] Yuhua Chen, Jordi Pont-Tuset, Alberto Montes, and Luc Van Gool. Blazingly fast video object segmentation with pixel-wise metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1189-1198, 2018. 2
+[7] J. Cheng, Y.-H. Tsai, W.-C. Hung, S. Wang, and M.-H. Yang. Fast and accurate online video object segmentation via tracking parts. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2, 7
+[8] Jingchun Cheng, Yi-Hsuan Tsai, Shengjin Wang, and Ming-Hsuan Yang. Segflow: Joint learning for video object segmentation and optical flow. In Computer Vision (ICCV), 2017 IEEE International Conference on, pages 686-695. IEEE, 2017. 2
+[9] Hai Ci, Chunyu Wang, and Yizhou Wang. Video object segmentation by learning location-sensitive embeddings. In European Conference on Computer Vision, pages 524-539. Springer, 2018. 2
+[10] I Cohen and G Medioni. Detecting and tracking moving objects for video surveillance. In Proceedings. 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No PR00149), volume 2, pages 319-325. IEEE, 1999. 1
+[11] Martin Danelljan, Goutam Bhat, Fahad Shahbaz Khan, and Michael Felsberg. ATOM: Accurate tracking by overlap maximization. In IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 3
+[12] Martin Danelljan, Goutam Bhat, Fahad Shahbaz Khan, and Michael Felsberg. ECO: Efficient convolution operators for tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6638-6646, 2017. 2
+
+[13] Adám Erdélyi, Tibor Barát, Patrick Valet, Thomas Winkler, and Bernhard Rinner. Adaptive cartooning for privacy protection in camera networks. In 2014 11th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), pages 44-49. IEEE, 2014. 1
+[14] M. Everingham, S. M. A. Eslami, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The pascal visual object classes challenge: A retrospective. International Journal of Computer Vision, 111(1):98-136, Jan. 2015. 6
+[15] Sam Hare, Stuart Golodetz, Amir Saffari, Vibhav Vineet, Ming-Ming Cheng, Stephen L Hicks, and Philip HS Torr. Struck: Structured output tracking with kernels. IEEE transactions on pattern analysis and machine intelligence, 38(10):2096-2109, 2016. 2
+[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. 5
+[17] João F Henriques, Rui Caseiro, Pedro Martins, and Jorge Batista. High-speed tracking with kernelized correlation filters. IEEE transactions on pattern analysis and machine intelligence, 37(3):583-596, 2015. 2
+[18] Magnus Rudolph Hestenes and Eduard Stiefel. Methods of conjugate gradients for solving linear systems, volume 49. NBS Washington, DC, 1952. 4
+[19] Ping Hu, Gang Wang, Xiangfei Kong, Jason Kuen, and Yap-Peng Tan. Motion-guided cascaded refinement network for video object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1400-1409, 2018. 2, 7
+[20] Yuan-Ting Hu, Jia-Bin Huang, and Alexander G Schwing. Videomatch: Matching based video object segmentation. In European Conference on Computer Vision, pages 56-73. Springer, 2018. 1, 2
+[21] Won-Dong Jang and Chang-Su Kim. Online video object segmentation via convolutional trident network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5849-5858, 2017. 2
+[22] Joakim Johnander, Martin Danelljan, Emil Brissman, Fahad Shahbaz Khan, and Michael Felsberg. A generative appearance model for end-to-end video object segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 6, 7, 8
+[23] Anna Khoreva, Rodrigo Benenson, Eddy Ilg, Thomas Brox, and Bernt Schiele. Lucid data dreaming for video object segmentation. International Journal of Computer Vision, 127(9):1175-1197, Sep 2019. 2
+[24] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 12 2014. 4
+[25] Hedvig Kjellstrom, Javier Romero, and Danica Kragic. Visual recognition of grasps for human-to-robot mapping. In 2008 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 3192–3199. IEEE, 2008. 1
+[26] Matej Kristan, Ales Leonardis, Jiri Matas, Michael Felsberg, Roman Pfugfelder, Luka Cehovin Zajc, Tomas Vojir, Goutam Bhat, Alan Lukezic, Abdelrahman Eldesokey, Gus
+
+tavo Fernandez, and et al. The sixth visual object tracking vot2018 challenge results. In ECCV workshop, 2018. 2
+[27] Xiaoxiao Li and Chen Change Loy. Video object segmentation with joint re-identification and attention-aware mask propagation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 90–105, 2018. 2
+[28] 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. 2, 6
+[29] Jonathon Luiten, Paul Voigtlaender, and Bastian Leibe. Premvos: Proposal-generation, refinement and merging for video object segmentation. In Asian Conference on Computer Vision, pages 565-580. Springer, 2018. 2, 6, 7
+[30] Kevis-Kokitsi Maninis, Sergi Caelles, Yuhua Chen, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. Video object segmentation without temporal information. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2018. 1, 2, 7, 8
+[31] Donald W Marquardt. An algorithm for least-squares estimation of nonlinear parameters. Journal of the society for Industrial and Applied Mathematics, 11(2):431-441, 1963. 3
+[32] Andrew Y Ng and Michael I Jordan. On discriminative vs. generative classifiers: A comparison of logistic regression and naive bayes. In Advances in neural information processing systems, pages 841-848, 2002. 2
+[33] Seoung Wug Oh, Joon-Young Lee, Kalyan Sunkavalli, and Seon Joo Kim. Fast video object segmentation by reference-guided mask propagation. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7376-7385. IEEE, 2018. 1, 2, 5, 7, 8
+[34] Seoung Wug Oh, Joon-Young Lee, Ning Xu, and Seon Joo Kim. Video object segmentation using space-time memory networks. Proceedings of the IEEE International Conference on Computer Vision, 2019. 1, 2, 6, 7
+[35] 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. 5
+[36] Federico Perazzi, Anna Khoreva, Rodrigo Benenson, Bernt Schiele, and Alexander Sorkine-Hornung. Learning video object segmentation from static images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2663-2672, 2017. 1, 2
+[37] F. Perazzi, J. Pont-Tuset, B. McWilliams, L. Van Gool, M. Gross, and A. Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In Computer Vision and Pattern Recognition, 2016. 2, 5, 7
+[38] German Ros, Sebastian Ramos, Manuel Granados, Amir Bakhtiary, David Vazquez, and Antonio M Lopez. Vision-based offline-online perception paradigm for autonomous driving. In 2015 IEEE Winter Conference on Applications of Computer Vision, pages 231-238. IEEE, 2015. 1
+[39] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy,
+
+Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211-252, 2015. 2, 5
+[40] Khaled Saleh, Mohammed Hossny, and Saeid Nahavandi. Kangaroo vehicle collision detection using deep semantic segmentation convolutional neural network. In 2016 International Conference on Digital Image Computing: Techniques and Applications (DICTA), pages 1-7. IEEE. 1
+[41] Henning Tjaden, Ulrich Schwanecke, Elmar Schömer, and Daniel Cremers. A region-based gauss-newton approach to real-time monocular multiple object tracking. IEEE transactions on pattern analysis and machine intelligence, 2018. 2
+[42] Carles Ventura, Miriam Bellver, Andreu Girbau, Amaia Salvador, Ferran Marques, and Xavier Giro-i Nieto. Rvos: End-to-end recurrent network for video object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5277-5286, 2019. 6, 7
+[43] Paul Voigtlaender and Bastian Leibe. Online adaptation of convolutional neural networks for video object segmentation. In BMVC, 2017. 2, 3, 6, 7
+[44] Paul Voigtlaender and Bastian Leibe. Feelvos: Fast end-to-end embedding learning for video object segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 7, 8
+[45] Carl Vondrick, Abhinav Shrivastava, Alireza Fathi, Sergio Guadarrama, and Kevin Murphy. Tracking emerges by colorizing videos. In European Conference on Computer Vision, pages 402-419. Springer, 2018. 2
+[46] Ziqin Wang, Jun Xu, Li Liu, Fan Zhu, and Ling Shao. Ranet: Ranking attention network for fast video object segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3978-3987, 2019. 2, 7
+[47] Ning Xu, Linjie Yang, Yuchen Fan, Jianchao Yang, Dingcheng Yue, Yuchen Liang, Brian Price, Scott Cohen, and Thomas Huang. Youtube-vos: Sequence-to-sequence video object segmentation. In European Conference on Computer Vision, pages 603-619. Springer, 2018. 1, 2, 6, 7
+[48] Ning Xu, Linjie Yang, Yuchen Fan, Dingcheng Yue, Yuchen Liang, Jianchao Yang, and Thomas Huang. Youtube-vos: A large-scale video object segmentation benchmark. arXiv preprint arXiv:1809.03327, 2018. 1, 2, 5, 6
+[49] Linjie Yang, Yanran Wang, Xuehan Xiong, Jianchao Yang, and Aggelos Katsaggelos. Efficient video object segmentation via network modulation. algorithms, 29:15, 2018. 2, 7
+[50] Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, and Nong Sang. Learning a discriminative feature network for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1857-1866, 2018. 4
+[51] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881-2890, 2017. 4
\ No newline at end of file
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/images.zip b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9e40137ffa156860aba9347937ce232caec4dbb0
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c4f5fed5e3d7c34810dbdc462f8a69722eeedaf6f7f78226cc2efcb29a669c1c
+size 429769
diff --git a/learningfastandrobusttargetmodelsforvideoobjectsegmentation/layout.json b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..62a41496a68326b102e3ca449b56f560337e59ef
--- /dev/null
+++ b/learningfastandrobusttargetmodelsforvideoobjectsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:341baf5820e302d757fc60735ee2d74fee8275ce6e3960daf1471f7ffb4e8008
+size 451498
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_content_list.json b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..75ea5128c1fd230f2798d64450bf2c81bdaca3f9
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05b39418779962f0aa0aac91c18f0c620e2d1ce898cbd0adf07284b1847e86d4
+size 78619
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_model.json b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d34425a9a338455296f6bd8b36ee535c2f142f33
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b1f90589e990754eb77aaec7c6bbebac38e3da4a24a8a22d73beb3fd5b21b2e
+size 97514
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_origin.pdf b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9691bec80ee73f46452948c7140e71ada4952584
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/07f60580-14d9-4e89-bfdc-0a820fb0f808_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0debb1848bbf497d75925e60421282af2dec196a02eb0d8c990ec6a85728567b
+size 674739
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/full.md b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..cce2c7b3fdaa78de8f41c56ce298b90e11c1619d
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/full.md
@@ -0,0 +1,344 @@
+# Learning Filter Pruning Criteria for Deep Convolutional Neural Networks Acceleration
+
+Yang He1 Yuhang Ding2 Ping Liu1 Linchao Zhu1 Hanwang Zhang3 Yi Yang1*
+1ReLER, University of Technology Sydney
+2Baidu Research
+3Nanyang Technological University
+yang.he-1@student.uts.edu.au, {dyh.ustc.uts,pino.pingliu,zhulinchao7}@gmail.com
+hanwangzhang@ntu.edu.sg, yee.i.yang@gmail.com
+
+# Abstract
+
+Filter pruning has been widely applied to neural network compression and acceleration. Existing methods usually utilize pre-defined pruning criteria, such as $\ell_p$ -norm, to prune unimportant filters. There are two major limitations to these methods. First, prevailing methods fail to consider the variety of filter distribution across layers. To extract features of the coarse level to the fine level, the filters of different layers have various distributions. Therefore, it is not suitable to utilize the same pruning criteria to different functional layers. Second, prevailing layer-by-layer pruning methods process each layer independently and sequentially, failing to consider that all the layers in the network collaboratively make the final prediction.
+
+In this paper, we propose Learning Filter Pruning Criteria (LFPC) to solve the above problems. Specifically, we develop a differentiable pruning criteria sampler. This sampler is learnable and optimized by the validation loss of the pruned network obtained from the sampled criteria. In this way, we could adaptively select the appropriate pruning criteria for different functional layers. Besides, when evaluating the sampled criteria, LFPC comprehensively considers the contribution of all the layers at the same time. Experiments validate our approach on three image classification benchmarks. Notably, on ILSVRC-2012, our LFPC reduces more than $60\%$ FLOPs on ResNet-50 with only $0.83\%$ top-5 accuracy loss.
+
+# 1. Introduction
+
+Convolutional neural networks have achieved significant advancement in various computer vision research applications [43, 15, 47]. However, most of these manually designed architectures, e.g., VGG [43], ResNet [15], usually come with the enormous model size and heavy computation cost. It is hard to deploy these models in scenarios de
+
+
+
+
+
+
+Figure 1. (a) Previous filter pruning methods manually select a criterion and apply it to all layers; (b) our pruning method learns appropriate criteria for different layers based on the filter distribution. In the blue dashed box, the solid boxes of different colors denote different pruning criteria. The yellow boxes without shadow correspond to unpruned layers of the network, while the ones with shadow are the layers pruned by a selected pruning criterion.
+
+manding a real-time response. Recently, studies on model compression and acceleration are emerging. Due to its efficacy, the pruning strategy attracts attention in previous studies [14, 27, 20].
+
+Recent developments on pruning can be divided into two categories, i.e., weight pruning [14], and filter pruning [27]. Filter pruning is preferred compared to weight pruning because filter pruning could make the pruned model more structural and achieve practical acceleration [20]. The existing filter pruning methods follow a three-stage pipeline. (1) Training: training a large model on the target dataset. (2) Pruning: based on a particular criterion, unimportant filters from the pre-trained model are pruned. (3) Fine-tuning (retraining): the pruned model is retrained to recover the original performance. During the three stages, select an appropriate pruning criterion is the key ingredient.
+
+However, the previous works have a few drawbacks and might not be the best choice in real scenarios. First, previ
+
+ous works manually specify a pruning criterion and utilize the same pruning criterion for different layers. As shown in [52], different layers have different filter distributions and various functions. The lower layers tend to extract coarse level features, such as lines, dots, and curves, while the higher layers tend to extract fine level features, such as common objects and shapes. In this situation, fixing one pruning criterion for all the functional layers may not be suitable. Second, prevailing methods prune the network in a greedy layer-by-layer manner, i.e., the pruning process at different layers is independent of each other. Considering that during training and inference, the filters of all the layers work collaboratively to make a final prediction, it is natural to suggest to conduct pruning in a collaborative, not an independent, manner. In other words, it is preferred that the filter importance of all layers could be evaluated concurrently.
+
+We propose Learning Filter Pruning Criteria (LFPC) to solve the mentioned problems. The core component of LFPC is a Differentiable Criteria Sampler (DCS), which aims to sample different criteria for different layers. This sampler, since it is differentiable, can be updated efficiently to find the appropriate criteria. First, DCS initializes a learnable criteria probability for all layers. For every layer, DCS conducts criteria forward to get the criteria feature map based on the filters and criteria probability. The process of criteria forward is shown in Sec. 3.2.3. After criteria forward for all the layers, we get the criteria loss and utilize it as a supervision signal. The criteria loss can be backpropagated to update the criteria probability distribution to fit the filter distribution of the network better. Different from previous layer-by-layer pruning works, our LFPC can consider all the layers and all the pruning criteria simultaneously through the criteria loss. After finishing training the DCS, the optimized criteria servers as the pruning criteria for the network, as shown in Fig. 1. After pruning, we fine-tune the pruned model once to get an efficient and accurate model.
+
+# Contributions. Contributions are summarized as follows:
+
+(1) We propose an effective learning framework, Learning Filter Pruning Criteria (LFPC). This framework can learn to select the most appropriate pruning criteria for each functional layer. Besides, the proposed Differentiable Criteria Sampler (DCS) can be trained end-to-end and consider all the layers concurrently during pruning. To the best of our knowledge, this is the first work in this research direction.
+(2) The experiment on three benchmarks demonstrates the effectiveness of our LFPC. Notably, it accelerates ResNet-110 by two times, with even $0.31\%$ relative accuracy improvement on CIFAR-10. Additionally, we reduce more than $60\%$ FLOPs on ResNet-50 with only $0.83\%$ top-5 accuracy loss.
+
+# 2. Related Work
+
+Previous work on pruning can be categorized into weight pruning and filter pruning. Weight pruning [14, 13, 12, 48, 2, 56, 6] focuses on pruning fine-grained weight of filters, so that leading to unstructured sparsity in models. In contrast, filter pruning [27] could achieve the structured sparsity, so the pruned model could take full advantage of high-efficiency Basic Linear Algebra Subprograms (BLAS) libraries to achieve better acceleration.
+
+Considering how to evaluate the filter importance, we can roughly divide the filter pruning methods into two categories, i.e., weight-based criteria, and activation-based criteria. Furthermore, the pruning algorithms could also be roughly grouped by the frequency of pruning, i.e., greedy pruning, and one-shot pruning. We illustrate the categorization in Tab. 1.
+
+| Algorithms | Criteria W | A | Frequency O | G |
| PFEC [27], SFP [18], FPGM [20] | W | O |
| RSA [51], PRE [39] | W | G |
| SLIM [32], PFA [45], NISP [54], CCP [41], GAL [30] | A | O |
| CP [22], SLIM [32], ThiNet [36], PRE [39], DCP [57], LPF [23], AOFP [5], GATE [53] | A | G |
+
+Table 1. Different categories of filter pruning algorithms. "W" and "A" denote the weight-based and activation-based criteria. "O" and "G" indicate the one-shot and greedy pruning.
+
+Weight-based Criteria. Some methods [27, 18, 51, 20, 17, 21, 50] utilize the weights of the filters to determine the importance of the filters. [27] prunes the filters with small $\ell_1$ -norm. [18] utilizes $\ell_2$ -norm criterion to select filters and prune those selected filters softly. [51] introduces sparsity on the scaling parameters of batch normalization (BN) layers to prune the network. [20] claims that the filters near the geometric median should be pruned. All the works utilize the same pruning criteria for different layers and do not take into account that different layers have various functions and different filter distributions.
+
+Activation-based Criteria. Some works [32, 36, 22, 39, 10, 45, 54, 57, 23, 19, 30, 29, 38, 24, 41] utilize the training data and filter activations to determine the pruned filters. [45] adopts the Principal Component Analysis (PCA) method to specify which part of the network should be preserved. [36] proposes to use the information from the next layer to guide the filter selection. [10] minimizes the reconstruction error of training set sample activations and applies Singular Value Decomposition (SVD) to obtain a decomposition of filters. [49] explores the linear relationship in different feature maps to eliminate the redundancy in con
+
+volitional filters.
+
+Greedy and One-shot Pruning. Greedy pruning [53, 5], or oracle pruning, means the pruning and retraining should be operated for multiple times. Although greedy pruning is beneficial for accuracy, it is time-consuming and requires a large number of computation resources. In contrast, one-shot pruning [20, 27] prunes the network once and retrained once to recover the accuracy. It is more efficient than the greedy pruning, but it requires careful pruning criteria selection. We focus on one-shot pruning in this paper.
+
+Other Pruning and Searching Methods. Some works utilize reinforcement learning [19, 23] or meta-learning [33] for pruning. In contrast, we focus on learning the proper pruning criteria for different layers via the differential sampler. [4] proposes centripetal SGD to make several filters to converge into a single point. [54] is a global pruning method, but the importance of pruned neurons is not propagated. The idea of our learning criteria shares some similarities with the Neural Architecture Search (NAS) works [58, 31] and Autoaugment [3], the difference is that our search space is the pruning criteria instead of network architectures or augmentation policies.
+
+# 3. Methodology
+
+# 3.1. Preliminaries
+
+We assume that a neural network has $L$ layers, and we represent the weight for $l_{th}$ convolutional layers as $\mathbf{W}^{(l)}\in$ $\mathbb{R}^{K\times K\times C_I^{(l)}\times C_O^{(l)}}$ , where $K$ is the kernel size, $C_I^{(l)}$ and $C_O^{(l)}$ is the number of input and output channels, respectively. In this way, $\mathbf{W}_i^{(l)}\in \mathbb{R}^{K\times K\times C_I^{(l)}}$ represents the $i_{th}$ filter of $l_{th}$ convolutional layer. We denote the I and O as the input and output feature maps, and $\mathbf{I}\in C_I^{(l)}\times H_I^{(l)}\times W_I^{(l)}$ and $\mathbf{O}\in$ $C_O^{(l)}\times H_O^{(l)}\times W_O^{(l)}$ , where $H_{*}^{()}$ and $W_{*}^{()}$ is the height and width of the feature map, respectively. The convolutional operation of the $i_{th}$ layer can be written as:
+
+$$
+\mathbf {O} _ {i} = \mathbf {W} _ {i} ^ {(l)} * \mathbf {I} \text {f o r} 1 \leq i \leq C _ {O} ^ {(l)}, \tag {1}
+$$
+
+Assume the filter set $\mathcal{F}$ consists all the filters in the network: $\mathcal{F} = \left\{\mathbf{W}_i^{(l)}, i \in [1, C_O^{(l)}], l \in [1, L]\right\}$ . We divide $\mathcal{F}$ into two disjoint subsets: the kept filter set $\mathcal{K}$ and removed filter set $\mathcal{R}$ , and we have:
+
+$$
+\mathcal {K} \cup \mathcal {R} = \mathcal {F}, \quad \mathcal {K} \cap \mathcal {R} = \emptyset . \tag {2}
+$$
+
+Now our target becomes clear. Filter pruning aims to minimize the loss function value under sparsity constraints on filters. Given a dataset $\mathcal{D} = \{\left(\mathbf{x}_n,\mathbf{y}_n\right)\}_{n = 1}^N$ where $\mathbf{x}_n$ denotes the $n_{th}$ input and $\mathbf{y}_n$ is the corresponding output, the constrained optimization problem can be formulated as:
+
+$$
+\begin{array}{l} \min _ {\mathcal {K}} \mathcal {L} (\mathcal {K}; \mathcal {D}) = \min _ {\mathcal {K}} \frac {1}{N} \sum_ {n = 1} ^ {N} \mathcal {L} (\mathcal {K}; \left(\mathbf {x} _ {n}, \mathbf {y} _ {n}\right)) \tag {3} \\ \begin{array}{l} \text {s . t .} \frac {C (\mathcal {K})}{C (\mathcal {F})} \leq r \end{array} \\ \end{array}
+$$
+
+
+Figure 2. Criteria forward and backward in the network. Grey boxes are the normal filters. The probability distribution of criteria for three layers are initialized, as shown in the big orange shadow. After pruning with four criteria, we obtain four "pruned versions" for every layer, which are denoted as boxes in purple, green, orange, and blue color. These filters are utilized to conduct criteria forward. Then we get the criteria loss on the validation set to update the "criteria distribution".
+
+where $\mathcal{L}(\cdot)$ is a standard loss function (e.g., cross-entropy loss), $C(\cdot)$ is the computation cost of the network built from the filter set, and $r$ is the ratio of the computation cost of between pruned network and the original unpruned network.
+
+# 3.2. Learning Filter Pruning Criteria
+
+In this section, we illustrate our proposed LFPC, which can automatically and adaptively choose an appropriate criterion for each layer based on their respective filter distribution. The overall learning process is shown in Fig. 2.
+
+# 3.2.1 Pruning Criteria
+
+For simplicity, we introduce the pruning criteria based on $l_{th}$ layer. The filters in $l_{th}$ layer are denoted as a filter set $\mathcal{F}^{(l)} = \left\{\mathbf{W}_i^{(l)}, i \in [1, C_O^{(l)}]\right\}$ . In $l_{th}$ layer, a pruning criterion, denoted as $\mathrm{Crit}^{(l)}(\cdot)$ , is utilized to get the importance scores for the filters. Then we have
+
+$$
+\operatorname {s c o r e} ^ {(l)} = \operatorname {C r i t} ^ {(l)} \left(\mathcal {F} ^ {(l)}\right) \tag {4}
+$$
+
+where $score^{(l)} \in \mathbb{R}^{C_{O}^{(l)}}$ is the importance score vector of the filters in $l_{th}$ layer. For example, $\ell_1$ -norm criteria [27] could be formulated as $\mathrm{Crit}^{(l)}(\mathcal{F}^{(l)}) = \left\{\mathrm{Crit}^{(l)}(\mathbf{W}_i^{(l)}) = \| \mathbf{W}_i^{(l)}\| _1 \text{ for } i \in [1,C_O^{(l)}]\right\}$ .
+
+Then filter pruning is conducted based on score $^{(l)}$ :
+
+$$
+\operatorname {k e e p i d} ^ {(l)} = \operatorname {T o p k} \left(\operatorname {s c o r e} ^ {(l)}, \mathrm {n} ^ {(l)}\right) \tag {5}
+$$
+
+$$
+\mathcal {K} ^ {(l)} = \operatorname {P r u n e} \left(\mathcal {F} ^ {(l)}, k e e p i d ^ {(l)}\right),
+$$
+
+
+Figure 3. Criteria forward within a layer. Boxes of different colors indicate the different pruning criteria. First, we evaluate the importance of the filter based on different criteria. Second, we prune the filter with small importance scores and get four versions of pruned layers with various probabilities. After that, the output feature map is the aligned weighted sum of four feature maps of the pruned layers.
+
+where $\mathfrak{n}^{(l)}$ is the number of filters to be kept, and $\mathrm{Topk}(\cdot)$ returns the indexes of the $k$ most important filter based on their importance scores. The indexes are denoted as keepid(l). Given keepid(l), Prune(·) keeps the critical filters with the indexes specified in keepid(l), and prunes the other filters. The filter set after pruning is denoted as $\mathcal{K}^{(l)}$ .
+
+# 3.2.2 Criteria Space Complexity
+
+If we want to keep $\mathfrak{n}^{(l)}$ filters in $l_{th}$ layer, which has totally $C_O^{(l)}$ filters, then the number of selection could be $\binom{C_O^{(l)}}{\mathfrak{n}^{(l)}} = \frac{C_O^{(l)}!}{\mathfrak{n}^{(l)}!(C_O^{(l)} - \mathfrak{n}^{(l)})!}$ , where $\binom{}$ denotes the combination [1]. For those frequently used CNN architectures, the number of selections might be surprisingly big. For example, pruning 10 filters from a 64-filter-layer has $\binom{64}{10}=151,473,214,816$ selections. This number would increase dramatically if the more layers are considered. Therefore, it is impossible to learn the pruning criteria from scratch. Fortunately, with the help of the proposed criteria of previous works [27, 20], we could reduce the criteria space complexity from $\binom{C_O^{(l)}}{\mathfrak{n}^{(l)}}$ to $S$ , which is the number of criteria that we adopted.
+
+# 3.2.3 Differentiable Criteria Sampler
+
+Assuming there are $S$ candidate criteria in the criteria space, we could use $\alpha^{(l)}\in \mathbb{R}^S$ to indicate the distribution of the possible criteria for $l_{th}$ layer. The probability of choosing the $i_{th}$ criterion can be formulated as:
+
+$$
+p _ {i} = \frac {\exp \left(\alpha_ {i} ^ {(l)}\right)}{\sum_ {j = 1} ^ {S} \exp \left(\alpha_ {j} ^ {(l)}\right)} \quad \text {w h e r e} 1 \leq i \leq S \tag {6}
+$$
+
+However, since Eq. 6 needs to sample from a discrete probability distribution, we cannot back-propagate gradients through $p_i$ to $\alpha_i^{(l)}$ . To allow back-propagation, inspired from [9], we apply Gumbel-Softmax [25, 37] to reformulate Eq. 6 as Eq. 7:
+
+Algorithm 1: Algorithm Description of LFPC
+Input: training data $\mathbf{X}$ validation data $\mathbf{Y}$ the pre-trained model with parameters $\mathbf{W} = \{\mathbf{W}^{(l)},1\leq l\leq L\}$ $S$ candidate criteria and criteria parameters $\alpha$ expected ratio of computational cost $r$ Output: The compact model and its parameters $\mathbf{W}^*$ for epoch $\leftarrow 1$ to epochmax do for $l\gets 1$ to $L$ do Sample criteria based on Eq.7; Calculate criteria feature with Eq.9 and $r$ end Update $\alpha$ based on $\mathbf{Y}$ using Eq.11;
+end
+Get final criteria set $\mathcal{T}$ and conduct pruning;
+Re-training pruned model with $\mathbf{X}$ and obtain $\mathbf{W}^*$
+
+$$
+\hat {p} _ {i} = \frac {\exp \left(\left(\log \left(p _ {i}\right) + \boldsymbol {o} _ {i}\right) / \tau\right)}{\sum_ {j = 1} ^ {S} \exp \left(\left(\log \left(p _ {j}\right) + \boldsymbol {o} _ {j}\right) / \tau\right)} \tag {7}
+$$
+
+$$
+\text {s . t .} \boldsymbol {o} _ {i} = - \log (- \log (u)) \& u \sim \mathcal {U} (0, 1)
+$$
+
+where $\mathcal{U}(0,1)$ is the uniform distribution between 0 and $1$ , $u$ is a sample from the distributio $\mathcal{U}(0,1)$ , and $\tau$ is the softmax temperature. We denote $\hat{p} = [\hat{p}_1,\dots ,\hat{p}_j,\dots ]$ as the Gumbel-softmax distribution. Change the parameter $\tau$ would lead to different $\hat{p}$ . When $\tau \rightarrow \infty$ , $\hat{p}$ becomes a uniform distribution. When $\tau \rightarrow 0$ , samples from $\hat{p}$ become one-shot, and they are identical to the samples from the categorical distribution [25].
+
+Criteria Forward. The illustration of criteria forward for $l_{th}$ layer is shown in Fig 3. For simplicity, we rewrite the Eq. 4 and Eq. 5 as $\mathcal{K}^{(l)} = g(\mathcal{F}^{(l)},\mathrm{Crit}^{(l)},\mathfrak{n}^{(l)})$ . For $l_{th}$ layer, it has $S$ sampled "pruned version" which can be formulated as:
+
+$$
+\mathcal {K} _ {s} ^ {(l)} = g \left(\mathcal {F} ^ {(l)}, \operatorname {C r i t} _ {s} ^ {(l)}, \mathrm {n} ^ {(l)}\right) \text {f o r} s \in [ 1, S ] \tag {8}
+$$
+
+where $\mathrm{Crit}_s^{(l)}$ denotes the process of utilizing $s_{th}$ pruning criterion to get the importance scores for the filters in $l_{th}$ layer, and $\kappa_s^{(l)}$ is the kept filter set under $s_{th}$ criterion. To
+
+comprehensively consider the contribution of every criterion during training, the output feature map is defined as the Aligned Weighted Sum (AWS) of the feature maps from different $\kappa_s^{(l)}$ , which can be formulated as:
+
+$$
+\mathbf {O} ^ {A W S} = \sum_ {s = 1} ^ {S} \operatorname {A l i g n} \left(\hat {p} _ {s} \times \hat {\mathbf {O}} _ {s}\right), \tag {9}
+$$
+
+$$
+\operatorname {A l i g n} (\hat {\mathbf {O}} _ {s, i}) = \hat {\mathbf {O}} _ {s, k e e p i d _ {s} ^ {(l)} [ i ]} ^ {\prime} \quad i \in [ 1, \mathfrak {n} ^ {(l)} ].
+$$
+
+where $\mathbf{O}^{AWS}$ is the criteria feature map of the layer, $\hat{p}_s$ is the probability for $s_{th}$ criteria, $\times$ denotes the scalar multiplication, $\hat{\mathbf{O}}_s$ is the output feature map of $\kappa_s^{(l)}$ , and $\hat{\mathbf{O}}_s'$ is the aligned feature. For the second formulation, $keepid_s^{(l)}[i]$ is the $i_{th}$ element of the keepid (Eq. 5) under $s_{th}$ criteria in $l_{th}$ layer. To explain the Align $(\cdot)$ function, we take the third figure of Fig. 3 for example. The first channel of purple network could only be added with the first channel of orange network, not the green and blue one. This operation can avoid the interference of the information from different channels. Further we have:
+
+$$
+\hat {\mathbf {O}} _ {s} = \left[ \begin{array}{l l l l} \hat {\mathbf {O}} _ {s, 1}, & \hat {\mathbf {O}} _ {s, 2}, \dots , & \hat {\mathbf {O}} _ {s, n ^ {(l)}} \end{array} \right], \tag {10}
+$$
+
+$$
+\hat {\mathbf {O}} _ {s, i} = \mathcal {K} _ {s, i} ^ {(l)} * \mathbf {I}, \quad s \in [ 1, S ], \quad i \in [ 1, \mathrm {n} ^ {(l)} ],
+$$
+
+where $\hat{\mathbf{O}}_{s,i}$ is the $i_{th}$ output feature of $\kappa_s^{(l)}$ , and $*$ is the convolution operation. After criteria forward for all the layers, we could get the criteria loss, as shown in Fig. 2.
+
+Training Objectives. For a $L$ -layer network, the criteria parameter $\alpha = \{\alpha^{(1)}, \alpha^{(2)}, \dots, \alpha^{(L)}\}$ . We aim to find a proper $\alpha$ to give us guidance about which criterion is suitable for different layers. Specifically, $\alpha$ is found by minimizing the validation loss $\mathcal{L}_{val}$ after trained the criteria network $\theta_{\alpha}$ by minimizing the training loss $\mathcal{L}_{train}$ :
+
+$$
+\min _ {\alpha} \mathcal {L} _ {v a l} \left(\theta_ {\alpha} ^ {*}, \alpha\right) \tag {11}
+$$
+
+$$
+\text {s . t .} \quad \theta_ {\alpha} ^ {*} = \arg \min _ {\theta_ {\alpha}} \mathcal {L} _ {t r a i n} (\theta_ {\alpha}, \alpha),
+$$
+
+where $\theta_{\alpha}^{*}$ is the optimized criteria network under the optimized criteria set $\alpha$ . The training loss is the cross-entropy classification loss of the networks. To further consider the computation cost of the pruned network, the penalty for the computation cost is also included in the validation loss:
+
+$$
+\mathcal {L} _ {\text {v a l}} = \mathcal {L} _ {\text {c r i t}} + \lambda_ {\text {c o m p}} \mathcal {L} _ {\text {c o m p}}, \tag {12}
+$$
+
+where $\mathcal{L}_{\text{crit}}$ is the standard classification loss of the criteria network, namely the criteria loss, and $\mathcal{L}_{\text{comp}}$ is the computation loss of the pruned network. $\lambda_{\text{comp}}$ is a balance of these two losses, whose details can be found in the supplementary material. In this way, we could get the optimized criteria parameters $\alpha$ for the network under different computation constraints.
+
+Criteria Backward. We backward $\mathcal{L}_{val}$ in Eq. 12 to $\alpha$ to update these parameters collaboratively at the same time. The illustration of this process is shown in Fig. 2.
+
+After DCS Training. By choosing the criterion with the maximum probability, we get the final criteria set $\mathcal{T}$ for all the layers. Then we conduct a conventional pruning operation based on the optimized criteria $\mathcal{T}$ to get the pruned network. The pruned network is then retrained to get the final accurate pruned model. The whole process is shown in the Alg. 1.
+
+# 4. Experiments
+
+# 4.1. Experimental Setting
+
+Datasets. In this section, we validate the effectiveness of our acceleration method on three benchmark datasets, CIFAR-10, CIFAR-100 [26], and ILSVRC-2012 [42]. The CIFAR-10 dataset contains 50,000 training images and 10,000 testing images, in total 60,000 $32 \times 32$ color images in 10 different classes. CIFAR-100 has 100 classes, and the number of images is the same as CIFAR-10. ILSVRC-2012 [42] contains 1.28 million training images and 50k validation images of 1,000 classes.
+
+Architecture Setting. As ResNet has the shortcut structure, existing works [7, 36, 22] claim that ResNet has less redundancy than VGGNet [43] and accelerating ResNet is more difficult than accelerating VGGNet. Therefore, we follow [8] to focus on pruning the challenging ResNet.
+
+Normal Training Setting. For ResNet on CIFAR-10 and CIFAR-100, we utilize the same training schedule as [55]. In the CIFAR experiments, we run each setting three times and report the "mean ± std". In the ILSVRC-2012 experiments, we use the default parameter settings, which are the same as [15, 16], and the same data argumentation strategies as the official PyTorch [40] examples.
+
+DCS training Setting. The weight-based criteria are selected as our candidate criteria for their efficiency. Specifically, $\ell_1$ -norm [27], $\ell_2$ -norm [18] and geometric median based [20] criteria. The criteria could be formulated as $\mathrm{Crit}^{(l)}(\mathbf{W}_i^{(l)}) = \| \mathbf{W}_i^{(l)}\|_p$ and $\mathrm{Crit}^{(l)}(\mathbf{W}_i^{(l)}) = \sqrt[2]{\sum_{j=1}^{C_O^{(l)}} \left|\mathbf{W}_i^{(l)} - \mathbf{W}_j^{(l)}\right|^2}$ for $i \in [1, C_O^{(l)}]$ . Note that our framework is able to extend to more criteria.
+
+We set desired FLOPs according to compared pruning algorithms and set $\lambda_{comp}$ of Eq. 12 as 2. We randomly split half of the training set as the validation set for Eq. 11. We optimize the criteria parameters via Adam, and we use the constant learning rate of 0.001 and a weight decay of 0.001. On CIFAR, we train the DCS for 600 epochs with a batch size of 256. On ILSVRC-2012, we train the DCS for 35 epochs with a batch size of 256. The $\tau$ in Eq. 7 is linearly decayed from 5 to 0.1. During training DCS, we fix the pre-trained weights [8] to reduce overfitting.
+
+Pruning Setting. After training DCS, we prune the network with the optimized criteria and fine-tune the network with the full training set. We analyze the difference be
+
+| Depth | Method | Init pretrain | Baseline acc. (%) | Pruned acc. (%) | Acc. ↓ (%) | FLOPs | FLOPs ↓(%) |
| 32 | MIL [7] | X | 92.33 | 90.74 | 1.59 | 4.70E7 | 31.2 |
| SFP [18] | X | 92.63 (±0.70) | 92.08 (±0.08) | 0.55 | 4.03E7 | 41.5 |
| FPGM [20] | X | 92.63 (±0.70) | 92.31 (±0.30) | 0.32 | 4.03E7 | 41.5 |
| Ours | X | 92.63 (±0.70) | 92.12 (±0.32) | 0.51 | 3.27E7 | 52.6 |
| 56 | PFEC [27] | X | 93.04 | 91.31 | 1.75 | 9.09E7 | 27.6 |
| Ours | X | 93.59 (±0.58) | 93.56 (±0.29) | 0.03 | 6.64E7 | 47.1 |
| CP [22] | X | 92.80 | 90.90 | 1.90 | - | 50.0 |
| SFP [18] | X | 93.59 (±0.58) | 92.26 (±0.31) | 1.33 | 5.94E7 | 52.6 |
| FPGM [20] | X | 93.59 (±0.58) | 92.89 (±0.32) | 0.70 | 5.94E7 | 52.6 |
| Ours | X | 93.59 (±0.58) | 93.34 (±0.08) | 0.25 | 5.91E7 | 52.9 |
| PFEC [27] | ✓ | 93.04 | 93.06 | -0.02 | 9.09E7 | 27.6 |
| NISP [54] | ✓ | - | - | 0.03 | - | 42.6 |
| Ours | ✓ | 93.59 (±0.58) | 93.72 (±0.29) | -0.13 | 6.64E7 | 47.1 |
| CP [22] | ✓ | 92.80 | 91.80 | 1.00 | - | 50.0 |
| AMC [19] | ✓ | 92.80 | 91.90 | 0.90 | - | 50.0 |
| FPGM [20] | ✓ | 93.59 (±0.58) | 93.26 (±0.03) | 0.33 | 5.94E7 | 52.6 |
| Ours | ✓ | 93.59 (±0.58) | 93.24 (±0.17) | 0.35 | 5.91E7 | 52.9 |
| 110 | PFEC [27] | X | 93.53 | 92.94 | 0.61 | 1.55E8 | 38.6 |
| MIL [7] | X | 93.63 | 93.44 | 0.19 | - | 34.2 |
| SFP [18] | X | 93.68 (±0.32) | 93.38 (±0.30) | 0.30 | 1.50E8 | 40.8 |
| Rethink [34] | X | 93.77 (±0.23) | 93.70 (±0.16) | 0.07 | 1.50E8 | 40.8 |
| FPGM [20] | X | 93.68 (±0.32) | 93.73 (±0.23) | -0.05 | 1.21E8 | 52.3 |
| Ours | X | 93.68 (±0.32) | 93.79 (±0.38) | -0.11 | 1.01E8 | 60.3 |
| PFEC [27] | ✓ | 93.53 | 93.30 | 0.20 | 1.55E8 | 38.6 |
| NISP [54] | ✓ | - | - | 0.18 | - | 43.8 |
| GAL [30] | ✓ | 93.26 | 92.74 | 0.81 | - | 48.5 |
| FPGM [20] | ✓ | 93.68 (±0.32) | 93.74 (±0.10) | -0.16 | 1.21E8 | 52.3 |
| Ours | ✓ | 93.68 (±0.32) | 93.07 (±0.15) | 0.61 | 1.01E8 | 60.3 |
+
+Table 2. Comparison of the pruned ResNet on CIFAR-10. In "Init pretrain" column, " $\checkmark$ " and " $\times$ " indicate whether to use the pre-trained model as initialization or not, respectively. The "Acc. $\downarrow$ " is the accuracy drop between pruned model and the baseline model, the smaller, the better. A negative value in "Acc. $\downarrow$ " indicates an improved model accuracy.
+
+tween pruning a scratch model and the pre-trained model. For pruning the scratch model, we utilize the regular training schedule without additional fine-tuning. For pruning the pre-trained model, we reduce the learning rate to one-tenth of the original learning rate. To conduct a fair comparison, we use the same baseline model as [20] for pruning. During retraining, we use the cosine scheduler [35, 8] for a stable result. The pruning rate of every layer is sampled in the same way as $\mathrm{DCS}^1$ , so we could search the ratio automatically and adaptively [8].
+
+We compare our method with existing state-of-the-art acceleration algorithms, e.g., MIL [7], PFEC [27], CP [22], ThiNet [36], SFP [18], NISP [54], FPGM [20], LFC [44], ELR [49], GAL [30], IMP [38], DDS [24]. Experiments show that our LFPC achieves a comparable performance with those works. Our experiments are based on the PyTorch [40] framework. No significant performance differ
+
+ence has been observed with the PaddlePaddle framework.
+
+# 4.2. ResNet on CIFAR-10
+
+For the CIFAR-10 dataset, we test our LFPC on ResNet with depth 32, 56, and 110. As shown in Tab. 2, the experiment results validate the effectiveness of our method. For example, MIL [7] accelerates the random initialized ResNet-32 by $31.2\%$ speedup ratio with $1.59\%$ accuracy drop, but our LFPC achieves $52.6\%$ speedup ratio with only $0.51\%$ accuracy drop. When we achieve similar accuracy with FPGM [20] on ResNet-32, our acceleration ratio is much larger than FPGM [20]. Comparing to SFP [18], when we prune similar FLOPs of the random initialized ResNet-56, our LFPC has $1.07\%$ accuracy improvement over SFP [18]. For pruning the pre-trained ResNet-56, our method achieves a higher acceleration ratio than CP [22] with a $0.65\%$ accuracy increase over CP [22]. Comparing to PFEC [27], our method accelerates the random initialized ResNet-110 by $60.3\%$ speedup ratio with even $0.11\%$ accu
+
+| Depth | Method | Init Pretrain | Baseline top-1 acc.(%) | Pruned top-1 acc.(%) | Baseline top-5 acc.(%) | Pruned top-5 acc.(%) | Top-1 acc. ↓(%) | Top-5 acc. ↓(%) | FLOPs↓ (%) |
| 50 | SFP [18] | × | 76.15 | 74.61 | 92.87 | 92.06 | 1.54 | 0.81 | 41.8 |
| FPGM [20] | × | 76.15 | 74.13 | 92.87 | 91.94 | 2.02 | 0.93 | 53.5 |
| Ours | × | 76.15 | 74.18 | 92.87 | 91.92 | 1.97 | 0.95 | 60.8 |
| DDS [24] | ✓ | 76.12 | 74.18 | 92.86 | 91.91 | 1.94 | 0.95 | 31.1 |
| Thinet [36] | ✓ | 72.88 | 72.04 | 91.14 | 90.67 | 0.84 | 0.47 | 36.7 |
| SFP [18] | ✓ | 76.15 | 62.14 | 92.87 | 84.60 | 14.01 | 8.27 | 41.8 |
| NISP [54] | ✓ | - | - | - | - | 0.89 | - | 44.0 |
| IMP [38] | ✓ | 76.18 | 74.50 | | | 1.68 | | 45.0 |
| CP [22] | ✓ | - | - | 92.20 | 90.80 | - | 1.40 | 50.0 |
| LFC [44] | ✓ | 75.30 | 73.40 | 92.20 | 91.40 | 1.90 | 0.80 | 50.0 |
| ELR [49] | ✓ | - | - | 92.20 | 91.20 | - | 1.00 | 50.0 |
| FPGM [20] | ✓ | 76.15 | 74.83 | 92.87 | 92.32 | 1.32 | 0.55 | 53.5 |
| Ours | ✓ | 76.15 | 74.46 | 92.87 | 92.04 | 1.69 | 0.83 | 60.8 |
+
+racy improvement, while PFEC [27] achieves $21.7\%$ less acceleration ratio with $0.61\%$ accuracy drop.
+
+The reason for our superior result is that our proposed method adaptively selects suitable criteria for each functional layer based on their respective filter distribution. On the contrary, none of previous works [18, 22, 27] did this. We notice that pruning from a scratch model sometimes achieves a slightly better performance than pruning a pretrained model, which is consistent with [34]. Note that we achieve a higher acceleration ratio than [34] on ResNet-110 with similar accuracy. We conjecture that the optimized criteria might change the random initialization to "biased" random initialization, which is beneficial to the final performance. This result is consistent with the conclusion of [11] that a proper initialization is critical for the network.
+
+Criteria Visualization. The learned pruning criteria for ResNet-56 on CIFAR-10 is shown in Figure 4. The blue, orange and green denote pruning this layer with $\ell_1$ -norm, $\ell_2$ -norm and geometric median, respectively. The pruned network achieve $93.54(\pm 0.14)\%$ accuracy with pruning $53.0\%$ FLOPs. In this figure, we find that the GM-based criterion is adopted more at higher layers, while the $\ell_p$ -norm-based criteria are preferred at lower layers. An explanation is that filters of higher layers tend to extract semantic information, and their activations are semantically related to each other [46]. Therefore, our LFPC chooses the relation-based criteria instead of magnitude-based criteria when pruning higher layers.
+
+# 4.3. ResNet on CIFAR-100
+
+The results of pruning ResNet-56 on CIFAR-100 is shown in Tab. 4. We only list a few methods as other
+
+
+Figure 4. Visualization of the learned criteria and kept filters for ResNet-56 on CIFAR-10. The grey strip indicates the layers before pruning. The blue, orange and green color denote $\ell_1$ -norm, $\ell_2$ -norm and geometric median criteria, respectively. For example, the bottom green strip means that for all the 64 filters in $55_{th}$ layer, GM criterion is automatically selected to prune half of those filters, base on the filter distribution on that layer.
+
+methods have no experiment results on CIFAR-100. When achieving a similar ratio of acceleration, our LFPC could obtain much higher accuracies than the candidate algorithms [18] and [20]. This result again validates the effectiveness of our method.
+
+Table 3. Comparison of the pruned ResNet on ImageNet. "Init Pretrain" and "acc. $\downarrow$ " have the same meaning with Table 2.
+
+| Depth | Method | Pruned Acc.(%) | Acc. ↓(%) | FLOPs | FLOPs ↓(%) |
| 56 | MIL [7] | 68.37 | 2.96 | 7.63E7 | 39.3% |
| SFP [18] | 68.79 | 2.61 | 5.94E7 | 52.6% |
| FPGM [20] | 69.66 | 1.75 | 5.94E7 | 52.6% |
| Ours | 70.83 | 0.58 | 6.08E7 | 51.6% |
+
+Table 4. Comparison of the pruned ResNet-56 on CIFAR-100.
+
+
+Figure 5. Visualization of the conventional and adversarial criteria for ResNet-56 on CIFAR-10. The grey strip indicates the layers before pruning. Different blue and green colors represent different pruning criteria.
+
+# 4.4. ResNet on ILSVRC-2012
+
+For the ILSVRC-2012 dataset, we test our method on ResNet-50. Same as [20], we do not prune the projection shortcuts. Tab. 3 shows that our LPFC outperforms existing methods on ILSVRC-2012. For the random initialized ResNet-50, when our LFPC prunes $7.3\%$ more FLOPs than FPGM [20], the accuracy is even higher than FPGM [20]. For pruning the pre-trained ResNet-50, we achieve $92.04\%$ top-5 accuracy when we prune $60.8\%$ FLOPs. While the previous methods (CP [22], LFC [44], ELR [49]) have lower top-5 accuracy when pruning less FLOPs ( $50\%$ ). ThiNet [36] also has a lower accuracy than our LFPC when its acceleration ratio is lower than ours. The superior performance comes from that our method considers the different filter distribution of different layers.
+
+# 4.5. More Explorations
+
+Adversarial Criteria. To further validate the effectiveness of our LFPC, we add the adversarial criteria, which is the adversarial version of the current pruning criteria, to our system. For example, conventional norm-based criteria keep the filters with large $\ell_p$ -norm. In contrast, adversarial norm-based criteria keep the filters with small $\ell_p$ -norm, which could be formulated as $\mathrm{Crit}^{(l)}(\mathbf{W}_i^{(l)}) = \frac{1}{\|\mathbf{W}_i^{(l)}\|_p}$ for $i \in [1, C_O^{(l)}]$ .
+
+The learned criteria for ResNet-56 on CIFAR-10 are shown in Fig. 5. In this experiment, we utilize four criteria, including $\ell_1$ -norm, $\ell_2$ -norm, adversarial $\ell_1$ -norm, adversarial $\ell_2$ -norm. As shown in Tab. 5, for all the 55 criteria for ResNet-56, the adversarial criteria only account for a small proportion (16.4%). This means that our LFPC successfully selects conventional criteria and circumvents the adversarial criteria, which would be another evidence of the effectiveness of our LFPC.
+
+Criteria During Training The learned criteria during
+
+| Setting | Adversarial criteria (%) | Conventional criteria(%) | FLOPs ↓(%) | Accuracy (%) |
| w Adv | 16.4% | 83.6% | 58.0 | 93.09 (±0.09) |
| w/o Adv | 0 | 100% | 53.0 | 93.45 (±0.13) |
+
+Table 5. Analysis of adversarial criteria. "w Adv" and "w/o Adv" denote containing the adversarial criteria or not, respectively.
+
+
+Figure 6. The learned criteria during training the criteria sampler. The L1, L2, and GM denote conventional $\ell_1$ -norm, $\ell_2$ -norm, and geometric median criteria, respectively.
+
+training DCS is shown in Fig. 6. A small strip of a specific color means the layer of the network utilizes a corresponding pruning criterion at the current epoch. We find that the sampler gradually converges to a regular pattern of criteria, which provides stable guidance for the next pruning step.
+
+Retraining Scheduler. We compare the cosine scheduler [35] and step scheduler [20] during retraining. When pruning $47.6\%$ FLOPs of the ResNet-56, cosine scheduler can achieve $93.56(\pm 0.15)\%$ accuracy, while step scheduler can obtain $93.54(\pm 0.16)\%$ accuracy. It shows that LFPC can achieve a slightly stable result with a cosine scheduler.
+
+# 5. Conclusion and Future Work
+
+In this paper, we propose a new learning filter pruning criteria (LFPC) framework for deep CNNs acceleration. Different from the existing methods, LFPC explicitly considers the difference between layers and adaptively selects a set of suitable criteria for different layers. To learn the criteria effectively, we utilize Gumbel-softmax to make the criteria sampler process differentiable. LFPC achieves comparable performance with state-of-the-art methods in several benchmarks. In the future, we could consider utilizing more kinds of criteria into LFPC and combine it with other acceleration algorithms, e.g., matrix decomposition [28], to improve the performance further. Moreover, it is meaningful to adopt the proposed method to recent compact ConvNets such as MobileNets.
+
+# References
+
+[1] A. T. Benjamin and J. J. Quinn. Proofs that really count: the art of combinatorial proof. Number 27. MAA, 2003. 4
+[2] M. A. Carreira-Perpinán and Y. Idelbayev. “learning-compression” algorithms for neural net pruning. In CVPR, 2018. 2
+[3] E. D. Cubuk, B. Zoph, D. Mane, V. Vasudevan, and Q. V. Le. Autoaugment: Learning augmentation strategies from data. In CVPR, 2019. 3
+[4] X. Ding, G. Ding, Y. Guo, and J. Han. Centripetal sgd for pruning very deep convolutional networks with complicated structure. In CVPR, 2019. 3
+[5] X. Ding, G. Ding, Y. Guo, J. Han, and C. Yan. Approximated oracle filter pruning for destructive cnn width optimization. In ICML, 2019. 2, 3
+[6] X. Dong, S. Chen, and S. Pan. Learning to prune deep neural networks via layer-wise optimal brain surgeon. In NeurIPS, 2017. 2
+[7] X. Dong, J. Huang, Y. Yang, and S. Yan. More is less: A more complicated network with less inference complexity. In CVPR, 2017. 5, 6, 7
+[8] X. Dong and Y. Yang. Network pruning via transformable architecture search. In NeurIPS, 2019. 5, 6
+[9] X. Dong and Y. Yang. Searching for a robust neural architecture in fourgpu hours. In CVPR, 2019. 4
+[10] A. Dubey, M. Chatterjee, and N. Ahuja. Coreset-based neural network compression. arXiv preprint arXiv:1807.09810, 2018.2
+[11] J. Frankle and M. Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, 2019. 7
+[12] Y. Guo, A. Yao, and Y. Chen. Dynamic network surgery for efficient DNNs. In NeurIPS, 2016. 2
+[13] S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2015. 2
+[14] S. Han, J. Pool, J. Tran, and W. Dally. Learning both weights and connections for efficient neural network. In NeurIPS, 2015. 1, 2
+[15] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016. 1, 5
+[16] K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In ECCV, 2016. 5
+[17] Y. He, X. Dong, G. Kang, Y. Fu, C. Yan, and Y. Yang. Asymptotic soft filter pruning for deep convolutional neural networks. IEEE Transactions on Cybernetics, pages 1-11, 2019. 2
+[18] Y. He, G. Kang, X. Dong, Y. Fu, and Y. Yang. Soft filter pruning for accelerating deep convolutional neural networks. In IJCAI, 2018. 2, 5, 6, 7
+[19] Y. He, J. Lin, Z. Liu, H. Wang, L.-J. Li, and S. Han. Amc: Automl for model compression and acceleration on mobile devices. In ECCV, 2018. 2, 3, 6
+[20] Y. He, P. Liu, Z. Wang, and Y. Yang. Pruning filter via geometric median for deep convolutional neural networks acceleration. In CVPR, 2019. 1, 2, 3, 4, 5, 6, 7, 8
+
+[21] Y. He, P. Liu, L. Zhu, and Y. Yang. Meta filter pruning to accelerate deep convolutional neural networks. arXiv preprint arXiv:1904.03961, 2019. 2
+[22] Y. He, X. Zhang, and J. Sun. Channel pruning for accelerating very deep neural networks. In ICCV, 2017. 2, 5, 6, 7, 8
+[23] Q. Huang, K. Zhou, S. You, and U. Neumann. Learning to prune filters in convolutional neural networks. In WACV, 2018. 2, 3
+[24] Z. Huang and N. Wang. Data-driven sparse structure selection for deep neural networks. In ECCV, 2018. 2, 6, 7
+[25] E. Jang, S. Gu, and B. Poole. Categorical reparameterization with gumbel-softmax. In ICLR, 2017. 4
+[26] A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. 2009. 5
+[27] H. Li, A. Kadav, I. Durdanovic, H. Samet, and H. P. Graf. Pruning filters for efficient ConvNets. In ICLR, 2017. 1, 2, 3, 4, 5, 6, 7
+[28] S. Lin, R. Ji, C. Chen, D. Tao, and J. Luo. Holistic cnn compression via low-rank decomposition with knowledge transfer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(12):2889-2905, 2019. 8
+[29] S. Lin, R. Ji, Y. Li, Y. Wu, F. Huang, and B. Zhang. Accelerating convolutional networks via global & dynamic filter pruning. In *IJCAI*, 2018. 2
+[30] S. Lin, R. Ji, C. Yan, B. Zhang, L. Cao, Q. Ye, F. Huang, and D. Doermann. Towards optimal structured cnn pruning via generative adversarial learning. In CVPR, 2019. 2, 6
+[31] H. Liu, K. Simonyan, and Y. Yang. Darts: Differentiable architecture search. In ICLR, 2019. 3
+[32] Z. Liu, J. Li, Z. Shen, G. Huang, S. Yan, and C. Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017. 2
+[33] Z. Liu, H. Mu, X. Zhang, Z. Guo, X. Yang, T. K.-T. Cheng, and J. Sun. Metapruning: Meta learning for automatic neural network channel pruning. arXiv preprint arXiv:1903.10258, 2019. 3
+[34] Z. Liu, M. Sun, T. Zhou, G. Huang, and T. Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018. 6, 7
+[35] I. Loshchilov and F. Hutter. SGDR: Stochastic gradient descent with warm restarts. In *ICLR*, 2017. 6, 8
+[36] J.-H. Luo, J. Wu, and W. Lin. ThiNet: A filter level pruning method for deep neural network compression. In ICCV, 2017. 2, 5, 6, 7, 8
+[37] C. J. Maddison, A. Mnih, and Y. W. Teh. The concrete distribution: A continuous relaxation of discrete random variables. In ICLR, 2017. 4
+[38] P. Molchanov, A. Mallya, S. Tyree, I. Frosio, and J. Kautz. Importance estimation for neural network pruning. In CVPR, 2019. 2, 6, 7
+[39] P. Molchanov, S. Tyree, T. Karras, T. Aila, and J. Kautz. Pruning convolutional neural networks for resource efficient transfer learning. In ICLR, 2017. 2
+[40] A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. Devito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer. Automatic differentiation in pytorch. In NIPS-W, 2017. 5, 6
+
+[41] H. Peng, J. Wu, S. Chen, and J. Huang. Collaborative channel pruning for deep networks. In ICML, 2019. 2
+[42] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, et al. ImageNet large scale visual recognition challenge. IJCV, 2015. 5
+[43] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 1, 5
+[44] P. Singh, V. K. Verma, P. Rai, and V. P. Namboodiri. Leveraging filter correlations for deep model compression. arXiv preprint arXiv:1811.10559, 2018. 6, 7, 8
+[45] X. Suau, L. Zappella, V. Palakkode, and N. Apostoloff. Principal filter analysis for guided network compression. arXiv preprint arXiv:1807.10585, 2018. 2
+[46] C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. 7
+[47] K. Tang, Y. Niu, J. Huang, J. Shi, and H. Zhang. Unbiased scene graph generation from biased training. In CVPR, 2020. 1
+[48] F. Tung and G. Mori. Clip-q: Deep network compression learning by in-parallel pruning-quantization. In CVPR, 2018. 2
+[49] D. Wang, L. Zhou, X. Zhang, X. Bai, and J. Zhou. Exploring linear relationship in feature map subspace for convnets compression. arXiv preprint arXiv:1803.05729, 2018. 2, 6, 7, 8
+[50] X. Wang, Z. Zheng, Y. He, F. Yan, Z. Zeng, and Y. Yang. Progressive local filter pruning for image retrieval acceleration. arXiv preprint arXiv:2001.08878, 2020. 2
+[51] J. Ye, X. Lu, Z. Lin, and J. Z. Wang. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. In ICLR, 2018. 2
+[52] J. Yosinski, J. Clune, A. Nguyen, T. Fuchs, and H. Lipson. Understanding neural networks through deep visualization. ICML Deep Learning Workshop, 2015. 2
+[53] Z. You, K. Yan, J. Ye, M. Ma, and P. Wang. Gate decorator: Global filter pruning method for accelerating deep convolutional neural networks. arXiv preprint arXiv:1909.08174, 2019. 2, 3
+[54] R. Yu, A. Li, C.-F. Chen, J.-H. Lai, V. I. Morariu, X. Han, M. Gao, C.-Y. Lin, and L. S. Davis. NISP: Pruning networks using neuron importance score propagation. In CVPR, 2018, 2, 3, 6, 7
+[55] S. Zagoruyko and N. Komodakis. Wide residual networks. In BMVC, 2016. 5
+[56] T. Zhang, S. Ye, K. Zhang, J. Tang, W. Wen, M. Fardad, and Y. Wang. A systematic dnn weight pruning framework using alternating direction method of multipliers. ECCV, 2018. 2
+[57] Z. Zhuang, M. Tan, B. Zhuang, J. Liu, Y. Guo, Q. Wu, J. Huang, and J. Zhu. Discrimination-aware channel pruning for deep neural networks. In NeurIPS, 2018. 2
+[58] B. Zoph and Q. V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017. 3
\ No newline at end of file
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/images.zip b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..877c2ef444c241f9d063dbdcd055887481cc22b7
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:362458d0cacc27afb27dda16e6b3d9eba21b549d864df53c60005b58eef2d288
+size 631718
diff --git a/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/layout.json b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c0d896078ae27f4b7ba5a8d2bb08c08c219203b0
--- /dev/null
+++ b/learningfilterpruningcriteriafordeepconvolutionalneuralnetworksacceleration/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0c4ce2c113f11155488c9b438a2d3c1be6b243700d6b67fe91423849383381c8
+size 472766
diff --git a/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_content_list.json b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..17ec5777f912e6a205be37050bb175f3243bdfaf
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf716f836550f0564d91445361ec43ffeb8526f495e5178372754ff24c27b940
+size 76996
diff --git a/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_model.json b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b0f65fa71e3fc727f47d7e1d8b938409a68e354
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1c633706f0147f8b7259b34c6934d74da363d035167d5413b2106b74bc8f7853
+size 95295
diff --git a/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_origin.pdf b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f5397bff356d11e690f7f4ae0c0c1fae7e2dfd91
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/ed6c5416-323c-4f09-8f83-072d565c2f09_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:512837f503ed1fbfb40ade601525c010c7a1a38922f9a5dae938c2e6ca81cae8
+size 6141982
diff --git a/learningformationofphysicallybasedfaceattributes/full.md b/learningformationofphysicallybasedfaceattributes/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ff63a8016599875dfb0f595933f06e4efc0feeca
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/full.md
@@ -0,0 +1,350 @@
+# Learning Formation of Physically-Based Face Attributes
+
+Ruilong Li $^{1,2*}$ Pengda Xiang $^{1,2}$
+
+Karl Bladin $^{1*}$
+Xinglei Ren $^{1}$
+
+Yajie Zhao $^{1*}$
+Pratusha Prasad $^{1}$
+
+Chinmay Chinara1
+Bipin Kishore1
+
+Owen Ingraham1
+n Xing1 Hao Li1,2,3
+
+$^{1}$ USC Institute for Creative Technologies
+
+$^{2}$ University of Southern California $^{3}$ Pinscreen
+
+
+
+
+(a)
+
+
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+We introduce a comprehensive framework for learning physically based face models from highly constrained facial scan data. Our deep learning based approach for 3D morphable face modeling seizes the fidelity of nearly 4000 high resolution face scans encompassing expression and identity separation (a). The model (b) combines a multitude of anatomical and physically based face attributes to generate an infinite number of digitized faces (c). Our model generates faces at pore level geometry resolution (d).
+
+# Abstract
+
+Based on a combined data set of 4000 high resolution facial scans, we introduce a non-linear morphable face model, capable of producing multifarious face geometry of pore-level resolution, coupled with material attributes for use in physically-based rendering. We aim to maximize the variety of the participant's face identities, while increasing the robustness of correspondence between unique components, including middle-frequency geometry, albedo maps, specular intensity maps and high-frequency displacement details. Our deep learning based generative model learns to correlate albedo and geometry, which ensures the anatomical correctness of the generated assets. We demonstrate potential use of our generative model for novel identity generation, model fitting, interpolation, animation, high fidelity data visualization, and low-to-high resolution data domain transferring. We hope the release of this generative model will encourage further cooperation between all graphics, vision, and data focused professionals, while demonstrating the cumulative value of every individual's complete biometric profile.
+
+# 1. Introduction
+
+Graphical virtual representations of humans are at the center of many endeavors in the fields of computer vision and graphics, with applications ranging from cultural media such as video games, film, and telecommunication to medical, biometric modeling, and forensics [6].
+
+Designing, modeling, and acquiring high fidelity data for face models of virtual characters is costly and requires specialized scanning equipment and a team of skilled artists and engineers [17, 5, 37]. Due to limiting and restrictive data policies of VFX studios, in conjunction with the absence of a shared platform that regards the sovereignty of, and incentives for the individuals' data contributions, there is a large discrepancy in the fidelity of models trained on publicly available data, and those used in large budget game and film production. A single, unified model would democratize the use of generated assets, shorten production cycles and boost quality and consistency, while incentivizing innovative applications in many markets and fields of research.
+
+The unification of a facial scan data set in a 3D morphable face model (3DMM) [7, 12, 41, 6] promotes the favorable property of representing facial scan data in a compact form, retaining the statistical properties of the source
+
+without exposing the characteristics of any individual data point in the original data set.
+
+Previous methods, including traditional methods [7, 12, 27, 34, 16, 9], or deep learning [42, 38] to represent 3D face shapes; lack of high resolution (sub-millimeter, $< 1\mathrm{mm}$ ) geometric detail, use limited representations of facial anatomy, or forgo the physically based material properties required by modern visual effects (VFX) production pipelines. Physically based material intrinsics have proven difficult to estimate through the optimization of unconstrained image data due to ambiguities and local minima in analysis-by-synthesis problems, while highly constrained data capture remains percise but expensive [6]. Although variations occur due to different applications, most face representations used in VFX employ a set of texture maps of at least $4096 \times 4096$ ( $4K$ ) pixels resolution. At a minimum, this set incorporates diffuse albedo, specular intensity, and displacement (or surface normals).
+
+Our goal is to build a physically-based, high-resolution generative face model to begin bridging these parallel, but in some ways divergent, visualization fields; aligning the efforts of vision and graphics researchers. Building such a model requires high-resolution facial geometry, material capturing and automatic registration of multiple assets. The handling of said data has traditionally required extensive manual work, thus scaling such a database is non-trivial. For the model to be light weight these data need to be compressed into a compact form that enables controlled reconstruction based on novel input. Traditional methods such as PCA [7] and bi-linear models [12] - which are limited by memory size, computing power, and smoothing due to inherent linearity - are not suitable for high-resolution data.
+
+By leveraging state-of-the-art physically-based facial scanning [17, 25], in a Light Stage setting, we enable acquisition of diffuse albedo and specular intensity texture maps in addition to $4K$ displacement. All scans are registered using an automated pipeline that considers pose, geometry, anatomical morphometrics, and dense correspondence of 26 expressions per subject. A shared 2D UV parameterization data format [15, 43, 38], enables training of a non-linear 3DMM, while the head, eyes, and teeth are represented using a linear PCA model. Hence, we propose a hybrid approach to enable a wide set of head geometry assets as well as avoiding the assumption of linearity in face deformations.
+
+Our model fully disentangles identity from expressions, and provides manipulation using a pair of low dimensional feature vectors. To generate coupled geometry and albedo, we designed a joint discriminator to ensure consistency, along with two separate discriminators to maintain their individual quality. Inference and up-scaling of beforehand skin intrinsics enable recovery of $4K$ resolution texture maps.
+
+Our main contributions are:
+
+- The first published upscaling of a database of high resolution $(4K)$ physically based face model assets.
+- A cascading generative face model, enabling control of identity and expressions, as well as physically based surface materials modeled in a low dimensional feature space.
+- The first morphable face model built for full 3D real time and offline rendering applications, with more relevant anatomical face parts than previously seen.
+
+# 2. Related Work
+
+Facial Capture Systems Physical object scanning devices span a wide range of categories; from single RGB cameras [14, 39], to active [3, 17], and passive [4] light stereo capture setups, and depth sensors based on time-of-flight or stereo re-projection. Multi-view stereophotogrammetry (MVS) [4] is the most readily available method for 3D face capturing. However, due to its many advantages over other methods (capture speed, physically-based material capturing, resolution), polarized spherical gradient illumination scanning [17] remains state-of-the-art for high-resolution facial scanning. A mesoscopic geometry reconstruction is bootstrapped using an MVS prior, utilizing omni-directional illumination, and progressively finalized using a process known as photometric stereo [17]. The algorithm promotes the physical reflectance properties of dielectric materials such as skin; specifically the separable nature of specular and subsurface light reflections [29]. This enables accurate estimation of diffuse albedo and specular intensity as well as pore-level detailed geometry.
+
+3D Morphable Face Models The first published work on morphable face models by Blanz and Vetter [7] represented faces as dense surface geometry and texture, and modeled both variations as separate PCA models learned from around 200 subject scans. To allow intuitive control; attributes, such as gender and fullness of faces, were mapped to components of the PCA parameter space. This model, known as the Basel Face Model [33] was released for use in the research community, and was later extended to a more diverse linear face model learnt from around 10,000 scans [9, 8].
+
+To incorporate facial expressions, Vlasic et al. [45] proposed a multi-linear model to jointly estimate the variations in identity, viseme, and expression, and Cao et al. [12] built a comprehensive bi-linear model (identity and expression) covering 20 different expressions from 150 subjects learned from RGBD data. Both of these models adopt a tensor-based method under the assumption that facial expressions can be modeled using a small number of discrete
+
+
+Figure 1: Capture system and camera setup. Left: Light Stage capturing system. Right: camera layout.
+
+
+
+poses, corresponded between subjects. More recently, Li et al. [27] released the FLAME model, which incorporates both pose-dependent corrective blendshapes, and additional global identity and expression blendshapes learnt from a large number of 4D scans.
+
+To enable adaptive, high level, semantic control over face deformations, various locality-based face models have been proposed. Neumann et al. [32] extract sparse and spatially localized deformation modes, and Brunton et al. [10] use a large number of localized multilinear wavelet modes. As a framework for anatomically accurate local face deformations, the Facial Action Coding System (FACS) by Ekman [13] is widely adopted. It decomposes facial movements into basic action units attributed to the full range of motion of all facial muscles.
+
+Morphable face models have been widely used for applications like face fitting [7], expression manipulation [12], real-time tracking [41], as well as in products like Apple's ARKit. However, their use cases are often limited by the resolution of the source data and restrictions of linear models causing smoothing in middle and high frequency geometry details (e.g. wrinkles, and pores). Moreover, to the best of our knowledge, all existing morphable face models generate texture and geometry separately, without considering the correlation between them. Given the specific and varied ways in which age, gender, and ethnicity are manifested within the spectrum of human life, ignoring such correlation will cause artifacts; e.g. pairing an African-influenced albedo to an Asian-influenced geometry.
+
+Image-based Detail Inference To augment the quality of existing 3DMMs, many works have been proposed to infer the fine-level details from image data. Skin detail can be synthesized using data-driven texture synthesis [20] or statistical skin detail models [18]. Cao et al. [11] used a probability map to locally regress the medium-scale geometry details, where a regressor was trained from captured patch pairs of high-resolution geometry and appearance. Saito et al. [35] presented a texture inference technique using a deep neural network-based feature correlation analysis.
+
+GAN-based Image-to-Image frameworks [22] have proven to be powerful for high-quality detail synthesis, such
+
+ | (a) | (b) | (c) | (d) | (e) |
| LS | 4k × 4k | 3.9M | 4k × 4k | 79 | 26 |
| TG | 8k × 8k | 3.5M | N/A | 99 | 20 |
+
+Table 1: Resolution and extent of the datasets. (a). Albedo resolution. (b). Geometry resolution. (c). Specular intensity resolution. (d) # of subjects. (f). # of expressions per subject.
+
+as the coarse [44], medium [36] or even mesoscopic [21] scale facial geometry inferred directly from images. Beside geometry, Yamaguchi et al. [47] presented a comprehensive method to infer facial reflectance maps (diffuse albedo, specular intensity, and medium- and high-frequency displacement) based on single image inputs. More recently, Nagano et al. [31] proposed a framework for synthesizing arbitrary expressions both in image space and UV texture space, from a single portrait image. Although these methods can synthesize facial geometry or/and texture maps from a given image, they don't provide explicit parametric controls of the generated result.
+
+# 3. Database
+
+# 3.1. Data Capturing and Processing
+
+Data Capturing Our Light Stage scan system employs photometric stereo [17] in combination with monochrome color reconstruction using polarization promotion [25] to allow for pore level accuracy in both the geometry reconstruction and the reflectance maps. The camera setup (Fig.1) was designed for rapid, database scale, acquisition by the use of Ximea machine vision cameras which enable faster streaming and wider depth of field than traditional DSLRs [25]. The total set of 25 cameras consists of eight 12MP monochrome cameras, eight 12MP color cameras, and nine 4MP monochrome cameras. The 12MP monochrome cameras allow for pore level geometry, albedo, and specular reflectance reconstruction, while the additional cameras aid in stereo base mesh-prior reconstruction.
+
+To capture consistent data across multiple subjects with maximized expressiveness, we devised a FACS set [13] which combines 40 action units to a condensed set of 26 expressions. In total, 79 subjects, 34 female, and 45 male, ranging from age 18 to 67, were scanned performing the 26 expressions. To increase diversity, we combined the data set with a selection of 99 Triplegangers [2] full head scans; each with 20 expressions. Resolution and extent of the two data sets are shown in Table 1. Fig. 2 shows the age and ethnicity (multiple choice) distributions of the source data.
+
+
+(a) Age distribution
+
+
+(b) Ethnicity distribution
+
+
+Figure 2: Distribution of age (a) and ethnicity (b) in the data sets.
+Figure 3: Our generic face model consists of multiple geometries constrained by different types of deformation. In addition to face (a), head, and neck (b), our model represents teeth (c), gums (d), eyeballs (e), eye blending (f), lacrimal fluid (g), eye occlusion (h), and eyelashes (i). Texture maps provide high resolution (4K) albedo (j), specularity (k), and geometry through displacement (l).
+
+Processing Pipeline. Starting from the multi-view imagery, a neutral scan base mesh is reconstructed using MVS. Then a linear PCA model in our topology (See Fig.3) based on a combination and extrapolation of two existing models (Basel [33] and Face Warehouse [12]) is used to fit the mesh. Next, Laplacian deformation is applied to deform the face area to further minimize the surface-to-surface error. Cases of inaccurate fitting were manually modeled and fitted to retain the fitting accuracy of the eyeballs, mouth sockets and skull shapes. The resulting set of neutral scans were immediately added to the PCA basis for registering new scans. We fit expressions using generic blendshapes and non-rigid ICP [26]. Additionally, to retain texture space and surface correspondence, image space optical flow from neutral to expression scan is added from 13 different virtual camera views as additional dense constraint in the final Laplacian deformation of the face surface.
+
+# 3.2. Training Data Preparation
+
+Data format. The full set of the generic model consists of a hybrid geometry and texture maps (albedo, specular intensity, and displacement) encoded in $4K$ resolution, as illustrated in Fig. 3. To enable joint learning of the correlation between geometry and albedo, 3D vertex positions are rasterized to a three channel HDR bitmap of $256 \times 256$ pixels resolution. The face area (pink in Fig. 3) used to learn the geometry distribution in our non-linear generative model consists of $m = 11892$ vertices, which, if evenly
+
+
+Figure 4: Comparison of base mesh geometry resolutions. Left: Base geometry reconstructed in $4K$ resolution. Middle: Base geometry reconstructed in $256 \times 256$ resolution. Right: Error map showing the Hausdorff distance in the range $(0mm, 1mm)$ , with a mean error of $0.068mm$ .
+
+
+
+
+
+
+
+spread out in texture space, would require a bitmap of resolution greater or equal to $\lceil \sqrt{2 \times m} \rceil^2 = 155 \times 155$ , according to Nyquist's resampling theorem. As shown in Fig. 4, the proposed resolution is enough to recover middle-frequency detail. This relatively low resolution base geometry representation enables great simplification in training data load.
+
+Data Augmentation Since the number of subjects is limited to 178 individuals, we apply two strategies to augment the data for identity training: 1) For each source albedo, we randomly sample a target albedo within the same ethnicity and gender in the data set using [49] to transfer skin tones of target albedos to source albedos (these samples are restricted to datapoints of the same ethnicity), followed by an image enhancement [19] to improve the overall quality and remove artifacts. 2). For each neutral geometry, we add a very small expression offset using FaceWarehouse expression components with a small random weights $(< \pm 0.5$ std) to loosen the constraints of "neutral". To augment the expressions, we add random expression offsets to generate fully controlled expressions.
+
+# 4. Generative Model
+
+An overview of our system is illustrated in Fig. 5. Given a sampled latent code $Z_{id} \sim N(\mu_{id}, \sigma_{id})$ , our Identity network generates a consistent albedo and geometry pair of neutral expression. We train an Expression network to generate the expression offset that can be added to the neutral geometry. We use random blendshape weights $Z_{exp} \sim N(\mu_{exp}, \sigma_{exp})$ as the expression network's input to enable manipulation of target semantic expressions. We upscale the albedo and geometry maps to $1K$ , and feed them into a transfer network [46] to synthesize the corresponding $1K$ specular and displacement maps. Finally, all the maps except for the middle frequency geometry map are upscaled to $4K$ using Super-resolution [24], as we observed that $256 \times 256$ pixels are sufficient to represent the details of
+
+
+Figure 5: Overview of generative pipeline. Latent vectors for identity and expression serve as input for generating the final face model.
+
+
+
+
+Figure 6: Identity generative network. The identity generator $G_{id}$ produces albedo and geometry which get checked against ground truth (GT) data by the discriminators, $D_{albedo}$ , $D_{joint}$ , and $D_{geometry}$ during training.
+
+the base geometry (Section 3.2). The details of each component are elaborated on in Section 4.1, 4.2, and 4.3.
+
+# 4.1. Identity Network
+
+The goal of our Identity network is to model the cross correlation between geometry and albedo to generate consistent, diverse and biologically accurate identities. The network is built upon the Style-GAN architecture [23], that can produce high-quality, style-controllable sample images.
+
+To achieve consistency, we designed 3 discriminators as shown in Fig.6, including individual discriminators for albedo $(D_{albedo})$ and geometry $(D_{geometry})$ , to ensure the quality and sharpness of the generated maps, and an additional joint discriminator $(D_{joint})$ to learn their correlated distribution. $D_{joint}$ is formulated as follows:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {a d v}} = \min _ {G _ {i d}} \max _ {D _ {j o i n t}} \mathbb {E} _ {\boldsymbol {x} \sim p _ {\text {d a t a}} (\boldsymbol {x})} [ \log D _ {j o i n t} (\boldsymbol {A}) ] + \tag {1} \\ \mathbb {E} _ {\boldsymbol {z} \sim p _ {\boldsymbol {z}} (\boldsymbol {z})} \left[ \log \left(1 - D _ {\text {j o i n t}} (G _ {i d} (\boldsymbol {z}))\right) \right]. \\ \end{array}
+$$
+
+where $p_{\mathrm{data}}(\pmb{x})$ and $p_{\pmb{z}}(\pmb{z})$ represent the distributions of real paired albedo and geometry $\pmb{x}$ and noise variables $\pmb{z}$ in the domain of $\mathcal{A}$ respectively.
+
+# 4.2. Expression Network
+
+To simplify the learning of a wide range of diverse expressions, we represent them using vector offset maps,
+
+
+Figure 7: Expression generative network. The expression generator $G_{exp}$ generates offsets which get checked against ground truth offsets by the discriminator $D_{exp}$ . The regressor $R_{exp}$ produces an estimate of the latent code $Z_{exp}'$ so that the L1 loss $\mathcal{L}_{exp}$ can be modeled.
+
+which also makes the learning of expressions independent from identity. Similar to the Identity network, the expression network adopts Style-GAN as the base structure. To allow for intuitive control over expressions, we use the blend-shape weights, which correspond to the strength of 25 orthogonal facial activation units, as network input. We introduce a pre-trained expression regression network $R_{exp}$ to predict the expression weights from the generated image, and force this prediction to be similar to the input latent code $Z_{exp}$ . We then force the generator to understand the input latent code $Z_{exp}$ under the perspective of the pre-trained expression regression network. As a result, each dimension of the latent code $Z_{exp}$ will control the corresponding expression defined in the original blendshape set. The loss we introduce here is:
+
+$$
+\mathcal {L} _ {e x p} = \left\| Z _ {e x p} - Z _ {e x p} ^ {\prime} \right\| \tag {2}
+$$
+
+This loss, $\mathcal{L}_{exp}$ , will be back propagated during training to enforce the orthogonality of each blending unit. We minimize the following losses to train the network:
+
+$$
+\mathcal {L} = \mathcal {L} _ {l _ {2}} ^ {e x p} + \beta_ {1} \mathcal {L} _ {a d v} ^ {e x p} + \beta_ {2} \mathcal {L} _ {e x p} \tag {3}
+$$
+
+where $\mathcal{L}_{l_2}^{exp}$ is the $L_{2}$ reconstruction loss of the offset map and $\mathcal{L}_{adv}^{exp}$ is the discriminator loss.
+
+# 4.3. Inference and Super-resolution
+
+Similar to [47]; upon obtaining albedo and geometry maps $(256 \times 256)$ , we use them to infer specular and displacement maps in $1K$ resolution. In contrast to [47], using only albedo as input, we introduce the geometry map to form stronger constraints. For displacement, we adopted the method of [47, 21] to separate displacement in to individual high-frequency and low-frequency components, which makes the problem more tractable. Before feeding the two inputs into the inference network [46], we up-sample the albedo to $1K$ using a super-resolution network similar to [24]. The geometry map is super-sampled using bilinear interpolation. The maps are further up-scaled from $1K$ to $4K$ using the same super-resolution network structure. Our method can be regarded as a two step cascading up-sampling strategy (256 to $1K$ , and $1K$ to $4K$ ). This makes the training faster, and enables higher resolution in the final results.
+
+# 5. Implementation Details
+
+Our framework is implemented using Pytorch and all our networks are trained using two NVIDIA Quadro GV100s. We follow the basic training schedule of Style-GAN [23] with several modifications applied to the Expression network, like by-passing the progressive training strategy as expression offsets are only distinguishable on relatively high resolution maps. We also remove the noise injection layer, due to the input latent code $Z_{exp}$ which enables full control of the generated results. The regression module ( $R_{exp}$ -block in Fig.7) has the same structure as the discriminator $D_{exp}$ , except for the number of channels in the last layer, as it serves as a discriminator during training. The regression module is initially trained using synthetic unit expression data generated with neutral expression and FaceWarehouse expression components, and then finetuned on scanned expression data. During training, $R_{exp}$ , is fixed without updating parameters. The Expression network is trained with a constant batch size of 128 on 256x256-pixel images for 40 hours. The Identity network is trained by progressively reducing the batch size from 1024 to 128 on growing image sizes ranging from 8x8 to 256x256 pixels, for 80 hours.
+
+# 6. Experiments And Evaluations
+
+# 6.1. Results
+
+In Fig.10, we show the quality of our generated model rendered using Arnold. The direct output of our generative model provides all the assets necessary for physically-based rendering in software such as Maya, Unreal Engine, or Unity 3D. We also show the effect of each generated component.
+
+
+Figure 8: Non-linear identity interpolation between generated subjects. Age (top) and gender (bottom) are interpolated from left to right.
+
+
+Figure 9: Non linear expression interpolation using generative expression network. Combinations of two example shapes are displayed in a grid where the number of standard deviations from the generic neutral model define the extent of an expression shape.
+
+# 6.2. Qualitative Evaluation
+
+We show identity interpolation in Fig.8. The interpolation in latent space reflects both albedo and geometry. In contrast to linear blending, our interpolation generates subjects belonging to a natural statistical distribution.
+
+In Fig.9, we show the generation and interpolation of our non-linear expression model. We pick two orthogonal blendshapes for each axis and gradually change the input weights. Smooth interpolation in vector space will lead to a smooth interpolation in model space.
+
+We show nearest neighbors for generated models in the training set in Fig.11. These are found based on point-wise Euclidean distance in geometry. Albedos are compared to prove our ability to generate new models that are not merely recreations of the training set.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a)
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+
+(e)
+
+
+(f)
+
+
+Figure 10: Rendered images of generated random samples. Column (a), (b), and (c) show images rendered under novel image-based HDRI lighting [48]. Column (c), (d), and (e), show geometry with albedo, specular intensity, and displacement added one at the time.
+Figure 11: Nearest neighbors for generated models in training set. Top row: albedo from generated models. Bottom row: albedo of geometrically nearest neighbor in training set.
+
+| Generation Method | IS↑ | FID↓ |
| independent | 2.22 | 23.61 |
| joint | 2.26 | 21.72 |
| groud truth | 2.35 | - |
+
+Table 2: Evaluation on our Identity generation. Both IS and FID are calculated on images rendered with independently/jointly generated albedo and geometry.
+
+# 6.3.Quantitative Evaluation
+
+We evaluate the effectiveness of our identity network's joint generation in Table 2 by computing Frechet Inception Distances (FID) and Inception-Scores (IS) on rendered images of three categories: randomly paired albedo and geometry, paired albedo and geometry generated using our model, and ground truth pairs. Based on these results, we conclude that our model generates more plausible faces, similar to those using ground truth data pairs, than random pairing.
+
+We also evaluate our identity network's generalization to unseen faces by fitting 48 faces from [1]. The average Hausdorff distance is $2.8mm$ , which proves that our model's capacity is not limited by the training set.
+
+In addition, to evaluate the non-linearity of our expression network in comparison to the linear expression model of FaceWarehouse [12], we first fit all the Light Stage scans using FaceWarehouse, and get the 25 fitting weights, and expression recoveries, for each scan. We then recover the same expressions by feeding the weights to our expression network. We evaluate the reconstruction loss with mean-square error (MSE) for both FaceWarehouse's and
+
+
+(a) Training data
+
+
+(b) Generated data
+
+
+Figure 12: The age distribution of the training data (a) VS. randomly generated samples (b).
+Figure 13: Comparison of 3D scan fitting with Basel [7], FacewareHouse [12], and FLAME [27]. Error maps are computed using Hausdorff distance between each fitted model and ground truth scans.
+
+our model's reconstructions. On average, our method's MSE is $1.2mm$ while FaceWarehouse's is $2.4mm$ . This shows that for expression fitting, our non-linear model numerically outperforms a linear model of the same dimensionality.
+
+To demonstrate our generative identity model's coverage of the training data, we show the gender, and age distributions of the original training data and 5000 randomly generated samples in Fig.12. The generated distributions are well aligned with the source.
+
+# 6.4. Applications
+
+To test the extent of our identity model's parameter space, we apply it to scanned mesh registration by reversing the GAN to fit the latent code of a target image [28]. As our model requires a 2D parameterized geometry input, we first use our linear model to align the scans using landmarks, and then parameterize it to UV space after Laplacian morphing of the surface. We compare our fitting results with widely used (linear) morphable face models in Fig.13. This evaluation does not prove the ability to register unconstrained data but shows that our model is able to reconstruct novel faces by the virtue of its non-linearity, to a degree unobtainable by linear models.
+
+Another application of our model is transferring low-quality scans into the domain of our model by fitting using both MSE loss and discriminator loss. In Fig.14, we show examples of data enhancement of low resolution scans.
+
+
+Figure 14: Low-quality data domain transfer. Top row: Models with low resolution geometry and albedo. Bottom row: Enhancement result using our model.
+
+# 7. Conclusion and Limitations
+
+Conclusion We have introduced the first published use of a high-fidelity face database, with physically-based material attributes, in generative face modeling. Our model can generate novel subjects and expressions in a controllable manner. We have shown that our generative model performs well on applications such as mesh registration and low resolution data enhancement. We hope that this work will benefit many analysis-by-synthesis research efforts through the provision of higher quality in face image rendering.
+
+Limitations and Future work In our model, expression and identity are modeled separately without considering their correlation. Thus the reconstructed expression offset will not include middle-frequency geometry of an individual's expression, as different subjects will have unique representations of the same action unit. Our future work will include modeling of this correlation. Since our expression generation model requires neural network inference and re-sampling of 3D geometry it is not currently as user friendly as blendshape modeling. Its ability to re-target prerecorded animation sequences will have to be tested further to be conclusive. One issue of our identity model arises in applications that require fitting to 2D imagery, which necessitates an additional differentiable rendering component. A potential problem is fitting lighting in conjunction with shape as complex material models make the problem less tractable. A possible solution could be an image-based relighting method [40, 30] applying a neural network to convert the rendering process to an image manipulation problem. The model will be continuously updated with new features such as variable eye textures and hair as well as more anatomically relevant components such as skull, jaw, and neck joints by combining data sources through collaborative efforts. To encourage democratization and wide use cases we will explore encryption techniques such as federated learning, homomorphic encryption, and zero knowledge proofs which have the effect of increasing subjects' anonymity.
+
+# References
+
+[1] 3d scan store: Male and female 3d head model 48 x bundle. https://www.3dscanstore.com/3d-head-models/female-retopologised-3d-head-models/male-female-3d-head-model-48xbundle. Online; Accessed: 2019-11-22. 7
+[2] Triplegangers. https://triplegangers.com/. Online; Accessed: 2019-11-22. 3
+[3] Oleg Alexander, Mike Rogers, William Lambeth, Matt Chiang, and Paul Debevec. The digital emily project: Photoreal facial modeling and animation. In ACM SIGGRAPH Courses, 2009. 2
+[4] Thabo Beeler, Bernd Bickel, Paul A. Beardsley, Bob Sumner, and Markus H. Gross. High-quality single-shot capture of facial geometry. In ACM Transactions on Graphics (TOG), 2010. 2
+[5] Thabo Beeler, Fabian Hahn, Derek Bradley, Bernd Bickel, Paul A. Beardsley, Craig Gotsman, Robert W. Sumner, and Markus Groß. High-quality passive facial performance capture using anchor frames. In ACM Transactions on Graphics (TOG), 2011. 1
+[6] Ayush Tewari Stefanie Wuhrer Michael Zollhoefer Thabo Beeler Florian Bernard Timo Bolkart Adam Kortylewski Sami Romdhani Christian Theobalt Volker Blanz Thomas Vetter Bernhard Egger, William A. P. Smith. 3d morphable face models-past, present and future. arXiv preprint arXiv:1909.01815, 2019. 1, 2
+[7] Volker Blanz and Thomas Vetter. A morphable model for the synthesis of 3d faces. In ACM Transactions on Graphics (TOG), SIGGRAPH '99, 1, 2, 3, 8
+[8] James Booth, Anastasios Roussos, Allan Ponniah, David Dunaway, and Stefanos Zafeiriou. Large scale 3d morphable models. International Journal of Computer Vision, 126:233-254, 2017. 2
+[9] James Booth, Anastasios Roussos, Stefanos Zafeiriou, Allan Ponniah, and David Dunaway. A 3d morphable model learnt from 10,000 faces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5543-5552, 2016. 2
+[10] Alan Brunton, Timo Bolkart, and Stefanie Wuhrer. Multilinear wavelets: A statistical shape space for human faces. In Proceedings of the European Conference on Computer Vision (ECCV), 2014. 3
+[11] Chen Cao, Derek Bradley, Kun Zhou, and Thabo Beeler. Real-time high-fidelity facial performance capture. ACM Transactions on Graphics (TOG), 34(4), July 2015. 3
+[12] Chen Cao, Yanlin Weng, Shun Zhou, Yiying Tong, and Zhou Kun. Facewarehouse: A 3d facial expression database for visual computing. IEEE Transactions on Visualization and Computer Graphics, 2014. 1, 2, 3, 4, 7, 8
+[13] Paul Ekman and Wallace V. Friesen. Facial action coding system: a technique for the measurement of facial movement. In Consulting Psychologists Press, 1978. 3
+[14] Pablo Garrido, Levi Valgaert, Chenglei Wu, and Christian Theobalt. Reconstructing detailed dynamic face geometry.
+
+try from monocular video. ACM Transactions on Graphics (TOG), 32(6), Nov. 2013. 2
+[15] Baris Gecer, Alexander Lattas, Stylianos Ploumpis, Jiankang Deng, Athanasios Papaioannou, Stylianos Moschoglou, and Stefanos Zafeiriou. Synthesizing coupled 3d face modalities by trunk-branch generative adversarial networks. arXiv preprint arXiv:1909.02215, 2019. 2
+[16] Thomas Gereg, Andreas Morel-Forster, Clemens Blumer, Bernhard Egger, Marcel Luthi, Sandro Schonborn, and Thomas Vetter. Morphable face models—an open framework. In IEEE International Conference on Automatic Face & Gesture Recognition (FG 2018). IEEE, 2018. 2
+[17] Abhijeet Ghosh, Graham Fyffe, Borom Tunwattanapong, Jay Busch, Xueming Yu, and Paul E. Debevec. Multiview face capture using polarized spherical gradient illumination. ACM Transactions on Graphics (TOG), 30:129, 2011. 1, 2, 3
+[18] Aleksey Golovinskiy, Wojciech Matusik, Hanspeter Pfister, Szymon Rusinkiewicz, and Thomas A. Funkhouser. A statistical model for synthesis of detailed facial geometry. ACM Transactions on Graphics (TOG), 25:1025-1034, 2006. 3
+[19] Yoav HaCohen, Eli Shechtman, Dan B Goldman, and Dani Lischinski. Non-rigid dense correspondence with applications for image enhancement. ACM transactions on graphics (TOG), 30(4):70, 2011. 4
+[20] Antonio Haro, Irfan A. Essa, and Brian K. Guenter. Realtime photo-realistic physically based rendering of fine scale human skin structure. In Rendering Techniques, 2001. 3
+[21] Loc Huynh, Weikai Chen, Shunsuke Saito, Jun Xing, Koki Nagano, Andrew Jones, Paul E. Debevec, and Hao Li. Mesoscopic facial geometry inference using deep neural networks. Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 3, 6
+[22] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5967-5976, 2016. 3
+[23] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4401-4410, 2019. 5, 6
+[24] Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681-4690, 2017. 4, 6
+[25] Chloe LeGendre, Kalle Bladin, Bipin Kishore, Xinglei Ren, Xueming Yu, and Paul Debevec. Efficient multispectral facial capture with monochrome cameras. In Color and Imaging Conference, volume 2018, pages 187-202, 2018. 2, 3
+[26] Hao Li, Robert W. Sumner, and Mark Pauly. Global correspondence optimization for non-rigid registration of depth scans. In Proceedings of the Symposium on Geometry Processing, SGP '08, pages 1421-1430, Aire-la-Ville, Switzerland, Switzerland, 2008. Eurographics Association. 4
+
+[27] Tianye Li, Timo Bolkart, Michael J Black, Hao Li, and Javier Romero. Learning a model of facial shape and expression from 4d scans. ACM Transactions on Graphics (TOG), 36(6):194, 2017. 2, 3, 8
+[28] Zachary C Lipton and Subarna Tripathi. Precise recovery of latent vectors from generative adversarial networks. arXiv preprint arXiv:1702.04782, 2017. 8
+[29] Wan-Chun Ma, Tim Hawkins, Pieter Peers, Charles-Félix Chabert, Malte Weiss, and Paul E. Debevec. Rapid acquisition of specular and diffuse normal maps from polarized spherical gradient illumination. In Rendering Techniques, 2007. 2
+[30] Abhinitra Meka, Christian Haene, Rohit Pandey, Michael Zollhoefer, Sean Fanello, Graham Fyffe, Adarsh Kowdle, Xueming Yu, Jay Busch, Jason Dourgarian, Peter Denny, Sofien Bouaziz, Peter Lincoln, Matt Whalen, Geoff Harvey, Jonathan Taylor, Shahram Izadi, Andrea Tagliasacchi, Paul Debevec, Christian Theobalt, Julien Valentin, and Christoph Rhemann. Deep reflectance fields - high-quality facial reflectance field inference from color gradient illumination. volume 38, July 2019. 8
+[31] Koki Nagano, Jaewoo Seo, Jun Xing, Lingyu Wei, Zimo Li, Shunsuke Saito, Aviral Agarwal, Jens Fursund, and Hao Li. pagan: real-time avatars using dynamic textures. ACM Transactions on Graphics (TOG), 37:258:1-258:12, 2018. 3
+[32] Thomas Neumann, Kiran Varanasi, Stephan Wenger, Markus Wacker, Marcus A. Magnor, and Christian Theobalt. Sparse localized deformation components. ACM Transactions on Graphics (TOG), 32:179:1-179:10, 2013. 3
+[33] Pascal Paysan, Reinhard Knothe, Brian Amberg, Sami Romdhani, and Thomas Vetter. A 3d face model for pose and illumination invariant face recognition. IEEE International Conference on Advanced Video and Signal Based Surveillance, pages 296-301, 2009. 2, 4
+[34] Stylianos Ploumpis, Haoyang Wang, Nick Pears, William AP Smith, and Stefanos Zafeiriou. Combining 3d morphable models: A large scale face-and-head model. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[35] Shunsuke Saito, Lingyu Wei, Liwen Hu, Koki Nagano, and Hao Li. Photorealistic facial texture inference using deep neural networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2326-2335, 2016. 3
+[36] Matan Sela, Elad Richardson, and Ron Kimmel. Unrestricted facial geometry reconstruction using image-to-image translation. 2017 IEEE International Conference on Computer Vision (ICCV), pages 1585-1594, 2017. 3
+[37] Yeongho Seol, Wan-Chun Ma, and J. P. Lewis. Creating an actor-specific facial rig from performance capture. In Proceedings of the 2016 Symposium on Digital Production, DigiPro '16, 2016. 1
+[38] Gil Shamai, Ron Slossberg, and Ron Kimmel. Synthesizing facial photometries and corresponding geometries using generative adversarial networks. arXiv preprint arXiv:1901.06551, 2019. 2
+[39] Fuhao Shi, Hsiang-Tao Wu, Xin Tong, and Jinxiang Chai. Automatic acquisition of high-fidelity facial performances
+
+using monocular videos. ACM Transactions on Graphics (TOG), 33:222:1-222:13, 2014. 2
+[40] Tiancheng Sun, Jonathan T Barron, Yun-Ta Tsai, Zexiang Xu, Xueming Yu, Graham Fyffe, Christoph Rhemann, Jay Busch, Paul Debevec, and Ravi Ramamoorthi. Single image portrait relighting. ACM Transactions on Graphics (TOG), 38(4):79, 2019. 8
+[41] Justus Thies, Michael Zollhöfer, Marc Stamminger, Christian Theobalt, and Matthias Nießner. Face2face: real-time face capture and reenactment of rgb videos. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1, 3
+[42] Luan Tran, Feng Liu, and Xiaoming Liu. Towards high-fidelity nonlinear 3d face morphable model. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1126-1135, 2019. 2
+[43] Luan Tran and Xiaoming Liu. On learning 3d face morphable model from in-the-wild images. IEEE transactions on pattern analysis and machine intelligence, 2019. 2
+[44] George Trigeorgis, Patrick Snape, Iasonas Kokkinos, and Stefanos Zafeiriou. Face normals "in-the-wild" using fully convolutional networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 340-349, 2017. 3
+[45] Daniel Vlasic, Matthew Brand, Hanspeter Pfister, and Jovan Popovic. Face transfer with multilinear models. In ACM Transactions on Graphics (TOG), 2005. 2
+[46] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 4, 6
+[47] Shugo Yamaguchi, Shunsuke Saito, Koki Nagano, Yajie Zhao, Weikai Chen, Kyle Olszewski, Shigeo Morishima, and Hao Li. High-fidelity facial reflectance and geometry inference from an unconstrained image. ACM Transactions on Graphics (TOG), 37:162:1-162:14, 2018. 3, 6
+[48] G. Zaal. HDRI Haven. https://hdrihaven.com/ hdris/. Online; Accessed: 2019-11-22. 7
+[49] Yajie Zhao, Qingguo Xu, Weikai Chen, Chao Du, Jun Xing, Xinyu Huang, and Ruigang Yang. Mask-off: Synthesizing face images in the presence of head-mounted displays. In 2019 IEEE Conference on Virtual Reality and 3D User Interfaces (VR), pages 267-276. IEEE, 2019. 4
\ No newline at end of file
diff --git a/learningformationofphysicallybasedfaceattributes/images.zip b/learningformationofphysicallybasedfaceattributes/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c82f384e270ff0e4abaa82a70d81ee0390e04032
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b6e4441b576f4732d31955f1c0ddd91034a933cc8954c4e2d8dc5af58359468
+size 620183
diff --git a/learningformationofphysicallybasedfaceattributes/layout.json b/learningformationofphysicallybasedfaceattributes/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5dfccac2cbded032584e582ca83c06109643927e
--- /dev/null
+++ b/learningformationofphysicallybasedfaceattributes/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b9db9fc412bbb2554072b8f13dd9235f6e60abe23267d27bb3102f966198ea8
+size 413209
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_content_list.json b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5d1a16bd125fa3a66afd1b1412dbc51ff5e6e4fb
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d84cfa2cc7fc9a83731c05b054a7a1abc6c4706d3eb529f89b300051369c690c
+size 77108
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_model.json b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..502a10840ad3200502ca35888511af145a66f124
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:791ada7b2c9b58494a56ac392a8661b7a1bfc8cc2e12e7f58159efde8ce61371
+size 92939
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_origin.pdf b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c7408e04800e605d12836360e16d6d9776ac5c63
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/f7d21f2f-1fcc-4c03-998b-fea40708d556_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:562f1404546cc76d9ad6770bc5ef246636eeaf7f9f8727271a9590d77e683349
+size 2167717
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/full.md b/learningfromnoisyanchorsforonestageobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..48c1a03fd50f57a9e97e77b4dce8511b0eb632aa
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/full.md
@@ -0,0 +1,312 @@
+# Learning from Noisy Anchors for One-stage Object Detection
+
+Hengduo Li\*, Zuxuan Wu, Chen Zhu, Caiming Xiong, Richard Socher, Larry S. Davis University of Maryland Salesforce Research
+
+{hdl, zxwu, chenzhu, lsd}@cs.umd.edu, {cxiong, rsocher}@salesforce.com
+
+# Abstract
+
+State-of-the-art object detectors rely on regressing and classifying an extensive list of possible anchors, which are divided into positive and negative samples based on their intersection-over-union (IoU) with corresponding ground-truth objects. Such a harsh split conditioned on IoU results in binary labels that are potentially noisy and challenging for training. In this paper, we propose to mitigate noise incurred by imperfect label assignment such that the contributions of anchors are dynamically determined by a carefully constructed cleanliness score associated with each anchor. Exploring outputs from both regression and classification branches, the cleanliness scores, estimated without incurring any additional computational overhead, are used not only as soft labels to supervise the training of the classification branch but also sample re-weighting factors for improved localization and classification accuracy. We conduct extensive experiments on COCO, and demonstrate, among other things, the proposed approach steadily improves RetinaNet by $\sim 2\%$ with various backbones.
+
+# 1. Introduction
+
+Object detectors aim to identify rigid bounding boxes that enclose objects of interest in images and have steadily improved over the past few years. Key to the advancement in accuracy is the reduction of object detection to an image classification problem. In particular, a set of candidate boxes, i.e., anchors, of various pre-defined sizes and aspect ratios, are extensively used to be regressed to desired locations and classified into object labels (or background). While training the regression branch is straightforward with ground-truth (GT) coordinates of objects available, optimizing the classification network is challenging: only a small fraction of anchors sufficiently overlap with GT boxes. This limited number of proposals are considered as positive samples, together with a vast number of remaining
+
+
+
+
+(a)
+
+
+
+
+(b)
+
+
+
+
+(c)
+Figure 1: Candidate anchors and their assigned labels (represented by color) in sampled images. Top: classical training methods assign binary labels, i.e., positive (in blue) and negative (in red) to anchors based on IoU between candidates and ground-truth boxes (in green). Bottom: soft labels, represented by the density of colors, assigned to anchors by our approach based on a proposed cleanliness metric for anchors. Best viewed digitally.
+
+Negative
+
+$\frac{1 + u}{7} = {70}\%$
+
+$\frac{1 + u}{7} = {70}\%$
+
+Positive
+
+negative anchors, to learn good classifiers with the help of techniques like focal loss [22] or hard sample mining methods [36, 31, 26] that can mitigate data imbalance problems.
+
+Despite the success of such training schemes in various detectors [30, 28, 24, 21, 22], the split of positive and negative anchors relies on a design choice—proposals whose IoUs with GT boxes are higher than a pre-defined foreground threshold are considered as positive samples while those with IoUs lower than a background threshold are treated as negative. Although simple and effective, the use of pre-defined thresholds is simply based on ad-hoc heuristics, and more importantly, the resulting hard division of anchors as either positive or negative is questionable. Unlike standard image classification problems where positive and negative samples are more clearly determined by whether an object occurs, anchors that overlap with GT boxes correspond to patches of objects, covering a fraction of an ob
+
+ject's extent and thus containing only partial information. Therefore, labels assigned to anchors conditioned on their overlap with GT boxes, are ambiguous. For example, the giraffe head in Figure 1 will be considered as a negative sample since the IoU is low, yet it contains meaningful semantic information useful for both localization and classification. In addition, an axis-aligned candidate with satisfactory overlapping with a GT box might contain background clutter and even other objects (see the green car on the truck and the dog in front of the laptop in Figure 1), due to the limitations of representing objects using rectangles. Therefore, labels used to train the classification branch are noisy, and it is challenging to define perfectly clean labels as there is no oracle information to measure the quality of proposals. In addition, noise in labels is further amplified with sampling methods [31, 26] or focal loss [22], since ambiguous and noisy samples tend to produce large losses [2].
+
+In light of this, we explicitly consider label noise for anchors with an aim to reduce its impact during classification and regression. In particular, we associate a cleanliness score with each anchor to adaptively adjust its importance during training. Defining cleanliness is non-trivial, since information on the quality of anchors is limited. However, these scores are expected to be (1) determined automatically rather than based on heuristics; (2) soft and continuous so that anchors are not split into positive and negative set with a hard threshold; (3) can reflect the probability of anchors to be successfully regressed to desired locations and classified into object (or background) labels.
+
+It has been demonstrated that the outputs from networks can indicate the noise level of samples when labels are corrupted and noisy for image classification tasks—the network tends to learn clean samples quickly early on and make confident predictions for them, while recognizing noisy samples slowly yet progressively [13, 15, 29, 34, 18]. In this spirit, we use network outputs as proxies to estimate cleanliness for anchors. We define the cleanliness score of an anchor as a combination of localization accuracies from the regression subnetwork and prediction scores produced by the classification head. Such a definition not only satisfies the aforementioned desiderata but also correlates the classification branch with its regression counterpart. This injects localization information to the classification subnetwork, and thus reduces the discrepancies between training and testing, since proposals are simply ranked based on classification confidence with NMS, unaware of localization accuracy during evaluation.
+
+The cleanliness scores then serve as soft labels to supervise the training of the classification branch. Since they reflect the uncertainty of network predictions and contain richer information than binary labels, this prevents the network from generating over-confident predictions for noisy samples. Furthermore, the cleanliness scores, through a
+
+non-linear transformation, are used as sample re-weighting factors to regulate the contributions of different anchors to loss functions for both classification and regression networks. This assists the model to attend to samples with high cleanliness scores, indicating both accurate regression and classification potentials, and to ignore noisy anchors. It worth pointing out the scores based on the outputs of networks are derived without incurring additional computational cost, and can be readily plugged into anchor-based object detectors.
+
+We conduct extensive studies on COCO with state-of-the-art one-stage detectors, and demonstrate that our method improves baselines by $\sim 2\%$ using various backbone networks with minimal surgery to loss functions. In particular, with the common practice [12] of multi-scale training, our approach improves RetinaNet [22] to $41.8\%$ and a $44.1\%$ AP with ResNet-101 [14] and ResNeXt-101-32×8d [39] as backbones, respectively, which are $2.7\%$ and $3.3\%$ higher than the original RetinaNet [22] and better or comparable with state-of-the-art one-stage object detectors. We additionally show the proposed approach can also be applied to two-stage detectors for improved performance.
+
+# 2. Related Work
+
+Anchor-based object detectors. Inheriting from the traditional sliding-window paradigms, most modern object detectors perform classification and box regression conditioned on a set of bounding box priors [28, 24, 30, 22, 2, 33, 19]. In particular, one-stage detectors like RetinaNet [22], SSD [24] and YOLOv2 [28] use pre-defined anchors directly, while two-stage detectors like Faster R-CNN [30] use generated region proposals refined from anchors either once or in a cascaded manner. A multitude of detectors have been newly proposed based on these frameworks [32, 37, 25, 2, 44, 7, 6, 46, 4]. However, they rely on pre-defined IoU thresholds to assign binary positive and negative labels to proposals in order to train the classification branch. Instead, we associate each box with a carefully designed cleanliness score as soft labels, dynamically adjusting the contributions of different proposals and hence makes the training noise-tolerant.
+
+Anchor-free object detectors. There are a few recent studies attempting to address the issues caused by the use of anchors by formulating object detection as a keypoint localization problem. In particular, they aim to localize object keypoints, such as corners [16], centers [40, 8] and representative points covering [35] or circumscribing [42] the spatial extent of objects. The discovered keypoints are either grouped into boxes directly [16, 8] or used as reference points for box regression [35, 42, 40]. They achieve comparable accuracies with anchor-based counterparts, confirming that the conventional classification supervision using anchors is not perfect. However, these keypoint-based
+
+methods often require more training time to converge. Instead, we improve anchors with slight modifications to loss functions based on the introduced cleanliness scores. This facilitates efficient training yet competitive performance without additional computational cost.
+
+Sampling/re-weighting in object detection. The training of object detectors often faces a huge class imbalance due to the large percentage of background candidates. A common technique to address the imbalance is sampling batches with a fixed foreground-to-background ratio [11, 30]. In addition, various hard [31, 26, 5, 24] and soft [22, 17, 3] sampling strategies have been proposed. The core idea of them is to prevent easy samples from overwhelming the loss and then focus the training on hard samples. Despite their effectiveness, these sampling strategies tend to amplify the noise caused by the imperfect split of positive and negative samples, since confusing samples are observed to produce larger losses[13, 1]. We demonstrate that our method is complementary to these sampling methods while alleviates the impact of noise for training.
+
+Learning with noisy labels. Extensive studies have been conducted on learning from noisy labels, where noise is generally modeled by deep neural networks [15, 13, 34, 18, 29] or graphical models [38, 20], etc. Then, outputs from these models are used to re-weight training samples or infer the correct labels. These approaches focus on the task of image classification where noise is from incorrect annotation or caused by the use of weakly-labeled web images from social media or search engines. In contrast, our focus is on object detection, where label noise results from the imperfect split of positive and negative candidates produced by the solely IoU-based label assignment strategy.
+
+# 3. Background
+
+We briefly review the standard protocols and design choices for training one-stage detectors and discuss their limitations. State-of-the-art one-stage detectors take as inputs raw images and produce a set of candidate proposals (i.e., anchors), in the form of feature vectors, to predict the labels of potential objects with a classification branch, and regress coordinates of ground-truth bounding boxes through a regression branch. In particular, the regression branch typically uses a smoothed $\ell_1$ loss [10] to encourage correct regression of bounding boxes while the classification counterpart incentivizes accurate predictions of object (or background) labels through a binary cross entropy (BCE) loss:
+
+$$
+\operatorname {B C E} (p, t) = - t \cdot w _ {p} \cdot 1 \log (p) - (1 - t) \cdot w _ {n} \cdot 1 \log (1 - p), \tag {1}
+$$
+
+where $t \in \{0, 1\}$ denotes the label of a candidate box with background (bg) as 0 and foreground (fg) as 1, and $p \in$
+
+[0, 1] is the predicted classification confidence. $w_{p}$ and $w_{n}$ denote the weighting parameter used in focal loss [22], to down-weight well-classified samples. In contrast to standard image classification tasks where labels are more clearly defined based on the presence of objects, the labels of anchors serving as supervisory signals are artificially defined based on their overlapping with GT-boxes in the following way:
+
+$$
+t = \left\{ \begin{array}{l l} 1 & \text {i f I o U} \geq \mathrm {f g} - \text {t h r e s h o l d} \\ 0 & \text {i f I o U} < \mathrm {b g} - \text {t h r e s h o l d} \\ - 1 & \text {o t h e r w i s e .} \end{array} \right. \tag {2}
+$$
+
+The fg-threshold is typically set to 0.5, which is in part motivated by the PASCAL VOC [9] detection benchmark [31] and has been empirically found to be effective for a variety of detectors. Similarly, a box is labeled as background if its IoU with GT is less than the bg-threshold, which is set to 0.4 in RetinaNet [22].
+
+While offering top-notch performance in most popular detectors, the heuristic approach of identifying positive and negative samples might not be ideal as the thresholds are manually selected and fixed for all objects, regardless of their categories, shapes, sizes, etc. For example, a candidate box with a high IoU for irregular-shaped objects might contain background clutter or even other objects. On the other hand, anchors with smaller IoUs might still contain important clues. For instance, the candidate box containing a giraffe head in Figure 1 would be considered as background, but it contains useful appearance information for recognizing and localizing a giraffe. This hard label assignment leads to noisy samples which are difficult to learn and produce relatively large losses. As a result, noise will be magnified when re-sampling methods like OHEM [31] or focal loss [22] are used to mitigate class imbalance and easy sample dominance problems, since more attention is paid to these hard but probably not meaningful proposals.
+
+# 4. Our Approach
+
+As discussed above, noise incurred by the imperfect split of positive and negative samples and the limitations of representing objects with rectangles, not only confuses the classification branch to derive good decision boundaries but also misleads re-sampling/weighting methods. Therefore, we propose to reduce the impact of noisy proposals by dynamically adjusting their importance. To accomplish this, we introduce the notion of cleanliness for anchors based on their the likelihood to be successfully classified and regressed. Cleanliness scores are continuous in order to adaptively control the contribution of different proposals.
+
+Recent advances on learning from noisy labels when training networks suggest that the confidence scores of networks indicate the noise level of samples when making
+
+predictions, i.e., networks can easily learn easy samples with high confidence while tending to make uncertain predictions for hard and noisy samples. Motivated by this observation, we define the cleanliness scores of anchors using knowledge learned from the classification and localization branches in detectors:
+
+$$
+c = \left\{ \begin{array}{l l} \alpha \cdot \operatorname {l o c} _ {-} a + (1 - \alpha) \cdot \operatorname {c l s} _ {-} c & \text {f o r} b \in \mathcal {A} _ {p o s} \\ 0 & \text {f o r} b \in \mathcal {A} _ {n e g}. \end{array} \right. \tag {3}
+$$
+
+Here, $b$ is a candidate box, loc_a and cls_c denote the localization accuracy and the classification confidence, respectively, and $\alpha$ is a control parameter, balancing the impact of localization and classification. In addition, $A_{pos}$ and $A_{neg}$ separately represent positive and negative candidate sets from top- $N$ proposals for each GT-object based on their IoU before box refinement. Note that most candidate boxes only cover background regions due to the dense placement of anchors and should not be labeled and learned as positive samples; consequently, we only assign cleanliness scores to a set of plausible positive candidates, with others labeled as 0. Furthermore, we use direct outputs from the classification network as cls_c and instantiate loc_a as IoU between regressed candidate box and its matched GT-object. Note that although we use network outputs, the approach does not suffer from cold start—initial values of cls_c and output from regression branch are both small, so the derived cleanliness score is an approximation of IoU between anchor and matched GT-object, which does not destabilize training during the first few iterations.
+
+Soft labels. The cleanliness scores are readily used as soft labels to control the contributions of different anchors to the BCE loss in Equation 1 by replacing $t$ with $c$ . Since cleanliness scores are dynamically estimated based on the tradeoff between loc_a and cls_c, the network can focus on clean samples and not on improperly labeled noisy samples. In addition, these soft and continuous labels allows the network to be more compatible with detection evaluation protocols, where all final predictions are ranked based on their classification scores in NMS, as will be shown in the experiments. The reasons are two-folds: (1) soft labels prevent the model from generating over-confident binarized decisions, producing more meaningful rankings; (2) the localization accuracies are modeled in the soft labels, reducing the misalignment between classification and localization.
+
+Sample re-weighting. One-stage detectors are usually confronted with a severe imbalance of training data with a large amount of negative proposals and only a few positive ones. To mitigate this issue, focal loss [22] decreases the loss of easy samples and focuses more on hard and noisy samples. However, for proposals with label noise, they will be stressed during training even though they could simply be outliers. Therefore, we also propose to re-weight samples
+
+Algorithm 1 The algorithm of our approach.
+Input: $\mathcal{I},\mathcal{G}\mathcal{T},\mathcal{B}$ ,cls_c,loc_a, $\alpha ,\gamma ,N$ $\mathcal{I}$ is the input image,
+ $\mathcal{G}\mathcal{T}$ is the set of ground truth objects within $\mathcal{I}$ $\mathcal{B}$ is the set of candidates boxes (i.e. anchors),
+cls_c is the classification confidence of corresponding ground truth class for candidates,
+loc_a is the localization accuracy of candidates,
+ $\alpha ,\gamma$ are the modulating factors, $N$ controls size of positive candidate set.
+Output: Losses for classification and box regression $L_{cls},L_{reg}$
+1: $\mathcal{A}_{pos},\mathcal{A}_{neg},S\gets \emptyset$
+2: for gt $\in \mathcal{G}\mathcal{T}$ do
+3: indices $=$ argsort(IoU(B,gt)) Sort in descending order.
+4: $\mathcal{A}_{pos}\leftarrow \mathcal{A}_{pos}\cup \{\mathrm{indices}[0:N]:gt\}$
+5: end for
+6: $\mathcal{A}_{neg}\gets \{(B - A_{pos}).\mathrm{indices}:0\}$
+7: for $b_i\in \mathcal{A}_{pos}$ do
+8: $c = \alpha \cdot \mathrm{loc\_a}_i + (1 - \alpha)\cdot \mathrm{cls\_c}_i$ $\triangleright$ Equation 3
+9: $r = (\alpha \cdot f(\mathrm{loc\_a}_i) + (1 - \alpha)\cdot f(\mathrm{cls\_c}_i))^{\gamma}$ $\triangleright$ Equation 4
+10: $S\gets S\cup \{b_i:\{c,r\} \}$
+11: end for
+12: for $b_i\in \mathcal{A}_{neg}$ do $S\gets S\cup \{b_i:\{c\gets 0.0,r\gets 1.0\}\}$ end for
+13: $L_{cls} = \Sigma_i^S r_i\cdot \mathrm{BCE}(p_i,c_i)$ $\triangleright$ Equation 5
+14: $L_{reg} = \Sigma_i^S r_i\cdot$ smooth_1 $\triangleright$ Equation 6
+15: return $L_{cls},L_{reg}$
+
+based on cleanliness scores defined in Equation 3. While we could to directly use Eqn. 3 for re-weighting, the variations of cleanliness scores among different proposals are not significantly large as loc_a and c1s_c are normalized. To encourage a large variance, we pass loc_a and c1s_c through a non-linear function $f(x) = \frac{1}{1 - x}$ . The re-weighting factor $r$ for each box $b \in \mathcal{A}_{pos}$ becomes:
+
+$$
+r = (\alpha \cdot f (1 0 c _ {-} a) + (1 - \alpha) \cdot f (c l s _ {-} c)) ^ {\gamma}, \tag {4}
+$$
+
+where $\gamma$ is used to further enlarge the score variance, which is fixed to 1 in the experiments. In addition, we also normalize $r$ to have a mean of 1, since the mean of all positive samples are 1 given that they are equally important before re-weighting. Re-weighting proposals in this way not only downplays the role of very hard samples that cannot be modeled by the network but also helps revisiting clean samples that are regarded as well-classified to promote the discriminative power of classification. Finally, with the aforementioned soft labels and sampling re-weighting factors based on cleanliness scores, loss functions used to train classification $L_{cls}$ and regression $L_{reg}$ networks can then be written as:
+
+$$
+L _ {c l s} = \sum_ {i} ^ {\mathcal {A} _ {p o s}} r _ {i} \operatorname {B C E} \left(p _ {i}, c _ {i}\right) + \sum_ {j} ^ {\mathcal {A} _ {n e g}} \operatorname {B C E} \left(p _ {j}, c _ {j}\right), \tag {5}
+$$
+
+$$
+L _ {r e g} = \sum_ {i} ^ {\mathcal {A} _ {p o s}} r _ {i} \text {s m o o t h} _ {-} \ell_ {1}. \tag {6}
+$$
+
+Here, $r$ is used to weight both losses, BCE loss is computed with $c$ as supervisory signal, and widely adopted smooth $\ell_1$ loss is used for regression [22]. The complete algorithm of our approach is in Alg. 1.
+
+# 5. Experiments
+
+# 5.1. Experimental Setup
+
+Datasets. We evaluate the proposed approach on the COCO benchmark [23]. Following standard training and testing protocols [22, 21], we use the trainval35k set (the union of the $80K$ training images and $35K$ validation images) for training and the minival set ( $5K$ images), or the test-dev2017 set for testing. The performance is measured by COCO Average Precision (AP) [23]. For ablation, we report results on minival. For main results, we report AP on the test-dev2017 set where annotations are not publicly available.
+
+Detectors. We mainly experiment with RetinaNet [22], a state-of-the-art one-stage detector, with different backbones including ResNet-50, ResNet-101 [14] and ResNeXt-101- $32 \times 8d$ [39]. In addition, we demonstrate the idea can also be extended to two-stage detectors using Faster R-CNNs [30]. For ablation studies, we use RetinaNet with a backbone of ResNet-50.
+
+Implementation details. We use PyTorch for implementation and adopt 4 GPUs for training with a batch size of 8 (2 images per GPU) using SGD and optimize for $180K$ iterations in total $(1\times$ schedule) unless specified otherwise. The initial learning rate is set as 0.01 for Faster R-CNNs and 0.005 for RetinaNet, then divided by 10 at $120K$ and $160K$ iterations. We use a weight decay of 0.0001 and a momentum of 0.9. As in [22, 35, 46, 17, 27], input images are resized to have a shorter side of 800 while the longer side is kept less than 1333; we also perform random horizontal image flipping for data augmentation. When multiscale training is performed, input images are jittered over scales {640, 672, 704, 736, 768, 800} at shorter side. For multi-scale testing, we use scales {400, 500, 600, 700, 900, 1000, 1100, 1200} and horizontal flipping as augmentations following Detector [12].
+
+# 5.2. Main Results
+
+We report the performance of our approach on the COco test-dev2017 set using RetinaNet and compare with other state-of-the-art methods in Table 2. In particular, we compare with variants of RetinaNet such as FSAF [46], POD [27], GHM [17], Cas-Retinanet [43], RefineDet [44] and several anchor-free methods including FCOS [35], Cornernet [16], ExtremeNet [45] and CenterNets [40, 8]. For fair comparisons, following the common setup [22, 46, 27, 43], we also train our method with a longer schedule (1.5x
+
+of the schedule mentioned in Section 5.1) and a scale jittering.
+
+We can see from the table that, without introducing any computational overhead, our method improves RetinaNet by $2.7\%$ and $3.3\%$ AP with a ResNet-101 and a ResNeXt-101-32 $\times 8$ d as backbone networks, respectively, confirming the effectiveness of our method. It worth noting all these RetinaNet models are trained with focal loss [22], which demonstrates the compatibility of our approach with techniques used to address the imbalance of training samples. In addition, our approach achieves better or comparable performance compared with various state-of-the-art detectors in both single-scale and multi-scale testing scenarios. Note that our approach performs better or on par with some detectors with multiple refinement stages [44, 43] or longer training schedule (e.g., a 2x of default schedule) [35, 45, 16, 40]. With a strong backbone network ResNeXt-101-32 $\times 8$ d and multi-scale testing, we achieve a high AP of $45.5\%$ .
+
+# 5.3. Ablation Study
+
+Different backbone architectures. We also experiment with different backbone networks for RetinaNet, including ResNet-50, ResNet-101 and ResNeXt-101-32×8d. The results are summarized in Table 1. We observe that our method steadily improves the baselines by $\sim 2\%$ for different backbones.
+
+| Method | Backbone | AP | \( AP_{50} \) | \( AP_{75} \) |
| Baseline Ours | ResNet-50 | 36.2 | 54.0 | 38.7 |
| \( 38.0+1.8 \) | 56.9 | 40.6 |
| Baseline Ours | ResNet-101 | 38.1 | 56.4 | 40.7 |
| \( 40.2+2.1 \) | 59.3 | 42.9 |
| Baseline Ours | ResNeXt-101 | 40.3 | 59.2 | 43.1 |
| \( 42.3+2.0 \) | 61.6 | 45.4 |
+
+Table 1: Results with our approach and comparisons with baselines, using RetinaNet [22] with different backbone networks.
+
+Contributions of soft labels (SL) and re-weighting (SR). To demonstrate the effectiveness of the two key components based on cleanliness scores, we report the results of our approach using SL and SR, separately in Table 3. We can see that applying either soft labels or re-weighting coefficients derived from the cleanliness scores improves the baselines, while combining both methods offers the largest performance improvement. It worth pointing out when soft labels are not applied, simply re-weighting the samples with hard binary samples brings relatively minor performance gain, suggesting the use of soft supervisory signals for training the classification branch is critical.
+
+| Method | Backbone | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) |
| RetinaNet [22] | ResNet-101 | 39.1 | 59.1 | 42.3 | 21.9 | 42.7 | 50.2 |
| Regionlets [41] | ResNet-101 | 39.3 | 59.8 | n/a | 21.7 | 43.7 | 50.9 |
| GHM [17] | ResNet-101 | 39.9 | 60.8 | 42.5 | 20.3 | 43.6 | 54.1 |
| \( FCOS^† \)[35] | ResNet-101 | 41.0 | 60.7 | 44.1 | 24.0 | 44.1 | 51.0 |
| Cas-RetinaNet [43] | ResNet-101 | 41.1 | 60.7 | 45.0 | 23.7 | 44.4 | 52.9 |
| POD [27] | ResNet-101 | 41.5 | 62.4 | 44.9 | 24.5 | 44.8 | 52.9 |
| RefineDet [44] | ResNet-101 | 36.4/41.8 | 57.5/62.9 | 39.5/45.7 | 16.6/25.6 | 39.9/45.1 | 51.4/54.1 |
| FSAF [46] | ResNet-101 | 40.9/42.8 | 61.5/63.1 | 44.0/46.5 | 24.0/27.8 | 44.2/25.5 | 51.3/53.2 |
| CenterNet (Duan et al.)*† [8] | Hourglass-52 | 41.6/43.5 | 59.4/61.3 | 44.2/46.7 | 22.5/25.3 | 43.1/45.3 | 54.1/55.0 |
| RetinaNet [22] | ResNXet-101-32×8d | 40.8 | 61.1 | 44.1 | 24.1 | 44.2 | 51.2 |
| GHM [17] | ResNXet-101-32×8d | 41.6 | 62.8 | 44.22 | 22.3 | 45.1 | 55.3 |
| \( FCOS^† \)[35] | ResNXet-101-32×8d | 42.1 | 62.1 | 45.2 | 25.6 | 44.9 | 52.0 |
| FSAF [46] | ResNXet-101-32×8d | 42.9/44.6 | 63.8/65.2 | 46.3/48.6 | 26.6/29.7 | 46.2/47.1 | 52.7/54.6 |
| CornerNet*† [16] | Hourglass-104 | 40.5/42.1 | 56.5/57.8 | 43.1/45.3 | 19.4/20.8 | 42.7/44.8 | 53.9/56.7 |
| ExtremeNet*† [45] | Hourglass-104 | 40.2/43.7 | 55.5/60.5 | 43.2/47.0 | 20.4/24.1 | 43.2/46.9 | 53.1/57.6 |
| CenterNet (Zhou et al.)*† [40] | Hourglass-104 | 42.1/45.1 | 61.1/63.9 | 45.9/49.3 | 24.1/26.6 | 45.5/47.1 | 52.8/57.7 |
| CenterNet (Duan et al.)*† [8] | Hourglass-104 | 44.9/47.0 | 62.4/64.5 | 48.1/50.7 | 25.6/28.9 | 47.4/49.9 | 57.4/58.9 |
| Ours | ResNet-101 | 41.8/43.4 | 61.1/62.5 | 44.9/47.0 | 23.4/26.0 | 44.9/46.0 | 52.9/55.4 |
| Ours | ResNXet-101-32×8d | 44.1/45.5 | 63.8/65.0 | 47.5/49.3 | 26.0/28.2 | 47.4/48.4 | 55.0/57.6 |
+
+* Horizontal flipping used for both single-scale and multi-scale testing † Longer training schedule
+Table 2: Detection results (\% AP) on COCO test-dev2017 set. Single-scale / multi-scale (if exists) testing results are reported. Our method improves RetinaNet detectors by $\approx 3\%$ AP and obtains better or comparable performance compared with state-of-the-art one-stage detectors.
+
+| SL | SR | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) |
| | 36.2 | 54.0 | 38.7 | 19.3 | 40.1 | 48.8 |
| ✓ | | 37.1 | 56.5 | 40.0 | 19.4 | 40.9 | 49.3 |
| ✓ | 36.7 | 54.4 | 39.3 | 19.5 | 40.3 | 49.4 |
| ✓ | ✓ | 37.7 | 56.5 | 40.2 | 20.0 | 41.1 | 51.2 |
+
+Table 3: Ablation experiments on the effectiveness of components in our method, Soft Labels (SL) and Sample Weighting (SR).
+
+Hyper-parameters sensitivity. We also analyze the sensitivity of different hyper-parameters used in our approach: $\gamma$ controls the degree of focus on different samples, $N$ governs the size of $\mathcal{A}_{pos}$ and $\alpha$ balances $\mathrm{cls\_c}$ and $\mathrm{loc\_a}$ when computing cleanliness scores. As shown in Table 4, our method is relatively robust to different parameters. We observe that $\gamma$ and $N$ should be selected together, since a large $\gamma$ focuses training on a small proportion of samples while a large $N$ adds more noisy samples to $\mathcal{A}_{pos}$ ; detection performance would drastically degrade nevertheless if either of them is too large. When $\gamma = 0$ , all samples are equally re-weighted for network learning and SR is thus disabled. The effect of $\alpha$ reveals the trade-off between $\mathrm{cls\_c}$ and $\mathrm{loc\_a}$ to compute cleanliness scores for label assignment and sample re-weighting. As shown in Table 4c, $\alpha = 0.75$ yields the best result— $\mathrm{loc\_a}$ tends to be more important than $\mathrm{cls\_c}$ as larger $\alpha$ offers better perfor
+
+mance. This also confirms that considering both classification and regression branches when defining the cleanliness scores is important.
+
+Extension to two-stage detectors. Our method offers clear performance gains for one-stage detectors, and we hypothesize that it could be easily plugged into multi-stage detectors, producing better proposals. We validate our assumption with Faster R-CNN [30]. In particular, we first train the Region Proposal Network (RPN) with our approach to analyze recalls, since one-stage detectors are a variant of RPN. Table 5 presents the recall of generated proposals with different methods. We can see that our approach outperforms the baseline RPN model by clear margins—7.8, 5.4, 3.4 percentage points for $\mathrm{AR}_{100}$ , $\mathrm{AR}_{300}$ and $\mathrm{AR}_{1000}$ , respectively. It also surpasses the performance of a two-stage iterative RPN in [44] and a “RefineRPN” structure similar to [44] where anchors are regressed and classified twice with different features. Note that larger improvements are observed when a smaller number of proposals are kept, suggesting that our method can be better at ranking predictions according to actual localization accuracy. We also analyze the contributions of soft labels and sample re-weighting, and observe similar trends as in one-stage detectors.
+
+We then train a Faster R-CNN [30] with FPN [21] in an end-to-end manner by using our approach only for RPNs. The results are shown in Table 6. We observe $1\%$ mAP improvement compared to standard training of faster rcnns,
+
+| γ | AP | AP50 | AP75 |
| 0.0 | 37.1 | 56.6 | 40.0 |
| 0.5 | 37.6 | 56.9 | 40.1 |
| 1.0 | 37.7 | 56.5 | 40.2 |
| 1.25 | 37.7 | 56.2 | 40.3 |
| 1.5 | 37.7 | 55.9 | 40.5 |
| 1.75 | 35.9 | 52.9 | 38.4 |
+
+(a) Varying $\gamma$ for sample re-weighting.
+
+| N | γ | AP | AP50 | AP75 |
| 30 | 1.0 | 37.7 | 56.5 | 40.2 |
| 40 | 1.0 | 37.7 | 56.8 | 40.3 |
| 50 | 1.0 | 37.3 | 56.2 | 39.9 |
| 60 | 1.0 | 37.1 | 55.8 | 39.5 |
| 80 | 1.0 | 36.6 | 55.6 | 38.9 |
| 80 | 1.25 | 36.9 | 55.5 | 39.2 |
+
+(b) Varying $N$ for collecting $\mathcal{A}_{pos}$ .
+
+| α | AP | AP50 | AP75 |
| 0.0 | 37.3 | 56.3 | 39.7 |
| 0.25 | 37.3 | 56.2 | 39.9 |
| 0.5 | 37.7 | 56.5 | 40.2 |
| 0.75 | 38.0 | 56.9 | 40.6 |
| 1.0 | 37.8 | 56.5 | 40.5 |
+
+(c) Varying the balancing factor $\alpha$
+
+Table 4: Ablation experiments on sensitivity of hyper-parameters in our method: (a) $\gamma$ modulates the degree of focus on different samples. (b) $N$ controls size of $\mathcal{A}_{pos}$ . (c) $\alpha$ balances c1s_c and loc_a in calculating cleanliness score.
+
+| Method | AR100 | AR300 | AR1000 |
| RPN Baseline [21] | 43.3 | 51.6 | 56.9 |
| RPN-0.5 | 46.8 | 53.4 | 56.2 |
| RPN+Iterative [37] | 49.7 | 56.0 | 60.0 |
| RefineRPN [37, 44] | 50.2 | 56.3 | 60.6 |
| RPN-0.5 + SR | 48.3 | 54.6 | 56.6 |
| Ours | 51.1 | 57.0 | 60.3 |
+
+Table 5: Results of region proposals evaluated on COCO minival, measured by Average Recall (AR). RPN Baseline uses \{0.3, 0.7\} IoU thresholds for GT assignment (background if $< 0.3$ , foreground if $>0.7$ , ignored if in between) while RPN-0.5 uses to separate positive and negative samples. SR denotes sample reweighting.
+
+| Method | AP | AP50 | AP75 | APS | APM | APL |
| Baseline | 36.8 | 58.5 | 39.8 | 21.0 | 39.9 | 47.6 |
| Ours | 37.8 | 59.2 | 41.1 | 21.7 | 41.3 | 48.9 |
+
+Table 6: Results of Faster R-CNN with FPN, with and without our approach.
+
+demonstrating that our approach is also applicable to two-stage detectors without any additional computation.
+
+# 5.4. Discussions
+
+In this section, we perform various quantitative and qualitative analyses to investigate the performance gains brought by our approach.
+
+Recall vs. precision. To better understand how our method improves detection performance, we plot the precision vs. recall curves in Fig 2 and analyze the performance gains. As demonstrated, our method steadily promotes detection performance in different conditions like IoU thresholds, object sizes and maximum number of predictions per image during evaluation. It is also worth noting that our method obtains clear precision gains for all recall ratios, and hence it could be beneficial to various object detection applications in real-world scenarios.
+
+
+Figure 2: Precision vs. recall (PR) curves of our approach, and comparisons with baselines under different IoU thresholds, object sizes (area) and maximum number of predictions per image (maxDet).
+
+Classification confidence prediction. We also analyze the predicted classification confidence and investigate whether our proposed method helps alleviate the issue of over confident predictions and reduce the discrepancy between classification prediction and localization accuracy. For baseline detectors and our method, we collect their top-2% confident predictions on COCO minival set before and after NMS and then calculate their mean classification confidence and IoUs with matched ground-truth boxes. As shown in Table 7, detectors trained with our method produces relatively milder predictions than the baseline for classification. Although predictions of the baseline offer a higher average IoU before NMS, it is surpassed by our method after running NMS. This suggests that our method is more friendly
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 3: Example candidate boxes (in red) with high IoUs with ground-truth boxes (in green), yet containing noisy contents, are down-weighted by our method. Anchors and ground-truth boxes are denoted in red and green, respectively.
+
+
+
+
+
+
+
+
+
+when ranking is performed during evaluation since predicted labels are softer and contain more ordering information, and thus is more compatible with NMS. To further verify the ability of our method to correlate classification confidence with localization accuracy, we calculate the Pearson correlation coefficient on these predictions before NMS, and the coefficients between classification confidence and output IoU are 0.169 and 0.194 for baseline and our approach, respectively. This indicates that cleanliness scores considering both branches are able to help bridge the gap between classification and localization.
+
+| Method | Before NMS | After NMS |
| Mean Conf | Mean IoU | Mean Conf | Mean IoU |
| Baseline | 0.845 | 0.895 | 0.958 | 0.914 |
| Ours | 0.782 | 0.882 | 0.920 | 0.921 |
+
+Table 7: Mean classification confidence and output IoUs with matched ground-truth using predictions before (left) and after NMS (right).
+
+Qualitative analysis. In addition to quantitative results, we also demonstrate qualitatively in Figure 3 that our method is able to down-weight noisy anchors. As shown in the Figure, our method assigns smaller soft label and re-weighting coefficients to ambiguous samples that contain irrelevant objects or complex background. For example, the anchors encompassing cups in the top-left of Figure 3 are occluded by the lady's and gentleman's hands and thus are down-weighted, although they sufficiently overlap with the ground-truth. Similarly, the anchor in the top-middle associated with the person is also down-weighted, since it
+
+largely contains irrelevant regions from a horse. This verifies that the label noise can be modeled by our definition of cleanliness and hence are mitigated to improve the training process of object detection. We note that these ambiguous anchors are fairly common—such anchors can be easily found across ten different categories as shown in Figure 3.
+
+# 6. Conclusion
+
+In this paper, we have presented an approach that is explicitly designed to mitigate noise in anchors used for training object detectors. In particular, we introduced a carefully designed cleanliness score for each anchor used to dynamically adjust their importance during training. These cleanliness scores, leveraging outputs from classification and detection branches, serve as proxies to measure the probability of anchors to be successfully regressed and classified. They are further used as soft supervisory signals to train the classification network and re-weight samples to achieve better localization and classification performance. Extensive studies have been conducted on COCO, and the results demonstrate the effectiveness of the proposed approach both quantitatively and qualitatively.
+
+Acknowledgement HL, ZW and LSD are supported by the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/Interior Business Center (DOI/IBC) contract number D17PC00345. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied of IARPA, DOI/IBC or the U.S. Government.
+
+# References
+
+[1] Devansh Arpit, Stanisław Jastrzebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. In ICML, 2017. 3
+[2] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: High quality object detection and instance segmentation. arXiv preprint arXiv:1906.09756, 2019. 2
+[3] Yuhang Cao, Kai Chen, Chen Change Loy, and Dahua Lin. Prime sample attention in object detection. arXiv preprint arXiv:1904.04821, 2019. 3
+[4] Kai Chen, Jiangmiao Pang, Jiaqi Wang, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jianping Shi, Wanli Ouyang, et al. Hybrid task cascade for instance segmentation. In CVPR, 2019. 2
+[5] Bowen Cheng, Yunchao Wei, Honghui Shi, Rogerio Feris, Jinjun Xiong, and Thomas Huang. Revisiting rcnn: On awakening the classification power of faster rcnn. In ECCV, 2018. 3
+[6] Jifeng Dai, Yi Li, Kaiming He, and Jian Sun. R-fcn: Object detection via region-based fully convolutional networks. In NeurIPS, 2016. 2
+[7] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 2
+[8] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In ICCV, 2019. 2, 5, 6
+[9] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. IJCV, 2010. 3
+[10] Ross Girshick. Fast r-cnn. In CVPR, 2015. 3
+[11] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014. 3
+[12] Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detector. https://github.com/facebookresearch/detectron, 2018.2.5
+[13] Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Coteaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, 2018. 2, 3
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 2, 5
+[15] Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning data-driven curriculum for very deep neural networks on corrupted labels. In ICML, 2017. 2, 3
+[16] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, 2018. 2, 5, 6
+[17] Buyu Li, Yu Liu, and Xiaogang Wang. Gradient harmonized single-stage detector. In AAAI, 2019. 3, 5, 6
+[18] Junnan Li, Yongkang Wong, Qi Zhao, and Mohan S Kankanhalli. Learning to learn from noisy labeled data. In CVPR, 2019. 2, 3
+
+[19] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. In ICCV, 2019. 2
+[20] Yuncheng Li, Jianchao Yang, Yale Song, Liangliang Cao, Jiebo Luo, and Li-Jia Li. Learning from noisy labels with distillation. In CVPR, 2017. 3
+[21] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 1, 5, 6, 7
+[22] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In ICCV, 2017. 1, 2, 3, 4, 5, 6
+[23] 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 ECCV, 2014. 5
+[24] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In ECCV, 2016. 1, 2, 3
+[25] Xin Lu, Buyu Li, Yuxin Yue, Quanquan Li, and Junjie Yan. Grid r-cnn. In CVPR, 2019. 2
+[26] Jiangmiao Pang, Kai Chen, Jianping Shi, Huajun Feng, Wanli Ouyang, and Dahua Lin. Libra r-cnn: Towards balanced learning for object detection. In CVPR, 2019. 1, 2, 3
+[27] Junran Peng, Ming Sun, Zhaoxiang Zhang, Tieniu Tan, and Junjie Yan. Pod: Practical object detection with scale-sensitive network. In ICCV, 2019. 5, 6
+[28] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In CVPR, 2017. 1, 2
+[29] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. In ICML, 2018. 2, 3
+[30] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. 1, 2, 3, 5, 6
+[31] Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In CVPR, 2016. 1, 2, 3
+[32] Bharat Singh, Hengduo Li, Abhishek Sharma, and Larry S Davis. R-fcn-3000 at 30fps: Decoupling detection and classification. In CVPR, 2018. 2
+[33] Bharat Singh, Mahyar Najibi, and Larry S Davis. Sniper: Efficient multi-scale training. In NeurIPS, 2018. 2
+[34] Sunil Thulasidasan, Tanmoy Bhattacharya, Jeff Bilmes, Gopinath Chennupati, and Jamal Mohd-Yusof. Combating label noise in deep learning using abstention. In ICML, 2019. 2, 3
+[35] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. FCOS: Fully convolutional one-stage object detection. In ICCV, 2019. 2, 5, 6
+[36] Paul Viola and Michael Jones. Rapid object detection using a boosted cascade of simple features. In CVPR, 2001. 1
+[37] Jiaqi Wang, Kai Chen, Shuo Yang, Chen Change Loy, and Dahua Lin. Region proposal by guided anchoring. In CVPR, 2019. 2, 7
+
+[38] Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In CVPR, 2015. 3
+[39] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. 2, 5
+[40] Philipp Krahenbuhl Xingyi Zhou, Dequan Wang. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 2, 5, 6
+[41] Hongyu Xu, Xutao Lv, Xiaoyu Wang, Zhou Ren, Navaneeth Bodla, and Rama Chellappa. Deep regionlets for object detection. In ECCV, 2018. 6
+[42] Ze Yang, Shaohui Liu, Han Hu, Liwei Wang, and Stephen Lin. Repoints: Point set representation for object detection. In ICCV, 2019. 2
+[43] Hongkai Zhang, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cascade retinanet: Maintaining consistency for single-stage object detection. In BMVC, 2019. 5, 6
+[44] Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, and Stan Z Li. Single-shot refinement neural network for object detection. In CVPR, 2018. 2, 5, 6, 7
+[45] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In CVPR, 2019. 5, 6
+[46] Chenchen Zhu, Yihui He, and Marios Savvides. Feature selective anchor-free module for single-shot object detection. In CVPR, 2019. 2, 5, 6
\ No newline at end of file
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/images.zip b/learningfromnoisyanchorsforonestageobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..faeb0b739cf5f5c0947fb336a4457c649f013753
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:187820c1f3be865739f61517f748814d79d2c83fff958e483359c9ae485e1fcb
+size 584666
diff --git a/learningfromnoisyanchorsforonestageobjectdetection/layout.json b/learningfromnoisyanchorsforonestageobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e2b1abd49a899463185811a2fdcdf1573842bca
--- /dev/null
+++ b/learningfromnoisyanchorsforonestageobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21814c949c40e336eadc99cbfa30124a4a6e2cd7edb635aee9f55d92dba02db9
+size 385585
diff --git a/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_content_list.json b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4b797b682657ceb663a78f5492a8027d395ebd71
--- /dev/null
+++ b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e749af2ba3358ba32b488ca4ef17f309e606cb5347553a232621d6c4cbb503ea
+size 72512
diff --git a/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_model.json b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9b04c06f871e8d303720ad363eb768bebeb756d
--- /dev/null
+++ b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6d85e0c1614325b5dd2de9a5c959bcfdbc5c5b50275baa8743a9b3f97d8b5c7
+size 88814
diff --git a/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_origin.pdf b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..091ec695281d26edcde41869620b672434357f83
--- /dev/null
+++ b/learningfromsyntheticanimals/8b806dec-4807-414d-8f7d-a950ed308b8d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:565c84f279f2d694b95ac9313d1cd1627849466dd49bdfcda1aad28408558696
+size 1287197
diff --git a/learningfromsyntheticanimals/full.md b/learningfromsyntheticanimals/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d3185e06948e6482cba57b56d978d5063c249a86
--- /dev/null
+++ b/learningfromsyntheticanimals/full.md
@@ -0,0 +1,310 @@
+# Learning from Synthetic Animals
+
+Jiteng Mu,\* Weichao Qiu\*, Gregory Hager, Alan Yuille Johns Hopkins University
+
+jitengmu@jhu.edu, hager@cs.jhu.edu, {qiuwch, alan.l.yuille}@gmail.com
+
+# Abstract
+
+Despite great success in human parsing, progress for parsing other deformable articulated objects, like animals, is still limited by the lack of labeled data. In this paper, we use synthetic images and ground truth generated from CAD animal models to address this challenge. To bridge the domain gap between real and synthetic images, we propose a novel consistency-constrained semi-supervised learning method (CC-SSL). Our method leverages both spatial and temporal consistencies, to bootstrap weak models trained on synthetic data with unlabeled real images. We demonstrate the effectiveness of our method on highly deformable animals, such as horses and tigers. Without using any real image label, our method allows for accurate keypoint prediction on real images. Moreover, we quantitatively show that models using synthetic data achieve better generalization performance than models trained on real images across different domains in the Visual Domain Adaptation Challenge dataset. Our synthetic dataset contains $10+$ animals with diverse poses and rich ground truth, which enables us to use the multi-task learning strategy to further boost models' performance.
+
+# 1. Introduction
+
+Thanks to the presence of large scale annotated datasets and powerful Convolutional Neural Networks(CNNs), the state of human parsing has advanced rapidly. By contrast, there is little previous work on parsing animals. Parsing animals is important for many tasks, including, but not limited to monitoring wild animal behaviors, developing bioinspired robots, building motion capture systems, etc.
+
+One main problem for parsing animals is the limit of datasets. Though many datasets containing animals are built for classification, bounding box detection, and instance segmentation, only a small number of datasets are built for parsing animal keypoints and parts. Annotating large scale datasets for animals is prohibitively expensive. Therefore,
+
+most existing approaches for parsing humans, which often require enormous annotated data [1, 32], are less suited for parsing animals.
+
+In this work, we use synthetic data to address this challenge. Many works [34, 29] show that by jointly using synthetic images and real images, models can yield supreme results. In addition, synthetic data also has many unique advantages compared to real-world datasets. First, rendering synthetic data with rich ground truth at scale is easier and cheaper compared with capturing and annotating real-world images. Second, synthetic data can also provide accurate ground truth for cases where annotations are hard to acquire for natural images, such as labeling optical flow [11] or under occlusion and low-resolution. Third, real-world datasets usually suffer from the long-tail problem where rare cases are less represented. Generated synthetic datasets can avoid this problem by sampling rendering parameters.
+
+However, there are large domain gaps [7, 38, 14] between synthetic images and real images, which prevent models trained on synthetic data from generalizing well to real-world images. Moreover, synthetic data is also limited by object diversity. ShapeNet [6] has been created to include diverse 3D models and SMPL [24] has been built for humans. Nevertheless, creating such diverse synthetic models is a difficult task, which requires capturing the appearance and attaching a skeleton to the object. Besides, considering the number of animal categories in the world, creating diverse synthetic models along with realistic textures for each animal is almost infeasible.
+
+In this paper, we propose a method where models are trained using synthetic CAD models. Our method can achieve high performance with only a single CAD animal model. We generate pseudo-labels on unlabeled real images for semi-supervised learning. To handle noisy pseudolabels, we design three consistency-check criteria to evaluate the quality of the predicted labels, which we refer to as consistency-constrained semi-supervised learning (CCSSL). Through extensive experiments, we show that our models achieve similar performance to models trained on real data, but without using any annotation of real images. It also outperforms other domain adaptation meth
+
+
+Figure 1. Overview. We generate a synthetic animal dataset by randomly sampling rendering parameters including camera viewpoints, lighting, textures and poses. The dataset contains $10+$ animals along with rich ground truth, such as dense 2D keypoints, part segmentation and depth maps. With the synthetic dataset, we propose an effective method which allows for accurate keypoint prediction across domains. In addition to 2D pose estimation, we also show models can predict accurate part segmentation.
+
+ods by a large margin. Providing real image annotations, the performance can be further improved. Furthermore, we demonstrate models trained with synthetic data show better domain generalization performance in multiple visual domains compared with those trained on real data. The code is available at https://github.com/JitengMu/Learning-from-Synthetic-Animals.
+
+We summarize the contributions of our paper as follows. First, we propose a consistency-constrained semi-supervised learning framework (CC-SSL) to learn a model with one single CAD object. We show that models trained with synthetic data and unlabeled real images allow for accurate keypoint prediction on real images. Second, when using real image labels, we show that models trained jointly on synthetic and real images achieve better results compared to models trained only on real images. Third, we evaluate the generalizability of our learned models across different visual domains in the Visual Domain Adaptation Challenge dataset and we quantitatively demonstrate that models trained using synthetic data show better generalization performance than models trained on real images. Lastly, we generate an animal dataset with $10+$ different animal CAD models and we demonstrate the data can be effectively used for 2D pose estimation, part segmentation, and multi-task learning.
+
+# 2. Related Work
+
+# 2.1. Animal Parsing
+
+Though there exists large scale datasets containing animals for classification, detection, and instance segmentation, there are only a small number of datasets built for pose
+
+estimation [28, 39, 5, 27, 20] and animal part segmentation [8]. Besides, annotating keypoints or parts is time-consuming and these datasets only cover a tiny portion of animal species in the world.
+
+Due to the lack of annotations, synthetic data has been widely used to address the problem [43, 3, 44, 45]. Similar to SMPL models [24] for humans, [45] proposes a method to learn articulated SMAL shape models for animals. Later, [44] extracts more 3D shape details and is able to model new species. Unfortunately, these methods are built on manually extracted silhouettes and keypoint annotations. Recently, [43] proposes to copy texture from real animals and predicts 3D mesh of animals in an end-to-end manner. Most related to our method is [3], where authors propose a method to estimate animal poses on real images using synthetic silhouettes. Different from [3] which requires an additional robust segmentation model for real images during inference, our strategy does not require any additional models.
+
+# 2.2. Unsupervised Domain Adaptation
+
+Unsupervised domain adaptation focuses on learning a model that works well on a target domain when provided with labeled source samples and unlabeled target samples. A number of image-to-image translation methods [22, 40, 15] are proposed to transfer images from different domains. Another line of work studies how to explicitly minimize some measure of feature difference, such as maximum mean discrepancy [37, 23] or correlation distances [33, 35]. [4] proposes to explicitly partition features into a shared space and a private space. Recently, adversarial loss [36, 14] is used to learn domain invariant features, where a domain classifier is trained to distinguish the source and
+
+target distributions. [36] proposes a general framework to bring features from different domains closer. [14, 25] extend this idea with cycle consistency to improve results.
+
+Recent works have also investigated how to use these techniques to advance deformable objects parsing. [7] studies using synthetic human images combined with domain adaptation to improve human 3D pose estimation. [38] renders 145 realistic synthetic human models to reduce the domain gap. Different from previous works where a large amount of realistic synthetic models are required, we show that models trained on one CAD model can learn domain-invariant features.
+
+# 2.3. Self-training
+
+Self-training has been proved effective in semi-supervised learning. Early work [19] draws the connection between deep self-training and entropy regularization. However, since generated pseudo-labels are noisy, a number of methods [17, 10, 41, 42, 18, 12, 21, 9, 30, 31] are proposed to address the problem. [41, 42] formulate self-training as a general EM algorithm and proposes a confidence regularized self-training framework. [18] proposes a self-ensembling framework to bootstrap models using unlabeled data. [12] extends the previous work to unsupervised domain adaptation and demonstrate its effectiveness in bridging domain gaps.
+
+Closely related to our work on 2D pose estimation is [30], where the authors propose a simple method for omnisupervised learning that distills knowledge from unlabeled data and demonstrate its effectiveness on detection and pose estimation. However, under large domain discrepancy, the assumption that the teacher model assigns high-confidence pseudo-labels is not guaranteed. To tackle the problem, we introduce a curriculum learning strategy [2, 13, 16] to progressively increase pseudo-labels and train models in iterations. We also extend [30] by leveraging both spatial and temporal consistencies.
+
+# 3. Approach
+
+We first formulate a unified image generation procedure in Section 3.1 built on the low dimension manifold assumption. In Section 3.2, we define three consistencies and discuss how to take advantage of these consistencies during pseudo-label generation process. In Section 3.3, we propose a Pseudo-Label Generation algorithm using consistency-check. Then in Section 3.4 we present our consistency-constrained semi-supervised learning algorithm and discuss the iterative training pipeline. Lastly, in Section 3.5, we explain how our synthetic datasets are generated.
+
+We consider the problem under unsupervised domain adaptation framework with two datasets. We name our synthetic dataset as the source dataset $(X_{s},Y_{s})$ and real images as the target dataset $X_{t}$ . The goal is to learn a
+
+model $f$ to predict labels for the target data $X_{t}$ . We simply start with learning a source model $f_{s}$ using paired data $(X_{s}, Y_{s})$ in a fully supervised way. Then we bootstrap the source model using target dataset with consistency-constrained semi-supervised learning. An overview of the pipeline is presented in Figure 2.
+
+# 3.1. Formulate Image Generation Procedure
+
+In order to learn a model using synthetic data that can generalize well to real data, one needs to assume that there exists some essential knowledge shared between these two domains. Take animal 2D pose estimation as an example, though synthetic and natural images look differently by textures and background, they are quite similar in terms of poses and shape. Actually, these are exactly what we hope a model trained on synthetic data can learn. So an ideal model should be able to capture these essential factors and ignore those less relevant ones, such as lighting and background.
+
+Formally, we introduce a generator $G$ that transforms poses, shapes, viewpoints, textures, etc, into an image. Mathematically, we group all these factors into two categories, task-related factors $\alpha$ , which is what a model cares about, and others $\beta$ , which are irrelevant to the task at hand. So we parametrize the image generation process as follows,
+
+$$
+X = G (\alpha , \beta) \tag {1}
+$$
+
+where $X$ is a generated image and $G$ denotes the generator. Specifically, for 2D pose estimation, $\alpha$ represents factors related to the 2D keypoints, such as pose and shape; $\beta$ indicates factors independent of $\alpha$ , which could be textures, lighting and background.
+
+# 3.2. Consistency
+
+Based on the formulation in Section 3.1, we define three consistencies and discuss how to take advantage of these consistencies for the pseudo-label generation process.
+
+Since model-generated labels on the target dataset are noisy, one needs to tell the model which predictions are correct and which are wrong. Intuitively, an ideal 2D keypoint detector should generate consistent predictions on one image no matter how the background is perturbed. In addition, if one rotates the image, the prediction should change accordingly as well. Based on these intuitions, we propose to use consistency-check to reduce false positives.
+
+In the following paragraphs, we will introduce invariance consistency, equivariance consistency and temporal consistency. We will discuss how to use consistency-check to generate pseudo-labels, which serves as the basis for the proposed semi-supervised learning method.
+
+The transformation applied to an image can be considered as directly transforming the underlying factors in Equation 1. We define a general tensor operator, $T$ :
+
+
+Figure 2. Consistency-constrained semi-supervised learning pipeline. $T_{\beta}$ indicates the invariance consistency, $T_{\alpha}$ indicates the equivariance consistency and $T_{\Delta}$ indicates the temporal consistency. The training procedure can be described as follows: we start with training a model only using synthetic data and obtain an initial model $f^{(0)}$ . Then we iterate the following procedure. For the $n$ th iteration, we first use the proposed Pseudo-Label Generation Algorithm 1 to generate labels $\hat{Y}_t^{(n)}$ . Next, we train the model using $(X_s, Y_s)$ and $(X_t, \hat{Y}_t^{(n)})$ jointly.
+
+
+
+$\mathbb{R}^{H\times W}\to \mathbb{R}^{H\times W}$ . In addition, we introduce $\tau_{\alpha}$ corresponding to operations that would affect $\alpha$ and $\tau_{\beta}$ to represent operations independent of $\alpha$ . Then Equation 1 can be expressed as following,
+
+$$
+T (X) = G \left(\tau_ {\alpha} (\alpha), \tau_ {\beta} (\beta)\right) \tag {2}
+$$
+
+We use $f: \mathbb{R}^{H \times W} \to \mathbb{R}^{H \times W}$ to denote a perfect 2D pose estimation model. When $f$ is applied to Equation 2, it is obvious that, $f[T(X)] = f[G(\tau_{\alpha}(\alpha), \tau_{\beta}(\beta))]$ .
+
+Invariance consistency: If the transform $T$ does not change factors associated with the task, the model's prediction is expected to be the same. The idea here is that a well-behaved model should be invariant to operations on $\beta$ . For example, in 2D pose estimation, adding noise to the image or perturbing colors should not affect the model's prediction. We name these transforms invariance transform $T_{\beta}$ , as shown in Equation 3.
+
+$$
+f \left[ T _ {\beta} (X) \right] = f (X) \tag {3}
+$$
+
+If we apply multiple invariance transforms to the same image, the predictions on these transformed images should be consistent. This consistency can be used to verify whether the prediction is correct, which we refer to as invariance consistency.
+
+Equivalence consistency: Besides invariance transform, there are other cases where the task related factors are changed. We use $T_{\alpha}$ to denote transforms related to operations $\tau_{\alpha}$ . There are special cases where we can easily get the corresponding $T_{\alpha}$ . One easy case is that, sometimes, the effect of $\tau_{\alpha}$ only cause geometric transformations in 2D images, which we refer to as equivariance transform $T_{\alpha}$ .
+
+Actually, this is essentially similar to what [30] proposes. Therefore, we have equivariance consistency as shown in Equation 4.
+
+$$
+f \left[ T _ {\alpha} (X) \right] = T _ {\alpha} [ f (X) ] \tag {4}
+$$
+
+It is also easy to show that $f(X) = T_{\alpha}^{-1}[f[T_{\alpha}(X)]]$ , which means that, after applying the inverse transform $T_{\alpha}^{-1}$ , a good model should give back the original prediction.
+
+Temporal consistency: It is difficult to model transformations between frames in a video. This transform $T_{\Delta}$ does not satisfy the invariance and equivariance properties described above. However, $T_{\Delta}$ is still induced by variations of underlying factors $\alpha$ and $\beta$ . It is reasonable to assume that, in a real-world video, these factors do not change dramatically between neighboring frames.
+
+$$
+f \left[ T _ {\Delta} (X) \right] = f (X) + \Delta \tag {5}
+$$
+
+So we assume the keypoints shifting between two frames is relatively small as shown in Equation 5. Intuitively, this means that the keypoint prediction for the same joint in consecutive frames should not be too far away, otherwise it is likely to be incorrect.
+
+For 2D keypoint estimation, we observe that $T_{\Delta}$ can be approximated by optical flow to get $\Delta$ , which allows us to use optical flow to propagate pseudo-labels from confident frames to less confident ones.
+
+Although we define these three consistencies for 2D pose estimation, they can be easily extended to other problems. For example, in 3D pose estimation, $\alpha$ can be factors related to 3D pose. Then the invariance consistency is still the same, but the equivariance consistency no longer holds,
+
+since the mapping of 3D pose to 2D pose is not a one-to-one mapping and there are ambiguities in the depth dimension. However, one can still use it as a constraint for the other two dimensions, which means the projected poses should still satisfy the same consistency. So it is easy to see that though corresponding consistencies may change for different tasks, they all follow the same philosophy.
+
+Algorithm 1 Pseudo-Label Generation Algorithm
+Input: Target dataset $X_{t}$ ; model $f^{(n - 1)}$ ; decay factor $\lambda_{decay}$
+Intermediate Result: $P_{\beta},P_{\alpha}$ are predictions after applying invariance and equivariance transform.
+Output: Pseudo-labels $\hat{Y}_t^{(n)}$ ; confidence score $C_t^{(n)}$
+1: for $X_{t}^{i}$ in $X_{t}$ do
+2: Invariance Consistency
+3: $P_{\beta} = f^{(n - 1)}(T_{\beta}(X_{t}^{i}))$
+4: Equivariance Consistency
+5: $P_{\alpha} = T_{\alpha}^{-1}[f^{(n - 1)}(T_{\alpha}(X_{t}^{i}))]$
+6: Self-Ensembling
+7: Ensemble $P_{\beta}$ and $P_{\alpha}$ to get $(\hat{Y}_t^{(n),i},C_t^{(n),i})$
+8: Temporal Consistency
+9: if $C_t^{(n),i} / C_t^{(n),i - 1} < \lambda_{decay}$ then
+10: $\hat{Y}_t^{(n),i} = (\hat{Y}_t^{(n),i - 1}) + \Delta$
+11: $C_t^{(n),i} = \lambda_{decay}*C_t^{(n),i - 1}$
+12: end if
+13: end for
+14: Sort $C_t^{(n)}$ and obtain $C_{thresh}$ based on a fixed curricuIum learning policy.
+15: Set $C_t^{(n),i} = \mathbb{1}(C_t^{(n),i}\geq C_{thresh}),\forall i$
+
+# 3.3. Pseudo-Label Generation
+
+In this section, we explain in details how to apply these consistencies in practice for generating pseudo-labels and propose the pseudo-label generation method as in Algorithm 1.
+
+We address the noisy label problem in two ways. First, we develop an algorithm to generate pseudo-labels using consistency-check to remove false positives, assuming that labels generated using the correct information always satisfy these consistencies. Second, we apply the curriculum learning idea to gradually increase the number of training samples and learn models in an iterative fashion.
+
+For the $n$ th iteration, with the previous model $f^{(n - 1)}$ obtained from the $(n - 1)$ th iteration, we iterate through each image $X_{t}^{i}$ in the target dataset $X_{t}$ . $f^{(n - 1)}$ is not updated in this process. First, for each image, we apply multiple invariance transform $T_{\beta}$ , equivariance transform $T_{\alpha}$ to $X_{t}^{i}$ , and ensemble all predictions $P_{\beta}$ and $P_{\alpha}$ to get a pair of estimated labels and confidence scores $(\hat{Y}_{t}^{(n),i}, C_{t}^{(n),i})$ .
+
+Second, we use temporal consistency to update weak predictions. For each keypoint, we check whether the current confidence score $C_t^{(n),i}$ is strong compared to the one in the previous frame $C_t^{(n),i-1}$ with respect to a decay factor $\lambda_{decay}$ . If the current frame prediction is confident, we simply keep it; otherwise, we replace the prediction $\hat{Y}_t^{(n),i}$ with the flow prediction $\Delta$ plus the previous frame prediction and replace $C_t^{(n),i}$ with previous frame confidence multiplied by a decay factor $\lambda_{decay}$ . Temporal consistency is optional and can be used if videos are available.
+
+To this end, the algorithm has generated labels and confidence scores for all images. The last step is to iterate through the target dataset again to select $C_{thresh}$ using a curriculum learning strategy, which determines the percentage of labels used for training. The idea here is to use keypoints with high confidence first and gradually include more keypoints after iterations. In practice, we use a policy to include top 20% ranking keypoints at the beginning, 40% for the second iteration, until hitting 80%.
+
+# 3.4. Consistency-Constrained Semi-Supervised Learning (CC-SSL)
+
+For the $n$ th iteration, the loss function $L^{(n)}$ is defined to be the Mean Square Error on heatmaps of both the source data and target data, as in Equation 6. $\gamma$ is used to balance the loss between source and target datasets.
+
+$$
+\begin{array}{l} L ^ {(n)} = \sum_ {i} L _ {M S E} \left(f ^ {(n)} \left(X _ {s} ^ {i}\right), Y _ {s} ^ {i}\right) \\ + \gamma \sum_ {j} L _ {M S E} \left(f ^ {(n)} \left(X _ {t} ^ {j}\right), \hat {Y} _ {t} ^ {(n - 1), j}\right) \tag {6} \\ \end{array}
+$$
+
+To this end, we present our Consistency-Constrained Semi-Supervised Learning (CC-SSL) approach as follows: we start with training a model only using synthetic data and obtain an initial weak model $f^{(0)} = f_s$ . Then we iterate the following procedure. For the $n$ th iteration, we first use Algorithm 1 to generate labels $\hat{Y}_t^{(n)}$ . With the generated labels, we simply train the model using $(X_s, Y_s)$ and $(X_t, \hat{Y}_t^{(n)})$ jointly using $L^{(n)}$ .
+
+# 3.5. Synthetic Dataset Generation
+
+In order to create a diverse combination of animal appearances and poses, we collect a synthetic animal dataset containing $10+$ animals. Each animal comes with several animation sequences. We use Unreal Engine to collect rich ground truth and enable nuisance factor control. The implemented factor control includes randomizing lighting, textures, changing viewpoints and animal poses.
+
+The pipeline for generating synthetic data is as follows. Given a CAD model along with a few animation sequences, an animal with random poses and random texture is rendered from a random viewpoint for some random lighting
+
+and a random background image. We also generate ground truth depth maps, part segmentation and dense joint locations (both 2D and 3D). See Figure 1 for samples from the synthetic dataset.
+
+# 4. Experiments
+
+First, we quantitatively test our approach on the Tig-Dog dataset [28] in Section 4.2. We compare our method with other popular unsupervised domain adaptation methods, such as CycleGAN [40], BDL [21] and CyCADA [14]. We also qualitatively show keypoint detection of other animals where no labeled real images are available, such as elephants, sheep and dogs. Second, in order to show the domain generalization ability, we annotated the keypoints of animals from Visual Domain Adaptation Challenge dataset (VisDA2019). In Section 4.3, we evaluate our models on these images from different visual domains. Third, the rich ground truth in synthetic data enables us to do more tasks beyond 2D pose estimation, so we also visualize part segmentation on horses and tigers and demonstrate the effectiveness of multi-task learning in Section 4.4.
+
+# 4.1. Experiment Setup
+
+Network Architecture. We use Stacked Hourglass [26] as our backbone for all experiments. Architecture design is not our main focus and we strictly follow parameters from the original paper. Each model is trained with RMSProp for 100 epochs. The learning rate starts with $2.5e^{-4}$ and decays twice at 60 and 90 epochs respectively. Input images are cropped with the size of $256 \times 256$ and augmented with scaling, rotation, flipping and color perturbation.
+
+Synthetic Datasets. We explain the details of our data generation parameters as follows. The virtual camera has a resolution of $640 \times 480$ and field of view of 90. We randomize synthetic animal textures and backgrounds using Coco val2017 dataset. We does not use any segmentation annotation from coco val2017. For each animal, we generated 5,000 images with random texture and 5,000 images with the texture coming with the CAD model, to which we refer as the original texture. We split the training set and validation set with a ratio of 4:1, resulting in 8,000 images for training and 2,000 for validation. We also generate rich ground truth including part segmentation, depth maps and dense 2D and 3D keypoints. For part segmentation, we define nine parts for each animal, which are eyes, head, ears, torso, left-front leg, left-back leg, right-front leg, right-back leg and tail. The parts definition follows [8] with a minor difference that we distinguish front from back legs. CAD models used in this paper are purchased from UE4 marketplace1.
+
+CC-SSL In our experiments, we pick scaling and rotation from $T_{\alpha}$ and obtain $\Delta$ using optical flow. $\lambda_{decay}$ is set to 0.9 and we train one model for 10 epochs and re-generate pseudo labels with the new model. Models are trained for 60 epochs with $\gamma$ set to be 10.0.
+
+TigDog Dataset The TigDog dataset is a large dataset containing 79 videos for horses and 96 videos for tigers. In total, for horse, we have 8380 frames for training and 1772 frames for testing. For tigers, we have 6523 frames for training and 1765 frames for testing. Each frame is provided with 19 keypoint annotations, which are defined as eyes(2), chin(1), shoulders(2), legs(12), hip(1) and neck(1). The neck keypoint is not clearly distinguished for left and right, so we leave it out in all experiments.
+
+# 4.2. 2D Pose Estimation
+
+Results Analysis. Our main results are summarized in Table 1. We present our results in two different setups: the first one is under the unsupervised domain adaptation setting where real image annotations are not available; the second one is when labeled real images are available.
+
+When annotations of real images are not available, our proposed CC-SSL surpasses other methods by a significant margin. The PCK@0.05 accuracy of horses reaches 70.77, which is close to models trained directly on real images. For tigers, the proposed method achieves 64.14. It is worth noticing that these results are achieved without accessing any real image annotation, which demonstrated the effectiveness of our proposed method.
+
+We also visualize the predicted keypoints in Figure 3. Even for some extreme poses, such as horse riding and lying on the ground, the method still generate accurate predictions. The observations for tigers are similar.
+
+When annotations of real images are available, our proposed CC-SSL-R achieves 82.43 for horses and 84.00 for tigers, which are noticeably better than models trained on real images only. CC-SSL-R is achieved simply by further finetuning the CC-SSL models using real image labels.
+
+In addition to horses and tigers, we apply the method to other animals as well. The method can be easily transferred to other animal categories and we qualitatively show keypoint prediction results for other animals, as shown in Figure 4. Notice that our method can also detect trunks of elephants.
+
+We empirically find the performance does not improve much with CycleGAN. We conjecture that one reason is that CycleGAN in general requires a large number of real images to work well. However, in our case, the diversity of real images is limited. Another reason is that animal shapes of transferred images are not maintained well. We also try different adversarial training strategies. Though BDL works quite well for semantic segmentation, we find the improvements on keypoints detection is small. CyCADA also suf
+
+ | Horse Accuracy | Tiger Accuracy |
| Eye | Chin | Shoulder | Hip | Elbow | Knee | Hoove | Mean | Eye | Chin | Shoulder | Hip | Elbow | Knee | Hoove | Mean |
| synthetic + real | | | | | | | | | | | | | | | | |
| Real | 79.04 | 89.71 | 71.38 | 91.78 | 82.85 | 80.80 | 72.76 | 78.98 | 96.77 | 93.68 | 65.90 | 94.99 | 67.64 | 80.25 | 81.72 | 81.99 |
| CC-SSL-R | 89.39 | 92.01 | 69.05 | 92.28 | 86.39 | 83.72 | 76.89 | 82.43 | 95.72 | 96.32 | 74.41 | 91.64 | 71.25 | 82.37 | 82.73 | 84.00 |
| synthetic only | | | | | | | | | | | | | | | | |
| Syn | 46.08 | 53.86 | 20.46 | 32.53 | 20.20 | 24.20 | 17.45 | 25.33 | 23.45 | 27.88 | 14.26 | 52.99 | 17.32 | 16.27 | 19.29 | 21.17 |
| CycleGAN [40] | 70.73 | 84.46 | 56.97 | 69.30 | 52.94 | 49.91 | 35.95 | 51.86 | 71.80 | 62.49 | 29.77 | 61.22 | 36.16 | 37.48 | 40.59 | 46.47 |
| BDL [21] | 74.37 | 86.53 | 64.43 | 75.65 | 63.04 | 60.18 | 51.96 | 62.33 | 77.46 | 65.28 | 36.23 | 62.33 | 35.81 | 45.95 | 54.39 | 52.26 |
| CyCADA [14] | 67.57 | 84.77 | 56.92 | 76.75 | 55.47 | 48.72 | 43.08 | 55.57 | 75.17 | 69.64 | 35.04 | 65.41 | 38.40 | 42.89 | 48.90 | 51.48 |
| CC-SSL | 84.60 | 90.26 | 69.69 | 85.89 | 68.58 | 68.73 | 61.33 | 70.77 | 96.75 | 90.46 | 44.84 | 77.61 | 55.82 | 42.85 | 64.55 | 64.14 |
+
+Table 1. Horse and tiger 2D pose estimation accuracy PCK@0.05. Synthetic data are with randomized background and textures. Synthetic only shows results when no real image label is available, Synthetic + Real are cases when real image labels are available. In both scenarios, our proposed CC-SSL based methods achieve the best performance.
+
+
+Figure 3. Visualization of horse and tiger 2D pose estimation and part segmentation prediction. The 2D pose estimations are predicted using CC-SSL as described in Section 4.2 and part segmentation predictions are generated using the multi-task learning as described in Section 4.4. Best viewed in color.
+
+
+
+fers from the same problem as CycleGAN. In comparison, CC-SSL does not suffer from those problems and it can work well even with limited diversity of real data.
+
+We use the same set of augmentations as in [26] for baselines Real and Syn. We use a different set of augmentations for other experiments, which we refer to as Strong Augmentation. In addition to what [26] used, Strong Augmentation also includes Affine Transform, Gaussian Noise and Gaussian Blurring.
+
+# 4.3. Generalization Test on VisDA2019
+
+In this section, we test model generalization on images from Visual Domain Adaptation Challenge dataset (VisDA2019). The dataset contains six domains: real, sketch, clipart, painting, infographic, and quickdraw. We pick up sketch, painting and clipart for our experiments since infographic and quickdraw are not suitable for 2D pose estimation. For each of these three domains, we manually annotate images for horses and tigers. Evaluation results are summarized in Table 2. Same as before, we use Real as our baseline. CC-SSL and CC-SSL-R are used for comparison.
+
+For both animals, we observe that models trained using
+
+synthetic data achieve best performance in all settings. We present our results under two settings. Visible Keypoints Accuracy only accounts for keypoints that are directly visible whereas Full Keypoints Accuracy shows results with self-occluded keypoints.
+
+Under all settings, CC-SSL-R is better than Real. More interestingly, notice that even without using real image labels, our CC-SSL method yields better performance than Real in almost all domains. The only one exception is the painting domain of tigers. We hypothesize that this is because texture information (yellow and black stripes) in paintings is still well preserved so models trained on real images can still "generalize". For sketches and cliparts, appearances are more different from real images and models trained on synthetic data show better results.
+
+# 4.4. Part Segmentation
+
+Since the synthetic animal dataset is generated with rich ground truth, our task is not limited to 2D pose estimation. We also experiment with part segmentation in a multi-task learning setting. All models are trained on synthetic images with Strong Augmentation and tested on TigDog dataset directly.
+
+
+Figure 4. Visualization of 2D pose estimation of other animals. Our method can be easily generalized to elephants' trunks. Best viewed in color.
+
+ | Horse | Tiger |
| Visible Sketch | Kpts Accuracy Painting | Clipart | Full Sketch | Kpts Accuracy Painting | Clipart | Visible Sketch | Kpts Accuracy Painting | Clipart | Full Sketch | Kpts Accuracy Painting | Clipart |
| Real | 65.37 | 64.45 | 64.43 | 61.28 | 58.19 | 60.49 | 48.10 | 61.48 | 53.36 | 46.23 | 53.14 | 50.92 |
| CC-SSL | 72.29 | 73.71 | 73.47 | 70.31 | 71.56 | 72.24 | 53.34 | 55.78 | 59.34 | 52.64 | 48.42 | 54.66 |
| CC-SSL-R | 73.25 | 74.56 | 71.78 | 67.82 | 65.15 | 65.87 | 54.94 | 68.12 | 63.47 | 53.43 | 58.66 | 59.29 |
+
+As shown in Table 3, we observe that models, trained on keypoints and part segmentation jointly, can generalize better on real images for both animals, compared to the baseline where models are only trained with keypoints. Since we cannot quantitatively evaluate part segmentation predictions, we visualize the part segmentation results on TigDog dataset as shown in Figure 3.
+
+In the multi-task learning setting, we only make minor changes to the original Stacked Hourglass architecture, where we add a branch parallel to the original keypoint prediction one for part segmentation.
+
+Table 2. Horse and tiger 2D pose estimation accuracy PCK@0.05 on VisDA2019. We present our results under two settings: Visible Kpts Accuracy only accounts for visible keypoints; Full Kpts Accuracy also includes self-occluded keypoints. Under all settings, our proposed methods achieve better performance than baseline Real.
+
+| Models | Horse | Tiger |
| Baseline | 60.84 | 50.26 |
| +Part segmentation | 62.25 | 51.69 |
+
+Table 3. Horse and tiger 2D pose estimation PCK@0.05 with multi-task learning. We show models can generalize better to real images trained jointly using 2D keypoints and part segmentation.
+
+# 5. Conclusions
+
+In this paper, we present a simple yet efficient method using synthetic images to parse animals. To bridge the domain gap, we present a novel consistency-constrained semi-supervised learning (CC-SSL) method, which leverages both spatial and temporal constraints. We demonstrate the effectiveness of the proposed method on horses
+
+and tigers in the TigDog Dataset. Without any real image label, our model can detect keypoints reliably on real images. When using real image labels, we show that models trained jointly on synthetic and real images achieve better results compared to models trained only on real images. We further demonstrate that the models trained using synthetic data achieve better generalization performance across different domains in the Visual Domain Adaptation Challenge dataset. We build a synthetic dataset contains $10+$ animals with diverse poses and rich ground truth and show that multi-task learning is effective.
+
+# Acknowledgements
+
+Supported by the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/Interior Business Center (DOI/IBC) contract number D17PC00342. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DOI/IBC, or the U.S. Government. The authors would like to thank Chunyu Wang, Qingfu Wan, Yi Zhang for helpful discussions.
+
+# References
+
+[1] Mykhaylo Andriluka, Leonid Pishchulin, Peter V. Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In CVPR, pages 3686-3693, 2014. 1
+[2] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ICML, pages 41-48, 2009. 3
+[3] Benjamin Biggs, Thomas Roddick, Andrew W. Fitzgibbon, and Roberto Cipolla. Creatures great and SMAL: recovering the shape and motion of animals from video. CoRR, abs/1811.05804, 2018. 2
+[4] Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. Domain separation networks. In NeurlPS, pages 343-351, 2016. 2
+[5] Jinkun Cao, Hongyang Tang, Haoshu Fang, Xiaoyong Shen, Cewu Lu, and Yu-Wing Tai. Cross-domain adaptation for animal pose estimation. CoRR, abs/1908.05806, 2019. 2
+[6] Angel X. Chang, Thomas A. Funkhouser, Leonidas J. Guibas, Pat Hanrahan, Qi-Xing 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. CoRR, abs/1512.03012, 2015. 1
+[7] Wenzheng Chen, Huan Wang, Yangyan Li, Hao Su, Zhenhua Wang, Changhe Tu, Dani Lischinski, Daniel Cohen-Or, and Baoquan Chen. Synthesizing training images for boosting human 3d pose estimation. In 3DV, pages 479–488, 2016. 1, 3
+[8] Xianjie Chen, Roozbeh Mottaghi, Xiaobai Liu, Sanja Fidler, Raquel Urtasun, and Alan L. Yuille. Detect what you can: Detecting and representing objects using holistic models and body parts. In CVPR, pages 1979-1986, 2014. 2, 6
+[9] Jaehoon Choi, Taekyung Kim, and Changick Kim. Self-ensembleing with gan-based data augmentation for domain adaptation in semantic segmentation. CoRR, abs/1909.00589, 2019. 3
+[10] Yifan Ding, Liqiang Wang, Deliang Fan, and Boqing Gong. A semi-supervised two-stage approach to learning from noisy labels. In 2018 IEEE Winter Conference on Applications of Computer Vision, WACV 2018, Lake Tahoe, NV, USA, March 12-15, 2018, pages 1215-1224, 2018. 3
+[11] Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Häusser, Caner Hazirbas, Vladimir Golkov, Patrick van der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In ICCV, pages 2758-2766, 2015. 1
+[12] Geoffrey French, Michal Mackiewicz, and Mark H. Fisher. Self-ensembling for visual domain adaptation. In ICLR, 2018. 3
+[13] Sheng Guo, Weilin Huang, Haozhi Zhang, Chenfan Zhuang, Dengke Dong, Matthew R. Scott, and Dinglong Huang. Curriculumnet: Weakly supervised learning from large-scale web images. In ECCV, pages 139-154, 2018. 3
+[14] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A. Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In ICML, pages 1994-2003, 2018. 1, 2, 3, 6, 7
+
+[15] Xun Huang, Ming-Yu Liu, Serge J. Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation. In ECCV, pages 179-196, 2018. 2
+[16] Lu Jiang, Deyu Meng, Qian Zhao, Shiguang Shan, and Alexander G. Hauptmann. Self-paced curriculum learning. In AAAI, pages 2694-2700, 2015. 3
+[17] Youngdong Kim, Junho Yim, Juseung Yun, and Junmo Kim. NLNL: negative learning for noisy labels. CoRR, abs/1908.07387, 2019. 3
+[18] Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. In ICLR, 2017. 3
+[19] Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In Workshop on Challenges in Representation Learning, ICML, volume 3, page 2, 2013. 3
+[20] Shuyuan Li, Jianguo Li, Weiyao Lin, and Hanlin Tang. Amur tiger re-identification in the wild. CoRR, abs/1906.05586, 2019. 2
+[21] Yunsheng Li, Lu Yuan, and Nuno Vasconcelos. Bidirectional learning for domain adaptation of semantic segmentation. In CVPR, pages 6936-6945, 2019. 3, 6, 7
+[22] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NeurIPS, pages 700-708, 2017. 2
+[23] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. Learning transferable features with deep adaptation networks. In ICML, pages 97-105, 2015. 2
+[24] Matthew Loper, Naureen Mahmood, Javier Romero, Gerard Pons-Moll, and Michael J. Black. SMPL: a skinned multiperson linear model. ACM Trans. Graph., 34(6):248:1-248:16, 2015. 1, 2
+[25] Zak Murez, Soheil Kolouri, David J. Kriegman, Ravi Ramamoorthi, and Kyungnam Kim. Image to image translation for domain adaptation. In CVPR, pages 4500-4509, 2018. 3
+[26] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In Computer Vision - ECCV 2016 - 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part VIII, pages 483-499, 2016. 6, 7
+[27] David Novotny, Diane Larlus, and Andrea Vedaldi. I have seen enough: Transferring parts across categories. In BMVC, 2016. 2
+[28] Luca Del Pero, Susanna Ricco, Rahul Sukthankar, and Vittorio Ferrari. Articulated motion discovery using pairs of trajectories. In CVPR, pages 2151-2160, 2015. 2, 6
+[29] Aayush Prakash, Shaad Boochoon, Mark Brophy, David Acuna, Eric Cameracci, Gavriel State, Omer Shapira, and Stan Birchfield. Structured domain randomization: Bridging the reality gap by context-aware synthetic data. In ICRA, pages 7249-7255, 2019. 1
+[30] Ilija Radosavovic, Piotr Dollar, Ross B. Girshick, Georgia Gkioxari, and Kaiming He. Data distillation: Towards omnisupervised learning. In CVPR, pages 4119-4128, 2018. 3, 4
+[31] Aruni Roy Chowdhury, Prithvijit Chakrabarty, Ashish Singh, SouYoung Jin, Huaizu Jiang, Liangliang Cao, and Erik G. Learned-Miller. Automatic adaptation of object detectors to
+
+new domains using self-training. In CVPR, pages 780-790, 2019.3
+[32] Benjamin Sapp and Ben Taskar. MODEC: multimodal decomposable models for human pose estimation. In CVPR, pages 3674-3681, 2013. 1
+[33] Baochen Sun and Kate Saenko. Deep CORAL: correlation alignment for deep domain adaptation. In ECCV Workshops, pages 443-450, 2016. 2
+[34] Jonathan Tremblay, Aayush Prakash, David Acuna, Mark Brophy, Varun Jampani, Cem Anil, Thang To, Eric Cameracci, Shaad Boochoon, and Stan Birchfield. Training deep networks with synthetic data: Bridging the reality gap by domain randomization. In CVPR, pages 969-977, 2018. 1
+[35] Eric Tzeng, Judy Hoffman, Trevor Darrell, and Kate Saenko. Simultaneous deep transfer across domains and tasks. In ICCV, pages 4068-4076, 2015. 2
+[36] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In CVPR, pages 2962-2971, 2017. 2, 3
+[37] Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. CoRR, abs/1412.3474, 2014. 2
+[38] Gül Varol, Javier Romero, Xavier Martin, Naureen Mahmood, Michael J. Black, Ivan Laptev, and Cordelia Schmid. Learning from synthetic humans. In CVPR, pages 4627-4635, 2017. 1, 3
+[39] P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010. 2
+[40] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV 2017, pages 2242-2251, 2017. 2, 6, 7
+[41] Yang Zou, Zhiding Yu, B. V. K. Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In ECCV, pages 297-313, 2018. 3
+[42] Yang Zou, Zhiding Yu, Xiaofeng Liu, B. V. K. Vijaya Kumar, and Jinsong Wang. Confidence regularized self-training. CoRR, abs/1908.09822, 2019. 3
+[43] Silvia Zuffi, Angjoo Kanazawa, Tanya Y. Berger-Wolf, and Michael J. Black. Three-d safari: Learning to estimate zebra pose, shape, and texture from images "in the wild". CoRR, abs/1908.07201, 2019. 2
+[44] Silvia Zuffi, Angjoo Kanazawa, and Michael J. Black. Lions and tigers and bears: Capturing non-rigid, 3d, articulated shape from images. In CVPR, pages 3955-3963, 2018. 2
+[45] Silvia Zuffi, Angjoo Kanazawa, David W. Jacobs, and Michael J. Black. 3d menagerie: Modeling the 3d shape and pose of animals. In CVPR, pages 5524-5532, 2017. 2
\ No newline at end of file
diff --git a/learningfromsyntheticanimals/images.zip b/learningfromsyntheticanimals/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..dd65cf307f6afc81c5c4dd98d48fcacbe26cc533
--- /dev/null
+++ b/learningfromsyntheticanimals/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea809ff1cfdf7b8c869a6632c74fb36e2c561cb25485bedb5c0a31fde8ff5363
+size 529838
diff --git a/learningfromsyntheticanimals/layout.json b/learningfromsyntheticanimals/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d31eb9022a51d076553d4a0a7f0a30a27a15c1a6
--- /dev/null
+++ b/learningfromsyntheticanimals/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa08f1df924ac8fe57347f17f8eb0c0bd716bf54d6cfc322c2b45a7afb3c26e0
+size 372147
diff --git a/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_content_list.json b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a70492ca6a82d7ac14405ed5670186f8fdaf865f
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23bc5f8eebfc7bf1114977486b5a1c510ee9de52330c8a13c103a36627ec3dc3
+size 78938
diff --git a/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_model.json b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7ed1dc8e1bdb57b8030a374b31fb0dc413d1d208
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:25bab8cc97480d58b62cde0ce8b3f4b27db576bed4a597f42548064d424d59c9
+size 101223
diff --git a/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_origin.pdf b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8816d8f09a78715e6ac72b2c8821e7757c8804ed
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/6b68a804-79ac-46c5-9ab3-89be5a69d29f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7a3fd15e7e556dbaaa7f4fa6425985cef0f774aafd65fa843873a411ac31abd
+size 447286
diff --git a/learningfromwebdatawithselforganizingmemorymodule/full.md b/learningfromwebdatawithselforganizingmemorymodule/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..7166d373bd5830295215a285bab8edb549d30499
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/full.md
@@ -0,0 +1,358 @@
+# Learning from Web Data with Self-Organizing Memory Module
+
+Yi Tu, Li Niu\*, Junjie Chen, Dawei Cheng, and Liqing Zhang*
+MoE Key Lab of Artificial Intelligence, Department of Computer Science and Engineering
+Shanghai Jiao Tong University, Shanghai, China
+
+{tuyil991,ustcnewly,chen.bys,dawei.cheng}@sjtu.edu.cn,zhang-lq@cs.sjtu.edu.cn
+
+# Abstract
+
+Learning from web data has attracted lots of research interest in recent years. However, crawled web images usually have two types of noises, label noise and background noise, which induce extra difficulties in utilizing them effectively. Most existing methods either rely on human supervision or ignore the background noise. In this paper, we propose a novel method, which is capable of handling these two types of noises together, without the supervision of clean images in the training stage. Particularly, we formulate our method under the framework of multi-instance learning by grouping ROIs (i.e., images and their region proposals) from the same category into bags. ROIs in each bag are assigned with different weights based on the representative/discriminative scores of their nearest clusters, in which the clusters and their scores are obtained via our designed memory module. Our memory module could be naturally integrated with the classification module, leading to an end-to-end trainable system. Extensive experiments on four benchmark datasets demonstrate the effectiveness of our method.
+
+# 1. Introduction
+
+Deep learning is a data-hungry method that demands large numbers of well-labeled training samples, but acquiring massive images with clean labels is expensive, time-consuming, and labor-intensive. Considering that there are abundant freely available web data online, learning from web images could be promising. However, web data have two severe flaws: label noise and background noise. Label noise means the incorrectly labeled images. Since web images are usually retrieved by using the category name as the keyword when searching from public websites, unrelated images might appear in the searching results. Different from label noise, background noise is caused by the cluttered and diverse contents of web images compared with
+
+
+Label noise
+
+
+Background noise
+Figure 1. Two web images crawled with keyword "dog". Left: Dog food; Right: A kid and a dog on the grassland.
+
+standard datasets. Specifically, in manually labeled datasets like Cifar-10, the target objects of each category usually appear at the center and occupy relatively large areas, yielding little background noise. However, in web images, background or irrelevant objects may occupy the majority of the whole image. One example is provided in Figure 1, in which two images are crawled with the keyword "dog". The left image belongs to label noise since it has dog food, which is indirectly related to "dog". Meanwhile, the right image belongs to background noise because the grassland occupies the majority of the whole image, and a kid also takes a salient position.
+
+There are already many studies [33, 23, 36, 46, 52, 16, 31, 32, 34] on using web images to learn classifiers. However, most of them [53, 24, 13, 33, 23, 28, 19] only focused on label noise. In contrast, some recent works began to consider the background noise. In particular, Zhuang et al. [60] used attention maps to suppress background noise, but this method did not fully exploit the relationship among different regions, which might limit its ability to remove noisy regions. Sun et al. [46] utilized weakly supervised region proposal network to distill clean region proposals from web images, but this approach requires extra clean images in the training stage.
+
+In this work, we propose a novel method to address the label noise and background noise simultaneously without using human annotation. We first use an unsupervised proposal extraction method [61] to capture image regions which are likely to contain meaningful objects. In the re
+
+mainder of this paper, we use "ROI" (Region Of Interest) to denote both images and their region proposals. Following the idea of multi-instance learning, ROIs from the same category are grouped into bags and the ROIs in each bag are called instances. Based on the assumption that there is at least a proportion of clean ROIs in each bag, we tend to learn different weights for different ROIs with lower weights indicating noisy ROIs, through which label/background noise can be mitigated. With ROI weights, we can use the weighted average of ROI-level features within each bag as bag-level features, which are cleaner than ROI-level features and thus more suitable for training a robust classifier.
+
+Instead of learning weights via self-attention like [17, 60], in order to fully exploit the relationship among different ROIs, we tend to learn ROI weights by comparing them with prototypes, which are obtained via clustering bag-level features. Each cluster center (i.e., prototype) has a representative (resp., discriminative) score for each category, which means how this cluster center is representative (resp., discriminative) for each category. Then, the weight of each ROI can be calculated based on its nearest cluster center for the corresponding category. Although the idea of the prototype has been studied in many areas such as semi-supervised learning [6] and few-shot learning [43], they usually cluster the samples within each category, while we cluster bag-level features from all categories to capture the cross-category relationship.
+
+Traditional clustering methods like K-means could be used to cluster bag-level features. However, we use recently proposed key-value memory module [29] to achieve this goal, which is more powerful and flexible. The memory module could be integrated with the classification module, yielding an end-to-end trainable system. Moreover, it can online store and update the category-specific representative/discriminative scores of cluster centers at the same time. As a minor contribution, we adopt the idea of Self-Organizing Map [48] to improve the existing memory module to stabilize the training process.
+
+Our contributions can be summarized as follows: 1) The major contribution is handling the label/background noise of web data under the multi-instance learning framework with the memory module; 2) The minor contribution is proposing the self-organizing memory module to stabilize the training process and results; 3) The experiments on several benchmark datasets demonstrate the effectiveness of our method in learning classifiers with web images.
+
+# 2. Related Work
+
+# 2.1. Webly Supervised Learning
+
+For learning from web data, previous works focus on handling the label noise in three directions, removing label
+
+noise [42, 7, 8, 30, 53, 24, 33, 23, 28, 12, 39, 14], building noise-robust model [4, 10, 5, 36, 44, 3, 38, 49, 47, 21], and curriculum learning [13, 19]. The above approaches focused on label noise. However, web data also have background noise, as mentioned in [46]. To address this issue, Zhuang et al. [60] utilized the attention mechanism [50] to reduce the attention on background regions while Sun et al. [46] used a weakly unsupervised object localization method to reduce the background noise.
+
+Most previous works utilize extra information like a small clean dataset or only consider the label noise issue. In contrast, our method can solve both label noise and background noise by only using noisy web images in the training stage.
+
+# 2.2. Memory Networks
+
+Memory networks were recently introduced to solve the question answering task [18, 45, 29]. Memory network was first proposed in [18] and extended to be end-to-end trainable in [45]. Miller et al. [29] added the key and value module for directly reading documents, rendering the memory network more flexible and powerful. More recently, memory networks have been employed for one-shot learning [41, 20], few-shot learning [55, 58], and semi-supervised learning [6].
+
+Although memory networks have been studied in many tasks, our work is the first to utilize the memory network to handle the label/background noise of web data.
+
+# 2.3. Multi-Instance Learning
+
+In multi-instance learning (MIL), multiple instances are grouped into a bag, with at least one positive instance triggering the bag-level label. The main goal of MIL is to learn a robust classifier with unknown instance labels. Some early methods based on SVM [2, 27] treat one bag as an entirety or infer instance labels within each bag. In the deep learning era, various pooling operations have been studied like mean pooling and max pooling [37, 59, 11]. Different from these non-trainable pooling operators, some works [35, 17, 22, 51] proposed trainable operators to learn different weights for different instances. By utilizing the attention mechanism, Pappas and PopescuBelis [35] proposed an attention-based MIL with attention weights trained in an auxiliary linear regression model. AD-MIL [17] took a further step and designed permutation-invariant aggregation operator with the gated attention mechanism.
+
+Under the MIL framework, we utilize a memory module to learn weights for the instances in each bag, which has not been explored before.
+
+# 3. Methodology
+
+In this paper, we denote a matrix/vector by using a uppercase/ lowercase letter in boldface (e.g., A denotes a matrix
+
+
+Figure 2. Illustration of our method. Black Arrow: Update the CNN model with bag-level features and bag labels. Dashed Arrow: Update the memory module with bag-level features and bag labels. Red Arrow: Update the weights of ROIs based on the memory module. The whole training algorithm is listed in Algorithm 1.
+
+and a denotes a vector). $\mathbf{a}_i$ denotes a particular row or column of $\mathbf{A}$ indexed by subscript $i$ . $a_{i,j}$ denotes an element of $\mathbf{A}$ at the $i$ -th row and $j$ -th column. Moreover, we use $\mathbf{a}^T$ to denote the transpose of $\mathbf{a}$ , and $\mathbf{A} \circ \mathbf{B}$ to denote the element-wise product between $\mathbf{A}$ and $\mathbf{B}$ .
+
+# 3.1. Overview of Our Method
+
+The flowchart of our method is illustrated in Figure 2. We first extract region proposals for each image using the unsupervised EdgeBox method [61]. By tuning the hyperparameters in EdgeBox, we expect the extracted proposals to cover most objects to avoid missing important information (see details in Section 4.2). We group ROIs (i.e., images and their proposals) from the same category into training bags, in which ROIs within each bag are treated as instances. To assign different weights to different ROIs in each bag, we compare each ROI with its nearest key in the memory module. Then we take the weighted average of ROI-level features as bag-level features, which are used to train the classifier and update the memory module.
+
+# 3.2. Multi-Instance Learning Framework
+
+We build our method under the multi-instance learning framework. Particularly, we group several images of the same category and their region proposals into one bag, so that each bag has multiple instances (i.e., ROIs). We aim to assign higher weights to clean ROIs and use the weighted average of ROI-level features within each bag as bag-level features, which are supposed to be cleaner than ROI-level features.
+
+Formally, we use $\mathcal{S}$ to denote the training set of multiple bags, and $\mathcal{B} \in \mathcal{S}$ denotes a single training bag. Note that we use the same number $n_g$ of images in each bag and generate the same number $n_p$ of region proposals for each image,
+
+leading to the same number $n_b$ of ROIs in each bag with $n_b = n_g(n_p + 1)$ . Specifically, $\mathcal{B} = \{\mathbf{x}_i | i = 1,2,\dots,n_b\}$ is a bag of $n_b$ ROIs, in which $\mathbf{x}_i \in \mathcal{R}^d$ is the $d$ -dim feature vector of $i$ -th ROI. We use $\mathsf{w}(\mathbf{x}_i)$ to denote the weight of $\mathbf{x}_i$ with $\sum_{\mathbf{x}_i \in \mathcal{B}} \mathsf{w}(\mathbf{x}_i) = 1$ . As shown in Figure 2, the features of ROIs are pooled from the corresponding regions on the feature map of the last convolutional layer in CNN model, similar to [40].
+
+Given a bag with category label $y \in [1,2,\dots,C]$ with $C$ being the number of total categories, we can also represent its bag label as a $C$ -dim one-hot vector $\mathbf{y}$ with only the $y$ -th element being one. After assigning weight $\mathsf{w}(\mathbf{x}_i)$ to each $\mathbf{x}_i$ , we use weighted average of ROI features in each bag as the bag-level feature: $\bar{\mathbf{x}} = \sum_{\mathbf{x}_i \in \mathcal{B}} \mathsf{w}(\mathbf{x}_i) \cdot \mathbf{x}_i \in \mathcal{R}^d$ . Our classification module is based on bag-level features with the cross-entropy loss:
+
+$$
+\mathcal {L} _ {\mathrm {c l s}} = - \sum_ {\mathcal {B} \in \mathcal {S}} \mathbf {y} ^ {T} \log \left(f \left(\sum_ {\mathbf {x} _ {i} \in \mathcal {B}} \mathrm {w} \left(\mathbf {x} _ {i}\right) \cdot \mathbf {x} _ {i}\right)\right), \tag {1}
+$$
+
+in which $f(\cdot)$ is a softmax classification layer. At the initialization step, the weights of region proposals are all set as zero while the images are assigned with uniform weights in each bag. We use $\bar{w}(\mathbf{x}_i)$ to denote such initialized ROI weights. After initializing the CNN model, we tend to learn different weights for ROIs by virtue of the memory module. Next, we first introduce our memory module and then describe how to assign weights to ROIs based on our memory module.
+
+# 3.3. Self-Organizing Memory Module
+
+The basic function of our memory module is clustering bag-level features and each cluster center can be treated as a prototype [42, 7, 8, 6, 43]. Although traditional clustering methods like K-means can realize a similar function, the
+
+memory module is more flexible and powerful. Specifically, the memory module can be easily integrated with the classification module, leading to an end-to-end trainable system. Besides, the memory module can simultaneously store and update additional useful information, i.e., category-specific representative/discriminative scores of each cluster center.
+
+# 3.3.1 Memory Module Architecture:
+
+Our memory module consists of key slots and values slots. The key slots contain cluster centers, while the value slots contain their corresponding category-specific representative/discriminative scores.
+
+We use $\mathbf{K} \in \mathcal{R}^{d \times L}$ to denote key slots, in which $L$ is the number of key slots and the $l$ -th column $\mathbf{k}_l$ is the $l$ -th key slot representing the $l$ -th cluster center.
+
+To capture the relationship between clusters and categories, we design two value slots. We investigate two types of cluster-category relationships, i.e., how discriminative and how representative a learned cluster is to a category. Correspondingly, we have two types of value slots: the "discriminative" value slots (d-value slots) and the "representative" value slots (r-value slots). Each pair of d-value slot and r-value slot corresponds to one key slot. Formally, we use $\mathbf{D} \in \mathcal{R}^{C \times L}$ (resp., $\mathbf{R} \in \mathcal{R}^{C \times L}$ ) to denote d-value (resp., r-value) slots, where $d_{y,l}$ (resp., $r_{y,l}$ ) is the discriminative (resp., representative) score of $\mathbf{k}_l$ for the $y$ -th category.
+
+To better explain discriminative/representative score, we assume that $L$ clusters are obtained based on all training bags and $n_{y,l}$ is the number of training bags from the $y$ -th category in the $l$ -th cluster. Then, we can calculate $\tilde{d}_{y,l} = \frac{n_{y,l}}{\sum_{y=1}^{C} n_{y,l}}$ and $\tilde{r}_{y,l} = \frac{n_{y,l}}{\sum_{l=1}^{L} n_{y,l}}$ . Intuitively, $\tilde{d}_{y,l}$ means the percentage of the bags from the $y$ -th category among the bags in the $l$ -th cluster. The larger $\tilde{d}_{y,l}$ is, the more discriminative the $l$ -th cluster is to the $y$ -th category. So we expect $d_{y,l}$ in d-value slots $\mathbf{D}$ to approximate $\tilde{d}_{y,l}$ . Similarly, $\tilde{r}_{y,l}$ means the percentage of the bags in the $l$ -th cluster among the bags from the $y$ -th category. The larger $\tilde{r}_{y,l}$ is, the more representative the $l$ -th cluster is to the $y$ -th category. So we expect $r_{y,l}$ in r-value slots $\mathbf{R}$ to approximate $\tilde{r}_{y,l}$ .
+
+# 3.3.2 Memory Module Updating:
+
+With all key and value slots randomly initialized, they are updated based on the bag-level feature $\bar{\mathbf{x}}$ of training bag $\mathcal{B}$ from $c$ -th category and its one-hot label vector $\mathbf{y}$ .
+
+First, we seek for the cluster that $\bar{\mathbf{x}}$ belongs to, which is also referred to as the "winner key slot" of $\bar{\mathbf{x}}$ . Precisely, we calculate the cosine similarity between $\bar{\mathbf{x}}$ and all keys as $\cos (\bar{\mathbf{x}},\mathbf{k}_l) = \frac{\mathbf{k}_l^T\bar{\mathbf{x}}}{\|\mathbf{k}_l\|_2\|\bar{\mathbf{x}}\|_2}$ for $l = 1,2,\dots,L$ , and find the
+
+winner key slot $\mathbf{k}_z$ of $\bar{\mathbf{x}}$ where:
+
+$$
+z = \arg \max _ {l} \cos (\bar {\mathbf {x}}, \mathbf {k} _ {l}) \tag {2}
+$$
+
+After determining that $\bar{\mathbf{x}}$ belongs to the $z$ -th cluster, the cluster center $\mathbf{k}_z$ needs to be updated based on $\bar{\mathbf{x}}$ . Unlike the previous approach [58] which updates cluster centers with computed gradients, we employ a loss function which is more elegant and functionally similar:
+
+$$
+\mathcal {L} _ {\text {k e y}} = - \sum_ {\mathcal {B} \in \mathcal {S}} \cos (\bar {\mathbf {x}}, \mathbf {k} _ {z}), \tag {3}
+$$
+
+which can push the winner cluster center $\mathbf{k}_z$ closer to $\bar{\mathbf{x}}$ .
+
+With similar loss functions, we also update d-value slots and r-value slots accordingly. For d-value slots $\mathbf{D}$ , recall that we expect $d_{y,i}$ to approximate $\tilde{d}_{y,i}$ which means the percentage of the bags from the $y$ -th category among the bags in the $i$ -th cluster. Then, the $z$ -th column $\mathbf{d}_z$ of $\mathbf{D}$ could represent the category distribution in the $z$ -th cluster, so we need to update $\mathbf{d}_z$ with the label vector $\mathbf{y}$ of $\bar{\mathbf{x}}$ as follows,
+
+$$
+\mathcal {L} _ {\mathrm {d - v a l u e}} = - \sum_ {\mathcal {B} \in \mathcal {S}} \cos (\mathbf {y}, \mathbf {d} _ {z}), \tag {4}
+$$
+
+$$
+\text {s . t .} \| \mathbf {d} _ {z} \| _ {1} = 1, \mathbf {d} _ {z} \geq \mathbf {0}. \tag {5}
+$$
+
+$\mathcal{L}_{\mathrm{d - value}}$ can push $\mathbf{d}_z$ towards $\mathbf{y}$ while maintaining $\mathbf{d}_z$ as a valid distribution with (5), so $d_{y,z}$ will approximate $\tilde{d}_{y,z}$ eventually.
+
+For r-value slots $\mathbf{R}$ , recall that we expect $r_{y,i}$ to approximate $\tilde{r}_{y,i}$ which means the percentage of the bags in the $i$ -th cluster among the bags from the $y$ -th category. Then, $\mathbf{r}_y$ , the $y$ -th row of $\mathbf{R}$ , could represent the distribution of all bags from the $y$ -th category over all clusters, so we need to update $\mathbf{r}_y$ with the one-hot cluster indicator vector $\mathbf{z}$ of $\bar{\mathbf{x}}$ (only the $z$ -th element is 1) as follows,
+
+$$
+\mathcal {L} _ {\mathrm {r - v a l u e}} = - \sum_ {\mathcal {B} \in \mathcal {S}} \cos (\mathbf {z}, \mathbf {r} _ {y}), \tag {6}
+$$
+
+$$
+\text {s . t .} \| \mathbf {r} _ {y} \| _ {1} = 1, \mathbf {r} _ {y} \geq \mathbf {0}. \tag {7}
+$$
+
+Similar to $\mathbf{d}_z$ , $\mathcal{L}_{\mathrm{r - value}}$ can push $\mathbf{r}_y$ towards $\mathbf{z}$ while keeping it a valid distribution with (7), so $r_{y,z}$ will approximate $\tilde{r}_{y,z}$ eventually. The theoretical proof and more details for $\mathcal{L}_{\mathrm{d - value}}$ and $\mathcal{L}_{\mathrm{r - value}}$ can be found in Supplementary.
+
+# 3.3.3 Self-Organizing Map (SOM) Extension:
+
+A good clustering algorithm should be insensitive to initialization and produce balanced clustering results. Inspired by Self-Organizing Map [48], we design a neighborhood constraint on the key slots to achieve this goal, leading to our self-organizing memory module.
+
+In particular, we arrange the key slots on a square grid. When updating the winner key slot $\mathbf{k}_z$ , we also update its spatial neighbors. The neighborhood of $\mathbf{k}_z$ is defined as $\mathcal{N}(\mathbf{k}_z,\delta) = \{\mathbf{k}_i|\mathrm{geo}(\mathbf{k}_z,\mathbf{k}_i)\leq \delta \}$ , in which $\mathrm{geo}(\cdot ,\cdot)$ is the geodesic distance of two key slots on the square grid and $\delta$ is a hyper-parameter that controls the neighborhood size.
+
+Then, the key loss $\mathcal{L}_{\mathrm{key}}$ in (3) can be replaced by
+
+$$
+\mathcal {L} _ {\mathrm {S O M - k e y}} = - \sum_ {\mathcal {B} \in \mathcal {S}} \sum_ {\mathbf {k} _ {i} \in \mathcal {N} \left(\mathbf {k} _ {z}, \delta\right)} \eta \left(\mathbf {k} _ {z}, \mathbf {k} _ {i}\right) \cdot \cos (\bar {\mathbf {x}}, \mathbf {k} _ {i}), \tag {8}
+$$
+
+in which $\eta (\mathbf{k}_z,\mathbf{k}_i) = (1 + \mathrm{geo}(\mathbf{k}_z,\mathbf{k}_i))^{-1}$ is the weight assigned to $\mathbf{k}_i$ and negatively correlated with the geodesic distance (see more technical details in the Supplementary). In summary, the total loss of updating our self-organizing memory module can be written as:
+
+$$
+\mathcal {L} _ {\text {m e m o r y}} = \mathcal {L} _ {\text {S O M - k e y}} + \mathcal {L} _ {\text {d - v a l u e}} + \mathcal {L} _ {\text {r - v a l u e}}. \tag {9}
+$$
+
+# 3.4. ROI Selection Based on Memory Module
+
+Based on the memory module, we can assign different weights to different ROIs in each bag. Specifically, given a ROI $\mathbf{x}$ with its bag label $y$ , we first seek for its winner key slot $\mathbf{k}_z$ , and obtain the discriminative (resp., representative) score of $\mathbf{k}_z$ for the $y$ -th category, that is, $d_{y,z} \left( \text{resp. } r_{y,z} \right)$ . For a clean ROI, we expect its winner key to be both discriminative and representative for its category. For ease of description, we define $\mathbf{S} = \mathbf{D} \circ \mathbf{R}$ with $s_{y,z} = d_{y,z} \cdot r_{y,z}$ . We refer to $s_{y,z}$ as the prototypical score of $\mathbf{k}_z$ for the $y$ -th category. Therefore, ROIs with higher prototypical scores are more prone to be clean ROIs.
+
+Besides the prototypical score, we propose another discount factor by considering ROI areas. Intuitively, we conjecture that smaller ROIs are less likely to have meaningful content and thus should be penalized. Thus, we use area score (a-score) $\sigma(\cdot)$ to describe the relative size of each ROI. Recall that there are two types of ROIs in each bag: image and region proposal. For original images, we set $\sigma(\mathbf{x}) = 1$ . For region proposals, we calculate $\sigma(\mathbf{x})$ as the ratio between the area of region proposal $\mathbf{x}$ and the maximum area of all region proposals (excluding the full image) from the same image. To this end, we use a-score $\sigma(\mathbf{x})$ to discount $s_{y,z}$ , resulting in a new weight for $\mathbf{x}$ :
+
+$$
+w (x) = s _ {y, z} \cdot \sigma (x). \tag {10}
+$$
+
+After calculating the ROI weights based on (10), we only keep the top $p$ (e.g., $10\%$ ) weights of ROIs in each bag while the other weights are set to be zero. The ROI weights in each bag are then normalized so that they sum to one.
+
+# 3.5. Training Algorithm
+
+For better representation, we use $\theta_{\mathrm{cnn}}$ to denote the model parameters of CNN and $\theta_{\mathrm{mem}}$ to denote $\{\mathbf{K},\mathbf{D},\mathbf{R}\}$ in memory module.
+
+# Algorithm 1 : The Training Process of Our Network
+
+Require: Bags of ROIs $\mathcal{B}$ and bag label y. Initialize $p = 10\%$ . Initialize ROI weights as $\bar{\mathrm{w}} (\mathbf{x}_i)$ in Section 3.2.
+Ensure: Model parameters $\{\theta_{\mathrm{cnn}},\theta_{\mathrm{mem}}\}$
+1: Initialize $\theta_{\mathrm{conn}}$ based on (1) with $\bar{\mathbf{w}} (\mathbf{x}_i)$
+2: Initialize $\theta_{\mathrm{mem}}$ based on (9) with $\bar{\mathbf{w}} (\mathbf{x}_i)$
+3: Repeat:
+4: Update $\theta_{\mathrm{cnn}}$ and $\theta_{\mathrm{mem}}$ based on (11) while $\mathsf{w}(\mathbf{x}_i)$ are updated based on (10) accordingly.
+5: $p \gets p + 5\%$ .
+6: Break if $p > 40\%$ .
+7: End Repeat.
+
+At first, we utilize initial ROI weights $\bar{\mathbf{w}}(\mathbf{x}_i)$ mentioned in Section 3.2 to obtain weighted average of ROI-level features as bag-level features, which are used to train the CNN model $\theta_{\mathrm{cnn}}$ and the memory module $\theta_{\mathrm{mem}}$ . Then, we train the whole system in an end-to-end manner. Specifically, we train the CNN model $\theta_{\mathrm{cnn}}$ and the memory module $\theta_{\mathrm{mem}}$ with the bag-level features $\bar{\mathbf{x}} = \sum_{\mathbf{x}_i \in \mathcal{B}} \mathbf{w}(\mathbf{x}_i) \cdot \mathbf{x}_i$ , while the weights of ROIs $\mathbf{w}(\mathbf{x}_i)$ are updated accordingly based on updated $\theta_{\mathrm{cnn}}$ and $\theta_{\mathrm{mem}}$ . In this way, cleaner bag-level features can help learn better key slots and value slots in the memory module, while the enhanced memory module can assign more reliable ROI weights and contribute to cleaner bag-level features in turn. The total loss of the whole system can be written as:
+
+$$
+\mathcal {L} _ {\text {a l l}} = \mathcal {L} _ {\text {c l s}} + \mathcal {L} _ {\text {m e m o r y}}. \tag {11}
+$$
+
+For better performance, we leverage the idea of curriculum learning [56]. It suggests that when training a model, we should start with clean or simple training samples to have a good initialization, and then add noisy or difficulty training samples gradually to improve the generalization ability of the model. After calculating the ROI weights, the top-score ROIs in each bag should be cleaner than the low-score ones. So $p$ is used as a threshold parameter to filter out the noisy ROIs in each bag. Following the idea of curriculum learning, $p$ is set to be relatively small at first so that the selected ROIs are very discriminative and representative. Then we increase $p$ gradually to enhance the generalization ability of the trained model. The total training process can be seen in Algorithm 1.
+
+For evaluation, we directly use the well-trained CNN model to classify test images based on image-level features without extracting region proposals. The memory module is only used to denoise web data in the training stage, but not used in the testing stage.
+
+
+Figure 3. Visualization of our memory module on Clothing1m dataset. We exhibit three key slots with "suit" as the category of interest, with each row standing for one key slot. The left pie chart shows the category distribution in each key slot, and the right images are representative ROIs belonging to each key slot. The d-score and r-score for "suit" category of each key slot are also reported.
+
+# 4. Experiments
+
+In this section, we introduce the experimental settings and demonstrate the performance of our proposed method.
+
+# 4.1. Datasets
+
+Clothing1M: Clothing1M [54] is a large-scale fashion dataset designed for webly supervised learning. It contains about one million clothing images crawled from the Internet, and the images are categorized into 14 categories. Most images are associated with noisy labels extracted from their surrounding texts and used as the training set. A few images with human-annotated clean labels are used as the clean dataset for evaluation.
+
+Food-101 & Food-101N: Food-101 dataset [1] is a large food image dataset collected from foodspotting.com. It has 101 categories and 1k images for each category with human-annotated labels. Food-101N is a web dataset provided by [24]. It has 310k images crawled with the same taxonomy in Food101 from several websites (excluding foodspotting.com). In our experiments, we use Food-101N for training and Food-101 for evaluation.
+
+Webvision & ILSVRC: The WebVision dataset [26] is composed of training, validation, and test set. The training set is crawled from Flickr and Google by using the same 1000 semantic concepts as in the ILSVRC-2012 [9] dataset. It has 2.4 million images with noisy labels. The validation and test set are manually annotated. In our experiments, we only use the WebVision training set for training but perform the evaluation on both WebVision validation set (50k) and ILSVRC-2012 validation set (50k).
+
+# 4.2. Implementation Details
+
+We adopt ResNet50 [15] as the CNN model and use the output of its last convolutional layer as the feature map to extract ROI features. For Clothing1M and Food101N, we use ResNet50 pretrained on ImageNet following previous works [24, 13]. For WebVision and ImageNet, ResNet50 is trained from scratch with the web training images in WebVision.
+
+For the proposal extractor (i.e., Edge Boxes), there are two important parameters MaxBoxes and MinBoxArea, in which MaxBoxes controls the maximal number of returned region proposals and MinBoxArea determines the minimal area. In our experiments, we use MaxBoxes = 20 (i.e., $n_p = 20$ ) and MinBoxArea = 5000. By default, we use two images in each training bag (i.e., $n_g = 2$ ), so the number of ROIs in each bag is $n_b = n_g(n_p + 1) = 2 \times (20 + 1) = 42$ .
+
+# 4.3. Qualitative Analyses
+
+In this section, we provide in-depth qualitative analyses to elaborate on how our method works. We first explore the memory module and then explore training bags.
+
+Memory Module: By taking Clothing1M dataset as an example and "suit" as category of interest, we choose three key slots for illustration in Figure 3, in which each row stands for one key slot with its corresponding d-score and r-score. To visualize each key slot, we select five ROIs with highest cosine similarity to this key slot, i.e., $\cos (\mathbf{x}_i,\mathbf{k}_l)$ .
+
+The first key slot almost clusters an equal number of bags from both "Suit" and "Windbreaker" as the pie chart shows, so it has the lowest d-score. In the meantime, its total number of bags from "Suit" is smaller than those of the other
+
+
+Figure 4. Column-1: A training bag for "Suit" with $n_g = 3$ . Column-2: Top $30\%$ ROIs selected by our network. The bottom image together with all its region proposals are removed. Column-3&4: The heat map obtained by summing over ROI weights and the histogram of the heat map pixels.
+
+two slots, so its r-score is also the lowest. Hence, such a key slot is neither discriminative nor representative to "Suit".
+
+The other two key slots are very discriminative for the category "Suit" and have a very high d-score. However, the third key slot is more representative for "Suit" than the second one, resulting in a higher r-score. The explanation is that the total number of bags with colorful suits (second key slot) is smaller than those with black/grey suits (third key slot), so we claim that the third key slot is more representative to "Suit". Combining the r-score and d-score, we would claim that the third key slot is the most prototypical to "Suit" (see the visualization of all $L = 144$ key slots in Supplementary).
+
+Training Bags: Based on the memory module, different ROIs within each bag are assigned with different weights, according to their areas and prototypical scores of their nearest key slots. In Figure 4, we show a training bag with three images (i.e., $n_g = 3$ ). By comparing the first and the second column, we can observe that the noisy images and noisy region proposals have been removed based on the learned ROI weights. By summing over the ROI weights, we can obtain the attention heat map with brighter colors indicating higher weights. The heat maps and their corresponding histograms are shown in the third and fourth columns, respectively. It can be seen that the background region has lower weights than the main objects. Therefore, the results in Figure 4 demonstrate the ability of our network to address the label noise and background noise.
+
+# 4.4. Ablation Study
+
+We first compare the results of our method with different $n_g$ and $L$ in Table 1, by taking the Clothing1M dataset as an example.
+
+The bag size: As Table 1 shows, our method with $n_g = 2$
+
+| Parameter ng | 1 | 2 | 3 | 4 | 5 |
| Accuracy | 72.9 | 82.1 | 81.1 | 78.5 | 75.9 |
| Parameter L | 42 | 82 | 122 | 162 | 202 |
| Accuracy | 78.7 | 81.7 | 82.1 | 81.9 | 81.6 |
+
+Table 1. Accuracies $(\%)$ of our method with different $n_g$ and $L$ on the Clothing1M. The best result is denoted in boldface.
+
+achieves the best performance, so we use it as the default parameter in the rest experiments. Furthermore, it can be seen that the performance with $n_g = 1$ is worse than those with $n_g > 1$ , because our method with only one image in a bag will be unable to reduce the label noise when it is a noisy image.
+
+The number of key slots: As in Table 1, the performance of our method is quite robust when the number of key slots is big enough ( $L \geq 8 \times 8$ ), while a too-small number ( $L = 4 \times 4$ ) will lead to a performance drop. Notice that the best performance is achieved with $L = 12 \times 12$ while the Clothing1M dataset has 14 categories, it suggests that when each category can occupy about $12 \times 12 \div 14 \approx 10$ clustering centers in the memory module, our method will generally achieve satisfactory performance. Following this observation, we have $L = 12 \times 12$ for Clothing1M, $L = 32 \times 32$ for Food101, and $L = 100 \times 100$ for WebVision and ImageNet in the rest experiments.
+
+Secondly, we study the contribution of each component in our method in Table 2. ResNet50 and ResNet50+ROI are two naive baselines, and SOMNet denotes our method. ResNet50+ROI uses both images and region proposals as input, but it only achieves slight improvement over ResNet50, which shows that simply using proposals as data augmentation is not very effective.
+
+Three types of scores: Recall that we use three types of scores to weight ROIs: r-score, d-score, and a-score. To investigate their benefit, we report the performance of our method by ablating each type of score, denoted by SOMNet(w/o d-score), SOMNet(w/o r-score), and SOMNet(w/o a-score) in Table 2. We observe that the performance will decrease with the absence of each type of score, which indicates the effectiveness of our designed scores.
+
+Curriculum learning: Notice we utilize the idea of curriculum learning by gradually increasing $p$ from $10\%$ to $40\%$ during training. In Table 2, SOMNet ( $p = 40\%$ ) denotes the result of directly using $p = 40\%$ from the start of training, which has a performance drop of $0.8\%$ . It proves the effectiveness of using curriculum learning.
+
+Background noise removal: We claimed that web data have both label noise and background noise. To study the influence of background noise, we only handle label noise by not using region proposals, and the result is denoted by SOMNet (w/o ROI) in Table 2. To make a fair comparison, we find out that $n_g = 5$ and $p = 60\%$ are the opti
+
+| ResNet50 | ResNet50+ROI | SOMNet (w/o d-score) | SOMNet (w/o r-score) | SOMNet (w/o a-score) |
| 68.6 | 69.1 | 76.8 | 73.5 | 74.8 |
| SOMNet (p=40%) | SOMNet (w/o ROI) | SOMNet+K-means | SOMNet (w/o SOM) | SOMNet |
| 81.3 | 74.1 | 79.5 | 78.2 | 82.1 |
+
+Table 2. Accuracies (%) of our method and special cases on the Clothing1M. The best result is denoted in boldface.
+
+| Training set | Clothing1M | Food101N | WebVision |
| Test set | Clothing1M | Food101 | WebVision | ImageNet |
| Evaluation metric | Top-1 | Top-1 | Top-1 | Top-5 | Top-1 | Top-5 |
| ResNet50 | 68.6 | 77.4 | 66.4 | 83.4 | 57.7 | 78.4 |
| 2014 Sukhbaatar et al. [44] | 71.9 | 80.8 | 67.1 | 84.2 | 58.4 | 79.5 |
| 2015 DRAE [53] | 73.0 | 81.1 | 67.5 | 85.1 | 58.6 | 79.4 |
| 2017 Zhuang et al. [60] | 74.3 | 82.5 | 68.7 | 85.4 | 60.4 | 80.3 |
| 2018 AD-MIL [17] | 71.1 | 79.2 | 66.9 | 84.0 | 58.0 | 78.9 |
| 2018 Tanaka et al. [47] | 72.2* | 81.5 | 67.4 | 84.7 | 59.5 | 80.0 |
| 2018 CurriculumNet [13] | 79.8 | 84.5 | 70.7 | 88.6 | 62.7 | 83.4 |
| 2019 SL [52] | 71.0* | 80.9 | 66.2 | 82.3 | 58.7 | 78.8 |
| 2019 MLNT [25] | 73.5* | 82.5 | 68.3 | 85.0 | 60.2 | 80.1 |
| 2019 PENCIL [57] | 73.5* | 83.1 | 68.9 | 85.7 | 60.8 | 81.1 |
| SOMNet | 82.1 | 87.5 | 72.2 | 89.5 | 65.0 | 85.1 |
+
+Table 3. The accuracies $(\%)$ of different methods on Clothing1M, Food101, Webvision, and ImageNet datasets. The results directly copied from corresponding papers are marked with $"\ast "$ . The best results are denoted in boldface.
+
+mal parameters in this setting. However, the best result is only $74.1\%$ , which is much worse than using region proposals. This result demonstrates the necessity of handling background noise.
+
+The self-organizing memory module: Since traditional clustering methods like K-means can realize a similar function to the memory module, we replace our self-organizing memory module with the K-means method and refer to this baseline as SOMNet+K-means (see implementation details in Supplementary). The performance drop in this setting proves the effectiveness of joint optimization in an end-to-end manner with our memory module. Moreover, to demonstrate the effectiveness of using SOM as an extension, we set neighborhood size as 1, which is equivalent to removing SOM. The comparison between SOMNet (w/o SOM) and SOMNet indicates that it is beneficial to use SOM in our memory module.
+
+# 4.5. Comparison with the State-of-the-Art
+
+We compare our method with the state-of-the-art webby or weakly supervised learning methods in Table 3 on four benchmark datasets: Clothing1M, Food101, WebVision, and ImageNet. The baseline methods include Sukhbaatar et al. [44], DRAE [53], Zhuang et al. [60], AD-MIL [17], Tanaka et al. [47], CurriculumNet [13], SL [52], MLNT [25], and PENCIL [57]. Some methods did not report their results on the above four datasets. Even with evaluation on the above datasets, different methods conduct experiments
+
+in different settings (e.g., backbone network, training set), so we re-run their released code in the same setting as our method for fair comparison. For those methods which already report results in exactly the same setting as ours, we directly copy their reported results (marked with “*”).
+
+From Table 3, we can observe that our method achieves significant improvement over the backbone ResNet50. The average relative improvement (Top-1) on all four datasets is $9.18\%$ . It also outperforms all the baselines, demonstrating the effectiveness of our method for handling label noise and background noise using the memory module.
+
+# 5. Conclusion
+
+In this paper, we have proposed a novel method, which can address the label noise and background noise of web data at the same time. Specifically, we have designed a novel memory module to remove noisy images and noisy region proposals under the multi-instance learning framework. Comprehensive experiments on four benchmark datasets have verified the effectiveness of our method.
+
+# Acknowledgement
+
+The work is supported by the National Key R&D Program of China (2018AAA0100704) and is partially sponsored by National Natural Science Foundation of China (Grant No.61902247) and Shanghai Sailing Program (19YF1424400).
+
+# References
+
+[1] Lukas Bossard, Matthieu Guillaumin, and Luc J. Van Gool. Food-101 - mining discriminative components with random forests. In ECCV, 2014. 6
+[2] Razvan C. Bunescu and Raymond J. Mooney. Multiple instance learning for sparse positive bags. In ICML, 2007. 2
+[3] Xinlei Chen and Abhinav Gupta. Webly supervised learning of convolutional networks. In ICCV, 2015. 2
+[4] Xinlei Chen, Abhinav Shrivastava, and Abhinav Gupta. Neil: Extracting visual knowledge from web data. In ICCV, 2013. 2
+[5] Xinlei Chen, Abhinav Shrivastava, and Abhinav Gupta. Enriching visual knowledge bases via object discovery and segmentation. In CVPR, 2014. 2
+[6] Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Semi-supervised deep learning with memory. In ECCV, 2018. 2, 3
+[7] Dengxin Dai and Luc Van Gool. Ensemble projection for semi-supervised image classification. In ICCV, 2013. 2, 3
+[8] Dengxin Dai and Luc Van Gool. Unsupervised high-level feature learning by ensemble projection for semi-supervised image classification and image clustering. arXiv preprint arXiv:1602.00955, 2016. 2, 3
+[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. 6
+[10] Santosh K Divvala, Ali Farhadi, and Carlos Guestrin. Learning everything about anything: Webly-supervised visual concept learning. In CVPR, 2014. 2
+[11] Ji Feng and Zhi-Hua Zhou. Deep MIML network. In AAAI, 2017. 2
+[12] Benoit Frénay and Michel Verleysen. Classification in the presence of label noise: A survey. IEEE Trans. Neural Netw. Learning Syst., 25(5):845-869, 2014. 2
+[13] Sheng Guo, Weilin Huang, Haozhi Zhang, Chenfan Zhuang, Dengke Dong, Matthew R. Scott, and Dinglong Huang. Curriculumnet: Weakly supervised learning from large-scale web images. In ECCV, 2018. 1, 2, 6, 8
+[14] Jiangfan Han, Ping Luo, and Xiaogang Wang. Deep self-learning from noisy labels. In ICCV, pages 5138-5147, 2019. 2
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
+[16] Jinchi Huang, Lie Qu, Rongfei Jia, and Binqiang Zhao. O2unet: A simple noisy label detection approach for deep neural networks. In ICCV, pages 3326-3334, 2019. 1
+[17] Maximilian Ilse, Jakub Tomczak, and Max Welling. Attention-based deep multiple instance learning. In ICML, pages 2132-2141, 2018. 2, 8
+[18] Weston Jason, Sumit Chopra, and Antoine Bordes. Memory networks. CoRR, abs/1410.3916, 2014. 2
+[19] Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Regularizing very deep neural networks on corrupted labels. CoRR, abs/1712.05055, 2017. 1, 2
+
+[20] Lukasz Kaiser, Ofir Nachum, Aurko Roy, and Samy Bengio. Learning to remember rare events. CoRR, abs/1703.03129, 2017. 2
+[21] Youngdong Kim, Junho Yim, Juseung Yun, and Junmo Kim. Nlnl: Negative learning for noisy labels. In ICCV, pages 101-110, 2019. 2
+[22] Oren Z. Kraus, Lei Jimmy Ba, and Brendan J. Frey. Classifying and segmenting microscopy images with deep multiple instance learning. Bioinformatics, 32(12):52-59, 2016. 2
+[23] Jonathan Krause, Benjamin Sapp, Andrew Howard, Howard Zhou, Alexander Toshev, Tom Duerig, James Philbin, and Li Fei-Fei. The unreasonable effectiveness of noisy data for fine-grained recognition. In ECCV, 2016. 1, 2
+[24] Kuang-Huei Lee, Xiaodong He, Lei Zhang, and Linjun Yang. Cleannet: Transfer learning for scalable image classifier training with label noise. In CVPR, 2017. 1, 2, 6
+[25] Junnan Li, Yongkang Wong, Qi Zhao, and Mohan S. Kankanhalli. Learning to learn from noisy labeled data. In CVPR, June 2019. 8
+[26] Wen Li, Limin Wang, Wei Li, Eirikur Agustsson, and Luc Van Gool. Webvision database: Visual learning and understanding from web data. CoRR, abs/1708.02862, 2017. 6
+[27] Yu-Feng Li, James T. Kwok, Ivor W. Tsang, and Zhi-Hua Zhou. A convex method for locating regions of interest with multi-instance learning. In ECML-PKDD, 2009. 2
+[28] Tongliang Liu and Dacheng Tao. Classification with noisy labels by importance reweighting. IEEE Trans. Pattern Anal. Mach. Intell., 38(3):447-461, 2016. 1, 2
+[29] Alexander H. Miller, Adam Fisch, Jesse Dodge, Amir-Hossein Karimi, Antoine Bordes, and Jason Weston. Key-value memory networks for directly reading documents. In EMNLP, 2016. 2
+[30] Ishan Misra, C Lawrence Zitnick, Margaret Mitchell, and Ross Girshick. Seeing through the human reporting bias: Visual classifiers from noisy human-centric labels. In CVPR, 2016. 2
+[31] Li Niu, Wen Li, and Dong Xu. Visual recognition by learning from web data: A weakly supervised domain generalization approach. In CVPR, 2015. 1
+[32] Li Niu, Wen Li, and Dong Xu. Exploiting privileged information from web data for action and event recognition. International Journal of Computer Vision, 118(2):130-150, 2016. 1
+[33] Li Niu, Qingtao Tang, Ashok Veeraraghavan, and Ashutosh Sabharwal. Learning from noisy web data with category-level supervision. In CVPR, 2018. 1, 2
+[34] Li Niu, Ashok Veeraraghavan, and Ashutosh Sabharwal. Webbly supervised learning meets zero-shot learning: A hybrid approach for fine-grained classification. In CVPR. 1
+[35] Nikolaos Pappas and Andrei Popescu-Belis. Explaining the stars: Weighted multiple-instance learning for aspect-based sentiment analysis. In EMNLP, 2014. 2
+[36] Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017. 1, 2
+
+[37] Pedro H. O. Pinheiro and Ronan Collobert. From image-level to pixel-level labeling with convolutional networks. In CVPR, 2015. 2
+[38] Scott E. Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. CoRR, abs/1412.6596, 2014. 2
+[39] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. In ICML, 2018. 2
+[40] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NIPS, 2015. 3
+[41] Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy P. Lillicrap. Meta-learning with memory-augmented neural networks. In ICML, 2016. 2
+[42] Saurabh Singh, Abhinav Gupta, and Alexei A Efros. Unsupervised discovery of mid-level discriminative patches. In ECCV. Springer, 2012. 2, 3
+[43] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In NIPS, 2017. 2, 3
+[44] S Sukhbaatar, J Bruna, and M Paluri. Training convolutional networks with noisy labels. CoRR, abs/1406.2080, 2014. 2, 8
+[45] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In NIPS, 2015. 2
+[46] Xiaoxiao Sun, Liang Zheng, Yu-Kun Lai, and Jufeng Yang. Learning from web data: the benefit of unsupervised object localization. CoRR, abs/1812.09232, 2018. 1, 2
+[47] Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, pages 5552-5560, 2018. 2, 8
+[48] Kohonen Teuvo. The self-organizing map. Proceedings of the IEEE, 1464-1480, 1990. 2, 4
+[49] Arash Vahdat. Toward robustness against label noise in training deep discriminative neural networks. In NIPS, pages 5596-5605, 2017. 2
+[50] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017. 2
+[51] Fang Wan, Chang Liu, Wei Ke, Xiangyang Ji, Jianbin Jiao, and Qixiang Ye. C-mil: Continuation multiple instance learning for weakly supervised object detection. In CVPR, 2019. 2
+[52] Yisen Wang, Xingjun Ma, Zaiyi Chen, Yuan Luo, Jinfeng Yi, and James Bailey. Symmetric cross entropy for robust learning with noisy labels. In ICCV, pages 322-330, 2019. 1, 8
+[53] Yan Xia, Xudong Cao, Fang Wen, Gang Hua, and Jian Sun. Learning discriminative reconstructions for unsupervised outlier removal. In ICCV, 2015. 1, 2, 8
+[54] Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In CVPR, 2015. 6
+[55] Zhongwen Xu, Linchao Zhu, and Yi Yang. Few-shot object recognition from machine-labeled web images. In CVPR, 2017. 2
+
+[56] Bengio Y, Louradour J, and Collobert R. Curriculum learning. ACM, 2009. 5
+[57] Kun Yi and Jianxin Wu. Probabilistic end-to-end noise correction for learning with noisy labels. In CVPR, 2019. 8
+[58] Linchao Zhu and Yi Yang. Compound memory networks for few-shot video classification. In ECCV, 2018. 2, 4
+[59] Wentao Zhu, Qi Lou, Yeeleng Scott Vang, and Xiaohui Xie. Deep multi-instance networks with sparse label assignment for whole mammogram classification. In MICCAI, 2017. 2
+[60] Bohan Zhuang, Lingqiao Liu, Yao Li, Chunhua Shen, and Ian D. Reid. Attend in groups: A weakly-supervised deep learning framework for learning from web data. In CVPR, 2017. 1, 2, 8
+[61] C. Lawrence Zitnick and Piotr Dólár. Edge boxes: Locating object proposals from edges. In ECCV, 2014. 1, 3
\ No newline at end of file
diff --git a/learningfromwebdatawithselforganizingmemorymodule/images.zip b/learningfromwebdatawithselforganizingmemorymodule/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..182e6dd5c4f9b4b2c0c396f29baa759541cafa6d
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7b79d3a995b055e80bb3dfe057ac1f3e6699569bffe3e4a9385485c80ceb0c6
+size 430501
diff --git a/learningfromwebdatawithselforganizingmemorymodule/layout.json b/learningfromwebdatawithselforganizingmemorymodule/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4225da732e3d248048985fbaad9e822567e060b9
--- /dev/null
+++ b/learningfromwebdatawithselforganizingmemorymodule/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0bb6ceac5d11458eae677690bec5d9fd37925a5f08ccaa1b4a48f9d60d2c6766
+size 517493
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_content_list.json b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..04ee14363506e5c3b124745507abe92f28272678
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9a522cb83118316ba64782274e511007c16d4b918d336d4904b5362ced103bb7
+size 76933
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_model.json b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8aba6dcfa3ceee41e32cba4d97b40988bc836971
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9c7debc6e93ee6fd411db9ee2cf0bf3ec998399dadacfaa27333d1febacbbee
+size 90965
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_origin.pdf b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5eb60e4a60e023cfab7fdc33a3c28f5628ea1b01
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/efc6a3d9-da37-4b0f-8e33-6dd0c37f3219_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eedc0dbd1cdbbed6b0c5120ae5f8a33023d920257d3405d3fa3a13dfa6017ca8
+size 9911372
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/full.md b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..aef85f1f2a7c752c1f411f49f4fb16ac7ffe0ad6
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/full.md
@@ -0,0 +1,336 @@
+# Learning Fused Pixel and Feature-based View Reconstructions for Light Fields
+
+Jinglei Shi* Xiaoran Jiang* Christine Guillemot INRIA Rennes - Bretagne Atlantique, France
+
+{firstname.lastname}@inria.fr
+
+# Abstract
+
+In this paper, we present a learning-based framework for light field view synthesis from a subset of input views. Building upon a light-weight optical flow estimation network to obtain depth maps, our method employs two reconstruction modules in pixel and feature domains respectively. For the pixel-wise reconstruction, occlusions are explicitly handled by a disparity-dependent interpolation filter, whereas inpainting on disoccluded areas is learned by convolutional layers. Due to disparity inconsistencies, the pixel-based reconstruction may lead to blurriness in highly textured areas as well as on object contours. On the contrary, the feature-based reconstruction well performs on high frequencies, making the reconstruction in the two domains complementary. End-to-end learning is finally performed including a fusion module merging pixel and feature-based reconstructions. Experimental results show that our method achieves state-of-the-art performance on both synthetic and real-world datasets, moreover, it is even able to extend light fields' baseline by extrapolating high quality views without additional training.
+
+# 1. Introduction
+
+Light field imaging has recently attracted a lot of attention due to the emergence of commercial cameras and the numerous applications, going from computational photography to realistic rendering in augmented and virtual reality applications, and light field microscopy. Acquisition devices have been designed either based on camera arrays [1], on moving gantries[2], or on micro-lens arrays used in plenoptic cameras. Single hand-held 2D camera (e.g. cell phones) paired with pose estimation techniques [3] can enable the capture of light fields with high spatial resolution but limited angular resolution (or large baselines).
+
+The problems of enhancing the light field angular resolution can be tackled from different perspectives, i.e. as a problem of light field reconstruction from a subset of
+
+
+
+
+(a) Pixel-based reconstruction
+(c) Fused view
+Figure 1. Visualization of the outputs (both in pixel domain and frequency domain) at different stages of our framework.
+
+
+
+
+(b) Feature-based reconstruction
+(d) Reference view
+
+views using signal priors (e.g. sparsity in the continuous 4D Fourier domain [4]), of angular super-resolution [5, 6] or of view synthesis. While Image Based Rendering (IBR) techniques have been predominant over the past years in the field of view synthesis (see e.g. [7, 8]), this field has significantly evolved thanks to the emergence of learning-based approaches.
+
+Kalantari et al. [9] have been among the first proposing a learning-based solution for view synthesis, by sequentially connecting two convolutional neural networks (CNNs) dedicated respectively to depth estimation and color fusion. However, due to imprecision of depth estimation, the method tends to synthesize views with blurriness, tearing and ghosting effects. In addition, it fails in occluded regions for sparse light fields (with large baselines). Inspired by the Multi-Plane Image (MPI) representation[10], Mildenhall et al. [3] construct a framework that renders novel views from irregularly sampled views. They apply a 3D CNN to learn a MPI representation for each input view from plane sweep volumes (PSVs). The MPIs are then warped and merged to synthesize the target view. The approach generates blurry results in the case of depth uncertainty, and the use of PSV is computationally expensive.
+
+Wu et al. [11] instead reconstruct light fields by fusing a set of sheared epipolar plane images (EPIs) scored by a CNN. Boundary artifacts appear when the target views are far from the source views.
+
+In this paper, we propose a novel learning-based framework to synthesize light field views from a sparse set of input views. We design an end-to-end learning framework combining two reconstruction strategies, one in the pixel domain and the other in the feature space. A CNN is first used to estimate disparity from the input views. Using the estimated disparity, we project the input color views and their features to the target view position. The features are extracted using the lower layers of the VGG19 classification network[12]. For the pixel-wise reconstruction, occlusions are explicitly handled by a disparity-dependent interpolation filter, and the target view is predicted based on warped views using convolutional layers. For the feature-based reconstruction, multi-scale features at the target viewpoint are successively reconstructed based on warped features from the input views, and the reconstructed view is inferred from the feature maps of the finest scale. Finally, a soft mask is learned to merge the results of the pixel-wise and feature-based reconstructions. The entire framework is trained in an end-to-end fashion. Fig. 1 shows the reconstruction results at different stages of the network.
+
+Experimental results with both synthetic and real-world light fields, with a large range of disparities between input views, demonstrate that our proposed framework significantly outperforms the state-of-the-art methods. Our approach gives excellent reconstruction quality on fine textures and object boundaries, despite the fact that intermediate disparity outputs may not be accurate and consistent across input views. Furthermore, we show that our network can also achieve competitive performances for light field view extrapolation without additional training.
+
+# 2. Related work
+
+View synthesis has been a very active field of research for many years. The methods have evolved from techniques making an explicit use of geometry, such as depth image based rendering (DIBR) techniques [13, 14], towards solutions based on plane sweep volumes (PSV) and not requiring explicit depth information [10]. End-to-end learning methods have also been considered using depth learned in an unsupervised manner and specifically for the view synthesis task [9]. More recently, deep neural networks have been proposed for learning Multi-Plane Images (MPI) representations, first for stereo views [10]. The MPIs can be interpolated for generating novel views by exploiting notions of visibility or transparency with alpha blending maps [10, 15]. This method has been extended to unstructured light fields in [3] leading to state-of-the-art view synthesis results. In parallel, light field reconstruction methods ex
+
+ploiting signal priors, e.g. sparsity priors in the 4D Fourier domain [4, 16], sparsity in the shearlet transform domain [6], smoothness on Epipolar Plane Images (EPI) [5] have also been proposed for view synthesis. In this section, we focus on methods that are recent and the most closely related to the proposed one, i.e. learning-based solutions as well as those using the concepts of PSV and MPI that are used as benchmarks in the experimental section.
+
+# 2.1. Depth image based rendering w/wo learning
+
+Traditional image based rendering techniques proceed in two steps. They first estimate the geometry (the depth) and then warp the source views into the target positions. This is the case for example of [14]. However, the quality of the results very much depends on the accuracy of the depth maps, and estimating accurate depth maps remains a challenging problem especially in presence of transparency, or gloss.
+
+Layered representations decomposing the reflective parts of a scene into a transmitted and a reflected layer have been proposed in [17] to cope with the above difficulty. The layers rendered with their own geometry are then blended using some opaque mixing. This idea has been further developed with the concept of PSV constructed by warping a given image into a target viewpoint using different depth levels. The PSV, which can be seen as sampling the scene in the depth direction, leading to depth planes, is now often used as the input of view synthesis algorithms. This is the case in [8], where the source images are blended per sampled depth with weights based on consensus and visibility scores computed for each pixel and depth plane.
+
+Kalantari et al. [9] adapt the conventional DIBR approach into an end-to-end learning framework. The authors propose an architecture based on two CNNs, the first estimates depth in each target viewpoint from the input views, while the second predicts the color. The second CNN, thanks to end-to-end learning, can correct warping errors resulting from depth inaccuracies. They train the network by minimizing the error between the synthesized and the ground truth views. In the same vein, Srinivasan et al. [18] propose to synthesize a light field from one single view, using a 2-stage learning process, estimating geometry first, and then estimating occluded rays. The two methods above are however limited to light fields with small baselines.
+
+# 2.2. View synthesis with learned EPI interpolation
+
+While the above methods are applied on light field views, there also exist methods operating on EPIs, in particular for angular interpolation or super-resolution [4, 5, 6, 11, 16, 19, 20]. Focusing on learning-based solutions, Wu et al. [19] model the light field reconstruction as a learning-based detail restoration in the EPIs. They first apply a bi-cubic angular interpolation on input EPIs from which spatial high frequencies have been removed and use a CNN to restore
+
+details in the angular domain of the interpolated EPIs. The spatial details are then recovered by a non-blind deblur operation. This "blur-restoration-deblur" framework does not require depth estimation. Wang et al. [20] instead apply 3D convolutions on EPI-volumes (stacked EPIs along rows or columns of the light field) to restore high-frequency details, which allows better using the correlation within the light field data. Wu et al. [11] train a CNN to evaluate sheared EPIs, and output a reference score which is then used for fusing the sheared EPIs. However, the methods relying on EPI structures work well only if the baseline is small.
+
+# 2.3. View synthesis with learned representations
+
+Using PSVs constructed from warped input views, Flynn et al. [15] train two parallel CNNs, one for predicting the color in each depth plane and the second one to predict the probability that a pixel belongs to a particular depth plane. The novel view is synthesized by element-wise multiplication of the outputs of both CNNs and then by summing up over the depth planes. Zhou et al. [10] train a deep network to predict a MPI representation from a narrow-baseline stereo image pair. Mildenhall et al. [3] extend this idea to larger-baseline view interpolation from unstructured light fields. As MPIs contain 3D information of the scene, it can be used for view extrapolation as well. This learned MPI-based solution gives state-of-the-art results in view synthesis, in particular in the difficult case of large baselines and unstructured light fields. The MPI representation has similarity with LDI representation in [21], where the authors also propose a differentiable interpolation technique based on disparity values. Choi et al. [22] propose a view extrapolation method with large baselines using learned depth probability volumes together with an image refinement network. Meng et al. [23] develop a learning framework based on a two-stage restoration with a 4-dimensional convolutional rsidual network for light field spatio-angular superresolution. Yeung et al. [24] follow a two-step approach based on view synthesis network that first generates the whole set of novel views, and a view refinement network that retrieves spatial texture details.
+
+While, in the same vein as [9], the proposed method includes learning depth information for view synthesis, it significantly differs from [9] first by exploiting information of warped features in addition to warped views, and second by the methods used for disparity estimation and warping, which limit the method in [9] to light fields with small baselines. Unlike methods extracting structures from EPI for view interpolation, the proposed method exploits features extracted from views using the VGG19-Net [12]. We show that the warped features bring complementary information to warped views to better deal with fine textures and with occluded regions.
+
+# 3. Methodology
+
+# 3.1. Overview
+
+Let us denote a light field by a 4-dimensional function $L(x,y,u,v)$ , where $(x,y) \in [[1;X]] \times [[1;Y]]$ and $(u,v) \in [[1;U]] \times [[1;V]]$ are respectively spatial and angular coordinates. The sub-aperture image $L(x,y,u_i,v_i)$ at the angular position $\mathbf{i} = (u_i,v_i)$ is referred to as $L_{\mathbf{i}}$ .
+
+We aim at reconstructing the novel view at the target position $\mathbf{t}$ from a set of input views $\mathcal{I} = \{L_{\mathrm{i_1}},\dots,L_{\mathrm{i_N}}\}$ . In this work, the set $\mathcal{I}$ contains sparsely sampled $2\times 2$ views. For convenience, these views are also denoted by $L_{tl}$ (top left), $L_{tr}$ (top right), $L_{bl}$ (bottom left) and $L_{br}$ (bottom right).
+
+Fig. 2 shows our learning-based framework. First, a lightweight disparity estimator module (in blue) estimates one disparity map for each input view. Two parallel reconstruction schemes are then applied. The target view is synthesized either by PixRNet (Pixel-wise Reconstruction Network) or FeatRNet (Feature-based Reconstruction Network). For the pixel-wise scheme, given the disparity estimates, the input views are first projected to the target position by applying forward warping. PixRNet takes as input the projected views as well as their occlusion masks to synthesize the novel view. PixRNet provides accurate pixel values in lowly textured areas. However, due to inconsistencies between disparity values estimated for the different input views, a simple fusion in the pixel space of the projected views may lead to blurriness in highly textured areas as well as on object contours. FeatRNet is thus designed to compensate for this drawback. In FeatRNet, the reconstruction is based on low-level features inferred for the novel viewpoint. Extracted from lower layers of VGG19-Net [12], the features of the input views are warped to the target position at different resolution scales to generate the corresponding target view features, from which the decoder reconstructs the color view. Finally, a learned soft combination mask merges the outputs of both PixRNet and FeatRNet.
+
+# 3.2. Disparity estimation
+
+Commonly, disparity refers to the distance between two corresponding points in the left and right view of a stereo pair. Assuming the light field views are well rectified and regularly spaced, it is convenient to use "disparity" to refer to pixel-wise distance between views (by abuse of language, two points in a vertical image pair are separated by "vertical disparity").
+
+Thus, given the input set $\mathcal{I} = \{L_{tl}, L_{tr}, L_{bl}, L_{br}\}$ , two disparity maps can be computed at each input viewpoint. Let us take the view on the top left $L_{tl}$ as an example, disparity can be computed either between the horizontal pair $(L_{tl}, L_{tr})$ or between the vertical pair $(L_{tl}, L_{bl})$ as
+
+$$
+d _ {1} = \mathrm {D N e t} \left(L _ {t l}, L _ {t r}\right), \tag {1}
+$$
+
+$$
+d _ {2} = \mathcal {R} ^ {- 1} \circ \mathrm {D N e t} (\mathcal {R} (L _ {t l}), \mathcal {R} (L _ {b l})). \tag {2}
+$$
+
+
+Figure 2. Overview of our end-to-end framework. Given the corner views $\{L_{tl}, L_{tr}, L_{bl}, L_{br}\}$ as input, the depth estimator (blue) predicts depths $\{d_{tl}, d_{tr}, d_{bl}, d_{br}\}$ . PixRNet (orange) reconstructs the target view $\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ based on the warped views $\{\widetilde{L}_{\mathbf{t}}^{tl}, \widetilde{L}_{\mathbf{t}}^{tr}, \widetilde{L}_{\mathbf{t}}^{bl}, \widetilde{L}_{\mathbf{t}}^{br}\}$ . Parallely, FeatRNet (purple) infers the features of the target view based on warped multi-scale input features, extracted from bottom layers of VGG network. The view $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ is then reconstructed. Finally, in the fusion module (green), $\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ and $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ are merged using a soft mask $M$ , which is learnt from $\check{f}^{\mathrm{Pix}}$ and $\check{f}^{\mathrm{Feat}}$ , denoting input feature maps of the last layer of PixRNet and FeatRNet, respectively.
+
+DNet is a convolutional neural network which estimates disparity between two stereo views. In this work, we employ a pre-trained PWC-Net model which is then finetuned by light field image pairs on the same row. The symbols $\mathcal{R}(\cdot)$ and $\mathcal{R}^{-1}(\cdot)$ are counterclockwise and clockwise rotation of $90^{\circ}$ , which enables to treat vertical pairs in the same way as horizontal ones.
+
+A better map can be obtained by applying a simple pixelwise fusion of $d_{1}$ and $d_{2}$ . Using either $d_{1}$ or $d_{2}$ , $L_{tr}$ , $L_{bl}$ and $L_{br}$ are projected to the top left position (the position of $L_{tl}$ ). The corresponding warping error $e_{1}$ (warping using $d_{1}$ ) or $e_{2}$ (warping using $d_{2}$ ), is computed by summing on the three RGB color channels of the three warped views. Finally, for each pixel $\mathbf{p}$ , the disparity value is selected as:
+
+$$
+k ^ {\prime} = \underset {k} {\arg \min } e _ {k} (\mathbf {p}), d (\mathbf {p}) = d _ {k ^ {\prime}} (\mathbf {p}). \tag {3}
+$$
+
+This part of the work has been inspired from Jiang et al. [25], which uses FlowNet2 [26] as disparity estimation module for corner views. Instead, we use the lightweight PWC-Net architecture which makes possible the end-to-end learning including other modules.
+
+# 3.3. Pixel-wise reconstruction
+
+The pixel-wise reconstruction module (PixRNet) follows the conventional DIBR approach to generate novel views. In particular, based on the estimated disparity maps, input views are warped to the target position and then fused to generate the final view. Similar design can be found in [9]. Apart from the fact that [9] first infers the disparity map at the target position and then employs backward projection, and our scheme applies forward projection, the main advantage of our scheme is the use of disparity-dependent interpolation which handles occlusion.
+
+Interpolation with occlusion handling. Let us project the pixel $\mathbf{p} = (x_p, y_p)$ from the input viewpoint $\mathbf{i}$ to the target
+
+viewpoint $\mathbf{t}$ , at a position with non-integer coordinates $\tilde{\mathbf{p}} = (x_{\tilde{p}},y_{\tilde{p}})$ , with the disparity value $d_{\mathbf{i}}(\mathbf{p})$ :
+
+$$
+\tilde {\mathbf {p}} = \mathbf {p} + (\mathbf {t} - \mathbf {i}) d _ {\mathbf {i}} (\mathbf {p}). \tag {4}
+$$
+
+The pixel value $\widetilde{L}_{\mathbf{t}}(\mathbf{q})$ at integer coordinates $\mathbf{q} = (x_q, y_q)$ is interpolated from nearby values $L_{\mathbf{i}}(\mathbf{p})$ as
+
+$$
+\widetilde {L} _ {\mathbf {t}} (\mathbf {q}) = \frac {\sum_ {\mathbf {p}} L _ {\mathbf {i}} (\mathbf {p}) W (\mathbf {p} , \mathbf {q})}{\sum_ {\mathbf {p}} W (\mathbf {p} , \mathbf {q})}. \tag {5}
+$$
+
+The computation of the weights $W(\mathbf{p}, \mathbf{q})$ is crucial for end-to-end learning performance. Three concerns should be addressed: 1/-the weight computation should be differentiable; 2/-as in traditional interpolation, the distance separating two pixels should be reflected in the weight; 3/-occlusions should be handled. Therefore, we propose
+
+$$
+W (\mathbf {p}, \mathbf {q}) = w _ {D} (\mathbf {p}, \mathbf {q}) w _ {d} (\mathbf {p}), \tag {6}
+$$
+
+with $w_{D}$ being a coordinate distance metrics
+
+$$
+w _ {D} (\mathbf {p}, \mathbf {q}) = l \left(x _ {\widetilde {p}}, x _ {q}\right) l \left(y _ {\widetilde {p}}, y _ {q}\right), \tag {7}
+$$
+
+where
+
+$$
+l \left(x _ {1}, x _ {2}\right) = \left\{ \begin{array}{l l} (1 - \left| x _ {1} - x _ {2} \right|), & \text {i f} \left| x _ {1} - x _ {2} \right| < 1; \\ 0, & \text {o t h e r w i s e ,} \end{array} \right. \tag {8}
+$$
+
+and $w_{d}$ a term handling occlusions defined as
+
+$$
+w _ {d} (\mathbf {p}) = \exp (- \lambda d _ {\mathbf {i}} ^ {*} (\mathbf {p})). \tag {9}
+$$
+
+The disparity map $d_{\mathrm{i}}$ is normalized between 0 and 1 to become $d_{\mathrm{i}}^{*}$ . By taking the exponential function, $w_{d}$ gives more importance to the foreground pixels (small normalized disparity values) rather than background ones (large normalized disparity values). Disparity normalization also avoids weight saturation at large disparity values.
+
+Disocclusion handling. We concatenate thereby four warped views $\{\widetilde{L}_{\mathbf{t}}^{tl},\widetilde{L}_{\mathbf{t}}^{tr},\widetilde{L}_{\mathbf{t}}^{bl},\widetilde{L}_{\mathbf{t}}^{br}\}$ and the corresponding disocclusion masks $\{m_{\mathbf{t}}^{tl},m_{\mathbf{t}}^{tr},m_{\mathbf{t}}^{bl},m_{\mathbf{t}}^{br}\}$ . The detection of the disocclusion mask is straightforward with forward warping, which identifies spatial positions having no projected pixels in their neighborhood, i.e. Eq.(7) equals to zero for all $\mathbf{p}$ . The inpainting on the disoccluded areas is then handled by a small network of 4 convolutional layers to obtain the reconstructed view $\hat{L}_t^{\mathrm{pix}}$ . The loss function is computed as the mean of absolute differences (MAD) between the reconstructed view and the ground truth:
+
+$$
+\mathcal {L} _ {1} = \operatorname {M A D} \left(\hat {L} _ {\mathbf {t}} ^ {\text {P i x}}, L _ {\mathbf {t}}\right). \tag {10}
+$$
+
+# 3.4. Feature-based reconstruction
+
+Due to inconsistencies between disparity estimates for the different input views, a simple fusion of the projected views in the pixel space may lead to blurriness in highly textured zones as well as on object contours. Thus, we propose the feature-based reconstruction module (FeatRNet) as a complementary module of PixRNet.
+
+For each input view $L_{\mathrm{i}}$ , we extract low-level features:
+
+$$
+\forall L _ {\mathbf {i}} \in \mathcal {I}, \left\{f _ {\mathbf {i}} ^ {1}, f _ {\mathbf {i}} ^ {2}, f _ {\mathbf {i}} ^ {3} \right\} = \operatorname {F e a t E x t} \left(L _ {\mathbf {i}}\right), \tag {11}
+$$
+
+with $\mathrm{FeatExt}(\cdot)$ being the operator that extracts features from the layers $relu1\_2,relu2\_2$ and $relu3\_4$ of a pre-trained VGG19-Net, and $f_{\mathbf{i}}^{s}$ being feature volumes at scale $s$ (the resolution of the feature maps in $f_{\mathbf{i}}^{s+1}$ is half of that in $f_{\mathbf{i}}^{s}$ ). These features are then warped to the target position in a similar manner as described in Section 3.3 for the pixels:
+
+$$
+\forall \mathbf {i}, \forall s, \left\{\widetilde {f} _ {\mathbf {t}} ^ {\mathbf {i}, s}, m _ {\mathbf {t}} ^ {\mathbf {i}, s} \right\} = \operatorname {W a r p} \left(f _ {\mathbf {i}} ^ {s}, \mathbf {t}\right). \tag {12}
+$$
+
+The warped features are input to convolutional layers to infer a feature volume of the target view at each scale $s$ :
+
+$$
+\hat {f} _ {\mathbf {t}} ^ {s} = \left\{ \begin{array}{l l} \operatorname {C o n v} \left(\left\{\hat {f} _ {\mathbf {t}} ^ {\mathbf {i}, s}, m _ {\mathbf {t}} ^ {\mathbf {i}, s}, \forall \mathbf {i} \right\}\right), & \text {i f} s = 3; \\ \operatorname {C o n v} \left(\left\{\hat {f} _ {\mathbf {t}} ^ {\mathbf {i}, s}, m _ {\mathbf {t}} ^ {\mathbf {i}, s}, \forall \mathbf {i} \right\}, \uparrow \hat {f} _ {\mathbf {t}} ^ {s + 1}\right), & \text {i f} s = 1, 2. \end{array} \right. \tag {13}
+$$
+
+At scale $s = 1$ and 2, the inferred features at the previous scale $s + 1$ are upsampled by 2 and fed into the network as well. The upsampling operator $\uparrow$ is implemented by a deconvolution layer. Finally, the target view $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ is reconstructed based on features at the finest scale $\hat{f}_{\mathbf{t}}^{1}$ . The reconstruction is supervised both in color and feature space by computing
+
+$$
+\mathcal {L} _ {2} = \operatorname {M A D} \left(\hat {L} _ {t} ^ {\text {F e a t}}, L _ {t}\right) + \sum_ {s = 1} ^ {3} \gamma_ {i} \operatorname {M A D} \left(\hat {f} _ {\mathbf {t}} ^ {s}, f _ {\mathbf {t}} ^ {s}\right), \tag {14}
+$$
+
+where the second term in Eq.(14) represents the difference between the inferred features and those of the ground truth target view.
+
+Note that the use of features has been exploited in recent works for light field reconstruction. However, in most of these works [3, 10], the reconstruction is supervised by a perceptual loss minimizing the distance between features computed on the reconstructed view and those of the reference view. Here, we propose instead a bottom-up approach. We first compute the target view features by warping the warped source view VGG features. The target view is then inferred from the generated target view features. This is motivated by the intuition that VGG features optimized for object recognition can be good texture generative models.
+
+# 3.5. End-to-end learning with fusion
+
+End-to-end learning is finally performed including a fusion module to merge $\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ and $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ , making the final reconstruction $\hat{L}_{\mathbf{t}}$ well perform in both highly textured and textureless areas. Based on input feature maps of the last layer of PixRNet and FeatRNet, the fusion module learns a soft mask $M$ with values between 0 and 1 (forced by sigmoid activation), which minimizes the pixel-wise reconstruction error:
+
+$$
+\mathcal {L} = \operatorname {M A D} \left(\hat {L} _ {\mathbf {t}}, L _ {\mathbf {t}}\right), \tag {15}
+$$
+
+with
+
+$$
+\hat {L} _ {\mathbf {t}} = M \hat {L} _ {\mathbf {t}} ^ {\operatorname {P i x}} + (1 - M) \hat {L} _ {\mathbf {t}} ^ {\operatorname {F e a t}}. \tag {16}
+$$
+
+# 4. Training details
+
+We provide in the supplementary materials the structure details for layers of PixRNet, FeatRNet and the fusion module. The structure of PWC-Net, which is used as the disparity estimation module, can be found in [27].
+
+Training schedule. End-to-end learning from scratch for such a network containing multiple modules can be intractable. In order to make sure that each module converges well and the final view inference is correctly learned, we follow a specific training schedule. We first finetune a pretrained PWC-Net with stereo pairs of light field views to make it adapt to disparity estimation. Then, PixRNet and FeatRNet are trained separately using the loss functions of Eq.(10) and Eq.(14) respectively. At this stage, the weights of PWC-Net are fixed for two reasons. The first is to accelerate the model convergence. The second reason is that, to reduce the size of the complete model, we constrain the two reconstruction schemes to use the same disparity. Finally, an end-to-end training including PWC-Net, PixRNet, FeatRNet and the fusion module is performed. Note that at this final stage, as our purpose is to minimize the pixelwise reconstruction error (Eq.(15)), the training is no longer supervised by the feature-level reconstruction errors.
+
+Our training data includes 94 synthetic light field scenes [28, 29] and 100 real world scenes captured by a Lytro II-lum camera [9]. The model is first trained on synthetic light fields, and then further finetuned with real ones. For both
+
+training and finetuning, we work on light field patches of size $160 \times 160$ and the batch size is 5. The model is trained with a fixed learning rate of 0.00001 and the hyperparameters are set as $\lambda = 10$ , $\gamma_{1} = 1 / 64$ , $\gamma_{2} = 1 / 32$ , $\gamma_{3} = 1 / 4$ . The training takes approximately 5 days on a GPU Tesla V100 with 32GB of memory. Our work is implemented with the tensorflow package.
+
+# 5. Experimental results
+
+# 5.1. Synthetic data
+
+We evaluate our framework with test light fields from several synthetic datasets [28, 29, 30]. Our approach is compared against four state-of-the-art view synthesis methods for light fields which represent well the recent trend in the domain: conventional DIBR in a deep learning framework (DeepBW [9]), synthesis via multi-layer scene representation with learning (LLFF [3]) or without learning (Soft3D [8]), and view interpolation based on learned EPI structure (EPI [11]).
+
+All reference methods except LLFF take $2 \times 2$ corner views to generate intermediate views. The released model of LLFF requires at least 5 input views. Thus, for comparison purposes, LLFF is tested with $2 \times 2$ views together with a fifth view which is the horizontal immediate neighbor to the view $L_{tl}$ . As the performance of learning-based methods can be highly impacted by the training data, for a fair comparison, all the pre-trained models are finetuned with the same datasets that our model is trained on. We also replace the estimated camera poses required by LLFF with ground truth ones, in order to make sure that the error is merely due to the reconstruction pipeline.
+
+Table 1 compares the reconstruction quality of the center view in terms of PSNR. The vanilla version of our model is named FPFR. FPFR* refers to "test-time augmentation" of our model: the test scene is rotated and flipped before being processed by the network, and the final reconstructed image is computed as the average of eight reconstructed views (after inverse rotation and flipping operation) based on different versions of the same scene. Note that for comparison purposes, PixRNet and FeatRNet can be trained separately with the disparity estimation module to become two fully independent view synthesis models on their own. We denote these two models "PurePix" and "PureFeat", which are also trained in an end-to-end fashion. Test light fields are arranged according to their disparity range (from dense to sparse). On average, our method (FPFR and FPFR*) significantly outperforms other methods: a gain of nearly 2dB is observed against the best reference method. Our method performs especially well for highly textured scenes e.g. still life. Reconstruction error maps are shown in Fig. 3. One can observe that our method generates less error on the object contours and thin structures in textured regions (e.g. the
+
+tablecloth in stilllife and the wallpaper in sideboard).
+
+Furthermore, Fig. 4(a) shows that FPFR consistently generates high quality views across different viewpoints, whereas the reconstruction quality decreases for other methods when the target view is distant from the input views.
+
+Note that the single mode schemes PurePix and PureFeat also obtain competitive results in Table 1. In the same vein as DeepBW [9], PurePix is on average 3.7dB better than DeepBW, especially for sparse scenes. We believe that it is mainly due to the occlusion and disocclusion handling in our PixRNet design.
+
+# 5.2. Real-world data
+
+For real-world experiments, we use the same training and test sets as used in [9]. For a fair comparison, all learning-based models are finetuned with the same dataset. Table 2 shows that our approach achieves the highest PSNRs. Note that a gain of $4.5\mathrm{dB}$ is obtained for the scene leaves. As for synthetic data, similar observations can be made in Fig. 3 for real-world scenes: we obtain more accurate contours and well preserved textures.
+
+# 5.3. Ablation study
+
+Pixel vs. feature To put in evidence the different tasks the pixel-wise and feature-based reconstruction carry out, in Fig. 5 we show examples of feature maps taken from the last layers in PixRNet and FeatRNet, from which the color view is reconstructed. We observe highly enhanced textures and clear line structures in FeatRNet feature maps, whereas PixRNet feature maps can provide information such as brightness, color and contrast, etc.
+
+Feature-based reconstruction vs. perceptual loss A common practice to optimize the view reconstruction quality via the feature space is to apply the so-called perceptual loss [32] when performing end-to-end learning. To valid our concept of merging the pixel-wise reconstruction with the feature-based one, we compare FPFR with the single mode scheme PurePix learned end-to-end with a perceptual loss. In experiments, we observe that FPFR is about 0.7dB better.
+
+Fusion vs. single mode With Fig. 6, we first analyse the convergence behavior at different stages of the network (the output of PixRNet $\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ in cyan, that of FeatRNet $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ in red, and the final output $\hat{L}_{\mathbf{t}}$ in blue). The fusion pushes each mode to excel in its domain: the image $\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ is more accurate on colors and low frequencies, whereas $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ contains a higher level of texture than the reference image (this explains the clear degradation of the PSNR for $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}}$ during training). Therefore, the final image $\hat{L}_{\mathbf{t}}$ (blue curve) obtains better quality both in low and high frequencies (see Fig. 1).
+
+In Fig. 6, we also compare FPFR with single mode schemes PurePix (in green) and PureFeat (in yellow). A clear advantage is observed for FPFR.
+
+| LFs | Disparity range | DeepBW[9] | Soft3D[8] | LLFF[3] | EPI[11] | PurePix | PureFeat | FPFR | FPFR* |
| mona† | [-5,5] (10) | 38.90 | 40.92 | 41.20 | 37.54 | 39.90 | 40.35 | 42.47 | 42.86 |
| butterfly† | [-6,8] (14) | 40.68 | 42.75 | 41.35 | 39.61 | 41.64 | 39.33 | 42.69 | 42.96 |
| buddha† | [-10,6] (16) | 41.08 | 41.86 | 40.66 | 40.05 | 41.24 | 40.99 | 42.78 | 43.06 |
| cotton* | [-9,9] (18) | 47.24 | 48.95 | 47.07 | 47.97 | 48.18 | 46.45 | 48.58 | 48.76 |
| boxes* | [-7,13] (20) | 33.64 | 32.14 | 34.97 | 31.65 | 33.44 | 33.90 | 33.86 | 34.46 |
| dino* | [-10,10] (20) | 38.41 | 41.69 | 41.26 | 38.44 | 40.63 | 39.38 | 42.66 | 42.98 |
| sideboard* | [-10,12] (22) | 30.91 | 30.23 | 32.33 | 27.30 | 29.43 | 30.79 | 31.85 | 32.18 |
| Toy_bricks◇ | [-1,22] (23) | 28.90 | 36.58 | 37.98 | 31.46 | 36.55 | 36.01 | 38.84 | 39.35 |
| Elec/devices◇ | [-10,17] (27) | 34.09 | 36.24 | 36.76 | 31.55 | 35.53 | 34.87 | 37.63 | 38.03 |
| stilllife† | [-16,16] (32) | 26.29 | 34.73 | 32.73 | 32.02 | 33.96 | 32.77 | 36.39 | 37.05 |
| Lion◇ | [-5,29] (34) | 28.05 | 35.18 | 35.22 | 33.91 | 35.10 | 34.99 | 35.47 | 35.59 |
| Two_vases◇ | [-5,39] (44) | 25.65 | 32.49 | 35.82 | 29.09 | 33.46 | 34.78 | 35.56 | 35.99 |
| Sculpture◇ | [-26,34] (60) | 22.31 | 29.15 | 29.68 | 26.22 | 28.56 | 29.51 | 30.09 | 30.30 |
| Bear◇ | [-38,53] (91) | 18.36 | 28.00 | 33.22 | 23.40 | 29.00 | 32.64 | 31.87 | 33.84 |
| Average | - | 32.49 | 36.49 | 36.43 | 33.59 | 36.19 | 36.20 | 37.92 | 38.39 |
+
+
+Figure 3. Visual comparison of reconstruction error maps for different methods. More results are provided in supplementary materials.
+
+Table 1. Quantitative results (PSNR) for the reconstructed central view on the synthetic test light fields. The corresponding datasets are indicated by symbols: $\star$ [28], $\diamond$ [29] and $\dagger$ [30].
+
+| LFs | DeepBW[9] | Soft3D[8] | LLFF[3] | EPI[11] | FPFR* |
| Cars | 31.53 | 27.68 | 29.06 | 28.17 | 32.25 |
| Flower1 | 33.13 | 30.29 | 30.00 | 30.44 | 34.49 |
| Flower2 | 31.95 | 30.52 | 28.90 | 29.26 | 34.19 |
| Rock | 34.32 | 32.67 | 32.60 | 32.46 | 36.75 |
| Leaves | 27.97 | 27.34 | 27.74 | 26.48 | 32.53 |
| Seahorse | 32.03 | 30.41 | 28.50 | 26.62 | 34.97 |
| Average | 31.82 | 29.82 | 29.47 | 28.90 | 33.91 |
+
+Table 2. Quantitative results (PSNR) for the reconstructed view (5,5) on the real-world data $(8\times 8$ views) [9].
+
+Single-scale vs. multi-scale A single-scale architecture ( $s = 1$ ) for feature-based reconstruction is compared with its multi-scale counterparts ( $s = 1,2,3$ ). In experiments, a gain of about $0.5\mathrm{dB}$ is observed in favor of the multi-scale architecture.
+
+# 5.4. Extrapolation
+
+Extrapolation of light fields with plausible disocclusions can be a more difficult task than interpolation, since less information of the target view is known in the input views. In Fig. 4(c), we evaluate the inherent capacity of our frame
+
+
+(a) PSNR for interpolated viewpoints
+
+
+
+
+(b) View indices
+
+
+(c) PSNR for extrapolated viewpoints
+
+
+Figure 4. Average PSNR over 8 synthetic scenes ([28, 30]) for each novel viewpoint. (a) Interpolation. (c) Extrapolation. (b) View indices for interpolation and extrapolation. 4 input views (red slash) are used for FPFR, DeepBW[9], EPI[11] or FDL[31], whereas 5 input views (grey) are used for LLFF[3].
+
+
+Figure 5. Feature maps taken from the last latent layers of PixRNet and FeatRNet.
+
+
+
+
+
+
+
+
+
+
+Figure 6. Learning curves of different end-to-end schemes (FPFR, PurePix and PureFeat). For FPFR, the curves for intermediate outputs $(\hat{L}_{\mathbf{t}}^{\mathrm{Pix}}$ and $\hat{L}_{\mathbf{t}}^{\mathrm{Feat}})$ are also shown.
+
+work to extrapolate against two reference methods FDL[31]
+
+and LLFF [3]. As input, our method and FDL take 4 corner views (red slashes in Fig. 4(b)) of a subset of $3 \times 3$ views with narrow baseline. Since LLFF requires at least 5 views, the central view is also included in input views (grey in Fig. 4(b)). The output is an extended light field with $9 \times 9$ views ( $4 \times$ baseline). One can observe that our method outperforms reference methods by a large margin. Wider the extended baseline, more important is our gain. Note that both LLFF and our model are trained for interpolation tasks, here we evaluate the inherent capacity to extrapolate without any further training.
+
+# 5.5. Limitations
+
+Relying on disparity estimation, our method can be subject to errors for non-Lambertian surfaces. Moreover, even though our method is demonstrated to be efficient for structured light fields, for unstructured ones, future works would be needed by coupling the method with appropriate pose estimation methods.
+
+# 6. Conclusion
+
+We have presented a novel learning-based model for light field view synthesis. In order to obtain high quality reconstruction both in low and high frequencies, end-to-end learning is performed including a pixel-wise reconstruction module and a feature-based reconstruction module. Experiments have demonstrated that the proposed model achieves state-of-the-art performance both for synthetic and real-world light fields.
+
+# 7. Acknowledgement
+
+The work has been funded by the EU H2020 Research and Innovation Program under grant agreement No.694122 (ERC advanced grant CLIM). We would also like to show our gratitude to Ben Mildenhall for providing us with LLFF code and to Dr. Zhaolin Xiao for inspiring discussions.
+
+# References
+
+[1] Bennett Wilburn, Neel Joshi, Vaibhav Vaish, Eino-Ville Talvala, Emilio Antunez, Adam Barth, Andrew Adams, Mark Horowitz, and Marc Levoy. High performance imaging using large camera arrays. ACM Trans. on Graphics, 24(3):765-776, Jul. 2005. 1
+[2] Marc Levoy and Pat Hanrahan. Light field rendering. In Proc. 23rd Annu. Conf. Comput. Graph. Interact. Techn.(CCGIT), pages 31-42, 1996. 1
+[3] Ben Mildenhall, Pratul P. Srinivasan, Rodrigo Ortiz-Cayon, Nima Khademi Kalantari, Ravi Ramamoorthi, Ren Ng, and Abhishek Kar. Local light field fusion: Practical view synthesis with prescriptive sampling guidelines. ACM Trans. on Graphics, 2019. 1, 2, 3, 5, 6, 7, 8
+[4] Lixin Shi, Haitham Hassanieh, Abe Davis, Dina Katabi, and Fredo Durand. Light field reconstruction using sparsity in the continuous fourier domain. ACM Trans. on Graphics, 34(1):12, 2014. 1, 2
+[5] Sven Wanner and Bastian Goldluecke. Variational light field analysis for disparity estimation and super-resolution. IEEE Trans. Pattern Anal. Mach. Intell., 36(3):606-619, Aug. 2013. 1, 2
+[6] Suren Vagharshakyan, Robert Bregovic, and Atanas Gotchev. Light field reconstruction using shearlet transform. IEEE Trans. Pattern Anal. Mach. Intell., 40(1):133-147, 2018. 1, 2
+[7] Zhoutong Zhang, Yebin Liu, and Qionghai Dai. Light field from micro-baseline image pair. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 3800-3809, 2015. 1
+[8] Eric Penner and Li Zhang. Soft 3D reconstruction for view synthesis. ACM Trans. on Graphics, 36(6):235:1-235:11, 2017. 1, 2, 6, 7
+[9] Nima Khademi Kalantari, Ting-Chun Wang, and Ravi Ramamoorthi. Learning-based view synthesis for light field cameras. ACM Trans. on Graphics, 35(6):193:1-193:10, 2016. 1, 2, 3, 4, 5, 6, 7, 8
+[10] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. ACM Trans. on Graphics, 37(4):65:1-65:12, 2018. 1, 2, 3, 5
+[11] Gaochang Wu, Yebin Liu, Qionghai Dai, and Tianyou Chai. Learning sheared epi structure for light field reconstruction. IEEE Trans. Image Process., 28(7):3261-3273, 2019. 2, 3, 6, 7, 8
+[12] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 2, 3
+[13] Steven J Gortler, Radek Grzesczuk, Richard Szeliski, and Michael F Cohen. The lumigraph. In Siggraph, pages 43-54, 1996. 2
+[14] Gaurav Chaurasia, Sylvain Duchene, Olga Sorkine-Hornung, and George Drettakis. Depth synthesis and local
+
+warps for plausible image-based navigation. ACM Trans. on Graphics, 32(3):1-12, 2013. 2
+[15] John Flynn, Ivan Neulander, James Philbin, and Noah Snavely. Learning to predict new views from the world's imagery. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 5515-5524, 2016. 2, 3
+[16] Anat Levin and Fredo Durand. Linear view synthesis using a dimensionality gap light field prior. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 1831-1838, 2010. 2
+[17] Sudipta N Sinha, Johannes Kopf, Michael Goesele, Daniel Scharstein, and Richard Szeliski. Image-based rendering for scenes with reflections. ACM Trans. on Graphics, 31(4):100-1, 2012. 2
+[18] Srinivasan Pratul, P., Tongzhou Wang, Ashwin Sreelal, Ravi Ramamoorthi, and Ren Ng. Learning to synthesize a 4D RGBD light field from a single image. In IEEE Int. Conf. on Computer Vision (ICCV), pages 2262-2270, 2017. 2
+[19] Gaochang Wu, Mandan Zhao, Liangyong Wang, Qionghai Dai, Tianyou Chai, and Yebin Liu. Light field reconstruction using deep convolutional network on EPI. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 1638-1646, 2017. 2
+[20] Yunlong Wang, Fei Liu, Zilei Wang, Guangqi Hou, Zhenan Sun, and Tieniu Tan. End-to-end view synthesis for light field imaging with pseudo 4DCNN. In Eur. Conf. on Computer Vision (ECCV), pages 333-348, 2018. 2, 3
+[21] Shubham Tulsiani, Richard Tucker, and Noah Snavely. Layer-structured 3D scene inference via view synthesis. In Eur. Conf. on Computer Vision (ECCV), pages 302–317, 2018. 3
+[22] Inchang Choi, Orazio Gallo, Alejandro Troccoli, Min H. Kim, and Jan Kautz. Extreme view synthesis. In IEEE Int. Conf. on Computer Vision (ICCV), pages 7781-7790, 2019. 3
+[23] Nan Meng, Hayden Kwok-Hay So, Xing Sun, and Edmund Lam. High-dimensional dense residual convolutional neural network for light field reconstruction. IEEE Trans. Pattern Anal. Mach. Intell., 2019. 3
+[24] Henry Wing Fung Yeung, Junhui Hou, Jie Chen, Yuk Ying Chung, and Xiaoming Chen. Fast light field reconstruction with deep coarse-to-fine modeling of spatial-angular clues. In Eur. Conf. on Computer Vision (ECCV), pages 137-152, 2018. 3
+[25] Xiaoran Jiang, Jinglei Shi, and Christine Guillemot. A learning based depth estimation framework for 4D densely and sparsely sampled light fields. In IEEE Int. Conf. on Acoustics, Speech and Signal Processing (ICASSP), pages 2257-2261, 2019. 4
+[26] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 1647 - 1655, 2017. 4
+
+[27] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. PWC-Net: CNNs for optical flow using pyramid, warping, and cost volume. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 8934–8943, 2018. 5
+[28] Katrin Honauer, Ole Johannsen, Daniel Kondermann, and Bastian Goldluecke. A dataset and evaluation methodology for depth estimation on 4D light fields. In *Asian Conf. on Computer Vision (ACCV)*, pages 19–34, 2016. 5, 6, 7, 8
+[29] Jinglei Shi, Xiaoran Jiang, and Christine Guillemot. A framework for learning depth from a flexible subset of dense and sparse light field views. IEEE Trans. Image Process., 28(12):5867-5880, Dec 2019. 5, 6, 7
+[30] Sven Wanner, Stephan Meister, and Bastian Goldluecke. Datasets and benchmarks for densely sampled 4D light fields. In Conf. on Vision, Modeling & Visualization (VMV), pages 225–226, 2013. 6, 7, 8
+[31] Mikael Le Pendu, Christine Guillemot, and Aljosa Smolic. A fourier disparity layer representation for light fields. IEEE Trans. Image Process., 28(11):5740-5753, Nov 2019. 8
+[32] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Eur. Conf. on Computer Vision (ECCV), pages 694–711, 2016. 6
\ No newline at end of file
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/images.zip b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..06f71561695426e6fbd7066614017c60fe65d7c2
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb80a944ccd89b09b45320c8e301e7f6d1cf967e43b82d8fa96e8490b5791b92
+size 855689
diff --git a/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/layout.json b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..63fbf3ad7b2d12fc65e4c852dcadab91edebabbd
--- /dev/null
+++ b/learningfusedpixelandfeaturebasedviewreconstructionsforlightfields/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f45249e10b2f50ca7859bdf00ca63e7175e4a95f835cba4b0bdca1137133064
+size 386225
diff --git a/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_content_list.json b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..736536603ae00a8d4c5f804c625792357625fcd1
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df48bf53c1d726df8893861d9c5cd2608ce38579afd4f5f06a99174f6053b941
+size 73753
diff --git a/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_model.json b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e90cd7aa56fe3758c7b0f50eb80923dfc22e2daa
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:70f53a0bf493563711ef4653f4f5961262a4c0d8acf1e7a6e7076791430e9829
+size 90576
diff --git a/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_origin.pdf b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..74069312cb1283be07744c3b14e249efd2a152fd
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/f9d4aa19-11a9-409f-983e-d0c16a4a458b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e025602778cbfaa29a0fbd53542bb4ddc13fd21c45a6607500051a218e99571a
+size 1731748
diff --git a/learninggenerativemodelsofshapehandles/full.md b/learninggenerativemodelsofshapehandles/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b1523dbc84dcf45de07f58d02e55335f29de15e9
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/full.md
@@ -0,0 +1,292 @@
+# Learning Generative Models of Shape Handles
+
+Matheus Gadelha1 Giorgio Gori2 Duygu Ceylan2 Radomir Měch2 Nathan Carr2 Tamy Boubekeur2 Rui Wang1 Subhransu Maji1
+
+$^{1}$ UMass Amherst $^{2}$ Adobe Research
+
+
+Figure 1: Gallery of 3D shapes generated as sets of handles (zoom for details). We propose a class of generative models for synthesizing sets of handles – lightweight proxies that can be easily utilized for high-level tasks such as shape editing, parsing, animation etc. Our model can generate sets with different cardinality and is flexible to work with various types of handles, such as sphere-mesh handles [37] (first and third figures) and cuboids (middle figure).
+
+# Abstract
+
+We present a generative model to synthesize 3D shapes as sets of handles - lightweight proxies that approximate the original 3D shape - for applications in interactive editing, shape parsing, and building compact 3D representations. Our model can generate handle sets with varying cardinality and different types of handles (Figure 1). Key to our approach is a deep architecture that predicts both the parameters and existence of shape handles, and a novel similarity measure that can easily accommodate different types of handles, such as cuboids or sphere-meshes. We leverage the recent advances in semantic 3D annotation as well as automatic shape summarizing techniques to supervise our approach. We show that the resulting shape representations are intuitive and achieve superior quality than previous state-of-the-art. Finally, we demonstrate how our method can be used in applications such as interactive shape editing, completion, and interpolation, leveraging the latent space learned by our model to guide these tasks. Project page: http://mgadelha.me/shapehandles.
+
+# 1. Introduction
+
+Dramatic improvements in quality of image generation have become a key driving force behind many novel image editing applications. Yet, similar approaches are lacking for editing and generating 3D shapes. There are two related challenges. First, learning generative models for 3D data is challenging, as unlike images, high-quality 3D data is hard to obtain and the data is high dimensional and often unstructured. Second, regardless of whether good generative models are available, manipulating and editing 3D shapes in interactive applications is harder to users than editing images. For this reason, the geometry processing community has developed techniques for representing 3D data as a small collection of simpler proxy shapes [2,4,7,17,22,24,43]. In this paper, we refer to these light-weight proxies as shape handles due to their ability to be easily manipulated by users. These representations have been widely used in tasks that require interaction and high-level reasoning in 3D environments, such as shape editing [12,37], animation [38], grasping [27], and tracking [39].
+
+We propose a generative models of shape handles. Our
+
+method adopts a two-branch network architecture to generate shapes with varying number of handles, where one branch focuses on generating handles while the other predicts the existence of each handle (Section 3.2). Furthermore, we propose a novel similarity measure based on distance fields to compare shape handle pairs. This measure can be easily adapted to accommodate various types of handles, such as cuboids and sphere-meshes [37] (Section 3.1). Finally, in contrast to previous work [32,40] which focuses on unsupervised methods, we leverage recent works in collecting 3D annotations [29] as well as shape summarization techniques [37] to provide supervision to our approach. Experiments show that our method significantly outperforms previous methods on shape parsing and generation tasks. Using self-supervised training data generated by [37], our approach produces shapes that are twice as accurate as competing approaches in terms of intersection-over-union (IoU) metric. By employing human annotated data, our model can be further improved, achieving even higher accuracy than using self-supervised training data. Moreover, as shape handles provide a compact representation, our generative networks are compact (less than 10MB). Despite the small memory footprint, our method generates a diverse set of high quality 3D shapes, as seen in Figure 1.
+
+Finally, our method is built towards generating shapes using representations that are amenable to manipulation by users. In contrast to point clouds and other 3D representations such as occupancy grids, handles are intuitive to modify and naturally suitable for editing and animation tasks. The latent space of shape handles induced by the learned generative model can be leveraged to support shape editing, completion, and interpolation tasks, as depicted in Figure 2.
+
+# 2. Related work
+
+Deep generative models of 3D shapes. Multiple 3D shape representations have been used in the context of deep generative models. 3D voxel grids [6, 10] are a natural extension to image-based architectures, but suffer from high memory footprint requirements. Sparse occupancy grids [15, 33, 36, 42] alleviate this issue using a hierarchical grid, but they are still not able to generate detailed shapes and they require additional bookkeeping. Multi-view representations [23, 34], point clouds [1, 8, 9, 11], mesh deformations [19, 41] and implicit functions [5, 13, 26, 31] provide alternatives that are compact and capable of generating detailed shapes. However, these approaches are focused on reconstructing accurate 3D shapes and are not amenable to tasks like editing. Our goal is different: we explore generative models to produce sets of handles - summarized shape representations that can be easily manipulated by users.
+
+Two closely related methods to ours are Tulsiani et al. [40] and Paschalidou et al. [32] where they propose models to generate shapes as a collection of primitives without
+
+
+Figure 2: Overview. We propose a method to train a generative model $g$ for sets of shape handles. Once trained, the latent representation $z$ can also be used in applications like shape editing and interpolation.
+
+supervision. In contrast, we are focused on creating models capable of utilizing shape decompositions provided by external agents; either a human annotator or a shape summarization technique. We demonstrate that, by using the extra information provided by annotations or well known geometric processing techniques, our method is capable of generating more accurate shapes while keeping the representation interpretable and intuitive for easy editing. Other approaches focused on learning shape structures through stronger supervision [21, 28, 30], requiring not only handle description, but also relationships between them, e.g. support, symmetry, adjacency, hierarchy, etc. In contrast, our method models shapes as sets and we show that interhandle relationships can be learned directly from data, so that the latent space induced by our model can be used to guide shape editing, completion, and interpolation tasks. Furthermore, we present a general framework that can be easily adapted to different types of handles, not only a single parametric family, like cuboids [21, 28, 40] or superquadrics [32].
+
+Methods for shape decomposition. Shape decomposition has been extensively studied by the geometry processing literature. The task is to approximate a complex shape as a set of simpler, lower-dimensional parts that are amenable for editing. We refer to these parts as shape handles. Early cognitive studies have shown that humans tend to reason about 3D shapes as a union of convex components [16]. Multiple approaches have explored decomposing shapes in this manner [18, 22, 46]. However, those approaches are likely to generate too many parts, making them difficult to manipulate. This problem was addressed by later shape approximation methods such as cages [43], 3D curves [12, 14, 25] and sphere-meshes [37], which are shown very useful in shape editing and other high-level tasks. Our method is flexible to work with various types of shape handles, and in particular we show experiments using cuboids as well as sphere-meshes.
+
+Several closely related methods to ours approximate
+
+complex shapes using primitives such as cylinders [45] or cuboids [43]. These approximations are easy to interpret and manipulate by humans. However, most existing methods rely solely on geometric cues for computing primitives, which can lead to counter-intuitive decompositions. In contrast, our method takes supervision from semantic information provided by human annotators or shape summarization techniques, and therefore our results more accurately match human intuition.
+
+# 3. Method
+
+Consider a dataset $\mathcal{D} = \{S_i\}_{i=1}^n$ containing $n$ sets of shape handles. Each set of handles $S_i$ represents a 3D shape and consists of multiple handle descriptors. Our goal is to train a model $f_\theta$ capable of generating sets similar to the ones in $\mathcal{D}$ , i.e., using them as supervision. More precisely, given an input $x_i$ associated with a set of handles $S_i$ , our goal is to estimate the parameters $\theta$ such that $f_\theta(x_i) \approx S_i$ . The input $x_i$ can be an image, a point cloud, an occupancy grid, or even the set of handles itself. When $x_i = S_i$ , $f_\theta$ corresponds to an autoencoder. If we add a regularization term to the bottleneck of $f_\theta$ , we have a Variational AutoEncoder (VAE), which we use for applications like shape editing, completion and interpolation (Section 4.4). However, we need to use a loss function capable of measuring the similarity between two sets of handles, i.e., the reconstruction component of a VAE. Ideally, this loss function would be versatile - we should be able to use it to generate different types of handles with minimal modifications. Moreover, our model needs to be capable of generating sets with different cardinalities, since the sets $S_i$ do not always have the same size - in practice, the size of the sets used as supervision can vary a lot and our network must accommodate this need.
+
+In this section, we describe how to create a model satisfying these constraints. First, we describe how to compute similarities between handles. Our method is flexible and only relies on the ability to efficiently compute the distance from an arbitrary point in space to the handle's surface. We then demonstrate how to use this framework with two types of handles: cuboids and sphere-meshes. Finally, we describe how to build models capable of generating sets with varying sizes, by employing a separate network branch to predict the existence of shape handles.
+
+# 3.1. Similarity between shape handles
+
+Consider two sets of shape handles of the same type: $A = \{a_{j}\}_{j=1}^{|A|}$ and $B = \{b_{k}\}_{k=1}^{|B|}$ , where $a_{j}$ and $b_{k}$ are parameters that describe each handle. For example, if the handle type is cuboid, $a_{j}$ (or $b_{k}$ ) would include the cuboid dimensions, rotation and translation in space. One way to compute similarity between sets is through Chamfer distance. Let the asymmetric Chamfer distance between the
+
+two sets of handles $A$ and $B$ be defined as:
+
+$$
+C h (A, B) = \frac {1}{| A |} \sum_ {a \in A} \min _ {b \in B} D (a, b) \tag {1}
+$$
+
+where $D(a, b)$ is a function that computes the similarity between two handles with parameters $a$ and $b$ . There are multiple choices for $D(a, b)$ . One straightforward choice is to define $D$ as the $\ell_p$ -norm of the vector $a - b$ . However, this is a poor choice as the parameters are not homogeneous. For example, parameters that describe rotations should not contribute to the similarity metric in the same way as those describing translations. Furthermore, there may be multiple configurations that describe the same shape – e.g., vertices that are in different orders may describe the same triangle; a cube can be rotated and translated in multiple ways and end up occupying the same region in space.
+
+We address these problems by proposing a novel distance metric $D(a, b)$ which measures the similarity of the distance field functions of the two handles. Specifically, let $\mathcal{P}$ be a set of points in the 3D space and let $\mu(a)$ represent the surface of the handle described by $a$ . Now, we define $D$ as follows:
+
+$$
+D (a, b) = \sum_ {p \in \mathcal {P}} \left(\min _ {p _ {a} \in \mu (a)} \| p - p _ {a} \| _ {2} - \min _ {p _ {b} \in \mu (b)} \| p - p _ {b} \| _ {2}\right) ^ {2} \tag {2}
+$$
+
+Intuitively, $D$ calculates the sum of squared differences between two feature vectors representing the distance fields with respect to each of the handles. Each dimension of these feature vectors contains the distance between a point in a set of probe points $\mathcal{P}$ and the surface of the handle defined by its parameters ( $a$ and $b$ in Equation 2). The main advantage of this similarity computation is its versatility: it allows us to compare any types of shape handles; the only requirement is the ability to efficiently compute $\min_{p_h\in \mu (h)}\| p - p_h\| _2$ given handle parameters $h$ and a point $p$ . In the following subsections, we show how to efficiently perform this computation for two types of shape handles: cuboids and sphere-meshes.
+
+Cuboids. We choose to represent a cuboid by parameters $h = \langle \mathbf{c},\mathbf{l},\mathbf{r_1},\mathbf{r_2}\rangle$ , where $\mathbf{c} \in \mathbb{R}^3$ is the cuboid center, $\mathbf{l} \in \mathbb{R}^3$ is the cuboid scale factor (i.e. dimensions), $\mathbf{r_1},\mathbf{r_2} \in \mathbb{R}^3$ are vectors describing the rotation of the cuboid. This rotation representation has continuity properties that benefit its estimation through neural networks [44]. Notice that we can build a rotation matrix $\mathbf{R}$ from $\mathbf{r_1}$ and $\mathbf{r_2}$ by following the procedure described in [44]. Now, consider the transformation $\tau_h(p) = \mathbf{R}^T p - \mathbf{c}$ . Let $\mu_C(h) \in \mathbb{R}^3$ represent the surface of the cuboid parametrized by $h$ . We can compute $\min_{p_h \in \mu_C(h)} \| p - p_h \|_2$ (i.e. distance from $p$ to the cuboid) as follows:
+
+$$
+\min _ {p _ {h} \in \mu_ {\mathcal {C}} (h)} \| p - p _ {h} \| _ {2} = \left\| \left(\left| \tau_ {h} (p) \right| - 1\right) ^ {+} \right\| _ {2} + \left(\max \left(\left| \tau_ {h} (p) \right| - 1\right)\right) ^ {-}
+$$
+
+
+Source
+
+
+Sphere-Mesh
+
+
+Sphere-triangle
+Figure 3: Schematic representation of sphere-meshes. A sphere-mesh (middle) is computed from a regular triangle mesh (left) as input, and it consists of multiple sphere-triangles (right), each of which is a volumetric representation
+
+where $(\cdot)^{+}, (\cdot)^{-}$ and $|\cdot|$ represent element-wise $\max(\cdot, 0)$ , $\min(\cdot, 0)$ and absolute value, respectively. Since this expression can be computed in $O(1)$ , we are able to compute Equation 2 in $O(|\mathcal{P}|)$ , where the number of probing points $|\mathcal{P}|$ is relatively small. In practice, we sample 64 points in a regular grid in the unit cube.
+
+Sphere-meshes. A triangle mesh consists of a set of vertices and triangular faces representing the vertex connectivity. Every vertex is a point in space and the surface of a triangle contains all the points that can be generated by interpolating the triangle's vertices using barycentric coordinates. A sphere-mesh is a generalization of a triangle mesh – every vertex is a sphere instead of a point in space. Thus, every sphere-mesh “triangle” is actually a volume delimited by the convex-hull of the spheres centered at the triangle vertices. Figure 3 presents a visual description of sphere-mesh components. Thiery et al. [37] introduced an algorithm to compute sphere-meshes from regular triangle meshes. They show that complex meshes can be closely approximated with a sphere-mesh containing a fraction of the original components.
+
+We model sphere-meshes as a set of sphere-mesh triangles, called sphere-triangles. Similarly to a regular triangle, a sphere-triangle is fully defined by its vertices, the difference being that its vertices are now spheres instead of points. Thus, we choose to represent a sphere-triangle using parameters $h = \langle r_1, r_2, r_3, \mathbf{c}_1, \mathbf{c}_2, \mathbf{c}_3 \rangle$ ; where $\mathbf{c}_1, \mathbf{c}_2, \mathbf{c}_3 \in \mathbb{R}^3$ are the centers of the three spheres, and $r_1, r_2, r_3 \in \mathbb{R}^+$ are their radii. Let $\mu_T(h)$ represent the surface of the sphere-triangle parametrized by $h$ . For calculating the similarity between two sphere-triangles: as each sphere-triangle is uniquely defined by its three spheres, it suffices to have $\mu_T$ contain only the surfaces of these three spheres, and hence it does not need to contain the entire sphere triangle. Thus, the distance of a probing point $p$ to the handle
+
+surface is computed as follows:
+
+$$
+\min _ {p _ {h} \in \mu_ {T} (h)} \| p - p _ {h} \| _ {2} = \min _ {i \in \{1, 2, 3 \}} (\| p - \mathbf {c} _ {i} \| _ {2} - r _ {i}).
+$$
+
+# 3.2. Generating sets with varying cardinality
+
+The neural network $f$ generates shapes represented by sets of handles given an input $x$ . Our design of $f$ includes two main components: an encoder $q$ that, given an input $x$ , outputs a latent set representation $z$ ; and a decoder $g$ that, given the latent set representation $z$ , generates a set of handles. Even though we can use a symmetric version of Equation 1 to compute the similarity between the generated set $g(q(x_i))$ and the ground-truth set of handles $S_i$ , so far our model has not taken into account the varying size (i.e. number of elements) of the generated sets. We address this issue by separating the generator into two parts: a parameter prediction branch $g_p$ and an existence prediction branch $g_e$ . The parameter prediction branch is trained to always output a fixed number of handle parameters where $[g_p(z)]_i$ represents the parameters of the $i^{th}$ handle. On the other hand, the existence prediction branch $[g_e(z)]_i \in [0,1]$ represents the probability of existence of the $i^{th}$ generated handle. Now, we need to adapt our loss function to consider the probability of existence of a handle.
+
+If we assume that all handles exist, our model can be trained using the following loss:
+
+$$
+\mathcal {L} = C h \left(g _ {p} \left(z _ {i}\right), S _ {i}\right) + C h \left(S _ {i}, g _ {p} \left(z _ {i}\right)\right),
+$$
+
+where $S_{i}$ is a set of shape handles drawn from the training data and $z_{i}$ is a latent representation computed from the associated input $x_{i}$ . However, we want to modify this loss to take into account the probability of a handle existing or not. To do so, note that $\mathcal{L}$ has two terms. The first term measures accuracy: i.e. how close each of the handles in $g_{p}(z_{i})$ is from the handles in $S_{i}$ . For this term, we can use $g_{e}$ as weights for the summation in Equation 1, which leads to the following definition:
+
+$$
+P (z, S) = \sum_ {i = 1} ^ {K} \min _ {s \in S} D ([ g _ {p} (z) ] _ {i}, s) [ g _ {e} (z) ] _ {i}, \tag {3}
+$$
+
+where $z$ is a latent space representation, $S$ is a set of handles and $K = |g_{p}(z)| = |g_{e}(z)|$ . The intuition is quite simple: if the $i^{th}$ handle is likely to exist, its distance to the closest handle should be taken into consideration; on the other hand, if the $i^{th}$ handle is unlikely to exist, it does not matter if it is approximating a handle in $S$ or not.
+
+The second term in $\mathcal{L}$ measures coverage: every handle in $S_{i}$ must have (at least) one handle in the generated set that is very similar to it. Here, we use an insight presented in [32] to efficiently compute the coverage of $S_{i}$ while considering the probability of elements in a set existing or not. Let $g_{p}^{s}(z)$ be the list of generated handles $g_{p}(z)$
+
+
+Figure 4: Comparison of results after the first stage (top row) and second stage (bottom row) of alternate training. While the first stage ensures coverage, some extra, unnecessary handles are also generated. The second stage trains the existence branch, which assigns a low probability of existence to the inaccurate handles.
+
+ordered in non-decreasing order according to $D([g_p^s ]_i,s)$ for $i = 1,\dots,|g_{p}(z)|$ . We compute the coverage of a set $S$ from a set generated from $z$ as follows:
+
+$$
+C (z, S) = \sum_ {s \in | S |} \sum_ {i = 1} ^ {K} D \left(\left[ g _ {p} ^ {s} (z) \right] _ {i}, s\right) \left[ g _ {e} ^ {s} (z) \right] _ {i} \prod_ {j = 1} ^ {i - 1} \left(1 - \left[ g _ {e} ^ {s} (z) \right] _ {j}\right). \tag {4}
+$$
+
+The idea behind this computation is the following: for every handle $s \in S$ , we compute its distance to every handle in $g_{p}(z)$ , weighted by the probability of that handle existing or not. However, the distance to a specific handle is important only if no other handle closer to $s$ exists. Thus, the whole term needs to be weighted by $\prod_{j=1}^{i} (1 - [g_{e}^{s}(z)]_{j})$ . Finally, we can combine Equations 3 and 4 to define the reconstruction loss $\mathcal{L}_{rec}$ used to train our model:
+
+$$
+\mathcal {L} _ {\text {r e c}} = P (z, S) + C (z, S). \tag {5}
+$$
+
+Alternate training procedure. Although minimizing the loss in Equation 5 at once enables generating sets of different sizes, our experiments show that the results can be further improved if we train $g_{p}$ and $g_{e}$ in an alternating fashion. Specifically, we first initialize the biases and weights of the last layer of $g_{e}$ to ensure that all of its outputs are 1, i.e., the model is initialized to predict that every primitive exists. Then, in the first stage of the training, we fix the parameters of $g_{e}$ and train $g_{p}$ minimizing only the coverage $C(z, S)$ . During the second stage of the training, we fix the parameters of $g_{p}$ and update the parameters of $g_{e}$ , but this time minimizing the full reconstruction loss $\mathcal{L}_{rec}$ . As we show in Section 4, this alternating procedure improves the training leading to the generation of more accurate shape handles. The intuition is that while training the model to predict the handle parameters $(g_{p})$ , the network should be only concerned about coverage, i.e., generating at least one similar handle for each ground-truth handle. On the other
+
+hand, while training the existence prediction branch $(g_{e})$ we want to remove the handles that are in incorrect positions while keeping the coverage of the ground-truth set.
+
+# 4. Experiments
+
+This section describes our experiments and validates results. We experimented with two different types of handles: cuboids computed from PartNet [29] segmentations and sphere-meshes computed from ShapeNet [3] shapes using [37]. We compare our results to two other approaches focused on generating shapes as a set of simple primitives, namely cuboids [40] and superquadrics [32]. All the experiments in the paper were implemented using Python 3.6 and PyTorch. Computation was performed on TitanX GPUs.
+
+# 4.1. Datasets
+
+Cuboids from PartNet [29]. We experiment with human annotated handles by fitting cuboids to the parts segmented in PartNet [29]. The dataset contains 26,671 shapes from 24 categories and 573,585 part instances. In order to compare our model with other approaches trained on the ShapeNet [3] chairs dataset, we select the subset of PartNet chairs that is also present in ShapeNet. This results in 6773 chair models segmented in multiple parts. Every model has on average 18 parts, but there are also examples with as many as 137 parts. For every part we fit a corresponding cuboid using PCA. Then, we compute the volume of every cuboid and keep at topmost 30 cuboids in terms of volume. Notice that $92\%$ of the shapes have less than 30 cuboids, so those remain unchanged. The others will have missing components, but those usually correspond to very small details and can be ignored without degrading the overall structure.
+
+Sphere-meshes from ShapeNet [3]. In contrast to cuboids (which are computed from human annotated parts), we compute sphere-meshes fully automatically using the procedure described in [37]. We use ShapeNet categories that are also analyzed in [32, 40]: chairs, airplanes and animals. The sphere-mesh computation procedure requires pre-selecting how many sphere-vertices to use. The algorithm starts by considering the regular triangle mesh as a trivial sphere-mesh (vertices with null radius) and then decimates the original mesh progressively through edge collapsing, optimizing for new sphere-vertex each time an edge is removed. This procedure is iterated until the required number of vertices is achieved.
+
+In our case, since our model is capable of generating sets with different cardinalities, we are not required to set a fixed number of primitives for every shape. Therefore we use the following method to compute a sphere-mesh with adaptive number of vertices. Specifically, for every shape in the dataset, we start by computing a sphere-mesh with 10 vertices. Then, we sample 10K points both on the sphere-mesh
+
+
+Figure 5: Shape parsing on the chairs dataset. From top to bottom, we show ground-truth shapes, results by Tulsiani et al. [40], results by our method using sphere-mesh handles, and our method using cuboids handles. Note how our results (last two rows) are able to generate handles with much better details such as the stripes on the back of the chair (first column), legs on wheel chairs (second column) and armrests in several other columns.
+
+surface and the original mesh. If the Hausdorff distance between the point clouds is smaller than $\epsilon = 0.2$ (point clouds are normalized to fit the unit sphere), we keep the current computed sphere-mesh. Otherwise, we compute a new sphere-mesh by incrementing the number of vertices. This procedure continues until we reach a maximum of 40 vertices. This adaptive sphere-mesh computation allows our model to achieve a good balance between shape complexity and summarization - simpler shapes will be naturally represented with a smaller number of primitives. We note that the sphere-mesh computation allows the resulting mesh to contain not only triangles, but also edges (i.e. degenerate triangles). For simplicity, we make no distinction between sphere-triangles or edges: edges are simply triangles that have two identical vertices.
+
+# 4.2. Shape Parsing
+
+The shape parsing task is to compute a small set of primitives from non-parsimonious, raw, 3D representations, like occupancy grids, meshes or point clouds. We analyze the ability of our model in performing shape parsing using a similar setup to [32, 40]. Specifically, following the notation defined in Section 3, we train a model $f_{\theta}$ using input-output pairs $\langle x_i, S_i \rangle$ , where $x_i$ corresponds to a point cloud with 1024 points and $S_i$ is a set of handles summarizing the shape represented by $x_i$ . We use a PointNet [35] encoder to process a point cloud with 1024 points and generate a 1024 dimensional encoding. This encoding is then used as an input for our two-branched set decoder. Both branches follow the same architecture: 3 fully connected layers with 256 hidden neurons followed by batch normalization and ReLU activations. The only difference between the two branches is in the last layer. Assume $N$ is the maximum set cardinality generated by our model and $D$ is the handle dimensionality (i.e. number of parameters of each handle descriptor,
+
+
+Figure 6: Shape parsing on the airplanes and animals datasets. From top to bottom, we show ground-truth shapes, results by Tulsiani et al. [40], results by Paschalidou et al. [32], and results by our model trained using sphere-mesh handles. Our results contain accurate geometric details, such as the engines on the airplanes and animal legs that are clearly separated.
+
+ | Handle type | Category |
| Chairs | Airplanes | Animals |
| [40] | Cuboid | 0.129 | 0.065 | 0.334 |
| [32] | Superquadric | 0.141 | 0.181 | 0.751 |
| Ours | Cuboid | 0.311 | - | - |
| Sphere-mesh | 0.298 | 0.307 | 0.761 |
+
+Table 1: Quantitative results for shape parsing. Intersection over union computed on the reconstructed shapes. The best self-supervised results are shown in bold font.
+
+which happens to be $D = 12$ for both sphere-mesh and cuboid). Then $g_{p}$ outputs $N \times D$ values followed by a tanh activation, while $g_{e}$ outputs $N$ values followed by a sigmoid activation. We set $N = 30$ for cuboid handles and $N = 50$ for sphere-meshes. The model is trained end-to-end by using the alternating training described in Section 3. Training is performed using the Adam optimizer with a learning rate of $10^{-3}$ for 5K iterations in each stage.
+
+Figures 5 and 6 show visual comparisons of our method with previous work. Qualitatively, our method generates shape handles with accurate geometric details, including many thin structures that previous methods struggle with.
+
+Quantitative comparisons We compare our method against [32, 40] using intersection over union (IoU) metric and results are shown in Table 1. As expected, when using cuboids as handles, our method leverages the annotated data from the PartNet [29] to achieve significantly more accurate shape approximations (more than twice the IoU in comparison). On the other hand, as [32, 40] are trained without leveraging annotated data, a more fair comparison is between theirs and our method using sphere-mesh handles, which are computed automatically. Our method still clearly
+
+
+Figure 7: Ablation studies. Shapes generated from a model trained without our proposed handle similarity metric (first row), model trained without the two-stage training procedure (second row), and our full model (last row). Note that comparing handles using just $\ell_2$ -norm (first row) yields poor results. Training $g_p$ and $g_e$ at the same time (instead of alternating) yields reasonable results, but some parts are missing and/or poorly oriented.
+
+| w/o similarity | w/o alternate | full model |
| 0.192 | 0.320 | 0.352 |
+
+Table 2: Quantitative results of ablation studies comparing our full model with two variations that lack our handle similarity metric and alternate training procedure respectively.
+
+outperforms theirs in all categories – chairs, airplanes and animals. This shows that even though a neural network in theory should be able to learn the best parsimonious shape representations, using self-supervision generated by shape summarization techniques (e.g. sphere-meshes) can still help it achieve more accurate approximations.
+
+# 4.3. Ablation studies
+
+We investigated the influence of the two main contributions of this work: the similarity metric for handles and the alternating training procedure for $g_{p}$ and $g_{e}$ . To do so, we adopt a shape-handle auto-encoder and compare different variations by computing the IoU of reconstructed shapes in a held-out test set. The auto-encoder architecture is very similar to the one used in shape parsing, except for the encoder - it still follows a PointNet architecture, but every "point" is actually a handle treated as a point in a $D$ -dimensional space. We analyzed three different variations. In the first one, we simply used the $\ell_2$ -norm between the handle parameters (cuboids, in this case). As shown in Figure 7 and Table 2, the proposed handle similarity metric has a significant impact on the quality of the generated shapes. The second variation consists of training the same model, but without using the alternating procedure described in Section 3. Figure 7 shows that the alternating training procedure generates more accurate shapes, with fewer missing parts and better cuboid orientation.
+
+
+Figure 8: Latent space interpolation Sets of handles can be interpolated by linearly interpolating the latent representation $z$ . Transitions are smooth and generate plausible intermediate shapes. Notice that the interpolation not only changes handle parameters, but also adds new handles / removes existing handles as necessary.
+
+# 4.4. Applications
+
+In this section, we demonstrate the use of our generative model in several applications. We employed a Variational Auto-Encoder (VAE) [20] for this purpose. It follows the same architecture as the auto-encoder described in Section 4.3 with the only difference being that the output of the encoder (latent representation $z$ ) has dimensionality 256 instead of 512. Additionally, following [11], we added an additional regularization term to the training objective:
+
+$$
+\mathcal {L} _ {r e g} = \| c o v (Q (x) + \delta) \| _ {2} + \mathbb {E} _ {x \sim \mathcal {D}} [ Q (x) ] \tag {6}
+$$
+
+where $Q$ is the encoder, $cov(\cdot)$ is the covariance matrix, $\| \cdot \| _2$ is the Frobenius norm, $x$ is input handle set and $\delta$ is random noise sampled from $\mathcal{N}(0,cI)$ . Thus, the network is trained minimizing the following function:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\text {r e c}} + \lambda \mathcal {L} _ {\text {r e g}}. \tag {7}
+$$
+
+In all our experiments, we used $\lambda = 0.1$ and $c = 0.01$ . The model is trained using the alternate procedure described before, i.e. $\mathcal{L}_{rec}$ is replaced by $C(z,S)$ while training $g_{p}$ .
+
+Interpolation. Once the VAE model is trained, we are able to morph between two shapes by linearly interpolating their latent representations $z$ . In particular, we sample two values $z_{1}, z_{2}$ from $\mathcal{N}(0, I)$ and generate new shapes by passing the interpolated encodings $\alpha z_{1} + (1 - \alpha)z_{2}$ through the decoder $g$ , where $\alpha \in [0, 1]$ . Results using cuboid handles are presented in Figure 8. Note that the shapes are smoothly interpolated, with new handles added and old handles removed as necessary when the overall shape deforms. Additionally, relationships between handles, like symmetries, adjacency and support, are preserved, thanks to the latent space learned by our model, even though such characteristics are never explicitly specified as supervision.
+
+Handle completion. Consider an incomplete set of handles $A = \{a_{i}\}_{i=1}^{N}$ as input, the handle completion task is to generate a complete set of handles $A^{*}$ , such that $A^{*}$ contains not only the handles in the input $A$ but also necessary additional handles that result in a plausible shape. For example, given a single cuboid handle as shown in Figure 9, we want to generate a complete chair that contains that input handle. We perform this task by finding a latent representation $z^{*}$ that generates a set of handles approximating the
+
+
+Figure 9: Results of handle completion. Recovering full shape from incomplete set of handles. Using $\gamma$ to control the complexity of the completed shape (left). Predicting a complete chair from a single handle (right).
+
+elements in $A$ . Specifically, we solve the following optimization problem:
+
+$$
+z ^ {*} = \underset {z \in \mathcal {Z}} {\operatorname {a r g m i n}} C (z, A), \quad A ^ {*} = g \left(z ^ {*}\right), \tag {8}
+$$
+
+where $C$ is the coverage metric defined in Equation 4 and $A^{*}$ is the completed shape (i.e. output of the decoder using $z^{*}$ as input). We can also use the existence prediction branch $(g_{e})$ in this framework to reason about how complex we want the completed shapes to be. Specifically, we add an additional term to the optimization:
+
+$$
+z ^ {*} = \underset {z \in \mathcal {Z}} {\operatorname {a r g m i n}} C (z, A) + \gamma \sum_ {i = 1} ^ {N} \left[ g _ {e} (z) \right] _ {i}, \tag {9}
+$$
+
+where $\gamma$ controls the complexity of the shape. If $\gamma = 0$ , we are not penalizing a set with multiple handles - only coverage matters. As $\gamma$ increases, existence of multiple handles is penalized more, leading to a solution with a lower cardinality. As can be seen in Figure 9, our model is capable of recovering plausible chairs even when given a single handle. In addition, we can generate multiple proposals for $A^{*}$ by initializing the optimization with different values of $z$ . More results can be found in the supplemental material.
+
+Shape editing. For editing shapes, we use a similar optimization based framework. Consider an original set of handles $A$ describing a particular shape. Assume that the user made edits to $A$ by modifying the parameters of some handles, creating a new set $A'$ . Our goal is to generate a plausible new shape $A^*$ from $A'$ , while minimizing the deviation from the original shape. To achieve this goal, we solve the following minimization problem via gradient descent:
+
+$$
+z ^ {*} = \underset {z \in \mathcal {Z}} {\operatorname {a r g m i n}} C \left(z, A ^ {\prime}\right) + \gamma \| z - z _ {A} \| _ {2}, \quad A ^ {*} = g \left(z ^ {*}\right) \tag {10}
+$$
+
+where $z_{A}$ is the latent representation of the original shape. The intuition for Equation 10 is simple: we want to generate a plausible shape that approximates the user edits by minimizing $C(z, A')$ but also keep the overall characteristics of the original shape $A$ by adding a penalty for deviating too much from $z_{A}$ . Results are shown in Figure 10. As observed in the figure, when the user edits one of the handles,
+
+
+Figure 10: Editing chairs. Given an initial set of handles, a user can modify any handle (yellow). Our model then updates the entire set of handles, resulting in a modified shape which observes the user edits while preserving the overall structure.
+
+our model can automatically modify the shape of the entire chair while preserving its overall structure.
+
+Limitations. Our method has several limitations to be addressed in future work. First, during training we set a maximum number of handles to be generated. Increasing this number would allow more complex shapes but also entail a larger network with higher capacity. Therefore, there is a trade-off between the compactness of the generative model and the desired output complexity. Furthermore, our method currently does not guarantee the output handles observe certain geometric constraints, such as parts that need to be axis-aligned or orthogonal to each other. For manmade shapes, these are often desirable constraints and even slight deviation is immediately noticeable. While our model can already learn geometric relationships among handles from the data directly, generated shapes might benefit from additional supervision enforcing geometric constraints.
+
+# 5. Conclusion
+
+We presented a method to generate shapes represented as sets of handles - lightweight proxies that approximate the original shape and are amenable to high-level tasks, like shape editing, parsing and animation. Our approach leverages pre-defined sets of handles as supervision, either through annotated data or self-supervised methods. We proposed a versatile similarity metric for shape handles that can easily accommodate different types of handles, and a two-branch network architecture to generate handles with varying cardinality. Experiments show that our model is capable of generating compact and accurate shape approximations, outperforming previous work. We demonstrate our method in a variety of applications, including interactive shape editing, completion, and interpolation, leveraging the latent space learned by our model to guide these tasks.
+
+Acknowledgements. This work is supported in part by a gift from Adobe Research, NSF grants 1908669, 1749833. Our experiments were performed in the UMass GPU cluster obtained under the Collaborative Fund managed by the Massachusetts Technology Collaborative.
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas J Guibas. Learning Representations and Generative Models For 3D Point Clouds. In International Conference on Machine Learning, 2018.
+[2] Marco Attene, Bianca Falcidieno, and Michela Spagnuolo. Hierarchical mesh segmentation based on fitting primitives. The Visual Computer, 22(3):181-193, 2006.
+[3] Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
+[4] Bernard Chazelle and David Paul Dobkin. Optimal Convex Decompositions, pages 63-133. Number C in Machine Intelligence and Pattern Recognition. 1985.
+[5] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In The IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[6] Christopher B 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, 2016.
+[7] David Cohen-Steiner, Pierre Alliez, and Mathieu Desbrun. Variational shape approximation. In ACM SIGGRAPH 2004 Papers, SIGGRAPH '04, New York, NY, USA, 2004. ACM.
+[8] Haoqiang Fan, Hao Su, and Leonidas Guibas. A Point Set Generation Network for 3D Object Reconstruction from a Single Image. In IEEE Conference on Computer Vision and Pattern Recognition, 2017.
+[9] Matheus Gadelha, Subhansu Maji, and Rui Wang. 3d shape generation using spatially ordered point clouds. In British Machine Vision Conference (BMVC), 2017.
+[10] Matheus Gadelha, Subhransu Maji, and Rui Wang. Unsupervised 3D Shape Induction from 2D Views of Multiple Objects. In International Conference on 3D Vision (3DV), 2017.
+[11] Matheus Gadelha, Rui Wang, and Subhransu Maji. Multiresolution Tree Networks for 3D Point Cloud Processing. In ECCV, 2018.
+[12] Ran Gal, Olga Sorkine, Niloy J. Mitra, and Daniel Cohen-Or. iwires: An analyze-and-edit approach to shape manipulation. ACM Transactions on Graphics (Siggraph), 28(3):#33, 1-10, 2009.
+[13] Kyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna, William T Freeman, and Thomas Funkhouser. Learning shape templates with structured implicit functions. In International Conference on Computer Vision, 2019.
+[14] Giorgio Gori, Alla Sheffer, Nicholas Vining, Enrique Rosales, Nathan Carr, and Tao Ju. Flowrep: Descriptive curve networks for free-form design shapes. ACM Transaction on Graphics, 36(4), 2017.
+[15] Christian Hane, Shubham Tulsiani, and Jitendra Malik. Hierarchical surface prediction for 3d object reconstruction. In International Conference on 3D Vision (3DV), 2017.
+[16] D. D. Hoffman and W. A. Richards. Parts of recognition. Cognition, 18(1-3):65-96, 1984.
+
+[17] Zhongping Ji, Ligang Liu, and Yigang Wang. B-mesh: A modeling system for base meshes of 3d articulated shapes. Computer Graphics Forum, 29(7):2169-2177, 2010.
+[18] Oliver Van Kaick, Noa Fish, Yanir Kleiman, Shmuel Asafi, and Daniel Cohen-OR. Shape segmentation by approximate convexity analysis. ACM Trans. Graph., 34(1), 2014.
+[19] Angjoo Kanazawa, Shubham Tulsiani, Alexei A. Efros, and Jitendra Malik. Learning category-specific mesh reconstruction from image collections. In ECCV, 2018.
+[20] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
+[21] Jun Li, Kai Xu, Siddhartha Chaudhuri, Ersin Yumer, Hao Zhang, and Leonidas Guibas. Grass: Generative recursive autoencoders for shape structures. ACM Transactions on Graphics (Proc. of SIGGRAPH 2017), 36(4):to appear, 2017.
+[22] Jyh-Ming Lien and Nancy M. Amato. Approximate convex decomposition of polyhedra. In Proceedings of the 2007 ACM Symposium on Solid and Physical Modeling, SPM '07, 2007.
+[23] Zhaoliang Lun, Matheus Gadelha, Evangelos Kalogerakis, Subhransu Maji, and Rui Wang. 3d shape reconstruction from sketches via multi-view convolutional networks. In International Conference on 3D Vision (3DV), 2017.
+[24] Ravish Mehra, Qingnan Zhou, Jeremy Long, Alla Sheffer, Amy Gooch, and Niloy J. Mitra. Abstraction of man-made shapes. In ACM SIGGRAPH Asia 2009 Papers, SIGGRAPH Asia '09. ACM, 2009.
+[25] Ravish Mehra, Qingnan Zhou, Jeremy Long, Alla Sheffer, Amy Gooch, and Niloy J. Mitra. Abstraction of man-made shapes. ACM Transactions on Graphics, 28(5):#137, 1-10, 2009.
+[26] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3D reconstruction in function space. In The IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[27] A. T. Miller, S. Knoop, H. I. Christensen, and P. K. Allen. Automatic grasp planning using shape primitives. In 2003 IEEE International Conference on Robotics and Automation (Cat. No.03CH37422), volume 2, pages 1824-1829 vol.2, 2003.
+[28] 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), Siggraph Asia 2019, 38(6):Article 242, 2019.
+[29] Kaichun Mo, Shilin Zhu, Angel X. Chang, Li Yi, Subarna Tripathi, Leonidas J. Guibas, and Hao Su. Partnet: A largescale benchmark for fine-grained and hierarchical part-level 3d object understanding. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[30] Chengjie Niu, Jun Li, and Kai Xu. Im2struct: Recovering 3d shape structure from a single rgb image. In Computer Vision and Pattern Recognition (CVPR), 2018.
+[31] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning
+
+Continuous Signed Distance Functions for Shape Representation. In The IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[32] Despoina Paschalidou, Ali Osman Ulusoy, and Andreas Geiger. Superquadrics revisited: Learning 3d shape parsing beyond cuboids. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[33] Stephan R. Richter and Stefan Roth. Matryoshka Networks: Predicting 3D Geometry via Nested Shape Layers. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018.
+[34] Amir Arsalan Soltani, Haibin Huang, Jiajun Wu, Tejas Kulkarni, and Joshua Tenenbaum. Synthesizing 3d shapes via modeling multi-view depth maps and silhouettes with deep generative networks. In CVPR, 2017.
+[35] Hao Su, Charles Qi, Kaichun Mo, and Leonidas Guibas. PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation. In CVPR, 2017.
+[36] Maxim Tatarchenko, Alexey Dosovitskiy, and Thomas Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In IEEE International Conference on Computer Vision (ICCV), 2017.
+[37] Jean-Marc Thiery, Emilie Guy, and Tamy Boubekeur. Sphere-meshes: Shape approximation using spherical quadric error metrics. ACM Transaction on Graphics (Proc. SIGGRAPH Asia 2013), 32(6):Art. No. 178, 2013.
+[38] Jean-Marc Thiery, Émilie Guy, Tamy Boubekeur, and Elmar Eisemann. Animated mesh approximation with sphereshes. ACM Trans. Graph., pages 30:1-30:13, 2016.
+[39] Anastasia Tkach, Mark Pauly, and Andrea Tagliasacchi. Sphere-meshes for real-time hand modeling and tracking. ACM Trans. Graph., 35(6), 2016.
+[40] Shubham Tulsiani, Hao Su, Leonidas J. Guibas, Alexei A. Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
+[41] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In ECCV, 2018.
+[42] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis. ACM Transactions on Graphics (SIGGRAPH), 36(4), 2017.
+[43] Chuhua Xian, Hongwei Lin, and Shuming Gao. Automatic cage generation by improved obbs for mesh deformation. The Visual Computer, 28(1):21-33, 2012.
+[44] Yi Zhou, Connelly Barnes, Lu Jingwan, Yang Jimei, and Li Hao. On the continuity of rotation representations in neural networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[45] Yang Zhou, Kangxue Yin, Hui Huang, Hao Zhang, Minglun Gong, and Daniel Cohen-Or. Generalized cylinder decomposition. ACM Trans. Graph., 34(6), 2015.
+[46] Zhou Ren, Junsong Yuan, Chunyuan Li, and Wenyu Liu. Minimum near-convex decomposition for robust shape representation. In 2011 International Conference on Computer Vision, Nov 2011.
\ No newline at end of file
diff --git a/learninggenerativemodelsofshapehandles/images.zip b/learninggenerativemodelsofshapehandles/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b557869bc7232bb810885f3494deeeeddb128042
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af52a51f803ca184c125c1e12a1363efac70d6df860b395e26623c58fc96217d
+size 419578
diff --git a/learninggenerativemodelsofshapehandles/layout.json b/learninggenerativemodelsofshapehandles/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6c6373eb7f313297bbf042d76218f0736a03eadd
--- /dev/null
+++ b/learninggenerativemodelsofshapehandles/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6526010ad0b2b40366d88d8a892571a94eb3bf73ffa1c4167a6e71bcd35bf381
+size 445742
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_content_list.json b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2bb9fdc20911afa369aa3940422479cd7ef5deea
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2beb656fe5f8e49e4579997f64cde811bb1e0b3bf2cdd82185873c720e32b8af
+size 63149
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_model.json b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a6bf087e943a7aec2d3d45eac244ae5d471914d6
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:681d6f633b2dcfa6b2616a9b29515795f80e9477ae6e2ea088ebac3982027458
+size 77510
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_origin.pdf b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..96e79e9b6273c3485ffae04ddfa05feb046064f4
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/edbcbaab-b730-4284-88b1-195f5580540c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d587e615d8296f4196ce1c44baadbbbd7f0bc05f13701b2c546586f8dbdcfb35
+size 2226304
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/full.md b/learninggeocentricobjectposeinobliquemonocularimages/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f1d701d4f00ff39e3475b6a8dc225d3448dcb474
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/full.md
@@ -0,0 +1,243 @@
+# Learning Geocentric Object Pose in Oblique Monocular Images
+
+Gordon Christie $^{1,*}$ Rodrigo Rene Rai Munoz Abujder $^{1,*}$ Kevin Foster $^{1}$ Shea Hagstrom $^{1}$ Gregory D. Hager $^{2}$ Myron Z. Brown $^{1}$ $^{1}$ The Johns Hopkins University Applied Physics Laboratory $^{2}$ The Johns Hopkins University {gordon.christie,rai.munoz,kevin.foster, shea.hagstrom, myron.brown}@jhuapl.edu hager@cs.jhu.edu
+
+# Abstract
+
+An object's geocentric pose, defined as the height above ground and orientation with respect to gravity, is a powerful representation of real-world structure for object detection, segmentation, and localization tasks using RGBD images. For close-range vision tasks, height and orientation have been derived directly from stereo-computed depth and more recently from monocular depth predicted by deep networks. For long-range vision tasks such as Earth observation, depth cannot be reliably estimated with monocular images. Inspired by recent work in monocular height above ground prediction and optical flow prediction from static images, we develop an encoding of geocentric pose to address this challenge and train a deep network to compute the representation densely, supervised by publicly available airborne lidar. We exploit these attributes to rectify oblique images and remove observed object parallax to dramatically improve the accuracy of localization and to enable accurate alignment of multiple images taken from very different oblique viewpoints. We demonstrate the value of our approach by extending two large-scale public datasets for semantic segmentation in oblique satellite images. All of our data and code are publicly available1.
+
+# 1. Introduction
+
+In this paper, we study the problem of rectifying oblique monocular images from overhead cameras to remove observed object parallax with respect to ground, enabling accurate object localization for Earth observation tasks including semantic mapping [6], map alignment [32, 3], change detection [7], and vision-aided navigation [11]. Current state-of-the-art methods for these tasks focus on near-nadir images without the confounding effect of parallax; however, the vast majority of overhead imagery is oblique. For re
+
+
+Figure 1: Our method takes monocular RGB images, predicts object height (meters) and geocentric pose, and rectifies height to geospatially accurate 3D models suitable for reliable alignment by a conventional method.
+
+sponse to natural disasters and other dynamic world events, often only oblique images can be made available in a timely manner. The ability to rectify oblique monocular images to remove parallax will enable a dramatic increase in utility of these methods to address real-world problems.
+
+To address this very challenging problem, we first draw inspiration from Gupta et al. [12] who proposed geocentric pose, or height above ground and orientation with respect to gravity, as a powerful representation to impose real-world structure on object detection, segmentation, and localization tasks using RGBD images. Hand-crafted features based on
+
+this idea have even featured prominently in state-of-the-art deep learning methods for indoor semantic segmentation [13, 20, 14, 4, 24, 18, 22, 30]. For close-range vision tasks, height and orientation have been derived directly from stereo-computed depth and more recently from monocular depth predicted by deep networks [17]. For long-range vision tasks such as Earth observation, depth cannot be reliably estimated with monocular images, so we further draw inspiration from recent work in monocular height above ground prediction [26, 21, 10, 1, 2, 16, 15, 33] and optical flow prediction from static images [23, 29, 28, 9]. We develop an encoding of geocentric pose and train a deep network to compute the representation densely. Our model jointly learns to predict height above ground and dense flow vectors mapping surface features to ground level. Figure 1 illustrates the use of our method to rectify overhead images taken from very different oblique viewpoints and then align the rectified height images – for this example, by affine homography. Height and flow for this example were derived from lidar, but example predictions from our model are shown in Section 4.3. While our experimental results are demonstrated for satellite images, we believe our method can also be successfully applied to airborne cameras and even ground-based cameras.
+
+Our contributions are summarized as follows:
+
+- We adopt geocentric pose as a general representation for geometry in oblique monocular images and are the first to report the following: 1) a method to supervise its learning, and 2) a method for prediction without reliance on depth estimates which cannot be reliably determined from monocular images at longer ranges.
+- We extend the Urban Semantic 3D (US3D) dataset [2] to include labels for the geocentric pose task, enabling public research and comparative analysis of methods. We further extend US3D to include additional images with a wide range of oblique viewing angles from the SpaceNet 4 (SN4) contest [31] to enable more comprehensive parametric evaluation of this task.
+- We demonstrate that our model designed to jointly learn height and orientation performs better than a model trained for each task independently, and increases efficiency through shared weights. We further demonstrate the need for rotation augmentations to overcome bias from severely limited viewpoint diversity due to sun-synchronous satellite orbits.
+- We demonstrate the efficacy of our method for image rectification to improve intersection over union (IoU) scores for semantic segmentation with oblique images.
+- All of our data and code are publicly available.
+
+# 2. Related Work
+
+Our approach draws inspiration from a large body of work exploiting object height and orientation with respect
+
+to ground to improve semantic segmentation and related tasks for RGBD images. Our encoding of this representation in a deep network is inspired by recent progress in predicting height above ground from single images and predicting optical flow from static images. Before introducing the details of our method, we review these motivating works.
+
+# 2.1. Geocentric Pose
+
+Gupta et al. [12] proposed geocentric pose - height and orientation with respect to ground - as a general feature for object recognition and scene classification. Gupta et al. [13] further proposed to encode horizontal disparity (or depth), height above ground, and orientation with respect to gravity as the popular three-channel HHA representation and demonstrated significant performance improvements for object detection, instance segmentation, and semantic segmentation tasks. Hand-crafted HHA features have since featured prominently even in deep learning state-of-the-art methods for indoor semantic segmentation [20, 14, 4, 24, 18, 22, 30] as well as object detection [20, 25] and semantic scene completion [19]. All of these works involve close-range indoor vision tasks and derive geocentric pose from depth, with height above ground approximated relative to the lowest point in an image [12]. In our work, we learn to predict these attributes directly in complex outdoor environments based on appearance without depth which is difficult to estimate reliably from images captured at long range. We also accurately predict absolute height above ground from monocular images. This is necessary for accurately rectifying the images, removing observed object parallax to improve accuracy of localization and enable accurate alignment of multiple images taken from very different oblique viewpoints.
+
+# 2.2. Monocular Height Prediction
+
+The successes of deep learning methods for monocular depth prediction [17] have motivated recent work to directly learn to predict height from appearance in a single image. The earliest work to our knowledge was conducted by Srivastava et al. (2017) who proposed a multitask convolutional neural network (CNN) for joint height estimation and semantic segmentation of monocular aerial images [26]. Mou and Zhu (2018) also proposed a CNN for height estimation and demonstrated its use for instance segmentation of buildings [21]. Each of these early works was evaluated using a single overhead image mosaic from a single city. Ghamisi and Yokoya (2018) proposed a conditional generative adversarial network (cGAN) for image to height translation and reported results with a single image from each of three cities [10]. Amirkolaee and Arefi (2019) proposed a CNN trained with post-earthquake lidar and demonstrated its use to detect collapsed buildings by comparing model predictions for pre- and post-event im
+
+ages [1]. To promote research with larger-scale supervision, Bosch et al. (2019) produced the Urban Semantic 3D (US3D) dataset which includes sixty-nine satellite images over Jacksonville, FL and Omaha, NE, each covering approximately one hundred square kilometers [2]. Le Saux et al. (2019) leveraged this dataset to conduct the 2019 Data Fusion Contest focused on semantic 3D reconstruction, including a novel challenge track for single-view semantic 3D [16]. The winning solutions by Kunwar [15] and Zheng et al. [33] both exploited semantic labels as priors for height prediction. In this work, we demonstrate comparable accuracy without semantic priors. We also show improved height prediction accuracy by jointly learning to predict orientation flow vectors. In addition to our experiments, we leverage and extend the US3D dataset using public satellite images from the 2018 SpaceNet 4 (SN4) contest that span a wide range of viewing angles over Atlanta, GA [31], and we demonstrate that our method to predict geocentric pose significantly improves building segmentation accuracy for oblique images.
+
+# 2.3. Optical Flow Prediction from a Static Image
+
+Our approach to learning geocentric pose is inspired by recently demonstrated methods to predict dense optical flow fields from static images with self-supervision from optical flow methods applied to videos. Pintea et al. (2014) proposed regression of dense optical flow fields from static images using structured random forests [23]. Walker (2015) proposed a CNN for ordinal regression to better generalize over diverse domains [29]. Walker et al. (2016) proposed a generative model using a variational auto-encoder (VAE) for learning motion trajectories from static images [28]. Gao et al. (2018) also explored a generative model using a cGAN but reported state-of-the-art results for optical flow prediction and action recognition with their Im2Flow regression model, a modified U-Net CNN encoder/decoder trained by minimizing both a pixel L2 loss and a motion content loss derived from a separate action recognition network that regularizes the regression network to produce realistic motion patterns [9]. To learn geocentric pose, we employ a similar U-Net architecture and demonstrate improved performance by jointly learning to predict height. We also highlight orientation bias for our task by performing rotation augmentations during training. We produce reference flow fields for supervision automatically using lidar as discussed in Section 3.3.
+
+# 3. Learning Geocentric Pose
+
+# 3.1. Representation
+
+Our representation of geocentric pose encodes height above ground and flow vectors that map surface features to ground level. A satellite pushbroom sensor model is
+
+well-approximated locally by affine projection which preserves the invariant property of parallelism [5]. We exploit this property in representing flow fields with pixel-level magnitudes and image-level orientation. Similar to [9], we represent orientation $(\theta)$ as a two-element vector, $[\sin(\theta), \cos(\theta)]$ , representing the horizontal and vertical components of the flow vectors. We observe that each feature's height above ground is intrinsic and the magnitude of its flow vector is related to that height by each image's projection. We thus employ height as a prior in our model for learning magnitude.
+
+# 3.2. Model
+
+Our model, illustrated in Figure 2, jointly predicts image-level orientation, as well as dense above-ground-level heights and flow vector magnitudes. The base architecture utilizes a U-Net decoder with a ResNet34 encoder. At the last layer of the encoder, the image-level orientation is predicted as $\sin (\theta)$ and $\cos (\theta)$ . The output of the decoder is used to predict heights, which are concatenated with the decoder output for predicting magnitudes. MSE is used for all output heads (image-level orientation, magnitude, and height), where each loss is weighted equally during training. At test time, flow vectors can be calculated by multiplying the predictions of image-level orientation and per-pixel magnitudes. We present an ablation study where height prediction is removed from the model to show its importance for learning to predict orientation and magnitude. Height is intrinsic to objects in the image, where pixels representing the same physical locations on a building in different images should have the same heights. However, magnitudes for these pixels will vary with changes to viewing geometry. We believe the intrinsic properties of height provide valuable context for predicting magnitude. We also show that the accuracy of our height predictions is comparable to state-of-the-art solutions for a public challenge dataset, and note that our network shares weights for multiple tasks, making it more efficient than having separate networks for each task.
+
+# 3.3. Supervision
+
+To enable supervised learning of our model, we have developed a pipeline for producing non-overlapping overhead RGB image tiles with lidar-derived attributes projected into each oblique image pixel, as illustrated in Figure 3. We utilized this pipeline to produce training and test datasets for our task, augmenting public data from US3D [2] and SN4 [31]. For each geographic tile, we first align each overhead image with lidar intensity using the mutual information metric and update the image translation terms in the RPC camera metadata [5]. To improve reliability of image matching, we cast shadows in each lidar intensity image using solar angle image metadata to match the shade
+
+
+Figure 2: This shows the architecture of our full approach, which uses a U-Net decoder with a ResNet34 encoder. At the last layer of the encoder, we predict the image-level orientation as $\sin (\theta)$ and $\cos (\theta)$ . At the output of the decoder, we predict per-pixel above-ground-level height values, which are concatenated with the decoder's output and used to predict per-pixel magnitudes. An MSE loss is used for all output heads. At test time, flow vectors can be calculated by multiplying image-level orientation predictions with the per-pixel magnitudes.
+
+ows observed in the RGB image. Layers produced include UTM geographic coordinates, ground-level height from the Digital Terrain Model (DTM), surface-level height from the Digital Surface Model (DSM), height above ground computed from the difference of the DSM and DTM, the shadow mask produced for image matching, and image flow vectors mapping surface-level feature pixels to their ground-level pixel coordinates. Our representation of geocentric pose is composed of height above ground and orientation with respect to ground as defined by the dense flow vectors. Both rely on knowledge of ground level in the DTM. For the lidar data used in our experiments, DTM layers were produced by professional surveyors with manual edits, but automated methods for ground classification in lidar and even in DSMs produced using satellite images also work well [8].
+
+For our experiments, we also employ semantic labels derived from public map data to demonstrate the value of our model for rectifying map features in oblique images. We project this map data into each image with the same procedure used for lidar attributes. Layers include semantic label for each pixel and ground-level footprints for buildings. Building facades are labeled separately from roofs.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+For our experiments, we extended two publicly-available datasets - US3D [2] and SN4 [31] - using the method described in Section 3.3 and illustrated in Figure 3. We train with the full resolution for each dataset.
+
+- DFC19. We use the same 2,783 training images and 50 testing images of Jacksonville, FL and Omaha, NE from US3D used for the 2019 Data Fusion Contest [16]. We also use an extended test set with 300 images
+
+
+Figure 3: Lidar-derived attributes for each RGB image include height above ground, geocentric pose flow vectors, and shadow masks. Map attributes include semantic labels, building facades, and ground-level building footprints.
+
+including more view diversity for the same geographic tiles. Images are each 2048x2048 pixels.
+
+- ATL-SN4. We produced 25,500 training images and 17,554 testing images of Atlanta, GA using public unrectified source images to closely match the rectified image tiles used for SN4, as shown in Figure 4. We used 7,702 training images and 310 testing images, cropped to $1024 \times 1024$ pixels, for our experiments.
+
+Viewpoint diversity and pixel resolution for images in the DFC19 and ATL-SN4 datasets are shown in Figure 5. Jacksonville and Omaha images were collected by MAXAR's WorldView-3 satellite on multiple dates with a variety of azimuth angles and limited off-nadir an
+
+
+SpaceNet 4 Atlanta Train / Test Split
+
+
+Our Atlanta Train / Test Split
+
+
+Figure 4: Train (blue) and test (red) tiles for the ATL-SN4 unrectified images (right) were selected to closely match the split for SpaceNet 4 orthorectified image tiles (left). Images shown are from Google Earth.
+
+
+
+
+Figure 5: Azimuth angle, off-nadir angle, and resolution (meters) is shown for Jacksonville and Omaha images from DFC19 (top) and ATL-SN4 images (bottom).
+
+gles. ATL-SN4 images were collected by MAXAR's WorldView-2 satellite during a single orbit with very limited azimuth diversity and a wide range of off-nadir angles. Together, these datasets enable thorough evaluation.
+
+# 4.2. Methods
+
+Flow Vector Regression For each test set, we present four sets of results. These include combinations of models trained with and without height supervision, and with and without train-time rotation augmentations. As discussed earlier, our datasets consist of orientation bias because of the sun-synchronous satellite orbits. To make our model generalizable to unseen orientations, we perform train-time flips and rotations randomly, which can introduce new orientation ground truth for each image at different epochs during training. Our approaches are described as follows:
+
+- FLOW Model with height prediction head removed and trained without augmentations.
+- FLOW-H Full model trained without augmentations.
+- FLOW-A FLOW trained with augmentations.
+- FLOW-HA FLOW-H trained with augmentations.
+
+For completeness, we present image-level orientation (angle) and pixel-level magnitude (mag) errors for our predictions, as they are learned separately during training. Orientation errors are measured in degrees, while magnitude errors are measured in pixels. However, we note that orientation and magnitude are typically not appropriate metrics for this task. As an example, in a nadir image where all pixel magnitudes are zero, predicting the orientation is meaningless. Similarly, in a highly-oblique image where the magnitudes are high, it is extremely important to predict the orientation accurately. We therefore measure per-pixel endpoint errors (EPE), which measure the Euclidean distance between the endpoints of the predicted and ground truth flow vectors. However, note that mag errors are equal to EPE when orientation is known from the sensor metadata, which is sometimes the case with satellite imagery. Therefore, mag errors can be an appropriate metric when orientation is known.
+
+These metrics are calculated with and without test-time rotations to show how models that do not include train-time rotations over-fit to the limited set of orientations in the train set. We also calculate per-category EPE to show how semantics affect performance. Categories from DFC19 are used, as well as a separate layer with shadow masks.
+
+Building Footprint Extraction One of the goals of this work is to enable more accurate automated-mapping from overhead imagery. With our flow vector predictions, outputs from any segmenter or detector can be input into our model and transformed to ground level. To demonstrate the accuracy of our model, we use building annotations and footprints from the DFC19 and ATL-SN4 test sets. Building annotations consist of the roof and facade labels in the image, while the footprints represent the base of the building identified from top-down lidar. Using our predicted flow vectors, we warp the building annotations to ground level and compare to the ground truth footprints.
+
+We also demonstrate the reverse capability, where we start with footprints and warp them into building annotations using our predicted flow vectors. This is useful in situations where there is a desire to overlay map data (e.g., OpenStreetMap) on imagery as an initial set of annotations. For example, when a new image is captured of an area actively being developed, we may want to pull in existing annotations so annotators do not start from scratch.
+
+We compare three results for each of the two tasks: 1) transform building annotations to footprints, and 2) transform footprints to building annotations. First, we measure
+
+IoU between the building annotations and the footprints to understand what the accuracy is when we do nothing. Second, we warp the source mask (building annotations or footprints) to the target mask using the ground truth flow vectors to get an upper bound for the IoU on what can be achieved if we perfectly predict the flow vectors. Note that we do not get perfect overlap in this case because of occluded ground pixels. Finally, we measure IoU for the warped versions of the source masks using our predicted flow vectors.
+
+# 4.3. Results
+
+Height Prediction We assess our current method, which takes the height outputs of FLOW-H, compared to two recent strong baselines [15, 33] for the very challenging DFC19 test set [16], measuring mean and root mean square (RMS) error (meters) for height predictions compared to above ground height measured from lidar. Results are shown in Table 1. Both baseline methods anchor height predictions using semantic category, and both exploit test-time ensembles to improve performance. While semantic anchors appear to improve accuracy for categories with low height variance, they do not account for the variance observed in urban scenes. Our model performs better overall without semantic priors or test-time ensembles.
+
+Figure 6 depicts building height statistics for the train and test sets, with some building heights approaching 200 meters. Achieving more reliable predictions for those rare tall objects is a topic for ongoing research. Height prediction performance in the presence of significant terrain relief has also yet to be characterized. Statistics for ground-level terrain height variation in the DFC19 and ATL-SN4 data sets are shown in Figure 7.
+
+ | mean | mean bldgs | RMS | RMS bldgs |
| Kunwar [15] | 2.69 | 8.33 | 9.26 | 19.65 |
| Zheng et al. [33] | 2.94 | 8.72 | 9.24 | 19.32 |
| Ours | 2.98 | 7.73 | 8.23 | 16.87 |
+
+Table 1: Our regression model produces height predictions with lower RMS error (meters) than baseline models that anchor height predictions with semantic category.
+
+Flow Vector Regression Our results for each of the approaches on the DFC19 test set without test-time augmentations can be seen in Table 2. The results from the same approaches applied to the test set containing rotation augmentations are shown in Table 3. The per-category results are EPE. Results in shadows, which are a separate layer (i.e., not included as part of the DFC category layer) are also included. Table 4 and Table 5 show similar results for ATL-SN4, but exclude a semantic breakdown, as the same human-validated semantic labels are not available for this dataset. The test sets consist of the original DFC19 and
+
+
+Figure 6: Height distributions in train and test sets are comparable, with some buildings approaching 200 meters.
+
+
+Figure 7: Ground-level terrain height variation statistics.
+
+ATL-SN4 test sets along with 9 additional rotation augmentations per image at intervals of 36 degrees.
+
+Two key observations can be made about these results. 1) It is clear from Table 3 and Table 5 that models trained without rotation augmentations over-fit to the orientation bias of the train set, and that train-time rotation augmentations are currently needed to create generalizable models for this task. 2) Jointly learning to predict above-ground-height improves metrics across most categories when test-time rotations are applied. Unsurprisingly, we observe the lowest EPE values for ground pixels, and some of the highest EPE errors on facades, roofs, and elevated roads, where ground truth magnitudes are highest.
+
+We show the importance of train-time rotations qualitatively in Figure 8. In the first column, where no test-time rotation was performed, we can qualitatively observe similar performance between FLOW-H and FLOW-HA. However, in the second column, when we rotate the image to an orientation not originally represented in the train set, we see FLOW-H qualitatively performing worse than FLOW-HA.
+
+Building Footprint Extraction In this section, we demonstrate the ability to transform semantic segmentations in the image space to ground-level map data, as well as pulling map data into imagery. Table 6 and Table 7 show
+
+| Method | mag | angle | EPE | ground | veg | roof | water | elevated roads | facade | shadow |
| FLOW | 2.71 | 16.11 | 3.08 | 1.39 | 3.68 | 5.44 | 1.78 | 6.86 | 7.11 | 4.03 |
| FLOW-H | 2.40 | 16.14 | 2.92 | 0.92 | 3.86 | 5.70 | 1.54 | 6.42 | 7.37 | 3.98 |
| FLOW-A | 2.91 | 17.52 | 3.24 | 1.15 | 4.04 | 6.17 | 1.57 | 7.66 | 8.32 | 4.42 |
| FLOW-HA | 2.69 | 15.09 | 3.04 | 1.06 | 4.06 | 5.89 | 1.41 | 6.89 | 7.83 | 4.25 |
+
+Table 2: Results without test-time rotations for DFC19. Lower is better for all numbers. Per-category values are all end point errors (EPE). This table highlights that models trained to generalize perform worse than models that learn the orientation bias of the train set. However, we note that the model trained without rotation augmentations and with height supervision has the best overall EPE.
+
+| Method | mag | angle | EPE | ground | veg | roof | water | elevated roads | facade | shadow |
| FLOW | 4.15 | 79.52 | 6.11 | 2.39 | 7.34 | 11.99 | 3.01 | 12.67 | 13.80 | 7.50 |
| FLOW-H | 4.07 | 78.15 | 5.95 | 2.06 | 7.29 | 12.18 | 2.94 | 12.82 | 13.86 | 7.35 |
| FLOW-A | 3.02 | 17.48 | 3.35 | 1.18 | 4.12 | 6.22 | 1.56 | 8.06 | 8.35 | 4.51 |
| FLOW-HA | 2.83 | 16.79 | 3.21 | 1.10 | 4.17 | 6.10 | 1.44 | 7.55 | 8.08 | 4.42 |
+
+Table 3: Results with test-time rotations for DFC19. Lower is better for all numbers. Per-category values are all end point errors (EPE). This table highlights that train-time rotation augmentations are currently needed to overcome the orientation bias caused by sun-synchronous satellite orbits and perform well in the presence of test-time rotations. These results also highlight that training with height supervision improves overall EPE performance over most categories. These improvements are most notable for roof, elevated roads, and facades, where accurate flow vector prediction is more important.
+
+| Method | mag | angle | EPE |
| FLOW | 3.88 | 9.64 | 4.17 |
| FLOW-H | 3.78 | 7.38 | 3.99 |
| FLOW-A | 5.37 | 15.76 | 6.03 |
| FLOW-HA | 4.79 | 16.57 | 5.38 |
+
+Table 4: Results without test-time rotations for ATL-SN4. Similar to Table 2, we see that the model trained without rotation augmentations, but with height supervision, performs best when the test set contains orientation bias.
+
+| Method | mag | angle | EPE |
| FLOW | 6.04 | 77.31 | 8.79 |
| FLOW-H | 6.30 | 81.34 | 9.04 |
| FLOW-A | 4.81 | 15.77 | 5.39 |
| FLOW-HA | 4.22 | 23.19 | 5.15 |
+
+IoU for DFC19 and ATL-SN4, respectively. Unrectified is the comparison between the building annotations and the footprints without warping. Ours is the comparison between warped versions of the original mask and target mask using the predicted flow vectors. GT follows the same pro
+
+cess as Ours, but with the ground truth flow vectors.
+
+As seen from Table 6 and Table 7, our results better capture the footprints in these datasets than the original building annotations. Note that occluded pixels prevent GT from reaching an IoU score of 1. GT represents an upper bound on what can be achieved with perfect flow vector prediction.
+
+Table 5: Results with test-time rotations for ATL-SN4. Similar to Table 3, we see that train-time rotations and height supervision are important when test-time rotations are applied.
+
+ | Building to Footprint | Footprint to Building |
| Unrectified | 0.78 (92.9%) | 0.78 (90.7%) |
| Ours | 0.83 (98.8%) | 0.82 (95.3%) |
| GT | 0.84 | 0.86 |
+
+Table 6: IoU and percentage of GT for transforming building annotations to footprints and vice versa for DFC19.
+
+ | Building to Footprint | Footprint to Building |
| Unrectified | 0.74 (89.2%) | 0.74 (86.0%) |
| Ours | 0.76 (91.6%) | 0.77 (89.5%) |
| GT | 0.83 | 0.86 |
+
+Table 7: IoU and percentage of GT for transforming building annotations to footprints and vice versa for ATL-SN4.
+
+Map Alignment Rectifying semantic labels to ground level simplifies the task of aligning maps and oblique im
+
+
+Figure 8: Orientation augmentations in training our model help to reduce bias in the satellite viewing angles. Height and flow vector ground truth and predictions from models trained with and without augmentations are shown for an example from ATL-SN4.
+
+ages as shown in Figure 1. To demonstrate this, we apply the MATLAB imregdemons function, an efficient implementation of non-parametric image registration [27], to estimate dense displacement fields between pairs of images in the DFC19 test set. We do this for aligning RGB images as a baseline and then for rectified height images to demonstrate improved alignment. Table 8 shows mean IoU scores for reference building segmentation labels rectified to ground level and compared with the reference footprints after alignment. Mean IoU is significantly improved, and the fraction of images with IoU greater than 0.5 is significantly improved.
+
+# 5. Discussion
+
+In this paper, we have introduced the novel task of learning geocentric pose, defined as height above ground and orientation with respect to gravity, for above-ground objects
+
+ | Mean | IoU > 0.5 |
| Unaligned | 0.46 | 0.40 |
| RGB aligned | 0.66 | 0.85 |
| FLOW-HA | 0.69 | 0.93 |
| FLOW-HA fixed angle | 0.69 | 0.94 |
+
+Table 8: IoU values for transforming per-pixel building annotations to footprints in other overlapping images.
+
+in oblique monocular images. While we have shown the value of this representation for rectifying above-ground features in oblique satellite images, we believe that with minor modifications our method can also be successfully applied to airborne cameras and even ground-based cameras to address a broad range of outdoor mapping, change detection, and vision-aided navigation tasks for which a single ground plane cannot be assumed.
+
+Much of the prior work on geocentric pose has focused on its exploitation as hand-crafted features for semantic segmentation. In this work, we have focused on its exploitation to rectify building segmentations to ground level, enabling geospatially accurate mapping with oblique images. Similar to much prior work with the HHA representation, we expect that our representation will also provide an effective prior for regularizing semantic segmentation predictions.
+
+While our current results clearly indicate the efficacy of the proposed method, much remains unexplored. We expect that more explicitly employing intuitive cues such as shadows and building facades will help reduce prediction error for the height variation observed in urban scenes. Further, while our rotation augmentations help account for orientation bias in satellite images, we expect that more fully accounting for true geometry and appearance variation will help address current observed failure cases. We plan to explore these ideas in future work, and we will publicly release all of our code and data.
+
+# Acknowledgments
+
+This work was supported by the Intelligence Advanced Research Projects Activity (IARPA) contract no. 2017-17032700004. This work was further supported by the National Geospatial-Intelligence Agency (NGA) and approved for public release, 20-316, with distribution statement A - approved for public release; distribution is unlimited. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, NGA, or the U.S. Government.
+
+# References
+
+[1] Hamed Amini Amirkolaee and Hossein Arefi. CNN-based estimation of pre-and post-earthquake height models from single optical images for identification of collapsed buildings. Remote Sensing Letters, 2019. 2, 3
+[2] Marc Bosch, Kevin Foster, Gordon Christie, Sean Wang, Gregory D Hager, and Myron Brown. Semantic Stereo for Incidental Satellite Images. In WACV, 2019. 2, 3, 4
+[3] Honglie Chen, Weidi Xie, Andrea Vedaldi, and Andrew Zisserman. AutoCorrect: Deep Inductive Alignment of Noisy Geometric Annotations. BMVC, 2019. 1
+[4] Yanhua Cheng, Rui Cai, Zhiwei Li, Xin Zhao, and Kaiqi Huang. Locality-Sensitive Deconvolution Networks with Gated Fusionfor RGB-D Indoor Semantic Segmentation. In CVPR, 2017. 2
+[5] Carlo de Franchis, Enric Meinhardt-Llopis, Julien Michel, J-M Morel, and Gabriele Facciolo. On stereo-rectification of pushbroom images. In ICIP, 2014. 3
+[6] Ilke Demir, Krzysztof Koperski, David Lindenbaum, Guan Pang, Jing Huang, Saikat Basu, Forest Hughes, Devis Tuia, and Ramesh Raska. DeepGlobe 2018: A Challenge to Parse the Earth through Satellite Images. In CVPRW, 2018. 1
+[7] Jigar Doshi, Saikat Basu, and Guan Pang. From Satellite Imagery to Disaster Insights. NeurIPS Workshops, 2018. 1
+[8] Liuyun Duan, Mathieu Desbrun, Anne Giraud, Frédéric Trastour, and Lionel Laurore. Large-Scale DTM Generation From Satellite Data. In CVPRW, 2019. 4
+[9] Ruohan Gao, Bo Xiong, and Kristen Grauman. Im2Flow: Motion Hallucination from Static Images for Action Recognition. In CVPR, 2018. 2, 3
+[10] Pedram Ghamisi and Naoto Yokoya. IMG2DSM: Height Simulation From Single ImageryUsing Conditional Generative Adversarial Net. IEEE Geoscience and Remote Sensing Letters, 2018. 2
+[11] Hunter Goforth and Simon Lucey. GPS-Denied UAV Localization using Pre-existing Satellite Imagery. In ICRA, 2019. 1
+[12] Saurabh Gupta, Pablo Arbelaez, and Jitendra Malik. Perceptual organization and recognition of indoor scenes from RGB-D images. In CVPR, 2013. 1, 2
+[13] Saurabh Gupta, Ross Girshick, Pablo Arbelaez, and Jitendra Malik. Learning rich features from RGB-D images for object detection and segmentation. In ECCV, 2014. 2
+[14] Saurabh Gupta, Judy Hoffman, and Jitendra Malik. Cross Modal Distillation for Supervision Transfer. In CVPR, 2016. 2
+[15] Saket Kunwar. U-Net Ensemble for Semantic and Height Estimation Using Coarse-Map Initialization. In IGARSS, 2019, 2, 3, 6
+[16] Bertrand Le Saux, Naoto Yokoya, Ronny Hansch, Myron Brown, and Greg Hager. 2019 Data Fusion Contest [technical committees]. IEEE Geoscience and Remote Sensing Magazine, 2019. 2, 3, 4, 6
+[17] Zhengqi Li and Noah Snavely. MegaDepth: Learning Single-View Depth Prediction from Internet Photos. In CVPR, 2018. 2
+
+[18] Di Lin, Guangyong Chen, Daniel Cohen-Or, Pheng-Ann Heng, and Hui Huang. Cascaded Feature Network for Semantic Segmentation of RGB-D Images. In ICCV, 2017. 2
+[19] Shice Liu, Yu Hu, Yiming Zeng, Qiankun Tang, Beibei Jin, Yinhe Han, and Xiaowei Li. See and Think: Disentangling Semantic Scene Completion. In NeurIPS, 2018. 2
+[20] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully Convolutional Networks for Semantic Segmentation. In CVPR, 2015. 2
+[21] Lichao Mou and Xiao Xiang Zhu. IM2HEIGHT: Height Estimation from Single Monocular Imagery via Fully Residual Convolutional-Deconvolutional Network. arXiv:1802.10249, 2018. 2
+[22] Seong-Jin Park, Ki-Sang Hong, and Seungyong Lee. RDFNet: RGB-D Multi-level Residual Feature Fusion for Indoor Semantic Segmentation. In ICCV, 2017. 2
+[23] Silvia L Pintea, Jan C van Gemert, and Arnold WM Smeulders. Déja vu. In ECCV, 2014. 2, 3
+[24] Xiaojuan Qi, Renjie Liao, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. 3D Graph Neural Networks for RGBD Semantic Segmentation. In ICCV, 2017. 2
+[25] Max Schwarz, Anton Milan, Arul Selvam Periyasamy, and Sven Behnke. RGB-D Object Detection and Semantic Segmentation for Autonomous Manipulation in Clutter. *IJRR*, 2018. 2
+[26] Shivangi Srivastava, Michele Volpi, and Devis Tuia. Joint height estimation and semantic labeling of monocular aerial images with cnns. In IGARSS, 2017. 2
+[27] Tom Vercauteren, Xavier Pennec, Aymeric Perchant, and Nicholas Ayache. Diffeomorphic demons: Efficient non-parametric image registration. NeuroImage, 2009. 8
+[28] Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An Uncertain Future: Forecasting from Static Images using Variational Autoencoders. In ECCV, 2016. 2, 3
+[29] Jacob Walker, Abhinav Gupta, and Martial Hebert. Dense Optical Flow Prediction from a Static Image. In ICCV, 2015. 2, 3
+[30] Weiyue Wang and Ulrich Neumann. Depth-aware CNN for RGB-D Segmentation. In ECCV, 2018. 2
+[31] Nicholas Weir, David Lindenbaum, Alexei Bastidas, Adam Van Etten, Sean McPherson, Jacob Shermeyer, Varun Kumar, and Hanlin Tang. SpaceNet MVOI: a Multi-View Overhead Imagery Dataset. In ICCV, 2019. 2, 3, 4
+[32] Armand Zampieri, Guillaume Charpiat, Nicolas Girard, and Yuliya Tarabalka. Multimodal image alignment through a multiscale chain of neural networks with application to remote sensing. In ECCV, 2018. 1
+[33] Zhuo Zheng, Yanfei Zhong, and Junjue Wang. PopNet: Encoder-Dual Decoder for Semantic Segmentation and Single-View Height Estimation. In IGARSS, 2019. 2, 3, 6
\ No newline at end of file
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/images.zip b/learninggeocentricobjectposeinobliquemonocularimages/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..39004ed62a849b9399a319c9f45aa45e76f24deb
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d4da3baa00dca78f4ae7126110301ee99181cc2ba97db539d5433bb437847500
+size 606711
diff --git a/learninggeocentricobjectposeinobliquemonocularimages/layout.json b/learninggeocentricobjectposeinobliquemonocularimages/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a3169d0f3073c5cc56e502891ab0e817c4b7fd1a
--- /dev/null
+++ b/learninggeocentricobjectposeinobliquemonocularimages/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:452b21de709b333e20e61a6f5f5eb2c8e9a2dc8bbc5945335616ef448e325a3c
+size 264067
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_content_list.json b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..54900d7848c8a17e84aeb24352857d1be6391c51
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fbfd3279be6c4316072562bd3a10327222bd0996a0d417e0ba852458d6d81598
+size 82592
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_model.json b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c3aa28f51878376baeb6b82c9d17fefd2eac747
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a1be31c6649e93aa3008294c414742c501ccf883468ff5259a40f97c0ca3985e
+size 101385
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_origin.pdf b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0cfd7639014df7227d635185b548ea624cc2c4f3
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/8d686622-66c4-4666-a41b-449cae37ab55_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5391973b1fbeb343f2ebceefbc0d2e08fa1baba2f8aa68171f9b0caeb1cdc485
+size 1701838
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/full.md b/learninghumanobjectinteractiondetectionusinginteractionpoints/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..37c5359124df0529f864c87dcefd6178b7bcaa78
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/full.md
@@ -0,0 +1,359 @@
+# Learning Human-Object Interaction Detection using Interaction Points
+
+Tiancai Wang $^{1*}$
+
+Tong Yang1
+
+Martin Danelljan
+
+Fahad Shahbaz Khan $^{3,4}$
+
+Xiangyu Zhang
+
+Jian Sun
+
+1MEGVII Technology
+
+$^{2}$ ETH Zurich, Switzerland
+
+$^{3}$ IIAI, UAE
+
+$^{4}$ Linköping University, Sweden
+
+# Abstract
+
+Understanding interactions between humans and objects is one of the fundamental problems in visual classification and an essential step towards detailed scene understanding. Human-object interaction (HOI) detection strives to localize both the human and an object as well as the identification of complex interactions between them. Most existing HOI detection approaches are instance-centric where interactions between all possible human-object pairs are predicted based on appearance features and coarse spatial information. We argue that appearance features alone are insufficient to capture complex human-object interactions. In this paper, we therefore propose a novel fullyconvolutional approach that directly detects the interactions between human-object pairs. Our network predicts interaction points, which directly localize and classify the interaction. Paired with the densely predicted interaction vectors, the interactions are associated with human and object detections to obtain final predictions. To the best of our knowledge, we are the first to propose an approach where HOI detection is posed as a keypoint detection and grouping problem. Experiments are performed on two popular benchmarks: V-COCO and HICO-DET. Our approach sets a new state-of-the-art on both datasets. Code is available at https://github.com/vaes1/IP-Net.
+
+# 1. Introduction
+
+Detailed semantic understanding of image contents, beyond instance-level recognition, is one of the fundamental problems in computer vision. Detecting human-object interaction (HOI) is a class of visual relationship detection where the task is to not only localize both a human and an object but also infer the relationship between them, such as "eating an apple" or "driving a car". The problem is challenging since an image may contain multiple humans performing the same interaction, same human simultaneously
+
+
+Figure 1. (a) Most existing approaches address the HOI detection problem where the detected bounding-boxes (human and object) from a pre-trained detector are first used to extract region-of-interest (RoI) features from the backbone. Then, a multi-stream architecture is employed where the individual scores from three parallel streams: human, object and pairwise are fused to obtain final interaction predictions for all human-object pairs. (b) Different from previous methods, our proposed approach poses HOI as a keypoint detection and grouping problem by learning to generate interaction points and vectors which are directly grouped along with human and object instances from the object detection branch.
+
+interacting with multiple objects ("sit on a couch and type on laptop"), multiple humans sharing the same interaction and object ("throw and catch ball"), or fine-grained interactions ("walk horse", "feed horse" and "jump horse"). These complex and diverse interaction scenarios impose significant challenges when designing an HOI detection solution.
+
+Most existing approaches [3, 7, 14, 39] detect human-object interactions in the form of triplets $\langle$ human, action, object $\rangle$ by decomposing the problem into two parts: object detection and interaction recognition. For object detection, a pre-trained object detector is typically employed to detect both humans and objects. For interaction recognition, several strategies exist in literature [23, 25, 34]. Most of the recent HOI detection approaches [3, 7, 14, 34] utilize a multi-stream architecture (see Fig. 1(a)) for interaction recognition. The multi-stream architecture typically contains three individual streams: a human, an object, and a pairwise. Both human and object streams encode appear
+
+ance features of human and objects, respectively whereas the pairwise stream aims at encoding the spatial relationship between the human and object. Individual scores from the three streams are then fused in a late fusion fashion for interaction recognition.
+
+While improving the HOI detection performance, state-of-the-art approaches based on the above mentioned multistream architecture are computationally expensive. During training, these instance-centric approaches require pairing all humans with all objects in order to learn both positive and negative human-object pairs. This implies that the inference time scales quadratically with the number of instances in the scene, since all human-object pairs are required to be passed through the network in order to obtain the final interaction scores. In addition to being computationally expensive, these approaches predominantly rely on appearance features and a simple pairwise stream that takes the union of the two boxes (human and object) to construct a binary image representation. We argue that this reliance on appearance features alone and coarse spatial information is insufficient to capture complex interactions, leading to inaccurate predictions. In this work, we look into an alternative approach that addresses these shortcomings by directly detecting the interactions between human-object pairs as a set of interaction points.
+
+Contributions: In this work, we propose a novel approach for HOI detection. Motivated by the recent success of anchor-free object detection methods, we pose HOI detection as a keypoint detection and grouping problem (see Fig. 1(b)). The proposed approach directly detects interactions between human-object pairs as a set of interaction points. Based on the interaction point, our method learns to generate an interaction vector with respect to the human and object center points. We further introduce an interaction grouping scheme that pairs the interaction point and vector with the corresponding human and object bounding-box predictions, from the detection branch, to produce final interaction predictions. Extensive experiments are conducted on two HOI detection benchmarks: V-COCO [9] and HICO-DET [4] datasets. Our proposed architecture achieves state-of-the-art results on both two datasets, outperforming existing instance-centric methods by a significant margin. Additionally, we perform a thorough ablation study to demonstrate the effectiveness of our approach.
+
+# 2. Related Work
+
+Object Detection: In recent years, significant progress has been made in the field of object detection [15, 17, 19, 21, 28, 29, 35, 36], mainly due to the advances in deep convolutional neural networks (CNNs). Generally, modern object detection approaches can be divided into single-stage [17, 20, 26, 27, 33] and two-stage methods [1, 15, 28]. Two-stage object detection methods typically generate can-
+
+didate object proposals and then perform classification and regression of these proposals in the second stage. On the other hand, single-stage object detection approaches work by directly classifying and regressing the default anchor box in each position. Two-stage object detectors are generally known to be more accurate whereas the main advantage of single-stage methods is their speed.
+
+Within object detection, recent anchor-free single-stage detectors [13, 31, 40, 41] aim at eliminating the requirement of anchor boxes and treat object detection as keypoint estimation. CornerNet [13] detects the bounding-box of an object as a pair of keypoints, the top-left corner and the bottom-right corner. ExtremeNet [41] further detects four extreme points and one center point of objects and groups the five keypoints into a bounding-box. CenterNet [40] models an object as a single point — the center point of its bounding-box and is also extended to Human pose estimation [6] and 3D detection task [24].
+
+Human-Object Interaction Detection Among existing human-object interaction (HOI) detection methods, the work of [9] is the first to explore the problem of visual semantic role labeling. The objective of this problem is to localize the agent (human) and object along with detecting the interaction between them. The work of [8] introduces a human-centric approach, called InteractNet, which extends the Faster R-CNN framework with an additional branch to learn the interaction-specific density map over target locations. Qi et al., [25] proposes to utilize graph convolution neural network and regards the HOI task as a graph structure optimization problem. Chao et al., [3] builds a multistream network that is based on the human-object region-of-interest and the pairwise interaction branch. The inputs to this multi-stream architecture are the predicted boundingboxes from the pre-trained detector (e.g., FPN [15]) and the original image. Human and object streams in such a multistream architecture are based on appearance features, extracted from the backbone network, to generate confidence predictions on the detected human and object boundingboxes. The pairwise stream, on the other hand, simply encodes the spatial relationship between the human and object by taking the union of the two boxes (human and object). Later works have extended the above mentioned multistream architecture by, e.g., introducing instance-centric attention [7], pose information [14] and deep contextual attention based on context-aware appearance features [34].
+
+# 3. Method
+
+Here, we present our approach based on interaction point generation (Sec. 3.3) and grouping (Sec. 3.4).
+
+# 3.1. Motivation
+
+As discussed earlier, most existing HOI detection approaches [3, 7, 34] adopt a multi-stream architecture where
+
+
+Figure 2. Overall architecture of the proposed HOI detection framework having a localization and an interaction prediction stage. As in several previous works [7, 14, 34], we adopt a standard object detector (FPN [15]) to obtain human and object bounding-box predictions. Our interaction prediction stage consists of three steps: feature extraction, interaction generation (Sec. 3.3) and interaction grouping (Sec. 3.4). The interaction generation contains two independent branches to produce interaction point and interaction vector, respectively. Interaction point and vector together with the detected human and object bounding-box predictions are then input to the interaction grouping for final HOI predictions: $\langle$ human, action, object $\rangle$ .
+
+individual scores from a human, an object, and a pairwise stream are fused in a late fusion manner for interaction recognition. We argue that such a late fusion strategy is sub-optimal since appearance features alone are insufficient to capture complex human-object interactions. Further, the pairwise stream simply takes the union of the two boxes (human and object) as the reference box to construct a binary image representation which may lead to inaccurate predictions due to the coarse spatial information.
+
+Motivated by the advances in anchor-free object detection [13, 40, 41], we regard HOI detection as interaction point estimation problem by defining the interaction between the human and an object as an interaction point. Based on the interaction point, our method also learns to produce an interaction vector with respect to the human and object center points. It then pairs the interaction points with the corresponding human and object bounding-box predictions. Different from object detection where object instances are generally independent to each other in an image, interaction point estimation in HOI is more challenging due to diverse and complex real-world interaction scenarios, e.g., multiple humans performing the same interaction or same human simultaneously interacting with multiple objects. To the best of our knowledge, we are the first to propose a HOI detection approach where interaction between the human and an object is defined as a keypoint.
+
+# 3.2. Overall Architecture
+
+Our overall architecture is shown in Fig. 2. It consists of object detection and interaction prediction. For object detection, we follow previous HOI detection works [7, 34] and employ a standard object detector, FPN [15], for gener
+
+ating bounding-boxes for all possible human and object instances in an image. The main focus of our design is a new representation for interaction prediction. It comprises three steps: feature extraction, interaction generation (Sec. 3.3) and interaction grouping (Sec. 3.4). For feature extraction, we employ the Hourglass [18] as the network backbone typically used in anchor-free single stage methods [13, 40, 41]. Given an input RGB image with size $H \times W \times 3$ , the output of the Hourglass network is a feature map with size $\frac{H}{S} \times \frac{W}{S} \times D$ , where $H, W$ are the height, width of the input image and $D, S$ are the output channels and stride, respectively. As in [2, 22], we adopt a stride of $S = 4$ to achieve a trade-off between accurate localization and computational efficiency. The resulting features from the backbone are input to the interaction generation module to produce interaction point and interaction vector. Interaction point is defined as the center point of the action between a human-object pair and is the starting point of the interaction vector. Consequently, the interaction point and vector together with the detected human and object bounding-boxes are input to the interaction grouping step for the final HOI triplet $\langle \text{human}, \text{action}, \text{object} \rangle$ prediction.
+
+# 3.3. Interaction Generation
+
+The interaction generation module contains two parallel branches: interaction point and interaction vector prediction. Both branches take the features extracted from the backbone as an input.
+
+Interaction Point Branch: Given the feature maps generated from the backbone network, a single $3 \times 3$ convolution layer is employed to produce the interaction point heatmaps of size $\frac{H}{S} \times \frac{W}{S} \times C$ , where $C$ denotes the number of in
+
+
+Figure 3. Illustration of interaction point and interaction vector on an example image. The interaction point $p$ (yellow circle) is defined as the center point of the action between human-object pair and itself serves as the starting point of the interaction vector $v$ (yellow arrow). During training, interaction point heatmaps are supervised by ground-truth Gaussian heatmaps generated from human and object center points (cyan and red circles). The raw-pixel coordinates of interaction points on the scale maps are supervised by horizontal and vertical lengths of the interaction vector using L1 loss. At inference, the generated interaction point heatmaps are used to extract top-k peak interaction points by employing a post-processing strategy, as in [13]. Based on the location of top-k interaction points, horizontal and vertical length of the interaction vector is obtained at corresponding coordinates of the scale maps.
+
+teraction categories. During training, the interaction point heatmaps are supervised by the ground-truth heatmaps with multiple peaks, where each interaction point is defined with the same Gaussian Kernel, as in [13]. We empirically fix the standard deviation in the Gaussian Kernel throughout our experiments. Note that a single keypoint location can only represent one object class in single-stage object detection [40]. Different from object detection, a single keypoint location may refer to multiple interaction categories in HOI detection since the human can have multiple interactions with a given object. For instance, the human may hold and hit with tennis racket at the same time. In such a case, both the 'hit' and 'hold' interactions are located at the same position on the heatmap but are represented by different channels. Fig. 3 shows an example interaction point (yellow circle), defined as $p_x = \frac{h_x + o_x}{2}$ , $p_y = \frac{h_y + o_y}{2}$ , for a given human-object (HO) pair having center points $h = (h_x, h_y)$ and $o = (o_x, o_y)$ , respectively. Note that interaction points are generated for categories involving both the human and an object. For interaction categories without any associated object (e.g., walk and run), the interaction point generalizes to the center point of the corresponding human. Most categories in standard HOI detection datasets [4, 9] involve both the human and an object.
+
+Interaction Vector Branch: As shown in Fig. 3, based on the interaction point $(p_x,p_y)$ , the interaction vector branch aims to predict the interaction vector towards the corresponding human center point. Given the paired human and object bounding-boxes, human center point $h$ , and object center point $o$ , the interaction point $p = (p_x,p_y)$ is calculated. Then, the interaction vector $v = (v_{x},v_{y})$ is defined such that $p + v = h$ and $p - v = o$ .
+
+The interaction vector branch is trained to predict the value of the unsigned interaction vector $v' = (|v_x|, |v_y|)$ , which is used as the ground-truth in our training. As in the interaction point branch, we employ a single $3 \times 3$ convolution layer to produce the unsigned interaction vector map $V$ of size $\frac{H}{S} \times \frac{W}{S} \times 2$ , where one is for the length of interaction vector in horizontal direction and the other is for the length of interaction vector in vertical direction. At inference, we extract four possible locations of the human center based on the interaction point and the unsigned interaction vector as,
+
+$$
+\left(x _ {h} ^ {i}, y _ {h} ^ {i}\right) = \left(p _ {x} \pm | v _ {x} |, p _ {y} \pm | v _ {y} |\right), i = 1, 2, 3, 4. (1)
+$$
+
+We further define the interaction box as the rectangle with corners given by (1). Next, we describe the interaction grouping scheme.
+
+# 3.4. Interaction Grouping
+
+During training, the interaction point and its corresponding human and object center points have a fixed geometric structure. During the inference stage, the generated interaction points need to be grouped with the object detection results (human and object bounding-boxes). This implies that the generated interaction point $p$ is paired with the human having center $h$ and object having center $o$ , if the following condition is satisfied: $h \approx p + v$ and $o \approx p - v$ .
+
+For efficient and accurate grouping of interaction points with human and object bounding-boxes, we further propose an interaction grouping scheme which utilizes soft constraints to filter out bulk of the negative HOI pairs. Fig. 4 shows an illustration of our interaction grouping scheme. It has three inputs: human/object bounding-box (cyan and red), interaction point (orange point) extracted from interaction heatmaps, and the interaction vector (orange arrow) at the location of interaction point. The four corners (in green) of the interaction box (in orange) are calculated by the given interaction point and the unsigned interaction vector, using Eq. (1). The four corners of the reference box $r_{box}$ (in purple) can be determined by the center points of the detected human and object bounding-boxes. Then, based on the generated interaction and reference boxes, we compute the vector lengths, $d_{\mathrm{tl}}$ , $d_{\mathrm{tr}}$ , $d_{\mathrm{bl}}$ , $d_{\mathrm{br}}$ , for four corners of these two boxes. In case the interaction box and the four vector lengths satisfy the constraints in (2) below, then the current human and object bounding-boxes and the interaction point are regarded as the true positive HOI pair.
+
+
+Figure 4. The procedure of interaction grouping scheme. It has three inputs: the human/object bounding-boxes from object detection branch, the interaction points from the interaction point branch and the interaction vector predicted by the interaction vector branch. The interaction box (orange box) is determined by the given interaction point and the lengths (horizontal and vertical) of the interaction vector. The reference box (purple) can also be determined by the detected human/object boxes. In case the reference box, the interaction box and human/object bounding-boxes satisfy the conditions (2), then the current human/object bounding-boxes and the interaction point are regarded as a true positive HO pair.
+
+$$
+\left\{ \begin{array}{l} \operatorname {I o U} \left(h _ {\text {b b o x}}, i _ {\text {b o x}}\right) > 0, \\ \operatorname {I o U} \left(o _ {\text {b b o x}}, i _ {\text {b o x}}\right) > 0, \\ d _ {\mathrm {t l}}, d _ {\mathrm {t r}}, d _ {\mathrm {b l}}, d _ {\mathrm {b r}} < d _ {\tau} \end{array} \right. \tag {2}
+$$
+
+Here, $h_{\mathrm{bbox}}$ and $o_{\mathrm{bbox}}$ are the given human and object bounding-boxes from object detection branch. $i_{\mathrm{box}}$ is the interaction box generated by the interaction point and the interaction vector. $d_{\mathrm{tl}}$ , $d_{\mathrm{br}}$ , $d_{\mathrm{tr}}$ and $d_{\mathrm{bl}}$ are four vector lengths of the four corners between interaction box $i_{\mathrm{box}}$ and the reference box $r_{\mathrm{box}}$ . $d_{\tau}$ is the vector length threshold set for filtering the negative HOI pairs. Interaction grouping scheme is presented in Algorithm 1.
+
+# 3.5. Model Learning
+
+For the predicted interaction point heatmap $P$ , the ground-truth heatmaps $\hat{P}$ are with all interaction points, and each of them is defined as the Gaussian Kernel. We follow the modified focal loss originally proposed in [13] to balance the positive and negative samples,
+
+$$
+L _ {p} = \frac {- 1}{N _ {p}} \left\{ \begin{array}{l l} (1 - P _ {x y c}) ^ {\alpha} \log \left(P _ {x y c}\right), & \text {i f} \hat {P} _ {x y c} = 1 \\ (1 - \hat {P} _ {x y c}) ^ {\beta} \left(P _ {x y c}\right) ^ {\alpha} \log \left(1 - P _ {x y c}\right), \mathrm {o . w .} \end{array} \right. \tag {3}
+$$
+
+where $N_{p}$ is the number of interaction points in the image. $\alpha$ and $\beta$ are the hyper-parameters to control the contribution of each point (we set $\alpha$ to 2 and $\beta$ to 4, as in [13]). For the predicted interaction vector maps $V$ , we use the value of
+
+# Algorithm 1 Interaction Grouping
+
+# Input:
+
+Human/object bboxes from object detector: $H_{\mathrm{bbox}}$ $O_{\mathrm{bbox}}$ Interaction point and vector heatmaps: $P,V$ Human, object and action score thresholds: $h_\tau ,o_\tau ,a_\tau$ Vector length threshold for corners: $d_{\tau}$
+
+# Output: HOI triplets with final score.
+
+// Convert heatmaps $P$ into an interaction point set $A$ . // Extract the interaction vectors from $V$ .
+
+# for $h_{\mathrm{box}} \in H_{\mathrm{bbox}}, o_{\mathrm{box}} \in O_{\mathrm{bbox}}, a \in A$ do
+
+if $h_{\mathrm{score}} > h_{\tau}$ , $o_{\mathrm{score}} > o_{\tau}$ , $a_{\mathrm{score}} > a_{\tau}$ then
+
+// Obtain interaction box $i_{\mathrm{box}}$ using Ed. 1.
+
+// Calculate reference box $r_{\mathrm{box}}$ by $h_{\mathrm{box}}$ and $o_{\mathrm{box}}$
+
+if $h_{\mathrm{bbox}}$ $o_{\mathrm{bbox}}$ $i_{\mathrm{box}}$ $r_{\mathrm{box}}$ satisfy Condition (2) then
+
+$s_{\mathrm{f}} \gets h_{\mathrm{score}} \cdot o_{\mathrm{score}} \cdot p_{\mathrm{score}}$
+
+// Output the current HOI pair with final score $s_{\mathrm{f}}$ .
+
+end if
+
+end if
+
+end for
+
+the unsigned interaction vector $v_{k}^{\prime} = (|v_{x}|_{k}, |v_{y}|_{k})$ at the interaction point $p_{k}$ as the ground-truth. Then, L1 loss is employed for all the interaction points,
+
+$$
+L _ {v} = \frac {1}{N} \sum_ {k = 1} ^ {N} \left| V _ {p _ {k}} - v _ {k} ^ {\prime} \right|. \tag {4}
+$$
+
+Here $V_{p_k}$ denotes the predicted interaction vectors at point $p_k$ . The overall loss function is summarized as,
+
+$$
+L _ {t o t} = L _ {p} + \lambda_ {v} L _ {v}, \tag {5}
+$$
+
+where $\lambda_v$ is the weight for the vector loss term. Here we simply set $\lambda_v = 0.1$ for all our experiments.
+
+# 4. Experiments
+
+# 4.1. Datasets and Metrics
+
+Datasets: We conduct comprehensive experiments on two challenging HOI datasets: V-COCO [9] and HICO-DET [4]. The V-COCO dataset contains 2533, 2867, and 4946 images for training, validation and testing, respectively. Typically, the combined training and validation sets (5400 images in total) are used for model training. Human instances in V-COCO dataset has 26 binary action labels and three action categories (cut, hit, eat) are annotated with two types of targets (i.e., instrument and direct object). Note that three classes (run, stand, walk) are annotated with no interaction object. The HICO-DET dataset contains 38,118 images for training and 9658 images for testing. In this dataset, each human instance is annotated with 600 classes of different interactions, corresponding to 80 object categories and 117 action verbs. Note that those 117 action verbs include the 'no interaction' class.
+
+Metrics: We follow the standard evaluation protocols, as in [4, 9], to evaluate our proposed method. The results are reported in terms of role mean Average Precision $(\mathrm{mAP}_{\mathrm{role}})$ . In $\mathrm{mAP}_{\mathrm{role}}$ , one HOI triplet is regarded as a true positive only when both the human and object detected bounding-boxes have IoUs (intersection-over-union) greater than 0.5 with the respective ground-truth and the associated interaction class is correctly classified.
+
+# 4.2. Implementation Details
+
+For interaction prediction, we use Hourglass-104 [18] as feature extractor, pre-trained on MS COCO (train2017 set), as in [40]. The head network for the interaction point and interaction vector generation is randomly initialized. During training, we adopt an input resolution of $512 \times 512$ . This yields an output resolution of $128 \times 128$ for the Hourglass backbone. We employ standard data augmentation techniques (random flip, random scaling (between 0.6 to 1.3), cropping, and color jittering) and use Adam optimizer [11] to optimize the loss function during training. During test, we use flip augmentation to obtain final predictions. Following [40], we use batch-size of 29 (on 5 GPUs, with master GPU batch-size 4) and learning rate $2.5 \cdot 10^{-4}$ for 50 epochs with $10 \times$ learning rate drop at 40 epoch. For detection branch, we follow previous HOI detection methods [7, 14, 34] and utilize Faster-RCNN [28] with ResNet-50-FPN [15] pre-trained on COCO [16] train2017 split. To obtain bounding-boxes at inference, we set score threshold greater than 0.4 for humans and 0.1 for objects. These score thresholds are relatively lower than the thresholds set in [7, 34], since the interaction box generated by our interaction point and vector can filter out most negative pairs. For interaction generation, Hourglass-104 takes about 77ms. Our interaction grouping has a complexity of $\mathcal{O}(N_{\mathrm{h}}N_{\mathrm{o}}N_{\mathrm{ip}})$ , where $N_{\mathrm{h}}, N_{\mathrm{o}}, N_{\mathrm{ip}}$ is the number of humans, objects and interaction points, respectively. In practice, our grouping is efficient, taking less than 5 ms ( $< 6.1\%$ of total time).
+
+# 4.3. State-of-the-art Comparison:
+
+We first compare our proposed approach with state-of-the-art methods in literature. Tab. 1 shows the comparison on the V-COCO dataset. Among existing approaches, BAR [12], iCAN [7] and DCA [34] utilize human and object appearance features in a multi-stream architecture. The DCA method [34] consisting of a deep contextual attention module that generates contextually-aware appearance features within a multi-stream architecture achieves a $\mathrm{mAP}_{\mathrm{role}}$ of 47.3. The RPNN approach [38] based on attention graphs for parsing relations of object and human body-parts obtains a $\mathrm{mAP}_{\mathrm{role}}$ of 47.3. The work of [14], denoted in Tab. 1 as TIK, introduces an interactiveness network to perform Non-interaction Suppression and reports a $\mathrm{mAP}_{\mathrm{role}}$ of 47.8. Our approach achieves superior performance compared to exist-
+
+| Methods | \( \mathbf{{mAP}}_{\text{role }} \) |
| VSRL[9]* | 31.8 |
| InteractNet [8] | 40.0 |
| BAR [12] | 41.1 |
| GPNN [25] | 44.0 |
| iCAN [7] | 45.3 |
| HOI w knowledge [37] | 45.9 |
| DCA [34] | 47.3 |
| RPNN [38] | 47.5 |
| TIK [14] | 47.8 |
| PMFNet [32] | 52.0 |
| Ours | 51.0 |
| Ours + HICO | 52.3 |
+
+Table 1. State-of-the-art comparison (in terms of $\mathrm{mAP}_{\mathrm{role}}$ ) on the V-COCO dataset. * refers to implementation of [9] by [8]. Our approach sets a new state-of-the-art with $\mathrm{mAP}_{\mathrm{role}}$ of 51.0 and achieves an absolute gain of $3.2\%$ over TIK [14]. The results are further improved ( $\mathrm{mAP}_{\mathrm{role}}$ of 52.3) when utilizing pre-training on HICO-DET and then fine-tuning on V-COCO dataset.
+
+| Methods | Default | Known Object |
| full | rare | non-rare | full | rare | non-rare |
| Shen et al., [30] | 6.46 | 4.24 | 7.12 | - | - | - |
| Chao et al., [3] | 7.81 | 5.37 | 8.54 | 10.41 | 8.94 | 10.85 |
| InteractNet [8] | 9.94 | 7.16 | 10.77 | - | - | - |
| GPNN [25] | 13.11 | 9.34 | 14.23 | - | - | - |
| Xu et.al [37] | 14.70 | 13.26 | 15.13 | - | - | - |
| iCAN [7] | 14.84 | 10.45 | 16.15 | 16.43 | 12.01 | 17.75 |
| DCA [34] | 16.24 | 11.16 | 17.75 | 17.73 | 12.78 | 19.21 |
| TIK [14] [14] | 17.03 | 13.42 | 18.11 | 19.17 | 15.51 | 20.26 |
| Gupta et.al [10] | 17.18 | 12.17 | 18.68 | - | - | - |
| RPNN [38] | 17.35 | 12.78 | 18.71 | - | - | - |
| PMFNet [32] | 17.46 | 15.65 | 18.00 | 20.34 | 17.47 | 21.20 |
| Peyre et.al [23] | 19.40 | 14.60 | 20.90 | - | - | - |
| Ours | 19.56 | 12.79 | 21.58 | 22.05 | 15.77 | 23.92 |
+
+Table 2. State-of-the-art comparison (in terms of $\mathrm{mAP}_{\mathrm{role}}$ ) on the HICO-DET using two different settings: Default and Known Object on all three sets (full, rare, non-rare). Note that Shen et al. [30], InteractNet [8] and GPNN [25] only report results on the Default settings. For both settings, our approach provides superior performance compared to existing methods. In case of default settings, our approach achieves $\mathrm{mAP}_{\mathrm{role}}$ of 19.56 on the full set. Further, our approach obtains an absolute gain of $2.9\%$ over TIK [14] on the full set of Known Object setting.
+
+ing methods with a $\mathrm{mAP}_{\mathrm{role}}$ of 51.0. The results are further improved ( $\mathrm{mAP}_{\mathrm{role}}$ of 52.3) by first pre-training our network on HICO-DET and then fine-tuning the pre-trained HICO-DET model on the V-COCO dataset.
+
+Tab. 2 shows the comparison on HICO-DET. As in [4], we report results on three different HOI category sets: full, rare, and non-rare with two different settings of Default and Known Objects. Our approach achieves superior performance compared to the state-of-the-art on both settings. For the Default settings, our approach obtains $\mathrm{mAP}_{\mathrm{role}}$ of 19.56, 12.79 and 21.58 on the full, rare and non-rare sets, respectively. In case of Known Object setting, our approach achieves an absolute gain of $2.9\%$ over [14] on the full set.
+
+
+hit with bat, 0.73
+
+
+
+
+
+
+
+
+catch kite, 0.77
+
+
+
+
+
+
+kick sports ball, 0.87
+cut cake, 0.82
+Figure 5. Example detections on V-COCO. Each example involves a human-object interaction, such as skateboarding or multiple humans sharing the same interaction and object - cut cake. We also show our interaction point, vector and box (in yellow).
+
+
+jump skateboard, 0.94
+drink cup, 0.65
+
+
+hold umbrella, 0.69
+surf surfboard, 0.98
+
+
+work on computer, 0.94
+
+
+carry frisbee, 0.71
+read book, 0.67
+
+
+snowboarding, 0.64
+talk on phone, 0.78
+
+# 4.4. Ablation Study
+
+We first perform an ablation study on V-COCO using the Hourglass backbone to show the impact of different components in our approach. Tab. 3 shows the impact of interaction points, angle-filter, dist-ratio-filter, interaction boxes, corner distance and center-pool components on the V-COCO dataset. To validate the effectiveness of our interaction grouping scheme, we first compare the proposed interaction grouping with the so-called 'angle-filter' and 'dist-ratio-filter'. Tab. 3 shows these comparisons on V-COCO.
+
+Angle Filter: During training, the interaction point $P$ and its corresponding human center point $H$ , object center point $O$ have a fixed geometric structure, i.e., the angle between the vector $\overrightarrow{PH}$ and vector $\overrightarrow{PO}$ is equal to $\pi$ . During inference, angle filter aims to reduce those HOI pairs for which the angle between $\overrightarrow{PH}$ and vector $\overrightarrow{PO}$ is lower than a given angle threshold. Tab. 3 shows that this baseline of interaction points with angle filter achieves a $\mathrm{mAP}_{\mathrm{role}}$ of 39.6.
+
+Dist-ratio Filter: Similar to the angle-filter, the ratio between $|\overrightarrow{PH}|$ and $|\overrightarrow{PO}|$ is equal to 1 during training. Therefore the dist-ratio filter can also be employed to filter HOI pairs where the ratio between $\max(|\overrightarrow{PH}|, |\overrightarrow{PO}|)$ and $\min(|\overrightarrow{PH}|, |\overrightarrow{PO}|)$ is greater than the given distance ratio threshold. Tab. 3 shows this constraint improves over interaction points with angle filter by $1.7\%$ in terms of $\mathrm{mAP}_{\text{role}}$ .
+
+Interaction Grouping: To explore the effectiveness of our proposed interaction grouping scheme, we divide this scheme into two parts: interaction box and corner-dist, to verify the power of three soft constraints in (2). During training, the IoU between the human/object bbox and interaction box is greater than zero. Therefore, to satisfy the first two IoU conditions in (2), we first integrate the interaction box generated by the interaction vectors to filter out the negative HOI pairs. Tab. 3 shows that it significantly
+
+| Add-on | Baseline |
| interaction points | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| angle-filter | ✓ | ✓ | ✓ | | | |
| dist-ratio-filter | | ✓ | ✓ | | | |
| interaction box | | | ✓ | ✓ | ✓ | ✓ |
| corner-dist | | | | | ✓ | ✓ |
| center-pool | | | | | | ✓ |
| \( \mathrm{mAP}_{\text{role}} \) | 39.6 | 41.3 | 46.2 | 48.2 | 50.5 | 51.0 |
+
+Table 3. Impact of integrating our contributions into the baseline on V-COCO. Results are reported in terms of role mean average precision $(\mathrm{mAP}_{\mathrm{role}})$ . For fair comparison, we use the same backbone (Hourglass-104) for all the ablation experiments. Our overall architecture achieves a absolute gain of $11.4\%$ over the baseline.
+
+| Score thres | 0.01 | 0.02 | 0.05 | 0.08 | 0.10 | Dynamic |
| Default: | | | | | | |
| Full | 19.26 | 19.32 | 19.08 | 18.66 | 18.25 | 19.56 |
| Rare | 12.53 | 12.00 | 10.32 | 9.13 | 8.12 | 12.79 |
| Non-rare | 21.27 | 21.51 | 21.70 | 21.50 | 21.27 | 21.58 |
| Known-Obj: | | | | | | |
| Full | 21.80 | 21.81 | 21.57 | 21.08 | 20.65 | 22.05 |
| Rare | 15.74 | 15.06 | 13.39 | 12.00 | 10.79 | 15.77 |
| Non-rare | 23.61 | 23.83 | 24.01 | 23.80 | 23.60 | 23.92 |
+
+Table 4. Performance comparison (in terms of $\mathrm{mAP}_{\text{role}}$ ) regarding the classification capabilities of our approach for the rare and non-rare classes on the HICO-DET. We show the results with different score thresholds, used during the evaluation. Our proposed dynamic threshold inference achieves a good performance trade-off between the rare and non-rare classes.
+
+improves the HOI detection performance to $46.2\mathrm{mAP}_{\mathrm{role}}$ . We also found that when only adding interaction box on the interaction points, it further improves the performance by $2\%$ , from 46.2 to 48.2. Note that, in our approach the four corners of the interaction box are considered as the four corners of the reference box during training. At inference, with the corner distance constraint $(|\mathrm{dist}| < d_{\tau})$ in (2), some negative pairs are further filtered out resulting in an improved overall performance of $50.5\mathrm{mAP}_{\mathrm{role}}$ .
+
+
+work on computer, 0.84
+
+
+sit on chair, 0.77
+
+
+hold mouse, 0.58
+
+
+walk dog, 0.69
+
+
+hold tennis racket, 0.85
+
+
+carrybag,0.74
+
+
+Figure 6. Multiple interaction detection on V-COCO. Our approach detects human instance doing multiple (different) actions and interacting with various objects (represented with different colors). In all cases, the detected agent is represented with the same color.
+race motorcycle
+
+
+wash motorcycle
+
+
+jump motorcycle
+
+
+turn motorcycle
+
+
+park motorcycle
+
+
+walk motorcycle
+
+Center-pool: For improved detection of interaction points, we introduce the center-pool operation, as in in [5], aiding to obtain more distinct visual patterns between the human and object instances. This operation is achieved by getting out the max summed response in both horizontal and vertical directions of the interaction point on the feature map. In our method, this is employed before the interaction point and vector branch. This operation results in a slight improvement in performance (0.5 points), as shown in Tab. 3.
+
+We also conduct experiments to evaluate the impact of interaction score threshold on rare and non-rare action classes on HICO-DET. We select different interaction thresholds in the range [0.01, 0.1], used in the test evaluation of interaction recognition performance. The results are presented in Tab. 4. These results suggest that the suitable score thresholds are different for the rare and non-rare interaction classes. This is likely due to the fact that the rare classes include less training samples, which results in relatively lower prediction scores for those classes. In contrast, the prediction scores for the non-rare classes tend to be relatively higher. Therefore, it becomes a trade-off problem for the point-based HOI methods to obtain a good performance. We further develop a dynamic threshold inference, which sets different score thresholds for different interaction classes based on their training samples. As show in Tab. 4, our dynamic threshold inference leads to a good performance trade-off between rare and non-rare classes.
+
+# 4.5. Qualitative Visualization Results
+
+Fig. 5 shows examples of both single human-object interactions, such as hold a umbrella and work on computer, and multiple humans sharing same interaction and object (cut cake) along with corresponding interaction scores on V-COCO. The interaction boxes (yellow dash line) generated by the interaction vectors (yellow solid line) are also
+
+
+Figure 7. Results on HICO-DET showing one detected triplet. Blue boxes represent a detected human instance, while the red boxes show the detected object of interaction. Our approach detects various fine-grained interactions.
+Figure 8. Visualization of interaction point heat-maps. Our method is able to cope with challenging scenarios, such as multiple HOI pairs and multiple humans sharing the same object.
+
+
+
+
+
+
+
+drawn. These interaction boxes are paired with the positive human and object bounding-boxes using interaction grouping. Fig. 6 shows examples of a human performing multiple interactions. Different interaction objects are annotated with bounding-boxes of different colors. Fig. 7 shows fine-grained human-object interaction results on HICO-DET. The heatmap visualization for the interaction point map is shown in Fig. 8. Similar to previous works, we observe long-tailed classes to be particularly challenging for HOI detection. Further, a minor limitation of our approach is that multiple HOI pairs cannot share the same interaction point. However, such cases are rare in practice.
+
+# 5. Conclusion
+
+We propose a point-based framework for HOI detection. Our approach regards the HOI detection as a keypoint detection and grouping problem. The interaction point and its corresponding interaction vector are first generated by the keypoint detection network. Then, we directly pair those interaction points with the human and object bounding boxes from object detection branch using the proposed interaction grouping scheme. Experiments are performed on two HOI detection benchmarks. Our points-based approach outperforms state-of-the-art methods on both datasets.
+
+# References
+
+[1] Jiale Cao, Yanwei Pang, and Xuelong Li. Triply supervised decoder networks for joint detection and segmentation. In CVPR, 2019. 2
+[2] Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. In CVPR, 2017. 3
+[3] Yuwei Chao, Yunfan Liu, Xieyang Liu, Huayi Zeng, and Jia Deng. Learning to detect human-object interactions. In WACV, 2018. 1, 2, 6
+[4] Yuwei Chao, Zhan Wang, Yugeng He, Jiaxuan Wang, and Jia Deng. HICO: A benchmark for recognizing human-object interactions in images. In ICCV, 2015. 2, 4, 5, 6
+[5] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In ICCV, 2019. 8
+[6] Hao-Shu Fang, Shuqin Xie, Yu-Wing Tai, and Cewu Lu. *Rmpe: Regional multi-person pose estimation.* In ICCV, 2017. 2
+[7] Chen Gao, Yuliang Zou, and Jia-Bin Huang. iCAN: Instance-centric attention network for human-object interaction detection. In BMVC, 2018. 1, 2, 3, 6
+[8] Georgia Gkioxari, Ross Girshick, Piotr Dólár, and Kaiming He. Detecting and recognizing human-object interactions. In CVPR, 2018. 2, 6
+[9] Saurabh Gupta and Jitendra Malik. Visual semantic role labeling. arXiv preprint arXiv:1505.04474, 2015. 2, 4, 5, 6
+[10] Tanmay Gupta, Alexander Schwing, and Derek Hoiem. No-frills human-object interaction detection: Factorization, layout encodings, and training techniques. In ICCV, 2019. 6
+[11] Diederik P. Kingma and Jimmy Lei Ba. Adam: A method for stochastic optimization. In ICLR, 2014. 6
+[12] Alexander Kolesnikov, Christoph H. Lampert, and Vittorio Ferrari. Detecting visual relationships using box attention. In arXiv preprint arXiv:1807.02136, 2018. 6
+[13] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, 2018. 2, 3, 4, 5
+[14] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Yan-Feng Wang Hao-Shu Fang, and Cewu Lu. Transferable interactiveness knowledge for human-object interaction detection. In CVPR, 2019. 1, 2, 3, 6
+[15] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 3, 6
+[16] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dolkar, and C. Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 6
+[17] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C. Berg. SSD: Single shot multibox detector. In ECCV, 2016. 2
+[18] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 3, 6
+[19] Jing Nie, Rao Muhammad Anwer, Hisham Cholakkal, Fahad Shahbaz Khan, Yanwei Pang, and Ling Shao. Enriched feature guided refinement network for object detection. In ICCV, 2019. 2
+
+[20] Yanwei Pang, Tiancai Wang, Rao Muhammad Anwer, Fahad Shahbaz Khan, and Ling Shao. Efficient featurized image pyramid network for single shot detector. In CVPR, 2019. 2
+[21] Yanwei Pang, Jin Xie, Muhammad Haris Khan, Rao Muhammad Anwer, Fahad Shahbaz Khan, and Ling Shao. Mask-Guided attention network for occluded pedestrian detection. In ICCV, 2019. 2
+[22] George Papandreou, Tyler Zhu, Nori Kanazawa, Alexander Toshev, Jonathan Tompson, Chris Bregler, and Kevin Murphy. Towards accurate multi-person pose estimation in the wild. In CVPR, 2017. 3
+[23] Julia Peyre, Ivan Laptev, Cordelia Schmid, and Josef Sivic. Detecting unseen visual relations using analogies. In ICCV, 2019. 1, 6
+[24] Charles Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, 2018. 2
+[25] Siyuan Qi, Wenguan Wang, Baoxiong Jia, Jianbing Shen, and Song-Chun Zhu. Learning human-object interactions by graph parsing neural networks. In ECCV, 2018. 1, 2, 6
+[26] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 2
+[27] Joseph Redmon and Ali Farhadi. Yolo9000:better, faster, stronger. In CVPR, 2017. 2
+[28] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NIPS, 2015. 2, 6
+[29] Fahad Shahbaz Khan, Jiaolong Xu, Joost van de Weijer, Andrew Bagdanov, Rao Muhammad Anwer, and Antonio Lopez. Recognizing actions through action-specific person detection. IEEE Transactions on Image Processing, 24(11):4422-4432, 2015. 2
+[30] Liyue Shen, Serena Yeung, Judy Hoffman, Greg Mori, and Li Fei-Fei. Scaling human-object interaction recognition through zero-shot learning. In WACV, 2018. 6
+[31] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019. 2
+[32] Bo Wan, Desen Zhou, Yongfei Liu, Rongjie Li, , and Xuming He. Pose-aware multi-level feature network for human object interaction detection. In ICCV, 2019. 6
+[33] Tiancai Wang, Rao Muhammad Anwer, Hisham Cholakkal, Fahad Shahbaz Khan, Yanwei Pang, and Ling Shao. Learning rich features at high-speed for single-shot object detection. In ICCV, 2019. 2
+[34] Tiancai Wang, Rao Muhammad Anwer, Muhammad Haris Khan, Fahad Shahbaz Khan, Yanwei Pang, and Ling Shao. Deep contextual attention for human-object interaction detection. In ICCV, 2019. 1, 2, 3, 6
+[35] Wenguan Wang, Yuanlu Xu, Jianbing Shen, and Song-Chun Zhu. Attentive fashion grammar network for fashion landmark detection and clothing category classification. In CVPR, 2018. 2
+[36] Wenguan Wang, Zhijie Zhang, Siyuan Qi, Jianbing Shen, Yanwei Pang, and Ling Shao. Learning compositional neural information fusion for human parsing. In ICCV, 2019. 2
+[37] Bingjie Xu, Yongkang Wong, Junnan Li, Qi Zhao, and Mo
+
+han Kankanhalli. Learning to detect human-object interactions with knowledge. In CVPR, 2019. 6
+[38] Penghao Zhou and Mingmin Chi. Relation parsing neural network for human-object interaction detection. In ICCV, 2019. 6
+[39] Tianfei Zhou, Wenguan Wang, Siyuan Qi, Jianbing Shen, and Haibin Ling. Cascaded human-object interaction recognition. In CVPR, 2020. 1
+[40] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 2, 3, 4, 6
+[41] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In CVPR, 2019. 2, 3
\ No newline at end of file
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/images.zip b/learninghumanobjectinteractiondetectionusinginteractionpoints/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d55a1585238e1e8010a6398c5417ed3d18076a42
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8fca89beed24774655116b0c089d31a9f27d17fa00ae836c2d4c7e97fc659324
+size 711111
diff --git a/learninghumanobjectinteractiondetectionusinginteractionpoints/layout.json b/learninghumanobjectinteractiondetectionusinginteractionpoints/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..755f163a333aedb3219b865a4a1a3790bf38fb32
--- /dev/null
+++ b/learninghumanobjectinteractiondetectionusinginteractionpoints/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7dd7a3829247614e04a79af8d6b3af18fa680c3ce593d6690511ec75999b6903
+size 466607
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_content_list.json b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d779530caf17fde4ab2f5b407ae3590ac883adae
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7b420ad773543e0d72089e4f3504905b27c62b63e862c597544ca6121b3db378
+size 69062
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_model.json b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5eaa79329014409248b1b3182934af906a3536d6
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0ad4c2c7aec5c7350a53d3a6b7e5376d630edcc48a05d29d8798a1c6fec0e5c9
+size 82416
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_origin.pdf b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f7b5c9e9b7e2fea291198db7001442a594dc70a1
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/b8183065-1a08-4a1b-991c-07f066bb443b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a5b9b20a526cb053a9a7e8070423b2d5e4b4c1a31e054259fb70fc9589dd589
+size 977633
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/full.md b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c2105d4c424597137c547ff7e9edfea67efefc30
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/full.md
@@ -0,0 +1,293 @@
+# Learning Identity-Invariant Motion Representations for Cross-ID Face Reenactment
+
+Po-Hsiang Huang $^{1}$ , Fu-En Yang $^{1}$ , Yu-Chiang Frank Wang $^{1,2}$
+
+1Graduate Institute of Communication Engineering, National Taiwan University, Taiwan
+2ASUS Intelligent Cloud Services, Taiwan
+
+{r06942138,r07942077,ycwang}@ntu.edu.tw
+
+# Abstract
+
+Human face reenactment aims at transferring motion patterns from one face (from a source-domain video) to another (in the target domain with the identity of interest). While recent works report impressive results, they are not able to handle multiple identities in a unified model. In this paper, we propose a unique network of CrossID-GAN to perform multi-ID face reenactment. Given a source-domain video with extracted facial landmarks and a target-domain image, our CrossID-GAN learns the identity-invariant motion patterns via the extracted landmarks and such information to produce the videos whose ID matches that of the target domain. Both supervised and unsupervised settings are proposed to train and guide our model during training. Our qualitative/quantitative results confirm the robustness and effectiveness of our model, with ablation studies confirming our network design.
+
+# 1. Introduction
+
+Video retargeting aims at transferring motion patterns of video from a source-domain video to another in the target domain of interest, while the content (e.g., face identity or body shape) of the latter remains unchanged. For example, converting the blooming process across distinct flowers, or adapting pose and expression from one person to another, can be considered as examples of video retargeting. Due to a wide range of applications such as virtual reality and film production, transferring motion/expression of face videos are of particular interest. With the focus of retargeting face videos, one typically refers to this task as face reenactment. To tackle the task of face reenactment, existing approaches typically apply predefined parametric 3D models to represent human faces. Although exhibiting promising ability in describing inner faces [17] [16], movement of the human head might not be sufficiently modeled. Moreover, such methods might not be able to describe subtle move
+
+
+Figure 1. Illustration of our CrossID-GAN for face reenactment. By encoding a sequence of facial landmarks from a source-domain video, we transform a target-domain image (of a different identity) with motion patterns associated with those of the source domain, while the identity of the target-domain is preserved.
+
+ments of human faces. Thus, a large amount of effort and delicacy designs of complex parametric fitting would be required. With the recent advances of Generative Adversarial Networks (GANs) [3], which shows great potential in producing realistic images, many GAN-based methods have been proposed as alternatives to 3D parametric models. For example, CycleGAN [26] and RecycleGAN [1] are among well-known data-driven GAN models for human face reenactment. However, such methods only support 1-to-1 mapping between two face identities. In other words, one needs to train a face reenactment model for each pair of persons. Therefore, its extension of multiple persons with unseen motion would be the limitation.
+
+On the other hand, another group of researchers incorporate facial landmarks/face boundary, which provide direct
+
+ | No Attribute Labels of Required | Landmark Guidance | Unified Network | Target Identity Preservation | Mapping Domain |
| DR-GAN [19] | - | - | ✓ | ✓ | - |
| CR-GAN [18] | - | - | ✓ | ✓ | - |
| GC-GAN [12] | - | ✓ | ✓ | ✓ | - |
| Cycle-GAN [26] | ✓ | - | - | ✓ | 1-to-1 |
| Recycle-GAN [1] | ✓ | - | - | ✓ | 1-to-1 |
| GANnotation [13] | ✓ | ✓ | ✓ | - | - |
| ReenactGAN [23] | ✓ | ✓ | - | ✓ | many-to-1 |
| Talking-Head [25] | ✓ | ✓ | ✓ | - | - |
| X2Face [22] | ✓ | - | ✓ | - | many-to-many |
| CrossID-GAN (Ours) | ✓ | ✓ | ✓ | ✓ | many-to-many |
+
+Table 1. Comparisons of recent works on face reenactment. While transfer of face attributes needs to be performed, the first three methods are designed to do so in the image level, and thus they cannot produce satisfactory video sequence outputs.
+
+guidance of facial pose and expression, and thus can easily guide the model to generate desirable outputs. Existing techniques of facial landmarks detection are sufficiently precise and efficient, which makes the use of such models practical. However, facial landmarks contain information of the observed input face image (e.g., shape or identity of faces), which cannot be directly utilized to generate the target-domain face image outputs. As a result, how to transform the source-domain face landmarks to the target domain while disregarding identity-dependent information becomes a challenging problem. Wu et al. propose a GAN-based model, ReenactGAN [23], for many-to-1 face reenactment, which means that they are able to produce output video of specific identity with the motion pattern transferred from arbitrary source videos. With the aids of ID-specific transformer and ID-specific decoder, ReenactGAN is able to transform source-domain face landmarks to the target domain, so that reenactment of images with target-domain identity can be achieved. Despite its promising performance, it cannot generate videos of distinct identities in a unified model. To achieve face reenactment across multiple identities (i.e., many-to-many mapping) with a unified model, one would require the learning of ID-invariant representation from the observed facial landmarks. In other words, such a representation would only describe the information of pose and expression from the input face image, which allows the generator to produce images with preferred identities (i.e., images in the target domain). In this paper, we propose a novel model CrossID-GAN for such many-to-many face reenactment tasks. Our CrossID-GAN is able to transfer the pose and expression from source-domain face images to the target-domain one, while the extracted pose and expression features are identity independent. As illustrated in Fig. 1, our model is designed to derive ID-invariant motion information from the input source images/videos, while being able to transfer motion to face images of desirable identities with the guidance from target
+
+domain image and the aforementioned facial landmarks. Table 1 highlights and compares recent works on face reenactment, showing the advantage of our CrossID-GAN. To the best of our knowledge, existing face reenactment approaches are not able to extract such ID-invariant features across multiple persons in a unified model (as ours does). The contributions of this paper are highlighted below.
+
+- We propose CrossID-GAN for cross-identity face reenactment. With only identity labels observed (not the ground truth landmarks), our model extracts and transfers ID-invariant landmark information across face images of different identities.
+- Our landmark encoder extracts ID-invariant facial landmark representation describing pose and expression information, while our content encoder extracts ID-preserving content information for identity recovery guarantees.
+- Our CrossID-GAN can be trained in both supervised and unsupervised settings. The former requires pairwise training input data for encoding the aforementioned facial landmark and content representations, while the latter does not require such correspondence information.
+
+# 2. Related Work
+
+# 2.1. Human Face Reenactment
+
+Previously, most existing works on face reenactment apply 3D parametric models to fit human faces. For example, Face2Face [17] utilizes a 3D parametric model with 269 parameters to fit pose, expression, illumination, and shape information of a human face. With detected and tracked face images, it would transfer the expression of source-domain faces to the target-domain one by adjusting the associated parameters. Since only the appearance of the inner face can be modeled, subtle details might not be described and
+
+altered properly. With the development of deep learning models, methods like X2Face [22] show promising reenactment with improved warping techniques. X2Face consists of two sub-networks: an embedding network aiming to learn an embedded face representation across input target-domain images, and a driving network outputs a pixel sampler (i.e., optical flow map) which warps from this embedded face with the pose of interest. Since no facial landmark information is considered, pose and expression might not be transferred accurately. Also, due to the limitation of warping based methods, missing details in the embedded faces still make the produced outputs less realistic and thus suffer from distortion due to extreme poses.
+
+GAN-based reenactment without facial landmarks. GAN-based methods have recently been utilized for face reenactment, due to its success in producing realistic face image outputs. And, with the structural similarity between face images, face reenactment can also be considered as a frame-by-frame style translation problem. CycleGAN [26] introduced a cycle consistency loss to find an appropriate mapping between two domains, but it sometimes encounters problems such as perceptual mode collapse or generated output spatially tied to input, which are mentioned in [1]. RecycleGAN applied predictors of two domains to further consider temporal information to deal with the problems and extended the type of domains to a wider range. However, both of CycleGAN and RecycleGAN are designed only for 1-to-1 mapping, namely transferring images between only two domains. This limited the potential of models in real-life applications. Another problem is that the training data hardly cover all the pose of human, this may cause the model to learn an inappropriate mapping between two domains.
+
+GAN-based reenactment with facial landmarks. GAN-based models integrating facial landmarks have also been proposed for face reenactment. For example, GANnotation [13] takes in the concatenation of source landmarks heatmap and target identity image for face reenactment. However, it cannot properly transfer motion due to identity mismatch across domains. ReenactGAN [23] first trains a face boundary encoder to map the source frame onto an embedding space. Then, for every target identity, an ID-specific boundary transformer converts the encoded source face boundary to the shape matching the target identity. Finally, an ID-specific decoder decodes the transformed boundary to the reenacted image. While this work is able to perform reenactment, different face boundary transformers and decoders are required for each target identity. In other words, it cannot advance a unified framework for multi-ID face reenactment.
+
+Recently, [25] utilize a pair of encoder and generator with meta-learning strategies and adaptive instance nor
+
+malization mechanisms. With the observed source-domain landmarks, it synthesizes a series of images fitting the identity of the target-domain inputs. Nevertheless, since the extracted facial landmarks are not designed to adapt to the target-domain faces, the shape might be distorted which makes the transferred outputs less realistic (i.e., less consistent with the target-domain identity).
+
+# 2.2. Feature Disentanglement
+
+Aimed at learning interpretable data representation, feature disentanglement has drawn lots of attention in recent years. In the following, we mainly focus on the disentanglement technique applied in human face and video regime.
+
+Feature Disentanglement for Human Faces. The goal of this research topic is to disentangle a representation of human face into two parts: an identity related (content) code and a pose or expression related (attribute) code. Given the label of pose view and correspond human face image, DR-GAN [19] utilizes an encoder-decoder network to learn a pose-invariant identity representation, which is preferable for face recognition with large pose discrepancy. To deal with the problem of learning incomplete representation in DR-GAN, CR-GAN [18] introduces a generation sidewalk to maintain the completeness of the learned embedding space. With extracted facial landmarks and correspond expression labels during training, GC-GAN [12] transfers the expression of the source face to the target person. While these models are able to transfer face attribute properly, they require pose/expression labels for every image during training. Moreover, these works are only designed for image-to-image translation but not videos, the discrete attributes labels are not able to cover the whole movement of human action.
+
+Feature Disentanglement in Videos. As a representative work of video synthesis with disentanglement ability, MoCoGAN [20] divides video representations into content and motion features. By sampling a point in the content subspace and sampling different trajectories in the motion subspace, it allows the generation of videos of the same object performing different motions. However, this model is mainly designed for video generation, and cannot be easily extended to cross-identity human face reenactment.
+
+# 3. Methods
+
+Given a source-domain video $V_{s} = \{v_{s}^{1},\dots,v_{s}^{T}\}$ with $T$ frames and the corresponding facial landmarks $H_{s} = \{h_{s}^{1},\dots,h_{s}^{T}\}$ , and a target-domain image $I$ of identity $x$ , our goal is to generate an output video $\tilde{V}_{x}$ while acting like $V_{s}$ .
+
+We deal with the problem of face reenactment in a frame by frame manner with temporal continuity guarantees. To
+
+
+Figure 2. Our CrossID-GAN with learning ID-invariant facial landmarks for face reenactment. Since the observed source-domain landmarks can be from the same or distinct identity as that in the target domain during training, our model can be trained in supervised or unsupervised settings. (Note that arrows in red/blue indicate supervised/unsupervised training processes.)
+
+be more specific, our model takes in the target-domain image $I = v_{x}$ and the facial landmarks frame $h_{s}^{i} \in H_{s}$ extracted from the source-domain input $v_{s}^{i} \in V_{s}$ , and the produced output frame would be $\tilde{v}_{x}^{i}$ . Note that the identity $s$ can be the same or different from that of the target domain (i.e., $s = x$ or $y$ ) during training, while we consider $s = y$ in testing for reenactment purposes.
+
+In our work, we propose a network model of crossID-GAN for motion-adapted yet ID-preserving face reenactment. As depicted in Fig. 2, our crossID-GAN contains three major components: an ID-invariant facial landmark encoder $E_{L}$ , an ID-preserving content encoder $E_{C}$ , and a conditional generator $G$ . We have $E_{L}$ aim at encoding observed landmarks $h_{s}$ to ID-invariant motion latent code $z_{l}$ , $E_{C}$ maps the input $I$ to an identity latent code $z_{c,I}$ , and $G$ take both latent codes for producing the video of interest. Additional discriminators are deployed for allowing the learning of the above network modules. The details of our proposed network architecture and learning strategies will be presented in the following subsections.
+
+# 3.1. Supervised Learning of CrossID-GAN
+
+We now first discuss how our CrossID-GAN can be trained in a supervised setting (i.e., both source-domain input video frames/landmarks $h_x$ and the target-domain input image $I = v_x$ are of the same identity $x$ ).
+
+As illustrated in Figure 2, our landmark encoder $E_{L}$ encodes source landmarks $h_{x}^{i}$ , resulting a landmark latent code $z_{l}^{i}$ . On the other hand, we have the content encoder $E_{C}$ to encode the target-domain input $v_{x}^{j}$ from a different frame $j$ and derive the content latent code $z_{c,x}$ for identity $x$ . The generator $G$ of our CrossID-GAN takes in the concatenation of both codes produce the output image $\tilde{v}_{x}^{i}$ , with
+
+the goal to transfer the extracted landmark from $h_x^i$ . Since the inputs from both domains are for the same identity, we expect $v_x^i$ to serve as the ground truth for the generator output $\tilde{v}_x^i$ , which is calculated by the L2-norm loss and perceptual loss [8] as the reconstruction loss $\mathcal{L}_{rec}$ . Note that the perceptual loss enforces the features of $\tilde{v}_x^i$ to be visually similar to $v_x^i$ , in which we apply a VGG-19 [15] for extracting visual features. Thus, we have $\mathcal{L}_{rec}$ defined as
+
+$$
+\mathcal {L} _ {r e c} = \left| \left| \tilde {v} _ {x} ^ {i} - v _ {x} ^ {i} \right| \right| ^ {2} + \sum_ {f} \left| \Phi_ {V G G} ^ {f} \left(\tilde {v} _ {x} ^ {i}\right) - \Phi_ {V G G} ^ {f} \left(v _ {x} ^ {i}\right) \right|. \tag {1}
+$$
+
+where $f$ denotes the layer index of VGG19.
+
+In order to enhance the quality of the produced image outputs, we employ an image discriminator $D_I$ which distinguishes between the synthesized image $\tilde{v}_x^i = G(z_{c,x},z_l^i)$ and the real ones $v_x^i$ , which is realized as follows
+
+$$
+\mathcal {L} _ {a d v} ^ {D _ {I}} = \mathbb {E} [ \log (D _ {I} (\tilde {v} _ {x} ^ {i})) ] - \mathbb {E} [ \log (1 - D _ {I} (v _ {x} ^ {i}) ], \tag {2}
+$$
+
+$$
+\mathcal {L} _ {a d v} ^ {i m g} = - \mathbb {E} \left[ \log \left(D _ {I} \left(\tilde {v} _ {x} ^ {i}\right)\right) \right].
+$$
+
+# 3.2. Unsupervised Learning of CrossID-GAN
+
+It is worth noting that, the above supervised learning scheme only produces image outputs with landmarks extracted and adapted from visual data of the same identity $x$ . To perform practical face reenactment, the source-domain inputs $v_{s}^{i}$ and the target-domain image $I = v_{x}$ would belong to different identities (i.e., $s = y$ ). Moreover, the above training strategy does not guarantee that the landmark latent code extracted by $E_{L}$ is ID-invariant, since the source-domain videos are of the same identity as that of the target-domain input image. To further allow the effectiveness of our reenactment network while not requiring landmark-level ground truth information, we extend our
+
+training strategy to unsupervised learning, which simply requires the source-domain inputs are from a distinct identity $y$ instead of $x$ .
+
+To address the above problem, we first utilize adversarial learning on the landmark latent code $z_{l}$ by introducing a content/ID classifier $D_{C}$ , which is jointly trained with $E_{L}$ via reversal back propagation to ensure the invariance of $z_{l}$ to identity. The associated loss functions are defined as follows:
+
+$$
+\mathcal {L} _ {a d v} ^ {D _ {C}} = \mathbb {E} [ \log P \left(l _ {r} = r _ {s} \mid E _ {L} \left(h _ {s} ^ {i}\right)\right) ] \tag {3}
+$$
+
+$$
+\mathcal {L} _ {a d v} ^ {E _ {L}} = - \mathbb {E} [ \log P (l _ {r} = r _ {s} | E _ {L} \left(h _ {s} ^ {i}\right)) ],
+$$
+
+where $P$ is the probability distribution over domains $l_{r}$ , and the identity representation $r_s$ is a one-hot vector. Thus, our $E_L$ is enforced to encode ID-invariant information (pose/expression) from $h_s^i$ without face shape and contour information.
+
+To further allow the source and target domain inputs to our CrossID-GAN are with different identities for practical reenactment purposes, our model needs to be learned in such unsupervised setting (i.e., no correspondence between training input data across domains). To achieve this goal, we additionally advance the consistency of ID-invariant landmark codes between the output $\tilde{v}_x^i$ and the source-domain input $v_y^i$ , as well as the consistency of identity between $\tilde{v}_x^i$ and target-domain input $v_x^j$ .
+
+As shown in Fig. 2, we have $F$ as a pretrained landmark extractor. As for ID-invariant landmark consistency, it is realized by minimizing the loss $\mathcal{L}_{con}^{lmk}$ , which measures the L1 difference between the landmark latent codes of $\tilde{v}_x^i$ and $v_y^i$ .
+
+Thus, such a consistency loss $\mathcal{L}_{con}^{lmk}$ is calculated as
+
+$$
+\mathcal {L} _ {\text {c o n}} ^ {\text {l m k}} = \left| z _ {l} ^ {i} - \tilde {z} _ {l} ^ {i} \right|. \tag {4}
+$$
+
+To ensure identity consistency between $\tilde{v}_x^i$ and $v_{x}^{j}$ , we calculate their perceptual loss via a Siamese discriminator network $D_{id}$ , which is trained to distinguish between the real image pair $(v_x^n,v_x^m)$ sampled from the real videos and the synthesized one $(\tilde{v}_x^i,v_x^j)$ . As a result, we calculate $D_{id}$ by
+
+$$
+\mathcal {L} _ {a d v} ^ {i d} = - \mathbb {E} [ \log (D _ {i d} (\tilde {v} _ {x} ^ {i}, v _ {x} ^ {j})) ]
+$$
+
+$$
+\mathcal {L} _ {a d v} ^ {D _ {i d}} = \mathbb {E} \left[ \log \left(D _ {i d} \left(\tilde {v} _ {x} ^ {i}, v _ {x} ^ {j}\right)\right) \right] - \mathbb {E} \left[ \log \left(1 - D _ {I} \left(v _ {x} ^ {n}, v _ {x} ^ {m}\right)\right) \right]. \tag {5}
+$$
+
+Similarly, we can apply existing pretrained face recognition models like VGGFace [10] or LightCNN [24] to extract visual features and to calculate the associated perceptual losses.
+
+# 3.3. Ensuring Temporal Smoothness
+
+While the learning and design details for each encoder, generator, and discriminator are described above, one typi
+
+cally consider an effective face reenactment model to produce video outputs instead of images. To better model temporal continuity across each output frame, we finally deploy a video discriminator [7] $D_{tmp}$ , which consists of 3D-convolutional layers, to enforce temporal smoothness and thus improve the quality of output videos. More precisely, we take three consecutive frames as the input video sequence $\{\tilde{v}_x^t\}_{t = i}^{i + 2}$ to $D_{tmp}$ in each iteration during training, and $D_{tmp}$ is trained to distinguish between the real sequence $\{v_x^t\}_{t = n}^{n + 2}$ sampled from the source-domain video and the fake ones (i.e., $\{\tilde{v}_x^t\}_{t = i}^{i + 2}$ ) generated by our model. The resulting temporal smoothness loss of $D_{tmp}$ is then defined as follows:
+
+$$
+\mathcal {L} _ {a d v} ^ {t m p} = - \mathbb {E} [ \log (D _ {t m p} (\{\tilde {v} _ {x} ^ {t} \} _ {t = i} ^ {i + 2})) ]),
+$$
+
+$$
+\begin{array}{l} \mathcal {L} _ {a d v} ^ {D _ {t m p}} = \mathbb {E} [ \log \left(D _ {t m p} \left(\left\{\tilde {v} _ {x} ^ {t} \right\} _ {t = i} ^ {i + 2}\right)\right) ] \tag {6} \\ - \mathbb {E} [ \log (1 - D _ {t m p} (\{v _ {x} ^ {t} \} _ {t = n} ^ {n + 2})) ]. \\ \end{array}
+$$
+
+# 3.4. Full Objectives
+
+To summarize the training of our proposed CrossIDGAN, the full objective function as listed below:
+
+For the supervised setting, we have
+
+$$
+\mathcal {L} _ {\text {p a i r}} = \mathcal {L} _ {\text {r e c}} + \mathcal {L} _ {\text {a d v}} ^ {\text {i m g}}. \tag {7}
+$$
+
+As for unsupervised learning scheme, we observe
+
+$$
+\mathcal {L} _ {u n p a i r} = \mathcal {L} _ {c o n} ^ {l m k} + \mathcal {L} _ {a d v} ^ {E _ {L}} + \mathcal {L} _ {a d v} ^ {i m g} + \mathcal {L} _ {a d v} ^ {i d} + \mathcal {L} _ {a d v} ^ {t m p}. \tag {8}
+$$
+
+And, the discriminators are trained by calculating
+
+$$
+\mathcal {L} _ {d i s} = \mathcal {L} _ {a d v} ^ {D _ {I}} + \mathcal {L} _ {a d v} ^ {D _ {C}} + \mathcal {L} _ {a d v} ^ {D _ {i d}} + \mathcal {L} _ {a d v} ^ {D _ {t m p}}. \tag {9}
+$$
+
+It is worth noting that, both supervised and unsupervised learning schemes are jointly considered when training our CrossID-GAN. In the following section, we will present our qualitative and quantitative face reenactment results, and provide comparisons to baseline or recent reenactment models.
+
+# 4. Experiments
+
+In this section, we describe the dataset we use, the implementation details of our proposed method, and the experiments we do to verify the effectiveness of our CrossIDGAN. Qualitative and quantitative comparisons with state-of-the-art methods are performed to demonstrate the superiority of our model. Also, we provide ablation studies to explore the effectiveness of our proposed components. Finally, experiments show that our model owns the ability to generalize to source landmarks from unseen identities.
+
+# 4.1. Dataset
+
+300 Videos in the Wild. We adopt 300VW [14] video dataset in our experiments. 300VW contains 114 videos of
+
+
+Figure 3. Qualitative comparison with state-of-the-art methods. Note that the results of X2Face suffer from image distortion when source-domain images are with extreme poses. Few-shot talking-head generates realistic images, but the identity of the reenacted images is not consistent with the target-domain one. Finally, our CrossID-GAN is able to transfer ID-independent motion information while preserving the identity of interest in the target domain. (More results and comparisons are available at supplementary materials.)
+
+different people. Every frame of each video is annotated with 68 coordinate points representing 68 facial landmarks. We take the first 102 videos as training videos, with the rest serve as videos of unseen identities. We crop the face region of every video to shape $128 \times 128$ . The facial landmarks are represented by a 68 channels heatmap, with every channel showing a unit Gaussian centered at its corresponding landmark location. Pairwise and unpaired frames are sampled from these videos to train our model. For pairwise data, we randomly sample 1000 pairs from every video in every epoch, which is 102000 pairs in total. For unpaired data, we randomly sample the same number as pairwise data (i.e. 102000 pairs) of different identity frame pairs from different videos.
+
+# 4.2. Implementation Details
+
+We implement our model with PyTorch [11]. For encoders, both $E_{L}$ and $E_{C}$ share the same structure, which consists of five convolutional layers and four residual blocks [4] to map input landmarks and image to latent code of dimension $8 \times 8 \times 256$ . Our generator $G$ contains five residual blocks followed by four transposed convolutional layers to decode the concatenation of latent codes to two intermediate products: a predicted mask $M$ and a hallucinated output $O$ . The final output image will be the linear combination of $I$ and $O$ using $M$ , where $\tilde{v}_{x}^{i} = (1 - M) \times I + M \times O$ . For our discriminators, different architectures are applied. We adopt the multi-layer (five layers to be specific) discriminator from CycleGAN as $D_{I}$ . $D_{C}$ contains four convolutional layers followed by three fully-connected layers that map landmark code to $l \in R^{n}$ with $n$ representing the number of identity in our training data. The feature ex
+
+tractor of AlexNet [9] is used to serve as the base model of Siamese network $D_{id}$ , which is initialized with PyTorch pretrained weights. After extracting features from $v_{x}^{j}$ and $\tilde{v}_{x}^{i}$ , the subtraction of both features is forward to a fully-connected layer to predict the realism score. $D_{tmp}$ contains four 3D-convolutional layers [7] and a fully-connected layer to predict the realism score of consecutive three inputs.
+
+The pretrained landmark extractor $F$ is trained following the state-of-the-art Pix2Pix [6] approach. We train $F$ using our training dataset, with face image as input and landmarks heatmap as ground truth. The weights of $F$ is fixed during the process of training our CrossID-GAN.
+
+# 4.3. Qualitative Evaluation
+
+We compare our method with two state-of-the-art works: X2Face [22] and Few-shot talking head [25] since both methods utilize a unified network to output reenacted images given a source-domain video and few target-domain images. We trained both models on our training dataset. For X2Face, since only the training code of their first stage is open source, we implement the second stage (stage with identity loss) by ourselves. For Few-shot talking head, since the official source code is not available, we use the code provided by the third party1 which implemented the meta-learning stage of this work perfectly. Since both models can take multiple target-domain images as input, say $K$ images, we set $K$ to 3 to ensure that we demonstrate the full ability of these models.
+
+Figure 3 shows the comparison results. While X2Face outputs sharp images, reenacted faces get distorted easily
+
+
+Target Source
+
+
+Sup. $\mathbf{w} / D_{C}$ Full
+Figure 4. Ablation studies of our training strategy. Note that introduction of $D_C$ allows learning of ID-invariant landmarks while preserving the target identity. The full version (trained with both supervised/unsupervised settings) produces the best results.
+
+because of lacking clear guidance of pose (i.e., landmarks information). Also, it fails to give reasonable output if the source image is under extreme poses (column 3 and 4). This show the shortcoming of warping based methods which are not able to synthesis image under different illumination due to the pixels of output images are warped from input images.
+
+On the other hand, with extra landmark information, the pose of output images from Few-shot talking head always corresponds to the source frame $v_{s}^{i}$ . However, severe identity difference occurs between output images and $I$ . This is mainly because they did not deal with the problem of cross-identity landmarks difference. Their model fails to preserve identity while doing face reenactment. The problem is especially obvious when doing face reenactment across genders.
+
+The last row shows the results of our CrossID-GAN. Thanks to our unsupervised learning strategy, the pose and expression of our output images always correspond to the source frame while the identity is also well preserved.
+
+# 4.4. Ablation Studies
+
+In our ablation studies, we first show how $D_C$ helps in landmark feature extraction. Then, we compare the results before and after the use of unpaired data.
+
+As Fig. 4 shows, the target-domain images $I$ and source-domain image $v_{s}^{i}$ are listed in the first and second column
+
+
+Only Supervised Training
+Figure 5. t-SNE visualization of landmark features $z_{l}$ without/with our unsupervised learning strategy. Each color represents a different identity/video and each point represents a single frame. Note that with our unsupervised learning strategy described in Sect. 3.2, the derived $z_{l}$ will be ID-invariant (not guided by person IDs).
+
+
+Supervised + Unsupervised Training
+
+respectively. The third column (Sup.) shows the results of our model after only supervised training. The shape of output face and mouth mainly depend on that of $v_{s}^{i}$ , causing serious identity gap between $I$ and output images. After adding $D_{C}$ during training, as the fourth column $(\mathbf{w} / D_C)$ shows, the contour of output faces is much more similar to $I$ . This demonstrates the effectiveness of $D_{C}$ to help $E_{L}$ learning to extract ID-invariant code. However, while the distortion of reenacted images is much improved, missing details such as the difference in skin color or dissimilarity of nose and cheek still exist. The last column (Full) shows the results of our model after taking a fully supervised and unsupervised training process. We can tell that the problems are well tackled by the increase of identity similarity. This proves the effectiveness of our strategy of considering both pairwise and unpaired data during training.
+
+# 4.5. Quantitative Evaluation
+
+Besides qualitative comparisons, we further perform quantitative comparisons with X2Face and Few-shot talking head to evaluate the capability of identity preservation and the quality of synthesized images. For the evaluation regarding the capability of identity preservation, since there are no ground truth videos for reenacted outputs, it is intuitive to calculate the cosine similarity (CSIM) between embedding vectors of reenacted frames and the target-domain image, which are extracted through the state-of-the-art face recognition network [2]. However, since there are numerous pairs of source frames and target images, it is not practical for us to perform reenactment on all the combinations. As an alternative, we randomly sample 10 pairs of source-domain video and target-domain image and then calculate the mean CSIM score of all pairs. As Table 2 shows, our CrossID-GAN reaches the highest score of CSIM, which confirms that our model owns the best capability in preserving the identity of the target-domain image. To evaluate the quality of synthesized images, we follow the setting of Few-shot talking-head [25], which reconstructs the input video when source-domain landmarks and target-
+
+| Method | X2Face | Talking-Head | CrossID-GAN(Ours) |
| CSIM(↑) | 0.646 | 0.607 | 0.655 |
+
+Table 2. Quantitative comparisons results with state-of-the-art face reenactment methods in terms of visual/ID consistency between the target image and the produced video outputs.
+
+| Method | FID (↓) | SSIM (↑) | CSIM (↑) |
| X2Face | 15.06 | 0.83 | 0.867 |
| Talking-Head | 22.95 | 0.80 | 0.893 |
| Ours | 9.31 | 0.80 | 0.883 |
+
+Table 3. Quantitative comparisons with state-of-the-art methods of face reenactment in quality of synthesized images.
+
+domain images are of the same identity. Three metrics, including FID [5], SSIM [21], and CSIM of features extracted from [2] between reconstructed images and the input (ground truth) frames are calculated. To be more specific, Frechet-inception distance (FID) is a measurement of similarity between two sets of images, which is often used to estimate the realism of generated images with real images by computing the Fréchet distance between the two Gaussian distributions fitted to feature representations of the Inception network. Structured similarity (SSIM) and cosine similarity (CSIM) aim to measure the low-level and the high-level identity preservation to the input (ground truth) frames respectively. As shown in Table 3, our model shows competitive results in synthesizing images. Despite these metric scores of different methods are close, our CrossID-GAN is capable of transferring motion across multiple identities well, while others fail to present accurate face reenactment.
+
+# 4.6. T-SNE Visualization of Encoded Landmarks Features
+
+In this section, we demonstrate the capability of our $E_{L}$ in extracting ID-invariant pose information. We apply t-SNE to visualize the distribution of embedded landmarks features $z_{l}$ with/without our introduced unsupervised learning scheme, which confuses the ID labels in $z_{l}$ with data recovery guarantees. We pick the first 10 videos from our dataset and randomly sample 20 frames from each video for visualization. As shown in Fig. 5, the left image shows the distribution of $z_{l}$ with $E_{L}$ only trained under the supervised setting. With each identity represented by a color, we observe that the distribution of $z_{l}$ mainly depended on their identity, this indicates that the features encoded by $E_{L}$ still contain identity information in this stage. On the other hand, the right image shows the distribution after our full training strategy. We can see that the encoded features are now mixed up and do not exhibit ID-oriented information. This confirms that our $E_{L}$ extracts ID-invariant landmark information. With ID information is eliminated, pose in
+
+
+Figure 6. Examples of face reenactment with poses transferred from unseen identities. Note that methods like RecycleGAN cannot deal with source poses from unseen identity inputs.
+
+formation is preserved so that our model is able to perform face reenactment across multiple identities successfully.
+
+# 4.7. Pose from Unseen Identity
+
+Finally, we show that our CrossID-GAN owns the ability to generalize to unseen poses. Unseen pose means that the identity of source landmarks is not observed during training phase. Despite this circumstance, our CrossID-GAN is still able to perform face reenactment from these unseen poses. As shown in Fig. 6, the first column listed the input source-domain images, and the first row listed the target identity images. We can see that the motion from unseen poses is transferred accurately while the target identities are still well preserved. This shows that the range of source-domain is not limited to our training data but can be expanded to unseen identities, which makes our model more practical in real-world applications.
+
+# 5. Conclusion
+
+We proposed a unified deep learning model of CrossID-GAN, which extracts and transfers ID-invariant motion patterns across visual domains for multi-ID face reenactment. Different from most existing face reenactment methods, our model can be trained via supervised and unsupervised settings, while no ground truth landmarks are required. More importantly, our CrossID-GAN is designed to handle multiple ID in an unified framework. With qualitative and quantitative comparisons with state-of-the-art models, we confirmed the effectiveness and superiority of our method for cross-ID face reenactment.
+
+Acknowledgement This work is supported in part by the Ministry of Science and Technology of Taiwan under grant MOST 109-2634-F-002-037.
+
+# References
+
+[1] Aayush Bansal, Shugao Ma, Deva Ramanan, and Yaser Sheikh. Recycle-gan: Unsupervised video retargeting. In Proceedings of the European Conference on Computer Vision (ECCV), pages 119-135, 2018. 1, 2, 3
+[2] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4690-4699, 2019. 7, 8
+[3] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 1
+[4] 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
+[5] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, pages 6626-6637, 2017. 8
+[6] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125-1134, 2017. 6
+[7] Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 3d convolutional neural networks for human action recognition. IEEE transactions on pattern analysis and machine intelligence, 35(1):221-231, 2012. 5, 6
+[8] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European conference on computer vision, pages 694–711. Springer, 2016. 4
+[9] 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. 6
+[10] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, et al. Deep face recognition. In bmvc, volume 1, page 6, 2015. 5
+[11] 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. 6
+[12] Fengchun Qiao, Naiming Yao, Zirui Jiao, Zhihao Li, Hui Chen, and Hongan Wang. Geometry-contrastive gan for facial expression transfer. arXiv preprint arXiv:1802.01822, 2018. 2, 3
+[13] Enrique Sanchez and Michel Valstar. Triple consistency loss for pairing distributions in gan-based face synthesis. arXiv preprint arXiv:1811.03492, 2018. 2, 3
+[14] Jie Shen, Stefanos Zafeiriou, Grigoris G Chrysos, Jean Kossaifi, Georgios Tzimiropoulos, and Maja Pantic. The first facial landmark tracking in-the-wild challenge: Benchmark
+
+and results. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 50-58, 2015. 5
+[15] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 4
+[16] Justus Thies, Michael Zollhöfer, Matthias Nießner, Levi Valgaerts, Marc Stamminger, and Christian Theobalt. Real-time expression transfer for facial reenactment. ACM Trans. Graph., 34(6):183-1, 2015. 1
+[17] Justus Thies, Michael Zollhofer, Marc Stamminger, Christian Theobalt, and Matthias Nießner. Face2face: Real-time face capture and reenactment of rgb videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2387-2395, 2016. 1, 2
+[18] Yu Tian, Xi Peng, Long Zhao, Shaoting Zhang, and Dimitris N Metaxas. Cr-gan: learning complete representations for multi-view generation. arXiv preprint arXiv:1806.11191, 2018. 2, 3
+[19] Luan Tran, Xi Yin, and Xiaoming Liu. Disentangled representation learning gan for pose-invariant face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1415-1424, 2017. 2, 3
+[20] Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1526-1535, 2018. 3
+[21] Zhou Wang, Alan C Bovik, Hamid R Sheikh, Eero P Simoncelli, et al. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600-612, 2004. 8
+[22] Olivia Wiles, A Sophia Koepke, and Andrew Zisserman. X2face: A network for controlling face generation using images, audio, and pose codes. In Proceedings of the European Conference on Computer Vision (ECCV), pages 670-686, 2018. 2, 3, 6
+[23] Wayne Wu, Yunxuan Zhang, Cheng Li, Chen Qian, and Chen Change Loy. Reenactgan: Learning to reenact faces via boundary transfer. In Proceedings of the European Conference on Computer Vision (ECCV), pages 603-619, 2018. 2, 3
+[24] Xiang Wu, Ran He, Zhenan Sun, and Tieniu Tan. A light cnn for deep face representation with noisy labels. IEEE Transactions on Information Forensics and Security, 13(11):2884-2896, 2018. 5
+[25] Egor Zakharov, Aliaksandra Shysheya, Egor Burkov, and Victor Lempitsky. Few-shot adversarial learning of realistic neural talking head models. arXiv preprint arXiv:1905.08233, 2019. 2, 3, 6, 7
+[26] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223-2232, 2017. 1, 2, 3
\ No newline at end of file
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/images.zip b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..288f972c5b837aeed9cccdf4223b7aaab191ef01
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e83a422e5c62b4867ba59b67a2c37cb5554919b30ae22d8c8776b6e93e9aaeb9
+size 490193
diff --git a/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/layout.json b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1e555a4b19663f2cf821f7f81f1e028effc09724
--- /dev/null
+++ b/learningidentityinvariantmotionrepresentationsforcrossidfacereenactment/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d70fe3260729d46da841719c880b767e1ef23d31e9cd88c0b5f7775ff1db074e
+size 373636
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_content_list.json b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2423e4afee4b11c7acef551c8acf45bc9419b92f
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c4775abf0f6bf122c8cd3bdbe1464afece37e9be8827e4ec9850ba6a7c381b4
+size 75950
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_model.json b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ecf68a779cbb4891ae90756ca406131e21ef540e
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:103e2c678be2a31deb364dcaf644c0c9c7ed07601c68f9ee57bfc6126759d092
+size 92232
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_origin.pdf b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bad0b9d98ca96bcedb8d2f3cd5068069e36e94b0
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/e6d1d0d3-4a39-46ac-b03f-1bfdcc15c62e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05e8675fa51fe3db1c024aa613c62663776431f8e2c1e4d9fe5809d20e28a486
+size 341410
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/full.md b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e6e5d57416da1719b2650ed816acb2f4e1eb9796
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/full.md
@@ -0,0 +1,297 @@
+# Learning Individual Speaking Styles for Accurate Lip to Speech Synthesis
+
+K R Prajwal*
+IIIT, Hyderabad
+
+Rudrabha Mukhopadhyay*
+IIIT, Hyderabad
+
+Vinay P. Namboodiri IIT, Kanpur
+
+CV Jawahar IIIT, Hyderabad
+
+{prajwal.k, radrabha.m}@research.iit.ac.in, vinaypn@iitk.ac.in, jawahar@iit.ac.in
+
+# Abstract
+
+Humans involuntarily tend to infer parts of the conversation from lip movements when the speech is absent or corrupted by external noise. In this work, we explore the task of lip to speech synthesis, i.e., learning to generate natural speech given only the lip movements of a speaker. Acknowledging the importance of contextual and speaker-specific cues for accurate lip-reading, we take a different path from existing works. We focus on learning accurate lip sequences to speech mappings for individual speakers in unconstrained, large vocabulary settings. To this end, we collect and release a large-scale benchmark dataset, the first of its kind, specifically to train and evaluate the single-speaker lip to speech task in natural settings. We propose a novel approach with key design choices to achieve accurate, natural lip to speech synthesis in such unconstrained scenarios for the first time. Extensive evaluation using quantitative, qualitative metrics and human evaluation shows that our method is four times more intelligible than previous works in this space.
+
+# 1. Introduction
+
+Babies actively observe the lip movements of people when they start learning to speak [24]. As adults, we pay high attention to lip movements to "visually hear" the speech in highly noisy environments. Facial actions, specifically the lip movements, thus reveal a useful amount of speech information. This fact is also exploited by individuals hard of hearing, who often learn to lip read their close acquaintances over time [15] to engage in more fluid conversations. Naturally, the question arises as to whether a model can learn to voice the lip movements of a speaker by "observing" him/her speak for an extended period. Learning such a model would only require videos of people talking with no further manual annotation. It also has a variety of practical applications such as (i) video conferencing in silent environments, (ii) high-quality speech recovery from
+
+
+Figure 1. We propose "Lip2Wav": a sequence-to-sequence architecture for accurate speech generation from silent lip videos in unconstrained settings for the first time. The text in the bubble is manually transcribed and is shown for presentation purposes.
+
+background noise [1], (iii) long-range listening for surveillance and (iv) generating a voice for people who cannot produce voiced sounds (aphonia). Another interesting application would be "voice inpainting" [41], where the speech generated from lip movements can be used in place of a corrupted speech segment.
+
+Inferring the speech solely from the lip movements, however, is a notoriously difficult task. A major challenge [5, 10] is the presence of homophones: multiple sounds (phonemes) that are auditorily distinct being perceptually very similar with almost identical lip shapes (viseme). For instance, the lip shape when uttering the phoneme /p/ (park) can be easily confused with /b/ (bark), and /m/ (mark). As a matter of fact, only $25\%$ to $30\%$ of the English language is discernible through lip-reading alone [8, 15, 25, 26]. This implies that professional lip readers do not only lip-read but also piece together multiple streams of information: the familiarity with their subjects, the topic being spoken about, the facial expressions and head gestures of the subject and also their linguistic knowledge. In contrast to this fact, contemporary works in lip to speech and lip to text take a drastically different approach.
+
+Recent attempts in lip to text [2, 5] learn from unconstrained, large vocabulary datasets with thousands of speakers. However, these datasets only contain about 2 minutes
+
+of data per speaker which is insufficient for models to learn concrete speaker-specific contextual cues essential for lip-reading. The efforts in lip to speech also suffer from a similar issue, but for a different reason. These works are constrained to small datasets [7] with narrow vocabulary speech in artificially constrained environments.
+
+In this work, we explore the problem of lip to speech synthesis from a unique perspective. We take inspiration from the fact that deaf individuals or professional lip readers find it easier to lip read people who they frequently interact with. Thus, rather than attempting lip to speech on random speakers in the wild, we focus on learning speech patterns of a specific speaker by simply observing the person's speech for an extended period. We explore the following question from a data-driven learning perspective: "How accurately can we infer an individual's speech style and content from his/her lip movements?"
+
+To this end, we collect and publicly release a 120-hour video dataset of 5 speakers uttering natural speech in unconstrained settings. Our Lip2Wav dataset contains $800 \times$ more data per speaker than the current multi-speaker datasets [2] to facilitate accurate modeling of speaker-specific audiovisual cues. The natural speech is spread across a diverse vocabulary1 that is about $100 \times$ larger than the current single speaker lip to speech datasets [7, 13]. To the best of our knowledge, our dataset is the only publicly available large-scale benchmark to evaluate single-speaker lip to speech synthesis in unconstrained settings. With the help of this dataset, we develop Lip2Wav, a sequence-to-sequence model to generate accurate, natural speech that matches the lip movements of a given speaker. We support our results through extensive quantitative and qualitative evaluations and ablation studies. Our key contributions are as follows:
+
+- We investigate the problem of silent lip videos to speech generation in large vocabulary, unconstrained settings for the first time.
+- We release a novel 120-hour person-specific Lip2Wav dataset specifically for learning accurate lip to speech models of individual speakers. Each speaker contains $80 \times$ more data with $100 \times$ larger vocabulary than its counterparts. The speech is uttered in natural settings with no restriction to head pose or sentence lengths.
+- Our sequence-to-sequence modeling approach produces speech that is almost $4 \times$ more intelligible in unconstrained environments compared to the previous works. Human evaluation studies also show that our generated speech is more natural with rich prosody.
+
+We release the data, code, trained models publicly for
+
+future research along with a demonstration video here². The rest of the paper is organized as follows: In Section 2, we survey the recent developments in this space. Following this, we describe our novel Lip2Wav dataset in Section 3. Our approach and training details are explained in Sections 4 and 5. We evaluate and compare our model with previous works in Section 6. We perform various ablation studies in Section 7 and conclude our work in Section 8.
+
+# 2. Related Work
+
+# 2.1. Lip to Speech Generation
+
+While initial approaches [20, 23] to this problem extracted the visual features from sensors or active appearance models, the recent works employ end-to-end approaches. Vid2Speech [10] and Lipper [22] generate low-dimensional LPC (Linear Predictive Coding) features given a short sequence of $K$ frames ( $K < 15$ ). The facial frames are concatenated channel-wise and a 2D-CNN is used to generate the LPC features. We show that this architecture is very inadequate to model real-world talking face videos that contain significant head motion, silences and large vocabularies. Further, the low dimensional LPC features used in these works do not contain a significant amount of speech information leading to robotic, artificial sounding speech.
+
+A follow-up work [9] of Vid2Speech does away with LPC features and uses high-dimensional melspectrograms along with optical flows to force the network to explicitly condition on lip motion. While this can be effective for the GRID corpus that has no head movements, optical flow could be a detrimental feature in unconstrained settings due to large head pose changes. Another work [36] strives for improved speech quality by generating raw waveforms using GANs. However, both these works do not make use of the well-studied sequence-to-sequence paradigm [31] that is used for text-to-speech generation [30]; thus leaving a large room for improvement in speech quality and correctness.
+
+Finally, all the above works show results primarily on the GRID corpus [7] which has a very narrow vocabulary of 56 tokens and very minimal head motion. We are the first to study this problem in a large vocabulary setting with thousands of words and sentences. Our datasets are collected from YouTube video clips and hence contain a significant amount of natural speech variations and head movements. This makes our results directly relevant to several real-world applications.
+
+# 2.2. Lip to Text Generation
+
+In this space as well, several works [6, 28, 37, 38] are limited to narrow vocabularies and small datasets, however, unlike lip to speech, there have been multiple works [2, 5]
+
+
+Figure 2. Our Lip2Wav dataset contains talking face videos of 5 speakers from chess analysis and lecture videos. Each speaker has about 20 hours of YouTube video content spanning a rich vocabulary of $5000+$ words.
+
+that specifically tackle open vocabulary lip to text in-the-wild. They employ transformer sequence-to-sequence [35] models to generate sentences given a silent lip movement sequence. These works also highlight multiple issues in the space of lip-reading, particularly the inherent ambiguity and hence the importance of using a language model. Our task at hand is arguably harder, as we not only have to infer the linguistic content, but also generate with rich prosody in the voice of the target speaker. Thus, we focus on extensively analyzing the problem in a single-speaker unconstrained setting, and learning precise individual speaking styles.
+
+# 2.3. Text to Speech Generation
+
+Over the recent years, neural text-to-speech models [27, 30] have paved the way to generate high-quality natural speech conditioned on any given text. Using sequence-to-sequence learning [31] with attention mechanisms, they generate melspectrograms in an auto-regressive manner. In our work, we propose Lip2Wav, a modified version of Tacotron 2 [30] that conditions on face sequences instead of text.
+
+# 3. Speaker-specific Lip2Wav Dataset
+
+The current datasets for lip to speech (or) text are at the two opposite ends of the spectrum: $(i)$ small, constrained narrow vocabulary like GRID [7], TCD-TIMIT [13] or $(ii)$ unconstrained, open vocabulary multi-speaker like LRS2 [2], LRW [6] and LRS3 [3]. The latter class of datasets contains only about 2 - 5 minutes of data per speaker, making it significantly harder for models to learn speaker-specific visual cues that are essential for inferring accurate speech from lip movements. Further, the results would also be directly affected by the existing challenges of multi-speaker speech synthesis [11, 19]. In the other extreme, the single-speaker lip to speech datasets [7, 13], do not emulate the natural settings as they are constrained to narrow vocabularies and artificial environments. Thus, both of these extreme cases do not test the limits of unconstrained single-speaker lip to speech synthesis.
+
+We introduce a new benchmark dataset for unconstrained lip to speech synthesis that is tailored towards exploring the
+
+following line of thought: How accurately can we infer an individual's speech style and content from his/her lip movements? To create the Lip2Wav dataset, we collect a total of about 120 hours of talking face videos across 5 speakers. The speakers are from various online lecture series and chess analysis videos. We choose English as the sole language of the dataset. With about 20 hours of natural speech per speaker and vocabulary sizes over 5000 words3 for each of them, our dataset is significantly more unconstrained and realistic than GRID [7] or TIMIT [13] datasets. It is thus ideal for learning and evaluating accurate person-specific models for the lip to speech task. Table 1 compares the features of our Lip2Wav dataset with other standard single-speaker lip-reading datasets. Note that a word is included in the vocabulary calculation for Table 1 only if its frequency in the dataset is at least five.
+
+| Dataset | Num. speak-ers | Total #hours | #hours per speaker | Vocab per speaker | Natural set-ting? |
| GRID [7] | 34 | 28 | 0.8 | 56 | × |
| TIMIT [13] | 3 | 1.5 | 0.5 | 82 | × |
| Lip2Wav (Ours) | 5 | 120 | ≈ 20 | ≈ 5K | ✓ |
+
+Table 1. The Lip2Wav dataset is the first large-scale dataset tailored towards acting as a reliable benchmark for single-speaker lip to speech synthesis.
+
+# 4. Lip to Speech Synthesis in the Wild
+
+Given a sequence of face images $I = (I_1, I_2, \ldots, I_T)$ with lip motion, our goal is to generate the corresponding speech segment $S = (S_1, S_2, \ldots, S_{T'})$ . To obtain natural speech in unconstrained settings, we make numerous key design choices in our Lip2Wav architecture. Below, we highlight and discuss how they are different from previous methods for lip to speech synthesis.
+
+# 4.1. Problem Formulation
+
+Prior works in lip to speech regard their speech representation as a 2D-image [10,36] in the case of melspectrograms or as a single feature vector [10] in the case of LPC features.
+
+In both these cases, they use a 2D-CNN to decode these speech representations. By doing so, they violate the ordering in which they model the sequential speech data, i.e. the future time steps influence the prediction of the current time step. In contrast, we formulate this problem in the standard sequence-to-sequence learning paradigm [31]. Concretely, each output speech time-step $S_{k}$ is modelled as a conditional distribution of the previous speech time-steps $S_{< k}$ and the input face image sequence $I = (I_{1}, I_{2}, \dots, I_{T})$ . The probability distribution of each output speech time-step is given by:
+
+$$
+P (S \mid I) = \Pi_ {k} \left(S _ {k} \mid S _ {< k}, I\right) \tag {1}
+$$
+
+Lip2Wav, as shown in Figure 3 consists of two modules: (i) Spatio-temporal face encoder (ii) Attention-based speech decoder. The modules are trained jointly in an end-to-end fashion. The sequence-to-sequence approach enables the model to learn an implicit speech-level language model that helps it to disambiguate homophones.
+
+# 4.2. Speech Representation
+
+There are multiple output representations from which we can recover intelligible speech, but each of them have their trade-offs. The LPC features are low-dimensional and easier to generate, however, they result in robotic, artificial sounding speech. At the other extreme [36], one can generate raw waveforms but the high dimensionality of the output (16000 samples per second) makes the network training process computationally inefficient. We take inspiration from previous text-to-speech works [27, 30] and generate melspectrograms conditioned on lip movements. We sample the raw audio at $16\mathrm{kHz}$ . The window-size, hop-size and mel dimension are 800, 200, and 80 respectively.
+
+# 4.3. Spatio-temporal Face Encoder
+
+Our visual input is a short video sequence of face images. The model must learn to extract and process the fine-grained sequence of lip movements. 3D convolutional neural networks have been shown to be effective [18, 33, 36] in multiple tasks involving spatio-temporal video data. In this work, we try to encode the spatio-temporal information of the lip movements using a stack of 3D convolutions (Figure 3). The input to our network is a sequence of facial images of the dimension $T \times H \times W \times 3$ , where $T$ is the number of time-steps (frames) in the input video sequence, $H, W$ correspond to the spatial dimensions of the face image. We gradually down-sample the spatial extent of the feature maps and preserve the temporal dimension $T$ . We also employ residual skip connections [14] and batch normalization [16] throughout the network. The encoder outputs a single $D$ -dimensional vector for each of the $T$ input facial images to get a set of spatio-temporal features $T \times D$ to be passed to the speech decoder. Each time-step of the
+
+
+Figure 3. Lip2Wav model for lip to speech synthesis. The spatiotemporal encoder is a stack of 3D convolutions to extract the sequence of lip movements. This is followed by a decoder adapted from [30] for high-quality speech generation. The decoder is conditioned on the face image features from the encoder and generates the melspectrogram in an auto-regressive fashion.
+
+embedding generated from the encoder also contains information about the future lip movements and hence helps in the subsequent generation.
+
+# 4.4. Attention-based Speech Decoder
+
+To achieve high-quality speech generation, we exploit the recent breakthroughs [27, 30] in text-to-speech generation. We adapt the Tacotron 2 [30] decoder which has been used to generate melspectrograms conditioned on text inputs. For our work, we condition the decoder on the encoded face embeddings from the previous module. We refer the reader to the Tacotron 2 [30] paper for more details about the decoder. The encoder and decoder are trained end-to-end by minimizing the L1 reconstruction loss between the generated and the ground-truth melspectrogram.
+
+# 4.5. Gradual Teacher Forcing Decay
+
+In the initial stages of training, up to $\approx 30K$ iterations, we employ teacher forcing similar to the text-to-speech counterpart. We hypothesize that this enables the decoder to
+
+learn an implicit speech-level language model to help in disambiguating homophenes. Similar observations are made in lip to text works [2] which employ a transformer-based sequence-to-sequence model. Over the course of the training, we gradually decay the teacher forcing to enforce the model to attend to the lip region and to prevent the implicit language model from over-fitting to the train set vocabulary. We examine the effect of this decay in sub-section 7.3.
+
+# 4.6. Context Window Size
+
+The size of the visual context window for inferring the current speech time-step helps the model to disambiguate homophenes [10]. We employ about $6 \times$ larger context size than prior works and show in sub-section 7.1 that this design choice results in significantly more accurate speech.
+
+# 5. Benchmark Datasets and Training Details
+
+# 5.1. Datasets
+
+The primary focus of our work is on single-speaker lip to speech synthesis in unconstrained, large vocabulary settings. For the sake of comparison with previous works, we also train the Lip2Wav model on the GRID corpus [7] and the TCD-TIMIT lip speaker corpus [13]. Next, we train on all five speakers of our newly collected speaker-specific Lip2Wav dataset. Unless specified, all the datasets are divided into $90 - 5 - 5\%$ train, validation and unseen test splits. In the Lip2Wav dataset, we create these splits using different videos ensuring that no part of the same video is used for both training and testing. The train and test splits are also released for fair comparison in future works.
+
+# 5.2. Training Methodology and Hyper-parameters
+
+We prepare a training input example by randomly sampling a contiguous sequence of 3 seconds which corresponds to $T = 75$ or $T = 90$ depending on the frame rate (FPS) of the video. The effect of various context window sizes is studied in Section 7.1. We detect and crop the face from the video frames using the $S^3FD$ face detector [40]. The face crops are resized to $48 \times 48$ . The melspectrogram representation of the audio corresponding to the chosen short video segment is used as the desired groundtruth for training. For training on small datasets like GRID and TIMIT, we halve the hidden dimension to prevent overfitting. We set the training batch size to 32 and train until the mel reconstruction loss plateaus for at least $30K$ iterations. In our experiments for unconstrained single-speaker, convergence was achieved in about $200K$ iterations. The optimizer used is Adam [21] with an initial learning rate of $10^{-3}$ . The model with the best performance on the validation set is chosen for testing and evaluation. More details, specifically a few minor speaker-specific hyper-parameter changes can be found in the publicly released code2.
+
+# 5.3. Speech Generation at Test Time
+
+During inference, we provide only the sequence of lip movements and generate the speech in an auto-regressive fashion. Note that we can generate speech for any length of lip sequences. We simply take consecutive $T$ second windows and generate the speech for each of them independently and concatenate them together. We also maintain a small overlap across the sliding windows to adjust for boundary effects. We obtain the waveform from the generated melspectrogram using the standard Griffin-Lim algorithm [12]. We observed that neural vocoders [34] perform poorly in our case as our generated melspectrograms are significantly less accurate than state-of-the-art TTS systems. Finally, the ability to generate speech for lip sequences of any length is worth highlighting as the performance of the current lip-to-text works trained at sentence-level deteriorates sharply for long sentences that barely last over just 4 - 5 seconds [2].
+
+# 6. Experiments and Results
+
+We obtain results from our Lip2Wav model on all the test splits as described above. For comparing related work, we use the open-source implementations provided by the authors if available or re-implement a version ourselves. We compare our models with the previous lip to speech works using three standard speech quality metrics: Short-Time Objective Intelligibility (STOI) [32] and Extended Short-Time Objective Intelligibility (ESTOI) [17] for estimating the intelligibility and Perceptual Evaluation of Speech Quality (PESQ) [29] to measure the quality. Using an out-of-the-box ASR system4, we obtain textual transcripts for our generated speech and evaluate our speech results using word error rates (WER) for the GRID [7] and TCD-TIMIT lip speaker corpus [13]. We, however do not compute WER for the proposed Lip2Wav corpus due to the lack of text transcripts. We also perform human evaluation and report the mean opinion scores (MOS) for the proposed Lip2Wav model and the competing methods. Next, we also perform extensive ablation studies for our approach and report our observations. Finally, as we achieve superior results compared to previous works in single-speaker settings, we end the experimental section by also reporting baseline results for word-level multi-speaker lip to speech generation using the LRW [6] dataset and highlight its challenges as well.
+
+# 6.1. Lip to Speech in Constrained Settings
+
+We start by evaluating our approach against previous lip to speech works in constrained datasets, namely the GRID [7] corpus and TCD-TIMIT lip speaker corpus [13]. For the GRID dataset, we report the mean test scores for 4 speakers which are also reported in the previous works.
+
+Tables 2 and 3 summarize the results for GRID and TIMIT datasets respectively.
+
+| Method | STOI | ESTOI | PESQ | WER |
| Vid2Speech [10] | 0.491 | 0.335 | 1.734 | 44.92% |
| Lip2AudSpec [4] | 0.513 | 0.352 | 1.673 | 32.51% |
| GAN-based [36] | 0.564 | 0.361 | 1.684 | 26.64% |
| Ephrat et al. [9] | 0.659 | 0.376 | 1.825 | 27.83% |
| Lip2Wav (ours) | 0.731 | 0.535 | 1.772 | 14.08% |
+
+Table 2. Objective speech quality, intelligibility and WER scores for the GRID dataset unseen test split.
+
+| Method | STOI | ESTOI | PESQ | WER |
| Vid2Speech [10] | 0.451 | 0.298 | 1.136 | 75.52% |
| Lip2AudSpec [4] | 0.450 | 0.316 | 1.254 | 61.86% |
| GAN-based [36] | 0.511 | 0.321 | 1.218 | 49.13% |
| Ephrat et al. [9] | 0.487 | 0.310 | 1.231 | 53.52% |
| Lip2Wav (ours) | 0.558 | 0.365 | 1.350 | 31.26% |
+
+As we can see, our approach outperforms competing methods across all objective metrics by a significant margin. The difference is particularly visible in the TIMIT [13] dataset, where the test set contains a lot of novel words unseen during training. This shows that our model learns to capture correlations across short phoneme sequences and pronounces new words better than previous methods.
+
+# 6.2. Lip to Speech in Unconstrained Settings
+
+We now move on to evaluating our approach in unconstrained datasets that contain a lot of head movements and much broader vocabularies. They also contain a significant amount of silences or pauses between words and sentences. It is here that we see a more vivid difference in our approach compared to previous approaches. We train our model independently on all 5 speakers of our newly collected Lip2Wav dataset. The training details are mentioned in the sub-section 5.2. For comparison with previous works, we choose the best performing models [9,36] on the TIMIT dataset based on STOI scores and report their performance after training on our Lip2Wav dataset. We compute the same metrics for speech intelligibility and quality that are used in Table 3. The scores for all five speakers for our method and the two competing methods across all three metrics are reported in Table 4.
+
+Our approach produces much more intelligible and natural speech across different speakers and vocabulary sizes. Notably, our model has more accurate pronunciation, as can be seen in the increased STOI and ESTOI scores compared to the previous works.
+
+Table 3. Objective speech quality, intelligibility and WER scores for the TCD-TIMIT dataset unseen test split.
+
+| Method | Speaker | STOI | ESTOI | PESQ |
| GAN-based [36] | Chemistry Lectures | 0.192 | 0.132 | 1.057 |
| Ephrat et al. [9] | 0.165 | 0.087 | 1.056 |
| Lip2Wav (ours) | 0.416 | 0.284 | 1.300 |
| GAN-based [36] | Chess Analysis | 0.195 | 0.104 | 1.165 |
| Ephrat et al. [9] | 0.184 | 0.098 | 1.139 |
| Lip2Wav (ours) | 0.418 | 0.290 | 1.400 |
| GAN-based [36] | Deep Learning | 0.144 | 0.070 | 1.121 |
| Ephrat et al. [9] | 0.112 | 0.043 | 1.095 |
| Lip2Wav (ours) | 0.282 | 0.183 | 1.671 |
| GAN-based [36] | Hardware Security | 0.251 | 0.110 | 1.035 |
| Ephrat et al. [9] | 0.192 | 0.064 | 1.043 |
| Lip2Wav (ours) | 0.446 | 0.311 | 1.290 |
| GAN-based [36] | Ethical hacking | 0.171 | 0.089 | 1.079 |
| Ephrat et al. [9] | 0.143 | 0.064 | 1.065 |
| Lip2Wav (ours) | 0.369 | 0.220 | 1.367 |
+
+# 6.3. Human Evaluation
+
+In addition to speech quality and intelligibility metrics, it is important to manually evaluate the speech as these metrics are not perfect [9] measures.
+
+# 6.3.1 Objective Human Evaluation
+
+In this study, we ask the human participants to manually identify and report (A) the percentage of mispronunciations, (B) the percentage of word skips and (C) the percentage of mispronunciations that are homophones. Word skips denotes the number of words that are either completely unintelligible due to noise or slurry speech. We choose 10 predictions from the unseen test split of each speaker in our Lip2Wav dataset to get a total of 50 files. We report the mean numbers of (A), (B), and (C) in Table 5.
+
+Table 4. In unconstrained single-speaker settings, our Lip2Wav model achieves almost $4 \times$ more intelligible speech than the previous methods.
+
+| Model | (A) | (B) | (C) |
| GAN-based [36] | 36.6% | 24.3% | 63.8% |
| Ephrat et al [9] | 43.3% | 27.5% | 60.7% |
| Lip2Wav (ours) | 21.5% | 8.6% | 49.8% |
+
+Table 5. Objective Human evaluation results. The participants manually identified the percentage of (A) Mispronunciations, (B) Word skips and (C) Homophene-based errors in the test samples.
+
+Our approach makes far fewer mispronunciations than the current state-of-the-art method. It also skips words $3 \times$ lesser, however, the key point to note is that the issue of homophenes is still a dominant cause for errors in all cases indicating there is still scope for improvement in this area.
+
+# 6.3.2 Subjective Human Evaluation
+
+We ask 15 participants to rate the different approaches for unconstrained lip to speech synthesis on a scale of $1 - 5$ for each of the following criteria: (i) Intelligibility and (ii) Naturalness of the generated speech. Using 10 samples of generated speech for each of the 5 speakers from our Lip2Wav dataset, we compare the following approaches: (i) Our Lip2Wav model (ii) Current state-of-the-art lip to speech models [9, 36] (iii) Manually transcribed text followed by a multi-speaker TTS [19, 30] to show that even with the most accurate text, lip to speech is not a concatenation of lip-to-text and text-to-speech. And finally, (iv) Human speech is also added for reference. In all the cases, we overlay the speech on the face video before showing it to the rater. The mean scores are reported in Table 6.
+
+| Approach | Intelligibility | Naturalness |
| GAN-based [36] | 1.56 | 1.71 |
| Ephrat et al. [9] | 1.34 | 1.67 |
| Lip2Wav (ours) | 3.04 | 3.63 |
| MTT + TTS [30] | 3.86 | 3.15 |
| Actual Human Speech | 4.82 | 4.95 |
+
+Table 6. Mean human evaluation scores based on speech quality and intelligibility for various approaches for lip to speech. MTT denotes "manually-transcribed text". The penultimate row simulates the best possible case of automatic lip to text followed by a state of the art text-to-speech system. The drop in naturalness score in this case illustrates the loss in speech style and prosody.
+
+In line with the previous evaluations, we can see that our approach produces significantly higher quality and legible speech compared to the previous state-of-the-art [36]. It is also evident that generating the speech from the text that is read from lip movements (lip to text), cannot achieve the desired prosody and naturalness even if the text is fully accurate. Further, this method will also cause the lips and audio to be out of sync. Thus, our approach is currently the best method to produce natural speech from lip movements.
+
+# 6.4. Multi-speaker Word-level Lip to Speech
+
+Given the superior performance of our Lip2Wav approach on single-speaker lip to speech, we also obtain baseline results on the highly challenging problem of multispeaker lip to speech synthesis for random identities. Note that the focus of the work is still primarily on single-speaker lip to speech. We adapt the approach presented in [19] and feed a speaker embedding as input to our model. We report our baseline results on the LRW [6] dataset intended for word-level lip-reading, i.e. it is used to measure the performance of recognizing a single word in a given short phrase of speech. We do not demonstrate on the LRS2 dataset [5] as its clean train set contains just 29 hours of data, which is quite small for multi-speaker speech genera
+
+tion. For instance, multi-speaker text-to-speech generation datasets [39] containing a similar number of speakers contain several hundreds of hours of speech data.
+
+In Table 7, we report the speech quality and intelligibility metrics achieved by our multi-speaker Lip2Wav model on the LRW test split. As none of the previous works in lip to speech tackle the multi-speaker case, we do not make any comparisons with them. We also report the WER by getting the text using the Google ASR API. For comparison, we also report the WER of the baseline lip to text work on LRW [6]. Note that the speech metric scores shown in Table 7 for word-level lip to speech cannot be directly compared with the single-speaker case which contains word sequences of various lengths along with pauses and silences.
+
+| Method | STOI | ESTOI | PESQ | WER |
| Lip2Wav (Ours) | 0.543 | 0.344 | 1.197 | 34.2% |
| Chung et al. [6] | NA | NA | NA | 38.8% |
+
+Table 7. Objective speech quality and intelligibility scores on the LRW dataset. WER is also calculated after using an ASR on the generated speech. Our model outperforms the baseline method proposed in [6], without any text-level supervision. The speech metrics are not applicable for [6] as it is a lip to text work.
+
+We end our experimental section here. Apart from showing significant increases in performance from previous lip to speech works, we also achieve word-level multi-speaker lip to speech synthesis. In the next section, we conduct ablation studies on our model.
+
+# 7. Ablation Studies
+
+In this section, we probe different aspects of our Lip2Wav approach. All results in this section are calculated using the unseen test predictions on the "Hardware Security" speaker of our Lip2Wav dataset.
+
+# 7.1. Larger context window helps in disambiguation
+
+As stated before, the lip to speech task is highly ambiguous to be inferred solely from lip movements. One of the ways to combat this, is to provide reasonably large context information to the model to disambiguate a given viseme. Previous works, however, use only about $0.3 - 0.5$ seconds of context. In this work, we use close to $6 \times$ this number and provide a context of 3 seconds. This helps the model to disambiguate by learning co-occurrences of phonemes and words and the resulting improvement is evident in Table 8.
+
+# 7.2. Model is Highly Attentive to the Mouth
+
+We plot the activations of the penultimate layer of the spatio-temporal face encoder in Figure 4 to show that our encoder is highly attentive towards the mouth region of the speaker. The attention alignment curve in Figure 5 shows
+
+| Context Window size | STOI | ESTOI | PESQ |
| 0.5 seconds | 0.264 | 0.193 | 1.062 |
| 1.5 seconds | 0.321 | 0.226 | 1.080 |
| 3 seconds | 0.446 | 0.311 | 1.290 |
+
+that the decoder conditions on the appropriate video frame's lips while generating the corresponding speech.
+
+
+Figure 4. We plot the activations of the penultimate layer of the face encoder and the attention alignment from the decoder. We see that the face encoder is highly attentive towards the mouth region.
+
+
+Figure 5. The decoder alignment curve illustrates that the model is generating speech by strongly conditioning on the corresponding lip movements.
+
+# 7.3. Teacher Forcing vs Non-Teacher Forcing
+
+To accelerate the training of a sequence-to-sequence architecture, typically, the previous time step's ground-truth (instead of the generated output) is given as input to the current time-step. While this is highly beneficial in the initial stages of training, we observed that gradually decaying the teacher forcing from $\approx 30K$ iterations significantly im
+
+proves results and prevents over-fitting to the train vocabulary. A similar improvement is also observed in lip to text works [2]. In Table 9, we show the significant improvement in test scores by gradually decaying teacher forcing.
+
+Table 8. Larger context information consistently results in more accurate speech generation. We limit the window size to 3 seconds due to memory constraints.
+
+| Teacher-forcing | STOI | ESTOI | PESQ |
| Always forced | 0.221 | 0.162 | 1.141 |
| Gradual decay | 0.446 | 0.311 | 1.290 |
+
+# 7.4. Effect of Different Visual Encoders
+
+While using a 3D-CNN worked best in our experiments to capture both the spatial and temporal information in unconstrained settings, we also report in Table 10 the effect of using different kinds of encoders. We replace the encoder module while keeping the speech decoder module intact. We see that the best performance is obtained with a 3D-CNN encoder.
+
+Table 9. Gradually decaying the teacher forcing enables the model to generalize to unseen vocabulary by forcing it to look at the visual input and not just predict from the previously uttered speech.
+
+| Encoder | STOI | ESTOI | PESQ |
| 2D-CNN | 0.291 | 0.211 | 1.112 |
| 2D-CNN + 1D-CNN | 0.298 | 0.223 | 1.170 |
| 3D-CNN (ours) | 0.446 | 0.311 | 1.290 |
+
+Table 10. Our Lip2Wav model employs a 3D-CNN encoder to capture the spatio-temporal visual information and is the superior choice over the other alternatives.
+
+# 8. Conclusion
+
+In this work, we investigated the problem of synthesizing speech based on lip movements. We specifically solved the problem by focusing on individual speakers. We did this in a data-driven learning approach by creating a largescale benchmark dataset for unconstrained, large vocabulary single-speaker lip to speech synthesis. We formulate the task at hand as a sequence-to-sequence problem, and show that by doing so, we achieve significantly more accurate and natural speech than previous methods. We evaluate our model with extensive quantitative metrics and human studies. All the code and data for our work has been made publicly available2. Our work opens up several new directions. One of them would be to examine related works in this space such as lip to text generation from a speaker-specific perspective. Similarly, explicitly addressing the dominant issue of homophones can yield more accurate speech. Generalizing to vocabulary outside the typical domain of the speaker can be another fruitful venture. We believe that exploring some of the above problems in a data-driven fashion could lead to further useful insights in this space.
+
+# References
+
+[1] Triantafyllos Afouras, Joon Son Chung, and Andrew Zisserman. The conversation: Deep audio-visual speech enhancement. arXiv preprint arXiv:1804.04121, 2018.
+[2] Triantafyllos Afouras, Joon Son Chung, and Andrew Zisserman. Deep lip reading: a comparison of models and an online application. In INTERSPEECH, 2018.
+[3] Triantafyllos Afouras, Joon Son Chung, and Andrew Zisserman. Lrs3-ted: a large-scale dataset for visual speech recognition. arXiv preprint arXiv:1809.00496, 2018.
+[4] Hassan Akbari, Himani Arora, Liangliang Cao, and Nima Mesgarani. Lip2audspec: Speech reconstruction from silent lip movements video. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2516-2520, 2017.
+[5] Joon Son Chung, Andrew Senior, Oriol Vinyals, and Andrew Zisserman. Lip reading sentences in the wild. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3444-3453. IEEE, 2017.
+[6] Joon Son Chung and Andrew Zisserman. Lip reading in the wild. In Asian Conference on Computer Vision, pages 87-103. Springer, 2016.
+[7] Martin Cooke, Jon Barker, Stuart Cunningham, and Xu Shao. An audio-visual corpus for speech perception and automatic speech recognition. The Journal of the Acoustical Society of America, 120(5):2421–2424, 2006.
+[8] David A Ebert and Paul S Heckerling. Communication with deaf patients: knowledge, beliefs, and practices of physicians. Jama, 273(3):227-229, 1995.
+[9] Ariel Ephrat, Tavi Halperin, and Shmuel Peleg. Improved speech reconstruction from silent video. 2017 IEEE International Conference on Computer Vision Workshops (ICCVW), pages 455-462, 2017.
+[10] Ariel Ephrat and Shmuel Peleg. Vid2speech: speech reconstruction from silent video. In 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5095-5099. IEEE, 2017.
+[11] Andrew Gibiansky, Sercan Arik, Gregory Diamos, John Miller, Kainan Peng, Wei Ping, Jonathan Raiman, and Yanqi Zhou. Deep voice 2: Multi-speaker neural text-to-speech. In Advances in neural information processing systems, pages 2962-2970, 2017.
+[12] Daniel W. Griffin and Jae S. Lim. Signal estimation from modified short-time fourier transform. In ICASSP, 1983.
+[13] Naomi Harte and Eoin Gillen. Tcd-timit: An audio-visual corpus of continuous speech. IEEE Transactions on Multimedia, 17(5):603-615, 2015.
+[14] 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.
+[15] Lisa I Lezzoni, Bonnie L O'Day, Mary Killeen, and Heather Harker. Communicating about health care: observations from persons who are deaf or hard of hearing. Annals of Internal Medicine, 140(5):356-362, 2004.
+
+[16] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML'15, pages 448-456, 2015.
+[17] Jesper Jensen and Cees Taal. An algorithm for predicting the intelligibility of speech masked by modulated noise maskers. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 24:1-1, 11 2016.
+[18] Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 3d convolutional neural networks for human action recognition. IEEE transactions on pattern analysis and machine intelligence, 35(1):221-231, 2012.
+[19] Ye Jia, Yu Zhang, Ron Weiss, Quan Wang, Jonathan Shen, Fei Ren, Patrick Nguyen, Ruoming Pang, Ignacio Lopez Moreno, Yonghui Wu, et al. Transfer learning from speaker verification to multispeaker text-to-speech synthesis. In Advances in neural information processing systems, pages 4480-4490, 2018.
+[20] Christopher T Kello and David C Plaut. A neural network model of the articulatory-acoustic forward mapping trained on recordings of articulatory parameters. The Journal of the Acoustical Society of America, 116(4):2354-2364, 2004.
+[21] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[22] Yaman Kumar, Rohit Jain, Khwaja Mohd Salik, Rajiv Ratn Shah, Yifang Yin, and Roger Zimmermann. Lipper: Synthesizing thy speech using multi-view lipreading. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 2588-2595, 2019.
+[23] Thomas Le Cornu and Ben Milner. Generating intelligible audio speech from visual speech. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 25(9):1751-1761, 2017.
+[24] David J Lewkowicz and Amy M Hansen-Tift. Infants deploy selective attention to the mouth of a talking face when learning speech. Proceedings of the National Academy of Sciences, 109(5):1431-1436, 2012.
+[25] Christine Chong-hee Lieu, Georgia Robins Sadler, Judith T Fullerton, and Paulette Deyo Stohlmann. Communication strategies for nurses interacting with patients who are deaf. Dermatology Nursing, 19(6):541, 2007.
+[26] Helen Margellos-Anast, Teri Hedding, Toby Perlman, Linda Miller, Raymond Rodgers, Lisa Kivland, Dorothea DeGutis, Barbara Giloth, and Steven Whitman. Developing a standardized comprehensive health survey for use with deaf adults. American Annals of the Deaf, 150(4):388-396, 2005.
+[27] Wei Ping, Kainan Peng, Andrew Gibiansky, Sercan O Arik, Ajay Kannan, Sharan Narang, Jonathan Raiman, and John Miller. Deep voice 3: Scaling text-to-speech with convolutional sequence learning. arXiv preprint arXiv:1710.07654, 2017.
+[28] Leyuan Qu, Cornelius Weber, and Stefan Wermter. Lipsound: Neural mel-spectrogram reconstruction for lip reading. Proc. Interspeech 2019, pages 2768-2772, 2019.
+[29] Antony Rix, John Beerends, Michael Hollier, and Andries Hekstra. Perceptual evaluation of speech quality (pesq): A
+
+new method for speech quality assessment of telephone networks and codecs. volume 2, pages 749-752 vol.2, 02 2001.
+[30] Jonathan Shen, Ruoming Pang, Ron J Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Zhifeng Chen, Yu Zhang, Yuxuan Wang, Rj Skerrv-Ryan, et al. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4779-4783. IEEE, 2018.
+[31] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104-3112, 2014.
+[32] Cees Taal, Richard Hendriks, R. Heusdens, and Jesper Jensen. A short-time objective intelligibility measure for time-frequency weighted noisy speech. pages 4214 - 4217, 04 2010.
+[33] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 4489-4497, 2015.
+[34] Aäron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, 2016.
+[35] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008, 2017.
+[36] Konstantinos Vougioukas, Pingchuan Ma, Stavros Petridis, and Maja Pantic. Video-driven speech reconstruction using generative adversarial networks. arXiv preprint arXiv:1906.06301, 2019.
+[37] Michael Wand, Jan Koutnik, and Jürgen Schmidhuber. Lipreading with long short-term memory. In 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6115-6119. IEEE, 2016.
+[38] Kai Xu, Dawei Li, Nick Cassimatis, and Xiaolong Wang. Lcanet: End-to-end lipreading with cascaded attention-ctc. In 2018 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2018), pages 548–555. IEEE, 2018.
+[39] Heiga Zen, Viet Dang, Rob Clark, Yu Zhang, Ron J Weiss, Ye Jia, Zhifeng Chen, and Yonghui Wu. Libritts: A corpus derived from librispeech for text-to-speech. arXiv preprint arXiv:1904.02882, 2019.
+[40] Shifeng Zhang, Xiangyu Zhu, Zhen Lei, Hailin Shi, Xiaobo Wang, and Stan Z Li. S3fd: Single shot scale-invariant face detector. In Proceedings of the IEEE International Conference on Computer Vision, pages 192-201, 2017.
+[41] Hang Zhou, Ziwei Liu, Xudong Xu, Ping Luo, and Xiaogang Wang. Vision-infused deep audio inpainting. In Proceedings of the IEEE International Conference on Computer Vision, pages 283-292, 2019.
\ No newline at end of file
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/images.zip b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d63fee806bbb86c8c61371df47c9876718fc603a
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:133f7cd09db888a82afc457bacac849d9f792a3024340b30fc6f1b6d0c9aceed
+size 461192
diff --git a/learningindividualspeakingstylesforaccurateliptospeechsynthesis/layout.json b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..0061d29b406b6f3746d7c4e67882e9642e0bfa0e
--- /dev/null
+++ b/learningindividualspeakingstylesforaccurateliptospeechsynthesis/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bfe7fcf1e14caef856a870757744d1468170fe5e7e2917aa402c02d48283d9ac
+size 328299
diff --git a/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_content_list.json b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a762c4212229d47b6e9ccc3d96e9c2d6fb2a0316
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:efdb1660c22ad850a9117e39101731ccd7c61bade1076aed1de7f81f663bca84
+size 82464
diff --git a/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_model.json b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d2d762404cd7f89d738bcd55f74e881bf95146c
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b071bbb95f30e5185547d758ff4e723e9e3e98eaeb35ff7e9a64fef2e268a495
+size 96687
diff --git a/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_origin.pdf b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ee74a67f4b5a4b3f26e52c7e03d073143535e513
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/05cceea6-1d02-4443-a4e8-93c3562561d8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a2b8c4668cc7d24af2f790e15feae69dee945ad68712a9bafc9f67ddc1b72479
+size 1417076
diff --git a/learninginstanceocclusionforpanopticsegmentation/full.md b/learninginstanceocclusionforpanopticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fc3fecfc0438b861ad69a12013ee8b09861d1b60
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/full.md
@@ -0,0 +1,383 @@
+# Learning Instance Occlusion for Panoptic Segmentation
+
+Justin Lazarow* Kwonjoon Lee* Kunyu Shi* Zhuowen Tu University of California San Diego
+
+{jlazarow, kwl042, kshi, ztu}@ucsd.edu
+
+# Abstract
+
+Panoptic segmentation requires segments of both "things" (countable object instances) and "stuff" (uncountable and amorphous regions) within a single output. A common approach involves the fusion of instance segmentation (for "things") and semantic segmentation (for "stuff") into a non-overlapping placement of segments, and resolves overlaps. However, instance ordering with detection confidence do not correlate well with natural occlusion relationship. To resolve this issue, we propose a branch that is tasked with modeling how two instance masks should overlap one another as a binary relation. Our method, named OCFusion, is lightweight but particularly effective in the instance fusion process. OCFusion is trained with the ground truth relation derived automatically from the existing dataset annotations. We obtain state-of-the-art results on COCO and show competitive results on the Cityscapes panoptic segmentation benchmark.
+
+# 1. Introduction
+
+Image understanding has been a long standing problem in both human perception [1] and computer vision [25]. The image parsing framework [35] is concerned with the task of decomposing and segmenting an input image into constituents such as objects (text and faces) and generic regions through the integration of image segmentation, object detection, and object recognition. Scene parsing is similar in spirit and consists of both non-parametric [33] and parametric [40] approaches.
+
+After the initial development, the problem of image understanding was studied separately as object detection (or extended to instance segmentation) and semantic segmentation. Instance segmentation [27, 28, 5, 20, 10, 29, 39, 15] requires the detection and segmentation of each thing (countable object instance) within an image, while semantic segmentation [30, 34, 9, 24, 2, 41, 40] provides a dense per-pixel classification without distinction between instances within the same thing category. Kirillov et al. [17] proposed the panoptic segmentation task that combines the strength
+
+
+
+
+fusion by confidence
+
+
+OCFusion
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 1: An illustration of fusion using masks sorted by detection confidence alone [17] vs. with the ability to query for occlusions (OCFusion; ours). Occlude $(A, B) = 0$ in occlusion head means mask $B$ should be placed on top of mask $A$ . Mask R-CNN proposes three instance masks listed with decreasing confidence. The heuristic of [17] occludes all subsequent instances after the "person", while our method retains them in the final output by querying the occlusion head.
+
+
+
+
+
+
+
+of semantic segmentation and instance segmentation. In this task, each pixel in an image is assigned either to a background class (stuff) or to a specific foreground object (an instance of things).
+
+A common approach for panoptic segmentation has emerged in a number of works [16, 19, 38] that relies on combining the strong baseline architectures used in semantic segmentation and instance segmentation into either a separate or shared architecture and then fusing the results from the semantic segmentation and instance segmentation branches into a single panoptic output. Since there is no expectation of consistency in proposals between semantic and instance segmentation branches, conflicts must be resolved. Furthermore, one must resolve conflicts within the instance segmentation branch as it proposes segmentations independ-
+
+
+Figure 2: Illustration of the overall architecture. The FPN is used as a shared backbone for both thing and stuff branches. In thing branch, Mask R-CNN will generate instance mask proposals, and the occlusion head will output binary values Occlude $(M_i, M_j)$ (Equation 1) for each pair of mask proposals $M_i$ and $M_j$ with appreciable overlap (larger than a threshold) to indicate occlusion relation between them. Occlusion head architecture is described in Section 2.4. Fusion process is described in 2.3.
+
+dent of each other. While a pixel in the panoptic output can only be assigned to a single class and instance, instance segmentation proposals are often overlapping.
+
+To handle these issues, Kirillov et al. [17] proposed a fusion process similar to non-maximum suppression (NMS) that favors instance proposals over semantic proposals. However, we observe that occlusion relationships between different objects do not correlate well with object detection confidence used in this NMS-like fusion procedure [17], which therefore generally leads to poor performance when an instance that overlaps another (e.g., a tie on a shirt in Figure 3a) has lower detection confidence than the instance it should occlude. This can cause a large number of instances that Mask R-CNN successfully proposes fail to exist in the panoptic prediction (shown in Figure 1).
+
+Therefore, in this work, we focus on enriching the fusion process established by [17] with a binary relationship between instances to determine occlusion ordering. We propose adding an additional branch (occlusion head) to the instance segmentation pipeline tasked with determining which of two instance masks should lie on top of (or below) the other to resolve occlusions in the fusion process. The proposed occlusion head can be fine-tuned easily on top of an existing Panoptic Feature Pyramid Networks (FPNs) [16] architecture with minimal difficulty. We call our approach fusion with occlusion head (OCFusion). OC-Fusion brings significant performance gains on the COCO and Cityscapes panoptic segmentation benchmarks with low computational cost.
+
+# 2. Learning Instance Occlusion for Panoptic Fusion
+
+We adopt the coupled approach of [16] that uses a shared Feature Pyramid Network (FPN) [21] backbone with a top-down process for semantic segmentation branch and Mask R-CNN [10] for instance segmentation branch.
+
+In this section, we first discuss the instance occlusion problem arising within the fusion heuristic introduced in [17] and then introduce OCFusion method to address the problem. The overall approach is shown in Figure 2.
+
+# 2.1. Fusion by confidence
+
+The fusion protocol in [17] adopts a greedy strategy during inference in an iterative manner. Instance proposals are first sorted in order of decreasing detection confidence. In each iteration, the proposal is skipped if its intersection with the mask of all already assigned pixels is above a certain ratio of $\tau$ . Otherwise, pixels in this mask that have yet to be assigned are assigned to the instance in the output. After all instance proposals of some minimum detection threshold are considered, the semantic segmentation is merged into the output by considering its pixels corresponding to each "stuff" class. If the number of pixels exceeds some threshold after removing already assigned pixels, then these pixels are assigned to the corresponding "stuff" category. Pixels that are unassigned after this entire process are considered void predictions and have special treatment in the panoptic scoring process. We denote this type of fusion as fusion by confidence.
+
+Softening the greed. The main weakness of the greedy fusion process is the complete reliance on detection confidences (e.g. for Mask R-CNN, those from the box classification score) for a tangential task. Detection scores not only have little to do with mask quality (e.g., [13]), but they also do not incorporate any knowledge of layout. If they are used in such a way, higher detection scores would imply a more foreground ordering. Often this is detrimental since Mask R-CNN exhibits behavior that can assign nearmaximum confidence to very large objects (e.g. see dining table images in Figure 3b) that are both of poor mask quality and not truly foreground. It is common to see images with a significant number of true instances suppressed in the panoptic output by a single instance with large area that was assigned the largest confidence.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 3: Images and ground truth masks from the COCO dataset. (a) is an example where even predicting the ground truth mask creates ambiguity when attempting to assign pixels to instances in a greedy manner. The baseline fusion process [17] is unable to properly assign these as shown in the 2nd and 4th images of the rightmost column whereas our method is able to handle the occlusion relationship present as shown in the 1st and 3rd images of the rightmost column. (b) is an example where Mask R-CNN baseline produces an instance prediction that occludes the entire image and creates the same ambiguity in (a) despite an unambiguous ground truth annotation.
+
+
+(a)
+(b)
+
+
+
+Our approach softens this greedy fusion process with an
+
+occlusion head that is dedicated to predicting the binary relation between instances with appreciable overlap so that instance occlusions can be properly handled.
+
+# 2.2. Occlusion head formulation
+
+Consider two masks $M_{i}$ and $M_{j}$ proposed by an instance segmentation model, and denote their intersection as $I_{ij} = M_{i} \cap M_{j}$ . We are interested in the case where one of the masks is heavily occluded by the other. Therefore, we consider their respective intersection ratios $R_{i} = \mathrm{Area}(I_{ij}) / \mathrm{Area}(M_{i})$ and $R_{j} = \mathrm{Area}(I_{ij}) / \mathrm{Area}(M_{j})$ where $\mathrm{Area}(M)$ denotes the number of "on" pixels in mask $M$ . As noted in Section 2.1, the fusion process considers the intersection of the current instance proposal with the mask consisting of all already claimed pixels. Here, we are looking at the intersection between two masks and denote the threshold as $\rho$ . If either $R_{i} \geq \rho$ or $R_{j} \geq \rho$ , we define these two masks as having appreciable overlap. In this case, we must then decide which instance the pixels in $I_{ij}$ should belong to. We attempt to answer this by learning a binary relation Occlude $(M_{i}, M_{j})$ such that whenever $M_{i}$ and $M_{j}$ have appreciable intersection:
+
+$$
+\operatorname {O c c l u d e} \left(M _ {i}, M _ {j}\right) = \left\{ \begin{array}{l} 1 \text {i f} M _ {i} \text {s h o u l d b e p l a c e d o n t o p o f} M _ {j} \\ 0 \text {i f} M _ {j} \text {s h o u l d b e p l a c e d o n t o p o f} M _ {i}. \end{array} \right. \tag {1}
+$$
+
+# 2.3. Fusion with occlusion head
+
+We now describe our modifications to the inference-time fusion heuristic of [17] that incorporates Occlude $(M_i, M_j)$ in Algorithm 1.
+
+After the instance fusion component has completed, the semantic segmentation is then incorporated as usual, only considering pixels assigned to stuff classes and determining whether the number of unassigned pixels corresponding to the class in the current panoptic output exceeds some threshold, e.g., 4096. The instance fusion process is illustrated in Figure 1.
+
+# 2.4. Occlusion head architecture
+
+We implement Occlude $(M_i, M_j)$ as an additional "head" within Mask R-CNN [10]. Mask R-CNN already contains two heads: a box head that is tasked with taking region proposal network (RPN) proposals and refining the bounding box as well as assigning classification scores, while the mask head predicts a fixed size binary mask (usually $28 \times 28$ ) for all classes independently from the output of the box head. Each head derives its own set of features from the underlying FPN. We name our additional head, the "occlusion head" and implement it as a binary classifier that takes two (soft) masks $M_i$ and $M_j$ along with their respective FPN features (determined by their respective boxes) as input. The classifier output is interpreted as the value of Occlude $(M_i, M_j)$ .
+
+Algorithm 1 Fusion with Occlusion Head.
+$P$ is $H\times W$ matrix, initially empty.
+ $\rho$ is a hyperparameter, the minimum intersection ratio for occlusion.
+ $\tau$ is a hyperparameter.
+for each proposed instance mask $M_{i}$ do $C_i = M_i - P\quad \triangleright$ pixels in $M_{i}$ that are not assigned in $P$ for $j < i$ do $\triangleright$ each already merged segment $I_{ij}$ is the intersection between mask $M_{i}$ and $M_j$ $R_{i} = \mathrm{Area}(I_{ij}) / \mathrm{Area}(M_{i}).$ $R_{j} = \mathrm{Area}(I_{ij}) / \mathrm{Area}(M_{j}).$ if $R_{i}\geq \rho$ or $R_{j}\geq \rho$ then $\triangleright$ significant intersection if Occlude $(M_i,M_j) = 1$ then $C_i = C_i\bigcup (C_j\bigcap I_{ij}).$ $C_j = C_j - I_{ij}$ end if end if end for if $\mathrm{Area}(C_i) / \mathrm{Area}(M_i)\leq \tau$ then continue else assign the pixels in $C_i$ to the panoptic mask $P$ end if end for
+
+The architecture of occlusion head is inspired by [13] as shown in Figure 2. For two mask representations $M_{i}$ and $M_{j}$ , we apply max pooling to produce a $14 \times 14$ representation and concatenate each with the corresponding RoI features to produce the input to the head. Three layers of $3 \times 3$ convolutions with 512 feature maps and stride 1 are applied before a final one with stride 2. The features are then flattened before a 1024 dimensional fully connected layer and finally projected to a single logit.
+
+# 2.5. Ground truth occlusion
+
+We use ground truth panoptic mask along with ground truth instance masks to derive ground truth occlusion relation. We pre-compute the intersection between all pairs of masks with appreciable overlap. We then find the pixels corresponding to the intersection of the masks in the panoptic ground truth. We determine the instance occlusion based on which instance owns the majority of pixels in the intersection. We store the resulting "occlusion matrix" for each image in an $N_{i} \times N_{i}$ matrix where $N_{i}$ is the number of instances in the image and the value at position $(i,j)$ is either $-1$ , indicating no occlusion, or encodes the value of Occlude $(i,j)$ .
+
+# 2.6. Occlusion head training
+
+During training, the occlusion head is designed to first find pairs of predicted masks that match to different ground truth instances. Then, the intersection between these pairs
+
+of masks is computed, and the ratio of the intersection to mask area taken. A pair of masks is added for consideration when one of these ratios is at least as large as the pre-determined threshold $\rho$ . We then subsample the set of all pairs meeting this criterion to decrease computational cost. It is desirable for the occlusion head to reflect the consistency of Occlude, therefore we also invert all pairs so that Occlude $(M_i, M_j) = 0 \iff \mathrm{Occlude}(M_j, M_i) = 1$ whenever the pair $(M_i, M_j)$ meets the intersection criteria. This also mitigates class imbalance. Since this is a binary classification problem, the overall loss $L_o$ from the occlusion head is given by the binary cross-entropy over all subsampled pairs of masks that meet the intersection criteria.
+
+# 3. Related work
+
+Next, we discuss in detail the difference between OCFusion and the existing approaches for panoptic segmentation, occlusion ordering, and non-maximum suppression.
+
+Panoptic segmentation. The task of panoptic segmentation is introduced in [17] along with a baseline where predictions from instance segmentation (Mask R-CNN [10]) and semantic segmentation (PSPNet [40]) are combined via a heuristics-based fusion strategy. A stronger baseline based on a single Feature Pyramid Network (FPN) [21] backbone followed by multi-task heads consisting of semantic and instance segmentation branches is concurrently proposed by [19, 18, 16, 38]. On top of this baseline, attention layers are added in [19] to the instance segmentation branch, which are guided by the semantic segmentation branch; a loss term enforcing consistency between things and stuff predictions is then introduced in [18]; a parameter-free panoptic head which computes the final panoptic mask by pasting instance mask logits onto semantic segmentation logits is preset in [38]. These works have been making steady progress in panoptic segmentation, but their focus is not to address the problem for explicit reasoning of instance occlusion.
+
+Occlusion ordering and layout learning. Occlusion handling is a long-studied computer vision task [36, 8, 32, 11]. In the context of semantic segmentation, occlusion ordering has been adopted in [33, 3, 42]. A repulsion loss is added to a pedestrian detection algorithm [37] to deal with the crowd occlusion problem, but it focuses on detection only, without instance segmentation.
+
+In contrast, we study the occlusion ordering problem for instance maps in panoptic segmentation. Closest to our method is the recent work of [23], which proposes a panoptic head to resolve this issue in a similar manner to [38] but instead with a learnable convolution layer. Since our occlusion head can deal with two arbitrary masks, it offers more flexibility over these approaches which attempt to "rerank" the masks in a linear fashion [38, 23]. Furthermore, the approach of [23] is based off how a class should be placed on
+
+top of another class (akin to semantic segmentation) while we explicitly model the occlusion relation between arbitrary instances. This allows us to leverage the intra-class occlusion relations such as "which of these two persons should occlude the other?", and we show this leads to a gain in Figure 7 and Table 9. In a nutshell, we tackle the occlusion problem in a scope that is more general than [23] with noticeable performance advantage, as shown in Table 2 and Table 3.
+
+Learnable NMS. One can relate resolving occlusions to non-maximum suppression (NMS) that is applied to boxes, while our method tries to suppress intersections between masks. Our method acts as a learnable version of NMS for instance masks with similar computations to the analogous ideas for boxes such as [12].
+
+# 4. Experiments
+
+# 4.1. Implementation details
+
+We extend the Mask R-CNN benchmark framework [26], built on top of PyTorch, to implement our architecture. Batch normalization [14] layers are frozen and not fine-tuned for simplicity. We perform experiments on the COCO dataset [22] [17] as well as the Cityscapes dataset [4] with panoptic annotations.
+
+We find the most stable and efficient way to train the occlusion head is by fine-tuning with all other parameters frozen. We add a single additional loss only at fine-tuning time so that the total loss during panoptic training is $L = \lambda_{i}(L_{c} + L_{b} + L_{m}) + \lambda_{s}L_{s}$ where $L_{c}, L_{b}$ , and $L_{m}$ are the box head classification loss, bounding-box regression loss, and mask loss while $L_{s}$ is the semantic segmentation cross-entropy loss. At fine-tuning time, we only minimize $L_{o}$ , the classification loss from the occlusion head. We subsample 128 mask occlusions per image.
+
+During fusion, we only consider instance masks with detection confidence of at least 0.5 or 0.6 and reject segments during fusion when their overlap ratio with the existing panoptic mask (after occlusions are resolved) exceeds $\tau = 0.5$ on COCO and $\tau = 0.6$ on Cityscapes. Lastly, when considering the segments of stuff generated from the semantic segmentation, we only consider those which have at least 4096 pixels remaining after discarding those already assigned on COCO and 2048 on Cityscapes.
+
+Semantic head. On COCO, repeat the combination of $3 \times 3$ convolution and $2 \times$ bilinear upsampling until $1/4$ scale is reached, following the design of [16]. For the model with ResNeXt-101 backbone, we replace each convolution with deformable convolution [6]. For ResNet-50 backbone, we additionally add one experiment that adopts the design from [38] which uses 2 layers of deformable convolution followed by a bilinear upsampling to the $1/4$ scale. On Cityscapes, we adopt the design from [38].
+
+COCO. The COCO 2018 panoptic segmentation task consists of 80 thing and 53 stuff classes. We use 2017 dataset which has a split of $118\mathrm{k} / 5\mathrm{k} / 20\mathrm{k}$ for training, validation and testing respectively.
+
+Cityscapes. Cityscapes consists of 8 thing classes and 11 stuff classes. We use only fine dataset with a split of 2975/500/1525 for training, validation and testing respectively.
+
+COCO training. We train the FPN-based architecture described in [16] for 90K iterations on 8 GPUs with 1 image per GPU. The base learning rate of 0.02 is reduced by 10 at both 60k and 80k iterations. We then proceed to fine-tune with the occlusion head for 2500 more iterations. We choose $\lambda_{i} = 1.0$ and $\lambda_{s} = 0.5$ while for the occlusion head we choose the intersection ratio $\rho$ as 0.2. For models with ResNet-50 and ResNet-101 backbone, we use random horizontal flipping as data augmentation. For model with ResNeXt-101 backbone, we additionally use scale jitter (with scale of shorter image edge equals to $\{640,680,720,760,800\}$ ).
+
+Cityscapes training. We randomly rescale each image by 0.5 to $2 \times$ (scale factor sampled from a uniform distribution) and construct each batch of 16 (4 images per GPU) by randomly cropping images of size $512 \times 1024$ . We train for 65k iterations with a base learning rate of 0.01 with decay at 40k and 55k iterations. We fine-tune the occlusion head for 5000 more iterations. We choose $\lambda_{i} = \lambda_{s} = 1.0$ with intersection ratio $\rho$ as 0.1. We do not pretrain on COCO.
+
+Panoptic segmentation metrics. We adopt the panoptic quality (PQ) metric from [17] to measure panoptic segmentation performance. This single metric captures both segmentation and recognition quality. PQ can be further broken down into scores specific to things and stuff, denoted $\mathrm{PQ^{Th}}$ and $\mathrm{PQ^{St}}$ , respectively.
+
+Multi-scale testing. We adopt the same scales as [38] for both COCO and Cityscapes multi-scale testing. For the stuff branch, we average the multi-scale semantic logits of semantic head. For the thing branch, we average the multiscale masks and choose not to do bounding box augmentation for simplicity.
+
+| Method | Backbone | PQ | \( PQ^{Th} \) | \( PQ^{St} \) |
| Baseline | ResNet-50 | 39.5 | 46.5 | 29.0 |
| OCFusion | ResNet-50 | 41.3 | 49.4 | 29.0 |
| relative improvement | | +1.8 | +3.0 | +0.0 |
| Baseline | ResNet-101 | 41.0 | 47.9 | 30.7 |
| OCFusion | ResNet-101 | 43.0 | 51.1 | 30.7 |
| relative improvement | | +2.0 | +3.2 | +0.0 |
+
+Table 1: Comparison to our implementation of Panoptic FPN [16] baseline model on the MS-COCO val dataset.
+
+| Method | Backbone | m.s. test | PQ | \( PQ^{Th} \) | \( PQ^{St} \) |
| JSIS-Net [7] | ResNet-50 | | 26.9 | 29.3 | 23.3 |
| Panoptic FPN [16] | ResNet-50 | | 39.0 | 45.9 | 28.7 |
| Panoptic FPN [16] | ResNet-101 | | 40.3 | 47.5 | 29.5 |
| AUNet [19] | ResNet-50 | | 39.6 | 49.1 | 25.2 |
| UPSNet* [38] | ResNet-50 | | 42.5 | 48.5 | 33.4 |
| UPSNet* [38] | ResNet-50 | ✓ | 43.2 | 49.1 | 34.1 |
| OANet [23] | ResNet-50 | | 39.0 | 48.3 | 24.9 |
| OANet [23] | ResNet-101 | | 40.7 | 50.0 | 26.6 |
| AdaptIS [31] | ResNet-50 | | 35.9 | 40.3 | 29.3 |
| AdaptIS [31] | ResNet-101 | | 37 | 41.8 | 29.9 |
| AdaptIS [31] | ResNeXt-101 | | 42.3 | 49.2 | 31.8 |
| OCFusion | ResNet-50 | | 41.3 | 49.4 | 29.0 |
| OCFusion* | ResNet-50 | | 42.5 | 49.1 | 32.5 |
| OCFusion | ResNet-101 | | 43.0 | 51.1 | 30.7 |
| OCFusion* | ResNeXt-101 | | 45.7 | 53.1 | 34.5 |
| OCFusion | ResNet-50 | ✓ | 41.9 | 49.9 | 29.9 |
| OCFusion* | ResNet-50 | ✓ | 43.3 | 50.0 | 33.8 |
| OCFusion | ResNet-101 | ✓ | 43.5 | 51.5 | 31.5 |
| OCFusion* | ResNeXt-101 | ✓ | 46.3 | 53.5 | 35.4 |
+
+Table 2: Comparison to prior work on the MS-COCO val dataset. m.s. stands for multi-scale testing. *Used deformable convolution.
+
+| Method | Backbone | m.s. test | PQ | \( PQ^{Th} \) | \( PQ^{St} \) |
| JSIS-Net [7] | ResNet-50 | | 27.2 | 29.6 | 23.4 |
| Panoptic FPN [16] | ResNet-101 | | 40.9 | 48.3 | 29.7 |
| OANet [23] | ResNet-101 | | 41.3 | 50.4 | 27.7 |
| AUNet [19] | ResNeXt-152 | ✓ | 46.5 | 55.9 | 32.5 |
| UPSNet* [38] | ResNet-101 | ✓ | 46.6 | 53.2 | 36.7 |
| AdaptIS [31] | ResNeXt-101 | | 42.8 | 50.1 | 31.8 |
| OCFusion* | ResNeXt-101 | ✓ | 46.7 | 54.0 | 35.7 |
+
+# 4.2. COCO panoptic benchmark
+
+We obtain state-of-the-art results on COCO Panoptic Segmentation validation set with and without multi-scale testing as is shown in 2. We also obtain single model state-of-the-art results on the COCO test-dev set, as shown in Table 3. In order to show the effectiveness of our method, we compare to our baseline model in Table 1, and the results show that our method consistently provides significant gain on $\mathrm{PQ^{\mathrm{Th}}}$ as well as PQ.
+
+# 4.3. Cityscapes panoptic benchmark
+
+We obtain competitive results on the Cityscapes validation set and the best results among models with a ResNet-50 backbone, shown in Table 5. Table 4 shows our strong relative improvement over the baseline on $\mathbf{PQ}^{\mathrm{Th}}$ as well as PQ.
+
+Table 3: Comparison to prior work on the MS-COCO test-dev dataset. m.s. stands for multi-scale testing. *Used deformable convolution.
+
+| Method | PQ | \( \mathbf{PQ^{Th}} \) | \( PQ^{St} \) |
| Baseline | 58.6 | 51.7 | 63.6 |
| OCFusion | 59.3 | 53.5 | 63.6 |
| relative improvement | +0.7 | +1.7 | +0.0 |
+
+Table 4: Comparison to our implementation of Panoptic FPN [16] baseline model on the Cityscapes val dataset. All results are based on a ResNet-50 backbone.
+
+| Method | m.s. test | PQ | \( PQ^{Th} \) | \( PQ^{St} \) |
| Panoptic FPN [16] | | 57.7 | 51.6 | 62.2 |
| AUNet [19] | | 56.4 | 52.7 | 59.0 |
| UPSNet* [38] | | 59.3 | 54.6 | 62.7 |
| UPSNet* [38] | ✓ | 60.1 | 55.0 | 63.7 |
| AdaptIS [31] | | 59.0 | 55.8 | 61.3 |
| OCFusion* | | 59.3 | 53.5 | 63.6 |
| OCFusion* | ✓ | 60.2 | 54.0 | 64.7 |
+
+Table 5: Comparison to prior work on the Cityscapes val dataset. All results are based on a ResNet-50 backbone. m.s. stands for multi-scale testing. *Used deformable convolution.
+
+# 4.4. Occlusion head performance
+
+In order to better gauge the performance of the occlusion head, we determine its classification accuracy on both COCO and Cityscapes validation dataset at $\rho = 0.20$ with ResNet-50 backbone. We measure the accuracy of the occlusion head in predicting the true ordering given ground truth boxes and masks. The occlusion head classification accuracy on COCO and Cityscapes is $91.58\%$ and $93.60\%$ , respectively, which validates the effectiveness of OCFusion.
+
+# 4.5. Inference time analysis
+
+We analyze the computational cost of our method and empirically show the inference time overhead of our method compared to the baseline model. While our method incurs an $O(n^{2})$ cost in order to compute pairwise intersections, where $n$ is the number of instances, this computation is only needed for the subset of masks whose detection confidence is larger than a threshold (0.5 or 0.6 usually) as dictated by the Panoptic FPN [16] baseline. This filtering greatly limits
+
+
+
+
+
+
+
+
+
+
+input
+
+
+ground truth
+
+
+Kirillov et al.
+Figure 4: Comparison against Kirillov et al. [16] which uses fusion by confidence.
+
+
+OCFusion (ours)
+
+
+
+
+input
+
+
+
+
+ground truth
+
+
+
+
+fusion by confidence
+
+
+
+
+Spatial Ranking Module
+
+
+
+
+OCFusion (ours)
+
+
+
+
+
+
+input
+
+
+Figure 5: Comparison against Spatial Ranking Module [23].
+
+
+
+
+ground truth
+Figure 6: Comparison against UPSNet [38].
+
+
+
+
+
+
+fusion by confidence
+
+
+
+
+
+
+UPSNet
+
+
+
+
+
+
+OCFusion (ours)
+
+the practical magnitude of $n$ . Furthermore, only the subset of remaining mask pairs that have appreciable overlap (larger than $\rho$ ) requires evaluation by the occlusion head. We measure this inference time overhead in Table 6. OC-Fusion incurs a modest $2.0\%$ increase in computational time on COCO and $4.7\%$ increase on Cityscapes.
+
+| Method | COCO | Cityscapes |
| Baseline | 153 | 378 |
| OCFusion | 156 | 396 |
| Change in runtime (ms) | +3 | +18 |
+
+Table 6: Runtime (ms) overhead per image. Runtime results are averaged over the entire COCO and Cityscapes validation dataset. We use a single GeForce GTX 1080 Ti GPU and Xeon(R) CPU E5-2687W CPU.
+
+# 4.6. Visual comparisons
+
+Since panoptic segmentation is a relatively new task, the most recent papers offer only comparisons against the baseline presented in [17]. We additionally compare with a few other recent methods [23, 38].
+
+We first compare our method against [16] in Figure 4 as well as two recent works: UPSNet [38] in Figure 6 and the Spatial Ranking Module of [23] in Figure 5. The latter two have similar underlying architectures alongside modifications to their fusion process. We note that except for comparisons between [16], the comparison images shown are those included in the respective papers and not of our own choosing. Overall, we see that our method is able to preserve a significant number of instance occlusions lost by other methods while maintaining more realistic fusions, e.g., the arm is entirely above the man versus sinking behind partly as in "fusion by confidence".
+
+
+
+
+
+
+Figure 7: Comparison for w/o (left) or w/ (right) intraclass capability enabled. Best viewed in color.
+
+
+
+# 4.7. Ablation experiments
+
+We study the sensitivity of our method to the hyperparameters $\tau$ and $\rho$ in Table 7 for COCO and Table 8 for Cityscapes. We also include the number of examples of occlusions we are able to collect at the given $\rho$ denoted as N. Naturally, a larger $\rho$ leads to less spurious occlusions but
+
+| (τ,ρ) | 0.05 | 0.10 | 0.20 |
| 0.4 | 41.27 (Th: 49.43, St: 28.97) | 41.22 (Th: 49.33, St: 28.97) | 41.20 (Th: 49.30, St: 28.97) |
| 0.5 | 41.20 (Th: 49.32, St: 28.95) | 41.15 (Th: 49.23, St: 28.95) | 41.24 (Th: 49.29, St: 29.10) |
| 0.6 | 41.09 (Th: 49.15, St: 28.93) | 41.03 (Th: 49.03, St: 28.93) | 41.02 (Th: 49.02, St: 28.93) |
| N | 192,519 | 157,784 | 132,165 |
+
+Table 7: COCO Hyperparameter Ablation: PQ
+
+| (τ,ρ) | 0.05 | 0.10 | 0.20 |
| 0.4 | 58.76 (Th: 52.10, St: 63.62) | 59.15 (Th: 53.00, St: 63.62) | 59.07 (Th: 52.80, St: 63.63) |
| 0.5 | 59.18 (Th: 53.09, St: 63.61) | 59.26 (Th: 53.28, St: 63.61) | 59.22 (Th: 53.19, St: 63.61) |
| 0.6 | 59.21 (Th: 53.17, St: 63.61) | 59.33 (Th: 53.46, St: 63.60) | 58.70 (Th: 51.96, St: 61.60) |
| N | 33,391 | 29,560 | 6,617 |
+
+decreases the overall number of examples that the occlusion head is able to learn from.
+
+Intra-class instance occlusion in Cityscapes is a challenging problem, also noted in [10]. Since we can enable inter-class or intra-class occlusion query ability independently, we show ablation results in Table 9 that highlight the importance of being able to handle intra-class occlusion on. We believe this sets our method apart from others, e.g., [23] which simplifies the problem by handling inter-class occlusion only. Additionally, Figure 7 shows a visual comparison between resulting panoptic segmentations when intra-class occlusion handling is toggled on Cityscapes. Only the model with intra-class handling enabled can handle the occluded cars better during the fusion process.
+
+Table 8: Cityscapes Hyperparameter Ablation: PQ
+
+| Inter-class | Intra-class | PQ | \( PQ^{Th} \) | \( PQ^{St} \) |
| | 58.6 | 51.7 | 63.6 |
| ✓ | | 59.2 (+0.5) | 53.0 (+1.3) | 63.6 (+0.0) |
| ✓ | ✓ | 59.3 (+0.7) | 53.5 (+1.7) | 63.6 (+0.0) |
+
+Table 9: Ablation study on different types of occlusion on the Cityscapes val dataset. $\checkmark$ means capability enabled.
+
+# 5. Conclusion
+
+We have introduced an explicit notion of instance occlusion to Mask R-CNN so that instances may be effectively fused when producing a panoptic segmentation. We assemble a dataset of occlusions already present in the COCO and Cityscapes datasets and then learn an additional head for Mask R-CNN tasked with predicting occlusion between two masks. Adding occlusion head on top of Panoptic FPN incurs minimal overhead, and we show that it is effective even when trained for few thousand iterations. In the future, we hope to explore how further understanding of occlusion, including relationships of stuff, could be helpful.
+
+Acknowledgements. This work is supported by NSF IIS-1618477 and IIS-1717431. We thank Yifan Xu, Weijian Xu, Sainan Liu, Yu Shen, and Subarna Tripathi for valuable discussions.
+
+# References
+
+[1] Irving Biederman. Recognition-by-components: a theory of human image understanding. Psychological review, 94(2):115, 1987. 1
+[2] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2018. 1
+[3] Yi-Ting Chen, Xiaokai Liu, and Ming-Hsuan Yang. Multi-instance object segmentation with occlusion handling. In CVPR, 2015. 4
+[4] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016. 5
+[5] Jifeng Dai, Kaiming He, and Jian Sun. Instance-aware semantic segmentation via multi-task network cascades. In CVPR, 2016. 1
+[6] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 5
+[7] Daan de Geus, Panagiotis Meletis, and Gijs Dubbelman. Panoptic segmentation with a joint semantic and instance segmentation network. arXiv preprint arXiv:1809.02110, 2018.6
+[8] Markus Enzweiler, Angela Eigenstetter, Bernt Schiele, and Dariu M Gavrila. Multi-cue pedestrian classification with partial occlusion handling. In CVPR, 2010. 4
+[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. 1
+[10] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 1, 2, 3, 4, 8
+[11] Derek Hoiem, Andrew N Stein, Alexei A Efros, and Martial Hebert. Recovering occlusion boundaries from a single image. In ICCV, 2007. 4
+[12] Jan Hosang, Rodrigo Benenson, and Bernt Schiele. Learning non-maximum suppression. In CVPR, 2017. 5
+[13] Zhaojin Huang, Lichao Huang, Yongchao Gong, Chang Huang, and Xinggang Wang. Mask scoring r-cnn. In CVPR, 2019. 3, 4
+[14] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. 5
+[15] Long Jin, Zeyu Chen, and Zhuowen Tu. Object detection free instance segmentation with labeling transformations. arXiv preprint arXiv:1611.08991, 2016. 1
+[16] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollár. Panoptic feature pyramid networks. In CVPR, 2019, 1, 2, 4, 5, 6, 7, 8
+[17] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dólár. Panoptic segmentation. In CVPR, 2019. 1, 2, 3, 4, 5, 8
+
+[18] Jie Li, Allan Raventos, Arjun Bhargava, Takaaki Tagawa, and Adrien Gaidon. Learning to fuse things and stuff. arXiv preprint arXiv:1812.01192, 2018. 4
+[19] Yanwei Li, Xinze Chen, Zheng Zhu, Lingxi Xie, Guan Huang, Dalong Du, and Xingang Wang. Attention-guided unified network for panoptic segmentation. In CVPR, 2019. 1, 4, 6
+[20] Xiaodan Liang, Liang Lin, Yunchao Wei, Xiaohui Shen, Jianchao Yang, and Shuicheng Yan. Proposal-free network for instance-level object segmentation. IEEE transactions on pattern analysis and machine intelligence, 40(12):2978-2991, 2018. 1
+[21] Tsung-Yi Lin, Piotr Dólár, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 4
+[22] 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 ECCV, 2014. 5
+[23] Huanyu Liu, Chao Peng, Changqian Yu, Jingbo Wang, Xu Liu, Gang Yu, and Wei Jiang. An end-to-end network for panoptic segmentation. In CVPR, 2019. 4, 5, 6, 7, 8
+[24] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. 1
+[25] David Marr. Vision: A computational investigation into the human representation and processing of visual information, henry holt and co. Inc., New York, NY, 2(4.2), 1982. 1
+[26] Francisco Massa and Ross Girshick. maskrcnn-benchmark: Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch. https://github.com/facebookresearch/maskrcnn-benchmark, 2018. Accessed: January 5, 2019. 5
+[27] Pedro O Pinheiro, Ronan Collobert, and Piotr Dollar. Learning to segment object candidates. In NIPS, 2015. 1
+[28] Pedro O. Pinheiro, Tsung-Yi Lin, Ronan Collobert, and Piotr Dollár. Learning to refine object segments. In ECCV, 2016. 1
+[29] Hayko Riemenschneider, Sabine Sternig, Michael Donoser, Peter M Roth, and Horst Bischof. Hough regions for joining instance localization and segmentation. In ECCV. 2012. 1
+[30] Jamie Shotton, John Winn, Carsten Rother, and Antonio Criminisi. Textonboost: Joint appearance, shape and context modeling for multi-class object recognition and segmentation. In ECCV, 2006. 1
+[31] Konstantin Sofiuk, Olga Barinova, and Anton Konushin. Adaptis: Adaptive instance selection network. In ICCV, 2019. 6
+[32] Jian Sun, Yin Li, Sing Bing Kang, and Heung-Yeung Shum. Symmetric stereo matching for occlusion handling. In CVPR, 2005. 4
+[33] Joseph Tighe, Marc Niethammer, and Svetlana Lazebnik. Scene parsing with object instances and occlusion ordering. In CVPR, 2014. 1, 4
+[34] Zhuowen Tu. Auto-context and its application to high-level vision tasks. In CVPR, 2008. 1
+
+[35] Zhuowen Tu, Xiangrong Chen, Alan L Yuille, and Song-Chun Zhu. Image parsing: Unifying segmentation, detection, and recognition. International Journal of computer vision, 63(2):113-140, 2005. 1
+[36] Xiaoyu Wang, Tony X Han, and Shuicheng Yan. An hog-lbp human detector with partial occlusion handling. In ICCV, 2009. 4
+[37] Xinlong Wang, Tete Xiao, Yuning Jiang, Shuai Shao, Jian Sun, and Chunhua Shen. Repulsion loss: Detecting pedestrians in a crowd. In CVPR, 2018. 4
+[38] Yuwen Xiong, Renjie Liao, Hengshuang Zhao, Rui Hu, Min Bai, Ersin Yumer, and Raquel Urtasun. Upsnet: A unified panoptic segmentation network. In CVPR, 2019. 1, 4, 5, 6, 7, 8
+[39] Ziyu Zhang, Sanja Fidler, and Raquel Urtasun. Instance-level segmentation for autonomous driving with deep densely connected mrfs. In CVPR, 2016. 1
+[40] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2017. 1, 4
+[41] Shuai Zheng, Sadeep Jayasumana, Bernardino Romero-Paredes, Vibhav Vineet, Zhizhong Su, Dalong Du, Chang Huang, and Philip HS Torr. Conditional random fields as recurrent neural networks. In ICCV, 2015. 1
+[42] Yan Zhu, Yuandong Tian, Dimitris Metaxas, and Piotr Dólar. Semantic amodal segmentation. In CVPR, 2017. 4
\ No newline at end of file
diff --git a/learninginstanceocclusionforpanopticsegmentation/images.zip b/learninginstanceocclusionforpanopticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..66bb5b459dcb5091a682dc8d4d9c663b8db63e86
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:949efa2e88229ef5041733d8b70c5ca0be1ac8344e95fa3109494a4fb1ce92b4
+size 735744
diff --git a/learninginstanceocclusionforpanopticsegmentation/layout.json b/learninginstanceocclusionforpanopticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9091b5748aa8228bc998084f3830917633c0540c
--- /dev/null
+++ b/learninginstanceocclusionforpanopticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03595d1935dc2ce6303e340d7ae2f713a9407cf1ee6882709ebeb59729fdce46
+size 470469
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_content_list.json b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ed57360fde31c219d82c01d57511d21a0aa4847
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a523c81f4b4a9a46eeb92a28e844f96be30024e231c055d634406287cd850dc8
+size 76736
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_model.json b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0d5ee4fe5ec33c849502b154f3701a48d3b8f05d
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b1501b35ed66a358c3f8fcad1c2415e7ce0c1c3c1da7187d43b5123140037ddf
+size 93301
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_origin.pdf b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..164970ebcba872f734e274856b5f052cc1485d05
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/084b8315-eb0e-4e53-99e9-c17a1b248e94_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cdea576e5ee9438838783c074a9d847693818409de3d7071b6166dca2a9b7bb2
+size 1709843
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/full.md b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d5e94399e910aec2e98718c8eac889888c08be98
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/full.md
@@ -0,0 +1,332 @@
+# Learning Integral Objects with Intra-Class Discriminator for Weakly-Supervised Semantic Segmentation
+
+Junsong Fan $^{1,2}$ Zhaoxiang Zhang $^{1,2,3*}$ Chunfeng Song $^{1,2}$ Tieniu Tan $^{1,2,3*}$
+
+1 Center for Research on Intelligent Perception and Computing (CRIPAC), National Laboratory of Pattern Recognition (NLPR), Institute of Automation, Chinese Academy of Sciences (CASIA)
+
+$^{2}$ School of Artificial Intelligence, University of Chinese Academy of Sciences (UCAS)
+
+3 Center for Excellence in Brain Science and Intelligence Technology, CAS
+
+{fanjunsong2016, zhaoxiang.zhang}@ia.ac.cn, {chunfeng.song, tint}@nlpr.ia.ac.cn
+
+# Abstract
+
+Image-level weakly-supervised semantic segmentation (WSSS) aims at learning semantic segmentation by adopting only image class labels. Existing approaches generally rely on class activation maps (CAM) to generate pseudomasks and then train segmentation models. The main difficulty is that the CAM estimate only covers partial foreground objects. In this paper, we argue that the critical factor preventing to obtain the full object mask is the classification boundary mismatch problem in applying the CAM to WSSS. Because the CAM is optimized by the classification task, it focuses on the discrimination across different image-level classes. However, the WSSS requires to distinguish pixels sharing the same image-level class to separate them into the foreground and the background. To alleviate this contradiction, we propose an efficient end-to-end Intra-Class Discriminator (ICD) framework, which learns intra-class boundaries to help separate the foreground and the background within each image-level class. Without bells and whistles, our approach achieves the state-of-the-art performance of image label based WSSS, with mIoU $68.0\%$ on the VOC 2012 semantic segmentation benchmark, demonstrating the effectiveness of the proposed approach.
+
+# 1. Introduction
+
+Semantic segmentation, which is a foundation of scene understanding, has achieved great progress in recent years [26, 3, 4, 5]. However, it usually requires large-scale datasets with pixel-level annotations for training [9, 25], which is very costly to obtain. To alleviate the burden
+
+
+Figure 1. Motivation of the approach. The CAM learns to discriminate between different classes. Our ICD learns to discriminate between the foreground and the background within the same class, which is more suitable for estimating pseudo-masks for the WSSS.
+
+of pixel-level annotations, researchers proposed weakly-supervised semantic segmentation (WSSS), which only adopts easily obtained coarse labels for training, e.g., image-level labels [20, 40, 1, 38, 37, 15], scribbles [24, 36], and bounding boxes [7, 19, 34]. This paper focuses on the most challenging problem that only adopts image-level class labels for training semantic segmentation models.
+
+Existing approaches usually follow the pipeline that firstly generates pseudo-masks (a.k.a. seeds) for the target objects and then adopt the seeds to train segmentation models. The class activation map (CAM) [42] is widely adopted to estimate the seeds. However, the CAM can only give the sparse and incomplete estimate of the target object, which is usually the most discriminative region to recognize the object class. Previous approaches try to alleviate this problem by adopting dilated convolutions [40], iterative erasing strategy [38], randomly dropping connections [22], and
+
+online accumulation strategy [18], etc. These approaches achieved good results by forcing the CAM to highlight more unexploited regions. However, due to the intrinsic property that the CAM is only responsible for classification, it is quite tricky to balance the recall of the foreground and the false-positives of the background.
+
+In this paper, we argue that the core problem of applying the CAM to generate seeds is the mismatch between the image-level classification task and the desired pixel-level pseudo-mask estimation task. To train the CAM, pixels vote to obtain the overall score of the image for image-level classification. In this process, the main criterion is the inter-class discrimination. Foreground object pixels in the local regions that are easier to be recognized dominate the activation, e.g., the face of a person or the wheel of a car. Other foreground pixels are overwhelmed and indistinguishable from the background. The ultimate goal of this model is to learn the boundary for inter-class recognition. However, to obtain integral object masks for the WSSS, we need to precisely distinguish whether the pixel belongs to the foreground object or the background. Because the foreground and the background pixels reside in the same image, this discrimination is mainly conducted within the same image-level class, i.e., intra-class discrimination. Generally, the inter-class boundary learned by the CAM does not fit our requirement of intra-class discrimination between the foreground and the background, as illustrated in Fig. 1. Therefore, it is hard to obtain the integral object masks by simply thresholding the CAM score.
+
+To alleviate this boundary mismatch problem, we propose an intra-class discriminator (ICD) that dedicates to separating the foreground and the background pixels within each image-level class, as illustrated in Fig. 1. Such an intra-class discriminator is similar to a binary classifier for each image-level class, which identifies between the foreground pixels and the background pixels. The main difficulty is that we do not have ground truth labels to guide the discriminator. We experimentally observed that the embedded features of the pixels reside in a manifold, and the foreground and the background pixels generally reside in different clusters. Therefore, we leverage this anisotropic property of the features to develop an approach that trains the ICD to separate the foreground pixels from the background, without relying on any additional supervision.
+
+We model the proposed ICD by multiple neural network layers in an end-to-end manner, which can be directly plugged into existing networks, as shown in Fig. 2. Our ICD approach is very efficient and is trained together with the CAM in a single round. The output of the ICD module provides estimates for both the foreground objects and the background clutter. Our approach does not necessarily need any external saliency models [17] to facilitate obtaining background seeds, which are generally required by many
+
+recent WSSS approaches [15, 40, 14, 18]. Without referring to saliency models, our approach achieves $64.3\%$ mIoU on the VOC 2012 segmentation benchmark [9], which outperforms many previous approaches with saliency models. Furthermore, with the help of external saliency models for the background estimate, our ICD achieves $68.0\%$ mIoU, which is a new state-of-the-art performance in the image-level label based WSSS field. These results demonstrate the advantage of handling the boundary mismatch problem by our ICD approach.
+
+In summary, the main contributions of our approach are as follows:
+
+- We identify the boundary mismatch problem in applying the CAM to the WSSS, i.e., the gap between image-level inter-class recognition and the desired pixel-level intra-class segmentation.
+- We propose an efficient end-to-end Intra-Class Discriminator (ICD) approach to address this problem via learning an intra-class boundary to separate foreground objects and the background.
+- We conduct extensive experiments to analyze the effectiveness of our proposed ICD approach. The proposed model achieves the state-of-the-art performance of the image-label based WSSS.
+
+# 2. Related Work
+
+Class Activation Map. The class activation map (CAM) [42] is widely adopted as the cornerstone of WSSS. The first step to obtain CAM is to train a classification network with the image-level labels, which has a global average pooling (GAP) layer right before the last linear classification layer. Then, it removes the GAP layer and directly applies the classification layer to the feature map, obtaining a dense score map for each class. The grad-CAM [32] is a generalization of the CAM that uses generalized weights to derive the score map, which is also adopted by some WSSS approaches [22]. Because these score maps are derived from classification tasks, they generally only activate on the most discriminative regions for classification, resulting in sparse and incomplete pseudo-masks for the WSSS.
+
+Weakly-Supervised Semantic Segmentation. Weakly-supervised semantic segmentation (WSSS) aims at learning semantic segmentation with only coarse labels, e.g., bounding boxes [7, 34], scribbles [24, 36], and image labels [38, 20, 15, 37, 40, 14]. In this paper, we focus on the most challenging problem that only adopts image-level labels for the WSSS.
+
+Existing image-level label based WSSS approaches usually follow the pipeline that firstly generates pixel-level seeds from image-level labels by the CAM (or grad-CAM),
+
+
+Figure 2. Left: The overall framework of our approach, including a branch for CAM and a branch for the proposed ICD. Right: The framework of our ICD module, which contains a bottom-up estimation branch and a top-down adaptation branch. The final ICD scores for generating seeds are obtained by the adapted predictions. Please see Sec. 4 for details.
+
+
+
+then adopts these seeds to train an ordinary segmentation model. Researchers make great efforts to alleviate the incomplete seed problem. AE-PSL [38] proposes an iterative erasing approach to force the CAM to learn classification from more different regions. MDC [40] proposes to use multiple convolutional layers with different dilation rates to expand the activated regions. DSRG [15] adopts a seed growing algorithm to expand the seeds when training segmentation models. FickleNet [22] proposes to randomly drop connections in each sliding window and accumulate multiple inference results. OAA [18] managed to accumulate the scores map along the training process of CAM. However, because of the intrinsic limitation of the classification task based CAM, it is generally tricky to balance the recall and the false positive. Meanwhile, external saliency models [17, 13] are required to estimate the background, which implicitly introduces additional pixel-level annotation requirements. AffinityNet [1] shows another idea without the requirements of external saliency, which learns the pixels-level affinity model to generate and refine the seeds. However, it needs costly multi-stage training. Besides, the initial seeds still rely on the CAM, which may be inferior because the CAM provides an unreliable estimate of the background.
+
+# 3. Pilot Study
+
+We conduct pilot experiments to demonstrate that the classification boundary learned by the CAM is inappropriate for separating the foreground and the background for generating seeds. For clarity, we illustrate a two-class case. We apply the trained CAM model to extract features for each pixel in the image. We take these features as individual samples and adopt the t-SNE [27] to visualize them. As shown in Fig. 3(a), the foreground pixels and background pixels are generally located in different clusters and are separable. Fig. 3(b) shows the corresponding CAM
+
+score of these pixels, which only highlights partial foreground. Some foreground pixels, e.g., pixels in the red box, though far from the background ones in the manifold, are indistinguishable from the background by the CAM scores, because the CAM only focuses on the boundary between different classes. In contrast, our approach leverages the feature manifold to set a boundary between foreground and background pixels within each class. Fig. 3(c,d) show the scores obtained by our approach, which is more appropriate to generate seeds for the WSSS.
+
+# 4. Approach
+
+Fig. 2 illustrates the overall framework, which contains a CAM branch to learn the feature manifold from image-level labels, and our ICD branch to learn intra-class boundaries to separate the foreground and the background in each image. The ICD branch contains two main components that estimate the masks based on current features and adapt the whole model for further refinement, respectively.
+
+# 4.1. Bottom-Up Estimation
+
+The core idea of the ICD is to separate pixels into the foreground and the background groups based on the feature manifold. We tackle this problem by learning a directional vector $\mathbf{w}_c$ for each class $c$ . Let $X = \{X_{i}\}_{i = 1}^{N}$ be the set of input images, and $\mathbf{f}_i$ be the feature map of $X_{i}$ , which is of size $H\times W$ . The directional vector is obtained by learning:
+
+$$
+L _ {b u} (X) = - \frac {1}{N H W} \sum_ {i = 1} ^ {N} \sum_ {k = 1} ^ {H W} \sum_ {c = 1} ^ {C} y _ {i, c} \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k}\right) ^ {2} \tag {1}
+$$
+
+$$
+\mathbf {w} _ {c} = \frac {\hat {\mathbf {w}} _ {c}}{\left| \left| \hat {\mathbf {w}} _ {c} \right| \right| _ {2}} \tag {2}
+$$
+
+where, $\mathbf{f}_{i,k}$ is the feature of the $k$ -th pixel in $\mathbf{f}_i$ , $y_{i,c}$ is the binary label that equals 1 iff the $c$ -th class presents in the
+
+
+Figure 3. Visualization of the pixels' features via the t-SNE algorithm. a) the class property of the features; b) the CAM scores of the features; c,d) our ICD scores of the features.
+
+image, and $C$ is the total number of foreground classes. To prevent the trivial solution of infinite values, the $\mathbf{w}_c$ is constrained by L2-Normalization as in Eq. 2.
+
+Optimizing Eq. 1 encourages the $\mathbf{w}_c$ to point a direction where pixels' features are located in the two poles. These features share the same image-level class labels and belong to either the foreground of the $c$ -th class or the background. Thus the ICD will not be stuck with the inter-class discrimination problem like the CAM is. Since the foreground (or the background) pixels' features tend to cluster together, and the embeddings of the foreground and the background are generally not overlapped, as illustrated in Fig. 1, the directional vector learns to fit them that one pole is the foreground and another is the background. Thus, it is natural to adopt the sign of the features' projection onto the directional vector to distinguish the foreground and the background. To this end, we compute the score for each pixel by:
+
+$$
+\hat {S} _ {i, k, c} = \mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k} \tag {3}
+$$
+
+where, the absolute value of $\hat{S}_{i,k,c}$ can be seen as the confidence, and the sign indicates whether the pixel belongs to the foreground or the background. Note that until now, we cannot know if the positive sign stands for the foreground and negative stands for the background or vice versa.
+
+# 4.2. The ICD Score
+
+In this section, we describe how to adjust the sign of the score in Eq. 3, so that the positive sign always stands for the foreground cluster.
+
+We noticed that though the CAM only activates on partial foreground regions, the highlighted regions concentrate on the foreground. This property is widely demonstrated by the effectiveness of previous methods [15, 40, 14, 18] because they take the high score regions in CAM as the foreground seeds. Therefore, we can employ this property to identify which of the two groups is the foreground. To this end, for each class that presents in the image, we first divide the pixels into two groups according to the sign of Eq. 3, i.e., $I_{i,c}^{pos} = \{k|\hat{S}_{i,k,c} > 0,y_{i,c} = 1\}$ and $I_{i,c}^{neg} = \{k|\hat{S}_{i,k,c} < 0,y_{i,c} = 1\}$ . Define $M_{i,k,c}$ as the
+
+corresponding CAM score, we compute the average CAM scores for these two groups:
+
+$$
+\bar {M} _ {c} ^ {g} = \frac {1}{N \left| I _ {i , c} ^ {g} \right|} \sum_ {i = 1} ^ {N} \sum_ {k \in I _ {i, c} ^ {g}} M _ {i, k, c}, \quad g \in \{p o s, n e g \} \tag {4}
+$$
+
+where, $|\cdot |$ represents the number of the elements in the set.
+
+Then, we compare the values of $\bar{M}_c^{pos}$ and $\bar{M}_c^{neg}$ , and flip the sign of the raw ICD scores if the latter is larger, so that the ICD score $S_{i,k,c}$ always represents the foreground by positive values.
+
+$$
+S _ {i, k, c} = \hat {S} _ {i, k, c} \cdot \operatorname {s i g n} \left(\bar {M} _ {c} ^ {\text {p o s}} - \bar {M} _ {c} ^ {\text {n e g}}\right) \tag {5}
+$$
+
+where, $\mathrm{sign}(\cdot)$ is the Sign function that maps positive values to 1 and negative values to -1.
+
+For efficiency reasons, we implement the above steps as a module in the network, so that the sign of the ICD score can be adjusted online. We compute the local average CAM scores via Eq. 4 in each mini-batch and adopt a moving mean strategy with momentum 0.9 to update the global average CAM scores. Then the Eq. 5 flips the signs according to the global CAM scores.
+
+# 4.3. Top-Down Adaptation
+
+The previous bottom-up estimation derives the initial foreground and background partitions from existing features. These features are fixed from the view of the directional vectors. To further adapt the model for the pseudomask estimation task, we finetune the features by current estimates. To this end, we first refine the ICD scores $S_{i,k,c}$ by averaging their values in each superpixel [10], resulting in refined ICD score $S_{i,k,c}^{\prime}$ . This step is helpful to recover the object boundary information, which generally lost in the downsampling process. Then, we generate the binary mask $B_{i,k,c}$ from the refined ICD score:
+
+$$
+B _ {i, k, c} = \mathbb {I} \left(S _ {i, k, c} ^ {\prime} > 0\right), \quad k \in \{1, \dots , H W \} \tag {6}
+$$
+
+where, $\mathbb{I}(\cdot)$ is the indicator function that equals 1 if the statement is true otherwise 0.
+
+Finally, we adopt a new branch to fit the binary mask and derive new ICD scores $S_{i,k,c}^{\prime \prime}$ :
+
+$$
+\begin{array}{l} L _ {t d} (X) = - \frac {1}{N H W} \sum_ {i = 1} ^ {N} \sum_ {k = 1} ^ {H W} \sum_ {c = 1} ^ {C} y _ {i, c} \left(B _ {i, k, c} \log \sigma \left(S _ {i, k, c} ^ {\prime \prime}\right) + \right. \\ (1 - B _ {i, k, c}) \log (1 - \sigma \left(S _ {i, k, c} ^ {\prime \prime}\right)) \tag {7} \\ \end{array}
+$$
+
+where, $\sigma (\cdot)$ is the sigmoid function. $S_{i,k,c}^{\prime \prime}$ is the branch's prediction, which is also the final adapted ICD score to generate seeds.
+
+# 4.4. Variants and Analysis
+
+Beside from Eq. 1, there are other methods to learn the directional vector to discriminate the pixels. For example, we can adopt the L1 form to learn the $\mathbf{w}_c$ :
+
+$$
+L _ {a b s} (X) = - \frac {1}{N H W} \sum_ {i = 1} ^ {N} \sum_ {k = 1} ^ {H W} \sum_ {c = 1} ^ {C} y _ {i, c} \left| \mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k} \right| \tag {8}
+$$
+
+Another intuitive choice is to take it as a standard binary classification problem, which generates online pseudolabels and adopts the sigmoid loss for training:
+
+$$
+Y _ {i, k, c} = \mathbb {I} \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k} > 0\right) \tag {9}
+$$
+
+$$
+\begin{array}{l} L _ {s i g} (X) = \frac {- 1}{N H W} \sum_ {i = 1} ^ {N} \sum_ {k = 1} ^ {H W} \sum_ {c = 1} ^ {C} y _ {i, c} \left(Y _ {i, k, c} \log \sigma \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k}\right) + \right. \\ (1 - Y _ {i, k, c}) \log (1 - \sigma \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k}\right)) \tag {10} \\ \end{array}
+$$
+
+We reveal the connections of these variants by analysing the gradients. The gradients of these three variants can be represented in a unified form:
+
+$$
+\frac {\partial L (X)}{\partial \mathbf {w} _ {c}} = - \sum_ {i = 1} ^ {N} \sum_ {k = 1} ^ {H W} \left(y _ {i, c} \operatorname {s i g n} \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k}\right)\right) \cdot \lambda_ {i, k} \cdot \mathbf {f} _ {i, k} \tag {11}
+$$
+
+where,
+
+$$
+\lambda_ {i, k} = \left\{ \begin{array}{l l} | \mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k} | & \text {f o r} L _ {b u} \\ 1 & \text {f o r} L _ {a b s} \\ | \sigma \left(\mathbf {w} _ {c} ^ {T} \mathbf {f} _ {i, k}\right) - Y _ {i, k, c} | & \text {f o r} L _ {s i g} \end{array} \right. \tag {12}
+$$
+
+Eq. 11 and 12 show that the gradient is the weighted sum of the features. Our original approach weights more on features with larger absolute projection values, which is generally reliable because they are far from the decision boundary. In contrast, the sigmoid loss approach weights more on features near the boundary, which is inferior because these estimates are not reliable, as demonstrated in Sec. 5.5.
+
+# 4.5. Training and Generating Seeds
+
+The whole ICD framework is trained together with the CAM. Denote $L_{cam}(X)$ as the multi-class sigmoid loss used by the CAM, the total training loss is:
+
+$$
+L _ {a l l} (X) = L _ {c a m} (X) + L _ {b u} (X) + L _ {t d} (X) \tag {13}
+$$
+
+After training, the adapted ICD score $S_{i,k,c}^{\prime \prime}$ is adopted to generate seeds. For images of a single class, we directly adopt the ICD scores to generate the pseudo-masks by threshold 0. For images of multiple classes, pixels that are labeled background by all the ICD scores are taken as the background for the seed, and others are foreground. If a pixel is labeled foreground by multiple ICD scores, we adopt the production of the CAM score and the ICD score to determine its class, because the CAM is specifically optimized by the class recognition problem. CRF [21] post-processing is also adopted to refine the details further.
+
+# 5. Experiments
+
+# 5.1. Dataset
+
+Following related works, we conduct experiments on the Pascal VOC 2012 [9] to verify our approach. It contains 21 classes (including the background class) for semantic segmentation. There are 10582 training images, which are expanded by [11], 1449 validation images, and 1456 testing images. For all the experiments, we only adopt the image-level class labels for training, which correspond to the 20 foreground classes. The performance is evaluated by the standard mean intersection over union (mIoU) across the 21 classes for the semantic segmentation task.
+
+# 5.2. Implementation Details
+
+We adopt the VGG16 [33] as the backbone to learn our ICD framework, which is pretrained by the ImageNet [8]. Following the Deeplab's [4] strategy, we change the strides in the last two pooling layers from 2 to 1 to obtain larger feature maps, and we adopt dilation 2 in the Conv5 Block to maintain the receptive field. The Fc6 and Fc7 layers are also changed into fully convolutional layers with 1024 channels and kernel size 3 and 1, respectively.
+
+For the bottom-up estimation, we adopt the Conv5 Block's features to learn. We attach a batch normalization layer [16] with frozen gamma 1 and beta 0 to normalize the features before applying Eq. 1 to prevent trivial single sign results. The directional vector is efficiently implemented by a $1 \times 1$ convolution layer. For the top-down adaptation, we attach another Fc6 and Fc7 Block on top of the features that adopted by the bottom-up estimation, and we concatenate these three features to predict the adapted scores. To save the computation burden in the training process, we compute the ImageNet pretrained features for superpixels [10] and follow the strategy in [35] to hierarchically merge them so that each image contains at most 64 superpixels.
+
+New layers are initialized by Normal distribution with a standard deviation 0.01. We use the SGD optimizer with momentum 0.9 and weight decay $5e^{-4}$ . The initial learning rate is $1e^{-3}$ and is poly decayed by power 0.9 every epoch, and the learning rate for new layers are multiplied by 10. We adopt the batch size 32 and train 20 epochs. The training images are augmented by random scaling, random flipping, and are randomly cropped into size 321. The bottom-up estimation is learned by single-class images to avoid mixing multi-class objects. We adopt the warm-up strategy that exponentially increases the loss weight from 0 to 1 for the top-down adaptation branch in the first two epochs because initial bottom-up estimates are not reliable.
+
+# 5.3. Reproductivity
+
+We use two TITAN V GPUs for training, but a single GPU is also feasible. The proposed ICD approach is imple
+
+
+Figure 4. Visualization of the CAM scores, the ICD scores, and the generated seeds. The neighboring two columns of the scores correspond to the foreground and the background, respectively. Best viewed in color.
+
+
+Figure 5. Comparison of the per-class AP of the ICD and the CAM. Results obtained on the VOC12 training set.
+
+| Method | mAP (%) |
| CAM | 46.3 |
| Ours (ICD) | 57.0 |
+
+Table 1. Evaluation of the quality of score maps by pixel-level mAP on the VOC12 training set. Larger value is better.
+
+| Threshold | mIoU (%) | recall (%) |
| CAM | Ours | CAM | Ours |
| 0.0 | 35.1 | 59.5 | 59.7 | 83.5 |
| 0.1 | 53.6 | 65.3 | 37.5 | 78.8 |
| 0.3 | 62.9 | 72.1 | 15.1 | 65.2 |
| 0.5 | 68.5 | 75.2 | 6.5 | 43.8 |
+
+Table 2. Evaluation of the seeds on the VOC12 training set. Higher threshold results in more reliable seeds, but the recall drops.
+
+mented on the MXNet [6] platform. Codes are available at https://github.com/js-fan/ICD.
+
+# 5.4. Evaluating the ICD Score
+
+We first demonstrate the effectiveness of our ICD approach to separating the foreground and the background pixels in the image. Fig. 4 shows some of the examples
+
+obtained by the CAM and by our ICD approach. The visualizations are obtained by applying threshold 0 on the score maps. Both the foreground and the background obtained by the CAM are very sparse. What's worse, because the CAM only cares inter-class discrimination, the maxima in the background scores do not cover the surrounding environment; instead, they are often on the edges of the object. This is why many previous approaches [38, 15, 22, 18] rely on additional saliency models to estimate the background. In contrast, our ICD approach dedicates to the discrimination of the pixels sharing the same image class labels, thus derives better estimation than the CAM.
+
+To quantitatively evaluate the above score maps, we recommend applying the mean Average Precision to evaluate the score maps. To compute the AP for a specific class, we first use the scores to rank all the pixels from the images of this class. Then we compute the AP by sequentially taking each pixel as the positive foreground and sampling precisions at all unique recall values. Finally, we compute the mAP by averaging the APs from all the 20 classes. The results are shown in Fig. 5 and Tab. 1. This measure demonstrates that compared with the CAM, our ICD correctly assigns more foreground pixels with higher scores than the background.
+
+We also adopt the final adapted ICD scores to generate seeds to evaluate the quality. We inspect the seeds with multiple different thresholds. Specifically, given the threshold $T$ , the foreground and the background are generated by $T$ and $-T$ , respectively. We compute the mIoU with the nonempty regions in the seeds. Generally, a larger threshold results in more reliable estimates, but the recall decreases because of the empty regions. Our ICD seeds consistently outperform the CAM seeds with different thresholds, as shown in Tab. 2.
+
+| Bottom-up | Refine | Top-down | CRF | mIoU (%) |
| ✓ | | | | 49.9 |
| ✓ | ✓ | | | 54.0 |
| ✓ | ✓ | ✓ | | 59.9 |
| ✓ | ✓ | ✓ | ✓ | 62.2 |
+
+# 5.5. Ablation Study
+
+Components of the ICD. We demonstrate the effect of each component in the ICD framework by evaluating the generated seeds, as shown in Tab. 3. The initial bottom-up ICD score obtains a mIoU $49.9\%$ on the training set by evaluating the generated seeds with the ground truth. The ICD score refined by superpixels achieves seed mIoU $54.0\%$ , demonstrating the superpixel is helpful to revise the ICD scores. The top-down adaptation further boosts the performance by $5.9\%$ mIoU, demonstrating the effect of fine-tuning the backbone model with the pixel-level ICD task. Finally, the CRF post-processing strategy further boosts the performance to mIoU $62.2\%$ , obtaining the full version seeds to train the segmentation models.
+
+Features for the bottom-up estimation. We study the influence of the features on the bottom-up estimation. Specifically, we adopt the features from three different blocks in the VGG16 backbone, i.e., Conv4, Conv5, Fc6, and their concatenation. Results in Tab. 5 show that the bottom-up estimation is sensitive to the features, and the Conv5 performs best. We believe this is because the bottom-up estimation relies on the feature manifolds. The low-level Conv4 features hold too many distractors to estimate the common foreground objects, meanwhile the high-level Fc6 features are over-adapted to the classification task that the features irrelevant to the recognition task are inhibited.
+
+Structures for the top-down adaptation. We study the influence of different structures for the adaptation branch. Specifically, we explore four different structures: a) directly adopt the Conv5 Block's features (after BN) for adaptation; b) add two blocks, Fc6 and Fc7 that own the same structure as the CAM branch but do not share parameters with it, on top of the Conv5 features, and adopt the Fc7 Block's feature for adaptation; c) adopt the concatenation of the above Conv5, Fc6, and Fc7's features for adaptation; d) adopt the same structure as c) but share parameters with the CAM branch. The results in Tab. 6 demonstrate that the setting c) achieves the best performance. Sharing the parameters with the CAM branch results in inferior results, which reveals that CAM's classification task and our ICD's per-pixel discrimination task require different features. Directly adapt
+
+Table 3. Ablation study of the components in our ICD approach. Results are evaluated on the VOC12 training set with the seeds.
+
+| Variants | Lbu | Labs | Lsig |
| mIoU(%) | 62.2 | 58.3 | 52.9 |
+
+Table 4. Comparison of the variants of the ICD estimation. Results are evaluated on the VOC12 training set with the seeds.
+
+| Method | mIoU (%) |
| w/o CRF | w/ CRF |
| Conv4 | 43.8 | 47.0 |
| Conv5 | 49.9 | 56.7 |
| Fc6 | 40.0 | 42.4 |
| Concat | 41.3 | 44.1 |
+
+Table 5. Comparison of the features for the bottom-up estimation. Results are evaluated on the VOC12 training set with the seeds.
+
+| Method | mIoU (%) |
| w/o CRF | w/ CRF |
| a) | 50.4 | 42.9 |
| b) | 57.2 | 58.8 |
| c) | 59.9 | 62.2 |
| d) | 59.2 | 62.0 |
+
+Table 6. Comparison of the structures for the top-down adaptation. Results are evaluated on the VOC12 training set with the seeds.
+
+the Conv5 features results in much worse performance. This is because this feature is also directly used by the bottom-up estimation. The guidance for the adaptation is from the bottom-up estimation, thus using the identical feature for these two tasks behaves similarly to update the directional vector and the feature in Eq. 1 simultaneously, which suffers from entangled drifting issues.
+
+Variants. We conduct experiments to evaluate variant approaches to estimate the foreground and the background pixels, as discussed in Sec. 4.4. Results in Tab. 4 demonstrate that our approach in Eq. 1 performs best, and the approach adopting the pseudo label and the sigmoid loss performs worst, which is because it weights more on the pixels near the decision boundary, which are not reliable because we lack the ground truth in the weakly supervised scenario.
+
+# 5.6. Comparison with Related Works
+
+To compare our ICD approach with other related works, we generate seeds with the final adapted ICD scores and refine it with the CRF post-processing algorithm. We use the generated seeds to learn a standard semantic segmentation network. Specifically, we adopt the Deeplab-Largefov, with the VGG16 [33] and the Resnet101 [12] as the backbones. The results are listed in Tab. 7 and Tab. 8, respectively.
+
+Many previous approaches adopt saliency models for generating background seeds, which are usually trained by
+
+
+Figure 6. Visualization of the segmentation results. Samples are from the VOC12 val set. We visualize demos both without saliency models (ICD) and with saliency models $(\mathrm{ICD} + \mathrm{sal})$
+
+| Method | Supervision | val | test |
| CCNN [29]ICCV15 | I. | 35.3 | 35.6 |
| EM-Adapt [28]ICCV15 | I. | 38.2 | 39.6 |
| MIL [30]CVPR15 | I. | 42.0 | 40.6 |
| SEC [20]ECCV16 | I. | 50.7 | 51.7 |
| AugFeed [31]ECCV16 | I. | 54.3 | 55.5 |
| STC [39]PAMI17 | I.+S. | 49.8 | 51.2 |
| AE-PSL [38]CVPR17 | I.+S. | 55.0 | 55.7 |
| DCSP [2]BMVC17 | I.+S. | 58.6 | 59.2 |
| AffinityNet [1]CVPR18 | I. | 58.4 | 60.5 |
| GAIN [23]CVPR18 | I.+S. | 55.3 | 56.8 |
| MCOF [37]CVPR18 | I.+S. | 56.2 | 57.6 |
| DSRG [15]CVPR18 | I.+S. | 59.0 | 60.4 |
| MDC [40]CVPR18 | I.+S. | 60.4 | 60.8 |
| SeeNet [14]NIPS18 | I.+S. | 61.1 | 60.7 |
| FickleNet [22]CVPR19 | I.+S. | 61.2 | 61.9 |
| SSNet [41]ICCV19 | I.+S. | 57.1 | 58.6 |
| OAA [18]ICCV19 | I.+S. | 63.1 | 62.8 |
| Ours | I. | 61.2 | 60.9 |
| Ours | I.+S. | 64.0 | 63.9 |
+
+external saliency datasets with pixel-level annotations and can provide precise background estimates. For a fair comparison, we also evaluate the setting with external saliency models. To this end, we adopt the same saliency model [13] that used by [18] to estimate the background. Specifically, we keep the foreground score unchanged and replace the background score with the saliency scores, then follow the same approach as before to generate seeds.
+
+The results show that our ICD approach outperforms many previous cutting-edge approaches, even without the
+
+Table 7. Comparison with related works on the VOC12 dataset. All the results are based on VGG16. I. stands for image-level labels, S. stands for external saliency models.
+
+| Method | Supervision | val | test |
| DCSP [2]BMVC17 | I.+S. | 60.8 | 61.9 |
| MCOF [37]CVPR18 | I.+S. | 60.3 | 61.2 |
| DSRG [15]CVPR18 | I.+S. | 61.4 | 63.2 |
| SeeNet [14]NIPS18 | I.+S. | 63.1 | 62.8 |
| FickleNet [22]CVPR19 | I.+S. | 64.9 | 65.3 |
| OAA [18]JCCV19 | I.+S. | 65.2 | 66.4 |
| Ours | I. | 64.1 | 64.3 |
| Ours | I.+S. | 67.8 | 68.0 |
+
+Table 8. Comparison with related works on the VOC12 dataset. All the results are based on ResNet101. I. stands for image-level labels, S. stands for external saliency models.
+
+help of external saliency models. To the best of our knowledge, the previous best VGG16 based result without saliency is achieved by AffinityNet [1] with mIoU $58.4\%$ on the validation set. Our ICD approach significantly promotes this score up to $61.2\%$ , while only using efficient single-stage training. Under the setting of using saliency models, our ICD approach also achieves decent performance, which improves over previous best OAA results with $0.9\%$ mIoU and $2.6\%$ mIoU on the validation set with the VGG16 and the Resnet101 backbones, respectively. We also visualize some of the segmentation models' final predictions in Fig. 6 to help qualitatively evaluate the results. The learned segmentation model correctly handles complicated cases of small objects and multi-objects.
+
+# 6. Conclusion
+
+In this paper, we observe the decision boundary mismatch problem in applying the CAM to estimate pseudomasks for the WSSS. The CAM only learns to discriminate between different classes in the image-level; however, the pseudo-masks require to separate pixels sharing the same class label into the foreground and the background parts. To alleviate this problem, we propose an efficient end-to-end ICD approach, which dedicates to the intra-class discrimination between the foreground and the background pixels in each image. We conduct analysis experiments to study the proposed approach and achieve the new state-of-the-art performance on the VOC 2012 dataset, demonstrating the advantage of the approach.
+
+# Acknowledgement
+
+This work was supported in part by the National Key R&D Program of China (No.2018YFB1402600), 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.
+
+# References
+
+[1] Jiwoon Ahn and Suha Kwak. Learning pixel-level semantic affinity with image-level supervision for weakly supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4981-4990, 2018.
+[2] Arslan Chaudhry, Puneet K. Dokania, and Philip H. S. Torr. Discovering class-specific pixels for weakly-supervised semantic segmentation. In *British Machine Vision Conference*, 2017.
+[3] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Semantic image segmentation with deep convolutional nets and fully connected crfs. In International Conference on Learning Representations, 2015.
+[4] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2018.
+[5] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017.
+[6] Tianqi Chen, Mu Li, Yutian Li, Min Lin, Naiyan Wang, Minjie Wang, Tianjun Xiao, Bing Xu, Chiyuan Zhang, and Zheng Zhang. Mxnet: A flexible and efficient machine learning library for heterogeneous distributed systems. Advances in Neural Information Processing Systems, Workshop on Machine Learning Systems, 2015.
+[7] Jifeng Dai, Kaiming He, and Jian Sun. Boxsup: Exploiting bounding boxes to supervise convolutional networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1635-1643, 2015.
+[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 248-255, 2009.
+[9] Mark Everingham, Luc Van Gool, Christopher K.I. Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2):303-338, 2010.
+[10] Pedro F Felzenszwalb and Daniel P Huttenlocher. Efficient graph-based image segmentation. International Journal of Computer Vision, 59(2):167-181, 2004.
+[11] Bharath Hariharan, Pablo Arbeláez, Lubomir Bourdev, Subhransu Maji, and Jitendra Malik. Semantic contours from inverse detectors. In Proceedings of the IEEE International Conference on Computer Vision, pages 991-998, 2011.
+[12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In Proceedings of the European Conference on Computer Vision, pages 630-645, 2016.
+[13] Qibin Hou, Ming-Ming Cheng, Xiaowei Hu, Ali Borji, Zhuowen Tu, and Philip HS Torr. Deeply supervised salient object detection with short connections. In Proceedings
+
+of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3203-3212, 2017.
+[14] Qibin Hou, PengTao Jiang, Yunchao Wei, and Ming-Ming Cheng. Self-erasing network for integral object attention. In Advances in Neural Information Processing Systems, pages 549–559, 2018.
+[15] Zilong Huang, Xinggang Wang, Jiasi Wang, Wenyu Liu, and Jingdong Wang. Weakly-supervised semantic segmentation network with deep seeded region growing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7014-7023, 2018.
+[16] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning, 2015.
+[17] Huaizu Jiang, Jingdong Wang, Zejian Yuan, Yang Wu, Nanning Zheng, and Shipeng Li. Salient object detection: A discriminative regional feature integration approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2083-2090, 2013.
+[18] Peng-Tao Jiang, Qibin Hou, Yang Cao, Ming-Ming Cheng, Yunchao Wei, and Hong-Kai Xiong. Integral object mining via online attention accumulation. In Proceedings of the IEEE International Conference on Computer Vision, pages 2070-2079, 2019.
+[19] Anna Khoreva, Rodrigo Benenson, Jan Hosang, Matthias Hein, and Bernt Schiele. Simple does it: Weakly supervised instance and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 876-885, 2017.
+[20] Alexander Kolesnikov and Christoph H. Lampert. Seed, expand and constrain: Three principles for weakly-supervised image segmentation. In Proceedings of the European Conference on Computer Vision, pages 695-711, 2016.
+[21] Philipp Krahenbuhl and Vladlen Koltun. Efficient inference in fully connected crfs with gaussian edge potentials. In Advances in Neural Information Processing Systems, pages 109-117, 2011.
+[22] Jungbeom Lee, Eunji Kim, Sungmin Lee, Jangho Lee, and Sungroh Yoon. Ficklenet: Weakly and semi-supervised semantic image segmentation using stochastic inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5267-5276, 2019.
+[23] Kunpeng Li, Ziyan Wu, Kuan-Chuan Peng, Jan Ernst, and Yun Fu. Tell me where to look: Guided attention inference network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9215-9223, 2018.
+[24] Di Lin, Jifeng Dai, Jiaya Jia, Kaiming He, and Jian Sun. Scribblesup: Scribble-supervised convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3159-3167, 2016.
+[25] Tsung-Yi Lin, Michael Maire, Serge Belongie, Lubomir Bourdev, Ross Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dólar. Microsoft coco: Common objects in context. In Proceedings of the
+
+European Conference on Computer Vision, pages 740-755, 2014.
+[26] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3431-3440, 2015.
+[27] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579-2605, 2008.
+[28] George Papandreou, Liang-Chieh Chen, Kevin P Murphy, and Alan L. Yuille. Weakly- and semi-supervised learning of a deep convolutional network for semantic image segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1742–1750, 2015.
+[29] Deepak Pathak, Philipp Krahenbuhl, and Trevor Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1796-1804, 2015.
+[30] Pedro O Pinheiro and Ronan Collobert. From image-level to pixel-level labeling with convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1713-1721, 2015.
+[31] Xiaojuan Qi, Zhengzhe Liu, Jianping Shi, Hengshuang Zhao, and Jiaya Jia. Augmented feedback in semantic segmentation under image level supervision. In Proceedings of the European Conference on Computer Vision, pages 90-105, 2016.
+[32] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pages 618-626, 2017.
+[33] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2015.
+[34] Chunfeng Song, Yan Huang, Wanli Ouyang, and Liang Wang. Box-driven class-wise region masking and filling rate guided loss for weakly supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3136-3145, 2019.
+[35] Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. International Journal of Computer Vision, 104(2):154-171, 2013.
+[36] Paul Vernaza and Manmohan Chandraker. Learning random-walk label propagation for weakly-supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7158-7166, 2017.
+[37] Xiang Wang, Shaodi You, Xi Li, and Huimin Ma. Weakly-supervised semantic segmentation by iteratively mining common object features. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1354-1362, 2018.
+[38] Yunchao Wei, Jiashi Feng, Xiaodan Liang, Ming-Ming Cheng, Yao Zhao, and Shuicheng Yan. Object region mining
+
+with adversarial erasing: A simple classification to semantic segmentation approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1568-1576, 2017.
+[39] Yunchao Wei, Xiaodan Liang, Yunpeng Chen, Xiaohui Shen, Ming-Ming Cheng, Jiashi Feng, Yao Zhao, and Shuicheng Yan. Stc: A simple to complex framework for weakly-supervised semantic segmentation. IEEE transactions on pattern analysis and machine intelligence, 39(11):2314-2320, 2017.
+[40] Yunchao Wei, Huaxin Xiao, Honghui Shi, Zequn Jie, Jiashi Feng, and Thomas S. Huang. Revisiting dilated convolution: A simple approach for weakly- and semi-supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7268–7277, 2018.
+[41] Yu Zeng, Yunzhi Zhuge, Huchuan Lu, and Lihe Zhang. Joint learning of saliency detection and weakly supervised semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 7223-7233, 2019.
+[42] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2921-2929, 2016.
\ No newline at end of file
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/images.zip b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7905a5a9862a4e8728d90f42d374ca95b7b8449f
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:860f6ea58b12fa8c5d71813d96b1110f2e6b6eb7218f51826a4f652f3d61f1ea
+size 579438
diff --git a/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/layout.json b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7df58133c05ab4fc0debd9ee9de92501b57d5b81
--- /dev/null
+++ b/learningintegralobjectswithintraclassdiscriminatorforweaklysupervisedsemanticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e41742a1b4543859122a5ee1ab3fc377ed0a914ccaeb3c9e5de14c49215354da
+size 344798
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_content_list.json b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b304d1a8c50548e71002d146c4de1c63e695f5cd
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3d83bc68b163e41f316f7cd84f868074861777646194bad6327c433bc106eda
+size 84175
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_model.json b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e68eca482754b0c621717fe04549a41f471e887a
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:33ce7bdf5937cf8c27ec2ad9c65dcc2f96281e1331e9d17a0dd65f1139f73b9c
+size 104502
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_origin.pdf b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..901f4ca3aad4d249f86d757dd99831a707da7be2
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/39143ff6-2562-4d0b-be70-334df0d78360_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bea177a6855a5cdae27aef9af862bb620a648fe60930b3c1b7a52e871a9b86e8
+size 1839133
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/full.md b/learninginteractionsandrelationshipsbetweenmoviecharacters/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fd8d4438dd6b7e6c8e12b9fe15bffc9b8bfed9a8
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/full.md
@@ -0,0 +1,382 @@
+# Learning Interactions and Relationships between Movie Characters
+
+Anna Kukleva $^{1,2}$
+
+Makarand Tapaswi1
+
+Ivan Laptev1
+
+1Inria Paris, France
+
+2Max-Planck-Institute for Informatics, Saarbrücken, Germany
+
+akukleva@mpi-inf.mpg.de, {makarand.tapaswi, ivan.laptev}@inria.fr
+
+
+Figure 1: The goal of this work is to jointly predict interactions and relationships between all characters in movies. Some interactions are based on dialog (e.g. suggests, confesses), some are primarily visual (e.g. runs with), and others are based on a fusion of both modalities (e.g. consoles). The colored rows at the bottom highlight when a pair of characters appear in the movie timeline. Their (directed) relationships are presented at the right. Example clips obtained from the movie Juno, 2007.
+
+# Abstract
+
+Interactions between people are often governed by their relationships. On the flip side, social relationships are built upon several interactions. Two strangers are more likely to greet and introduce themselves while becoming friends over time. We are fascinated by this interplay between interactions and relationships, and believe that it is an important aspect of understanding social situations. In this work, we propose neural models to learn and jointly predict interactions, relationships, and the pair of characters that are involved. We note that interactions are informed by a mixture of visual and dialog cues, and present a multimodal architecture to extract meaningful information from them. Localizing the pair of interacting characters in video is a time-consuming process, instead, we train our model to learn from clip-level weak labels. We evaluate our models on the MovieGraphs dataset and show the impact of modalities, use of longer temporal context for predicting relationships, and achieve encouraging performance using weak labels as compared with ground-truth labels. Code is online.1
+
+# 1. Introduction
+
+A salient aspect of being human is our ability to interact with other people and develop various relationships over the period of our lives. While some relationships drive the typical interactions experienced by a pair of people in a top-down manner (e.g. parents customarily love and nurture their children); almost all social (non-family) relationships are driven through bottom-up interactions (e.g. strangers become friends over a good chat or a shared drink) [21]. For an intelligent agent to truly be a part of our lives, we will need it to assimilate this complex interplay and learn to behave appropriately in different social situations.
+
+We hypothesize that a first step in this direction involves learning how people interact and what their relationships might be. However, training machines with live, real world, experience-based data is an extremely complicated proposition. Instead, we rely on movies that provide snapshots into key moments of our lives, portraying human behavior at its best and worst in various social situations [47].
+
+Interactions and relationships have been addressed separately in literature. Interactions are often modeled as simple
+
+actions [19, 36], and relationships are primarily studied in still images [29, 43] and recently in videos [30]. However, we believe that a complete understanding of social situations can only be achieved by modeling them jointly. For example, consider the evolution of interactions and relationships between a pair of individuals in a romantic movie. We see that the characters first meet and talk with each other and gradually fall in love, changing their relationship from strangers to friends to lovers. This often leads to them getting married, followed subsequently by arguments or infidelity (a strong bias in movies) and a falling out, which is then reconciled by one of their friends.
+
+The goal of our work is to attempt an understanding of these rich moments of peoples' lives. Given short clips from a movie, we wish to predict the interactions and relationships, and localize the characters that experience them throughout the movie. Note that our goals necessitate the combination of visual as well as language cues; some interactions are best expressed visually (e.g. runs with), while others are driven through dialog (e.g. confesses) - see Fig. 1. As our objectives are quite challenging, we make one simplifying assumption - we use trimmed (temporally localized) clips in which the interactions are known to occur. We are interested in studying two important questions: (i) can learning to jointly predict relationships and interactions help improve the performance of both? and (ii) can we use interaction and relationship labels at the clip or movie level and learn to identify/localize the pair of characters involved? We refer to this as weak track prediction. A solution for the first question is attempted using a multi-task formulation operating on several clips spanning the common pair of characters, while the second uses a combination of max-margin losses with multiple instance learning (see Sec. 3).
+
+Contributions. We conduct our study on 51 movies from the recently released MovieGraphs [47] dataset (see Sec. 4.2). The dataset annotations are based on free-text labels and have long tails for over 300 interaction classes and about 100 relationships. To the best of our knowledge, ours is the first work that attempts to predict interactions and long-term relationships between characters in movies based on visual and language cues. We also show that we can learn to localize characters in the video clips while predicting interactions and relationships using weak clip/movie level labels without a significant reduction in performance.
+
+# 2. Related Work
+
+We present related work in understanding actions/interactions in videos, studying social relationships, and analyzing movies or TV shows for other related tasks.
+
+Actions and interactions in videos. Understanding actions performed by people can be approached in many different ways. Among them, action classification involves predicting
+
+the dominant activity in a short trimmed video clip [24, 41], while action localization involves predicting the activity as well as temporal extent [15, 39, 51]. An emerging area involves discovering actions in an unsupervised manner by clustering temporal segments across all videos corresponding to the same action class [2, 25, 38].
+
+Recently, there has been an interest in creating large-scale datasets (millions of clips, several hundred classes) for learning actions [1, 5, 11, 18, 34] but none of them reflect person-to-person (p2p) multimodal interactions where several complex actions may occur simultaneously. The AVA challenge and dataset [19] is composed of 15 minute video clips from old movies with atomic actions such as pose, person-object interactions, and person-person interactions (e.g. talk to, hand wave). However, all labels are based on a short (3 second) temporal window, p2p actions are not annotated between multiple people, and relationship labels are not available. Perhaps closest to our work on studying interactions, Alonso et al. [36] predict interactions between two people using person-centered descriptors with tracks. However, the TV-Human Interactions dataset [36] is limited to 4 visual classes in contrast to 101 multimodal categories in our work. As we are interested in studying intricate multimodal p2p interactions and long-range relationships, we demonstrate our methods on the MovieGraphs dataset [47].
+
+Recognizing actions in videos requires aggregation of spatio-temporal information. Early approaches include hand-crafted features such as interest points [26] and Improved Dense Trajectories [48]. With end-to-end deep learning, spatio-temporal 3D Convolutional Neural Networks (e.g. I3D [5]) are used to learn video representations resulting in state-of-the-art results on video understanding tasks. For modeling long-videos, learning aggregation functions [16, 33], subsampling frames [49], or accumulating information from a feature bank [50] are popular options.
+
+Relationships in still images. Most studies on predicting social relationships are based on images [14, 17, 29, 40, 43]. For example, the People in Photo Albums (PIPA) [54] and the People in Social Context (PISC) datasets [29] are popular among social relationship recognition. The latter contains 5 relationship types (3 personal, 2 professional), and [29] employs an attention-based model that looks at the entire scene as well as person detections to predict relationships. Alternately, a domain based approach is presented by Sun et al. [43] that extends the PIPA dataset and groups 16 social relationships into 5 categories based on Burgental's theory [4]. Semantic attributes are used to build interpretable models for predicting relationships [43].
+
+We believe that modeling relationships requires looking at long-term temporal interactions between pairs of people, something that still image works do not allow. Thus, our work is fundamentally different from above literature.
+
+Social understanding in videos. Understanding people in
+
+videos goes beyond studying actions. Related topics include clustering faces in videos [22, 45], naming tracks based on multimodal information [35, 44], studying where people look while interacting [13, 32], predicting character emotions [10, 47], modeling spatial relations between objects and characters [27, 42, 55], recognizing actions performed in groups [3, 8], predicting effects for characters [56], producing captions for what people are doing [37, 7], answering questions about events, activities, and character motivations [28, 46, 23], reasoning about social scenes and events [52, 53], understanding social relationships [30, 47], and meta-data prediction using multiple modalities [6].
+
+Perhaps most related to our work on predicting relationships are [30, 31]. Lv et al. [31] present the first dataset for modeling relationships in video clips, and propose a multistream model to classify 16 relationships. More recently, Liu et al. [30] propose a graph network to capture long-term and short-term temporal cues in the video. Different from above works, we address predicting relationships between pairs of characters in an entire movie. We propose a joint model for interactions and relationships as they may influence each other, and also localize the characters in the video.
+
+# 3. Model
+
+In this section, we present our approach towards predicting the interactions and relationships between pairs of characters (Sec. 3.1), and localizing characters in the video as tracks (Sec. 3.2).
+
+Notation. We define $\mathcal{A}$ as the set of all interaction labels, both visual and spoken (e.g. runs with, consoles); and $\mathcal{R}$ as the set of all relationship labels between people (e.g. parent-child, friends). We process complete movies, where each movie $\mathcal{M}$ consists of three sets of information:
+
+1. Characters $\mathcal{C}_M = \{c_1,\dots ,c_P\}$ , each $c_{j}$ representing a cluster of all face/person tracks for that character.
+2. Trimmed video clips annotated with interactions $\mathcal{T}_M = \{(v_1, a_1^*, c_{1j}, c_{1k}), \ldots, (v_N, a_N^*, c_{Nj}, c_{Nk})\}$ , where $v_i$ corresponds to a multimodal video clip, $a_i^* \in \mathcal{A}$ is a directed interaction label, and $c_{ij}$ is used to denote the tracks for character $c_j$ in the clip $v_i$ .
+3. Directed relationships between all pairs of characters $\mathcal{R}_M = \{r_{jk}^i = \mathrm{relationship}(v_i, c_j, c_k)\}$ for all clips $i \in [1, N]$ . For simplicity of notation, we assign a relationship label $r_{jk}^i$ to each clip. However, note that relationships typically span more than a clip, and often the entire movie (e.g. parent-child).
+
+For each clip $v_{i}$ , our goal is to predict the primary interaction $a_{i}$ , the characters $c_{ij}$ and $c_{ik}$ that perform this interaction, and their relationship $r_{jk}^{i}$ . In practice, we process several clips belonging to the same pair of characters as predicting relationships with a single short clip can be
+
+
+Figure 2: Normalized correlation map between (selected) interactions and relationships. Darker regions indicate higher scores.
+
+quite challenging, and using multiple clips helps improve performance.
+
+We denote the correct pair of characters in a tuple $(v_{i},a_{i}^{*},c_{ij},c_{ik})$ from $\mathcal{T}$ as $p_i^* = (c_{ij},c_{ik})$ , and the set of all character pairs as $\mathcal{P}_M = \{(c_j,c_k)\forall j,k,j\neq k\}$ .
+
+Note that the interaction tuples in $\mathcal{T}$ may be temporally overlapping with each other. For example, Jack may look at Jill while she talks to him. We deal with such interaction labels from overlapping clips in our learning approach by masking them out in the loss function.
+
+# 3.1. Interactions and Relationships in a Clip
+
+Fig. 2 shows example correlations between a few selected interactions and all 15 relationships in our dataset. We observe that interactions such as obeys go together with worker manager relationships, while an enemy may shoot, or pull (a weapon), or commit a crime. Motivated by these correlations, we wish to learn interactions and relationships jointly.
+
+When the pair of characters that interact is known, we predict their interactions and relationships using a multi-modal clip representation $\Phi(v_i, p_i^*) \in \mathbb{R}^D$ . As depicted in Fig. 3, $\Phi$ combines features from multiple sources such as visual and dialog cues from the video, and character representations by modeling their spatio-temporal extents (via tracking).
+
+Interactions. We use a two-layer MLP with a classification layer $\mathbf{W}^{I2}\in \mathbb{R}^{|A|\times D},\mathbf{b}^{I2}\in \mathbb{R}^{|A|}$ to predict interactions between characters. The score for an interaction $a$ in clip $v$ is computed as
+
+$$
+s _ {I} (v, a) = \sigma_ {I} \left(\mathbf {w} _ {a} ^ {I 2} \cdot \operatorname {R e L U} \left(\mathbf {W} ^ {I 1} \Phi (v, p ^ {*}) + \mathbf {b} ^ {I 1}\right) + b _ {a} ^ {I 2}\right), \tag {1}
+$$
+
+where $\sigma (\cdot)$ represents the sigmoid operator. We learn the clip representation parameters along with the MLP by minimizing the max-margin loss function for each sample
+
+$$
+L _ {I} (v) = \sum_ {\substack {\bar {a} \in \mathcal {A} \backslash \mathcal {O} _ {I} (v) \\ \bar {a} \neq a ^ {*}}} \left[ m _ {I} - s _ {I} \left(v, a ^ {*}\right) + s _ {I} \left(v, \bar {a}\right) \right] _ {+}, \tag{2}
+$$
+
+where $[\cdot ]_{+}$ is a ReLU operator, $m_I$ is the margin, and $\mathcal{O}_I(v)$ is the set of interaction labels from clips temporally over
+
+
+Figure 3: Model architecture. Left: Our input is a trimmed video clip for one interaction, and consists of visual frames and all dialogues within its duration. Each interaction is associated with two characters, and they are represented visually by extracting features from cropped bounding boxes. Modalities are processed using fixed pre-trained models (BERT for textual, I3D for visual) to extract clip representations denoted by $\Phi(v)$ . Right: In the second panel, we show the architecture of our joint interaction and relationship prediction model. In particular, multiple clips are used to compute relationships, and we fuse these features while computing interaction labels.
+
+
+
+lapping with $v$ . The loss encourages our model to associate the correct interaction $a^*$ with the clip $v$ , while pushing other non-overlapping interaction labels $\bar{a}$ away. During inference, we predict the interaction for a clip $v$ as $\hat{a} = \arg \max_{a} s_I(v, a)$ .
+
+Relationships. While interactions are often short in duration (few seconds to a minute), relationships in a movie may last for several minutes to the entire movie. To obtain robust predictions for relationships, we train a model that observes several trimmed video clips that portray the same pair of characters. Let us denote $V_{jk} \subset \{v_1, \ldots, v_N\}$ as one such subset of clips that focus on characters $c_j$ and $c_k$ . In the following, we drop the subscripts $jk$ for brevity.
+
+Similar to predicting interactions, we represent individual clips of $V$ using $\Phi$ , apply a pooling function $g(\cdot)$ (e.g. avg, max) to combine the individual clip representations as $\Phi(V, p^*) = g(\Phi(v, p^*))$ and adopt a linear classifier $\mathbf{W}^R \in \mathbb{R}^{|\mathcal{R}| \times D}$ , $\mathbf{b}^R \in \mathbb{R}^{|\mathcal{R}|}$ to predict relationships. The scoring function
+
+$$
+s _ {R} (V, r) = \sigma_ {r} \left(\mathbf {w} _ {r} ^ {R} \Phi (V, p ^ {*}) + b _ {r} ^ {R}\right) \tag {3}
+$$
+
+computes the likelihood of character pair $p^*$ from the clips $V$ having relationship $r$ . We train model parameters using a similar max-margin loss function
+
+$$
+L _ {R} (V) = \sum_ {\substack {\bar {r} \in \mathcal {R} \\ \bar {r} \neq r ^ {*}}} [ m _ {R} - s _ {R} (V, r ^ {*}) + s _ {R} (V, \bar {r}) ] _ {+}, \tag{4}
+$$
+
+that attempts to score the correct relationship $r^*$ higher than others $\bar{r}$ . Unlike $L_I$ , we assume that a single label applies to all clips in $V$ . If a pair of characters change relationships (e.g. from strangers to friends), we select the set of clips $V$ during which a single relationship is present. At test time, we predict the relationship as $\hat{r} = \arg \max_r s_R(r, V)$ .
+
+Joint prediction of interactions and relationships is performed using a multi-task formulation. We consider multiple clips $V$ and train our model to predict the relationship as well as all interactions of the individual clips jointly. We introduce a dependency between the two tasks by concatenating the clip representations for interactions $\Phi_I(v, p^*)$ and relationships $\Phi_R(V, p^*)$ . Fig. 3 visualizes the architecture used for this task. We predict interactions as follows:
+
+$$
+s _ {I} (v, V, a) = \sigma \left(\mathbf {w} _ {a} ^ {I 2} \cdot \operatorname {R e L U} \left(\mathbf {W} ^ {I 1} \left[ \Phi_ {I} (v, p ^ {*}); \Phi_ {R} (V, p ^ {*}) \right]\right)\right). \tag {5}
+$$
+
+Linear layers include biases, but are omitted for brevity. The loss function $L_{I}(v)$ now uses $s_I(v,V,a)$ , but remains unchanged otherwise. The combined loss function is
+
+$$
+L _ {I R} (V) = L _ {R} (V) + \frac {\lambda}{| V |} \sum_ {v \in V} L _ {I} (v), \tag {6}
+$$
+
+where $\lambda$ balances the two losses.
+
+# 3.2. Who is interacting?
+
+Up until now, we assumed that a clip $v$ portrays two known characters that performed interaction $a$ . However, movies (and the real world) are often more complex, and we observe that several characters may be interacting simultaneously. To obtain a better understanding of videos, we present an approach to predict the characters along with the interactions they perform, and their relationship.
+
+While the interaction or relationship may be readily available as a clip-level label, localizing the pair of characters in the video can be a tedious task as it requires annotating tracks in the video. We present an approach that can work with such weak (clip-level) labels, and estimate the pair of characters that may be interacting.
+
+Predicting interactions and characters. As a first step, we look at jointly predicting interactions and the pair of charac
+
+ters. Recall that $p_i^*$ denotes the correct pair of characters in a clip tuple consisting of $v_i$ , and $\mathcal{P}_M$ is the set of all character pairs in the movie. We update the scoring function (Eq. 1) to depend on the chosen pair of characters $p \in \mathcal{P}_M$ as
+
+$$
+s _ {I C} (v, a, p) = \sigma \left(\mathbf {w} _ {a} ^ {I 2} \cdot \operatorname {R e L U} \left(\mathbf {W} ^ {I 1} \Phi (v, p)\right)\right), \tag {7}
+$$
+
+where $\Phi(v, p)$ now encodes the clip representation for any character pair $p$ (we use zeros for unseen characters). We train our model to predict interactions and the character pair by minimizing the following loss
+
+$$
+L _ {I C} (v) = \sum_ {\substack {\bar {a} \in \mathcal {A} \backslash \mathcal {O} _ {I} (v) \\ \bar {p} \in \mathcal {P} _ {M} \\ (\bar {a}, \bar {p}) \neq (a ^ {*}, p ^ {*})}} [ m _ {I C} - s _ {I C} (v, a ^ {*}, p ^ {*}) + s _ {I C} (v, \bar {a}, \bar {p}) ] _ {+}. \tag{8}
+$$
+
+If we consider the scoring function $s_{IC}(v, a, p)$ as a matrix of dimensions $|\mathcal{P}_M| \times |\mathcal{A}|$ , the negative samples are taken from everywhere except columns that have an overlapping interaction label $\mathcal{O}_I(v)$ , and the element where $(\bar{a} = a^*, \bar{p} = p^*)$ . At test time, we compute the character pair prediction accuracy given ground-truth (GT) interaction, interaction accuracy given GT character pair, and joint accuracy by picking the maximum score along both dimensions.
+
+Training with weak labels. When the GT character pair $p^*$ is not known during training, we modify the loss from Eq. 8 by first choosing the pair $\hat{p}^*$ that scores highest for the current parameters and $a^*$ , that is known during training.
+
+$$
+\hat {p} ^ {*} = \arg \max _ {p} s _ {I C} (v, a ^ {*}, p), \tag {9}
+$$
+
+$$
+L _ {I C} ^ {\text {w e a k}} (v) = \sum_ {\substack {\bar {a} \in \mathcal {A} \backslash \mathcal {O} _ {I} (v), \bar {a} \neq a ^ {*} \\ \bar {p} \in \mathcal {P} _ {M}}} \left[ m _ {I C} - s _ {I C} \left(v, a ^ {*}, \hat {p} ^ {*}\right) + s _ {I C} \left(v, \bar {a}, \bar {p}\right) \right] _ {+}. \tag{10}
+$$
+
+In contrast to the case when we know GT $p^*$ , we discard negatives from the entire column $(a = a^*)$ to prevent minor changes in choosing $\hat{p}^*$ from suppressing other character pairs. In practice, we treat $s_{IC}(v, a^*, p)$ as a multinomial distribution and sample $\hat{p}^*$ from it to prevent the model from getting stuck at only one pair. Inference is performed in a similar way as above.
+
+Hard negatives. Training a model with max-margin loss can affect performance if the loss is satisfied $(= 0)$ for most negative samples. As demonstrated in [12], choosing hard negatives by using max instead of $\sum$ can help improve performance. We adopt a similar strategy for selecting hard negatives, and compute the loss over all character pairs with their best interaction, i.e. $\sum_{\bar{p} \in \mathcal{P}_M} \max_{\bar{a}} (\cdot)$ in Eq. 8 and 10.
+
+Prediction of interactions, relationships, and characters. We present the loss function used to learn a model that jointly estimates which characters are performing what interactions and what are their relationships. Similar to Eq. 7, we first modify the relationship score to depend on $p$ :
+
+$$
+s _ {R C} (V, r, p) = \sigma \left(\mathbf {w} _ {r} ^ {R} g (\Phi (V, p)) + b _ {r} ^ {R}\right). \tag {11}
+$$
+
+This is used in a weak label loss function similar to Eq. 10.
+
+$$
+\hat {p} ^ {*} = \arg \max _ {p} s _ {R C} (V, r ^ {*}, p) + s _ {I C} (v, a ^ {*}, p), \tag {12}
+$$
+
+$$
+L _ {R C} ^ {\text {w e a k}} (V) = \sum_ {\substack {\bar {r} \in \mathcal {R}, \bar {r} \neq r ^ {*} \\ \bar {p} \in \mathcal {P} _ {M}}} [ m _ {R C} - s _ {R C} (V, r ^ {*}, \hat {p} ^ {*}) + s _ {R C} (V, \bar {r}, \bar {p}) ] _ {+}, \tag{13}
+$$
+
+$$
+L _ {I R C} ^ {\text {w e a k}} (V) = L _ {R C} ^ {\text {w e a k}} (V) + \frac {\lambda}{| V |} \sum_ {v \in V} L _ {I C} ^ {\text {w e a k}} (v). \tag {14}
+$$
+
+During inference, we combine the scoring functions $s_{IC}$ and $s_{RC}$ to produce a 3D tensor in $|\mathcal{P}_M| \times |\mathcal{A}| \times |\mathcal{R}|$ . As before, we compute character pair accuracy given GT $a^*$ and $r^*$ , interaction accuracy given GT $p^*$ and $r^*$ , and relationship accuracy given GT $p^*$ and $a^*$ . We are also able to make joint predictions on all three by picking the element that maximizes the tensor over all three dimensions.
+
+# 4. Experiments
+
+We start by describing implementation details (Sec. 4.1), followed by a brief analysis of the dataset and the challenging nature of the task (Sec. 4.2). In Sec. 4.3 we examine interaction and relationship prediction performance as separate and joint tasks. Sec. 4.4 starts with learning interactions and estimating the pair of characters simultaneously. Finally, we also discuss predicting relationships jointly with interactions and localizing character pairs. We present both quantitative and qualitative evaluation throughout this section.
+
+# 4.1. Implementation Details
+
+Visual features. We extract visual features for all clips using a ResNeXt-101 model [20] pre-trained on the Kinetics-400 dataset. A batch of 16 consecutive frames is encoded, and feature maps are global average-pooled for the clip representation, and average pooled over a region of interest (ROIPool) to represent characters. Given a trimmed clip $v_{i}$ , we max pool above extracted features over the temporal span of the clip to pick the most important segments.
+
+Dialog features. To obtain a text representation, all dialogues are first parsed into sentences. A complete sentence may be as short as a single word (e.g. "Hi.") or consist of several subtitle lines. Multiple lines are also joined if they end with "...". Then, each sentence is processed using pretrained BERT-base model with a masked sentence from the next person if it exists. We supply a mask for every second sentence as done in the sentence pair classification task (for more details, c.f. [9]). We max pool over all sentences uttered in a trimmed clip to obtain a final representation.
+
+Note that every clip always has a visual representation. In the absence of dialog or tracks, we set the representations for missing modalities to 0.
+
+Clip representation $\Phi$ . We process the feature vector corresponding to each modality obtained after max pooling over
+
+the temporal extent with a two-layer MLP. Dropout (with $p = 0.3$ ), ReLU and $\tanh(\cdot)$ non-linearities are used in the MLP. The final clip representation is a concatenation of all modalities (see Fig. 3 left).
+
+Multi-label masking. As multiple interactions may occur at the same time or have overlapping temporal extents with other clips, we use masking to exclude negative contributions to the loss function by such labels. $\mathcal{O}_I(v)$ , the labels corresponding to the set of clips overlapping with $v$ , are created by checking for an overlap (IoU) greater than 0.2.
+
+Learning. We train our models with a batch size of 64, and use the Adam optimizer with a learning rate of 3e-5.
+
+# 4.2. Dataset
+
+We evaluate our approach on the MovieGraphs dataset [47]. The dataset provides detailed graph-based annotations of social situations for 7600 scenes in 51 movies. Two main types of interactions are present—detailed interactions (e.g. laughs at) last for a few seconds and are often a part of an overarching summary interaction (e.g. entertains) that may span up to a minute. We ignore this distinction for this work and treat all interactions in a similar manner. These hierarchical annotations are a common source of multiple labels being associated with the same timespan in the video.
+
+The total number of interactions is different from the number of p2p instances as some interactions involve multiple people. For example, in an interaction where a couple $(c_{j}$ and $c_{k})$ listens to their therapist $(c_{l})$ , two p2p instances are created: $c_{j} \rightarrow$ listens to $\rightarrow c_{l}$ and $c_{k} \rightarrow$ listens to $\rightarrow c_{l}$ .
+
+The dataset is partitioned into train (35 movies), validation (7 movies) and test (9 movies) splits. The train set consists of 15,516 interactions (and 20,426 p2p instances) and 2,676 pairs of people with annotated relationships. Validation and test sets have 3,992 and 5,380 p2p instances respectively, and about 600 relationship pairs each.
+
+Missing labels. A relationship label is available for $64\%$ of the interactions in which at least two people participate. For a pair of people associated with an interaction, both have track features for $76\%$ of the dataset. In other cases one or no characters appear due to failure in tracking or being out of the scene. For evaluation, we only consider samples that have a relationship, or when a pair of characters appear.
+
+Merging interaction and relationship labels. We reduce the number of interaction labels from 324 to 101, and relationships from 106 to 15 to mitigate severe problems of long tail with only 1-3 samples per class. However, the merging does not adversely affect the diversity of classes, e.g. reassures, wishes, informs, ignores are different interactions in our label set related to communication.
+
+We adopt a hierarchical approach to merge interactions. Firstly, all classes are divided into 4 categories: (i) informative or guiding (e.g. explains, proposes, assists, guide) (ii)
+
+| Modalities | Interaction Accuracy |
| Visual | Dialog | Tracks | Top-1 | Top-1 Soft | Top-5 |
| ✓ | - | - | 18.7 | 24.6 | 45.8 |
| - | ✓ | - | 22.4 | 30.1 | 50.6 |
| ✓ | ✓ | - | 25.0 | 31.9 | 54.8 |
| ✓ | ✓ | ✓ | 26.1 | 32.6 | 57.3 |
+
+Table 1: Interaction prediction accuracy for different modalities.
+
+involving movement (e.g. hits, plays, embraces, catches); (iii) neutral valence (e.g. avoids, pretends, reads, searches); and (iv) negative valence (e.g. scolds, mocks, steals, complains). Within each of the subclasses we merge interactions based on how similar their meanings are in common usage – this process is verified by multiple people.
+
+We also reduce the number of relationships to 15 major classes: stranger, friend, colleague, lover, enemy, acquaintance, ex-lover, boss, worker, manager, customer, knows-by-reputation, parent, child and sibling.
+
+Directed interactions and relationships are used between one person to another. For example when a parent $\rightarrow$ informs $\rightarrow$ child, the opposite directed interaction from the child to their parent can be listens to or ignores. Additionally, interactions and relationships can also be bidirectional, both people act with the same intention e.g. lovers kiss each other.
+
+# 4.3. Predicting Interactions and Relationships
+
+We first present results for predicting interactions and relationships separately, followed by our joint model.
+
+Interaction classification. We analyze the influence of each modality for interaction classification separately in Table 1. Dialogs have a stronger impact on model performance as compared to visual features owing to the prevalence of conversation based interactions in movies. However, both modalities are complementary and when taken together provide a $2.6\%$ increase in accuracy. As expected, combining all modalities including tracks for each participating character provide the highest prediction accuracy at $26.1\%$ .
+
+Apart from accuracy, we report soft accuracy, a metric that treats a prediction as correct when it matches any of the interactions overlapping with the clip, i.e. $\hat{a} \in a^{*} \cup \mathcal{O}_{I}(v)$ . When using all modalities, we achieve $32.6\%$ accuracy.
+
+In Fig. 4 we see two example interactions that are challenging to predict based on visual cues alone. In the top example, we see that the ground-truth label reads is emphasized, possibly due to the dialog mentioning letters, and is chosen with highest score upon examining the visual tracks. The bottom example is an interesting case where no dialog (all 0 vector) helps predictions. In this case, our model seems to have learned that leaving corresponds to walking without any dialog. Again, by including information about tracks, our model is able to predict the correct label.
+
+We also investigate the influence of different temporal feature aggregation methods in Table 4. Max-pooling outper
+
+
+Figure 4: Influence of different modalities on interaction prediction performance. In each example, we show the top 5 interactions predicted by the visual cues (left), the visual + dialog cues (center), and visual + dialog + track information (right). The correct label is marked with a green bounding rectangle. Discussion in Sec. 4.3.
+
+forms both average and sum as it allows to form the clip-level representations including the most influential segments.
+
+Relationship classification. Relationships are often consistent for long durations in a movie. For example, strangers do not become friends in one moment, and parents always stay parents. We hypothesize that it is challenging to predict a relationship by watching one interaction, and show the impact of varying the number of clips (size of $V$ ) in Fig. 5. We see that the relationship accuracy improves steadily as we increase the number of clips. The drop at 6 clips is within variance. We choose 18 clips as a trade-off between performance and speed. During training, we randomly sample up to 18 clips for the same pair of people having the same relationship. At test time, the clips are fixed and uniformly distributed along all occurrences of pairs of character.
+
+Joint prediction for interactions and relationships. We set the loss trade-off parameter $\lambda = 1.5$ and jointly optimize the network to predict interactions and relationships. We evaluate different options on how the two tasks are modeled
+
+
+Figure 5: Relationship accuracy increases as we analyze more clips. We choose 18 clips as a trade-off between performance and speed.
+
+| Task | Random | Int. only | Rel. only | Joint |
| Interaction | 0.99 | 26.1 | - | 26.3 |
| Relationship | 6.67 | - | 26.8 | 28.1 |
+
+Table 2: Top-1 accuracy for the joint prediction of Int. and Rel.
+
+| Method | Int. | Rel. |
| Rel. ↔ Int. | 25.3 | 26.8 |
| Rel. ← Int. | 26.3 | 25.9 |
| Rel. → Int. | 26.3 | 28.1 |
+
+| Method | Int. |
| avg | 24.2 |
| sum | 25.4 |
| max | 26.1 |
+
+Table 3: Different architectures for joint modeling of interactions and relationships.
+Table 4: Impact of temporal aggregation methods on interaction accuracy.
+
+| Supervision | Negatives | Multinom. Sampling | Int. | Accuracy Character | Joint |
| Random | - | - | 0.99 | 15.42 | 0.15 |
| Full | sum | - | 25.5 | 55.0 | 14.2 |
| Weak | sum | - | 18.9 | 20.0 | 4.6 |
| Weak | sum | ✓ | 25.1 | 25.0 | 7.8 |
| Weak | sum-max | ✓ | 23.0 | 32.3 | 8.2 |
+
+Table 5: Joint prediction of interactions and character pairs for fully and weakly supervised settings. See Sec. 4.4 for a discussion.
+
+jointly in Table 3. Overall, concatenating relationship feature for predicting interactions performs best (Rel. $\rightarrow$ Int.). Table 2 shows that the relationship accuracy improves by $1.3\%$ , while interactions gain a meagre $0.2\%$ .
+
+On further study, we observe that some interactions achieve large improvements, while others see a drop in performance. For example, interactions such as hugs $(+17\%)$ , introduces $(+14\%)$ , and runs $(+12\%)$ , are associated with specific relationships: siblings, child, lover with hugs; enemy, lover with runs. On the other hand, a few other interactions such as talks to, excuses, greets, informs, yells see a drop in performance from $1 - 8\%$ , perhaps as they have the same top-3 relationships: friend, colleague, stranger.
+
+Relationships show a similar trend. Sibling, acquaintance, lover correspond to specific interactions such as hugs, greets, kisses and improve by $11\%$ , $8\%$ , and $7\%$ respectively. While boss and manager have rather generic interactions asks, orders, explains and reduce by $5 - 7\%$ .
+
+We observe that joint learning does helps improve performance. However, interactions performed by people with common relationships, or relationships that exhibit common interactions are harder for our joint model to identify leading to small overall improvement. We believe this is made harder due to the long tail classes.
+
+# 4.4. Localizing Characters
+
+We present an evaluation of character localization and interaction prediction in Table 5. We report interaction
+
+
+Figure 6: Example for joint prediction of interaction (Int), relationship (Rel), and character pair (Char) by our model. The visual clip, dialog, and possible track pairs are presented on the left. Given 2 pieces of information, we are able to answer the third: Who? Int + Rel → Char; Doing what? Char + Rel → Int; and What relationship? Char + Int → Rel. We can also jointly predict all three components by maximizing scores along all dimensions of the 3D tensor. Best seen on screen with zoom.
+
+| Supervision | Negatives | Multinom. Sampling | Int. | Accuracy |
| Rel. | Char. | Joint |
| Random | - | - | 0.99 | 6.67 | 15.42 | 0.01 |
| Full | sum | - | 25.8 | 16.6 | 88.3 | 2.71 |
| Weak | sum | ✓ | 25.8 | 12.0 | 42.0 | 0.86 |
| Weak | sum-max | ✓ | 20.8 | 21.8 | 33.9 | 2.14 |
+
+accuracy given the correct character pair; character pair prediction accuracy given the correct interaction; and the overall accuracy as joint.
+
+Training with full supervision. In the case when the pair of characters are known (ground-truth pair $p^*$ is given), we achieve 25.5% accuracy for interactions. This is comparable to the setting where we only predict interactions (at 26.1%). We believe that the difference is due to our goal to maximize the score for the correct interaction and character pair over the entire matrix $|\mathcal{P}_M| \times |\mathcal{A}|$ . The joint accuracy is 14.2%, significantly higher than random at 0.15%.
+
+Training with weak supervision. Here, interaction labels are applicable at the clip-level, and we are unaware of which characters participate in the interaction even during training. Table 5 shows that sampling a character pair is better than arg max in Eq. 9 (4.6% vs. 7.8% joint accuracy) as it prevents the model from getting stuck at a particular selection. Furthermore, switching training from sum over all negatives to hard negatives (sum-max) after a burn-in period of 20 epochs further improves accuracy to 8.2%.
+
+Joint character localization, interaction and relationship prediction is presented in Table 6. In the case of learning with GT character pairs (fully supervised), including learning of relationships boosts accuracy for predicting character pairs to an impressive $88.3\%$ . The interaction accuracy also
+
+Table 6: Joint interaction, relationship, and character pair prediction accuracy. Other labels are provided when predicting columns: Int., Rel., and Char. See Sec. 4.4 for a discussion.
+
+| All methods | Supervision | Accuracy |
| Int. | Rel. | Char. | Joint |
| Int only | - | 20.7 | - | - | - |
| Rel only | - | - | 22.4 | - | - |
| Int + Rel | - | 20.7 | 20.5 | - | - |
| Int + Char | Full | 19.7 | - | 52.8 | 11.1 |
| Int + Char | Weak | 17.9 | - | 29.7 | 6.34 |
| Int + Rel + Char | Full | 20.0 | 18.6 | 88.8 | 2.29 |
| Int + Rel + Char | Weak | 15.6 | 29.6 | 21.6 | 1.50 |
+
+Table 7: Evaluation on the test set. The columns Int., Rel, and Char refer to interaction, relationship, and character pair prediction accuracy. During joint learning with full/weak supervision, individual accuracies are reported when other labels are given.
+
+increases to $25.8\%$ as compared against $25.5\%$ when training without relationships (Table 5).
+
+When learning with weak labels, we see similar trends as before. Both multinomial sampling and switching from all (sum) to hard (sum-max) negatives improves the joint accuracy to a respectable $2.14\%$ as compared to $2.71\%$ with full supervision. Fig. 6 shows an example prediction from our dataset. We present joint prediction when no information is provided in part d in contrast to parts a, b, c where two of three pieces of information are given.
+
+Test set. Table 7 compiles results of all our models on the test set. We see similar trends, apart from a drop in relationship accuracy due to different val and test distributions.
+
+Overall, we observe that learning interactions and relationships jointly helps improve performance, especially for classes that have unique correspondences, but needs further work on other categories. Additionally, character localization is achievable and we can train models with weak labels without significant drop in performance.
+
+# 5. Conclusion
+
+We presented new tasks and models to study the interplay of interactions and relationships between pairs of characters in movies. Our neural architecture efficiently encoded multimodal information in the form of visual clips, dialog, and character pairs that were demonstrated to be complementary for predicting interactions. Joint prediction of interactions and relationships was found to be particularly beneficial for some classes. We also presented an approach to localize character pairs given their interaction/relationship labels at a clip-level, i.e. without character-level supervision during training. We will share modifications made to the MovieGraphs dataset to promote future work in this exciting area of improving understanding of human social situations.
+
+Acknowledgements. This project was partially supported by the Louis Vuitton - ENS Chair on Artificial Intelligence and the French government under Agence Nationale de la Recherche as part of "Investissements d'venir" program, reference ANR-19-P3IA-0001 (PRAIRIE 3IA Institute).
+
+# References
+
+[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 preprint arXiv:1609.08675, 2016.
+[2] Jean-Baptiste Alayrac, Piotr Bojanowski, Nishant Agrawal, Ivan Laptev, Josef Sivic, and Simon Lacoste-Julien. Unsupervised learning from narrated instruction videos. In CVPR, 2016.
+[3] Timur Bagautdinov, Alexandre Alahi, Francois Fleuret, Pascal Fua, and Silvio Savarese. Social Scene Understanding: End-To-End Multi-Person Action Localization and Collective Activity Recognition. In CVPR, 2017.
+[4] Daphne B. Burgental. Acquisition of the Algorithms of Social Life: A Domain-Based Approach. Psychological Bulletin, 126(2):187-219, 2000.
+[5] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017.
+[6] Paola Cascante-Bonilla, Kalpathy Sitaraman, Mengjia Luo, and Vicente Ordonez. Moviescope: Large-scale analysis of movies using multiple modalities. ArXiv, abs/1908.03180, 2019.
+[7] Dima Damen, Hazel Doughty, Giovanni Maria Farinella, Sanja Fidler, Antonino Furnari, Evangelos Kazakos, Davide Moltisanti, Jonathan Munro, Toby Perrett, Will Price, and Michael Wray. Scaling Egocentric Vision: The EPIC-KITCHENS Dataset. In ECCV, 2018.
+[8] Zhiwei Deng, Arash Vahdat, Hexiang Hu, and Greg Mori. Structure inference machines: Recurrent neural networks for analyzing relations in group activity recognition. In CVPR, 2016.
+[9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
+[10] Abhinav Dhall, Roland Goecke, Jyoti Joshi, Michael Wagner, and Tom Gedeon. Emotion recognition in the wild challenge 2013. In International Conference on Multimodal Interactions, 2013.
+[11] Ali Diba, Mohsen Fayyaz, Vivek Sharma, Manohar Paluri, Jurgen Gall, Rainer Stiefelhagen, and Luc Van Gool. Holistic large scale video understanding. arXiv preprint arXiv:1904.11451, 2019.
+[12] Fartash Faghri, David J. Fleet, Jamie Ryan Kiros, and Sanja Fidler. VSE++: Improving Visual-Semantic Embeddings with Hard Negatives. In BMVC, 2018.
+[13] Lifeng Fan, Wenguan Wang, Siyuan Huang, Xinyu Tang, and Song-Chun Zhu. Understanding human gaze communication by spatio-temporal graph reasoning. In CVPR, 2019.
+[14] Andrew C Gallagher and Tsuhan Chen. Understanding images of groups of people. In CVPR, 2009.
+[15] Rohit Girdhar, Joao Carreira, Carl Doersch, and Andrew Zisserman. Video action transformer network. In CVPR, 2019.
+
+[16] Rohit Girdhar, Deva Ramanan, Abhinav Gupta, Josef Sivic, and Bryan Russell. ActionVLAD: Learning spatio-temporal aggregation for action classification. In CVPR, 2017.
+[17] Arushi Goel, Keng Teck Ma, and Cheston Tan. An end-to-end network for generating social relationship graphs. In CVPR, 2019.
+[18] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fruend, Peter Yianilos, Moritz Mueller-Freitag, et al. The “something something” video database for learning and evaluating visual common sense. In ICCV, 2017.
+[19] Chunhui Gu, Chen Sun, David A Ross, Carl Vondrick, Caroline Pantofaru, Yeqing Li, Sudheendra Vijayanarasimhan, George Toderici, Susanna Ricco, Rahul Sukthankar, et al. Ava: A video dataset of spatio-temporally localized atomic visual actions. In CVPR, 2018.
+[20] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imagenet? In CVPR, 2018.
+[21] R. A. Hinde. Interactions, Relationships and Social Structure. Man, 11(1):1-17, 1976.
+[22] SouYoung Jin, Hang Su, Chris Stauffer, and Erik Learned-Miller. End-to-end Face Detection and Cast Grouping in Movies using ErdsRnyi Clustering. In ICCV, 2017.
+[23] Kyung-Min Kim, Min-Oh Heo, Seong-Ho Choi, and Byoung-Tak Zhang. PororoQA: A Cartoon Video Series Dataset for Story Understanding. In NIPS Workshop on Large Scale Computer Vision Systems, 2016.
+[24] Hilde Kuehne, Hueihan Jhuang, Estibaliz Garrote, Tomaso Poggio, and Thomas Serre. HMDB: A Large Video Human Motion Recognition. In ICCV, 2011.
+[25] Anna Kukleva, Hilde Kuehne, Fadime Sener, and Jurgen Gall. Unsupervised learning of action classes with continuous temporal embedding. In CVPR, 2019.
+[26] Ivan Laptev and Tony Lindeberg. Space-time Interest Points. In ICCV, 2003.
+[27] Benjamin Laxton, Jongwoo Lim, and David Kriegman. Leveraging temporal, contextual and ordering constraints for recognizing complex activities in video. In CVPR, 2007.
+[28] Jie Lei, Licheng Yu, Mohit Bansal, and Tamara L Berg. TVQA: Localized, Compositional Video Question Answering. In EMNLP, 2018.
+[29] Junnan Li, Yongkang Wong, Qi Zhao, and Mohan S Kankanhalli. Dual-glance model for deciphering social relationships. In CVPR, 2017.
+[30] Xinchen Liu, Wu Liu, Meng Zhang, Jingwen Chen, Lianli Gao, Chenggang Yan, and Tao Mei. Social relation recognition from videos via multi-scale spatial-temporal reasoning. In CVPR, 2019.
+[31] Jinna Lv, Wu Liu, Lili Zhou, Bin Wu, and Huadong Ma. Multi-stream Fusion Model for Social Relation Recognition from Videos. In International Conference on Multimedia Modeling, 2018.
+[32] Manuel J Marin-Jimenez, Vicky Kalogeiton, Pablo Medina-Suarez, and Andrew Zisserman. Léo-net: revisiting people looking at each other in videos. In CVPR, 2019.
+
+[33] Antoine Miech, Ivan Laptev, and Josef Sivic. Learnable pooling with context gating for video classification. arXiv:1706.06905, 2017.
+[34] Mathew Monfort, Alex Andonian, Bolei Zhou, Kandan Ramakrishnan, Sarah Adel Bargal, Tom Yan, Lisa Brown, Quanfu Fan, Dan Gutfruend, Carl Vondrick, and Aude Oliva. Moments in time dataset: one million videos for event understanding. PAMI, 2019.
+[35] Arsha Nagrani and Andrew Zisserman. From Benedict Cumberbatch to Sherlock Holmes: Character Identification in TV series without a Script. In BMVC, 2017.
+[36] Alonso Patron, Marcin Marszalek, Andrew Zisserman, and Ian Reid. High five: Recognising human interactions in tv shows. In BMVC, 2010.
+[37] Anna Rohrbach, Atousa Torabi, Marcus Rohrbach, Niket Tandon, Chris Pal, Hugo Larochelle, Aaron Courville, and Bernt Schiele. Movie description. *IJCV*, 2017.
+[38] Fadime Sener and Angela Yao. Unsupervised learning and segmentation of complex activities from video. In CVPR, 2018.
+[39] Zheng Shou, Jonathan Chan, Alireza Zareian, Kazuyuki Miyazawa, and Shih-Fu Chang. Cdc: Convolutional-deconvolutional networks for precise temporal action localization in untrimmed videos. In CVPR, 2017.
+[40] Richard Socher, Danqi Chen, Christopher D Manning, and Andrew Ng. Reasoning with neural tensor networks for knowledge base completion. In NIPS, 2013.
+[41] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild. arXiv:1212.0402, 2012.
+[42] Chen Sun, Abhinav Shrivastava, Carl Vondrick, Kevin Murphy, Rahul Sukthankar, and Cordelia Schmid. Actor-centric relation network. In ECCV, 2018.
+[43] Qianru Sun, Bernt Schiele, and Mario Fritz. A domain based approach to social relation recognition. In CVPR, 2017.
+[44] Makarand Tapaswi, Martin Buml, and Rainer Stiefelhagen. "Knock! Knock! Who is it?" Probabilistic Person Identification in TV series. In CVPR, 2012.
+
+[45] Makarand Tapaswi, Marc T. Law, and Sanja Fidler. Video Face Clustering with Unknown Number of Clusters. In ICCV, 2019.
+[46] Makarand Tapaswi, Yukun Zhu, Rainer Stiefelhagen, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. Movieqa: Understanding stories in movies through question-answering. In CVPR, 2016.
+[47] Paul Vicol, Makarand Tapaswi, Lluis Castrejon, and Sanja Fidler. Moviegraphs: Towards understanding human-centric situations from videos. In CVPR, 2018.
+[48] Heng Wang and Cordelia Schmid. Action Recognition with Improved Trajectories. In ICCV, 2013.
+[49] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In ECCV, 2016.
+[50] Chao-Yuan Wu, Christoph Feichtenhofer, Haoqi Fan, Kaiming He, Philipp Krahenbuhl, and Ross Girshick. Long-term feature banks for detailed video understanding. In CVPR, 2019.
+[51] Huijuan Xu, Abir Das, and Kate Saenko. R-c3d: Region convolutional 3d network for temporal activity detection. ICCV, 2017.
+[52] Amir Zadeh, Michael Chan, Paul Pu Liang, Edmund Tong, and Louis-Philippe Morency. Social-IQ: A Question Answering Benchmark for Artificial Social Intelligence. In CVPR, 2019.
+[53] Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From Recognition to Cognition: Visual Commonsense Reasoning. In CVPR, 2019.
+[54] Ning Zhang, Manohar Paluri, Yaniv Taigman, Rob Fergus, and Lubomir Bourdev. Beyond Frontal Faces: Improving Person Recognition Using Multiple Cues. In CVPR, 2015.
+[55] Yubo Zhang, Pavel Tokmakov, Cordelia Schmid, and Martial Hebert. A Structured Model For Action Detection. In CVPR, 2019.
+[56] Henry Zhou, Makarand Tapaswi, and Sanja Fidler. Now You Shake Me: Towards Automatic 4D Cinema. In CVPR, 2018.
\ No newline at end of file
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/images.zip b/learninginteractionsandrelationshipsbetweenmoviecharacters/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a0060429ff1182159b4a077ee9117e5df29e06ca
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:287e44cfe240d55da3e034548f0955db206f2091b88f275852d474244168eaef
+size 505550
diff --git a/learninginteractionsandrelationshipsbetweenmoviecharacters/layout.json b/learninginteractionsandrelationshipsbetweenmoviecharacters/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8571e0450da56230271d2564dd9bd57410d04139
--- /dev/null
+++ b/learninginteractionsandrelationshipsbetweenmoviecharacters/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c87a24efa13d97892108f5f510cfbdae2c946f61e1b6c13d9c7c0537350634e0
+size 460252
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_content_list.json b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..94fcdaf159013f7b4ed8e8b670821eb0117f5927
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3efbe3f11435247c567ea45ab52b7059fee550d6ab6af016595e067175d614f8
+size 81837
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_model.json b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1b32b9698e0b5f8e68528d697bd2b5c33d64a58d
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:633804fb4b92ea9f4ab300da09fe69a1a55fbd09bd66622c12cbbe7b7cf3d213
+size 103682
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_origin.pdf b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6bf95567fccc8a9ee58350f838ba1dc7dd5a26a6
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/01c383d9-e4ad-452c-a911-9f161bb06dbc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed4082cc0cbe2386581f8e058592087e5686b982196fe98ffc21ea09888aef4c
+size 4139859
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/full.md b/learninginvariantrepresentationforunsupervisedimagerestoration/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ec45e346751355cfb4731e3360c1bcb71e36f53e
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/full.md
@@ -0,0 +1,449 @@
+# Learning Invariant Representation for Unsupervised Image Restoration
+
+Wenchao Du, Hu Chen†, Hongyu Yang
+College of Computer Science, Sichuan University, Chengdu 610065, China
+
+Wenchaodu.scu@gmail.com, huchen@scu.edu.cn, yanghongyu@scu.edu.cn
+
+# Abstract
+
+Recently, cross domain transfer has been applied for unsupervised image restoration tasks. However, directly applying existing frameworks would lead to domain-shift problems in translated images due to lack of effective supervision. Instead, we propose an unsupervised learning method that explicitly learns invariant presentation from noisy data and reconstructs clear observations. To do so, we introduce discrete disentangling representation and adversarial domain adaption into general domain transfer framework, aided by extra self-supervised modules including background and semantic consistency constraints, learning robust representation under dual domain constraints, such as feature and image domains. Experiments on synthetic and real noise removal tasks show the proposed method achieves comparable performance with other state-of-the-art supervised and unsupervised methods, while having faster and stable convergence than other domain adaptation methods. Code has been released.
+
+# 1. Introduction
+
+Image restoration (IR) attempts to reconstruct clean signals from their corrupted observations, which is known to be an ill-posed inverse problem. By accommodating different types of corruption distributions, the same mathematical model applies to problems such as image denoising, super-resolution and deblurring. Recently, deep neural networks (DNNs) and generative adversarial networks (GANs) [10] have shown their superior performance in various low-level vision tasks. Nonetheless, most of these methods need paired training data for specific tasks, which limits their generality, scalability and practicality in real-world multimedia applications. In addition, strong supervision may suffer from the overfitting training and lower generalization to real image corruption types.
+
+More recently, the domain transfer based unsupervised learning methods have attracted lots of attention due to the great progress [9, 18, 20, 21, 40] achieved in style transfer, attribute editing and image translation, e.g., CycleGAN
+
+
+(a) Input
+
+
+(b) CycleGAN
+
+
+(c) UNIT
+Figure 1: The typical results for Gaussian Noise. Our method has better ability on noise removal and texture preservation than other domain-transfer methods.
+
+
+(d) Ours
+
+[40], UNIT [21] and DRIT [18]. Although these methods have been expanded to specific restoration tasks, they could not reconstruct the high-quality images due to losing finer details or inconsistency backgrounds, as shown in Fig. 1. Different from DNNs based supervised models, which aim at learning a powerful mapping between the noisy and clean images. Directly applying existing domain-transfer methods is unsuitable for generalized image inverse problems due to the following reasons:
+
+- Indistinct Domain Boundary. Image translation aims to learn abstract shared-representations from unpaired data with clear domain characteristics, such as horse-to-zebra, day-to-night, etc. On the contrary, varying noise levels and complicated backgrounds blur domain boundaries between unpaired inputs.
+- Weak Representation. Unsupervised domain-adaption methods extract high-level representations from unpaired data by shared-weight encoder and explicit target domain discriminator. For slight noisy signals, it is easy to cause domain shift problems in translated images and lead to low-quality reconstruction.
+- Poor Generalization. Image translation learns a domain mapping from one-to-one image, which hardly captures the generalized semantic and texture representations. This also exacerbates the instability of GAN.
+
+In order to address these problems, inspired by image sparse representation [24] and domain adaption [7, 8], we
+
+attempt to learn invariant representation from unpaired samples via domain adaption and reconstruct clean images instead of relying on pure unsupervised domain transfer. Different from general image translation methods [18, 21, 40], our goal is to learn robust intermediate representation free of noise (referred to as Invariant Representation) and reconstruct clean observations. Specifically, to achieve this goal, we factorize content and noise representations for corrupted images via disentangled learning; then a representation discriminator is utilized to align features to the expected distribution of clean domain. In addition, the extra self-supervised modules, including background and semantic consistency constraints, are used to supervise representation learning from image domains further.
+
+In short, the main contributions of the paper could be summarized as follows: 1) Propose an unsupervised representation learning method for image restoration based on data-driven, which is easily expanded to other low-level vision tasks, such as super-resolution and deblurring. 2) Disentangle deep representation via dual domain constraints, i.e., feature and image domains. Extra self-supervised modules, including semantic meaning and background consistency modules, further improve the robustness of representations. 3) Build an unsupervised image restoration framework based on cross domain transfer with more effective training and faster convergence speed. To our knowledge, this is the first unsupervised representation learning approach that achieves competing results for processing synthetic and real noise removal with end-to-end training.
+
+# 2. Related Work
+
+# 2.1. Single Image Restoration
+
+Traditional Methods. Classical methods, containing Total Variation [29, 34], $BM3D$ [5], Non-local mean [2] and dictionary learning [3, 12], have achieved good performance on general image restoration tasks, such as image denoising, super-resolution and deblurring. In addition, considering that image restoration is in general an ill-posed problem, some methods based on regularization are also proved effective [11, 42].
+
+Deep Neural Networks. Relying on powerful computer sources, data-driven DNN methods have achieved better performance than traditional methods in the past few years. Vincent et al. [35] proposed stacked denoising auto-encoder for image restoration. Xie et al. [36] combined sparse coding and pre-trained DNN for image denoising and inpainting. Mao et al. [26] proposed RedNet with symmetric skip connections for noise removal and super-resolution. Zhang et al. [39] introduced residual learning for Gaussian noise removal. In general, $DNNs$ -based methods could realize superior results on synthetic noise removal via effective supervised training, but it is unsuitable for real-world applica
+
+tions.
+
+# 2.2. Unsupervised Learning for IR
+
+Learning from noisy observations. One interesting direction for unsupervised IR is directly recovering clean signals from noisy observations. Dmitry et al. [32] proposed deep image prior (DIP) for IR, which requires suitable networks and interrupts its training process based on low-level statistical prior. That is usually unpredictable for different samples. Via zero-mean noise distribution prior, Noise2Noise $(N2N)$ [19] directly learns reconstruction between two images with independent noise sampling. That is unsuitable for noise removal in real-world, e.g., medical image denoising. To alleviate this problem, Noise2Void [17] predicted a pixel from its surroundings by learning a blind-spot network for corrupted images. Similar to Noise2Self [1], this method reduces the training efficiency, but also decreases the denoising performance.
+
+Image Domain Transfer. Another direction solves image restoration by domain transfer, which aims to learn one2one mapping from one domain to another and output image to lie on the manifold of clean image. Previous works, e.g., CycleGAN [40], DualGAN [37] and BicycleGAN [41] have shown great capacity in image translation. Expanding works, containing CouplesGAN [22], UNIT [21] and DRIT [18] learn shared-latent representation for diverse image translation. Along this way, Yuan et al. [38] proposed a nested CycleGAN to solve the unsupervised image super-resolution. Expanding DRIT, Lu et al. [23] decoupled image content domain and blur domain to solve image deblurring, referred to as DRNet. However, these methods aim to learn stronger domain generators, they require obvious domain boundary and complicated network structure.
+
+# 3. The Proposed Method
+
+Our goal is to learn abstract intermediate representations from noise inputs and reconstruct clear observations. In a certain way, unsupervised IR could be viewed as a specific domain transfer problem, i.e., from noise domain to clean domain. Therefore, the method is injected into the general domain transfer architecture, as shown in Fig. 2.
+
+In supervised domain transfer, we are given samples $(x,y)$ drawn from a joint distribution $P_{\mathcal{X},\mathcal{Y}}(x,y)$ , where $\mathcal{X}$ and $\mathcal{Y}$ are two image domains. For unsupervised domain translation, samples $(x,y)$ are drawn from the marginal distributions $P_{\mathcal{X}}(x)$ and $P_{\mathcal{Y}}(y)$ . In order to infer the joint distribution from the marginal samples, a shared-latent space assumption is proposed that there exists a shared latent code $z$ in a shared-latent space $\mathcal{Z}$ , so that we can recover both images from this code. Given samples $(x,y)$ from the joint
+
+
+(a)
+
+
+(b)
+Figure 2: Method Overview. (a) The latent space assumption. Proposed method aims to learn invariant representations from inputs and align them via adversarial domain adaption. (b) Our method is injected into general domain-transfer framework. Extra self-supervised modules are introduced to learn more robust representations.
+
+distribution, this process is presented by
+
+$$
+z = E _ {\mathcal {X}} (x) = E _ {\mathcal {Y}} (y) \tag {1}
+$$
+
+$$
+x = G _ {\mathcal {X}} (z), y = G _ {\mathcal {Y}} (z) \tag {2}
+$$
+
+A key step is how to implement this shared-latent space assumption. To do so, an effective strategy is sharing high-level representation by shared-weight encoder, which samples the features from the unified distribution. However, it is unsuitable for IR that latent representation only contains semantic meanings, which leads to domain shift in recovered images, e.g., blurred details and inconsistent backgrounds. Therefore, we attempt to learn more generalized representations containing richer texture and semantic features from inputs, i.e., invariant representations. To achieve it, adversarial domain adaption based discrete representation learning and self-supervised constraint modules are introduced into our method. Details are described in the subsections.
+
+# 3.1. Discrete Representation Learning
+
+Discrete representation aims to compute the latent code $z$ from inputs, where $z$ contains texture and semantic information as much as possible. To do so, we use two auto-encoders to model $\{E_{\mathcal{X}}, G_{\mathcal{X}}\}$ and $\{E_{\mathcal{Y}}, G_{\mathcal{Y}}\}$ separately. Given any unpaired samples $(x, y)$ , where $x \in \mathcal{X}$ and $y \in \mathcal{Y}$ separately denote noise and clean sample from different domains, Eq. 1 is reformulated as $z_{\mathcal{X}} = E_{\mathcal{X}}(x)$ and $z_{\mathcal{Y}} = E_{\mathcal{Y}}(y)$ . Further, IR could be represented as $F^{\mathcal{X} \to \mathcal{Y}}(x) = G_{\mathcal{Y}}(z_{\mathcal{X}})$ . However, considering noise always adheres to high-frequency signals, directly reconstructing clean images is difficult due to varying noise levels and types, which requires powerful domain generator and discriminator. Therefore, we introduce the disentangling representation into our architecture.
+
+Disentangling Representation. For noise sample $x$ , an extra noise encoder $E_{\mathcal{X}}^{N}$ is used to model varying noisy levels and types. The self-reconstruction is formulated by $x = G_{\mathcal{X}}(z_{\mathcal{X}}, z_{\mathcal{X}}^{N})$ , where $z_{\mathcal{X}} = E_{\mathcal{X}}(x)$ and $z_{\mathcal{X}}^{N} = E_{\mathcal{X}}^{N}(x)$ . Assuming the latent codes $z_{\mathcal{X}}$ and $z_{\mathcal{Y}}$ obey same distribution in shared-space that $\{z_{\mathcal{X}}, z_{\mathcal{Y}}\} \in \mathcal{Z}$ , similar to image translation, unsupervised image restoration could be divided into two stages: forward translation and back reconstruction.
+
+Forward Cross Translation. We first extract the representations $\{z_{\mathcal{X}}, z_{\mathcal{Y}}\}$ from $(x, y)$ and extra noise code $z_{\mathcal{X}}^{N}$ . Restoration and degradation could be represented by
+
+$$
+\tilde {x} ^ {\mathcal {X} \rightarrow \mathcal {Y}} = G _ {\mathcal {Y}} (z _ {\mathcal {X}}) \tag {3}
+$$
+
+$$
+\tilde {y} ^ {\mathcal {Y} \rightarrow \mathcal {X}} = G _ {\mathcal {X}} \left(z _ {\mathcal {Y}} \oplus z _ {\mathcal {X}} ^ {N}\right) \tag {4}
+$$
+
+where $\tilde{x}^{\mathcal{X}\rightarrow \mathcal{Y}}$ represents the recovered clean sample, $\tilde{y}^{\mathcal{Y}\rightarrow \mathcal{X}}$ denotes the degraded noise sample. $\oplus$ represents channelwise concatenation operation. $G_{\mathcal{X}}$ and $G_{\mathcal{Y}}$ are viewed as specific domain generators.
+
+Backward Cross Reconstruction. After performing the first translation, reconstruction could be achieved by swapping the inputs $\tilde{x}^{\mathcal{X}\rightarrow \mathcal{Y}}$ and $\tilde{y}^{\mathcal{Y}\rightarrow \mathcal{X}}$ that:
+
+$$
+\hat {x} = G _ {\mathcal {X}} \left(E _ {\mathcal {Y}} \left(\tilde {x} ^ {\mathcal {X} \rightarrow \mathcal {Y}}\right) \oplus E _ {\mathcal {X}} ^ {N} \left(\tilde {y} ^ {\mathcal {Y} \rightarrow \mathcal {X}}\right)\right) \tag {5}
+$$
+
+$$
+\hat {y} = G _ {\mathcal {Y}} \left(E _ {\mathcal {X}} \left(\tilde {y} ^ {\mathcal {Y} \rightarrow \mathcal {X}}\right)\right) \tag {6}
+$$
+
+where $\hat{x}$ and $\hat{y}$ denote reconstructed inputs. To enforce this constraint, we add the cross-cycle consistency loss $\mathcal{L}^{CC}$ for $\mathcal{X}$ and $\mathcal{Y}$ domains:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathcal {X}} ^ {C C} \left(G _ {\mathcal {X}}, G _ {\mathcal {Y}}, E _ {\mathcal {X}}, E _ {\mathcal {Y}}, E _ {\mathcal {X}} ^ {N}\right) = \tag {7} \\ \mathbb {E} _ {\mathcal {X}} \left[ \| G _ {\mathcal {X}} \left(E _ {\mathcal {Y}} \left(\tilde {x} ^ {\mathcal {X} \rightarrow \mathcal {Y}}\right) \oplus E _ {\mathcal {X}} ^ {N} \left(\tilde {y} ^ {\mathcal {Y} \rightarrow \mathcal {X}}\right)\right) - x \| _ {1} \right] \\ \end{array}
+$$
+
+$$
+\mathcal {L} _ {\mathcal {Y}} ^ {C C} \left(G _ {\mathcal {X}}, G _ {\mathcal {Y}}, E _ {\mathcal {X}}, E _ {\mathcal {Y}}, E _ {\mathcal {X}} ^ {N}\right) =
+$$
+
+$$
+\mathbb {E} _ {\mathcal {Y}} \left[ \| G _ {\mathcal {Y}} (E _ {\mathcal {X}} (\tilde {y} ^ {\mathcal {Y} \rightarrow \mathcal {X}}) - y \| _ {1} \right]
+$$
+
+
+Figure 3: Background Consistency Module (BCM). BCM hierarchically uses $\mathcal{L}_1$ loss at different Gaussian-Blur levels to ensure the inputs and outputs have consistency background.
+
+Adversarial Domain Adaption. Another factor is how to embed latent representations $z_{\mathcal{X}}$ and $z_{\mathcal{Y}}$ into shared space. Inspired by unsupervised domain adaption, we implement it by adversarial learning instead of shared-weight encoder. Our goal is to facilitate representations from inputs obeying the similar distribution while preserving richer texture and semantic information of inputs. Therefore, a representation discriminator $D_{\mathcal{R}}$ is utilized in our architecture. We express this feature adversarial loss $\mathcal{L}_{adv}^{\mathcal{R}}$ as
+
+$$
+\mathcal {L} _ {a d v} ^ {\mathcal {R}} (E _ {\mathcal {X}}, E _ {\mathcal {Y}}, D _ {\mathcal {R}}) =
+$$
+
+$$
+\mathbb {E} _ {\mathcal {X}} \left[ \frac {1}{2} \log D _ {\mathcal {R}} \left(z _ {\mathcal {X}}\right) + \frac {1}{2} \log \left(1 - D _ {\mathcal {R}} \left(z _ {\mathcal {X}}\right)\right) \right] + \tag {9}
+$$
+
+$$
+\mathbb {E} _ {\mathcal {Y}} \left[ \frac {1}{2} \log D _ {\mathcal {R}} (z _ {\mathcal {Y}}) + \frac {1}{2} \log (1 - D _ {\mathcal {R}} (z _ {\mathcal {Y}})) \right]
+$$
+
+# 3.2. Self-Supervised Constraint
+
+Due to lack of effective supervised signals for translated images, only relying on feature domain discriminant constraints would lead to domain shift problems inevitably in generated images. To speed convergence while learn
+
+ing more robust representations, self-supervised modules including Background Consistency Module (BCM) and Semantic Consistency Module (SCM) are introduced to provide more reasonable and reliable supervision.
+
+$BCM$ aims to preserve the background consistency between the translated images and inputs. Similar strategies have been applied for self-supervised image reconstruction tasks [14, 28]. These methods use the gradient error to constrain reconstructed images by smoothing the input and output images with blur operators, e.g., Gaussian blur kernel and guided filtering [13]. Different from them, a $\mathcal{L}_1$ loss is directly used for the recovered images instead of gradient error loss in our module, as shown in Fig. 3, which is simple but effective to retain background consistency while recovering finer texture in our experiments. Specifically, a multiscale Gaussian-Blur operator is used to obtain multi-scale features respectively. Therefore, a background consistency loss $\mathcal{L}_{BC}$ could be formulated as:
+
+$$
+\mathcal {L} _ {B C} = \sum_ {\sigma = 5, 9, 1 5} \lambda_ {\sigma} \| B _ {\sigma} (\chi) - B _ {\sigma} (\tilde {\chi}) \| _ {1} \tag {10}
+$$
+
+where $B_{\sigma}(\cdot)$ denotes the Gaussian-Blur operator with blur kernel $\sigma$ , $\lambda_{\sigma}$ is the hyper-parameter to balance the errors at different Gaussian-Blur levels. $\chi$ and $\tilde{\chi}$ denote original input and the translated output, i.e., $\{x,\tilde{x}^{\mathcal{X}\rightarrow \mathcal{Y}}\}$ and $\{y,\tilde{y}^{\mathcal{Y}\rightarrow \mathcal{X}}\}$ . Based on experimental attempts at image denoising, we set $\lambda_{\sigma}$ as $\{0.25,0.5,1.0\}$ for $\sigma = \{5,9,15\}$ respectively.
+
+In addition, inspired by perception loss [15], the feature from the deeper layers of the pre-trained model contain semantic meanings only, which are noiseless or with little noise. Therefore, different from the general feature loss, which aims to recover finer image texture details via similarities among shallow features, we only extract deeper features as semantic representations from the corrupted and recovered images to keep consistency, referred to as semantic consistency loss $\mathcal{L}_{SC}$ . It could be formulated as
+
+$$
+\mathcal {L} _ {S C} = \left\| \phi_ {l} (\chi) - \phi_ {l} (\tilde {\chi}) \right\| _ {2} ^ {2} \tag {11}
+$$
+
+where $\phi (\cdot)$ denotes the features from $l_{th}$ layer of the pretrained model. In our experiments, we use the conv5-1 layer of VGG-19 [31] pre-trained network on ImageNet.
+
+# 3.3. Jointly Optimizing
+
+Other than proposed cross-cycle consistency loss, representation adversarial loss and self-supervised loss, we also use other loss functions in our joint optimization.
+
+Target Domain Adversarial Loss. We impose domain adversarial loss $\mathcal{L}_{adv}^{domain}$ , where $D_{X}$ and $D_{Y}$ attempt to discriminate the realness of generated images from each domain. For the noise domain, we define the adversarial loss
+
+
+Figure 4: The example results for Gaussian noise on BSD-68. Zooming in for better visualization.
+
+
+Table 1: Quantitative results for Gaussian noise reduction on BSD-68 dataset.
+
+$$
+\mathcal {L} _ {a d v} ^ {\mathcal {X}} \mathrm {a s}
+$$
+
+$$
+\mathcal {L} _ {a d v} ^ {\mathcal {X}} = \mathbb {E} _ {x \sim P _ {\mathcal {X}} (x)} \left[ \log D _ {\mathcal {X}} (x) \right] +
+$$
+
+$$
+\underset {x \sim P _ {\mathcal {X}} (x)} {\mathbb {E} _ {y \sim P _ {\mathcal {Y}} (y)}} \left[ \log \left(1 - D _ {\mathcal {X}} \left(G _ {\mathcal {X}} \left(E _ {\mathcal {Y}} (y), E _ {\mathcal {X}} ^ {N} (x)\right)\right)\right) \right] \tag {12}
+$$
+
+Similarly, we define adversarial loss for clean image domain as
+
+$$
+\mathcal {L} _ {a d v} ^ {\mathcal {Y}} = \mathbb {E} _ {y \sim P _ {\mathcal {Y}} (y)} [ \log D _ {\mathcal {Y}} (y) ] + \tag {13}
+$$
+
+$$
+\mathbb {E} _ {x \sim P _ {\mathcal {X}} (x)} [ \log (1 - D _ {\mathcal {Y}} (G _ {\mathcal {Y}} (E _ {\mathcal {X}} (x)))) ]
+$$
+
+Self-Reconstruction Loss. In addition to the cross-cycle reconstruction, we also apply a self-reconstruction loss $\mathcal{L}^{Rec}$ to facilitate the training. This process is represented as $\hat{x} = G_{\mathcal{X}}(E_{\mathcal{X}}(x)\oplus E_{\mathcal{X}}^{N}(x))$ and $\hat{y} = G_{\mathcal{Y}}(E_{\mathcal{Y}}(y))$
+
+KL Loss. In order to model the noise encoder branch, we add a KL divergence loss to regularize the distribution of the noise code $z_{\mathcal{X}}^{N} = E_{\mathcal{X}}^{N}(x)$ to be close to the normal distribution that $p(z_{\mathcal{X}}^{N}\sim N(0,1))$ , where $D_{KL} = -\int p(z)\log (\frac{p(z)}{q(z)})dz$ .
+
+The full objective function of our method is summarized
+
+as follows:
+
+$$
+\min _ {E _ {\mathcal {X}}, E _ {\mathcal {X}} ^ {N}, E _ {\mathcal {Y}}, G _ {\mathcal {X}}, G _ {\mathcal {Y}}} \max _ {D _ {\mathcal {X}}, D _ {\mathcal {Y}}, D _ {\mathcal {R}}} = \lambda_ {\mathcal {R}} \mathcal {L} _ {a d v} ^ {\mathcal {R}} +
+$$
+
+$$
+\lambda_ {a d v} \mathcal {L} _ {a d v} ^ {\text {d o m a i n}} + \lambda_ {C C} \mathcal {L} ^ {C C} + \lambda_ {r e c} \mathcal {L} ^ {R e c} + \tag {14}
+$$
+
+$$
+\lambda_ {b c} \mathcal {L} ^ {B C} + \lambda_ {s c} \mathcal {L} ^ {S C} + \lambda_ {K L} \mathcal {L} ^ {K L}
+$$
+
+where the hyper-parameters $\lambda_{*}$ control the importance of each term.
+
+Restoration: After learning, we only retain the cross encoder-generator network $\{E_{\mathcal{X}}, G_{\mathcal{Y}}\}$ , $E_{\mathcal{X}}$ extracts the domain-invariant representation $z_{\mathcal{X}}$ from corrupted sample $x$ , and $G_{\mathcal{Y}}$ recovers the clean image $\tilde{x}^{\mathcal{X} \rightarrow \mathcal{Y}}$ from the $z_{\mathcal{X}}$ that $\tilde{x}^{\mathcal{X} \rightarrow \mathcal{Y}} = G_{\mathcal{Y}}(E_{\mathcal{X}}(x))$ .
+
+# 4. Experiments
+
+In this section, we first give the implementation details of our method for classical image denoising. Traditional metrics, such as Peak-Signal-Noise-Rate (PSNR) and Structural Similarity (SSIM), are used for evaluation in experiments. Detailed results on synthetic and real noise removal tasks are shown with other state-of-the-art methods. For the synthetic noise removal, we start with general noise distributions including additive white Gaussian noise (AWGN)
+
+
+
+
+(30.73/0.94)
+
+
+(28.08/0.92)
+
+
+(28.06/0.91)
+
+
+(26.76/0.90)
+
+
+(31.81/0.96)
+
+
+(28.05/0.83)
+
+
+(PSNR/SSIM)
+Reference
+
+
+(31.67/0.91)
+ANSC
+Figure 5: Sample results from Kodak dataset. Best detail visualization by zooming in.
+
+
+(30.35/0.89)
+RedNet-30
+
+
+(30.28/0.89)
+N2N
+
+
+(30.04/0.87)
+DIP
+
+
+(33.87/0.95)
+Ours
+
+
+(28.49/0.81)
+
+| Method | PSNR(mean ± std) | SSIM (mean ± std) |
| DIP[32] | 27.63 ± 2.66 | 0.838 ± 0.07 |
| N2N[19] | 28.39 ± 2.04 | 0.893 ± 0.03 |
| ANSC[25] | 30.68 ± 1.81 | 0.918 ± 0.02 |
| RedNet-30[26] | 28.34 ± 2.07 | 0.893 ± 0.03 |
| Ours | 32.37 ± 1.55 | 0.957 ± 0.01 |
+
+Table 2: Quantitative results for Poisson noise.
+
+and Poisson noise. Two well-known datasets BSD68 [27] and Kodak are used to verify the performance of our method in denoising and texture restoration. Furthermore, the real noise images from the medical Low-Dose Computed Tomography (LDCT) dataset are used to evaluate the generalized capacity of the method. Extra ablation study is used to verify the effectiveness of the proposed framework.
+
+# 4.1. Implementation
+
+We follow the similar network architecture as the one used in [21], the difference is we introduce an extra noise encoder branch and remove the shared-weight encoder. Representation discriminator is a full convolutional network structure, which stacks four convolutional layers with two strides and a global average pooling layer. Proposed framework is implemented with Pytorch [30] and an Nvidia TITAN-V GPU is used in experiments. During the training, we use Adam [16] to perform optimization and momentum is set to 0.9. The learning rate is initially set to 0.0001 and exponential decay over the 10K iterators. In all experiments, we randomly crop $64 \times 64$ patches with batch size of 16 for training. Hyper-parameters are set to $\lambda_{\mathcal{R}} = \lambda_{adv}^{domain} = \lambda_{sc} = 1$ , $\lambda_{cc} = \lambda_{rec} = 10$ , $\lambda_{bc} = 5$ and
+
+$$
+\lambda_ {K L} = 0. 0 1.
+$$
+
+# 4.2. Synthetic Noise Removal
+
+We train the model with the images from the Pascal2007 [6] training set. Samples are randomly divided into two parts without coinciding. We add different noise-levels to each sample in part one, which is viewed as corrupted set, and another is clean set. Proposed method needs to estimate the magnitude of noise while removing it (blind image denoising). Some supervised and unsupervised based methods are selected to evaluate.
+
+AWGN Removal. We add the AWGN with zero mean and standard deviation randomly generated with ranges from 5 to 50 for each training example, test on BSD68 with $\sigma = \{25,35,50\}$ . The representative unsupervised methods, including DIP [32], Noise2Noise (N2N) [19], CycleGAN [40], UNIT [21] and DRNet [23], and supervised methods (e.g., RedNet-30 [26] and DnCNN [39]), are selected to compare the performance on image denoising. Traditional BM3D is also included for evaluation. For CycleGAN, UNIT and DRNet, we retrain them with the same training data.
+
+The visualized results from BSD68 dataset are given in Fig. 4. Although all the methods show the ability for noise reduction, domain transfer based unsupervised methods, including CycleGAN, UNIT and DRNet, have obvious domain shift problems, e.g., inconsistent brightness and undesired artifacts, resulting in worse visual perception. N2N and DIP achieve higher PSNR and SSIM. However, DIP loses fine local details and leads to over-smoothness in the generated images. Depending on the zero-mean distribution prior,
+
+$N2N$ achieves similar results with other supervised methods, such as RedNet-30 and DnCNN. Our approach presents comparable performance on noise removal and texture preserving. Although the PSNR is slightly lower than other supervised methods, our method achieves better visual consistency with natural images. Quantitative results for BSD68 are given in Table. 1. The proposed method shows stronger ability to blind image denoising.
+
+Poisson Noise Removal. For corrupted samples, we randomly generate the noise data from Scikit-image library [33], which generates independent Poisson noise by the number of unique values in the given samples, and test on Kodak1 dataset. Some representative methods, including DIP, N2N, ANSC [25] and RedNet-30, are selected in our evaluations.
+
+Comprehensive results are shown in Fig. 5 and Table. 2. $DIP$ tends to generate more blurred results. The traditional ANSC method first transforms the Poisson noise into Gaussian (Anscombe transform), then applies the $BM3D$ to remove noise, and finally inverts the transform, achieving higher PSNR and SSIM. Considering the different way of generating Poisson noise, the published RedNet-30 and N2N models dont achieve the best results. Our method achieves the highest PSNR and SSIM. In addition, visualized results also show that for slight noise signals, the proposed framework has better generalized capacity to remove noise while restoring finer details.
+
+# 4.3. Real Noise Removal
+
+X-ray computed tomography (CT) is widely used as important imaging modalities in modern clinical diagnosis. Considering the potential radiation risk to the patient, lowering the radiation dose increases the noise and artifacts in reconstructed images, which can compromise diagnostic information. Typically, noise in x-ray photon measurements can be simply modeled as the combination of Poisson quantum noise and Gaussian electronic noise. However, the noise in reconstructed images is more complicated and does not obey any statistical distribution across the whole image. Therefore, classical image post-processing methods based on noise statistic prior, e.g., $N2N$ , are unsuitable for Low-dose CT (LDCT) denoising.
+
+A real clinical dataset authorized by Mayo Clinic for the 2016 NIH-AAPM-Mayo Clinic Low Dose CT Grand Challenge $^{2}$ is used to evaluate LDCT image reconstruction algorithms, which contains 5936 images in $512 \times 512$ resolution from 10 different subjects. We randomly select 4000 images as training set, the remaining is as testing set. DIP, BM3D and RedCNN [4], which is an extended version of RedNet, are selected for evaluation in our experiments. The representative results are shown in Fig. 6, BM3D introduces
+
+
+Reference PSNR(SSIM)
+
+
+LDCT (24.42/0.87)
+
+
+BM3D (28.81/0.91)
+
+
+RedCNN (29.62/0.92)
+Figure 6: LDCT Reconstruction. The display window is [160, 240]HU. The red circle denotes ROI area.
+
+
+DIP (24.90/0.85)
+
+
+Ours (28.19/0.92)
+
+| Methods | PSNR | SSIM |
| LDCT | 36.3616 | 0.9423 |
| BM3D[5] | 40.6941 | 0.9755 |
| RedCNN[4] | 41.8799 | 0.9846 |
| DIP[32] | 36.2047 | 0.9500 |
| Ours | 40.5857 | 0.9811 |
+
+Table 3: Quantitative results on Mayo dataset.
+
+waxy artifacts into the reconstructed image. $DIP$ fails to generate the fine local structures. RedCNN tends to generate smoother images. Our approach achieves the better balance between visual quality and noise removal. Table. 3 gives the quantitative results.
+
+# 4.4. Ablation Study
+
+In this section, we perform an ablation study to analyze the effects of discrete disentangling representation and self-supervised modules in the proposed framework. Both quantitative and qualitative results on Gaussian noise removal are shown for the following three variants of the proposed method where each component is separately studied: a) Remove the noise encoder branch; b) Remove the representation adversarial network $D^{\mathcal{R}}$ , directly learn the representations $z_{\mathcal{X}}$ and $z_{\mathcal{Y}}$ by the target domain constraints only; c) Remove the background consistency constraint from self-supervised modules, only retain the semantic consistency constraints.
+
+The representative results are shown in Fig. 7. Compared with the full model, referred to as (d), directly learning invariant representations from noise images would lead to the generator producing over-smooth results for (a) due to unexpected noise contained in features, which requires
+
+
+
+
+Reference
+(PSNR/SSIM)
+Figure 7: The visualized results for each variants. (a) Without $E_{\mathcal{X}}^{N}$ . (b) Without $D_{\mathcal{R}}$ . (c) Removing BGM (d) Full model.
+
+
+
+
+(a)
+(27.29/0.8856)
+
+
+
+
+
+
+(29.54/0.9333)
+
+
+(b)
+
+
+
+
+(26.95/0.88)
+
+
+(c)
+
+
+
+
+(27.80/0.9348)
+
+
+(d)
+
+| Variants | PSNR(mean ± std) | SSIM (mean ± std) |
| (a) | 25.997 ± 1.50 | 0.828 ± 0.07 |
| (b) | 29.452 ± 1.71 | 0.913 ± 0.02 |
| (c) | 25.220 ± 1.62 | 0.817 ± 0.08 |
| (d) | 29.022 ± 1.93 | 0.917 ± 0.02 |
+
+Table 4: Quantitative results for Gaussian noise with $\sigma = 25$ on BSD-68.
+
+
+(a)
+Figure 8: Online training PSNR and SSIM during the 100k iterations.
+
+
+(b)
+
+a powerful domain generator. Although (b) gives the better PSNR and SSIM after removing the feature adversarial module, some undesired artifacts adhere to high-frequency signals. Due to failing to provide the effective self-supervised constraint for the recovered images, although retaining the semantic consistency module, the model (c) also produces domain shift problems in generated images, e.g., inconsistency brightness and blurred details, resulting in worse visual perception. Quantitative results are shown in Table. 4.
+
+In addition, considering DRNet [23] has similar archi
+
+tecture with ours, which extends DRIT [18] while introducing extra feature loss to solve image deblurring, we select it as a representative domain transfer method to compare the convergence of algorithms on denoising task. Fig. 8 gives the convergence plots for AWAN removal, where we trained two models from scratch on the same training set. Although DRNet also uses the similar idea of disentangled representation to solve image restoration, which is different from ours in essence. Varying noise-levels and types lead to unstable learning during training due to lack of clear domain boundary. Aiming to learn invariant representation, our method gives faster and more stable convergence plots.
+
+# 5. Conclusion
+
+In this paper, we propose an unsupervised learning method for image restoration. Specifically, we aim to learn invariant representations from noise data via disentangling representations and adversarial domain adaption. Aided by effective self-supervised constraints, our method could reconstruct the higher-quality images with finer details and better visual perception. Experiments on synthetic and real image denoising show our method achieves comparable performance with other state-of-the-art methods, and has faster and more stable convergence than other domain adaptation methods.
+
+# Acknowledge
+
+This work is supported by the National Natural Science Foundation of China under grant 61871277, and in part by the Science and Technology Project of Sichuan Province of China under grant 2019YFH0193.
+
+# References
+
+[1] Joshua Batson and Loic Royer. Noise2self: Blind denoising by self-supervision. In ICML, 2019.
+[2] Antoni Buades, Bartomeu Coll, and Jean-Michel Morel. A non-local algorithm for image denoising. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), 2:60-65 vol. 2, 2005.
+[3] Priyam Chatterjee and Peyman Milanfar. Clustering-based denoising with locally learned dictionaries. IEEE Transactions on Image Processing, 18:1438-1451, 2009.
+[4] Hu Chen, Yi Zhang, Mannudeep Kalra, Feng Lin, Yang Chen, Peixi Liao, Ji liu Zhou, and Ge Wang. Low-dose ct with a residual encoder-decoder convolutional neural network. IEEE Transactions on Medical Imaging, 36:2524-2535, 2017.
+[5] Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen O. Egiazarian. Image denoising by sparse 3-d transform-domain collaborative filtering. IEEE Transactions on Image Processing, 16:2080-2095, 2007.
+[6] Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International Journal of Computer Vision, 88:303-338, 2009.
+[7] Yaroslav Ganin and Victor S. Lempitsky. Unsupervised domain adaptation by backpropagation. ArXiv, abs/1409.7495, 2014.
+[8] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor S. Lempitsky. Domain-adversarial training of neural networks. J. Mach. Learn. Res., 17:59:1-59:35, 2015.
+[9] Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2414-2423, 2016.
+[10] Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014.
+[11] Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. 2014 IEEE Conference on Computer Vision and Pattern Recognition, pages 2862-2869, 2014.
+[12] Shuhang Gu, Wangmeng Zuo, Qi Xie, Deyu Meng, Xiangchu Feng, and Lei Zhang. Convolutional sparse coding for image super-resolution. 2015 IEEE International Conference on Computer Vision (ICCV), pages 1823-1831, 2015.
+[13] Kaiming He, Jian Sun, and Xiaou Tang. Guided image filtering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35:1397-1409, 2013.
+[14] Xin Jin, Zhibo Chen, Jianxin Lin, Zhikai Chen, and Wei Zhou. Unsupervised single image deraining with self-supervised constraints. 2019 IEEE International Conference on Image Processing (ICIP), pages 2761-2765, 2018.
+[15] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016.
+
+[16] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
+[17] Alexander Krull, Tim-Oliver Buchholz, and Florian Jug. Noise2void - learning denoising from single noisy images. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2124-2132, 2018.
+[18] Hsin-Ying Lee, Hung-Yu Tseng, Jia-Bin Huang, Maneesh Kumar Singh, and Ming-Hsuan Yang. Diverse imaged-to-image translation via disentangled representations. ArXiv, abs/1808.00948, 2018.
+[19] Jaakko Lehtinen, Jacob Munkberg, Jon Hasselgren, Samuli Laine, Tero Karras, Miika Aittala, and Timo Aila. Noise2noise: Learning image restoration without clean data. ArXiv, abs/1803.04189, 2018.
+[20] Ming Liu, Yukang Ding, Min Xia, Xiao Liu, Errui Ding, Wangmeng Zuo, and Shilei Wen. Stgan: A unified selective transfer network for arbitrary image attribute editing. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3668-3677, 2019.
+[21] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NIPS, 2017.
+[22] Ming-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks. In NIPS, 2016.
+[23] Boyu Lu, Jun-Cheng Chen, and Rama Chellappa. Unsupervised domain-specific deblurring via disentangled representations. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10217-10226, 2019.
+[24] Julien Mairal, Michael Elad, and Guillermo Sapiro. Sparse representation for color image restoration. IEEE Transactions on Image Processing, 17:53-69, 2008.
+[25] Markku Mäkitalo and Alessandro Foi. Optimal inversion of the anscombe transformation in low-countoisson image denoising. IEEE Transactions on Image Processing, 20:99-109, 2011.
+[26] Xiao-Jiao Mao, Chunhua Shen, and Yu-Bin Yang. Image restoration using very deep convolutional encoder-decoder networks with symmetric skip connections. In NIPS, 2016.
+[27] David R. Martin, Charless C. Fowlkes, Doron Tal, and Jitendra Malik. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. Proceedings Eighth IEEE International Conference on Computer Vision. ICCV 2001, 2:416-423 vol.2, 2001.
+[28] Thekke Madam Nimisha, Sunil Kumar, and A. N. Rajagopalan. Unsupervised class-specific deblurring. In ECCV, 2018.
+[29] Stanley Osher, Martin Burger, Donald Goldfarb, Jinjun Xu, and Wotao Yin. An iterative regularization method for total variation-based image restoration. Multiscale Modeling & Simulation, 4:460-489, 2005.
+[30] 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.
+[31] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
+
+[32] Dmitry Ulyanov, Andrea Vedaldi, and Victor S. Lempitsky. Deep image prior. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9446-9454, 2017.
+[33] Stéfan van der Walt, Johannes L. Schonberger, Juan Nunez-Iglesias, François Boulogne, Joshua D. Warner, Neil Yager, Emmanuelle Gouillart, and Tony Yu. scikit-image: image processing in python. In PeerJ, 2014.
+[34] Luminita A. Vese and Stanley Osher. Image denoising and decomposition with total variation minimization and oscillatory functions. Journal of Mathematical Imaging and Vision, 20:7-18, 2004.
+[35] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In ICML '08, 2008.
+[36] Junyuan Xie, Linli Xu, and Enhong Chen. Image denoising and inpainting with deep neural networks. In NIPS, 2012.
+[37] Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. Dualgan: Unsupervised dual learning for image-to-image translation. 2017 IEEE International Conference on Computer Vision (ICCV), pages 2868-2876, 2017.
+[38] Yuan Yuan, Siyuan Liu, Jiawei Zhang, Yongbing Zhang, Chao Dong, and Liang Lin. Unsupervised image superresolution using cycle-in-cycle generative adversarial networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 814-81409, 2018.
+[39] Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep cnn for image denoising. IEEE Transactions on Image Processing, 26:3142-3155, 2017.
+[40] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. 2017 IEEE International Conference on Computer Vision (ICCV), pages 2242-2251, 2017.
+[41] Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A. Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. ArXiv, abs/1711.11586, 2017.
+[42] Daniel Zoran and Yair Weiss. From learning models of natural image patches to whole image restoration. 2011 International Conference on Computer Vision, pages 479-486, 2011.
\ No newline at end of file
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/images.zip b/learninginvariantrepresentationforunsupervisedimagerestoration/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8ed42073bd9bd68c545070735be97366c173f86d
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc1fab88bc9f148e7a40e49529348dfd26b53fb7931351506826aa110ad10bd3
+size 902521
diff --git a/learninginvariantrepresentationforunsupervisedimagerestoration/layout.json b/learninginvariantrepresentationforunsupervisedimagerestoration/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..bd00b236c6e3e0c4a825d46742be677fcb9cf82c
--- /dev/null
+++ b/learninginvariantrepresentationforunsupervisedimagerestoration/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1ab1c957fd006f5e5a1c67e76da04e9a9c540ca75b7a2a4f583668a040d289d
+size 491932
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_content_list.json b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6145784229c408d18dfd12a683188976b7484bd6
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:499b317ba4eab0bf1d18a1aaa26a57e31048075af38edc34ab3584cd61023fa5
+size 79409
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_model.json b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fddbdaa185f80275ddc43243e946057522247da9
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99a19bdab89ee705ad01c5f391c63c56aa05b48e40481e8c5e946fe3dbb76d1e
+size 99969
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_origin.pdf b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a96f131b894ba81841682f4f36dea4f67e0de880
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/2023eecd-7185-4001-bac0-639c1c65bab2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad864b290d1bea9f1e3d99b4c112bd6edd24bb88a042a9b67251d87bcd41b0c9
+size 2825467
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/full.md b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..784a3b6157dc1488dffbac5dfa9c4a8d35ddeb2e
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/full.md
@@ -0,0 +1,300 @@
+# Learning Longterm Representations for Person Re-Identification Using Radio Signals
+
+Lijie Fan* Tianhong Li* Rongyao Fang* Rumen Hristov Yuan Yuan Dina Katabi MIT CSAIL
+
+# Abstract
+
+Person Re-Identification (ReID) aims to recognize a person-of-interest across different places and times. Existing ReID methods rely on images or videos collected using RGB cameras. They extract appearance features like clothes, shoes, hair, etc. Such features, however, can change drastically from one day to the next, leading to inability to identify people over extended time periods. In this paper, we introduce RF-ReID, a novel approach that harnesses radio frequency (RF) signals for longterm person ReID. RF signals traverse clothes and reflect off the human body; thus they can be used to extract more persistent human-identifying features like body size and shape. We evaluate the performance of RF-ReID on longitudinal datasets that span days and weeks, where the person may wear different clothes across days. Our experiments demonstrate that RF-ReID outperforms state-of-the-art RGB-based ReID approaches for long term person ReID. Our results also reveal two interesting features: First since RF signals work in the presence of occlusions and poor lighting, RF-ReID allows for person ReID in such scenarios. Second, unlike photos and videos which reveal personal and private information, RF signals are more privacy-preserving, and hence can help extend person ReID to privacy-concerned domains, like healthcare.
+
+# 1. Introduction
+
+Person re-identification (ReID) aims to match a person-of-interest across different cameras, and at different times and locations. It has broad applications in city planning, smart surveillance, safety monitoring, etc. It is challenging because the visual appearance of a person across cameras can change dramatically due to changes in illumination, background, camera view-angle, and human pose. With the success of deep learning, several ReID models [3, 25, 7, 8, 14, 39, 11, 60] have managed to extract appearance features that are view-invariant across cameras, leading to good performance on various person ReID datasets [6].
+
+
+Figure 1. Similarity score between people as computed by RF-ReID and a state-of-the-art video-based ReID model (the larger the score, the higher the similarity). (a) and (b) show the same person wearing different clothes, and (c) shows a different person wearing the same pullover as the top-left person. The video-based ReID model relies on appearance features and thus wrongly predicts (a) to be close to (c), while RF-ReID captures body shape and walking style and can correctly associate (a) with (b).
+
+However, another great challenge has rarely been investigated: human visual appearance can also change drastically over time. For example, people may revisit the same shop on different days wearing different clothes and hair styles, and a thief can deliberately change his clothes to mislead the surveillance system. A robust person ReID system should be able to match people despite appearance changes. Unfortunately, existing RGB-based person ReID systems have severe limitations in achieving this goal since they intrinsically rely on appearance information such as clothes, shoes, hair, bags, etc. [39, 49, 52]. All these features are short-lived and can become ineffective the next day. To achieve robust person ReID, the system should be able to extract longterm identifying features that persist for weeks and months.
+
+But how can we capture persistent features suitable for person ReID? Wireless signals present a good solution. Radio frequency (RF) signals in the Wi-Fi frequency range traverse clothes and reflect off the human body. Unlike cameras, wireless signals could extract intrinsic features of the human body, such as body size or shape. These features are relatively stable over days and months, enabling a more
+
+robust longterm ReID system. Moreover, previous works have shown the possibility of tracking people's 3D skeletons and walking patterns using RF signals, which can be used as longterm identifying features [55, 24, 56, 54, 33]. Furthermore, unlike RGB-based person ReID methods which struggle in the presence of occlusion and poor lighting, RF signals traverse walls and can enable ReID through occlusions and in dark settings.
+
+However, applying RF signals to person ReID presents several challenges. First, training an end-to-end model only using people's IDs as labels leads to overfitting problems. ID labels provide a rather weak supervision. The model will tend to learn environment-dependent short-cuts such as the position a person usually stays at. Second, unlike RGB images, a single RF snapshot contains reflections from few body parts, and misses the rest of the body. This is due to a special property called specularity [4]. The human body acts like a mirror for RF signals in the Wi-Fi range, and signals reflected away from the receiver will not be captured. As a result, a single RF snapshot does not contain enough information about the whole body to identify the person.
+
+To solve the overfitting problem, we propose a multi-task learning framework and an environment discriminator. Apart from predicting the identity of the person, we force features from our model to contain enough information to predict the 3D skeleton of the person. We further add an environment discriminator to force the features to be environment independent. This discriminator is co-trained with the feature extraction network in an adversarial way, making features from different environments indistinguishable by the discriminator. To solve the specularity of RF signals, we add a hierarchical attention module that effectively combines information regarding the human shape and walking style across time, i.e., across multiple RF snapshots.
+
+We introduce RF-ReID, an RF-based person ReID model that can extract longterm identifiable features, and work under occluded or inadequate lighting conditions. RF-ReID takes wireless signals as input, extracts identifiable features from the reflection of the human body, and identifies the person with the extracted feature. It performs robust person ReID across both time and space. Figure 1 shows an examples that demonstrates the effectiveness of RF-ReID. The same person wearing different clothes in (a) and (b)) is mistaken as a different individual by state-of-the-art video ReID [11], while two different people wearing the same clothes in (a) and (c) are wrongly identified to be the same person. In contrast, RF-ReID can accurately identify (a) and (b) to be the same person, and (a) and (c) to be different.
+
+We evaluate RF-ReID on two datasets. (A) RRD-Campus: The first dataset is collected using five radios deployed in different locations on our campus. Ground truth ID labels are collected using RGB video cameras colocated with each radio. The resulting dataset contains 100 differ
+
+ent IDs, and spans 15 days. People appear multiple times in different clothes and different people may wear similar clothes. (B) RRD-Home: The second dataset was originally collected to assess the viability of tracking movements of Parkinson's patients in their homes using RF signals. It includes data from 19 homes, and an average of one week per home. Ground truth IDs are obtained through manual labeling by comparing the movements from wearable accelerometers with movements from RF signals. More details about the datasets are available in section 5.
+
+We train a single model to ReID people in both datasets. As described above we use a discriminator to ensure that the representation is environment independent. Since RRD-Campus includes colocated RGB videos, we compare our model with state-of-the-art video-based ReID[11]. The results show that RF-ReID outperforms the state-of-the-art RGB-based ReID approaches by a large margin. They also show RF-ReID ability to work through occlusions and in poor lighting conditions when the camera fails completely. RF-ReID also works well on RRD-Home, which contains RF signals from the homes of Parkinson's patients. This result shows that our method can ReID people in private settings like homes, locker rooms, and other private locations where one cannot deploy cameras. Interestingly, this result leads to a new concept - privacy-conscious ReID, where people may be re-identified without capturing their personal information, e.g., pictures or audio clips.
+
+To summarize, this paper makes two key contributions:
+
+- First, it investigates the task of longterm person ReID, which identifies a person regardless of appearance changes over time. It proposes a novel model that leverages RF signals to achieve longterm person ReID. It further demonstrates that the model is robust to occlusion and poor lighting.
+- Second, it introduces the concept of privacy-conscious ReID as the ability to identify encounters with the same person without collecting personal or private data like pictures, videos, or audio clips. The paper also demonstrates the first such privacy-conscious ReID model.
+
+# 2. Related Works
+
+(a) RGB-based ReID. There are mainly two categories of RGB-based ReID: image-based and video-based. Early approaches for image-based ReID rely on hand-crafted features based on color descriptors, and optimize some distance metric relative to those descriptors [12, 26, 37, 28, 42]. Early video-based ReID models use spatio-temporal descriptors like HOG3D [21] and gait energy image (GEI) [13] to extract additional temporal information.
+
+Recent approaches rely on deep learning and can be divided into two categories. The first category uses classification models similar to image or video classification
+
+
+Figure 2. RF heatmaps and an RGB image recorded at the same time.
+
+tasks [23, 5]. The second category uses siamese models which take a pair or triplet of images or videos as input, and uses pairwise or triplet loss to train the model [3, 14, 8]. Some Video-based ReID models further aggregate temporal information through temporal attention or RNN networks [11, 29, 32, 47, 48].
+
+Both image-based and video-based ReID methods tend to extract short-lived features such as clothes, shoes, bags, hair styles, etc. [6] and hence struggle to re-identify a people across days and weeks.
+
+(b) RF-based Person Identification. Research in wireless systems has explored person identification using radio signals. Previous work can be divided into two categories. The first category uses the signals transmitted by portable devices (e.g., cellphones) to track and identify each person [22, 46, 41]. Such systems require a person to wear or carry sensors, which limits their utility and robustness. The second category analyses signal reflections off people's bodies to identify each person [17, 2, 16, 18, 35, 36, 44, 45, 15, 38, 43, 50]. Past systems however classify small numbers of people (<10) in the same environment, cannot generalize to new identities unseen in the training set, and typically require the person to walk on certain constrained paths [43, 50]. In contrast to all past work, we are the first to achieve person ReID in the wild with RF signals, and without requiring people to wear sensors or move on specific paths. Furthermore, our model generalizes to new people and new environments unseen during training.
+
+# 3. Radio Frequency Signals Primer
+
+We use an FMCW radio widely used in previous work on RF-based human sensing [56, 27, 51, 9, 34, 40, 17, 53, 57, 55, 24]. The radio is equipped with two antenna arrays: horizontal and vertical. It operates between 5.4 and $7.2\mathrm{GHz}$ and can sense people up to $12\mathrm{m}$ away from the device.
+
+(a) RF Heatmaps: The RF signal at the output of the radio takes the format of two 2D heatmaps: one from the horizontal array and the other from the vertical array, as shown in Figure 2 (red refers to large values while blue refers to small values). The horizontal heatmap is a projection of RF
+
+signals on the plane parallel to the ground, and the vertical heatmap is a projection of RF signals on a plane perpendicular to the ground. Intuitively, we can treat these heatmaps as depth maps, where higher values correspond to higher strength of signal reflections from a location. The radio generates 30 horizontal-vertical heatmap pair per second; we call each pair an RF frame.
+
+Figure 2 reveals that RF signals have different properties from vision data. The human body is specular in our frequency range [4]. RF specularity occurs when the wavelength of the signal is larger than the roughness of the object's surface. In this case, the object acts like a mirror as opposed to a scatterer. The signal from each body part may be reflected towards our sensor or away from it depending on the orientation. Therefore, each RF frame contains reflections from a subset of body parts, making it hard to obtain identifiable information from a single RF frame.
+
+(b) RF Tracklets: Prior work has demonstrated that RF signals can be used to detect, localize and track people [1]. We use this technique to extract RF tracklets from the RF heatmaps. As shown on the left of Figure 3, a tracklet extracts from the horizontal and vertical heatmaps the RF signals reflected off a person, and the bounding box of that person at each time step (white box in figure). Since one RF tracklet always corresponds to one person, the ReID task is performed across different RF tracklets.
+(c) Skeletons from RF: 3D Human skeletons can be generated from RF signals using the approach in [56]. The generated 3D skeleton data contains the 3D coordinates of 18 major human body joints at each time step, as specified in [10], which can be used to assist the task of person ReID.
+
+# 4. RF-ReID
+
+RF-ReID is an end-to-end model for person ReID using RF signals. As shown in Figure 3, our model takes an RF tracklet as input. It then extracts features from the tracklet using an RF feature extraction network. It then aggregates temporal information through a learnable hierarchical attention module to generate a feature map. During training, these features are supervised in a multi-task learning manner using identity classification loss, triplet loss and skeleton loss. We further add an additional environment discriminator loss to force the model to learn environment-invariant features. This allows our model to generalize to new environments not seen during training. Below, we explain each RF-ReID component in detail.
+
+# 4.1. RF Feature Extraction Network
+
+Since RF tracklets can have different durations, we first perform temporal sampling on each tracklet before extracting features from it. For each RF tracklet, we uniformly sample 25 segments from it, where each segment contains 3 seconds (90 frames) of RF heatmaps.
+
+
+Figure 3. Model architecture. RF-ReID takes an RF tracklet as input. It samples RF segments of 3 seconds (90 frames), and extracts frame-level features with an RF feature extraction network (shown in green). These features are processed by a multi-headed hierarchical attention module (i.e., MHA) with two sub-modules; the first attention sub-module (dark blue) extracts segment-level features and the second sub-module (light blue) extracts tracklet-level features. The supervision for training the RF feature extraction network and the first attention sub-module is added to the segment-level features, and the supervision for the second attention sub-module is added to the tracklet features.
+
+We adopt an architecture similar to [56] for our backbone feature extraction network. The network first uses spatiotemporal convolutions to extract global features from the input RF frames. We then crop out the region of interest around the tracklet trajectory in the feature map. Finally, the cropped features are fed into a sub-network to generate frame-level identifiable features for person ReID.
+
+# 4.2. Hierarchical Attention Module
+
+The RF feature extraction network generates relevant features from each RF segment, where a segment is a clip of 90 RF frames (3 seconds). As mentioned in Section 3, due to specularity, each RF frame contains information only about some body parts. So we need to aggregate features across frames in the same tracklet. To solve this problem, we propose a learnable two-step hierarchical attention module to aggregate information across each tracklet.
+
+There are two kinds of information in an RF tracklet that is relevant to person identification: shape and walking style. The coarse shape of the person can be obtained by aggregating information from several seconds of RF signals. This is because when a person moves, we can receive signals reflected from different body parts according to their orientation with respect to the radio. Thus, the first attention block is added on frame-level features to aggregate the shape information within each 90-frame segment (3 seconds).
+
+The walking style, on the other hand, is a feature that can only be inferred from a longer temporal span. However, within an RF tracklet, there can be many non-walking periods where the person may stop, stand by, sit down, tie their shoes, etc. Those periods cannot be used to infer the walking
+
+style. Therefore, we use the second attention block to attend to features from different segments across the tracklet and aggregate them to generate one final feature vector for each tracklet.
+
+# 4.3. Multi-task Learning for Identifiable Features
+
+To train the RF feature extraction network, we add supervision to the segment-level features (orange box in Figure 3). As shown in Figure 4, we first add two losses widely used in prior works on RGB-based person ReID: identification loss $\mathcal{L}_{id}$ and triplet loss $\mathcal{L}_{triplet}$ . For the identification loss, the segment-level features are further passed through another classification network with two fully-connected layers to perform ID classification. This task helps the model learn human identifiable information from RF signals. The triplet loss [14] is computed as
+
+$$
+\mathcal {L} _ {t r i p l e t} = \max (d _ {p} - d _ {n} + \alpha , 0),
+$$
+
+where $d_p$ and $d_n$ are the $L_2$ distances of segment-level features from the same person and features from different people, respectively. $\alpha$ is the margin of triplet loss ( $\alpha$ is set to 0.3). This loss enforces features from different people to be far away from each other and those from the same person to be close.
+
+The first attention layer can be trained end-to-end with the feature extraction network. For the second attention layer, we first generate features for each segment, then we use the second attention layer to aggregate them and train the second attention layer using the ID loss $\mathcal{L}_{id\_ t}$ and triplet loss $\mathcal{L}_{triplet\_ t}$ on the aggregated feature.
+
+
+Figure 4. Illustration of multitask learning in RF-ReID. The blue box corresponds to the task of person re-identification, and the yellow box corresponds to the task of 3D skeleton prediction.
+
+Besides these two losses, we force the model to learn to infer the person's skeleton from RF signals and add an additional skeleton loss $\mathcal{L}_{skl}$ for supervision. Specifically, we take the intermediate features in our feature extraction network two layers above the frame-level features and feed them into a pose-estimation sub-network that generates 3D human skeletons. The skeleton loss is a binary cross entropy loss similar to the one used in [56]. This loss forces the features to contain enough information for skeleton generation, which can help the ReID task in capturing person's height and walking style. The skeleton loss also acts as a regularizer on the extracted features to prevent overfitting.
+
+# 4.4. Environment Discriminator
+
+RF tracklets can have identifiable patterns strongly related to the environment. For example, a person is much more likely to enter his or her own office than other people. As a result, the model can use such environmental features as shortcuts to identify people based on their paths. This will severely harm the model's ability to generalize across different environments or identify people when they do not follow their usual paths. For example, in our Campus Dataset, the model will have difficulty identifying a faculty who is visiting another faculty in their office. In our Home Dataset, the model will learn the specific path that each person walks in their home, and fail to generalize to new unseen homes.
+
+To solve this problem, we need to eliminate the environment-dependent factors during the training process. Thus, we consider signals from each radio location as one environment, and train a discriminator to predict the environment of the signal. The discriminator is trained in an adversarial way so that eventually the model will eliminate the features that are environment dependent. The discriminator operates on segment-level features as shown in Figure 3. A cross entropy loss is used to train the discriminator to predict the environment. The discriminator loss is subtracted from the loss of multi-task training in the feature extraction network. Denoting the RF feature extraction network as $F$ and the environment discriminator as $D$ , the discriminator loss is:
+
+$$
+\mathcal {L} _ {d i s} = - \sum_ {c = 1} ^ {M} y _ {c} \log (D (F (x)) _ {c}),
+$$
+
+where $x$ is the input tracklet, $M$ is the total number of environment and $y_{c}$ is the binary indicator of which environment the current tracklet belongs to. The optimization target is:
+
+$$
+\min _ {F} \max _ {D} V (F, D) = - \mathcal {L} _ {d i s} + \mathcal {L} _ {i d} + \mathcal {L} _ {t r i p l e t} + \mathcal {L} _ {s k l}
+$$
+
+# 5. Dataset
+
+We use the following two datasets.
+
+# 5.1. RRD-Campus
+
+RRD-Campus refers to an RF-ReID Dataset collected on our Campus. It contains RF signals and synchronized RGB video data. The video data is used both for ground truth labeling and to compare with RGB-based video and image based ReID methods.
+
+The data is collected by deploying 5 radios in 5 different locations across our campus and collecting data for 15 days. Each radio is colocated with an RGB video camera. We synchronize the video data and the RF signals using the NTP protocol, with a maximum time difference of $10\mathrm{ms}$ .
+
+Labeling: We deploy our data collection system at places that tend to be revisited by the same people, such as the lounge area in front of a lab or a set of offices. We collect video with $960 \times 720$ resolution and 15 FPS to assist in the labeling process. We then use the video to label all people who show up repeatedly, even if they have different clothes. We further ask the people in the dataset to double-check their own data and make sure that all RF tracklets with their identity are labeled correctly.
+
+Statistics: The dataset contains 100 identities in total. On average, each identity has 8.63 RF tracklets, and each tracklet spans over 11.0 seconds. People in the dataset may change clothes across different days, and our data collection system does not interfere with people's normal activities.
+
+# 5.2. RRD-Home
+
+RRD-Home is based on the dataset in previous work on Parkinson's Disease analysis with RF signals [20]. The dataset is collected by deploying RF devices in 19 different homes to obtain RF tracklets for moving people, where each home is inhibited by a Parkinson patient and a normal person (typically the spouse). The Parkinson patient is asked to wear an accelerometer to collect the acceleration data. The collected dataset contains the RF tracklets for the people in each home, and the corresponding accelerometer data for the patients. Note that the acceleration data is only used for labeling and is not an input to our model.
+
+Labeling: Accelerometers are widely used for in-home behavior analysis [17]. In RRD-Home, We use accelerometer data to assist in the labeling process. In each home, we
+
+first calculate the location, moving distance and speed for each RF tracklet, and then associate the patient's accelerometer data with the corresponding RF tracklets based on the similarity of movement properties. RF tracklets whose motion is syncsed with the acceleration data from the wearable on the patient are labeled with the patient's ID, whereas the tracklets whose motion does not match the acceleration data are labeled with the ID of the other person in the home. (We ignore RF tracklets from periods during which there is no acceleration data.)
+
+Statistics: The dataset contains 38 different identities in 19 different homes. The data spans 127 days with an average of one week per home. Each identity has 165.91 RF tracklets on average. Each RF tracklet spans over 9.24 seconds. People in the dataset can change clothes across days, and the data collection system does not interfere with people's normal activities.
+
+# 5.3. RF-Based Skeletons
+
+As mentioned in Section 4.3, to assist training our ReID model we force it to learn features useful for inferring a person's skeleton from RF signals. This is done by leveraging the datasets from past work on 3D RF-based pose and action estimation [24, 54].
+
+# 6. Experiments
+
+We evaluate the effectiveness and practicality of RF-ReID and compare it with image and video based ReID.
+
+# 6.1. Experimental Setup
+
+Training & Testing: (1) RRD-Campus. We split RRD-Campus into a training set with 60 identities and a test set with the other 40 identities. As common in RGB-based ReID datasets, we randomly select one sample from each identity in the test set to build the query set and group the remaining samples as the gallery set. (2) RRD-Home. The training and test sets of RRD-Home contain 13 and 6 different homes, respectively. Each home has 2 different identities corresponding to the two inhabitants. The query set and the gallery set is constructed similarly to RRD-Campus. (3) RRD. We also combine RRD-Campus and RRD-Home to form a larger dataset RRD. The training set of RRD is the combination of RRD-Campus training set and RRD-Home training set. We evaluate our model on both the individual datasets and the combined one. We perform 5-fold cross-validation, where each time we randomly assign identities to the training set and test set.
+
+Evaluation Metrics: During testing, the query samples and gallery samples are encoded to feature vectors using RF-ReID. Then we calculate the cosine distance between each query sample's features and each gallery sample's features and rank the distance to retrieve the top-N closest gallery
+
+samples for each query sample. We compute the standard evaluation metrics for person ReID based on the ranking results: mean average precision score (mAP) and the cumulative matching curve (CMC) at rank-1 and rank-5.
+
+RGB Baseline Models: To demonstrate the effectiveness of RF-ReID, we compare it with one state-of-the-art image-based person ReID model [30] and one state-of-the-art video-based model [11]. The comparison is performed on RRD-Campus since only RRD-Campus is collected with synchronized RGB videos. We first train the image-based and video-based person ReID models on the commonly used Market1501 [59] and MARS [58], respectively. We then fine-tune them on the RGB video data in our training set. To fine-tune the video model, we use videos snippets that correspond to the RF tracklets in the training set, and to fine tune the image-based model we use the corresponding images in the training set. During testing, we evaluate the performance of RGB-based models on the same query and gallery set we used to evaluate RF-ReID. For video-based ReID, the input is the corresponding RGB video of each tracklet. For image-based ReID, we compute the features for each frame in the video, and average them to get the features of the sample.
+
+# 6.2. Quantitative Results
+
+We compare RF-ReID with state-of-the-art image-based and video-based person ReID models on RRD-Campus. As shown in Table 1, our RF-ReID model exhibits a significant improvement over both image-based and video-based models. This is mainly because people in RRD-Campus tend to wear different clothes on different days. Traditional RGB-based ReID models focus on extracting features from clothes, and fail when the same person wears different clothes. In contrast, RF-ReID focuses on the shape and walking style of a person, which remain valid over a long period.
+
+We also report the performance of RF-ReID on RRD-Home. Due to privacy reasons, this dataset does not include RGB images or videos and hence we cannot compare with RGB-based baselines. In contrast, since RF signal is privacy preserving, it is used to track people in their homes. The results from RDD-Home in Table 1 show that our model not only achieves high accuracy on RRD-Campus, but also performs well in real-world home scenarios. Furthermore, since humans cannot recognize a person from RF signals, our model can be used to ReID people without collecting personal information like images or videos of people performing private activities in their homes.
+
+The results in Table 1 highlight the following points:
+
+- RF-ReID works well for long term re-identification that spans days, weeks, or longer.
+- RF-ReID can re-identify people without collecting or exposing any information that can be used by a human
+
+| Methods | Modality | RRD-Campus | RRD-Home |
| mAP | CMC-1 | CMC-5 | mAP | CMC-1 | CMC-5 |
| Luo et al. [30] | RGB Image | 41.3 | 61.4 | 84.3 | - | - | - |
| Gao et al. [11] | RGB Video | 48.1 | 69.2 | 89.1 | - | - | - |
| RF-ReID (separate) | RF Signal | 59.5 | 82.1 | 95.5 | 46.4 | 74.6 | 89.5 |
| RF-ReID (combined) | RF Signal | 60.7 | 83.6 | 96.5 | 49.4 | 75.8 | 92.5 |
+
+to recognize people; we refer to this property as privacy conscious ReID system. This property is critical in healthcare applications and clinical research, where one needs to ReID the subjects so that one may track changes in a patient's health over time or as a result of treatment; yet, it is essential to keep the subjects de-identified and avoid collecting or storing data that exposes the subjects' personal information.
+
+- Last, the results indicate that ReID is harder for RDD-Home than RDD-Campus. We believe this is due to two reasons: First, tacklets from homes are shorter (9.2 vs. 11 seconds). Second, the walking style of Parkinson's patients may differ through the day as the impact of medications wears off and they need to take the next dose.
+
+# 6.3. Ablation Study
+
+We conduct several ablation studies to evaluate the contribution of each component of RF-ReID. All ablation results are for RRD-Campus.
+
+Multi-task Learning: Traditional ReID methods use only triplet loss and ID classification loss. In our RF-ReID model, we have added an additional skeleton loss both for regularization and to learn human-related information. We evaluate the performance of this skeleton loss. Table 2 shows that adding the skeleton loss improves RF-ReID's accuracy. We also report the commonly used metric: Mean Per Joint Position Error (MPJPE) [19, 55], to evaluate the accuracy of the generated skeletons. As shown in the last column of Table 2, the features from RF-ReID contain enough information to generate accurate human skeletons.
+
+Table 1. Comparison between RF-RelD and RGB-based and Video-based RelID on RRD-Campus and RRD-Home. RF-RelD (separate) is trained and tested on RRD-Campus and RRD-Home separately. RF-RelD (combined) is trained on both RRD-Campus and RRD-Home (i.e., the RRD dataset) and tested on both of them.
+
+| Method | mAP | CMC-1 | CMC-5 | MPJPE |
| w/o skl loss | 57.3 | 78.2 | 94.4 | - |
| w/ skl loss | 59.5 | 82.1 | 95.5 | 7.44 |
+
+Hierarchical Attention Module: RF-ReID has a hierarchical attention module to aggregate features across a tracklet. The attention module has two blocks: the first aggregates shape information within each segment (3 secs), while the second aggregates walking-style information across the whole tracklet. Table 3 demonstrates the effectiveness of each block. If both blocks are replaced by average pooling
+
+over the temporal dimension, the performance would drop by $4.1\%$ for mAP and $7.6\%$ for CMC-1. Each block increases the mAP by $3\sim 4\%$ , and adding them together achieves the highest performance.
+
+Table 2. Performance of RF-ReID with and without skeleton loss.
+
+| Method | mAP | CMC-1 | CMC-5 |
| Avg Pool+Avg Pool | 55.4 | 74.5 | 93.8 |
| Avg Pool+2nd Att. | 58.3 | 80.3 | 94.4 |
| 1st Att.+Avg Pool | 58.6 | 81.0 | 94.3 |
| 1st Att.+2nd Att | 59.5 | 82.1 | 95.5 |
+
+Environment Discriminator: RF-ReID use a discriminator to prevent the model from generating environment dependent features. We evaluate RF-ReID's performance with and without the discriminator. As shown in Table 4, adding the discriminator helps the model improve the performance by a large margin.
+
+Figure 6 visualizes the feature space learned by RF-ReID using t-SNE [31]. Each point in the figure corresponds to a feature vector extracted from a tracklet in the test set. There are in total 5 environments in RRD-Campus test set, and we color each point according to its environment. The figure shows that without the discriminator, the feature distribution is strongly correlated with the environment. In contrast, with the discriminator, the features are successfully decoupled from the environment and more uniformly distributed. This result further demonstrates that the proposed environment discriminator can help the model learn identifying features focused on the person rather than the environment.
+
+Table 3. Performance of RF-ReID with and without the attention module. The first attention layer (1st Att.) denotes the layer operating within each segment (3 sec), and the second attention layer (2nd Att.) denotes the layer operating on the whole tracklet.
+
+| Method | mAP | CMC-1 | CMC-5 |
| w/o discriminator | 56.7 | 74.2 | 93.3 |
| w/ discriminator | 59.5 | 82.1 | 95.5 |
+
+Table 4. Performance of RF-ReID with and without the environment discriminator.
+
+# 6.4. Qualitative Results
+
+In Figure 5, we show examples from the test set of RRD-Campus. Each example corresponds to a query sample and its closest sample in the gallery. We compare the results generated by RF-ReID to the video-based baseline.
+
+
+Figure 5. Qualitative results on RRD-Campus test set. Each row shows two examples, separated by the dotted line. The first column of each example is a query sample in RRD-Campus test set. The second column is the top-1 prediction by the video-based ReID model in the gallery set. The third column is the top-1 prediction by RF-ReID in the gallery set. Blue boxes stand for query sample. Green boxes mean the prediction is correct, and red boxes mean the prediction is wrong. The first row shows scenarios where both video-based ReID and RF-ReID succeed matching the correct person. The second row shows scenarios where video-based ReID fails, and matches to the wrong person because he has similar clothes, while RF-ReID provides accurate predictions. The third row shows RGB-based ReID fails under dark and occluded conditions but RF-ReID can still work. The last row shows the limitations of RF-ReID which emphasizes the walking style of the person and can get confused when he drags a bicycle or is skateboarding.
+
+
+Figure 6. Distribution of features extracted by RF-ReID from different environments. The color indicates which environment a feature belongs to. The sub-figure on the left shows the feature distribution without the environment discriminator, where features from same environment are strongly clustered due to environment-dependent information. The sub-figure on the right shows the feature distribution with the environment discriminator. Here, the features are more uniformly spaced, showing that they are more environment-invariant.
+
+
+
+The figure shows that RGB-based ReID is focused on colors and clothes, where as RF-ReID is resilient to changes in colors and clothing items. In particular, in the second row in the figure, RGB-based ReID fails because the gallery contains other people wearing clothes similar to the query sample. In contrast, RF-ReID identifies the correct person even if he/she wears completely different clothes in the gallery. This demonstrates the robustness of RF-ReID against changes in clothes.
+
+Further, the third row in the figure shows that RGB-based ReID fails when faced with poor lighting or occlusions. In the example on the left, the light is turned off, and as a result the RGB-based ReID model fails to detect the person altogether, while the RF-based model works accurately without being affected by poor lighting. Additionally, in the example on the right, the person is behind a door so the camera
+
+can only see a vague shadow. RF-ReID can still work in this scenario because RF signals naturally traverse walls and occlusions.
+
+We also observe that RF-based ReID can fail under some circumstances, as shown in the last row. In the example on the left, the person in the query is walking with a bicycle. The bicycle changes the person's walking style; it also disturbs the RF reflections due to its metallic frame, leading to inaccurate prediction. Another failure case is when the person is on a skateboard. Since RF-ReID focuses on the person's walking style, it fails to identify this person correctly.
+
+# 7. Conclusion
+
+We have proposed RF-ReID, a novel approach for person ReID using RF signals. Our approach can extract longterm identifying features from RF signals and thus enables person re-identification across days, weeks, etc. This is in contrast to RGB-based ReID methods which tend to focus on short-lived features such as clothes, bags, hair style, etc. Also, unlike cameras, RF signals do not reveal private or personal information. Thus, our ReID method can be used in healthcare applications and clinical studies where it is important to track the health of each subject over time, while keeping the data de-identified. Finally, RF signals work in the presence of occlusions and poor lighting conditions, allowing us to ReID people in such scenarios. We believe this work paves the way for many new applications of person ReID ,where it is desirable to track people for a relatively long period and without having to collect their personal information.
+
+# References
+
+[1] Fadel Adib, Zach Kabelac, Dina Katabi, and Robert C Miller. 3d tracking via body radio reflections. In 11th {USENIX} Symposium on Networked Systems Design and Implementation ( $\{\mathsf{NSDI}\}$ 14), pages 317-329, 2014. 3
+[2] Fadel Adib, Hongzi Mao, Zachary Kabelac, Dina Katabi, and Robert C Miller. Smart homes that monitor breathing and heart rate. In Proceedings of the 33rd annual ACM conference on human factors in computing systems, pages 837-846. ACM, 2015. 3
+[3] Ejaz Ahmed, Michael Jones, and Tim K Marks. An improved deep learning architecture for person re-identification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3908–3916, 2015. 1, 3
+[4] Petr Beckmann and Andre Spizzichino. The scattering of electromagnetic waves from rough surfaces. Norwood, MA, Artech House, Inc., 1987, 511 p., 1987. 2, 3
+[5] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6299-6308, 2017. 3
+[6] Xiaobin Chang, Timothy M Hospedales, and Tao Xiang. Multi-level factorisation net for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2109–2118, 2018. 1, 3
+[7] Shi-Zhe Chen, Chun-Chao Guo, and Jian-Huang Lai. Deep ranking for person re-identification via joint representation learning. IEEE Transactions on Image Processing, 25(5):2353-2367, 2016. 1
+[8] Weihua Chen, Xiaotang Chen, Jianguo Zhang, and Kaiqi Huang. Beyond triplet loss: a deep quadruplet network for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 403–412, 2017. 1, 3
+[9] Kevin Chetty, Qingchao Chen, Matthew Ritchie, and Karl Woodbridge. A low-cost through-the-wall fmcw radar for stand-off operation and activity detection. In Radar Sensor Technology XXI, volume 10188, page 1018808. International Society for Optics and Photonics, 2017. 3
+[10] Hao-Shu Fang, Shuqin Xie, Yu-Wing Tai, and Cewu Lu. *Rmpe: Regional multi-person pose estimation.* In *Proceedings of the IEEE International Conference on Computer Vision*, pages 2334–2343, 2017. 3
+[11] Jiysang Gao and Ram Nevatia. Revisiting temporal modeling for video-based person reid. arXiv preprint arXiv:1805.02104, 2018. 1, 2, 3, 6, 7
+[12] Shaogang Gong, Marco Cristani, Shuicheng Yan, and Chen Change Loy, editors. *Person Re-Identification*. Advances in Computer Vision and Pattern Recognition. Springer, 2014. 2
+[13] Ju Han and Bir Bhanu. Individual recognition using gait energy image. IEEE transactions on pattern analysis and machine intelligence, 28(2):316-322, 2005. 2
+[14] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv preprint arXiv:1703.07737, 2017. 1, 3, 4
+
+[15] Feng Hong, Xiang Wang, Yanni Yang, Yuan Zong, Yuliang Zhang, and Zhongwen Guo. Wfid: Passive device-free human identification using wifi signal. In Proceedings of the 13th International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services, pages 47-56. ACM, 2016. 3
+[16] Chen-Yu Hsu, Aayush Ahuja, Shichao Yue, Rumen Hristov, Zachary Kabelac, and Dina Katabi. Zero-effort in-home sleep and insomnia monitoring using radio signals. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 1(3):59, 2017. 3
+[17] Chen-Yu Hsu, Rumen Hristov, Guang-He Lee, Mingmin Zhao, and Dina Katabi. Enabling identification and behavioral sensing in homes using radio reflections. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems, page 548. ACM, 2019. 3, 5
+[18] Chen-Yu Hsu, Yuchen Liu, Zachary Kabelac, Rumen Hristov, Dina Katabi, and Christine Liu. Extracting gait velocity and stride length from surrounding radio signals. In Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems, pages 2116-2126. ACM, 2017. 3
+[19] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325-1339, 2013. 7
+[20] Zachary Kabelac, Christopher G Tarolli, Christopher Snyder, Blake Feldman, Alistair Glidden, Chen-Yu Hsu, Rumen Hristov, E Ray Dorsey, and Dina Katabi. Passive monitoring at home: A pilot study in parkinson disease. Digital Biomarkers, 3(1):22-30, 2019. 5
+[21] Alexander Klaser, Marcin Marszałek, and Cordelia Schmid. A spatio-temporal descriptor based on 3d-gradients. 2008. 2
+[22] Manikanta Kotaru, Kiran Joshi, Dinesh Bharadia, and Sachin Katti. Spotfi: Decimeter level localization using wifi. In ACM SIGCOMM computer communication review, volume 45, pages 269-282. ACM, 2015. 3
+[23] 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. 3
+[24] Tianhong Li, Lijie Fan, Mingmin Zhao, Yingcheng Liu, and Dina Katabi. Making the invisible visible: Action recognition through walls and occlusions. In Proceedings of the IEEE International Conference on Computer Vision, pages 872-881, 2019. 2, 3, 6
+[25] Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. Deepreid: Deep filter pairing neural network for person re-identification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 152–159, 2014. 1
+[26] Shengcai Liao, Yang Hu, Xiangyu Zhu, and Stan Z Li. Person re-identification by local maximal occurrence representation and metric learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2197–2206, 2015. 2
+[27] Jaime Lien, Nicholas Gillian, M Emre Karagozler, Patrick Amihood, Carsten Schwesig, Erik Olson, Hakim Raja, and
+
+Ivan Poupyrev. Soli: Ubiquitous gesture sensing with millimeter wave radar. ACM Transactions on Graphics (TOG), 35(4):142, 2016. 3
+[28] Giuseppe Lisanti, Iacopo Masi, Andrew D Bagdanov, and Alberto Del Bimbo. Person re-identification by iterative reweighted sparse ranking. IEEE transactions on pattern analysis and machine intelligence, 37(8):1629-1642, 2014. 2
+[29] Yu Liu, Junjie Yan, and Wanli Ouyang. Quality aware network for set to set recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5790-5799, 2017. 3
+[30] Hao Luo, Youzhi Gu, Xingyu Liao, Shenqi Lai, and Wei Jiang. Bag of tricks and a strong baseline for deep person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0–0, 2019. 6, 7
+[31] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008. 7
+[32] Niall McLaughlin, Jesus Martinez del Rincon, and Paul Miller. Recurrent convolutional network for video-based person re-identification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1325–1334, 2016. 3
+[33] Athira Nambiar, Alexandre Bernardino, and Jacinto C Nascimento. Gait-based person re-identification: A survey. ACM Computing Surveys (CSUR), 52(2):33, 2019. 2
+[34] Zhengyu Peng, José-María Muñoz-Ferreras, Roberto Gómez-García, and Changzhi Li. Fmcw radar fall detection based on isar processing utilizing the properties of rcs, range, and doppler. In 2016 IEEE MTT-S International Microwave Symposium (IMS), pages 1-3. IEEE, 2016. 3
+[35] Qifan Pu, Sidhant Gupta, Shyamnath Gollakota, and Shwetak Patel. Whole-home gesture recognition using wireless signals. In Proceedings of the 19th annual international conference on Mobile computing & networking, pages 27-38. ACM, 2013. 3
+[36] Tauhidur Rahman, Alexander T Adams, Ruth Vinisha Ravichandran, Mi Zhang, Shwetak N Patel, Julie A Kientz, and Tanzeem Choudhury. Doppelsleep: A contactless unobtrusive sleep sensing system using short-range doppler radar. In Proceedings of the 2015 ACM International Joint Conference on Pervasive and Ubiquitous Computing, pages 39-50. ACM, 2015. 3
+[37] Peter M Roth, Martin Hirzer, Martin Kostinger, Csaba Beleznai, and Horst Bischof. Mahalanobis distance learning for person re-identification. In *Person re-identification*, pages 247–267. Springer, 2014. 2
+[38] Cong Shi, Jian Liu, Hongbo Liu, and Yingying Chen. Smart user authentication through actuation of daily activities leveraging wifi-enabled IoT. In Proceedings of the 18th ACM International Symposium on Mobile Ad Hoc Networking and Computing, page 5. ACM, 2017. 3
+[39] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In Proceedings of the European Conference on Computer Vision (ECCV), pages 480-496, 2018. 1
+
+[40] Yonglong Tian, Guang-He Lee, Hao He, Chen-Yu Hsu, and Dina Katabi. Rf-based fall monitoring using convolutional neural networks. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 2(3):137, 2018. 3
+[41] Deepak Vasisht, Swarun Kumar, and Dina Katabi. Decimeter-level localization with a single wifi access point. In 13th {USENIX} Symposium on Networked Systems Design and Implementation (\{NSDI\} 16), pages 165-178, 2016. 3
+[42] Roberto Vezzani, Davide Baltieri, and Rita Cucchiara. People reidentification in surveillance and forensics: A survey. ACM Computing Surveys (CSUR), 46(2):29, 2013. 2
+[43] Wei Wang, Alex X Liu, and Muhammad Shahzad. Gait recognition using wifi signals. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing, pages 363-373. ACM, 2016. 3
+[44] Wei Wang, Alex X Liu, Muhammad Shahzad, Kang Ling, and Sanglu Lu. Understanding and modeling of wifi signal based human activity recognition. In Proceedings of the 21st annual international conference on mobile computing and networking, pages 65-76. ACM, 2015. 3
+[45] Yan Wang, Jian Liu, Yingying Chen, Marco Gruteser, Jie Yang, and Hongbo Liu. E-eyes: device-free location-oriented activity identification using fine-grained wifi signatures. In Proceedings of the 20th annual international conference on Mobile computing and networking, pages 617–628. ACM, 2014. 3
+[46] Jie Xiong and Kyle Jamieson. Arraytrack: A fine-grained indoor location system. In Presented as part of the 10th {USENIX} Symposium on Networked Systems Design and Implementation (\{NSDI\} 13), pages 71-84, 2013. 3
+[47] Shuangjie Xu, Yu Cheng, Kang Gu, Yang Yang, Shiyu Chang, and Pan Zhou. Jointly attentive spatial-temporal pooling networks for video-based person re-identification. In Proceedings of the IEEE international conference on computer vision, pages 4733–4742, 2017. 3
+[48] Yichao Yan, Bingbing Ni, Zhichao Song, Chao Ma, Yan Yan, and Xiaokang Yang. Person re-identification via recurrent feature aggregation. In European Conference on Computer Vision, pages 701–716. Springer, 2016. 3
+[49] Hantao Yao, Shiliang Zhang, Richang Hong, Yongdong Zhang, Changsheng Xu, and Qi Tian. Deep representation learning with part loss for person re-identification. IEEE Transactions on Image Processing, 28(6):2860-2871, 2019. 1
+[50] Yunze Zeng, Parth H Pathak, and Prasant Mohapatra. Wiwho: wifi-based person identification in smart spaces. In Proceedings of the 15th International Conference on Information Processing in Sensor Networks, page 4. IEEE Press, 2016. 3
+[51] Zhenyuan Zhang, Zengshan Tian, and Mu Zhou. Latern: Dynamic continuous hand gesture recognition using fmcw radar sensor. IEEE Sensors Journal, 18(8):3278-3289, 2018. 3
+[52] Liming Zhao, Xi Li, Yueting Zhuang, and Jingdong Wang. Deeply-learned part-aligned representations for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision, pages 3219–3228, 2017. 1
+
+[53] Mingmin Zhao, Fadel Adib, and Dina Katabi. Emotion recognition using wireless signals. In Proceedings of the 22nd Annual International Conference on Mobile Computing and Networking, pages 95-108. ACM, 2016. 3
+[54] Mingmin Zhao, Tianhong Li, Mohammad Abu Alsheikh, Yonglong Tian, Hang Zhao, Antonio Torralba, and Dina Katabi. Through-wall human pose estimation using radio signals. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7356-7365, 2018. 2, 6
+[55] Mingmin Zhao, Yingcheng Liu, Aniruddh Raghu, Tianhong Li, Hang Zhao, Antonio Torralba, and Dina Katabi. Through-wall human mesh recovery using radio signals. In Proceedings of the IEEE International Conference on Computer Vision, pages 10113-10122, 2019. 2, 3, 7
+[56] Mingmin Zhao, Yonglong Tian, Hang Zhao, Mohammad Abu Alsheikh, Tianhong Li, Rumen Hristov, Zachary Kabelac, Dina Katabi, and Antonio Torralba. Rf-based 3d skeletons. In Proceedings of the 2018 Conference of the ACM Special Interest Group on Data Communication, pages 267-281. ACM, 2018. 2, 3, 4, 5
+[57] Mingmin Zhao, Shichao Yue, Dina Katabi, Tommi S Jaakkola, and Matt T Bianchi. Learning sleep stages from radio signals: A conditional adversarial architecture. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 4100-4109. JMLR.org, 2017. 3
+[58] Liang Zheng, Zhi Bie, Yifan Sun, Jingdong Wang, Chi Su, Shengjin Wang, and Qi Tian. Mars: A video benchmark for large-scale person re-identification. In European Conference on Computer Vision, pages 868–884. Springer, 2016. 6
+[59] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In Proceedings of the IEEE international conference on computer vision, pages 1116–1124, 2015. 6
+[60] Zhun Zhong, Liang Zheng, Zhedong Zheng, Shaozi Li, and Yi Yang. Camera style adaptation for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5157–5166, 2018. 1
\ No newline at end of file
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/images.zip b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d49b0d0660eb73eb402204c3168daeb3ce359fab
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:826548bda58e2052c43d4d3ce4630a6f0b395611d523efd653dd787df178683d
+size 441115
diff --git a/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/layout.json b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3cc46e6d56db28b39dc0cb92ed8774525f56bf68
--- /dev/null
+++ b/learninglongtermrepresentationsforpersonreidentificationusingradiosignals/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d17583e73cc68fa5edef5810594b38f212834d29114b184f3ed22ec0fb22e3c7
+size 328603
diff --git a/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_content_list.json b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a269b9b05b606258f09d49dc4492eaa48c4e45e8
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43c1eed0da18e12e35bc43e59e00da39c479c098add62bb9cf195e93a11760d7
+size 74935
diff --git a/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_model.json b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..de1b74096180ae4ff6edd6a988cecdfedcc392d9
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b73e310bfa1e36c359bf93748403d21ae1306e68cf637ff06e8d55a58af6219
+size 92615
diff --git a/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_origin.pdf b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..144cadb9b07cde227ff08b8becc8d60334091992
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/a9382137-8ef2-47a1-9168-a123e4ba3072_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b5d11fb1631bd8c2d59efbcfb608ec99c65a990112004ea5c937a5249295f6e
+size 942341
diff --git a/learningmemoryguidednormalityforanomalydetection/full.md b/learningmemoryguidednormalityforanomalydetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..73d1bf078e9f5362e483ee5f6308477a598ad375
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/full.md
@@ -0,0 +1,309 @@
+# Learning Memory-guided Normality for Anomaly Detection
+
+Hyunjong Park*
+
+Jongyoun Noh*
+
+Bumsub Ham†
+
+School of Electrical and Electronic Engineering, Yonsei University
+
+# Abstract
+
+We address the problem of anomaly detection, that is, detecting anomalous events in a video sequence. Anomaly detection methods based on convolutional neural networks (CNNs) typically leverage proxy tasks, such as reconstructing input video frames, to learn models describing normality without seeing anomalous samples at training time, and quantify the extent of abnormalities using the reconstruction error at test time. The main drawbacks of these approaches are that they do not consider the diversity of normal patterns explicitly, and the powerful representation capacity of CNNs allows to reconstruct abnormal video frames. To address this problem, we present an unsupervised learning approach to anomaly detection that considers the diversity of normal patterns explicitly, while lessening the representation capacity of CNNs. To this end, we propose to use a memory module with a new update scheme where items in the memory record prototypical patterns of normal data. We also present novel feature compactness and separateness losses to train the memory, boosting the discriminative power of both memory items and deeply learned features from normal data. Experimental results on standard benchmarks demonstrate the effectiveness and efficiency of our approach, which outperforms the state of the art.
+
+# 1. Introduction
+
+The problem of detecting abnormal events in video sequences, e.g., vehicles on sidewalks, has attracted significant attention over the last decade, which is particularly important for surveillance and fault detection systems. It is extremely challenging for a number of reasons: First, anomalous events are determined differently according to circumstances. Namely, the same activity could be normal or abnormal (e.g., holding a knife in the kitchen or in the park). Manually annotating anomalous events is in this context labor intensive. Second, collecting anomalous datasets requires a lot of effort, as anomalous events rarely happen in real-life situations. Anomaly detection is thus typically deemed to be an unsupervised learning problem, aiming at
+
+
+Figure 1: Distributions of features and memory items of our model on CUHK Avenue [24]. The features and items are shown in points and stars, respectively. The points with the same color are mapped to the same item. The items in the memory capture diverse and prototypical patterns of normal data. The features are highly discriminative and similar image patches are clustered well. (Best viewed in color.)
+
+learning a model describing normality without anomalous samples. At test time, events and activities not described by the model are then considered as anomalies.
+
+There are many attempts to model normality in video sequences using unsupervised learning approaches. At training time, given normal video frames as inputs, they typically extract feature representations and try to reconstruct the inputs again. The video frames of large reconstruction errors are then treated as anomalies at test time. This assumes that abnormal samples are not reconstructed well, as the models have never seen them during training. Recent methods based on convolutional neural networks (CNNs) exploit an autoencoder (AE) [1, 17]. The powerful representation capacity of CNNs allows to extract better feature representations. The CNN features from abnormal frames, on the other hand, are likely to be reconstructed by combining those of normal ones [22, 8]. In this case, abnormal frames have low reconstruction errors, often oc
+
+currying when a majority of the abnormal frames are normal (e.g., pedestrians in a park). In order to lessen the capacity of CNNs, a video prediction framework [22] is introduced that minimizes the difference between a predicted future frame and its ground truth. The drawback of these methods [1, 17, 22] is that they do not detect anomalies directly [35]. They instead leverage proxy tasks for anomaly detection, e.g., reconstructing input frames [1, 17] or predicting future frames [22], to extract general feature representations rather than normal patterns. To overcome this problem, Deep SVDD [35] exploits the one-class classification objective to map normal data into a hypersphere. Specifically, it minimizes the volume of the hypersphere such that normal samples are mapped closely to the center of the sphere. Although a single center of the sphere represents a universal characteristic of normal data, this does not consider various patterns of normal samples.
+
+We present in this paper an unsupervised learning approach to anomaly detection in video sequences considering the diversity of normal patterns. We assume that a single prototypical feature is not enough to represent various patterns of normal data. That is, multiple prototypes (i.e., modes or centroids of features) exist in the feature space of normal video frames (Fig. 1). To implement this idea, we propose a memory module for anomaly detection, where individual items in the memory correspond to prototypical features of normal patterns. We represent video frames using the prototypical features in the memory items, lessening the capacity of CNNs. To reduce the intra-class variations of CNN features, we propose a feature compactness loss, mapping the features of a normal video frame to the nearest item in the memory and encouraging them to be close. Simply updating memory items and extracting CNN features alternatively in turn give a degenerate solution, where all items are similar and thus all features are mapped closely in the embedding space. To address this problem, we propose a feature separateness loss. It minimizes the distance between each feature and its nearest item, while maximizing the discrepancy between the feature and the second nearest one, separating individual items in the memory and enhancing the discriminative power of the features and memory items. We also introduce an update strategy to prevent the memory from recording features of anomalous samples at test time. To this end, we propose a weighted regular score measuring how many anomalies exist within a video frame, such that the items are updated only when the frame is determined as a normal one. Experimental results on standard benchmarks, including UCSD Ped2 [21], CUHK Avenue [24] and ShanghaiTech [26], demonstrate the effectiveness and efficiency of our approach, outperforming the state of the art.
+
+The main contributions of this paper can be summarized as follows:
+
+- We propose to use multiple prototypes to represent the diverse patterns of normal video frames for unsupervised anomaly detection. To this end, we introduce a memory module recording prototypical patterns of normal data on the items in the memory.
+- We propose feature compactness and separateness losses to train the memory, ensuring the diversity and discriminative power of the memory items. We also present a new update scheme of the memory, when both normal and abnormal samples exist at test time.
+- We achieve a new state of the art on standard benchmarks for unsupervised anomaly detection in video sequences. We also provide an extensive experimental analysis with ablation studies.
+
+Our code and models are available online: https:// cvlab.yonsei.ac.kr/projects/MNAD.
+
+# 2. Related work
+
+Anomaly detection. Many works formulate anomaly detection as an unsupervised learning problem, where anomalous data are not available at training time. They typically adopt reconstructive or discriminative approaches to learn models describing normality. Reconstructive models encode normal patterns using representation learning methods such as an AE [48, 36], a sparse dictionary learning [6, 49, 24], and a generative model [43]. Discriminative models characterize the statistical distributions of normal samples and obtain decision boundaries around the normal instances e.g., using Markov random field (MRF) [15], a mixture of dynamic textures (MDT) [28], Gaussian regression [4], and one-class classification [39, 27, 14]. These approaches, however, often fail to capture the complex distributions of high-dimensional data such as images and videos [3].
+
+CNNs have allowed remarkable advances in anomaly detection over the last decade. Many anomaly detection methods leverage reconstructive models [9, 26, 5, 33] exploiting feature representations from e.g., a convolutional AE (Conv-AE) [9], a 3D Conv-AE [50], a recurrent neural network (RNN) [29, 26, 25], and a generative adversarial network (GAN) [33]. Although CNN-based methods outperform classical approaches by large margins, they even reconstruct anomalous samples with a combination of normal ones, mainly due to the representation capacity of CNNs. This problem can be alleviated by using predictive or discriminative models [22, 35]. The work of [22] assumes that anomalous frames in video sequences are unpredictable, and trains a network for predicting future frames rather than the input itself [22]. It achieves a remarkable performance gain over reconstructive models, but at the cost of runtime for estimating optical flow between video frames. It also requires ground-truth optical flow to train a sub-network for computing flow fields. Deep SVDD [35]
+
+
+Figure 2: Overview of our framework for reconstructing a video frame. Our model mainly consists of three parts: an encoder, a memory module, and a decoder. The encoder extracts a query map $\mathbf{q}_t$ of size $H\times W\times C$ from an input video frame $\mathbf{I}_t$ at time $t$ . The memory module performs reading and updating items $\mathbf{p}_m$ of size $1\times 1\times C$ using queries $\mathbf{q}_t^k$ of size $1\times 1\times C$ , where the numbers of items and queries are $M$ and $K$ , respectively, and $K = H\times W$ . The query map $\mathbf{q}_t$ is concatenated with the aggregated (i.e., read) items $\hat{\mathbf{p}}_t$ . The decoder then inputs them to reconstruct the video frame $\hat{\mathbf{I}}_t$ . For the prediction task, we input four successive video frames to predict the fifth one. (Best viewed in color.)
+
+leverages CNNs as mapping functions that transform normal data into the center of the hypersphere, whereas forcing anomalous samples to fall outside the sphere, using the one-class classification objective. Our method also lessens the representation capacity of CNNs but using a different way. We reconstruct or predict a video frame with a combination of items in the memory, rather than using CNN features directly from an encoder, while considering various patterns of normal data. In case of future frame prediction, our model does not require computing optical flow, and thus it is much faster than the current method [22]. Deep-Cascade [37] detects various normal patches using cascaded deep networks. In contrast, our method leverages memory items to record the normal pattern explicitly even in test sequences. Concurrent to our method, Gong et al. introduce a memory-augmented autoencoder (MemAE) for anomaly detection [8]. It also uses CNN features but using a 3D Conv-AE to retrieve relevant memory items that record normal patterns, where the items are updated during training only. Unlike this approach, our model better
+
+records diverse and discriminative normal patterns by separating memory items explicitly using feature compactness and separateness losses, enabling using a small number of items compared to MemAE (10 vs 2,000 for MemAE). We also update the memory at test time, while discriminating anomalies simultaneously, suggesting that our model also memorizes normal patterns of test data.
+
+Memory networks. There are a number of attempts to capture long-term dependencies in sequential data. Long short-term memory (LSTM) [11] addresses this problem using local memory cells, where hidden states of the network record information in the past partially. The memorization performance is, however, limited, as the size of the cell is typically small and the knowledge in the hidden state is compressed. To overcome the limitation, memory networks [45] have recently been introduced. It uses a global memory that can be read and written to, and performs a memorization task better than classical approaches. The memory networks, however, require layer-wise supervision to learn models, making it hard to train them using standard backpropagation. More recent works use continuous memory representations [40] or key-value pairs [30] to read/write memories, allowing to train the memory networks end-to-end. Several works adopt the memory networks for computer vision tasks including visual question answering [19, 7], one-shot learning [38, 13, 2], image generation [51], and video summarization [20]. Our work also exploits a memory module but for anomaly detection with a different memory updating strategy. We record various patterns of normal data to individual items in the memory, and consider each item as a prototypical feature.
+
+# 3. Approach
+
+We show in Fig. 2 an overview of our framework. We reconstruct input frames or predict future ones for unsupervised anomaly detection. Following [22], we input four successive video frames to predict the fifth one for the prediction task. As the prediction can be considered as a reconstruction of the future frame using previous ones, we use almost the same network architecture with the same losses for both tasks. We describe hereafter our approach for the reconstruction task in detail.
+
+Our model mainly consists of three components: an encoder, a memory module, and a decoder. The encoder inputs a normal video frame and extracts query features. The features are then used to retrieve prototypical normal patterns in the memory items and to update the memory. We feed the query features and memory items aggregated (i.e., read) to the decoder for reconstructing the input video frame. We train our model using reconstruction, feature compactness, and feature separateness losses end-to-end. At test time, we use a weighted regular score in order to prevent the memory from being updated by abnormal video frames. We com
+
+
+
+
+Figure 3: Illustration of reading and updating the memory. To read items in the memory, we compute matching probabilities $w_{t}^{k,m}$ in (1) between the query $\mathbf{q}_t^k$ and items $(\mathbf{p}_1,\dots ,\mathbf{p}_M)$ , and apply a weighted average of the items with the probabilities to obtain the feature $\hat{\mathbf{p}}_t^k$ . To update the items, we compute another matching probabilities $v_{t}^{k,m}$ in (4) between the item $\mathbf{p}_m$ and the queries $(\mathbf{q}_t^1,\ldots \mathbf{q}_t^K)$ . We then compute a weighted average of the queries in the set $U_{t}^{m}$ with the corresponding probabilities, and add it to the initial item $\mathbf{p}_m$ in (3). c: cosine similarities; s: a softmax function; w: a weighted average; n: max normalization; $U_{t}^{m}$ : a set of indices for the $m$ -th memory item. See text for details. (Best viewed in color.)
+
+pute the discrepancies between the input frame and its reconstruction and the distances between the query feature and the nearest item in the memory to quantify the extent of abnormalities in a video frame.
+
+# 3.1. Network architecture
+
+# 3.1.1 Encoder and decoder
+
+We exploit the U-Net architecture [34], widely used for the tasks of reconstruction and future frame prediction [22], to extract feature representations from input video frames and to reconstruct the frames from the features. Differently, we remove the last batch normalization [12] and ReLU layers [18] in the encoder, as the ReLU cuts off negative values, restricting diverse feature representations. We instead add an L2 normalization layer to make the features have a com
+
+mon scale. Skip connections in the U-Net architecture may not be able to extract useful features from the video frames especially for the reconstruction task, and our model may learn to copy the inputs for the reconstruction. We thus remove the skip connections for the reconstruction task, while retaining them for predicting future frames. We denote by $\mathbf{I}_t$ and $\mathbf{q}_t$ a video frame and a corresponding feature (i.e., a query) from the encoder at time $t$ , respectively. The encoder inputs the video frame $\mathbf{I}_t$ and gives the query map $\mathbf{q}_t$ of size $H\times W\times C$ , where $H$ , $W$ , $C$ are height, width, and the number of channels, respectively. We denote by $\mathbf{q}_t^k\in \mathbb{R}^C$ ( $k = 1,\dots K$ ), where $K = H\times W$ , individual queries of size $1\times 1\times C$ in the query map $\mathbf{q}_t$ . The queries are then inputted to the memory module to read the items in the memory or to update the items, such that they record prototypical normal patterns. The detailed descriptions of the memory module are presented in the following section. The decoder inputs the queries and retrieved memory items and reconstructs the video frame $\hat{\mathbf{I}}_t$ .
+
+# 3.1.2 Memory
+
+The memory module contains $M$ items recording various prototypical patterns of normal data. We denote by $\mathbf{p}_m \in \mathbb{R}^C$ ( $m = 1, \dots, M$ ) the item in the memory. The memory performs reading and updating the items (Fig. 3).
+
+Read. To read the items, we compute the cosine similarity between each query $\mathbf{q}_t^k$ and all memory items $\mathbf{p}_m$ , resulting in a 2-dimensional correlation map of size $M \times K$ . We then apply a softmax function along a vertical direction, and obtain matching probabilities $w_t^{k,m}$ as follows:
+
+$$
+w _ {t} ^ {k, m} = \frac {\exp \left(\left(\mathbf {p} _ {m}\right) ^ {T} \mathbf {q} _ {t} ^ {k}\right)}{\sum_ {m ^ {\prime} = 1} ^ {M} \exp \left(\left(\mathbf {p} _ {m ^ {\prime}}\right) ^ {T} \mathbf {q} _ {t} ^ {k}\right)}. \tag {1}
+$$
+
+For each query $\mathbf{q}_t^k$ , we read the memory by a weighted average of the items $\mathbf{p}_m$ with the corresponding weights $w_t^{k,m}$ and obtain the feature $\hat{\mathbf{p}}_t^k\in \mathbb{R}^C$ as follows:
+
+$$
+\hat {\mathbf {p}} _ {t} ^ {k} = \sum_ {m ^ {\prime} = 1} ^ {M} w _ {t} ^ {k, m ^ {\prime}} \mathbf {p} _ {m ^ {\prime}}. \tag {2}
+$$
+
+Using all items instead of the closest item allows our model to understand diverse normal patterns, taking into account the overall normal characteristics. That is, we represent the query $\mathbf{q}_t^k$ with a combination of the items $\mathbf{p}_m$ in the memory. We apply the reading operator to individual queries, and obtain a transformed feature map $\hat{\mathbf{p}}_t \in \mathbb{R}^{H \times W \times C}$ (i.e., aggregated items). We concatenate it with the query map $\mathbf{q}_t$ along the channel dimension, and input them to the decoder. This enables the decoder to reconstruct the input frame using normal patterns in the items, lessening the representation capacity of CNNs, while understanding the normality.
+
+Update. For each memory item, we select all queries declared that the item is the nearest one, using the matching
+
+probabilities in (1). Note that multiple queries can be assigned to a single item in the memory. See, for example, Fig. 5 in Sec. 4.3. We denote by $U_{t}^{m}$ the set of indices for the corresponding queries for the $m$ -th item in the memory. We update the item using the queries indexed by the set $U_{t}^{m}$ only as follows:
+
+$$
+\mathbf {p} ^ {m} \leftarrow f \left(\mathbf {p} ^ {m} + \sum_ {k \in U _ {t} ^ {m}} v _ {t} ^ {\prime k, m} \mathbf {q} _ {t} ^ {k}\right), \tag {3}
+$$
+
+where $f(\cdot)$ is the L2 norm. By using a weighted average of the queries, rather than summing them up, we can concentrate more on the queries near the item. To this end, we compute matching probabilities $v_{t}^{k,m}$ similar to (1) but by applying the softmax function to the correlation map of size $M \times K$ along a horizontal direction as
+
+$$
+v _ {t} ^ {k, m} = \frac {\exp \left(\left(\mathbf {p} _ {m}\right) ^ {T} \mathbf {q} _ {t} ^ {k}\right)}{\sum_ {k ^ {\prime} = 1} ^ {K} \exp \left(\left(\mathbf {p} _ {m}\right) ^ {T} \mathbf {q} _ {t} ^ {k ^ {\prime}}\right)}, \tag {4}
+$$
+
+and renormalize it to consider the queries indexed by the set $U_{t}^{m}$ as follows:
+
+$$
+v _ {t} ^ {\prime k, m} = \frac {v _ {t} ^ {k , m}}{\max _ {k ^ {\prime} \in U _ {t} ^ {m}} v _ {t} ^ {k ^ {\prime} , m}}. \tag {5}
+$$
+
+We update memory items recording prototypical features at both training and test time, since normal patterns in training and test sets may be different and they could vary with various factors, e.g., illumination and occlusion. As both normal and abnormal frames are available at test time, we propose to use a weighted regular score to prevent the memory items from recording patterns in the abnormal frames. Given a video frame $\mathbf{I}_t$ , we use the weighted reconstruction error between $\mathbf{I}_t$ and $\hat{\mathbf{I}}_t$ as the regular score $\mathcal{E}_t$ :
+
+$$
+\mathcal {E} _ {t} = \sum_ {i, j} W _ {i j} \left(\hat {\mathbf {I}} _ {t}, \mathbf {I} _ {t}\right) \| \hat {\mathbf {I}} _ {t} ^ {i j} - \mathbf {I} _ {t} ^ {i j} \| _ {2}, \tag {6}
+$$
+
+where the weight function $W_{ij}(\cdot)$ is
+
+$$
+W _ {i j} \left(\hat {\mathbf {I}} _ {t}, \mathbf {I} _ {t}\right) = \frac {1 - \exp \left(- \left\| \hat {\mathbf {I}} _ {t} ^ {i j} - \mathbf {I} _ {t} ^ {i j} \right\| _ {2}\right)}{\sum_ {i , j} 1 - \exp \left(- \left\| \hat {\mathbf {I}} _ {t} ^ {i j} - \mathbf {I} _ {t} ^ {i j} \right\| _ {2}\right)}, \tag {7}
+$$
+
+and $i$ and $j$ are spatial indices. When the score $\mathcal{E}_t$ is higher than a threshold $\gamma$ , we regard the frame $\mathbf{I}_t$ as an abnormal sample, and do not use it for updating memory items. Note that we use this score only when updating the memory. The weight function allows to focus more on the regions of large reconstruction errors, as abnormal activities typically appear within small parts of the video frame.
+
+# 3.2. Training loss
+
+We exploit the video frames as a supervisory signal to discriminate normal and abnormal samples. To train our model, we use reconstruction, feature compactness, and feature separateness losses $(\mathcal{L}_{\mathrm{rec}},\mathcal{L}_{\mathrm{compact}}$ and $\mathcal{L}_{\mathrm{separate}}$ respectively), balanced by the parameters $\lambda_{\mathrm{c}}$ and $\lambda_{\mathrm{s}}$ as follows:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\text {r e c}} + \lambda_ {\mathrm {c}} \mathcal {L} _ {\text {c o m p a c t}} + \lambda_ {\mathrm {s}} \mathcal {L} _ {\text {s e p a r a t e}}. \tag {8}
+$$
+
+Reconstruction loss. The reconstruction loss makes the video frame reconstructed from the decoder similar to its ground truth by penalizing the intensity differences. Specifically, we minimize the L2 distance between the decoder output $\hat{\mathbf{I}}_t$ and the ground truth $\mathbf{I}_t$ :
+
+$$
+\mathcal {L} _ {\mathrm {r e c}} = \sum_ {t} ^ {T} \| \hat {\mathbf {I}} _ {t} - \mathbf {I} _ {t} \| _ {2}, \tag {9}
+$$
+
+where we denote $T$ by the total length of a video sequence. We set the first time step to 1 and 5 for reconstruction and prediction tasks, respectively.
+
+Feature compactness loss. The feature compactness loss encourages the queries to be close to the nearest item in the memory, reducing intra-class variations. It penalizes the discrepancies between them in terms of the L2 norm as:
+
+$$
+\mathcal {L} _ {\text {c o m p a c t}} = \sum_ {t} ^ {T} \sum_ {k} ^ {K} \| \mathbf {q} _ {t} ^ {k} - \mathbf {p} _ {p} \| _ {2}, \tag {10}
+$$
+
+where $p$ is an index of the nearest item for the query $\mathbf{q}_t^k$ defined as,
+
+$$
+p = \underset {m \in M} {\operatorname {a r g m a x}} w _ {t} ^ {k, m}. \tag {11}
+$$
+
+Note that the feature compactness loss and the center loss [44] are similar, as the memory item $\mathbf{p}_p$ corresponds to the center of deep features in the center loss. They are different in that the item in (10) is retrieved from the memory, and it is updated without any supervisory signals, while the cluster center in the center loss is computed directly using the features learned from ground-truth class labels. Note also that our method can be considered as an unsupervised learning of joint clustering and feature representations. In this task, degenerate solutions are likely to be obtained [44, 47]. As will be seen in our experiments, training our model using the feature compactness loss only makes all items similar, and thus all queries are mapped closely in the embedding space, losing the capability of recording diverse normal patterns.
+
+Feature separateness loss. Similar queries should be allocated to the same item in order to reduce the number of items and the memory size. The feature compactness loss in (10) makes all queries and memory items close to each other, as we extract the features (i.e., queries) and update the items alternatively, resulting that all items are similar. The items in the memory, however, should be far enough apart from each other to consider various patterns of normal data. To prevent this problem while obtaining compact feature representations, we propose a feature separateness loss, defined with a margin of $\alpha$ as follows:
+
+$$
+\mathcal {L} _ {\text {s e p a r a t e}} = \sum_ {t} ^ {T} \sum_ {k} ^ {K} \left[ \| \mathbf {q} _ {t} ^ {k} - \mathbf {p} _ {p} \| _ {2} - \| \mathbf {q} _ {t} ^ {k} - \mathbf {p} _ {n} \| _ {2} + \alpha \right] _ {+}, \tag {12}
+$$
+
+where we set the query $\mathbf{q}_t^k$ , its nearest item $\mathbf{p}_p$ and the second nearest item $\mathbf{p}_n$ as an anchor, and positive and hard negative samples, respectively. We denote by $n$ an index of the second nearest item for the query $\mathbf{q}_t^k$ :
+
+$$
+n = \underset {m \in M, m \neq p} {\operatorname {a r g m a x}} w _ {t} ^ {k, m}. \tag {13}
+$$
+
+Note that this is different from the typical use of the triplet loss that requires ground-truth positive and negative samples for the anchor. Our loss encourages the query and the second nearest item to be distant, while the query and the nearest one to be nearby. This has the effect of placing the items far away. As a result, the feature separateness loss allows to update the item nearest to the query, whereas discarding the influence of the second nearest item, separating all items in the memory and enhancing the discriminative power.
+
+# 3.3. Abnormality score
+
+We quantify the extent of normalities or abnormalities in a video frame at test time. We assume that the queries obtained from a normal video frame are similar to the memory items, as they record prototypical patterns of normal data. We compute the L2 distance between each query and the nearest item as follows:
+
+$$
+D \left(\mathbf {q} _ {t}, \mathbf {p}\right) = \frac {1}{K} \sum_ {k} ^ {K} \left\| \mathbf {q} _ {t} ^ {k} - \mathbf {p} _ {p} \right\| _ {2}. \tag {14}
+$$
+
+We also exploit the memory items implicitly to compute the abnormality score. We measure how well the video frame is reconstructed using the memory items. This assumes that anomalous patterns in the video frame are not reconstructed by the memory items. Following [22], we compute the PSNR between the input video frame and its reconstruction:
+
+$$
+P \left(\hat {\mathbf {I}} _ {t}, \mathbf {I} _ {t}\right) = 1 0 \log_ {1 0} \frac {\operatorname* {m a x} \left(\hat {\mathbf {I}} _ {t}\right)}{\| \hat {\mathbf {I}} _ {t} - \mathbf {I} _ {t} \| _ {2} ^ {2} / N}. \tag {15}
+$$
+
+where $N$ is the number of pixels in the video frame. When the frame $\mathbf{I}_t$ is abnormal, we obtain a low value of PSNR and vice versa. Following [22, 8, 26], we normalize each error in (14) and (15) in the range of [0, 1] by a min-max normalization [22]. We define the final abnormality score $S_t$ for each video frame as the sum of two metrics, balanced by the parameter $\lambda$ , as follows:
+
+$$
+\mathcal {S} _ {t} = \lambda (1 - g (P (\hat {\mathbf {I}} _ {t}, \mathbf {I} _ {t}))) + (1 - \lambda) g (D (\mathbf {q} _ {t}, \mathbf {p})), \tag {16}
+$$
+
+where we denote by $g(\cdot)$ the min-max normalization [22] over whole video frames, e.g.,
+
+$$
+g \left(D \left(\mathbf {q} _ {t}, \mathbf {p}\right)\right) = \frac {D \left(\mathbf {q} _ {t} , \mathbf {p}\right) - \operatorname* {m i n} _ {t} \left(D \left(\mathbf {q} _ {t} , \mathbf {p}\right) \right.}{\operatorname* {m a x} _ {t} \left(D \left(\mathbf {q} _ {t} , \mathbf {p}\right)\right) - \operatorname* {m i n} _ {t} \left(D \left(\mathbf {q} _ {t} , \mathbf {p}\right)\right)}. \tag {17}
+$$
+
+# 4. Experiments
+
+# 4.1. Implementation details
+
+Dataset. We evaluate our method on three benchmark datasets and compare the performance with the state of the art. 1) The UCSD Ped2 dataset [21] contains 16 training and 12 test videos with 12 irregular events, including riding a bike and driving a vehicle. 2) The CUHK Avenue dataset [24] consists of 16 training and 21 test videos with 47 abnormal events such as running and throwing stuff. 3) The ShanghaiTech dataset [26] contains 330 training and 107 test videos of 13 scenes. It is the largest dataset among existing benchmarks for anomaly detection.
+
+Training. We resize each video frame to the size of 256 $\times$ 256 and normalize it to the range of [-1, 1]. We set the height $H$ and the width $W$ of the query feature map, and the numbers of feature channels $C$ and memory items $M$ to 32, 32, 512 and 10, respectively. We use the Adam optimizer [16] with $\beta_{1} = 0.9$ and $\beta_{2} = 0.999$ , with a batch size of 4 for 60, 60, and 10 epochs on UCSD Ped2 [21], CUHK Avenue [24], and ShanghaiTech [26], respectively. We set initial learning rates to 2e-5 and 2e-4, respectively, for reconstruction and prediction tasks, and decay them using a cosine annealing method [23]. For the reconstruction task, we use a grid search to set hyper-parameters on the test split of UCSD Ped1 [21]: $\lambda_{\mathrm{c}} = 0.01$ , $\lambda_{\mathrm{s}} = 0.01$ , $\lambda = 0.7$ , $\alpha = 1$ and $\gamma = 0.015$ . We use different parameters for the prediction task similarly chosen using a grid search: $\lambda_{\mathrm{c}} = 0.1$ , $\lambda_{\mathrm{s}} = 0.1$ , $\lambda = 0.6$ , $\alpha = 1$ and $\gamma = 0.01$ . All models are trained end-to-end using PyTorch [32], taking about 1, 15 and 36 hours for UCSD Ped2, CUHK Avenue, and ShanghaiTech, respectively, with an Nvidia GTX TITAN Xp.
+
+# 4.2. Results
+
+Comparison with the state of the art. We compare in Table 1 our models with the state of the art for anomaly detection on UCSD Ped2 [21], CUHK Avenue [24], and ShanghaiTech [26]. Following the experimental protocol in [22, 8, 26], we measure the average area under curve (AUC) by computing the area under the receiver operation characteristics (ROC) with varying threshold values for abnormality scores. We report the AUC performance of our models using memory modules for the tasks of frame reconstruction and future frame prediction. For comparison, we also provide the performance without the memory module. The suffices $-R$ and $-P$ indicate the reconstruction and prediction tasks, respectively.
+
+From the table, we observe three things: (1) Our model with the prediction task (Ours-P w/ Mem.) gives the best results on UCSD Ped2 and CUHK Avenue, achieving the average AUC of $97.0\%$ and $88.5\%$ , respectively. This demonstrates the effectiveness of our approach to exploiting a memory module for anomaly detection. Although our method is outperformed by Frame-Pred [22] on Shang-
+
+Table 1: Quantitative comparison with the state of the art for anomaly detection. We measure the average AUC (\%) on UCSD Ped2 [21], CUHK Avenue [24], and ShanghaiTech [26]. Numbers in bold indicate the best performance and underscored ones are the second best.
+
+| Methods | Ped2 [21] | Avenue [24] | Shanghai [26] |
| 1 | MPPCA [15] | 69.3 | - | - |
| MPPC+SFA [15] | 61.3 | - | - |
| MDT [28] | 82.9 | - | - |
| AMDN [46] | 90.8 | - | - |
| Unmasking [41] | 82.2 | 80.6 | - |
| MT-FRCN [10] | 92.2 | - | - |
| AMC [31] | 96.2 | 86.9 | - |
| Recon. | ConvAE [9] | 85.0 | 80.0 | 60.9 |
| TSC [26] | 91.0 | 80.6 | 67.9 |
| StackRNN [26] | 92.2 | 81.7 | 68.0 |
| AbnormalGAN [33] | 93.5 | - | - |
| MemAE w/o Mem. [8] | 91.7 | 81.0 | 69.7 |
| MemAE w/ Mem. [8] | 94.1 | 83.3 | 71.2 |
| Ours-R w/o Mem. | 86.4 | 80.6 | 65.8 |
| Ours-R w/ Mem. | 90.2 | 82.8 | 69.8 |
| Pred. | Frame-Pred [22] | 95.4 | 85.1 | 72.8 |
| Ours-P w/o Mem. | 94.3 | 84.5 | 66.8 |
| Ours-P w/ Mem. | 97.0 | 88.5 | 70.5 |
+
+haiTech, it uses additional modules for estimating optical flow, which requires more network parameters and ground-truth flow fields. Moreover, Frame-Pred leverages an adversarial learning framework, taking lots of effort to train the network. On the contrary, our model uses a simple AE for extracting features and predicting the future frame, and thus it is much faster than Frame-Pred (67 fps vs. 25 fps). This suggests that our model offers a good compromise in terms of AUC and runtime; (2) Our model with the reconstruction task (Ours-R w/ Mem.) shows the competitive performance compared to other reconstructive methods on UCSD Ped2, and outperforms them on other datasets, except MemAE [8]. Note that MemAE exploits 3D convolutions with 2,000 memory items of size 256. On the contrary, our model uses 2D convolutions and it requires 10 items of size 512. It is thus computationally much cheaper than MemAE: 67 fps for our model vs. 45 fps for MemAE; (3) Our memory module boosts the AUC performance significantly regardless of the tasks on all datasets. For example, the AUC gains are $2.7\%$ , $4.0\%$ , and $3.7\%$ on UCSD Ped2, CUHK Avenue, and ShanghaiTech, respectively, for the prediction task. This indicates that the memory module is generic and it can be added to other anomaly detection methods.
+
+Runtime. With an Nvidia GTX Titan Xp, our current implementation takes on average 0.015 seconds to determine abnormality for an image of size $256 \times 256$ on UCSD Ped2 [21]. Namely, we achieve 67 fps for anomaly detection, which is much faster than other state-of-the-art meth
+
+
+Figure 4: Qualitative results for future frame prediction on (top to bottom) UCSD Ped2 [21], CUHK Avenue [24], and ShanghaiTech [26]: input frames (left); prediction error (middle); abnormal regions (right). We can see that our model localizes the regions of abnormal events. Best viewed in color.
+
+ods based on CNNs, e.g., 20 fps for Unmasking [41], 50 fps for StackRNN [26], 25 fps for Frame-Pred [22], and 45 fps for MemAE [8] with the same setting as ours.
+
+Qualitative results. We show in Fig. 4 qualitative results of our model for future frame prediction on UCSD Ped2 [21], CUHK Avenue [24], and ShanghaiTech [26]. It shows input frames, prediction error, and abnormal regions overlaid to the frame. For visualizing the anomalies, we compute pixel-wise abnormality scores similar to (16). We then mark the regions whose abnormality scores are larger than the average value within the frame. We can see that 1) normal regions are predicted well, while abnormal regions are not, and 2) abnormal events, such as the appearance of vehicle, jumping and fight on UCSD Ped2, CUHK Avenue, and ShanghaiTech, respectively, are highlighted.
+
+# 4.3. Discussions
+
+Ablation study. We show an ablation analysis on different components of our models in Table 2. We report the AUC performance for the variants of our models for reconstruction and prediction tasks on UCSD Ped2 [21]. As the AUC performance of both tasks shows a similar trend, we describe the results for the frame reconstruction in detail.
+
+We train the baseline model in the first row with the reconstruction loss, and use PSNR only to compute abnormality scores. From the second row, we can see that our model with the memory module gives better results. The third row shows that the AUC performance even drops when the feature compactness loss is additionally used, as the memory
+
+Table 2: Quantitative comparison for variants of our model. We measure the average AUC (\%) on UCSD Ped2 [21].
+
+| Task | Memory module | Lcompact | Lseparate | Et | St | Ped2 [21] |
| Recon. | X | - | - | - | - | 86.4 |
| ✓ | X | X | ✓ | ✓ | 86.9 |
| ✓ | ✓ | X | ✓ | ✓ | 86.4 |
| ✓ | X | ✓ | ✓ | ✓ | 89.3 |
| ✓ | ✓ | ✓ | X | ✓ | 87.1 |
| ✓ | ✓ | ✓ | ✓ | X | 89.0 |
| ✓ | ✓ | ✓ | ✓ | ✓ | 90.2 |
| Pred. | - |
| X |
| X |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| ✓ |
| Query features | Query features |
| Memory items | Memory items |
+
+items are not discriminative. The last row demonstrates that the feature separateness loss boosts the performance drastically. It provides the AUC gain of $3.8\%$ , which is quite significant. The last four rows indicate that 1) feature compactness and separateness losses are complementary, 2) updating the memory item using $\mathcal{E}_t$ with normal frames only at test time largely boosts the AUC performance, and 3) our abnormality score $\mathcal{S}_t$ , using both PSNR and memory items, quantifies the extent of anomalies better than the one based on PSNR only.
+
+Memory items. We visualize in Fig. 5 matching probabilities in (1) from the model trained with/without the feature separateness loss for the reconstruction task on UCSD Ped2 [21]. We observe that each query is highly activated on a few items with the separateness loss, demonstrating that the items and queries are highly discriminative, allowing the sparse access of the memory. This also indicates that abnormal samples are not likely to be reconstructed with a combination of memory items.
+
+Feature distribution. We visualize in Fig. 6 the distribution of query features for the reconstruction task, randomly chosen from UCSD Ped2 [21], learned with and without the feature separateness loss. We can see that our model trained
+
+
+Figure 5: Visualization of matching probabilities in (1) learned with (left) and without (right) the feature separateness loss (blue: low, yellow: high). We randomly select 10 query features for the purpose of visualization. Best viewed in color.
+Figure 6: t-SNE [42] visualization for query features and memory items. We randomly sample 10K query features, learned with (left) and without (right) the feature separateness loss, from UCSD Ped2 [24]. The features and memory items are shown in points and stars, respectively. The points with the same color are mapped to the same item. The feature separateness loss enables separating the items, recording the diverse prototypes of normal data. Best viewed in color.
+
+without the separateness loss loses the discriminability of memory items, and thus all features are mapped closely in the embedding space. The separateness loss allows to separate individual items in the memory, suggesting that it enhances the discriminative power of query features and memory items significantly. We can also see that our model gives compact feature representations.
+
+Reconstruction with motion cues. Following [8], we use multiple frames for the reconstruction task. Specifically, we input sixteen successive video frames to reconstruct the ninth one. This achieves AUC of $91.0\%$ for UCSD Ped2, providing the AUC gain of $0.8\%$ but requiring more network parameters ( $\sim 4\mathrm{MB}$ ).
+
+# 5. Conclusion
+
+We have introduced an unsupervised learning approach to anomaly detection in video sequences that exploits multiple prototypes to consider the various patterns of normal data. To this end, we have suggested to use a memory module to record the prototypical patterns to the items in the memory. We have shown that training the memory using feature compactness and separateness losses separates the items, enabling the sparse access of the memory. We have also presented a new memory update scheme when both normal and abnormal samples exist, which boosts the performance of anomaly detection significantly. Extensive experimental evaluations on standard benchmarks demonstrate the our model outperforms the state of the art.
+
+Acknowledgments. This research was partly supported by Samsung Electronics Company, Ltd., Device Solutions under Grant, Deep Learning based Anomaly Detection, 2018-2020, and R&D program for Advanced Integrated-intelligence for Identification (AIID) through the National Research Foundation of KOREA(NRF) funded by Ministry of Science and ICT (NRF-2018M3E3A1057289).
+
+# References
+
+[1] Yoshua Bengio, Pascal Lamblin, Dan Popovici, and Hugo Larochelle. Greedy layer-wise training of deep networks. In NIPS, 2007. 1, 2
+[2] Qi Cai, Yingwei Pan, Ting Yao, Chenggang Yan, and Tao Mei. Memory matching networks for one-shot image recognition. In CVPR, 2018. 3
+[3] Raghavendra Chalapathy and Sanjay Chawla. Deep learning for anomaly detection: A survey. arXiv preprint arXiv:1901.03407, 2019. 2
+[4] Kai-Wen Cheng, Yie-Tarng Chen, and Wen-Hsien Fang. Video anomaly detection and localization using hierarchical feature representation and gaussian process regression. In CVPR, 2015. 2
+[5] Yong Shean Chong and Yong Haur Tay. Abnormal event detection in videos using spatiotemporal autoencoder. In ISNN, 2017. 2
+[6] Yang Cong, Junsong Yuan, and Ji Liu. Sparse reconstruction cost for abnormal event detection. In CVPR, 2011. 2
+[7] Chenyou Fan, Xiaofan Zhang, Shu Zhang, Wensheng Wang, Chi Zhang, and Heng Huang. Heterogeneous memory enhanced multimodal attention model for video question answering. In CVPR, 2019. 3
+[8] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh, and Anton van den Hengel. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In ICCV, 2019. 1, 3, 6, 7, 8
+[9] Mahmudul Hasan, Jonghyun Choi, Jan Neumann, Amit K Roy-Chowdhury, and Larry S Davis. Learning temporal regularity in video sequences. In CVPR, 2016. 2, 7
+[10] Ryota Hinami, Tao Mei, and Shin'ichi Satoh. Joint detection and recounting of abnormal events by learning deep generic knowledge. In ICCV, 2017. 7
+[11] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997. 3
+[12] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. 4
+[13] Lukasz Kaiser, Ofir Nachum, Aurko Roy, and Samy Bengio. Learning to remember rare events. In ICLR, 2017. 3
+[14] Vagia Kaltsa, Alexia Briassouli, Ioannis Kompatsiaris, Leontios J Hadjileontiadis, and Michael Gerasimos Strintzis. Swarm intelligence for detecting interesting events in crowded environments. IEEE TIP, 2015. 2
+[15] Jaechul Kim and Kristen Grauman. Observe locally, infer globally: a space-time MRF for detecting abnormal activities with incremental updates. In CVPR, 2009. 2, 7
+[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 6
+[17] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 1, 2
+[18] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, 2012. 4
+
+[19] Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In ICML, 2016. 3
+[20] Sangho Lee, Jinyoung Sung, Youngjae Yu, and Gunhee Kim. A memory network approach for story-based temporal summarization of 360 videos. In CVPR, 2018. 3
+[21] Weixin Li, Vijay Mahadevan, and Nuno Vasconcelos. Anomaly detection and localization in crowded scenes. IEEE TPAMI, 2013. 2, 6, 7, 8
+[22] Wen Liu, Weixin Luo, Dongze Lian, and Shenghua Gao. Future frame prediction for anomaly detection-a new baseline. In CVPR, 2018. 1, 2, 3, 4, 6, 7
+[23] Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016. 6
+[24] Cewu Lu, Jianping Shi, and Jiaya Jia. Abnormal event detection at 150 FPS in MATLAB. In ICCV, 2013. 1, 2, 6, 7
+[25] Weixin Luo, Wen Liu, and Shenghua Gao. Remembering history with convolutional LSTM for anomaly detection. In ICME, 2017. 2
+[26] Weixin Luo, Wen Liu, and Shenghua Gao. A revisit of sparse coding based anomaly detection in stacked RNN framework. In ICCV, 2017. 2, 6, 7
+[27] Junshui Ma and Simon Perkins. Time-series novelty detection using one-class support vector machines. In IJCNN, 2003. 2
+[28] Vijay Mahadevan, Weixin Li, Viral Bhalodia, and Nuno Vasconcelos. Anomaly detection in crowded scenes. In CVPR, 2010. 2, 7
+[29] Jefferson Ryan Medel and Andreas Savakis. Anomaly detection in video using predictive convolutional long short-term memory networks. arXiv preprint arXiv:1612.00390, 2016. 2
+[30] Alexander Miller, Adam Fisch, Jesse Dodge, Amir-Hossein Karimi, Antoine Bordes, and Jason Weston. Key-value memory networks for directly reading documents. In EMNLP, 2016. 3
+[31] Trong-Nguyen Nguyen and Jean Meunier. Anomaly detection in video sequence with appearance-motion correspondence. In ICCV, 2019. 7
+[32] 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. 6
+[33] Mahdyar Ravanbakhsh, Moin Nabi, Enver Sangineto, Lucio Marcenaro, Carlo Regazzoni, and Nicu Sebe. Abnormal event detection in videos using generative adversarial nets. In ICIP, 2017. 2, 7
+[34] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 4
+[35] Lukas Ruff, Robert Vandermeulen, Nico Goernitz, Lucas Deecke, Shoaib Ahmed Siddiqui, Alexander Binder, Emmanuel Müller, and Marius Kloft. Deep one-class classification. In ICML, 2018. 2
+
+[36] Mohammad Sabokrou, Mahmood Fathy, Mojtaba Hoseini, and Reinhard Klette. Real-time anomaly detection and localization in crowded scenes. In CVPRW, 2015. 2
+[37] Mohammad Sabokrou, Mohsen Fayyaz, Mahmood Fathy, and Reinhard Klette. Deep-Cascade: Cascading 3d deep neural networks for fast anomaly detection and localization in crowded scenes. IEEE TIP, 2017. 3
+[38] Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Meta-learning with memory-augmented neural networks. In ICML, 2016. 3
+[39] Bernhard Scholkopf, John C Platt, John Shawe-Taylor, Alex J Smola, and Robert C Williamson. Estimating the support of a high-dimensional distribution. Neural computation, 2001. 2
+[40] Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In NIPS, 2015. 3
+[41] Radu Tudor Ionescu, Sorina Smeureanu, Bogdan Alexe, and Marius Popescu. Unmasking the abnormal events in video. In ICCV, 2017. 7
+[42] Laurens Van Der Maaten. Accelerating t-SNE using tree-based algorithms. JMLR, 2014. 8
+[43] Namrata Vaswani, Amit K Roy-Chowdhury, and Rama Chellappa. "Shape Activity": A continuous-state hmm for moving/deforming shapes with application to abnormal activity detection. IEEE TIP, 2005. 2
+[44] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In ECCV, 2016. 5
+[45] Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. In ICLR, 2015. 3
+[46] Dan Xu, Yan Yan, Elisa Ricci, and Nicu Sebe. Detecting anomalous events in videos by learning deep representations of appearance and motion. CVIU, 2017. 7
+[47] Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In CVPR, 2016. 5
+[48] Shuangfei Zhai, Yu Cheng, Weining Lu, and Zhongfei Zhang. Deep structured energy based models for anomaly detection. arXiv preprint arXiv:1605.07717, 2016. 2
+[49] Bin Zhao, Li Fei-Fei, and Eric P Xing. Online detection of unusual events in videos via dynamic sparse coding. In CVPR, 2011. 2
+[50] Yiru Zhao, Bing Deng, Chen Shen, Yao Liu, Hongtao Lu, and Xian-Sheng Hua. Spatio-temporal autoencoder for video anomaly detection. In ACM MM, 2017. 2
+[51] Minfeng Zhu, Pingbo Pan, Wei Chen, and Yi Yang. DMGAN: Dynamic memory generative adversarial networks for text-to-image synthesis. In CVPR, 2019. 3
\ No newline at end of file
diff --git a/learningmemoryguidednormalityforanomalydetection/images.zip b/learningmemoryguidednormalityforanomalydetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e8d5e9595a393e68b8cbf6a114dbc050d560747d
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9e202df5456da3e10f1e3248f0b952325b826a36d3e2138b2793934f4f2f95b7
+size 404757
diff --git a/learningmemoryguidednormalityforanomalydetection/layout.json b/learningmemoryguidednormalityforanomalydetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d40b1a7c055fb9872b0cdc68d83495d1f459dfc3
--- /dev/null
+++ b/learningmemoryguidednormalityforanomalydetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:33df2f427cfc0859afbf4b0b8cd491e709fc3711ff2dbfab8fbd219f63dcd466
+size 393167
diff --git a/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_content_list.json b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..24252076d69e32f7a1d0b55185e579b25e18cd21
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13a24cd18f42a596b16af4ce4ff7fff9d903381fdad40b92dc05c57f2f7fb6b7
+size 82708
diff --git a/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_model.json b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5d6d3f99077a24942a1fe105b531f16f0de76ac4
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:94b4255cb5c7c7d92765b555a03424864e48d843ce4f6e35c9e98c89fa469b97
+size 98429
diff --git a/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_origin.pdf b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8f6f2f4f131edf0821fa45f528276e7cb9301322
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/5f6ee0c2-5b4e-427d-a263-99f6e03bb871_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9896e6aaba5d9f5b5ec72c638c67f97a601e03c51e534c3f4434aaf3b08d1b3c
+size 3057555
diff --git a/learningmetafacerecognitioninunseendomains/full.md b/learningmetafacerecognitioninunseendomains/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..cddf19762f79df2647d063bf8ff674f916751063
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/full.md
@@ -0,0 +1,307 @@
+# Learning Meta Face Recognition in Unseen Domains
+
+Jianzhu Guo $^{1,2}$ Xiangyu Zhu $^{1,2}$ Chenxu Zhao $^{3}$ Dong Cao $^{1,2}$ Zhen Lei $^{1,2*}$ Stan Z. Li $^{4}$
+
+1CBSR & NLPR, Institute of Automation, Chinese Academy of Sciences, Beijing, China
+
+$^{2}$ School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China
+
+3Mininglamp Academy of Sciences, Mininglamp Technology
+
+$^{4}$ School of Engineering, Westlake University, Hangzhou, China
+
+{jianzhu.guo, xiangyu.zhu, dong.cao, zlei, szli}@nlpr.ia.ac.cn, zhaochenxu@mininglamp.com
+
+# Abstract
+
+Face recognition systems are usually faced with unseen domains in real-world applications and show unsatisfactory performance due to their poor generalization. For example, a well-trained model on webface data cannot deal with the ID vs. Spot task in surveillance scenario. In this paper, we aim to learn a generalized model that can directly handle new unseen domains without any model updating. To this end, we propose a novel face recognition method via meta-learning named Meta Face Recognition (MFR). MFR synthesizes the source/target domain shift with a meta-optimization objective, which requires the model to learn effective representations not only on synthesized source domains but also on synthesized target domains. Specifically, we build domain-shift batches through a domain-level sampling strategy and get back-propagated gradients/metagradient on synthesized source/target domains by optimizing multi-domain distributions. The gradients and metagradient are further combined to update the model to improve generalization. Besides, we propose two benchmarks for generalized face recognition evaluation. Experiments on our benchmarks validate the generalization of our method compared to several baselines and other state-of-the-arts. The proposed benchmarks and code will be available at https://github.com/clearusk/MFR.
+
+# 1. Introduction
+
+Face recognition is a long-standing topic in the research community. Recent works [1,2,3,4,5,6,7,8] have pushed the performance to a very high level on several common benchmarks, e.g. LFW [9], YTF [10] and MegaFace [11]. These methods are based on the assumption that the training sets like CASIA-Webface [12], MS-Celeb [13] and testing sets have similar distribution. However, in real-world ap
+
+
+Figure 1: An illustration of our MFR for generalized face recognition problem. The left column contains four source domains of different races, the right includes five target domains: cross-age (CACD-VS), NIR-VIS face matching (CASIA NIR-VIS 2.0), large pose (Multi-PIE), eyeglass occlusion (MeGlass) and ID vs. Spot (Public-IvS), which are unseen in training. By meta-learning on the simulated metatrain/meta-test shifts in source domains, our model learns the transferable knowledge across domains to generalize well on target unseen domains.
+
+plications of face recognition, the model trained on source domains $\mathcal{D}_S$ is usually deployed in another domain $\mathcal{D}_T$ with a different distribution. There are two kinds of scenarios: (i) the target domain $\mathcal{D}_T$ is known and the data is accessible. (ii) the target domain is unseen. Approaches to the first scenario are categorized into domain adaptation for face recognition, where the common setting is that the source domain $\mathcal{D}_S$ contains a labelled face domain and the target domain $\mathcal{D}_T$ is with or without labels. Domain adaption methods try to adapt the knowledge learned from $\mathcal{D}_S$ to $\mathcal{D}_T$ so that the model generalizes well on $\mathcal{D}_T$ . The second scenario can be regarded as domain generalization for face recognition, and we call it Generalized Face Recognition, which is more common as the trained model is usually deployed in unknown scenarios and faced with unseen data. As illustrated in Fig. 1, the deployed model should be able to generalize to unseen domains without any updating or fine-tuning.
+
+Compared with domain adaptation, generalized face recognition is less studied and more challenging, since it makes no assumptions about target domains. To the best of our knowledge, there are no relative studies on generalized face recognition problem. A related task is domain generalization on visual recognition, it assumes that the source and target domains share the same label space, and has a small set, e.g., 7 categories [14]. However, generalized face recognition is an open-set problem and has a much larger scale of categories, making existing methods inapplicable.
+
+In this paper, we aim to learn a model for generalized face recognition problem. Once trained on a set of source domains, the model can be directly deployed on an unseen domain without any model updating. Inspired by [14, 15], we propose a novel face recognition framework via meta-learning named Meta Face Recognition (MFR). MFR simulates the source/target domain shift with a meta-optimization objective, which optimizes the model to learn effective face representations not only on synthesized source domains but also on synthesized target domains. Specifically, a domain-level sampling strategy is adopted to simulate the domain shift such that source domains are divided into meta-train/meta-test domains. To optimize multi-domain distributions, we propose three components: 1) the hard-pair attention loss optimizes the local distribution with hard pairs, 2) soft-classification loss considers the global relationship within a batch and 3) domain alignment loss learns to reduce meta-train domains discrepancy by aligning domain centers. These three losses are combined to learn domain-invariant and discriminative face representations. The gradients from meta-train domains and meta-gradients from meta-test domains are finally aggregated by meta-optimization, and are then used to update the network to improve model generalization. Compared with traditional meta-learning methods, our MFR does not need model updating for target domains and can directly handle unseen domains.
+
+Our main contributions include: (i) For the first time, we highlight the generalized face recognition problem, which requires a trained model to generalize well on unseen domains without any updating. (ii) We propose a novel Meta Face Recognition (MFR) framework to solve generalized face recognition, which meta-learns transferable knowledge across domains to improve model generalization. (iii) Two generalized face recognition benchmarks are designed for evaluation. Extensive experiments on the proposed benchmarks validate the efficacy of our method.
+
+# 2. Related work
+
+Domain Generalization. Domain generalization can be traced back to [16, 17]. DICA [17] adopts the kernel-based optimization to learn domain-invariant features. CCSA [18] can handle both domains adaptation and domain generaliza
+
+tion problems by aligning a source domain distribution to a target domain distribution. MLDG [14] firstly applies the meta-learning method MAML [15] for domain generalization. Compared with domain adaptation, domain generalization is a less investigated problem. Besides, the above domain generalization works mainly focus on the closed-set category-level recognition problems, where the source and target domains share the same label space. In contrast, our generalized face recognition problem is much more challenging because the target classes are disjoint from the source ones. It means that generalized face recognition is an open-set problem rather than the closed-set problem like MLDG [14], and we must handle the domain gap and the disjoint label space simultaneously. One related work is DIMN [19], but it differs from ours in both task and method.
+
+Meta Learning. Recent meta-learning studies concentrate on: (i) learning a good weight initialization for fast adaptation on a new task, such as the foundational work MAML [15] and its variants Reptile [20], meta-transfer learning [21], iMAML [22] and so on. (ii) learning an embedding space with a well-designed classifier that can directly classify samples on a new task without fast adaptation [23, 24, 25]. (iii) learning to predict the classification parameters [26, 27] after pre-training a good feature extractor on the whole training set. These works focus on few-shot learning, where the common setting is that the target task has very few data points (1/5/20 shots per class). In contrast, generalized face recognition should handle thousands of classes, making it more challenging and generally applicable. Our approach is most related to MAML [15] that tries to learn a transferable weight initialization. However, MAML requires fast adaptation on a target task, while our MFR does not require any model updating as target domains are unseen.
+
+# 3. Methodology
+
+This section describes the proposed MFR to address generalized face recognition problem. MFR consists of three parts: (i) the domain-level sampling strategy. (ii) three losses for optimizing multi-domain distributions to learn domain-invariant and discriminative face representations. (iii) the meta-optimization procedure to improve model generalization, shown in Fig. 3. The overview is shown in Fig. 2 and Algorithm 1.
+
+# 3.1. Overview
+
+In the training stage, we have access to $N$ source domains $\mathcal{D}_S = \{\mathcal{D}_1^S,\dots ,\mathcal{D}_N^S\mid N > 1\}$ , and each domain $\mathcal{D}_i^S = \{(x_j^i,y_j^i)\}$ has its own label set. In the testing phase, the trained model is evaluated on one or several unseen target domains, $\mathcal{D}_T = \{\mathcal{D}_1^T,\dots ,\mathcal{D}_M^T\mid M\geq 1\}$ , without any model updating. Besides, the label sets $\mathcal{V}_T$ of the target domains are disjoint from the label sets $\mathcal{V}_S$ of source domains,
+
+
+Figure 2: Overview of our proposed MFR. Three source domains are presented in this figure for a demonstration. Each symbol represents a face image for convenience. MFR consists of three parts: domain-level sampling for simulating domain shifts, multi-domain distributions optimization to learn face representations and meta-optimization procedure to improve model generalization. Once trained on source domains, the model can be directly deployed on target unseen domains.
+
+thus making ours problem open-set. During training, we define a single model represented by a parametrized function $f(\theta)$ with parameters $\theta$ . Our proposed MFR aims to train $\theta$ on source domains $\mathcal{D}_S$ , such that it can generalize well on target unseen domains $\mathcal{D}_T$ , as illustrated in Fig. 1.
+
+# 3.2. Domain-level Sampling
+
+To achieve domain generalization, we split source domains into meta-train and meta-test domains during each training iteration. Specifically, we split $N$ source domains $\mathcal{D}_S$ into $N - 1$ domains $\mathcal{D}_{mtr}$ for meta-train and 1 target domain $\mathcal{D}_{mte}$ for meta-test, simulating the domain shift problem existed when deployed in real-world scenarios. In this way, the model is encouraged to learn transferable knowledge about how to generalize well on the unseen domains with different distributions. We further build a meta-batch consisting of several batches as follows: (i) we iterate on $N$ source domains; (ii) in the $i$ -th iteration, $\mathcal{D}_i^S$ is selected as the meta-test domain $\mathcal{D}_{mte}$ ; (iii) the rest ones as metatrain domains $\mathcal{D}_{mtr}$ ; (iv) we randomly choose $B$ identities in meta-train domains and $B$ identities in meta-test domain, and two face images are selected for each identity, in which one as the gallery the other one as probe. Therefore, a metabatch of $N$ batches is built. Our model is then updated by the accumulated gradients of each meta-batch. The details are illustrated in Algorithm 1. Different from MAML [15], our sampling is domain-level for open-set face recognition. MLDG [14] also performs a similar sampling, but their domains are randomly divided in each training iteration and no meta-batch is built.
+
+# 3.3. Optimizing Multi-domain Distributions
+
+To aggregate back-propagated gradients within each batch, we optimize multi-domain distributions such that the same identities are mapped into nearby representation and different identities are mapped apart from each other. Traditional metric losses like contrastive [28, 29] and triplet [3] take randomly sampled pairs or triplets to build the training batches. These batches consist of lots of easy pairs or triplets, leading to the slow convergence of training. To alle
+
+viate it, we propose to optimize and learn domain-invariant and discriminative representations with three components. The hard-pair attention loss optimizes the local distribution with hard pairs, the soft-classification loss considers the global distribution within a batch and the domain alignment loss learns to align domain centers.
+
+Hard-pair Attention Loss. Hard-pair attention loss focuses on optimizing hard positive and negative pairs. A batch of $B$ identities are sampled and each identity contains a gallery face and a probe face. We denote the input as $\mathcal{X}$ , the gallery and probe embeddings are extracted: $F_{g} = f(\mathcal{X}_{g};\theta)\in R^{B\times C}$ , $F_{p} = f(\mathcal{X}_{p};\theta)\in R^{B\times C}$ , where $C$ is the dimension length. After $l_{2}$ normalization on $F_{g}$ and $F_{p}$ , we can efficiently construct a similarity matrix by computing $M = F_{g}F_{p}^{T}\in R^{B\times B}$ . Then we use a positive threshold $\tau_{p}$ and negative threshold $\tau_{n}$ to filter out the hard positive pairs and negative pairs: $\mathcal{P} = \{i|M_{i,i} < \tau_p\}$ and $\mathcal{N} = \{(i,j)|M_{i,j} > \tau_p, i\neq j\}$ . This operation just needs $O(B^2\log (B))$ complexity and it can be formulated as:
+
+$$
+\mathcal {L} _ {h p} = \frac {1}{2 | \mathcal {P} |} \sum_ {i \in \mathcal {P}} \| F _ {g _ {i}} - F _ {p _ {i}} \| _ {2} ^ {2} - \frac {1}{2 | \mathcal {N} |} \sum_ {(i, j) \in \mathcal {N}} \| F _ {g _ {i}} - F _ {p _ {j}} \| _ {2} ^ {2}, \tag {1}
+$$
+
+where $\mathcal{P}$ is indices of hard positive pairs determined by $\tau_{p}$ , $\mathcal{N}$ is indices of hard negative pairs determined by $\tau_{n}$ .
+
+Soft-classification Loss. Hard-pair attention loss only concentrates on hard pairs and tends to converge to a local optimum. To alleviate it, we introduce a specific soft-classification loss to perform classification within a batch. The loss is formulated as:
+
+$$
+\mathcal {L} _ {c l s} = \frac {1}{2 B} \sum_ {i = 1} ^ {B} \left(\mathrm {C E} \left(y _ {i}, s \cdot F _ {g _ {i}} W ^ {T}\right) + \mathrm {C E} \left(y _ {i}, s \cdot F _ {p _ {i}} W ^ {T}\right)\right), \tag {2}
+$$
+
+where $y_{i} = i$ indicates the i-th identity, $F_{g_i}W^T$ or $F_{p_i}W^T$ is the logit of i-th identity and $s$ is a fixed scaling factor. $W$ is initialized as $(F_{g} + F_{p}) / 2\in R^{B\times C}$ and each row of $W$ is $l_{2}$ normalized.
+
+
+Figure 3: Overview of the meta-optimization procedure in a meta-batch. Given three source domains $\mathcal{D}_{1,2,3}$ , a meta-batch contains three meta-train/meta-test divisions: $\mathcal{D}_{2,3} / \mathcal{D}_1$ , $\mathcal{D}_{1,3} / \mathcal{D}_2$ , $\mathcal{D}_{1,2} / \mathcal{D}_3$ . Each division contributes a gradient from meta-train and a meta-gradient from meta-test. The model is finally updated towards a direction that performs well on both meta-train and meta-test domains by accumulating all the gradients and meta-gradients.
+
+Domain Alignment Loss. We find negative pairs across meta-train domains tend to be easier than within domains. By adding a domain alignment regularization to make the embeddings domain-invariant, we can reduce domain gap of different meta-train domains. Besides, negative pairs across meta-train domains become harder, which is beneficial to learn more discriminative representations. To perform domain alignment, we make the mean embeddings of multiple meta-train domains close to each other. Specifically, we first calculate the embedding center of all mean embeddings of meta-train domains, then optimize the discrepancies between all mean embeddings and this embedding center. The domain alignment loss is only applied on meta-train domains, as meta-test has only one domain. The loss is formulated as:
+
+$$
+c _ {j} = \frac {1}{B} \sum_ {i = 1} ^ {B} \left(\left(F _ {g _ {i}} ^ {\mathcal {D} _ {j}} + F _ {p _ {i}} ^ {\mathcal {D} _ {j}}\right) / 2\right),
+$$
+
+$$
+c _ {m t r} = \frac {1}{n} \sum_ {j = 1} ^ {n} c _ {j}, \tag {3}
+$$
+
+$$
+\mathcal {L} _ {d a} = \frac {1}{n} \sum_ {j = 1} ^ {n} \| s \cdot (c _ {j} - c _ {m t r}) \| _ {2} ^ {2},
+$$
+
+where $F_{g_i}$ , $F_{p_i}$ are normalized embeddings, $c_j$ is the mean embedding within a batch sampled from domain $\mathcal{D}_j$ , $c_{mtr}$ is the embedding center of all mean embeddings of meta-train domains, $n$ is the number of meta-train domains and $s$ is the scaling factor. In meta-optimization, we will adaptively utilize the back-propagated signals from these three losses to improve the model generalization.
+
+# 3.4. Meta-optimization
+
+This section describes how the model is optimized to improve model generalization. The whole meta-optimization procedure is summarized in Algorithm 1 and illustrated in Fig. 3.
+
+Meta-train. Based on domain-level sampling, during each batch within a meta-batch, we sample $N - 1$ source domains $\mathcal{D}_{mtr}$ and $B$ pairs of images $\mathcal{X}_S$ from $\mathcal{D}_{mtr}$ . Then we conduct the proposed losses in each batch as follows:
+
+$$
+\mathcal {L} _ {S} = \mathcal {L} _ {h p} (\mathcal {X} _ {S}; \theta) + \mathcal {L} _ {c l s} (\mathcal {X} _ {S}; \theta) + \mathcal {L} _ {d a} (\mathcal {X} _ {S}; \theta), \tag {4}
+$$
+
+where $\theta$ represents the model parameters. The model is next updated by gradient $\nabla_{\theta}$ as: $\theta^{\prime} = \theta -\alpha \nabla_{\theta}\mathcal{L}_{S}(\theta)$ . This update step is similar to the conventional metric learning.
+
+Meta-test. In each batch, the model is also tested on the meta-test domain $\mathcal{D}_{mte}$ . This testing procedure simulates the evaluating on an unseen domain with a different distribution, so as to make the model to learn to generalize across domains. We also sample $B$ pairs of images $\mathcal{X}_T$ from the meta-test domain $\mathcal{D}_{mte}$ . Then the loss is conducted on the updated parameters $\theta'$ as below:
+
+$$
+\mathcal {L} _ {T} = \mathcal {L} _ {h p} \left(\mathcal {X} _ {T}; \theta^ {\prime}\right) + \mathcal {L} _ {c l s} \left(\mathcal {X} _ {T}; \theta^ {\prime}\right). \tag {5}
+$$
+
+Summary. To optimize the meta-train and meta-test simultaneously, the final MFR objective is:
+
+$$
+\underset {\theta} {\arg \min } \gamma \mathcal {L} _ {S} (\theta) + (1 - \gamma) \mathcal {L} _ {T} (\theta - \alpha \mathcal {L} _ {S} ^ {\prime} (\theta)), \tag {6}
+$$
+
+where $\alpha$ is the meta-train step-size and $\gamma$ balances meta-train and meta-test. This objective can be understood as: optimize the model parameters, such that after updating on the meta-train domains, the model also performs well on the meta-test domain. From another perspective, the second term of Eqn. 6 serves as an extra regularization to update the model with high order gradients, and we call it meta-gradients. For example, given three source domains $\mathcal{D}_S = \{\mathcal{D}_1,\mathcal{D}_2,\mathcal{D}_3\}$ , a meta-batch consists of three meta-train/meta-test divisions: $\mathcal{D}_2,\mathcal{D}_3 / \mathcal{D}_1,\mathcal{D}_1,\mathcal{D}_3 / \mathcal{D}_2$ and $\mathcal{D}_1,\mathcal{D}_2 / \mathcal{D}_3$ . For each division or batch, a gradient and a meta-gradient are back-propagated on meta-train and meta-test, respectively. By accumulating all the gradients and meta-gradients in the meta-batch, the model is finally optimized to perform well on both meta-train and meta-test domains. Fig. 3 illustrates how the gradients and meta-gradients flow on the computation graph.
+
+# 4. Experiments
+
+To evaluate our proposed MFR for generalized face recognition problem, we conduct several experiments on two proposed benchmarks.
+
+Algorithm 1: MFR for generalized face recognition problem.
+Input: Source (training) domains $\mathcal{D}_S = \{\mathcal{D}_1,\mathcal{D}_2,\dots ,\mathcal{D}_N\}$ Init: A pre-trained model $f(\theta)$ parametrized by $\theta$ hyperparameters $\alpha ,\beta ,\gamma$ and batch-size of $B$
+1 for ite in max_iterations do
+2 Init the gradient $g_{\theta}$ as 0; // For a meta-batch
+3 for each $\mathcal{D}_{mte}$ in $\mathcal{D}_S$ do // For a batch
+4 Sampling remaining domains as $\mathcal{D}_{mtr}$ . Meta-train: Sampling $B$ paired images $\mathcal{X}_S$ from $B$ identities of meta-train domains $\mathcal{D}_{mtr}$ .. $\mathcal{L}_S = \mathcal{L}_{hp}(\mathcal{X}_S;\theta) + \mathcal{L}_{cls}(\mathcal{X}_S;\theta) + \mathcal{L}_{da}(\mathcal{X}_S;\theta);$ Update model parameters by: $\theta^{\prime} = \theta -\alpha \nabla_{\theta}\mathcal{L}_S(\theta)$ Meta-test: Sampling $B$ paired images $\mathcal{X}_T$ from $B$ identities of the meta-test domain $\mathcal{D}_{mte}$ .. $\mathcal{L}_T = \mathcal{L}_{hp}(\mathcal{X}_T;\theta ') + \mathcal{L}_{cls}(\mathcal{X}_T;\theta ');$ Gradient aggregation: $g_{\theta}\gets g_{\theta} + \gamma \nabla_{\theta}\mathcal{L}_S + (1 - \gamma)\nabla_{\theta}\mathcal{L}_T;$
+end
+Meta-optimization:
+Update $\theta \leftarrow \theta -\frac{\beta}{N} g_{\theta}$ by SGD;
+
+# 4.1. GFR Benchmark and Protocols
+
+Generalized face recognition has not attracted much attention and we do not have a common protocol for evaluation, thus we introduce two well-designed benchmarks to evaluate the generalization of a model. One benchmark is for crossing race evaluation named GFR-R and another one is crossing facial variety named GFR-V. We use variety here to emphasize that there is a large gap between source domains and target unseen domains on GFR-V.
+
+In a real-world scenario, a large-scale base dataset like MS-Celeb [13] is usually available for pre-training, but the model may generalize poorly on a new domain with a different distribution. To simulate it, we use MS-Celeb as the base dataset. RFW [35] is originally proposed to study the racial bias in face recognition and it labels four racial datasets (Caucasian, Asian, African, Indian) from MS-Celeb. We choose to select these four datasets as our four racial domains. Note that RFW [35] overlaps MS-Celeb [13], we remove all the overlapped identities from MS-Celeb according to the identity keyword, thus building
+
+our base dataset named MS-Celeb-NR1, which means MS-Celeb without RFW. MS-Celeb-NR can be regarded as an independent base dataset of four racial ones.
+
+GFR-R. Each race has about $2\mathrm{K}\sim 3\mathrm{K}$ identities. We randomly choose 1K identities for testing and the remaining $1\mathrm{K}\sim 2\mathrm{K}$ identities for training. The dataset details are shown in Table 1. In our experiment setting, each race is regarded as one domain. We randomly select three domains in four as source domains and and the rest one as the testing domain, which is not accessible in training. Therefore, we build four sub-protocols for GFR-R, shown in Table 2.
+
+GFR-V. The GFR-V benchmark is for crossing facial variety evaluation, which is a harder setting and can better reflect the generalization ability of a model. As is shown in Table 2, four racial datasets (Caucasian, Asian, African, Indian) are treated as source domains, and five datasets are as target domains. Specifically, the target datasets include CACD-VS [30], CASIA NIR-VIS 2.0 [31], MultiPIE [32], MeGlass [33], Public-IvS [34]. For CASIA NIR-VIS 2.0, we follow the standard protocol in View 2 evaluation [31] and we report the average value of 10 folds. For MeGlass and Public-IvS, we follow the standard testing protocols [34, 33]. For CACD-VS, in addition to the standard protocol [30], we use the provided 2,000 positive cross-age image pairs and split them into gallery and probe for our ROC/Rank-1 evaluation. For Multi-PIE, we select 337 identities and each identity contains about $3\sim 4$ frontal gallery images and $3\sim 4$ probe images with the $45^{\circ}$ view.
+
+Benchmark Protocols. For each image, the features from both the original image and the flipped one are extracted then concatenated as the final representation. The score is measured by the cosine distance of two representations. For performance evaluation, we use the receiver operating characteristic (ROC) curve and Rank-1 accuracy. For ROC, we report the verification rate (VR) at low false acceptance rate (FAR) like $1\%$ , $0.1\%$ and $0.01\%$ . For Rank-1 evaluation, each probe image is matched to all gallery images, if the top-1 result is within the same identity, it is correct.
+
+# 4.2. Implementation Details
+
+Our experiments are based on PyTorch [37]. The random seed is set to a fixed value 2019 in comparative experiments for fair comparisons. We use a 28-layer ResNet as our backbone, but with a channel-number multiplier of 0.5. Our backbone has only 128.7M FLOPs and 4.64M parameters, which is relatively light-weighted. The dimension of the output embedding is 256. The model is pre-trained on MS-Celeb-NR with CosFace [38]. During training, all faces are cropped and resized to $120 \times 120$ . The inputs are then normalized by subtracting 127.5 and being divided by 128. The meta-train step-size $\alpha$ , the meta optimization step-size
+
+| Facial Variety | Dataset | #Train IDs | #Train images | #Test IDs | #Test images |
| #Gallery IDs | #Probe IDs | #Gallery images | #Probe images |
| Race | Caucasian | 1,957 | 6,757 | 1,000 | 1,000 | 1,000 | 1,000 |
| Race | Asian | 1,492 | 5,784 | 1,000 | 1,000 | 1,000 | 1,000 |
| Race | African | 1,995 | 6,938 | 1,000 | 1,000 | 1,000 | 1,000 |
| Race | Indian | 1,984 | 6,857 | 1,000 | 1,000 | 1,000 | 1,000 |
| Age | CACD-VS [30] | - | - | 2,000 | 2,000 | 2,000 | 2,000 |
| Illumination | CASIA NIR-VIS 2.0 [31] | - | - | 358 | 363 | 358 | 6,208 |
| Pose | MultiPIE [32] | - | - | 337 | 337 | 1,184 | 1,181 |
| Occlusion | MeGlass [33] | - | - | 1,710 | 1,710 | 3,420 | 3,420 |
| Heterogeneity | Public-IvS [34] | - | - | 1,262 | 1,262 | 1,262 | 4,241 |
+
+Table 1: The statistics of all involved datasets. CASIA NIR-VIS 2.0 has 10 folds and the first fold is shown. The other folds own similar statistics.
+
+| Protocol | Source Domains | Target Domain(s) |
| GFR-R | I | CaucasianAsianAfrican | Indian |
| II | CaucasianAsianIndian | African |
| III | CaucasianAfricanIndian | Asian |
| IV | AsianAfricanIndian | Caucasian |
| GFR-V | CaucasianAsianAfricanIndian | CACD-VSCASIA NIR-VIS 2.0MultiPIEMeGlassPublic-IvS |
+
+Table 2: The GFR-R and GFR-V benchmarks. Source domains are for training, target domains are for evaluation and are unseen during training.
+
+| Protocol | Method | VR (%) | Rank-1 (%) |
| FAR=1% | FAR=0.1% | FAR=0.01% |
| GFR-R I (Indian) | Base | 94 | 82.2 | 64.65 | 80.3 |
| Base-Agg | 94.1 | 80.9 | 65.3 | 81 |
| Base-FT rd. | 62.5 | 39 | 21.05 | 39.3 |
| Base-FT imp. [36] | 87 | 69.9 | 51.2 | 69.6 |
| MLDG [14] | 94.2 | 83 | 66.3 | 80.5 |
| MFR (Ours) | 95.4 | 86.1 | 71.4 | 83.1 |
| GFR-R II (African) | Base | 91.6 | 74.5 | 55.4 | 73.1 |
| Base-Agg | 90.5 | 74.8 | 56.3 | 74 |
| Base-FT rd. | 26.2 | 10.9 | 3.5 | 21 |
| Base-FT imp. [36] | 78.7 | 56.6 | 36.45 | 57.9 |
| MLDG [14] | 91.9 | 74.8 | 55.7 | 73.8 |
| MFR (Ours) | 92.3 | 79.4 | 60.8 | 75.2 |
| GFR-R III (Asian) | Base | 91.89 | 77.98 | 60.86 | 75.98 |
| Base-Agg | 91.49 | 78.08 | 59.41 | 76.28 |
| Base-FT rd. | 40.44 | 17.32 | 7.67 | 27.53 |
| Base-FT imp. [36] | 80.58 | 57.56 | 39.79 | 61.86 |
| MLDG [14] | 92.29 | 78.28 | 60.3 | 76.68 |
| MFR (Ours) | 93.49 | 80.7 | 62.56 | 78.68 |
| GFR-R IV (Caucasian) | Base | 96.6 | 89.6 | 78.6 | 86.6 |
| Base-Agg | 97 | 88.1 | 79.1 | 86.8 |
| Base-FT rd. | 61.1 | 36.2 | 18.9 | 36.7 |
| Base-FT imp. [36] | 91.5 | 78.2 | 63.4 | 76.8 |
| MLDG [14] | 96.8 | 89.6 | 79.15 | 86.3 |
| MFR (Ours) | 98.2 | 92.9 | 81.1 | 88.9 |
+
+Table 3: Comparative results of the GFR-R benchmark. rnd. means random initializing the classification weight template, imp. is weight-imprinted.
+
+$\beta$ , the weight $\gamma$ balancing meta-train and meta-test loss are initialized to 0.0004, 0.0004, 0.5, respectively. Batch-size $B$ is set to 128 and the scaling factor $s$ of both the soft-classification loss and domain alignment loss are set to 64. The step-size $\alpha$ and $\beta$ are decayed with every 1K steps and the decay rate is 0.5. The positive threshold $\tau_{p}$ and negative threshold $\tau_{n}$ are initialized to 0.3, 0.04 and are updated as $\tau_{p} = 0.3 + 0.1n$ and $\tau_{n} = 0.04 / 0.5^{n}$ , where n is the decayed number. For meta-optimization, we use SGD to optimize the network with the weight decay of 0.0005 and momentum of 0.9.
+
+# 4.3. GFR-R Comparisons
+
+Settings. We compare our model with several baselines, including the base model and several domain aggregation baselines. To further compare our method with other domain generalization methods, we adapt MLDG [14] to an open-set setting, so that it can be applied in our protocols. The results are shown in Table 3. For four protocols in GFR-R, we report the VRs at low FAR $1\%$ , $0.1\%$ , $0.01\%$ , and the Rank-1 accuracy. Specifically, our comparisons include: (i) Base: the model pre-trained only on MS-Celeb-NR using CosFace [38]. Note that MS-Celeb-NR has no overlapped identities with four racial datasets (Caucasian, Asian, African and Indian) and can be considered as an independent dataset. (ii) Base-Agg: the model trained on MS-Celeb-NR and the aggregation of source domains using CosFace [38]. Take GFR-R-I as an example, Base-Agg is trained on MS-Celeb-NR and three source domains Caucasian, Asian, African jointly. This is for the fair comparison with our MFR, where the same training datasets are involved. (iii) Base-FT rnd.: the base model further fine-tuned on the aggregation of source domains. The classification template of the last FC-layer is randomly initialized. (iv) Base-FT imp.: the base model further fine-tuned on the aggregation of source domains, but the classification template is initialized as the mean of embeddings of the corresponding identities. It is refined from weight-imprinted [36]. (v) MLDG: MLDG [14] adapted for generalized face recognition problem.
+
+Results. From the results in Table 3, the following observations can be made: (i) Overall, our method achieves the
+
+best result on four GFR-R protocols among all compared settings and methods. (ii) The base model pre-trained on MS-Celeb-NR is strong, but not generalizes well for target domains, especially for Indian, African, Asian. The reason may be that MS-Celeb-NR is occupied by Caucasian people. (iii) Jointly training on MS-Celeb-NR and source domains performs slightly better than the base model, but is still not comparable to our MFR method. (iv) The performance of Base-FT md. declines dramatically and we attribute it to over-fitting on source domains. Weight-imprinted (Base-FT imp.) can reduce such over-fitting to some degree, but its performance is still lower than the base model. (v) MLDG [14], which is originally designed for closed-set and category-level recognition problems, fail to compete with our method on the open-set generalized face recognition problem.
+
+| GFR-V (CACD-VS) | VR (%) | Rank-1 (%) | Acc. | AUC. |
| FAR=0.01% | FAR=0.001% |
| Base | 96.55 | 92.55 | 96.85 | 99.35 | 99.53 |
| Base-Agg | 96.75 | 92.98 | 97.15 | 99.42 | 99.6 |
| MLDG [14] | 96.75 | 92.9 | 97.25 | 99.45 | 99.57 |
| LF-CNNs [39] | - | - | - | 98.5 | 99.3 |
| Human, Voting [40] | - | - | - | 94.2 | 99 |
| OE-CNNs [41] | - | - | - | 99.2 | 99.5 |
| AIM+CAFR [42] | - | - | - | 99.76 | - |
| MFR (Ours) | 97.25 | 94.05 | 97.8 | 99.78 | 99.81 |
+
+Table 4: Comparative results on CACD-VS.
+
+| GFR-V CASIA NIR-VIS 2.0 | VR (%) | Rank-1 (%) |
| FAR=1% | FAR=0.1% | FAR=0.01% |
| Base | 97.8 | 89.89 | 69.27 | 93.18 |
| Base-Agg | 98.31 | 90.47 | 71.35 | 94.29 |
| MLDG [14] | 98.28 | 90.44 | 69.32 | 93.56 |
| IDR [43] | 98.9 | 95.7 | - | 97.3 |
| WCNN [44] | 99.4 | 97.6 | - | 98.4 |
| MFR (Ours) | 99.32 | 95.97 | 81.92 | 96.92 |
+
+Table 5: Comparative results on CASIA NIR-VIS 2.0. The highest two results are highlighted.
+
+| GFR-V (Multi-PIE) | VR (%) | Rank-1 (%) |
| FAR=0.1% | FAR=0.01% | FAR=0.001% |
| Base | 99.92 | 98.83 | 61.54 | 99.75 |
| Base-Agg | 99.92 | 98.96 | 68.49 | 99.82 |
| MLDG [14] | 99.84 | 98.87 | 62.95 | 99.83 |
| MFR (Ours) | 100 | 99.96 | 74.54 | 99.92 |
+
+Table 6: Comparative results on MultiPIE.
+
+| GFR-V (MeGlass) | VR (%) | Rank-1 (%) |
| FAR=0.01% | FAR=0.001% | FAR=0.0001% |
| Base | 85.92 | 71.96 | 53.5 | 97.6 |
| Base-Agg | 86.77 | 73.5 | 54.96 | 97.69 |
| MLDG [14] | 85.54 | 69.23 | 49.32 | 97.81 |
| Face Syn. [33] | 90.14 | 80.32 | 66.92 | 96.73 |
| MFR (Ours) | 90.79 | 80.86 | 66.15 | 98.57 |
+
+Table 7: Comparative results on MeGlass. The highest two results are highlighted.
+
+| GFR-V (Public-IvS) | VR (%) | Rank-1 (%) |
| FAR=0.1% | FAR=0.01% | FAR=0.001% |
| Base | 94.38 | 86.71 | 74.83 | 92.74 |
| Base-Agg | 94.24 | 87.1 | 74.5 | 92.85 |
| MLDG [14] | 94.96 | 87.35 | 75.54 | 93.3 |
| Contrastive [29] | 96.52 | 91.71 | 84.54 | - |
| LBL [34] | 98.83 | 97.21 | 93.62 | - |
| MFR (Ours) | 96.66 | 92.96 | 85.28 | 95.82 |
+
+Table 8: Comparative results on Public-IvS. The highest two results are highlighted.
+
+| Method | Base | Base-Agg | MLDG [14] | MFR (Ours) |
| LFW | 99.57 | 99.60 | 99.43 | 99.77 |
+
+Table 9: Comparative results on LFW.
+
+# 4.4. GFR-V Comparisons
+
+The GFR-V benchmark is for crossing facial variety evaluation, which can better reflect model generalization.
+
+Settings. We compare our model with two strong baselines Base, Base-Agg, an adapted MLDG [14] and other competitors if existed. Since the standard protocols differ among five target domains, we show them separately in Table 4, 5, 6, 7, 8.
+
+CACD-VS. CACD-VS [30] is for cross-age evaluation, where each pair of images contain a young face and an old one. We report ROC/Rank-1 as well as the standard protocol provided. Other competitors are only evaluated on the standard protocol. The results in Table 4 show that our MFR not only beats the baselines but also the competitors, which use cross-age datasets for training.
+
+CASIA NIR-VIS 2.0. In CASIA NIR-VIS 2.0 [31], gallery images are collected under visible lighting, while the probe one is under near infrared lighting, thus the modality gap is huge. Table 5 shows: (i) we achieve great performance improvements from $89.89\%$ $(69.27\%)$ of Base to $95.97\%$ $(81.92\%)$ when $\mathrm{FAR} = 0.1\%$ $(0.01\%)$ . (ii) even with such a huge modality gap, our performance is comparable to several CNN-based methods [43, 44], which use MS-Celeb for pre-training and the target domain NIR-VIS dataset for fine-tuning. In comparison, our model has not seen any NIR samples during training.
+
+Multi-PIE. We compare our model with two baselines and MLDG for cross-pose evaluation using Multi-PIE. Table 6 validates the improvements of our MFR over baselines and MLDG.
+
+MeGlass. MeGlass [33] focuses on the effect of eyeglass occlusion for face recognition. We select the hardest IV protocol for evaluation. As shown in Table 7, our method promotes the performance from $71.96\%$ (53.5%) on Base to $80.86\%$ (66.15%) when at a low FAR $0.001\%$ , which is even slightly better than [33], which synthesizes wearingeyeglass image for the whole MS-Celeb for training.
+
+Public-IvS. Public-IvS [34] is a testbed for ID vs. Spot (IvS) verification. Compared to Base and Base-Agg, our method greatly improves the generalization performance.
+
+The other two competitors are all pre-trained on MS-Celeb and fine-tuned on CASIA-IvS, which has more than 2 million identities and each identity has one ID and Spot face. Even so, our method still performs slightly better than Contrastive [29].
+
+LFW. We perform an extensive evaluation on LFW [9], shown in Table. 9. The results demonstrate that our method also generalizes better than baselines on a similar target domain.
+
+The above results show that our method achieves great improvement than baselines, and the performance is competitive to the best supervised/non-generalization methods. For a real-world face recognition application, our method is the first choice because it generalizes well on all target domains with competitive performances.
+
+| Protocol | Method | VR (%) | Rank-1 (%) |
| FAR=1% | FAR=0.1% | FAR=0.01% |
| GFR-R I (Indian) | w/o hp. | 95.1 | 84.5 | 69.2 | 82.2 |
| w/o cls. | 95.3 | 84.3 | 69 | 82.3 |
| w/o da. | 95.2 | 84.9 | 70.8 | 82.7 |
| w/o meta (α = 0) | 94.8 | 84.3 | 68.35 | 81.1 |
| first order | 95.3 | 85.7 | 70.9 | 82.6 |
| Ours-full | 95.4 | 86.1 | 71.4 | 83.1 |
| GFR-R II (African) | w/o hp. | 92 | 77.9 | 59.2 | 74.6 |
| w/o cls. | 92.1 | 78.9 | 59.3 | 74.6 |
| w/o da. | 92.1 | 78.6 | 59.4 | 74.8 |
| w/o meta (α = 0) | 91.9 | 77.6 | 57.75 | 74.8 |
| first order | 92 | 78.05 | 59.5 | 75.2 |
| Ours-full | 92.3 | 79.4 | 60.8 | 75.2 |
| GFR-R III (Asian) | w/o hp. | 93.39 | 79.9 | 61.56 | 77.78 |
| w/o cls. | 93.29 | 80.4 | 62.1 | 78.08 |
| w/o da. | 93.49 | 79.68 | 61.76 | 77.78 |
| w/o meta (α = 0) | 92.89 | 79.2 | 60.7 | 77.28 |
| first order | 93.49 | 79.9 | 61.7 | 77.88 |
| Ours-full | 93.49 | 80.7 | 62.56 | 78.68 |
| GFR-R IV (Caucasian) | w/o hp. | 98.2 | 91.3 | 80.4 | 87.8 |
| w/o cls. | 98.3 | 92.6 | 80.4 | 88.4 |
| w/o da. | 98.4 | 92.4 | 80.5 | 87.5 |
| w/o meta (α = 0) | 97.3 | 91.1 | 79.6 | 87.3 |
| first order | 97.9 | 91.8 | 80.1 | 87.7 |
| Ours-full | 98.2 | 92.9 | 81.1 | 88.9 |
+
+Table 10: Ablative results of the GFR-R benchmark. hp. is the hard-pair attention loss, cls. is the soft-classification loss and da. is the domain alignment loss on meta-train domains.
+
+# 4.5. Ablation Study and Analysis
+
+Contribution of Different Components. To evaluate the contributions of different components, we compare our full MFR with four degraded versions. The first three components are the hard-pair attention loss, soft-classification loss and domain alignment loss, which are designed for learning domain-invariant and discriminative representations. The fourth component is the meta-gradient. If $\alpha$ is set to 0 in Eqn. 6, the objective is degraded to the sum of meta-train and meta-test and there is no meta-gradient computation. Table 10 shows that each component contributes to the performance. Among three components, the metagradient is the most important one. For example, in GFR-R I, the performance drops from $71.4\%$ to $68.35\%$ when $\mathrm{FAR} = 0.01\%$ without the meta-gradient.
+
+First Order Approximation. The meta-gradient needs high order derivatives and is computationally expensive. Therefore, we compare it with the first order approximation.
+
+
+
+
+
+
+Figure 4: Ablation results on GFR-R I (Indian) protocol, with different $\gamma$ and domain-level sampling strategies.
+
+
+
+To achieve the first order approximation, we only need to change $(1 - \gamma)\nabla_{\theta}\mathcal{L}_T$ in Algorithm 1 to $(1 - \gamma)\nabla_{\theta^{\prime}}\mathcal{L}_T$ in the gradient aggregation step. From Table 10, we can see that the performance of the first order approximation is close to high order. Considering that the first order approximation takes only about $82\%$ GPU memory and $63\%$ time (in our setting) of the high order, the first order approximation is a practical substitute for the high order implementation.
+
+Impact of $\gamma$ . In Eqn. 6, $\gamma$ is a hyperparameter weighting the meta-train and meta-test losses. The ablative results are shown in Fig. 4. A proper value 0.5 gives the best result, which indicates the meta-train and meta-test domains should be equally learned.
+
+Domains-level Sampling. Since domain alignment loss cannot be applied when there is only one domain in meta-train, we remove it for fair comparisons. For each batch, $S_mT_n$ ( $m, n \in \{(1,1), (1,2), (2,1)\}$ ) means sampling $m$ domain as meta-train and another $n$ as meta-test. rand means randomly choosing $m$ domains as meta-train ( $m$ is a random number) and remaining one as meta-test. Fig. 4 shows that the setting $m = 2$ and $n = 1$ performs best.
+
+# 5. Conclusion
+
+In this paper, we highlight generalized face recognition problem and propose a Meta Face Recognition (MFR) method to address it. Once trained on a set of source domains, the model can be directly deployed on target domains without any model update. Extensive experiments on two newly defined generalized face recognition benchmarks validate the effectiveness of our proposed MFR. We believe generalized face recognition problem is of great importance for practical applications, and our work is an important avenue for future works.
+
+# Acknowledgments
+
+This work has been partially supported by the Chinese National Natural Science Foundation Projects #61876178, #61806196, #61976229, #61872367 and Science and Technology Development Fund of Macau (No. 0008/2018/A1, 0025/2019/A1, 0019/2018/ASC, 0010/2019/AFJ, 0025/2019/AKP).
+
+# References
+
+[1] Yaniv Taigman, Ming Yang, Marc'Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1701-1708, 2014. 1
+[2] Yi Sun, Xiaogang Wang, and Xiaou Tang. Deep learning face representation from predicting 10,000 classes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1891-1898, 2014. 1
+[3] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815-823, 2015. 1, 3
+[4] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherical face: Deep hypersphere embedding for face recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 212-220, 2017. 1
+[5] Jiankang Deng, Jia Guo, Xue Niannan, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In CVPR, 2019. 1
+[6] Xiaobo Wang, Shuo Wang, Shifeng Zhang, Tianyu Fu, Hailin Shi, and Tao Mei. Support vector guided softmax loss for face recognition. arXiv preprint arXiv:1812.11317, 2018. 1
+[7] Xiaobo Wang, Shuo Wang, Jun Wang, Hailin Shi, and Tao Mei. Co-mining: Deep face recognition with noisy labels. In Proceedings of the IEEE International Conference on Computer Vision, pages 9358-9367, 2019. 1
+[8] Xiaobo Wang, Shifeng Zhang, Shuo Wang, Tianyu Fu, Hailin Shi, and Tao Mei. Mis-classified vector guided softmax loss for face recognition. arXiv preprint arXiv:1912.00833, 2019. 1
+[9] Gary B Huang, Marwan Mattar, Tamara Berg, and Eric Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. 2008. 1, 8
+[10] Lior Wolf, Tal Hassner, and Itay Maoz. Face recognition in unconstrained videos with matched background similarity. IEEE, 2011. 1
+[11] Ira Kemelmacher-Shlizerman, Steven M Seitz, Daniel Miller, and Evan Brossard. The megaface benchmark: 1 million faces for recognition at scale. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4873-4882, 2016. 1
+[12] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint arXiv:1411.7923, 2014. 1
+[13] Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In European Conference on Computer Vision, pages 87–102. Springer, 2016. 1, 5
+
+[14] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M Hospedales. Learning to generalize: Meta-learning for domain generalization. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 2, 3, 6, 7
+[15] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1126-1135. JMLR.org, 2017. 2, 3
+[16] Aditya Khosla, Tinghui Zhou, Tomasz Malisiewicz, Alexei A Efros, and Antonio Torralba. Undoing the damage of dataset bias. In European Conference on Computer Vision, pages 158-171. Springer, 2012. 2
+[17] Krikamol Muandet, David Balduzzi, and Bernhard Scholkopf. Domain generalization via invariant feature representation. In International Conference on Machine Learning, pages 10-18, 2013. 2
+[18] Saeid Motiian, Marco Piccirilli, Donald A Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 5715-5725, 2017. 2
+[19] Jifei Song, Yongxin Yang, Yi-Zhe Song, Tao Xiang, and Timothy M Hospedales. Generalizable person re-identification by domain-invariant mapping network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 719–728, 2019. 2
+[20] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018. 2
+[21] Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 403-412, 2019. 2
+[22] Aravind Rajeswaran, Chelsea Finn, Sham Kakade, and Sergey Levine. Meta-learning with implicit gradients. arXiv preprint arXiv:1909.04630, 2019. 2
+[23] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630-3638, 2016. 2
+[24] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pages 4077-4087, 2017. 2
+[25] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1199-1208, 2018. 2
+[26] Siyuan Qiao, Chenxi Liu, Wei Shen, and Alan L Yuille. Few-shot image recognition by predicting parameters from activations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7229-7238, 2018. 2
+
+[27] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4367-4375, 2018. 2
+[28] Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06), volume 2, pages 1735-1742. IEEE, 2006. 3
+[29] Yi Sun, Yuheng Chen, Xiaogang Wang, and Xiaou Tang. Deep learning face representation by joint identification-verification. In Advances in neural information processing systems, pages 1988–1996, 2014. 3, 7, 8
+[30] Bor-Chun Chen, Chu-Song Chen, and Winston H Hsu. Cross-age reference coding for age-invariant face recognition and retrieval. In European conference on computer vision, pages 768-783. Springer, 2014. 5, 6, 7
+[31] Stan Li, Dong Yi, Zhen Lei, and Shengcai Liao. The casia nir-vis 2.0 face database. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 348-353, 2013. 5, 6, 7
+[32] Ralph Gross, Iain Matthews, Jeffrey Cohn, Takeo Kanade, and Simon Baker. Multi-pie. Image and Vision Computing, 28(5):807-813, 2010. 5, 6
+[33] Jianzhu Guo, Xiangyu Zhu, Zhen Lei, and Stan Z Li. Face synthesis for eyeglass-robust face recognition. In Chinese Conference on Biometric Recognition, pages 275–284. Springer, 2018. 5, 6, 7
+[34] Xiangyu Zhu, Hao Liu, Zhen Lei, Hailin Shi, Fan Yang, Dong Yi, Guojun Qi, and Stan Z Li. Large-scale bisample learning on id versus spot face recognition. International Journal of Computer Vision, 127(6-7):684-700, 2019. 5, 6, 7
+[35] Mei Wang, Weihong Deng, Jiani Hu, Jianteng Peng, Xunqiang Tao, and Yaohai Huang. Racial faces in-the-wild: Reducing racial bias by deep unsupervised domain adaptation. arXiv preprint arXiv:1812.00194, 2018. 5
+[36] Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5822-5830, 2018. 6
+[37] 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. In NIPS Autodiff Workshop, 2017. 5
+[38] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5265-5274, 2018. 5, 6
+[39] Yandong Wen, Zhifeng Li, and Yu Qiao. Latent factor guided convolutional neural networks for age-invariant face recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4893-4901, 2016. 7
+
+[40] Bor-Chun Chen, Chu-Song Chen, and Winston H Hsu. Face recognition and retrieval using cross-age reference coding with cross-age celebrity dataset. IEEE Transactions on Multimedia, 17(6):804-815, 2015. 7
+[41] Yitong Wang, Dihong Gong, Zheng Zhou, Xing Ji, Hao Wang, Zhifeng Li, Wei Liu, and Tong Zhang. Orthogonal deep features decomposition for age-invariant face recognition. In Proceedings of the European Conference on Computer Vision (ECCV), pages 738-753, 2018. 7
+[42] Jian Zhao, Yu Cheng, Yi Cheng, Yang Yang, Fang Zhao, Jianshu Li, Hengzhu Liu, Shuicheng Yan, and Jiashi Feng. Look across elapse: Disentangled representation learning and photorealistic cross-age face synthesis for age-invariant face recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 9251–9258, 2019. 7
+[43] Ran He, Xiang Wu, Zhenan Sun, and Tieniu Tan. Learning invariant deep representation for nir-vis face recognition. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. 7
+[44] Ran He, Xiang Wu, Zhenan Sun, and Tieniu Tan. Wasserstein cnn: Learning invariant features for nir-vis face recognition. IEEE transactions on pattern analysis and machine intelligence, 41(7):1761-1773, 2018. 7
\ No newline at end of file
diff --git a/learningmetafacerecognitioninunseendomains/images.zip b/learningmetafacerecognitioninunseendomains/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4ef3100f999ce8c28a162d4bf10d0d4ac41cf26f
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f0ff3d6c78658ea5be6300c394b3151c107b6ae2f61ffc0aca9dbcef1dd7855d
+size 479633
diff --git a/learningmetafacerecognitioninunseendomains/layout.json b/learningmetafacerecognitioninunseendomains/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5a897695f48f7d97367a4e5e73364f62fbbc3dd9
--- /dev/null
+++ b/learningmetafacerecognitioninunseendomains/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7015948e1ee33def023b86118fa5574e82f5123940aab59550b35a988414f19
+size 439351
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_content_list.json b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..33dd5775e4c8a7e6b60ea615dbf1a2b75f80a6b6
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:761b3e28b8fefda92aa8d992182b3984821b5dadb5ce5d3312927ece39c27214
+size 77955
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_model.json b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..18ffd94bd7553444710aad0ccbca5ac50fbe4a9d
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb75b7970c714b3d97c21bde1fef2447bc78c84d4b25f388de7c857c3150eebe
+size 101097
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_origin.pdf b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..97fdef9feb9803dcf783d807e17b9714b6d974da
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/b6bce9e4-1fd1-4f44-a7b1-3688bada115e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87d21f38ccda42784b63c034e1a29c22ff719801de9e65856d6b7e351eaa9963
+size 2202109
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/full.md b/learningmultigranularhypergraphsforvideobasedpersonreidentification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9638ba0312c247d996b1654f9f0ff36d6422f7b2
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/full.md
@@ -0,0 +1,343 @@
+# Learning Multi-Granular Hypergraphs for Video-Based Person Re-Identification
+
+Yichao Yan $^{1*}$ , Jie Qin $^{1*†}$ , Jiaxin Chen $^{1}$ , Li Liu $^{1}$ , Fan Zhu $^{1}$ , Ying Tai $^{2}$ , and Ling Shao $^{1}$ $^{1}$ Inception Institute of Artificial Intelligence (IIAI), Abu Dhabi, UAE
+ $^{2}$ Tencent YouTu Lab, Shanghai, China
+
+{firstname_lastname}@inceptioniai.org, yingtai@tencent.com
+
+# Abstract
+
+Video-based person re-identification (re-ID) is an important research topic in computer vision. The key to tackling the challenging task is to exploit both spatial and temporal clues in video sequences. In this work, we propose a novel graph-based framework, namely Multi-Granular Hypergraph (MGH), to pursue better representational capabilities by modeling spatiotemporal dependencies in terms of multiple granularities. Specifically, hypergraphs with different spatial granularities are constructed using various levels of part-based features across the video sequence. In each hypergraph, different temporal granularities are captured by hyperedges that connect a set of graph nodes (i.e., part-based features) across different temporal ranges. Two critical issues (misalignment and occlusion) are explicitly addressed by the proposed hypergraph propagation and feature aggregation schemes. Finally, we further enhance the overall video representation by learning more diversified graph-level representations of multiple granularities based on mutual information minimization. Extensive experiments on three widely-adopted benchmarks clearly demonstrate the effectiveness of the proposed framework. Notably, $90.0\%$ top-1 accuracy on MARS is achieved using MGH, outperforming the state-of-the-arts. Code will be released at https://github.com/daodaofr/hypergraph_reid.
+
+# 1. Introduction
+
+Person re-identification (re-ID) aims at associating individuals across non-overlapping cameras, with great potential in surveillance-related applications. As such, significant efforts have been made in the past few years to address the challenging task. In parallel with the prevalence of image-based person re-ID, person re-ID based on video sequences has also recently emerged. This is because the richer information in videos can be utilized to reduce visual ambigu
+
+
+Figure 1: (a) Illustration of multi-granular spatial and temporal clues, which provide important insights into addressing the challenges of misalignment and occlusion in video-based person re-ID. (b) Standard graphs can only model the dependency between node pairs, lacking the capability of modeling long-term temporal dependency. (c) Hypergraphs can model both short-term and long-term dependencies by associating multiple nodes within a single hyperedge.
+
+
+
+
+(c)
+
+ties, especially for people sharing similar appearances. The key to solving video-based person re-ID is to concurrently exploit spatial and temporal clues within video sequences. In this sense, this work aims to shed light on two important clues (see Figure 1) for tackling video-based person re-ID.
+
+1) Multi-granularity of spatial clues. As the structural information of the human body is beneficial for person identification, part-based models [49, 30, 47] have generally achieved promising performance in person re-ID. Compared with fixed partitions, multi-granular part-based models [51, 64] have further enhanced the performance by dividing the human body into multiple granularities. In video-based re-ID, the multi-granular spatial clues are particularly important since different levels of granularities capture discrepancies between different partitions, thus addressing the spatial misalignment issue due to inaccurate detection in the video sequence (see Figure 1(a)). However, in this way, misalignment can only be solved implicitly to some extent. To better tackle spatial misalignment, we need to explicitly align different body parts across the whole sequence in
+
+order to achieve more robust re-ID performance. It is therefore highly desirable to develop re-ID within a framework which systematically captures correlations between different body partitions, while the same time being able to exploit multiple spatial granularities.
+
+2) Multi-granularity of temporal clues. Temporal clues have been extensively studied by previous video-based re-ID models. Short-term dynamics can be represented by extracting additional optical flow features [9], while long-term temporal features can be obtained by utilizing 3D CNNs [32] or temporal feature aggregators [39] (e.g., Recurrent Neural Networks, RNNs). However, short- and long-term temporal clues have different functionalities in discriminative feature learning. For example, in Figure 1, there is a partial occlusion w.r.t. the short-term temporal clues; the long-term temporal clues can help reduce its impact. However, only a few works [31, 32] address this issue. It is thus highly important to design a model that can capture multi-granular temporal clues.
+
+To explicitly fulfill the above goal, we propose a novel graph-based framework, named Multi-Granular Hypergraph (MGH), which simultaneously exploits spatial and temporal clues for video-based person re-ID. As shown in Figure 2, we construct a set of hypergraphs to model multiple granularities in a video sequence, with graph nodes representing global or part-level features. Each hypergraph models a specific spatial granularity, while each hyperedge, connecting multiple nodes within a particular temporal range, captures a specific temporal granularity. Node-level features are propagated to form graph-level representations for all hypergraphs, which are aggregated in the final video representation to achieve robust person re-ID.
+
+Our MGH method has three main advantages. First, it seamlessly unifies the learning of spatial and temporal clues into a joint framework, where spatial clues are captured by different hypergraphs, and short- and long-term temporal clues are mined with message propagation through different hyperedges. Second, compared with standard graphs which only model correlations between pairs of nodes (see Figure 1(b)), hypergraphs can model high-order dependencies among multiple nodes (see Figure 1(c)). As a result, misalignment can be explicitly solved by associating different nodes with their nearest neighbors using hyperedges; meanwhile, occlusions can be addressed by modeling multi-granular temporal dependencies with hyperedges across different temporal ranges. Third, node-level features can benefit from the spatial and temporal information in the sequence by means of HyperGraph Neural Networks (HGNNs) [14], which greatly facilitate information propagation through hyperedges. Our main contributions include:
+
+- We formulate video-based person re-ID as a hypergraph learning task, yielding robust representations based on node propagation and feature aggregation.
+
+- To capture multi-granular clues, we design a novel HGNN architecture (i.e., MGH) to simultaneously exploit spatial and temporal dependencies in videos.
+- The diversity of graph representations corresponding to different spatial granularities is preserved and enhanced by employing an intuitive loss based on mutual information minimization.
+- MGH achieves promising results on three widely-used re-ID benchmarks. Notably, MGH obtains $90.0\%$ top-1 accuracy on MARS, one of the largest video re-ID datasets, outperforming the state-of-the-art models.
+
+# 2. Related Work
+
+Person Re-identification. Existing works on person re-ID mainly focus on two sub-tasks, i.e., image-based [16, 66, 67, 7, 2] and video-based [13, 68] person re-ID. Here, we briefly review some closely related works for video-based re-ID. Early methods tend to employ handcrafted spatiotemporal features, such as HOG3D [28] and SIFT3D [42]. Other methods try to extract more discriminative descriptors[26, 35] or design more effective ranking algorithms [52, 61, 3]. Recently, various deep learning models have been proposed and have shown superior performance compared with hand-crafted features. Some works [65, 33, 57, 46, 34, 62, 36] leverage the powerful learning capability of Convolutional Neural Networks (CNNs) and perform straightforward spatial/temporal pooling on video sequences to generate global representations. However, simply pooling the features may lead to a significant loss of discriminative information. Other methods [39, 60, 70, 37, 5] adopt RNNs and attention mechanisms for more robust temporal feature fusion. However these methods neglect the importance of spatial clues. Another class of methods [9, 39] resort to using additional information on optical flow, and adopt a two-stream structure [44] for discriminative feature learning. However, optical flow only represents local dynamics of adjacent frames, which may introduce noise due to spatial misalignment. 3D CNNs [24, 48] have also been applied to address video-based person re-ID [32]. Despite their promising performance, these networks are computationally expensive and difficult to optimize. In this work, we explicitly explore the multi-granular nature of both spatial and temporal features, yielding more robust representations for video-based re-ID.
+
+Hypergraph Learning. Graphs are typically leveraged to model relationships between different nodes. Depending on the type of data the nodes represent, graphs have been explored in many computer vision tasks, such as action recognition [55], image classification [8], and person re-ID [6, 43]. Recently, neural networks have been extensively studied for graph learning, leading to the widespread usage of Graph Neural Networks (GNNs) [41, 10, 12, 29, 53]. How-
+
+
+Figure 2: Detailed architecture of the proposed multi-granular hypergraph learning framework for video-based person re-ID. For better visualization, we only illustrate the first three spatial granularities and the first two temporal granularities.
+
+ever, conventional graphs can only model pairwise relationships, which prevents their scalability to data with more complex structures. To this end, hypergraph [69] was introduced to model higher-order relationships between objects of interest, and has been applied to video segmentation [22] and image retrieval [23]. In a similar spirit to GNNs, HyperGraph Neural Networks (HGNNs) [14, 59, 4, 25] have recently been proposed to model correlations in hypergraphs using deep neural networks. Inspired by HGNNs, this work derives a hypergraph that explicitly models spatiotemporal dependency in a video sequence. More importantly, multiple spatial and temporal granularities are exploited simultaneously in our hypergraph learning framework. As a result, the final global representation exhibits strong discriminability for robust video-based re-ID.
+
+# 3. Multi-Granular Hypergraph Learning
+
+Although deep learning and temporal modeling approaches have greatly improved the performance of video-based person re-ID, it is still difficult to achieve satisfactory results because of occlusion, misalignment, background clutter, and viewpoint changes. To further improve the discriminability of feature representations, this paper aims to explicitly explore the multi-granular nature of spatial and temporal features. To this end, we design a Multi-Granular Hypergraph (MGH) learning framework, which models the high-order correlations between spatial and temporal clues with a hypergraph neural network. The details of the proposed framework are elaborated as follows.
+
+# 3.1. Multi-Granular Feature Extraction
+
+Recent studies [51, 64] have demonstrated that multigranular spatial features have the advantage of generating
+
+more discriminative representations for human bodies. Inspired by this, we extract multi-granular features for individuals. Specifically, given an image sequence $\mathbf{I} = \{I_1, I_2, \dots, I_T\}$ containing $T$ images, we use a backbone CNN model to extract individual feature maps
+
+$$
+\mathbf {F} _ {i} = \operatorname {C N N} \left(I _ {i}\right), i = 1, \dots , T, \tag {1}
+$$
+
+where $\mathbf{F}_i$ is a 3D tensor with dimensions $C\times H\times W$ . $C$ is the channel size, and $H$ and $W$ are the height and width of the feature map, respectively. We then hierarchically divide the feature maps into $p\in \{1,2,4,8\}$ horizontal parts w.r.t. different levels of granularities, and perform average pooling on the divided feature maps to construct a part-level feature vector. For each granularity, the whole sequence generates $N_{p} = T\times p$ part-level features, which we denote as $\mathbf{h}^0 = \{\mathbf{h}_1^0,\mathbf{h}_2^0,\dots,\mathbf{h}_{N_p}^0\}$ . For example, in each video frame, the first granularity contains a single global vector, while the second and third granularities contain two and four part-level features, respectively, as shown in Figure 2(a).
+
+# 3.2. Multi-Granular Hypergraph
+
+After extracting the initial global or part-based features of each individual, i.e. initial node features, the next step is to update the node features by learning correlations among different nodes. To generate robust representations, it is necessary to take into account both the spatial and temporal correlations of individual features. Inspired by the recent success of HGNNs [14, 25], we propose a novel hypergraph neural network for spatiotemporal feature learning. To explore the spatial and temporal dependencies within a sequence, HGNNs allow nodes to communicate with their neighbors through message passing within the graph. More importantly, compared to standard graph mod
+
+
+Figure 3: Illustration of node feature propagation.
+
+els, hypergraphs can model the high-order dependency involving multiple nodes, which is more flexible and suitable for modeling the multi-granular correlations in a sequence.
+
+Hypergraph Construction. We propose to capture the spatial and temporal dependencies by constructing a set of hypergraphs $\mathcal{G} = \{\mathcal{G}_p\}_{p\in \{1,2,4,8\}}$ , where each hypergraph corresponds to a specific spatial granularity. Concretely, $\mathcal{G}_p = (\mathcal{V}_p,\mathcal{E}_p)$ consists of $N_{p}$ vertices $\nu_{p}$ and a set of hyperedges $\mathcal{E}_p$ . Here, we utilize $v_{i}\in \mathcal{V}_{p}$ , where $i\in \{1,\dots,N_p\}$ to denote the $i$ -th graph node. We define a set of hyperedges to model short- to long-term correlations in the hypergraph. To learn short-term correlations, a hyperedge only connects temporally adjacent features. Mid- and long-range correlations are modeled by hyperedges connecting features of different temporal lengths. Specifically, for each graph node $v_{i}$ , we find its $K$ nearest neighbors within specific temporal ranges, according to the feature affinities between nodes. Then we utilize a hyperedge to connect these $K + 1$ nodes, as shown in Figure 2(b). Mathematically,
+
+$$
+e _ {i t} = \left\{v _ {i}, \forall v _ {j} \in \mathcal {N} _ {K} (v _ {i}) \right\}, s. t. | v _ {i} - v _ {j} | \leq T _ {t}, \tag {2}
+$$
+
+where $\mathcal{N}_K$ is the neighborhood set containing the top- $K$ neighbors, $|\ast|$ denotes the temporal distance between the vertices in the sequence, and $T_{t}$ is the threshold of temporal range. In our framework, we adopt three thresholds (i.e., $T_{1}, T_{2}, T_{3}$ ) to model short-term, mid-term and long-term dependencies, respectively.
+
+Hypergraph Propagation. Based on the hypergraphs, we design a hypergraph neural network to propagate graph information and update node features, as illustrated in Figure 3. Given a node $v_{i}$ , we use $Adj(v_{i}) = \{e_{1}, e_{2}, \dots, e_{k_{i}}\}$ to denote all the hyperedges that include this node. These hyperedges contain the nodes that have the highest correlations with $v_{i}$ . Then an aggregation operation is defined on the hyperedges to capture feature correlations. Specifically, we average all node features in a hyperedge, except for $v_{i}$ , as the hyperedge feature w.r.t. this node:
+
+$$
+\mathbf {m} _ {i k} ^ {l} = \sum_ {j \neq i} ^ {v _ {j} \in e _ {k}} \mathbf {h} _ {j} ^ {l - 1}, \forall e _ {k} \in A d j (v _ {i}), \tag {3}
+$$
+
+where $\mathbf{h}_j^{l - 1}$ denotes the node feature of $v_{j}$ in layer $l - 1$ of the HGNN. We then calculate the importance of each hyperedge by measuring the correlation between node features
+
+# Algorithm 1 Hypergraph Propagation
+
+Input: Input sequence $\mathbf{I} = \{I_1, I_2, \dots, I_T\}$
+
+Output: Hypergraph feature $O_{p}$
+
+1: Extract and pool features by Eq. 1: $\mathbf{h}^0\gets I$
+2: Build the hyperedges by Eq. 2
+3: for $l \gets 1, \dots, L$ do
+4: Pooling hyperedge features by Eq. 3: $\mathbf{m}_{ik}^{l}\gets \mathbf{h}^{l - 1}$
+5: Calculate feature correlations and aggregate hyperedge message by Eqs. 4-6: $\mathbf{n}_i^l\gets \mathbf{m}_{ik}^l$
+6: Updating node features by Eq. 7: $\mathbf{h}_i^l\gets \{\mathbf{h}_i^{l - 1},\mathbf{n}_i^l\}$
+7: end for
+8: $\mathbf{O}_p\gets \{\mathbf{h}_i^L\}$
+
+and hyperedge features:
+
+$$
+z _ {i k} = \phi \left(\mathbf {h} _ {i} ^ {l - 1}, \mathbf {m} _ {i k} ^ {l}\right), \tag {4}
+$$
+
+where $\phi$ measures the similarity between features (we employ cosine similarity in our framework). We then utilize the Softmax function to normalize the importance weights and aggregate the hyperedge messages as follows:
+
+$$
+\gamma_ {i k} = \frac {\exp \left(z _ {i k}\right)}{\sum_ {j} \exp \left(z _ {i j}\right)}, \tag {5}
+$$
+
+$$
+\mathbf {n} _ {i} ^ {l} = \sum_ {k} \gamma_ {i k} \mathbf {m} _ {i k} ^ {l}. \tag {6}
+$$
+
+After obtaining the hypergraph messages, the node features are updated in a fully connected layer by concatenating the previous node features and hyperedge message:
+
+$$
+\mathbf {h} _ {i} ^ {l} = \sigma \left(\mathbf {W} ^ {l} \left[ \mathbf {h} _ {i} ^ {l - 1}, \mathbf {n} _ {i} ^ {l} \right]\right), \tag {7}
+$$
+
+where $\mathbf{W}^l$ is a weight matrix and $\sigma$ is an activation function. The above feature updating steps are repeated for $L$ rounds and we obtain a set of output node features $\mathbf{O}_p = \{\mathbf{h}_i^L\}, \forall v_i \in \mathcal{V}_p$ . We summarize the propagation process of the hypergraph in Algorithm 1.
+
+Attentive Hypergraph Feature Aggregation. After obtaining the final updated node features of each hypergraph w.r.t. each spatial granularity, we further need to aggregate node/part-level features into graph/video-level representations for each hypergraph. When deriving aggregation schemes, we should take into account that, within a hypergraph, different nodes are of varying importance. For instance, the occluded parts or backgrounds are less important than the human body parts. It is therefore necessary to develop a specific attention mechanism [1, 38] to address this. As shown in Figure 4, we propose an attention module which generates the node-level attention for each hypergraph, in order to select the most discriminative part-level features. For each hypergraph, we calculate the node attention $\alpha_{p} = \{\alpha_{1},\dots,\alpha_{N_{p}}\}$ as follows:
+
+$$
+u _ {i} = \mathbf {W} _ {u} \mathbf {h} _ {i} ^ {L}, \tag {8}
+$$
+
+
+Figure 4: Illustration of attentive node feature aggregation and model learning modules.
+
+$$
+\alpha_ {i} = \frac {\exp (u _ {i})}{\sum_ {j} \exp (u _ {j})}, \tag {9}
+$$
+
+where $\mathbf{W}_u$ is the weight matrix. The hypergraph features are then calculated as a weighted sum of the node features:
+
+$$
+\mathbf {h} _ {p} = \sum_ {v _ {i} \in \mathcal {V} _ {p}} \alpha_ {i} \mathbf {h} _ {i} ^ {L}. \tag {10}
+$$
+
+# 3.3. Model Learning
+
+To optimize the framework, we adopt the cross entropy loss and triplet loss to jointly supervise the training procedure. The cross entropy loss is formulated as follows:
+
+$$
+L _ {x e n t} = - \sum_ {i = 1} ^ {N} \log \frac {\exp \left(\mathbf {W} _ {y _ {i}} \mathbf {h} _ {p} ^ {i} + b _ {y _ {i}}\right)}{\sum_ {k = 1} ^ {C} \exp \left(\mathbf {W} _ {k} \mathbf {h} _ {p} ^ {i} + b _ {k}\right)}, \tag {11}
+$$
+
+where $y_{i}$ is the label of feature $\mathbf{h}_p^i$ , $N$ is the mini-batch size, and $C$ is the number of classes in the training set. Given a triplet consisting of the anchor, positive, and negative features, i.e., $\{\mathbf{h}_p^{anc}, \mathbf{h}_p^{pos}, \mathbf{h}_p^{neg}\}_{p=1,2,4,8}$ , the hard triplet loss is calculated as follows:
+
+$$
+\begin{array}{l} L _ {t r i} = - \sum_ {a n c = 1} ^ {N} \left[ m + \max _ {p o s = 1 \dots N} \| \mathbf {h} _ {p} ^ {a n c} - \mathbf {h} _ {p} ^ {p o s} \| _ {2} \right. \tag {12} \\ - \min _ {n e g = 1 \dots N} \| \mathbf {h} _ {p} ^ {a n c} - \mathbf {h} _ {p} ^ {n e g} \| _ {2} ] _ {+}, \\ \end{array}
+$$
+
+where $m$ denotes the margin.
+
+After training the model based on the two loss terms above, each hypergraph will output discriminative graph-level features. The last step is to aggregate graph features w.r.t. different spatial granularities to form the final video representation. In practice, we find that directly pooling graph-level features may lead to significant information loss as each hypergraph captures the unique characteristic of the
+
+corresponding granularity. Therefore, we should maintain the diversity of different levels of graph features. Inspired by the information theory, we attempt to fulfill this goal by mutual information minimization. Specifically, we adopt an additional loss that reduces the mutual information between features from different hypergraphs, thus increasing the discriminability of the final video representation by concatenating all the features. Here we denote $\mathbf{H}_p = \{\mathbf{h}_p^i\}_{i=1}^{N_c}$ as the graph-level features with $p$ spatial partitions, where $N_c$ is the number of tracklets in the training set. Following [20], we define the mutual information loss as:
+
+$$
+L _ {M I} = \sum_ {p, q \in \{1, 2, 4, 8 \}} ^ {p \neq q} \mathcal {I} \left(\mathbf {H} _ {p}, \mathbf {H} _ {q}\right), \tag {13}
+$$
+
+where $\mathcal{I}$ measures the mutual information between different hypergraph features.
+
+Finally, as shown in Figure 4, the overall loss function is a combination of the above three terms:
+
+$$
+L _ {a l l} = L _ {x e n t} + L _ {t r i} + L _ {M I}. \tag {14}
+$$
+
+# 4. Experimental Results
+
+We evaluate MGH on three benchmark datasets, i.e., MARS [65], iLIDS-VID [52], and PRID-2011 [19]. We first conduct a comprehensive ablation study to verify the contribution of each component of our model, and then compare our model with recent state-of-the-art approaches.
+
+# 4.1. Experimental Setup
+
+Datasets. MARS [65] is one of the largest public datasets for video-based person re-ID, which consists of 1,261 pedestrians captured by six cameras, and each individual appears in at least two cameras. Meanwhile, each identity has 13.2 tracklets on average. iLIDS-VID [52] contains 600 image sequences of 300 people from two nonoverlapping camera views in an airport arrival hall. The frame lengths in each sequence vary from 23 to 192, with an average length of 73. PRID-2011 [19] was collected in an uncrowded outdoor environment with a relatively clean background. This dataset includes 749 people from two camera views, but only the first 200 are captured by both cameras. The length of sequence varies from 5 to 675, with an average of 100. Following previous practice [52], we only utilize the sequence pairs with more than 21 frames.
+
+Evaluation Protocols. In terms of MARS, we use the predefined training/test split, i.e., 8,298 sequences of 625 people are used for training, and 12,180 sequences of 636 people are used for testing. As for iLIDS-VID and PRID-2011, we follow the standard evaluation protocol [52]. People are randomly split into two subsets with equal size as training and test sets, and the performance is reported as the average results of ten trials. For all the datasets, we use
+
+| Methods | MARS | iLIDS top-1 | PRID top-1 |
| mAP | top-1 |
| baseline | 78.3 | 85.7 | 79.7 | 88.6 |
| HGNN | 84.1 | 88.7 | 84.3 | 93.8 |
| + Att | 84.8 | 89.2 | 85.1 | 94.2 |
| + LMI | 85.8 | 90.0 | 85.6 | 94.8 |
+
+Table 1: Component analysis of MGH. 'Att' denotes node-level attention, $L_{MI}$ denotes mutual information loss.
+
+Cumulative Matching Characteristics (CMC) and mean Average Precision (mAP) to measure the performance.
+
+Implementation Details. We employ ResNet50 [18] pretrained on ImageNet [11] as the backbone. Following [21], we insert non-local blocks [54] into the network and we resize the input images to $256 \times 128$ . For each batch, we randomly sample 32 sub-sequences from 8 persons. In practice, we set the sub-sequence length $T = 8$ , the hypergraph layer $L = 2$ , and the number of neighbors $K = 3$ . The default spatial partitions are $(1,2,4,8)$ , and the temporal thresholds are $(1,3,5)$ . The influences of these hyperparameters are analyzed in Section 4.3. We adopt the Adam [27] optimizer with weight decay 0.0005. The initial learning rate is set to 0.0003 and is reduced by a factor of 10 every 100 epochs, with the training stage terminating at the 300-th epoch. We concatenate the graph-level features and use the cosine similarity as the distance metric for matching the final video representations. All the experiments are implemented in PyTorch [40], with a Tesla V100 GPU.
+
+# 4.2. Model Component Analysis
+
+We evaluate the contribution of each component and report the results in Table 1. For the baseline in the first row, the backbone network is trained with cross entropy and triplet losses. The results are obtained by performing average pooling on frame-level features across the whole video sequence. Through multi-granular spatial and temporal dependency learning with an HGNN, we observe that the top-1 accuracy increases by $3\%$ on MARS, and by $5\%$ on iLIDS-VID and PRID-2011, as shown in the 2nd row of Table 1. We then insert the node attention module for graph-level feature aggregation, the attention modules further improve the top-1 accuracy by $0.5\% - 1\%$ , respectively. Finally, by further incorporating the mutual information loss, the top-1 accuracy and mAP are respectively improved from $85.7\%$ and $78.3\%$ to $90.0\%$ and $85.8\%$ on MARS. As for iLIDS-VID and PRID-2011, the improvement of top-1 accuracy is more than $5\%$ . In summary, the major improvement of the framework comes from our hypergraph learning mechanism, as it captures the dependencies of both spatial and temporal clues. The attention module and the mutual information loss bring additional improvements by learning more discriminative graph and video-level features.
+
+| Spatial | Temporal | mAP | top-1 |
| 1 | 1 | 82.3 | 87.5 |
| 1 | 3 | 82.8 | 87.7 |
| 1 | 5 | 82.9 | 87.7 |
| 1 | 1,3 | 83.2 | 87.9 |
| 1 | 1,3,5 | 83.3 | 88.1 |
| 1,2 | 1,3,5 | 84.6 | 89.3 |
| 1,2,4 | 1,3,5 | 85.5 | 89.8 |
| 1,2,4,8 | 1,3,5 | 85.8 | 90.0 |
| 1,2,4,8 | 1,3,5,7 | 85.7 | 90.0 |
+
+Table 2: Performance of MGH on MARS under different granularities of spatial and temporal clues. 'Spatial' denotes the number of human body partitions, and 'Temporal' denotes the temporal range for dependency calculation.
+
+# 4.3. Model Sensitivity Analysis
+
+Multi-Granularity. The key motivation of this work is to make full use of the multi-granular spatial and temporal clues in a video sequence to learn better representations. Here, we conduct detailed experiments to evaluate the effectiveness of multi-granular representations, the results of which are illustrated in Table 2. We test different combinations of spatial and temporal granularities. Specifically, when the temporal range is equal to one, only adjacent nodes are connected. We observe that the performance increases steadily when more detailed spatial/temporal granularities are captured. We also find that the performance saturates when using four spatial granularities (i.e., 1, 2, 4, 8) and three temporal granularities (i.e., 1, 3, 5).
+
+Node Propagation Scheme. In MGH, we aggregate the hyperedge features by calculating the correlations with the target node, as depicted by Eqs. 4-6. Here, we compare our correlation aggregator with several alternative aggregation schemes. It is worth noting that pooling-based aggregators and LSTM have also been widely utilized for feature aggregation in GNNs [17]. However, as shown in Figure 5(a), they ("max", "avg" and "LSTM") are less effective than the correlation aggregator since they neglect the dependency of hyperedge features w.r.t. the target node. Besides, graph propagation often adopts attention mechanisms [50], which typically concatenate the inputs and utilize a fully connected layer to generate the attention weights. We observe that such an attention scheme achieves comparable performance with our correlation aggregator, but it requires more computational overhead. Overall, these results demonstrate the effectiveness of the correlation aggregator.
+
+Number of Hypergraph Layers $L$ . We evaluate the influence of different numbers of HGNN layers. From Figure 5(b), we can see that the proposed framework is not sensitive to different numbers of layers. Specifically, a two-layer network achieves slightly better performance than other settings. This is because a one-layer HGNN has
+
+
+Figure 5: Results on MARS illustrating the influence of different hyperparameter. (a) aggregation function; (b) hypergraph layer $L$ ; (c) neighbor number $K$ ; (d) sequence length $T$ . Zoom in for best visualization.
+
+
+
+
+
+
+
+| Methods | Source | MARS | iLIDS-VID | PRID-2011 |
| mAP | top-1 | top-5 | top-20 | top-1 | top-5 | top-20 | top-1 | top-5 | top-20 |
| CNN+XQDA [65] | ECCV16 | 47.6 | 65.3 | 82.0 | 89.0 | 53.0 | 81.4 | 95.1 | 77.3 | 93.5 | 99.3 |
| SeeForest [70] | CVPR17 | 50.7 | 70.6 | 90.0 | 97.6 | 55.2 | 86.5 | 97.0 | 79.4 | 94.4 | 99.3 |
| ASTPN [58] | ICCV17 | - | 44 | 70 | 81 | 62 | 86 | 98 | 77 | 95 | 99 |
| STAN [34] | CVPR18 | 65.8 | 82.3 | - | - | 80.2 | - | - | 93.2 | - | - |
| ETAP-Net [57] | CVPR18 | 67.4 | 80.8 | 92.1 | 96.1 | - | - | - | - | - | - |
| Snippet [5] | CVPR18 | 76.1 | 86.3 | 94.7 | 98.2 | 85.4 | 96.7 | 99.5 | 93.0 | 99.3 | 100 |
| STA [15] | AAAI19 | 80.8 | 86.3 | 95.7 | - | - | - | - | - | - | - |
| ADFD [63] | CVPR19 | 78.2 | 87.0 | 95.4 | 98.7 | 86.3 | 97.4 | 99.7 | 93.9 | 99.5 | 100 |
| VRSTC [21] | CVPR19 | 82.3 | 88.5 | 96.5 | 97.4 | 83.4 | 95.5 | 99.5 | - | - | - |
| COSAM [45] | ICCV19 | 79.9 | 84.9 | 95.5 | 97.9 | 79.6 | 95.3 | - | - | - | - |
| GLTR [31] | ICCV19 | 78.5 | 87.0 | 95.8 | 98.2 | 86.0 | 98.0 | - | 95.5 | 100 | 100 |
| AdaptiveGraph [56] | arXiv19 | 81.9 | 89.5 | 96.6 | 97.8 | 84.5 | 96.7 | 99.5 | 94.6 | 99.1 | 100 |
| MGH | - | 85.8 | 90.0 | 96.7 | 98.5 | 85.6 | 97.1 | 99.5 | 94.8 | 99.3 | 100 |
+
+Table 3: Comparison with the state-of-the-art video-based person re-id methods. The three best scores are indicated in red, blue and green, respectively.
+
+insufficient representational capability, whilst multi-layer HGNNs contains too many parameters that bring difficulties to the training step. Therefore, we employ a two-layer HGNN in our framework.
+
+Number of Neighbors $K$ . This hyperparameter controls the number of nodes within a hyperedge. Specifically, when $K = 1$ , an edge only connects two graph nodes and the hypergraph degrades into a standard graph. As shown in Figure 5(c), in the beginning, the performance increases as $K$ becomes larger, since more context information is included in the hyperedge. However, the performance becomes saturated when $K > 3$ . These results validate the effectiveness of employing a hypergraph rather than a standard graph.
+
+Sequence Length $T$ . Last but not least, we train and test the framework with various sequence lengths $T$ , and the results are illustrated in Figure 5(d). Overall, the proposed framework is robust to variations in $T$ . We also find that longer sequences generate slightly better performance, since the model can capture wider ranges of temporal dependencies. Meanwhile, employing longer sequences increases the model complexity. Overall, $T = 8$ gives the best trade-off between performance and complexity.
+
+In summary, the proposed MHG is not sensitive to most hyperparameters in the framework. The granularity of the spatial and temporal clues plays a key role in the overall
+
+performance, which aligns well with the motivation of the proposed framework.
+
+# 4.4. Comparisons with State-of-the-Arts
+
+In this section, we compare the proposed MGH with the state-of-the-art methods on three video-based person re-id benchmarks. The results are reported in Table 3.
+
+On MARS, our approach achieves $90\%$ top-1 accuracy, outperforming all previous methods. More remarkably, the proposed model achieves $85.8\%$ in mAP without re-ranking, showing significant improvement (i.e., $3.5\%$ higher) over the current best state-of-the-art method. We notice that the recently proposed AdaptiveGraph [56] also employs GNNs to address the video-based person re-ID task. Our model has two advantages. First, AdaptiveGraph requires additional pose information to build the graph, while our MGH is dynamically constructed based on feature affinities, which makes the proposed model more flexible. Second, AdaptiveGraph only considers the correlation between adjacent frames, neglecting the long-term temporal dependency. In the proposed hypergraph, dependencies in varying temporal ranges are modeled by different hyperedges, yielding more robust representations. It is worth noting that VRSTC [21] also achieves promising results on MARS; however, it is a two-stage model, i.e., VRSTC
+
+
+Figure 6: Visualization of re-ID results using the baseline model and the proposed MGH model. The first sequence is the query, whilst the rest are the Rank-1 to Rank-4 (from left to right) retrieved results. The green and red bounding boxes denote correct and incorrect matches, respectively.
+
+
+Figure 7: Visualization of node attention weights. The node attention weights are visualized below the input sequences.
+
+first locates the occluded regions and completes the regions with a generative model, and then utilizes the non-occluded frames for re-ID. In contrast, the proposed MGH does not need such pre-processing and can be learned end-to-end.
+
+In terms of iLIDS-VID and PRID, since they only contain a single correct match in the gallery set, we only report the cumulative re-ID accuracy. Overall, the proposed MGH achieves competitive results compared with other state-of-the-art methods. Specifically, MGH outperforms several recent models (i.e., SeeForest [70], ASTPN [58], STAN [34], ETAP-Net [57], Snippet [5] with optical flow inputs, STA [15] and COSAM [45]) in terms of all the evaluation metrics on the two datasets. We note that ADFD [63] obtains strong performance on iLIDS-VID and PRID-2011. This may be because ADFD employs external attribute labels to learn disentangled feature representations, and such additional information is more effective on small-scale datasets. In contrast, our model only requires identity annotation, and can achieve competitive performance. GLTR [31] employs dilated temporal convolutions to capture the multi-granular temporal dependencies, and achieves impressive results on these two datasets. However, GLTR does not consider spatial multi-granularity. This is why GLTR obtains less impressive results on MARS, where there tend to be misalignment in the sequence.
+
+In summary, the above results have demonstrated the advantages of the proposed MGH model for video-based person re-ID. With only identity labels, MGH can achieve state-of-the-art performance on MARS, one of the largest existing public benchmarks for this task, in terms of mAP and top-1 accuracy. Meanwhile, MGH also achieves competitive results on iLIDS-VID and PRID-2011.
+
+# 4.5. Results Visualization
+
+We visualize some person re-ID results in Figure 6. As can be observed, it is difficult for the baseline model to distinguish people sharing similar appearances when there are misalignments and occlusions, resulting in relatively low top-1 accuracy. In these cases, the proposed MGH reduces the visual ambiguity by employing multi-granular spatial and temporal clues. At the same time, MGH achieves more robust results under different illumination conditions.
+
+To better understand the attentive node feature aggregation module, the attention weights of two occlusion examples are visualized in Figure 7. On the one hand, for the global spatial partition, the images that contain a larger foreground person tend to be assigned with higher weights. On the other hand, for the local partitions, the parts belonging to the target person have obviously higher weights than the backgrounds. This indicates that the node attention module can adaptively concentrate on the discriminative parts, which validates the effectiveness of the attention module.
+
+# 5. Conclusion
+
+This paper proposed a multi-granular hypergraph learning framework to address video-based person re-ID. The proposed framework explicitly leveraged multi-granular spatial and temporal clues in the video sequence by learning a sophisticatedly-designed hypergraph neural network. In the learning process, we developed an attention mechanism to aggregate node-level features to yield more discriminative graph representations. In addition, we learned more diversified multi-granular features based on a novel mutual information loss. Extensive experiments were conducted on three person re-ID benchmarks, where the proposed framework achieved favorable performance compared with recent state-of-the-art methods.
+
+# References
+
+[1] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. 4
+[2] Song Bai, Xiang Bai, and Qi Tian. Scalable person re-identification on supervised smoothed manifold. In CVPR, 2017. 2
+[3] Song Bai, Peng Tang, Philip H. S. Torr, and Longin Jan Latecki. Re-ranking via metric fusion for object retrieval and person re-identification. In CVPR, 2019. 2
+[4] Song Bai, Feihu Zhang, and Philip H. S. Torr. Hypergraph convolution and hypergraph attention. CoRR, abs/1901.08150, 2019. 3
+[5] Dapeng Chen, Hongsheng Li, Tong Xiao, Shuai Yi, and Xiaogang Wang. Video person re-identification with competitive snippet-similarity aggregation and co-attentive snippet embedding. In CVPR, 2018. 2, 7, 8
+[6] Dapeng Chen, Dan Xu, Hongsheng Li, Nicu Sebe, and Xiaogang Wang. Group consistent similarity learning via deep CRF for person re-identification. In CVPR, 2018. 2
+[7] Jiaxin Chen, Yunhong Wang, Jie Qin, Li Liu, and Ling Shao. Fast person re-identification via cross-camera semantic binary transformation. In CVPR, 2017. 2
+[8] Zhao-Min Chen, Xiu-Shen Wei, Peng Wang, and Yanwen Guo. Multi-label image recognition with graph convolutional networks. In CVPR, 2019. 2
+[9] Dahjung Chung, Khalid Tahboub, and Edward J. Delp. A two stream siamese convolutional neural network for person re-identification. In ICCV, 2017. 2
+[10] Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In NeurIPS, 2016. 2
+[11] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. 6
+[12] David Duvenaud, Dougal Maclaurin, Jorge Aguilera-Iparraguirre, Rafael Gómez-Bombarelli, Timothy Hirzel, Alán Aspuru-Guzik, and Ryan P. Adams. Convolutional networks on graphs for learning molecular fingerprints. In NeurIPS, 2015. 2
+[13] Michela Farenzena, Loris Bazzani, Alessandro Perina, Vittorio Murino, and Marco Cristani. Person re-identification by symmetry-driven accumulation of local features. In CVPR, 2010. 2
+[14] Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In AAAI, 2019. 2, 3
+[15] Yang Fu, Xiaoyang Wang, Yunchao Wei, and Thomas Huang. STA: spatial-temporal attention for large-scale video-based person re-identification. In AAAI, 2019. 7, 8
+[16] Niloofar Gheissari, Thomas B. Sebastian, and Richard I. Hartley. Person reidentification using spatiotemporal appearance. In CVPR, 2006. 2
+[17] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NeurIPS, 2017. 6
+
+[18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
+[19] Martin Hirzer, Csaba Beleznai, Peter M. Roth, and Horst Bischof. Person re-identification by descriptive and discriminative classification. In SCIA, 2011. 5
+[20] R. Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Philip Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019. 5
+[21] Ruibing Hou, Bingpeng Ma, Hong Chang, Xinqian Gu, Shiguang Shan, and Xilin Chen. VRSTC: occlusion-free video person re-identification. In CVPR, 2019. 6, 7
+[22] Yuchi Huang, Qingshan Liu, and Dimitris N. Metaxas. Video object segmentation by hypergraph cut. In CVPR, 2009. 3
+[23] Yuchi Huang, Qingshan Liu, Shaoting Zhang, and Dimitris N. Metaxas. Image retrieval via probabilistic hypergraph ranking. In CVPR, 2010. 3
+[24] Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 3d convolutional neural networks for human action recognition. In ICML, 2010. 2
+[25] Jianwen Jiang, Yuxuan Wei, Yifan Feng, Jingxuan Cao, and Yue Gao. Dynamic hypergraph neural networks. In *IJCAI*, 2019. 3
+[26] Srikrishna Karanam, Yang Li, and Richard J. Radke. Person re-identification with discriminatively trained viewpoint invariant dictionaries. In ICCV, 2015. 2
+[27] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 6
+[28] Alexander Kläser, Marcin Marszalek, and Cordelia Schmid. A spatio-temporal descriptor based on 3d-gradients. In BMVC, 2008. 2
+[29] Sofia Ira Ktena, Sarah Parisot, Enzo Ferrante, Martin Rajchl, Matthew C. H. Lee, Ben Glocker, and Daniel Rueckert. Distance metric learning using graph convolutional networks: Application to functional brain networks. In MICCAI, 2017. 2
+[30] Dangwei Li, Xiaotang Chen, Zhang Zhang, and Kaiqi Huang. Learning deep context-aware features over body and latent parts for person re-identification. In CVPR, 2017. 1
+[31] Jianing Li, Jingdong Wang, Qi Tian, Wen Gao, and Shiliang Zhang. Global-local temporal representations for video person re-identification. In ICCV, 2019. 2, 7, 8
+[32] Jianing Li, Shiliang Zhang, and Tiejun Huang. Multiscale 3d convolution network for video based person re-identification. In AAAI, 2019. 2
+[33] Minxian Li, Xiatian Zhu, and Shaogang Gong. Unsupervised person re-identification by deep learning tracklet association. In ECCV, 2018. 2
+[34] Shuang Li, Slawomir Bak, Peter Carr, and Xiaogang Wang. Diversity regularized spatiotemporal attention for videobased person re-identification. In CVPR, 2018. 2, 7, 8
+[35] Kan Liu, Bingpeng Ma, Wei Zhang, and Rui Huang. A spatio-temporal appearance representation for viceo-based pedestrian re-identification. In ICCV, 2015. 2
+[36] Yu Liu, Junjie Yan, and Wanli Ouyang. Quality aware network for set to set recognition. In CVPR, 2017. 2
+
+[37] Yiheng Liu, Zhenxun Yuan, Wengang Zhou, and Houqiang Li. Spatial and temporal mutual promotion for video-based person re-identification. In AAAI, 2019. 2
+[38] Xiankai Lu, Wenguan Wang, Chao Ma, Jianbing Shen, Ling Shao, and Fatih Porikli. See more, know more: Unsupervised video object segmentation with co-attention siamese networks. In CVPR, 2019. 4
+[39] Niall McLaughlin, Jesús Martínez del Rincón, and Paul C. Miller. Recurrent convolutional network for video-based person re-identification. In CVPR, 2016. 2
+[40] 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. In NeurIPS Autodiff Workshop, 2017. 6
+[41] Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Trans. Neural Networks, 20(1):61-80, 2009. 2
+[42] Paul Scovanner, Saad Ali, and Mubarak Shah. A 3-dimensional sift descriptor and its application to action recognition. In ACM Multimedia, 2007. 2
+[43] Yantao Shen, Hongsheng Li, Shuai Yi, Dapeng Chen, and Xiaogang Wang. Person re-identification with deep similarity-guided graph neural network. In ECCV, 2018. 2
+[44] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NeurIPS, 2014. 2
+[45] Arulkumar Subramaniam, Athira Nambiar, and Anurag Mittal. Co-segmentation inspired attention networks for videobased person re-identification. In ICCV, 2019. 7, 8
+[46] Yumin Suh, Jingdong Wang, Siyu Tang, Tao Mei, and Kyoung Mu Lee. Part-aligned bilinear representations for person re-identification. In ECCV, 2018. 2
+[47] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and A strong convolutional baseline). In ECCV, 2018. 1
+[48] Du Tran, Lubomir D. Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015. 2
+[49] Rahul Rama Varior, Bing Shuai, Jiwen Lu, Dong Xu, and Gang Wang. A siamese long short-term memory architecture for human re-identification. In ECCV, 2016. 1
+[50] Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In ICLR, 2018. 6
+[51] Guanshuo Wang, Yufeng Yuan, Xiong Chen, Jiwei Li, and Xi Zhou. Learning discriminative features with multiple granularities for person re-identification. In ACM Multimedia, 2018. 1, 3
+[52] Taiqing Wang, Shaogang Gong, Xiatian Zhu, and Shengjin Wang. Person re-identification by video ranking. In ECCV, 2014. 2, 5
+[53] Wenguan Wang, Xiankai Lu, Jianbing Shen, David J. Crandall, and Ling Shao. Zero-shot video object segmentation via attentive graph neural networks. In ICCV, 2019. 2
+
+[54] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018. 6
+[55] Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In ECCV, 2018. 2
+[56] Yiming Wu, Omar El Farouk Bourahla, Xi Li, Fei Wu, and Qi Tian. Adaptive graph representation learning for video person re-identification. CoRR, abs/1909.02240, 2019. 7
+[57] Yu Wu, Yutian Lin, Xuanyi Dong, Yan Yan, Wanli Ouyang, and Yi Yang. Exploit the unknown gradually: One-shot video-based person re-identification by stepwise learning. In CVPR, 2018. 2, 7, 8
+[58] Shuangjie Xu, Yu Cheng, Kang Gu, Yang Yang, Shiyu Chang, and Pan Zhou. Jointly attentive spatial-temporal pooling networks for video-based person re-identification. In ICCV, 2017. 7, 8
+[59] Naganand Yadati, Madhav Nimishakavi, Prateek Yadav, Anand Louis, and Partha Pratim Talukdar. Hypergen: Hypergraph convolutional networks for semi-supervised classification. CoRR, 2018. 3
+[60] Yichao Yan, Bingbing Ni, Zhichao Song, Chao Ma, Yan Yan, and Xiaokang Yang. Person re-identification via recurrent feature aggregation. In ECCV, 2016. 2
+[61] Jinjie You, Ancong Wu, Xiang Li, and Wei-Shi Zheng. Toppush video-based person re-identification. In CVPR, 2016. 2
+[62] Jianfu Zhang, Naiyan Wang, and Liqing Zhang. Multi-shot pedestrian re-identification via sequential decision making. In CVPR, 2018. 2
+[63] Yiru Zhao, Xu Shen, Zhongming Jin, Hongtao Lu, and Xian-Sheng Hua. Attribute-driven feature disentangling and temporal aggregation for video person re-identification. In CVPR, 2019. 7, 8
+[64] Feng Zheng, Cheng Deng, Xing Sun, Xinyang Jiang, Xiaowei Guo, Zongqiao Yu, Feiyue Huang, and Rongrong Ji. Pyramidal person re-identification via multi-loss dynamic training. In CVPR, 2019. 1, 3
+[65] Liang Zheng, Zhi Bie, Yifan Sun, Jingdong Wang, Chi Su, Shengjin Wang, and Qi Tian. MARS: A video benchmark for large-scale person re-identification. In ECCV, 2016. 2, 5, 7
+[66] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015. 2
+[67] Liang Zheng, Hengheng Zhang, Shaoyan Sun, Manmohan Chandraker, Yi Yang, and Qi Tian. Person re-identification in the wild. In CVPR, 2017. 2
+[68] Wei-Shi Zheng, Shaogang Gong, and Tao Xiang. Transfer re-identification: From person to set-based verification. In CVPR, 2012. 2
+[69] Dengyong Zhou, Jiayuan Huang, and Bernhard Scholkopf. Learning with hypergraphs: Clustering, classification, and embedding. In NeurIPS, 2006. 3
+[70] Zhen Zhou, Yan Huang, Wei Wang, Liang Wang, and Ti-niu Tan. See the forest for the trees: Joint spatial and temporal recurrent neural networks for video-based person re-identification. In CVPR, 2017. 2, 7, 8
\ No newline at end of file
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/images.zip b/learningmultigranularhypergraphsforvideobasedpersonreidentification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ca08c3754d5ec94c009fca6115a610d5423730db
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:059facdeb89f75220f49fbc19c2064e918ed6ba427a70436763ba87e347fe78d
+size 664603
diff --git a/learningmultigranularhypergraphsforvideobasedpersonreidentification/layout.json b/learningmultigranularhypergraphsforvideobasedpersonreidentification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c4e776b14fc8291c7b1eaf70acebac0b07235801
--- /dev/null
+++ b/learningmultigranularhypergraphsforvideobasedpersonreidentification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a130d540ad59faa6d7734ea1bbbea15cde2eb2b6dc6057420bfec0331d20fd7f
+size 415799
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_content_list.json b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0cb74ac7913e4d7ff403e052cc794edaae507bf4
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1269611859589511448074c54cafd47146c26cdc21f36d1da1d34aa2fcab13b
+size 81789
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_model.json b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0808f4e92b4ed8314e2bd078d17ac168b9e0b00
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c6164291c43cf1af40d1fd9aadf07e7d2b567b1d51c72095b0adef8461f85f7
+size 101212
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_origin.pdf b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..656c6889d1c0fd026b6a83f9766e6d19554a9702
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/dec010da-681d-4e6e-99c3-0ff364cad3dc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03008edd070f81062e38d738f410524dd38acc88ad5df8ffd9bda7c4398e952c
+size 1031775
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/full.md b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5624e29cce5961e820b7dc6177b27439f50909ed
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/full.md
@@ -0,0 +1,321 @@
+# Learning Multi-Object Tracking and Segmentation from Automatic Annotations
+
+Lorenzo Porzi†, Markus Hofinger‡, Idoia Ruiz*, Joan Serrat*, Samuel Rota Bulò†, Peter Kontschieder†
+Mapillary Research†, Graz University of Technology‡, Computer Vision Center, UAB*
+
+research@mapillary.com†, markus.hofinger@icg.tugraz.at‡, {iruiz,joans}@cvc.uab.es*
+
+
+Figure 1: KITTI sub-sequences with automatically generated MOTS annotations as color-coded instance masks (left to right).
+
+# Abstract
+
+In this work we contribute a novel pipeline to automatically generate training data, and to improve over state-of-the-art multi-object tracking and segmentation (MOTS) methods. Our proposed track mining algorithm turns raw street-level videos into high-fidelity MOTS training data, is scalable and overcomes the need of expensive and time-consuming manual annotation approaches. We leverage state-of-the-art instance segmentation results in combination with optical flow predictions, also trained on automatically harvested training data. Our second major contribution is MOTSNet—a deep learning, tracking-by-detection architecture for MOTS—deploying a novel mask-pooling layer for improved object association over time. Training MOTSNet with our automatically extracted data leads to significantly improved sMOTSA scores on the novel KITTI MOTS dataset $(+1.9\% / +7.5\%)$ on cars/pedestrians), and MOTSNet improves by $+4.1\%$ over previously best methods on the MOTsChallenge dataset. Our most impressive finding is that we can improve over previous best-performing works, even in complete absence of manually annotated MOTS training data.
+
+# 1. Introduction and Motivation
+
+We focus on the challenging task of multi-object tracking and segmentation (MOTS) [43], which was recently introduced as an extension of bounding-box based multiobject tracking. Joining instance segmentation with tracking was shown to noticeably improve tracking performance, as unlike bounding boxes, instance segmentation masks do not suffer from overlapping issues but provide fine-grained, pixel-level information about objects to be tracked.
+
+While this finding is encouraging, it comes with the
+
+downside of requiring pixel-level (typically polygon-based) annotations, which are known to be time-consuming in generation and thus expensive to obtain. The works in [9, 29] report annotation times of $\approx 90$ minutes per image, to manually produce high-quality panoptic segmentation masks. Analogously, it is highly demanding to produce datasets for the MOTS task where instance segmentation masks need to also contain tracking information across frames.
+
+To avoid generating MOTS labels completely from scratch and in a purely manual way, [43] has followed the semi-automatic annotation procedure from [4], and extended the existing multi-object tracking datasets KITTI tracking [11] (i.e. 21 sequences from the raw KITTI dataset) and MOTChallenge [28] (4/7 sequences). These datasets already provide bounding box-based tracks for cars and pedestrians. Instance segmentation masks were generated as follows. First, two segmentation masks per object were generated by human annotators (which also had to chose the objects based on diversity in the first place). Then, DeepLabV3+ [6], i.e. a state-of-the-art semantic segmentation network, was trained on the initially generated masks in a way to overfit these objects in a sequence-specific way, thus yielding reasonable segmentation masks for the remaining objects in each track. The resulting segmentation masks then underwent another manual correction step to fix remaining errors. Finally, these automatic and manual steps were iterated until convergence.
+
+Including an automated segmentation algorithm is clearly speeding up the MOTS dataset generation process, but still has significant shortcomings. Most importantly, the approach in [43] still depends on the availability of bounding-box based, multi-object tracking information as provided by datasets like [11, 28]. Also, their remaining human annotation effort for generating initial instance
+
+masks was considerable, i.e. [43] reports that $\approx 8\mathrm{k}$ masks (or $12.3\%$ of all masks in KITTI MOTS) had been manually labeled before fine-tuning a (modified) DeepLabV3+ segmentation network, pre-trained on COCO [21] and Mapillary Vistas [29]. Finally, such an approach cannot be expected to generalize well for generating orders of magnitude more training data.
+
+In this paper we introduce a novel approach for automatically generating high-quality training data (see Fig. 1 for an example) from generic street-level videos for the task of joint multi-object tracking and segmentation. Our methods are conceptually simple and leverage state-of-the-art instance [12] (or Panoptic [8, 35]) segmentation models trained on existing image datasets like Mapillary Vistas [29] for the task of object instance segmentation. We further describe how to automatically mine tracking labels for all detected object instances, building upon state-of-the-art optical flow models [49], that in turn have been trained on automatically harvested flow supervision obtained from image-based 3d modeling (structure-from-motion).
+
+Another important contribution of our paper is MOTSNet, a deep learning, tracking-by-detection approach for MOTS. MOTSNet takes advantage of a novel mask-pooling layer, which allows it to exploit instance segmentation masks to compute a representative embedding vector for each detected object. The tracking process can then be formulated as a series of Linear Assignment Problems (LAP), optimizing a payoff function which compares detections in the learned embedding space.
+
+We demonstrate the superior quality for each step of our proposed MOTS training data extraction pipeline, as well as the efficacy of our novel mask-pooling layer. The key contributions and findings of our approach are:
+
+- Automated MOTS training data generation – instance detection, segmentation and actual tracking – is possible at scale and with very high fidelity, approximating the quality of previous state-of-the-art results [43] without even directly training for it.
+- Deep-learning based, supervised optical flow [49] can be effectively trained on pixel-based correspondences obtained from Structure-from-Motion and furthermore used for tracklet extraction.
+- Direct exploitation of instance segmentation masks through our proposed mask-pooling layer yields to significant improvements of sMOTSA scores
+- The combination of our general-purpose MOTS data generation pipeline with our proposed MOTSNet improves by up to $1.2\%$ for cars and $7.5\%$ for pedestrians over the previously best method on KITTI MOTS in absolute terms, while using $13.7\%$ fewer parameters.
+
+We provide extensive ablation studies on the KITTI MOTS, MOTSChallenge, and Berkeley Deep Drive BDD100k [50] datasets and obtain results consistently improving with a
+
+large margin over the prior state-of-the-art [43].
+
+# 2. Related Works
+
+Since the MOTS task was only very recently introduced in [43], directly related works are scarce. Instead, the bulk of related works in a broader sense comes from the MOT (multi-object tracking) and VOS (video object segmentation) literature. This is true in terms of both, datasets (see e.g. [11, 18, 28] for MOT and [20, 33, 36] for VOS/VOT, respectively), and methods tackling the problems ([40] for MOT and [25, 31, 44, 48] for VOS).
+
+Combining motion and semantics. The work in [16] uses semantic segmentation results from [23] for video frames together with optical flow predictions from EpicFlow [37] to serve as ground truth, for training a joint model on future scene parsing, i.e. the task of anticipating future motion of scene semantics. In [24] this task is extended to deal with future instance segmentation prediction, based on convolutional features from a Mask R-CNN [12] instance segmentation branch. In [15] a method for jointly estimating optical flow and temporally consistent semantic segmentation from monocular video is introduced. Their approach is based on a piece-wise flow model, enriched with semantic information through label consistency of superpixels.
+
+Semi-automated dataset generation. Current MOT [11, 28, 45] and VOS [34, 47] benchmarks are annotated based on human efforts. Some of them, however, use some kind of automation. In [47], they exploit the temporal correlation between consecutive frames in a skip-frame strategy, although the segmentation masks are manually annotated. A semi-automatic approach is proposed in [1] for annotating multi-modal benchmarks. It uses a pre-trained VOS model [17] but still requires additional manual annotations and supervision on the target dataset. The MOTs training data from [43] is generated by augmenting an existing MOT dataset [11, 28] with segmentation masks, using the iterative, human-in-the-loop procedure we briefly described in Sec. 1. The tracking labels on [11, 28] were manually annotated and, in the case of [28], refined by adding high-confidence detections from a pedestrian detector.
+
+The procedures used in these semi-automatic annotation approaches often resemble those of VOS systems which require user input to select objects of interest in a video. Some proposed techniques in this field [5, 7, 27] are extensible to multiple object scenarios. A pixel-level embedding is built in [7] to solve segmentation and achieve state-of-the-art accuracy with low annotation and computational cost.
+
+To the best of our knowledge, the only work that generates tracking data from unlabeled large-scale videos is found in [32]. By using an adaptation of the approach in [31], Osep et al. perform object discovery on unlabeled videos from the KITTI Raw [10] and Oxford RobotCar [26] datasets. Their approach however cannot provide joint an
+
+notations for instance segmentation and tracking.
+
+Deep Learning methods for MOT and MOTS. Many deep learning methods for MOTS/VOS are based on "tracking by detection", i.e. candidate objects are first detected in each frame, and then joined into tracks as a post-processing step (e.g. [43]). A similar architecture, i.e. a Mask R-CNN augmented with a tracking head, is used in [48] to tackle Video Instance Segmentation. A later work [25] improved over [48] by adapting the UnOVOST [51] model that, first in an unsupervised setting, uses optical flow to build short tracklets later merged by a learned embedding. For the plain MOT task, Sharma et al. [40] incorporated shape and geometry priors into the tracking process.
+
+Other works instead, perform detection-free tracking. CAMOT [31] tracks category-agnostic mask proposals across frames, exploiting both appearance and geometry cues from scene flow and visual odometry. Finally, the VOS work in [44], follows a correlation-based approach, extending popular tracking models [3, 19]. Their SiamMask model only requires bounding box initialization but is pretrained on multiple, human-annotated datasets [21, 39, 47].
+
+# 3. Dataset Generation Pipeline
+
+Our proposed data generation approach is rather generic w.r.t. its data source, and here we focus on the KITTI Raw [10] dataset. KITTI Raw contains 142 sequences (we excluded the 9 sequences overlapping with the validation set of KITTI MOTS), for a total of $\sim 44\mathrm{k}$ images, captured with a professional rig including stereo cameras, LiDAR, GPS and IMU. Next we describe our pipeline which, relying only on monocular images and GPS data is able to generate accurate MOTS annotations for the dataset.
+
+# 3.1. Generation of Instance Segmentation Results
+
+We begin with segmenting object instances in each frame per video and consider a predefined set $\mathcal{V}$ of 37 object classes that belong to the Mapillary Vistas dataset [29]. To extract the instance segments, we run the Seamless Scene Segmentation method [35], augmented with a ResNeXt-101-32×8d [46] backbone and trained on Mapillary Vistas. By doing so, we obtain a set of object segments $S$ per video sequence. For each segment $s\in S$ , we denote by $t_s\geq 0$ the frame where the segment was extracted, by $y_{s}\in \mathcal{V}$ the class it belongs to and by $\phi_s:\mathbb{R}^2\to \{0,1\}$ a pixel indicator function representing the segmentation mask, i.e. $\phi_s(i,j) = 1$ if and only if pixel $(i,j)$ belongs to the segment. For convenience, we also introduce the notation $S_{t}$ to denote the set of all segments extracted from frame $t$ of a given video. For KITTI Raw we roughly extracted 1.25M segments.
+
+# 3.2. Generation of Tracklets using Optical Flow
+
+After having automatically extracted the instance segments from a given video in the dataset, our goal is to lever
+
+age on optical flow to extract tracklets, i.e. consecutive sequences of frames where a given object instance appears.
+
+Flow training data generation. We automatically generate ground-truth data for training an optical flow network by running a Structure-from-Motion (SfM) pipeline, namely OpenSfM1, on the KITTI Raw video sequences and densify the result using PatchMatch [41]. To further improve the quality of the 3d reconstruction, we exploit the semantic information that has been already extracted per frame to remove spurious correspondences generated by moving objects. Consistency checks are also performed in order to retain correspondences that are supported by at least 3 images. Finally, we derive optical flow vectors between pairs of consecutive video frames in terms of the relative position of correspondences in both frames. This process produces sparse optical flow, which will be densified in the next step.
+
+Flow network. We train a modified version of the $\mathrm{HD}^3$ flow network [49] on the dataset that we generated from KITTI Raw, without any form of pre-training. The main differences with respect to the original implementation are the use of In-Place Activated Batch Norm (iABN) [38], which provides memory savings that enable the second difference, namely the joint training of forward and backward flow. We then run our trained flow network on pairs of consecutive frames in KITTI Raw in order to determine a dense pixel-to-pixel mapping between them. In more detail, for each frame $t$ we compute the backward mapping $\overleftarrow{f}_t: \mathbb{R}^2 \to \mathbb{R}^2$ , which provides for each pixel of frame $t$ the corresponding pixel in frame $t - 1$ .
+
+Tracklet generation. In order to represent the tracklets that we have collected up to frame $t$ , we use a graph $\mathcal{G}_t = (\mathcal{V}_t, \mathcal{T}_t)$ , where vertices are all segments that have been extracted until the $t$ th frame, i.e. $\mathcal{V}_t = \bigcup_{j \geq 1}^t S_j$ , and edges $\mathcal{T}_t \subseteq \mathcal{V}_t^2$ provide the matching segments across consecutive frames. We start by initializing the graph in the first frame as $\mathcal{G}_1 = (\mathcal{S}_1, \emptyset)$ . We construct $\mathcal{G}_t$ for $t > 1$ inductively from $\mathcal{G}_{t-1}$ using the segments $S_t$ extracted at time $t$ and the mapping $\overleftarrow{f}_t$ according to the following procedure. The vertex set $\mathcal{V}_t$ of graph $\mathcal{G}_t$ is given by the union of the vertex set $\mathcal{V}_{t-1}$ of $\mathcal{G}_{t-1}$ and $S_t$ , i.e. $\mathcal{V}_t = \mathcal{V}_{t-1} \cup S_t$ . The edge set is computed by solving a linear assignment problem between $S_{t-1}$ and $S_t$ , where the payoff function is constructed by comparing segments in $S_t$ against segments in $S_{t-1}$ warped to frame $t$ via the mapping $\overleftarrow{f}_t$ . We design the payoff function $\pi(\hat{s}, s)$ between a segment $\hat{s} \in S_{t-1}$ in frame $t-1$ and a segment $s \in S_t$ in frame $t$ as follows:
+
+$$
+\pi (\hat {s}, s) = \operatorname {I o U} \left(\phi_ {s}, \phi_ {\hat {s}} \circ \overleftarrow {f} _ {t}\right) + \eta (\hat {s}, s),
+$$
+
+where $\mathrm{IoU}(\cdot ,\cdot)$ computes the Intersection-over-Union of the two masks given as input, and $\eta (\hat{s},s)\in \{-\infty ,0\}$ is a
+
+
+Figure 2: Overview of the MOTSNet architecture. Blue: network backbone; yellow: Region Proposal Head; green: Region Segmentation Head; red: Tracking Head. For an in-depth description of the various components refer to Sec. 4.1 in the text.
+
+characteristic function imposing constraints regarding valid mappings. Specifically, $\eta (\hat{s},s)$ returns 0 if and only if the two segments belong to the same category, i.e. $y_{\hat{s}} = y_{s}$ , and none of the following conditions on $s$ hold:
+
+$b_{1}(s) - b_{2}(s) < \tau_{0}$
+- $b_{1}(s) < \tau_{1}$ , and
+- $b_{1}(s) / r(s) < \tau_{2}$ ,
+
+where $b_{1}(s)$ and $b_{2}(s)$ denote the largest and second-largest areas of intersection with $s$ obtained by segments warped from frame $t - 1$ and having class $y_{s}$ , and $r(s)$ denotes the area of $s$ that is not covered by segments of class $y_{s}$ warped from frame $t - 1$ . We solve the linear assignment problem using the Hungarian algorithm, by maximizing the total payoff under a relaxed assignment constraint, which allows segments to remain unassigned. In other terms, we solve the following optimization problem:
+
+$$
+\text {m a x i m i z e} \sum_ {s \in \mathcal {S} _ {t}} \sum_ {\hat {s} \in \mathcal {S} _ {t - 1}} \pi (\hat {s}, s) \alpha (\hat {s}, s) \tag {1}
+$$
+
+$$
+s. t. \sum_ {s \in \mathcal {S} _ {t}} \alpha (\hat {s}, s) \leq 1 \quad \forall \hat {s} \in \mathcal {S} _ {t - 1} \tag {2}
+$$
+
+$$
+\sum_ {\hat {s} \in \mathcal {S} _ {t - 1}} \alpha (\hat {s}, s) \leq 1 \quad \forall s \in \mathcal {S} _ {t} \tag {3}
+$$
+
+$$
+\alpha (\hat {s}, s) \in \{0, 1 \} \quad \forall (\hat {s}, s) \in \mathcal {S} _ {t - 1} \times \mathcal {S} _ {t}. \tag {4}
+$$
+
+Finally, the solution $\alpha$ of the assignment problem can be used to update the set of edges $\mathcal{T}_t$ , i.e. $\mathcal{T}_t = \mathcal{T}_{t - 1} \cup \alpha^{-1}(1)$ where $\alpha^{-1}(1)$ is the set of matching segments, i.e. the preimage of 1 under $\alpha$ .
+
+Note that this algorithm cannot track objects across full occlusions, since optical flow is unable to infer the trajectories of invisible objects. When training MOTSNet however, we easily overcome this limitation with a simple heuristic, described in Sec. 4.2, without needing to join the tracklets into full tracks.
+
+# 4. MOTSNet
+
+Here we describe our multi-object tracking and segmentation approach. Its main component is MOTSNet (see Sec. 4.1), a deep net based on the Mask R-CNN [12] framework. Given an RGB image, MOTSNet outputs a set of instance segments, each augmented with a learned embedding vector which represents the object's identity in the sequence (see Sec. 4.2). The object tracks are then reconstructed by applying a LAP-based algorithm, described in Sec. 4.3.
+
+# 4.1. Architecture
+
+MOTSNet's architecture follows closely the implementation of Mask R-CNN described in [35], but additionally comprises a Tracking Head (TH) that runs in parallel to the Region Segmentation Head (RSH) (see Figure 2). The "backbone" of the network is composed of an FPN [22] component on top of a ResNet-50 body [13], producing multi-scale features at five different resolutions. These features are fed to a Region Proposal Head (RPH), which predicts candidate bounding boxes where object instances could be located in the image. Instance specific features are then extracted from the FPN levels using ROI Align [12] in the areas defined by the candidate boxes, and fed to the RSH and the TH. Finally, for each region, the RSH predicts a vector of class probabilities, a refined bounding box and an instance segmentation mask. Synchronized InPlaceABN [38] is employed throughout the network after each layer with learnable parameters, except for those producing output predictions. For an in-depth description of these components we refer the reader to [35].
+
+Tracking Head (TH). Instance segments, together with the corresponding ROI Align features from the FPN, are fed to the TH to produce a set of $N_{e}$ -dimensional embedding vectors. As a first step, the TH applies "mask-pooling" (described in the section below) to the input spatial features, obtaining 256-dimensional vector features. This operation
+
+is followed by a fully connected layer with 128 channels and synchronized InPlace-ABN. Similarly to masks and bounding boxes in the RSH, embedding vectors are predicted in a class-specific manner by a final fully connected layer with $N_{e} \times C$ outputs, where $C$ is the number of classes, followed by L2-normalization to constrain the vectors on the unit hyper-sphere. The output vectors are learned such that instances of the same object in a sequence are mapped close to each other in the embedding space, while instances of other objects are mapped far away. This is achieved by minimizing a batch hard triplet loss, described in Sec. 4.2.
+
+Mask-pooling. ROI Align features include both foreground and background information, but, in general, only the foreground is actually useful for recognizing an object across frames. In our setting, by doing instance segmentation together with tracking, we have a source of information readily available to discriminate between the object and its background. This can be exploited in a straightforward attention mechanism: pooling under the segmentation mask. Formally, given the pixel indicator function $\phi_s(i,j)$ for a segment $s$ (see Sec. 3.1), and the corresponding input $N$ -dimensional ROI-pooled feature map $\mathrm{X}_s:\mathbb{R}^2\to \mathbb{R}^N$ , mask-pooling computes a feature vector $x_{s}\in \mathbb{R}^{N}$ as:
+
+$$
+x _ {s} = \frac {\sum_ {i} \sum_ {j} \phi_ {s} (i , j) \mathrm {X} _ {s} (i , j)}{\sum_ {i} \sum_ {j} \phi_ {s} (i , j)}.
+$$
+
+During training we pool under the ground truth segmentation masks, while at inference time we switch to the masks predicted by the RSH.
+
+# 4.2. Training Losses
+
+MOTSNet is trained by minimizing the following loss function:
+
+$$
+L = L _ {\mathrm {T H}} + \lambda \left(L _ {\mathrm {R P H}} + L _ {\mathrm {R S H}}\right),
+$$
+
+where $L_{\mathrm{RPH}}$ and $L_{\mathrm{RSH}}$ represent the Region Proposal Head and Region Segmentation Head losses as defined in [35], and $\lambda$ is a weighting parameter.
+
+$L_{\mathrm{TH}}$ is the loss component associated with the Tracking Head, i.e. the following batch hard triplet loss [14]:
+
+$$
+\begin{array}{l} L _ {\mathrm {T H}} = \frac {1}{\left| \mathcal {S} _ {B} \right|} \sum_ {s \in \mathcal {S} _ {B}} \max \left(\max _ {\hat {s} \in \mu_ {B} (s)} \left\| a _ {s} ^ {y _ {s}} - a _ {\hat {s}} ^ {y _ {\hat {s}}} \right\|\right. \\ - \min _ {\hat {s} \in \bar {\mu} _ {B} (s)} \| a _ {s} ^ {y _ {s}} - a _ {\hat {s}} ^ {y _ {\hat {s}}} \| + \beta , 0), \\ \end{array}
+$$
+
+where $S_B$ is the set of predicted, positive segments in the current batch, $a_s^{y_s}$ is the class-specific embedding vector predicted by the TH for a certain segment $s$ and ground truth class $y_{s}$ , and $\beta$ is a margin parameter. The definition of a "positive" segment follows the same logic as in the RSH (see [35]), i.e. a segment is positive if its bounding box has high IoU with a ground truth segment's bounding
+
+box. The functions $\mu_B(s)$ and $\bar{\mu}_B(s)$ map $s$ to the sets of its "matching" and "non-matching" segments in $S_B$ , respectively. These are defined as:
+
+$$
+\begin{array}{l} \mu_ {B} (s) = \left\{\hat {s} \in \mathcal {S} _ {B} \mid y _ {s} = y _ {\hat {s}} \wedge M (s, \hat {s}) \right\}, \\ \bar {\mu} _ {B} (s) = \left\{\hat {s} \in \mathcal {S} _ {B} \mid y _ {s} = y _ {\hat {s}} \wedge \neg M (s, \hat {s}) \right\}, \\ \end{array}
+$$
+
+where $M(s, \hat{s})$ is true iff $s$ and $\hat{s}$ belong to the same tracklet in the sequence. Note that we are restricting the loss to only compare embedding vectors of segments belonging to the same class, effectively letting the network learn a set of class-specific embedding spaces.
+
+In order to overcome the issue due to occlusions mentioned in Sec. 3.2, when training on KITTI Synth we also apply the following heuristic. Ground truth segments are only considered in the tracking loss if they are associated with a tracklet that appears in more than half of the frames in the current batch. This ensures that, when an occlusion causes a track to split in multiple tracklets, these are never mistakenly treated by the network as different objects.
+
+# 4.3. Inference
+
+During inference, we feed frames $t$ through the network, obtaining a set of predicted segments $S_{t}$ , each with its predicted class $y_{s}$ and embedding vector $a_{s}^{y_{s}}$ . Our objective is now to match the segments across frames in order to reconstruct a track for each object in the sequence. To do this, we follow the algorithmic framework described in Sec. 3.2, with a couple of modifications. First, we allow matching segments between the current frame and a sliding window of $N_{w}$ frames in the past, in order to be able to "jump" across occlusions. Second, we do not rely on optical flow anymore, instead measuring the similarity between segments in terms of their distance in the embedding space and temporal offset.
+
+More formally, we redefine the payoff function in Eq. (1) as:
+
+$$
+\pi (\hat {s}, s) = - \pi^ {*} (\hat {s}, s) + \eta (s, \hat {s}), \tag {5}
+$$
+
+$$
+\pi^ {*} (\hat {s}, s) = \left\| a _ {s} ^ {y _ {s}} - a _ {\hat {s}} ^ {y _ {\hat {s}}} \right\| + \frac {\left| t _ {s} - t _ {\hat {s}} \right|}{N _ {w}}, \tag {6}
+$$
+
+where the characteristic function $\eta(s, \hat{s})$ is redefined as:
+
+$$
+\eta (s, \hat {s}) = \left\{ \begin{array}{l l} 0 & \text {i f} y _ {s} = y _ {\hat {s}} \wedge \pi^ {*} (\hat {s}, s) \leq \tau , \\ - \infty & \text {o t h e r w i s e} , \end{array} \right.
+$$
+
+and $\tau$ is a configurable threshold value. Furthermore, we replace $S_{t-1}$ in Eq. (2) and Eq. (4) with the set:
+
+$$
+\mathcal {U} _ {t} = \left\{s \in \mathcal {V} _ {t - 1} \mid t _ {s} \geq t - N _ {w} \wedge (s, \hat {s}) \notin \mathcal {T} _ {t - 1} \forall \hat {s} \right\},
+$$
+
+which contains all terminal (i.e. most recent) segments of the track seen in the past $N_{w}$ frames. As a final step after processing all frames in the sequence, we discard the tracks with fewer than $N_{t}$ segments, as, empirically, very short tracks usually arise from spurious detections.
+
+# 5. Experiments
+
+We provide a broad experimental evaluation assessing i) the quality of our automatically harvested KITTI Synth dataset on the MOTS task by evaluating it against the KITTI MOTS dataset $^2$ , ii) demonstrate the effectiveness of MOTSNet and our proposed mask-pooling layer against strong baselines, iii) demonstrate the generality of our MOTS label generation process by extending the BDD100k tracking dataset with segmentation masks to become a MOTS variant thereof and iv) provide an ablation about the contribution of association terms for the final track extraction. While we can benchmark the full MOTS performance on KITTI MOTS and MOTSChallenge, we are able to infer the tracking performance based on the ground truth box-based tracking annotations available for BDD100k.
+
+# 5.1. Evaluation Measures
+
+The CLEAR MOT [2] metrics, including Multi-Object Tracking Accuracy (MOTA) and Precision (MOTP), are well established as a standard set of measures for evaluating Multi-Object Tracking systems. These, however, only account for the bounding box of the tracked objects. Voigtlaender et al. [43] describe an extension of MOTA and MOTP that measure segmentation as well as tracking accuracy, proposing the sMOTSA, MOTSA and MOTSP metrics. In particular, MOTSA and MOTSP are direct equivalents of MOTA and MOTP, respectively, where the prediction-to-ground-truth matching process is formulated in terms of mask IoU instead of bounding box IoU. Finally, sMOTSA can be regarded as a "soft" version of MOTSA where the contribution of each true positive segment is weighted by its mask IoU with the corresponding ground truth segment. Please refer to the supplementary material for a formal description of these metrics.
+
+# 5.2. Experimental Setup
+
+All the results in the following sections are based on the same MOTSNet configuration, with a ResNet-50 backbone and embedding dimensionality fixed to $N_{e} = 32$ . Batches are formed by sampling a subset of $N_{w}$ full-resolution, contiguous frames at a random offset in one of the training sequences, for each GPU. During training we apply scale augmentation in the [0.8, 1.25] range and random flipping. Training by SGD follows the following linear schedule: $\mathrm{lr}_i = \mathrm{lr}_0(1 - \frac{i}{\#steps})$ , where $\mathrm{lr}_0$ is the starting learning rate and $i$ is the training step (i.e. batch) index. The network weights are initialized from an ImageNet-pretrained model ("T" in the tables), or from a Panoptic Segmentation model trained on the Mapillary Vistas dataset ("M" in the tables),
+
+depending on the experiment. Differently from [43], we do not pre-train on MS COCO [21] ("C" in the tables).
+
+The hyper-parameters of the inference algorithm are set as follows: threshold $\tau = 1$ ; window size $N_w$ equal to the per-GPU batch size used during training; minimum track length $N_t = 5$ . Note that, in contrast with [43], we do not fine-tune these parameters, instead keeping them fixed in all experiments, and independent of class. All experiments are run on four V100 GPUs with 32GB of memory.
+
+# 5.3. KITTI MOTS
+
+The KITTI MOTS dataset was introduced in [43], adding instance segmentation masks for cars and pedestrians to a subset of 21 sequences from KITTI raw [11]. It has a total of 8.008 images (5.027 for training and 2.981 for validation), containing approximately $18.8\mathrm{k} / 8.1\mathrm{k}$ annotated masks for 431/99 tracks of cars/pedestrians in training, and roughly $8.1\mathrm{k} / 3.3\mathrm{k}$ masks for 151/68 tracks on the validation split. Approximately $12.3\%$ of all masks were manually annotated and the rest are human-verified and -corrected instance masks. As the size of this dataset is considerably larger and presumably more informative than MOTScChallenge, we focused our ablations on it. Table 1 summarizes the analyses and experiments we ran on our newly generated KITTI Synth dataset, by evaluating on the official KITTI MOTS validation set. We discuss three types of ablations in what follows.
+
+KITTI Synth data quality analysis. The two topmost rows of Tab. 1 show the results when generating the validation set results solely with our proposed dataset generation pipeline, described in Section 3, i.e. no learned tracking component is involved. Our synthetically extracted validation data considerably outperforms the sMOTSA scores on pedestrians and almost obtains the performance on cars for CAMOT [31], as reported in [43]. When training the flow network on the training data generated from SfM as described in Section 3, we match the performance obtained by the best-performing $\mathrm{HD}^3$ [49] model for KITTI4. While this validates our tracklet generation process and the way we harvest optical flow training data, we investigate further the effects of learning from imperfect data (see Sec. 3.2).
+
+MOTSNet tracking head ablations. The center block in Tab 1 compares different configurations for the Tracking Head described in 4. The first variant (AVEBOX+TH) replaces the mask-pooling operation in the Tracking Head with average pooling on the whole box. The second and third variants (AVEMSK-TH, AVEBOX-TH) completely remove the Tracking Head and its associated loss, instead directly computing the embeddings by pooling features under the detected mask or box, respectively. All variants perform reasonably well and improve over [30, 31] on the primary
+
+| Method | Pre-training | sMOTSA | MOTSA | MOTSP | mAP |
| Car | Ped | Car | Ped | Car | Ped | Box | Mask |
| KITTI Synth (val) + HD3 [49] model zoo | inference only | 65.4 | 45.7 | 77.3 | 66.3 | 87.6 | 76.6 | - | - |
| KITTI Synth (val) + HD3, KITTI-SfM | inference only | 65.5 | 45.4 | 77.4 | 66.0 | 87.6 | 76.6 | - | - |
| MOTSNet with: | | | | | | | | | |
| AVEBOX+TH | I | 73.7 | 46.4 | 85.8 | 62.8 | 86.7 | 76.7 | 57.4 | 50.9 |
| AVEMSK-TH | I | 76.4 | 44.0 | 88.5 | 60.3 | 86.8 | 76.6 | 57.8 | 51.3 |
| AVEBOX-TH | I | 75.4 | 44.5 | 87.3 | 60.8 | 86.9 | 76.7 | 57.5 | 51.0 |
| KITTI MOTS train sequences only | I | 72.6 | 45.1 | 84.9 | 62.9 | 86.1 | 75.6 | 52.5 | 47.6 |
| MOTSNet | I | 77.6 | 49.1 | 89.4 | 65.6 | 87.1 | 76.4 | 58.1 | 51.8 |
| MOTSNet | I, M | 77.8 | 54.5 | 89.7 | 70.9 | 87.1 | 78.2 | 60.8 | 54.1 |
+
+Table 1: Results on the KITTI MOTS validation set when training on KITTI Synth. First section: ablation results. Second section: main results and comparison with state of the art. Note that all MOTSNet variants are trained exclusively on machine generated annotations, while TrackR-CNN is trained on human annotated ground truth.
+
+sMOTSA metric. Notably, AVEMSK-TH, i.e. the variant using our mask-pooling layer and no tracking head, is about on par with TrackR-CNN on cars despite being pre-trained only on ImageNet, using a smaller, ResNet-50 backbone and not exploiting any tracking supervision. The last variant in this block shows the performance obtained when MOTSNet is trained only on images also in the KITTI MOTS training set, and with our full model. Interestingly, the scores only drop to an extent where the gap to [43] might be attributed to their additional pre-training on MS COCO and Mapillary Vistas and a larger backbone (cf. Tab. 2). Finally, comparing the latter directly to our MOTSNet results from Tab. 2 (ImageNet pre-trained only), where we directly trained on KITTI MOTS training data, our KITTI Synth-based results improve substantially on cars, again confirming the quality of our automatically extracted dataset.
+
+The bottommost part of this table shows the performance when training on the full KITTI Synth dataset and evaluating on KITTI MOTS validation, using different pre-training settings. The first is pre-trained on ImageNet and the second on both, ImageNet and Mapillary Vistas. While there is only little gap between them on the car class, the performance on pedestrians rises by over $5\%$ when pre-training on Vistas. The most encouraging finding is that using our solely automatically extracted KITTI Synth dataset we obtain significantly improved scores $(+1.6\%)$ on cars, $+7.4\%$ on pedestrians) in comparison to the previous state-of-the-art method from [43], trained on manually curated data.
+
+MOTSNet on KITTI MOTS. In Tab. 2 we directly compare against previously top-performing works including TrackR-CNN [43] and references from therein, e.g. CAMOT [31], CIWT [30], and BeyondPixels [40]. It is worth noting that the last three approaches were reported in [43] and partially built on. We provide all relevant MOTS measures together with separate average AP numbers to estimate the quality of bounding box detections or instance segmentation approaches, respectively. For our MOTSNet
+
+we again show results under different pre-training settings (ImageNet, Mapillary Vistas and KITTI Synth). Different pre-trainings affect the classes cars and pedestrians in a different way, i.e. the ImageNet and Vistas pre-trained model performs better on pedestrians while the KITTI Synth pretrained one is doing better on cars. This is most likely due to the imbalanced distribution of samples in KITTI Synth while our variant with pre-training on both, Vistas and KITTI Synth yields the overall best results. We obtain absolute improvements of $1.9\% / 7.5\%$ for cars/pedestrians over the previously best work in [43] despite using a smaller backbone and no pre-training on MS COCO. Finally, also the recognition metrics for both, detection (box mAP) and instance segmentation (mask mAP) significantly benefit from pre-training on our KITTI Synth dataset, and in conjunction with Vistas rise by $7.2\%$ and $6.4\%$ over the ImageNet pre-trained variant, respectively.
+
+# 5.4. MOTSNet on BDD100k
+
+Our MOTS training data generation pipeline can be directly ported to other datasets like the recently released BDD100k tracking dataset [50]. It comprises 61 sequences, for a total of $\sim 11\mathrm{k}$ frames and comes with bounding box based tracking annotations. We focus on cars and pedestrians, for compatibility with KITTI Synth and KITTI MOTS. We split the available data into training and validation sets of, respectively, 50 and 11 sequences, and generate segmentation masks for each annotated bounding box, again by using [35] augmented with a ResNeXt-101-32×8d backbone. During data generation, the instance segmentation pipeline detected many object instances missing in the annotations, which is why we decided to provide ignore box annotations for detections with very high confidence but missing in the ground truth. Since there are only bounding-box based tracking annotations available, we present MOT rather than MOTS tracking scores. The results are listed in Tab. 3, comparing pooling strategies AVEBOX+LOSS and
+
+| Method | Pre-training | sMOTSA | MOTSA | MOTSP | mAP |
| Car | Ped | Car | Ped | Car | Ped | Box | Mask |
| TrackR-CNN [43] | I, C, M | 76.2 | 47.1 | 87.8 | 65.5 | 87.2 | 75.7 | - | - |
| CAMOT [31] | I, C, M | 67.4 | 39.5 | 78.6 | 57.6 | 86.5 | 73.1 | - | - |
| CIWT [30] | I, C, M | 68.1 | 42.9 | 79.4 | 61.0 | 86.7 | 75.7 | - | - |
| BeyondPixels [40] | I, C, M | 76.9 | - | 89.7 | - | 86.5 | - | - | - |
| MOTSNet | I | 69.0 | 45.4 | 78.7 | 61.8 | 88.0 | 76.5 | 55.2 | 49.3 |
| I, M | 74.9 | 53.1 | 83.9 | 67.8 | 89.4 | 79.4 | 60.8 | 54.9 |
| I, KS | 76.4 | 48.1 | 86.2 | 64.3 | 88.7 | 77.2 | 59.7 | 53.3 |
| I, M, KS | 78.1 | 54.6 | 87.2 | 69.3 | 89.6 | 79.7 | 62.4 | 55.7 |
+
+Table 2: Results on the KITTI MOTS validation set when training on the KITTI MOTS training set. First section: state of the art results using masks and detections from [43]. Second section: our results under different pre-training settings.
+
+| MOTSNet variant | Pre-training | MOTA | MOTP |
| AVEBOX+LOSS | I | 53.8 | 83.1 |
| I, M | 56.9 | 83.9 |
| AVEMSK+LOSS | I | 53.9 | 83.1 |
| I, M | 58.2 | 84.0 |
+
+Table 3: MOT ablation results on the BDD100K dataset.
+
+| sIoU | Embedding | Time | sMOTSA Car | sMOTSA Ped |
| ✓ | ✗ | ✗ | 76.7 | 50.8 |
| ✗ | ✓ | ✗ | 78.2 | 54.4 |
| ✓ | ✗ | ✓ | 77.0 | 51.8 |
| ✗ | ✓ | ✓ | 78.1 | 54.6 |
+
+Table 4: Ablation results on the KITTI MOTS dataset, using our best performing model from Tab. 2 when switching between different cues in the payoff function for inference.
+
+AVEMSK+LOSS and for different pre-trainings. While the improvement is moderate compared to the ImageNet-only pre-trained backbone, the Vistas pre-trained model benefits noticeably from mask-pooling.
+
+# 5.5. Ablations on Track Extraction
+
+Here we analyze the importance of different cues in the payoff function used during inference (see Section 4.3): distance in the embedding space (Embedding), distance in time (Time) and signed intersection over union [42] (sIoU) between bounding boxes5. As a basis, we take the best performing MOTSNet model from our experiments on KITTI MOTS, listed at the bottom of Table 2. This result was obtained by combining Embedding and Time, as in Eq. (6). As can be seen from differently configured results in Tab. 4, the embedding itself already serves as a good cue, and can be slightly improved on pedestrians when combined with information about proximity in time (with 0.1 drop on cars), while outperforming sIoU. Figure 3 shows a visualization of the embedding vectors learned by this model.
+
+
+Figure 3: t-SNE visualization of the embedding vectors computed by the Tracking Head for sequence "0014" of KITTI MOTS. Points corresponding to detections of the same object have the same color.
+
+
+
+# 6. Conclusions
+
+In this work we addressed and provided two major contributions for the novel task of multi-object tracking and segmentation (MOTS). First, we introduced an automated pipeline for extracting high-quality training data from generic street-level videos to overcome the lack of MOTS training data, without time- and cost-intensive, manual annotation efforts. Data is generated by solving the linear assignment on a causal tracking graph, where instance segmentations per frame define the nodes, and optical-flow based compatibilities represent edges as connections over time. Our second major contribution is a deep-learning based MOTSNet architecture to be trained on MOTS data, exploiting a novel mask-pooling layer that guides the association process for detections based on instance segmentation masks. We provide exhaustive ablations for both, our novel training data generation process and our proposed MOTSNet. We improve over the previously best work [43] for the KITTI MOTS dataset $(1.9\% /7.5\%$ for cars/pedestrians) and on MOTSChallenge $(4.1\%$ for pedestrians), respectively.
+
+Acknowledgements. Idoia and Joan acknowledge financial support by the Spanish grant TIN2017-88709-R (MINECO/AEI/FEDER, UE).
+
+# References
+
+[1] Amanda Berg, Joakim Johnander, Flavie Durand de Gevigney, Jorgen Ahlberg, and Michael Felberg. Semi-automatic annotation of objects in visual-thermal video. In Proceedings of the IEEE International Conference on Computer Vision Workshops, 2019. 2
+[2] Keni Bernstein and Rainer Stiefelhagen. Evaluating multiple object tracking performance: the clear mot metrics. Journal on Image and Video Processing, page 1, 2008. 6
+[3] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In Proceedings of the European Conference on Computer Vision, 2016. 3
+[4] Sergi Caelles, Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. 1
+[5] Sergi Caelles, Alberto Montes, Kevis-Kokitsi Maninis, Yuhua Chen, Luc Van Gool, Federico Perazzi, and Jordi Pont-Tuset. The 2018 davis challenge on video object segmentation. arXiv:1803.00557, 2018. 2
+[6] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European Conference on Computer Vision, September 2018. 1
+[7] Yuhua Chen, Jordi Pont-Tuset, Alberto Montes, and Luc Van Gool. Blazingly fast video object segmentation with pixel-wise metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[8] Bowen Cheng, Maxwell D. Collins, Yukun Zhu, Ting Liu, Thomas S. Huang, Hartwig Adam, and Liang-Chieh Chen. Panoptic-deeplab. arXiv:1910.04751, 2019. 2
+[9] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016. 1
+[10] A. Geiger, P. Lenz, C. Stiller, and R. Urtasun. Vision meets robotics: The KITTI dataset. The International Journal of Robotics Research, 2013. 2, 3
+[11] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? The kitti vision benchmark suite. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2012. 1, 2, 6
+[12] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision, 2017. 2, 4
+[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv:1512.03385, 2015. 4
+[14] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv:1703.07737, 2017. 5
+[15] Junhwa Hur and Stefan Roth. Joint optical flow and temporally consistent semantic segmentation. arXiv:1607.07716,
+
+2016. 2
+[16] Xiaojie Jin, Huaxin Xiao, Xiaohui Shen, Jimei Yang, Zhe Lin, Yunpeng Chen, Zequn Jie, Jiashi Feng, and Shuicheng Yan. Predicting scene parsing and motion dynamics in the future. In Neural Information Processing Systems, 2017. 2
+[17] Joakim Johnander, Martin Danelljan, Emil Brissman, Fahad Shahbaz Khan, and Michael Felsberg. A generative appearance model for end-to-end video object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2
+[18] L. Leal-Taixe, A. Milan, I. Reid, S. Roth, and K. Schindler. MOTChallenge 2015: Towards a benchmark for multi-target tracking. arXiv:1504.01942, 2015. 2
+[19] Bo Li, Junjie Yan, Wei Wu, Zheng Zhu, and Xiaolin Hu. High performance visual tracking with siamese region proposal network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 3
+[20] F. Li, T. Kim, A. Humayun, D. Tsai, and J. M. Rehg. Video segmentation by tracking many figure-ground segments. In Proceedings of the IEEE International Conference on Computer Vision, 2013. 2
+[21] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. In Proceedings of the European Conference on Computer Vision, 2014. 2, 3, 6
+[22] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2017. 4
+[23] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. 2
+[24] Pauline Luc, Camille Couprie, Yann LeCun, and Jakob Verbeek. Predicting future instance segmentations by forecasting convolutional features. In Proceedings of the European Conference on Computer Vision, 2018. 2
+[25] Jonathon Luiten, Philip Torr, and Bastian Leibe. Video instance segmentation 2019: A winning approach for combined detection, segmentation, classification and tracking. In Proceedings of the IEEE International Conference on Computer Vision Workshops, 2019. 2, 3
+[26] Will Maddern, Geoffrey Pascoe, Chris Linegar, and Paul Newman. 1 year, $1000\mathrm{km}$ : The oxford robotcar dataset. International Journal of Robotics Research, 36(1):3-15, 2017. 2
+[27] Kevis-Kokitsi Maninis, Sergi Caelles, Jordi Pont-Tuset, and Luc Van Gool. Deep extreme cut: From extreme points to object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[28] Anton Milan, Laura Leal-Taixe, Ian D. Reid, Stefan Roth, and Konrad Schindler. MOT16: A benchmark for multi-object tracking. arXiv:1603.00831, 2016. 1, 2
+[29] Gerhard Neuhold, Tobias Ollmann, Samuel Rota Bulò, and Peter Kontschieder. The mapillary vistas dataset for semantic understanding of street scenes. In Proceedings of the IEEE International Conference on Computer Vision, 2017. 1, 2, 3
+
+[30] Aljoša Ošep, Wolfgang Mehner, Markus Mathias, and Bastian Leibe. Combined image-and world-space tracking in traffic scenes. In Proceedings of the IEEE International Conference on Robotics and Automation, 2017. 6, 7, 8
+[31] Aljoša Osep, Wolfgang Mehner, Paul Voigtlaender, and Bastian Leibe. Track, then decide: Category-agnostic vision-based multi-object tracking. In Proceedings of the IEEE International Conference on Robotics and Automation, 2018, 2, 3, 6, 7, 8
+[32] Aljosa Osep, Paul Voigtlaender, Jonathon Luiten, Stefan Breuers, and Bastian Leibe. Towards large-scale video object mining. Proceedings of the ECCV 2018 Workshop on Interactive and Adaptive Learning in an Open World, 2018. 2
+[33] Federico Perazzi, Jordi Pont-Tuset, Brian McWilliams, Luc Van Gool, Markus Gross, and Alexander Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016. 2
+[34] Jordi Pont-Tuset, Federico Perazzi, Sergi Caelles, Pablo Arbeláez, Alexander Sorkine-Hornung, and Luc Van Gool. The 2017 davis challenge on video object segmentation. arXiv:1704.00675, 2017. 2
+[35] Lorenzo Porzi, Samuel Rota Bulò, Aleksander Colovic, and Peter Kontschieder. Seamless scene segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 3, 4, 5, 7
+[36] A. Prest, C. Leistner, J. Civera, C. Schmid, and V. Ferrari. Learning object class detectors from weakly annotated video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2012. 2
+[37] Jérôme Revaud, Philippe Weinzaepfel, Zaid Harchaoui, and Cordelia Schmid. Epicflow: Edge-preserving interpolation of correspondences for optical flow. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. 2
+[38] Samuel Rota Bulò, Lorenzo Porzi, and Peter Kontschieder. In-place activated batchnorm for memory-optimized training of DNNs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 3, 4
+[39] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karphathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 2015. 3
+[40] Sarthak Sharma, Junaid Ahmed Ansari, J Krishna Murthy, and K Madhava Krishna. Beyond pixels: Leveraging geometry and shape cues for online multi-object tracking. In Proceedings of the IEEE International Conference on Robotics and Automation, 2018. 2, 3, 7, 8
+[41] S. Shen. Accurate multiple view 3d reconstruction using patch-based stereo for large-scale scenes. IEEE Transactions on Image Processing, 22(5):1901-1914, 2013. 3
+[42] Andrea Simonelli, Samuel Rota Bulò, Lorenzo Porzi, Manuel López-Antequera, and Peter Kontschieder. Disentangling monocular 3d object detection. In Proceedings of the IEEE International Conference on Computer Vision, 2019. 8
+[43] Paul Voigtaender, Michael Krause, Aljosa Osep, Jonathon
+
+Luiten, Berin Balachandar Gnana Sekar, Andreas Geiger, and Bastian Leibe. Mots: Multi-object tracking and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 1, 2, 3, 6, 7, 8
+[44] Qiang Wang, Li Zhang, Luca Bertinetto, Weiming Hu, and Philip HS Torr. Fast online object tracking and segmentation: A unifying approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 3
+[45] Longyin Wen, Dawei Du, Zhaowei Cai, Zhen Lei, Ming-Ching Chang, Honggang Qi, Jongwoo Lim, Ming-Hsuan Yang, and Siwei Lyu. Ua-detrac: A new benchmark and protocol for multi-object detection and tracking. arXiv:1511.04136, 2015. 2
+[46] Saining Xie, Ross Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. 3
+[47] Ning Xu, Linjie Yang, Yuchen Fan, Dingcheng Yue, Yuchen Liang, Jianchao Yang, and Thomas Huang. Youtu-vos: A large-scale video object segmentation benchmark. arXiv:1809.03327, 2018. 2, 3
+[48] Linjie Yang, Yuchen Fan, and Ning Xu. Video instance segmentation. arXiv:1905.04804, 2019. 2, 3
+[49] Zhichao Yin, Trevor Darrell, and Fisher Yu. Hierarchical discrete distribution decomposition for match density estimation. In Proceedings of the IEEE International Conference on Computer Vision, 2019. 2, 3, 6, 7
+[50] Fisher Yu, Wenqi Xian, Yingying Chen, Fangchen Liu, Mike Liao, Vashisht Madhavan, and Trevor Darrell. Bdd100k: A diverse driving video database with scalable annotation tooling. arXiv:1805.04687, 2018. 2, 7
+[51] Idil Esen Zulfikar, Jonathon Luiten, and Bastian Leibe. Unovost: Unsupervised offline video object segmentation and tracking for the 2019 unsupervised davis challenge. In Proceedings of the 2019 DAVIS Challenge on Video Object Segmentation - CVPR Workshops, 2019. 3
\ No newline at end of file
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/images.zip b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5920ac31298e06d7dd1e52b1e0d80e4d64199d2d
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bbc402612c3853eec9f804ec8c60e55252ae5d52e36ee1b4b22207c835c4c95a
+size 405533
diff --git a/learningmultiobjecttrackingandsegmentationfromautomaticannotations/layout.json b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e056ea9863e7565ec7025bf296fefa8048a4b486
--- /dev/null
+++ b/learningmultiobjecttrackingandsegmentationfromautomaticannotations/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae66c67c4d0f34579ab951439e97b2597706b0e2696f59b8f8acd1caceaa8e6c
+size 417685
diff --git a/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_content_list.json b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..655301c3aaa0ec8e4a32c0ad4aa2833acdf92092
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f43a2426c649159b657a609fdca96d53586439c287accce4e335dc36267ea68b
+size 91821
diff --git a/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_model.json b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5a92404f6f77438cc83269f26d25f9b20e6e516e
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:90f2a24e04143c83b1f1cd8d0edf6610785fa78ba3bdc1d275d133a0bdac9ba9
+size 114263
diff --git a/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_origin.pdf b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..99a73e54bf2bcbd7b05ed0f9eb634e363c75413e
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/8f046420-21ef-44d1-9654-ecb313876ed8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50fc7f2d7f391acd2e8ca8828b6143c12f7192fa2e9292fedc773f2e5a1e1154
+size 2637193
diff --git a/learningmultiview3dpointcloudregistration/full.md b/learningmultiview3dpointcloudregistration/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..be32607f618bb9939dd1e5204276077eb594112a
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/full.md
@@ -0,0 +1,358 @@
+# Learning multiview 3D point cloud registration
+
+Zan Gojcic\*
+
+Caifa Zhou*§
+
+Jan D. Wegner $^{§}$
+
+Leonidas J. Guibas†
+
+Tolga Birdal†
+
+$\S$ ETH Zurich †Stanford University
+
+# Abstract
+
+We present a novel, end-to-end learnable, multiview 3D point cloud registration algorithm. Registration of multiple scans typically follows a two-stage pipeline: the initial pairwise alignment and the globally consistent refinement. The former is often ambiguous due to the low overlap of neighboring point clouds, symmetries and repetitive scene parts. Therefore, the latter global refinement aims at establishing the cyclic consistency across multiple scans and helps in resolving the ambiguous cases. In this paper we propose, to the best of our knowledge, the first end-to-end algorithm for joint learning of both parts of this two-stage problem. Experimental evaluation on well accepted benchmark datasets shows that our approach outperforms the state-of-the-art by a significant margin, while being end-to-end trainable and computationally less costly. Moreover, we present detailed analysis and an ablation study that validate the novel components of our approach. The source code and pretrained models are publicly available under https://github.com/zgojcic/3DMULTIVIEW_reg.
+
+# 1. Introduction
+
+Downstream tasks in 3D computer vision, such as semantic segmentation and object detection typically require a holistic representation of the scene. The capability of aligning and fusing individual point cloud fragments, which cover only small parts of the environment, into a globally consistent holistic representation is therefore essential and has several use cases in augmented reality and robotics. Pairwise registration of adjacent fragments is a well-studied problem and traditional approaches based on geometric constraints [51, 66, 56] and hand-engineered feature descriptors [37, 27, 54, 59] have shown successful results to some extent. Nevertheless, in the recent years, research on local descriptors for pairwise registration of 3D point clouds is centered on deep learning approaches [67, 38, 21, 64, 19, 28] that succeed in capturing and encoding evidence hidden to hand-engineered descriptors. Furthermore, novel end-to-end methods for pairwise point cloud registration were
+
+
+Figure 1. Result of our end-to-end reconstruction on the 60 scans of Kitchen scene from 3DMatch benchmark [67].
+
+recently proposed [62, 42]. While demonstrating good performance for many tasks, pairwise registration of individual views of a scene has some conceptual drawbacks: (i) low overlap of adjacent point clouds can lead to inaccurate or wrong matches, (ii) point cloud registration has to rely on very local evidence, which can be harmful if 3D scene structure is scarce or repetitive, (iii) separate post-processing is required to combine all pair-wise matches into a global representation. Compared to the pairwise methods, globally consistent multiview alignment of unorganized point cloud fragments is yet to fully benefit from the recent advances achieved by the deep learning methods. State-of-the-art methods typically still rely on a good initialization of the pairwise maps, which they try to refine globally in a subsequent decoupled step [30, 61, 2, 3, 5, 4, 43, 11]. A general drawback of this hierarchical procedure is that global noise distribution over all nodes of the pose graph ends up being far from random, i.e. significant biases persist due to the highly correlated initial pairwise maps.
+
+In this paper, we present, to the best of our knowledge, the first end-to-end data driven multiview point cloud registration algorithm. Our method takes a set of potentially overlapping point clouds as input and outputs a global/absolute transformation matrix per each of the input scans (c.f. Fig. 1). We depart from a traditional two-stage approach where the individual stages are detached from each other and directly learn to register all views of a scene in a globally consistent manner.
+
+The main contributions of our work are:
+
+end-to-end neural network, which in the forward pass solves two differentiable optimization problems: (i) the Procrustes problem for the estimation of the pairwise transformation parameters and (ii) the spectral relaxation of the transformation synchronization.
+
+- We propose a confidence estimation block that uses a novel overlap pooling layer to predict the confidence in the estimated pairwise transformation parameters.
+- We cast the multiview 3D point cloud registration problem as an iterative reweighted least squares (IRLS) problem and iteratively refine both the pairwise and absolute transformation estimates.
+
+Resulting from the aforementioned contributions, the proposed multiview registration algorithm (i) is very efficient to compute, (ii) achieves more accurate scan alignments because the residuals are being fed back to the pairwise network in an iterative manner, (iii) outperforms current state-of-the-art on pairwise as well as multiview point cloud registration.
+
+# 2. Related Work
+
+Pairwise registration The traditional pairwise registration pipeline consists of two stages: the coarse alignment stage, which provides the initial estimate of the relative transformation parameters and the refinement stage that iteratively refines the transformation parameters by minimizing the 3D registration error under the assumption of rigid transformation.
+
+The former is traditionally performed by using either handcrafted [54, 59, 58] or learned [67, 38, 21, 20, 64, 28, 16] 3D local features descriptors to establish the pointwise candidate correspondences in combination with a RANSAC-like robust estimator [26, 52, 40] or geometric hashing [24, 8, 32]. A parallel stream of works [1, 57, 44] relies on establishing correspondences using the 4-point congruent sets. In the refinement stage, the coarse transformation parameters are often fine-tuned with a variant of the iterative closest point (ICP) algorithm [6]. ICP-like algorithms [41, 63] perform optimization by alternatively hypothesizing the correspondence set and estimating the new set of transformation parameters. They are known to not be robust against outliers and to converge to a global optimum only when starting with a good prealingment [9]. ICP algorithms are often extended to use additional radiometric, temporal or odometry constraints [69]. Contemporary to our work, [62, 42] propose to integrate coarse and fine pairwise registration stages into an end-to-end learnable algorithm. Using a deep network, [31] formulates the object tracking as a relative motion estimation of two point sets.
+
+Multiview registration Multiview, global point cloud registration methods aim at resolving hard or ambiguous cases
+
+that arise in pairwise methods by incorporating cues from multiple views. The first family of methods employ a multiview ICP-like scheme to optimize for camera poses as well as 3D point correspondences [36, 25, 45, 9]. A majority of these suffer from increased complexity of correspondence estimation. To alleviate this, some approaches only optimize for motion and use the scans to evaluate the registration error [69, 56, 7]. Taking a step further, other modern methods make use of the global cycle-consistency and optimize only over the poses starting from an initial set of pairwise maps. This efficient approach is known as synchronization [10, 61, 2, 56, 3, 5, 43, 69, 7, 35]. Global structure-from-motion [17, 70] aims to synchronize the observed relative motions by decomposing rotation, translation and scale components. [23] proposes a global point cloud registration approach using two networks, one for pose estimation and another modelling the scene structure by estimating the occupancy status of global coordinates.
+
+Probably the most similar work to ours is [35], where the authors aim to adapt the edge weights for the transformation synchronization layer by learning a data driven weighting function. A major conceptual difference to our approach is that relative transformation parameters are estimated using FPFH [54] in combination with FGR [69] and thus, unlike ours, are not learned. Furthermore, in each iteration [35] has to convert the point clouds to depth images as the weighting function is approximated by a 2D CNN. On the other hand our whole approach operates directly on point clouds, is fully differentiable and therefore facilitates learning a global, multiview point cloud registration in an end-to-end manner.
+
+# 3. End-to-End Multiview 3D Registration
+
+In this section we derive the proposed multiview 3D registration algorithm as a composition of functions depending upon the data. The network architectures used to approximate these functions are then explained in detail in Sec 4. We begin with a new algorithm for learned pairwise point cloud registration, which uses two point clouds as input and outputs estimated transformation parameters (Sec. 3.1). This method is extended to multiple point clouds by using a transformation synchronization layer amenable to backpropagation (Sec. 3.2). The input graph to this synchronization layer encodes, along with the relative transformation parameters, the confidence in these pairwise maps, which is also estimated using a novel neural network, as edge information. Finally, we propose an IRLS scheme (Sec. 3.3) to refine the global registration of all point clouds by updating the edge weights as well as the pairwise poses.
+
+Consider a set of potentially overlapping point clouds $S = \{\mathbf{S}_i\in \mathbb{R}^{N\times 3},1\leq i\leq N_S\}$ capturing a 3D scene from different viewpoints (i.e. poses). The task of multiview registration is to recover the rigid, absolute poses
+
+$\{\mathbf{M}_i^*\in SE(3)\}_{i}$ given the scan collection, where
+
+$$
+S E (3) = \left\{\mathbf {M} \in \mathbb {R} ^ {4 \times 4}: \mathbf {M} = \left[ \begin{array}{l l} \mathbf {R} & \mathbf {t} \\ \mathbf {0} ^ {\top} & 1 \end{array} \right] \right\}, \tag {1}
+$$
+
+$\mathbf{R}_i \in SO(3)$ and $\mathbf{t_i} \in \mathbb{R}^3$ . $S$ can be augmented by connectivity information resulting in a finite graph $\mathcal{G} = (\mathcal{S}, \mathcal{E})$ , where each vertex represents a single point set and the edges $(i, j) \in \mathcal{E}$ encode the information about the relative rotation $\mathbf{R}_{ij}$ and translation $\mathbf{t}_{ij}$ between the vertices. These relative transformation parameters satisfy $\mathbf{R}_{ij} = \mathbf{R}_{ji}^T$ and $\mathbf{t}_{ij} = -\mathbf{R}_{ij}^T\mathbf{t}_{ji}$ as well as the compatibility constraint [4]
+
+$$
+\mathbf {R} _ {i j} \approx \mathbf {R} _ {i} \mathbf {R} _ {j} ^ {T} \quad \mathbf {t} _ {i j} \approx - \mathbf {R} _ {i} \mathbf {R} _ {\mathbf {j}} ^ {T} \mathbf {t} _ {j} + \mathbf {t} _ {i} \tag {2}
+$$
+
+In current state-of-the-art [69, 35, 7] edges $\mathcal{E}$ of $\mathcal{G}$ are initialized with (noisy) relative transformation parameters $\{\mathbf{M}_{ij}\}$ , obtained by an independent, auxiliary pairwise registration algorithm. Global scene consistency is enforced via a subsequent synchronization algorithm. In contrast, we propose a joint approach where pairwise registration and transformation synchronization are tightly coupled as one fully differentiable component, which leads to an end-to-end learnable, global registration pipeline.
+
+# 3.1. Pairwise registration of point clouds
+
+In the following, we introduce a differentiable, pairwise registration algorithm that can easily be incorporated into an end-to-end multiview 3D registration algorithm. Let $\{\mathbf{P},\mathbf{Q}\} := \{\mathbf{S}_i,\mathbf{S}_j|i\neq j\} \subset S$ denote a pair of point clouds where $(\mathbf{P})_l =: \mathbf{p}_l\in \mathbb{R}^3$ and $(\mathbf{Q})_l =: \mathbf{q}_l\in \mathbb{R}^3$ represent the coordinate vectors of individual points in point clouds $\mathbf{P}\in \mathbb{R}^{N_{\mathbf{P}}\times 3}$ and $\mathbf{Q}\in \mathbb{R}^{N_{\mathbf{Q}}\times 3}$ , respectively. The goal of pairwise registration is to retrieve optimal $\tilde{\mathbf{R}}_{ij}$ and $\tilde{\mathbf{t}}_{ij}$ .
+
+$$
+\hat {\mathbf {R}} _ {i j}, \hat {\mathbf {t}} _ {i j} = \underset {\mathbf {R} _ {i j}, \mathbf {t} _ {i j}} {\arg \min } \sum_ {l = 1} ^ {N _ {\mathbf {P}}} \left| \left| \mathbf {R} _ {i j} \mathbf {p} _ {l} + \mathbf {t} _ {i j} - \phi (\mathbf {p} _ {l}, \mathbf {Q}) \right| \right| ^ {2} \tag {3}
+$$
+
+where $\phi (\mathbf{p},\mathbf{Q})$ is a correspondence function that maps the points $\mathbf{p}$ to their corresponding points in point cloud $\mathbf{Q}$ . The formulation of Eq. 3 facilitates a differentiable closed-form solution, which is—subject to the noise distribution—close to the ground truth solution [55]. However, least square solutions are not robust and thus Eq. 3 will yield wrong transformation parameters in case of high outlier ratio. In practice, the mapping $\phi (\mathbf{p},\mathbf{Q})$ is far from ideal and erroneous correspondences typically dominate. To circumvent that, Eq. 3 can be robustified against outliers by introducing a heteroscedastic weighting matrix [60, 55]:
+
+$$
+\hat {\mathbf {R}} _ {i j}, \hat {\mathbf {t}} _ {i j} = \underset {\mathbf {R} _ {i j}, \mathbf {t} _ {i j}} {\arg \min } \sum_ {l = 1} ^ {N _ {\mathbf {P}}} w _ {l} \left\| \mathbf {R} _ {i j} \mathbf {p} _ {l} + \mathbf {t} _ {i j} - \phi (\mathbf {p} _ {l}, \mathbf {Q}) \right\| ^ {2} \tag {4}
+$$
+
+where $w_{l} \coloneqq (\mathbf{w})_{l}$ is the weight of the putative correspondence $\gamma_{l} \in \mathbb{R}^{6} = \{\mathbf{p}_{l}, \phi(\mathbf{p}_{l}, \mathbf{Q})\}$ computed by some weighting function $\mathbf{w} = \psi_{\mathrm{init}}(\Gamma)$ , where $\Gamma \coloneqq \{\gamma_{l}\} \coloneqq \{\mathbf{P}, \{\phi(\mathbf{p}_{l}, \mathbf{Q})\}_{l}\}$ and $\psi_{\mathrm{init}}: \mathbb{R}^{N_{\mathbf{P}} \times 6} \mapsto \mathbb{R}^{N_{\mathbf{P}}}$ . Assuming that $w_{l}$ is close to one when the putative correspondence is an inlier and close to zero otherwise, Eq. 4 will yield the correct transformation parameters while retaining a differentiable closed-form solution [55]. Hereinafter we denote this closed-form solution as weighted least squares transformation WLS trans. and for the sake of completeness, its derivation is provided in the supp. material.
+
+# 3.2. Differentiable transformation synchronization
+
+Returning to the task of multiview registration, we again consider the initial set of point clouds $S$ . If no prior connectivity information is given, graph $\mathcal{G}$ can be initialized by forming $\binom{N_S}{2}$ point cloud pairs and estimating their relative transformation parameters as described in Sec. 3.1. The global transformation parameters can be estimated either jointly (transformation synchronization) [30, 5, 4, 11] or by dividing the problem into rotation synchronization [2, 3] and translation synchronization [34]. Herein, we opt for the latter approach, which under the spectral relation admits a differentiable closed-form solution [2, 3, 34].
+
+Rotation synchronization The goal of rotation synchronization is to retrieve global rotation matrices $\{\mathbf{R}_i^*\}$ by solving the following minimization problem based on their observed ratios $\{\hat{\mathbf{R}}_{ij}\}$
+
+$$
+\mathbf {R} _ {i} ^ {*} = \underset {\mathbf {R} _ {i} \in S O (3)} {\arg \min } \sum_ {(i, j) \in \mathcal {E}} c _ {i j} \left\| \hat {\mathbf {R}} _ {i j} - \mathbf {R} _ {i} \mathbf {R} _ {j} ^ {T} \right\| _ {F} ^ {2} \tag {5}
+$$
+
+where the weights $c_{ij} \coloneqq \zeta_{\mathrm{init}}(\Gamma)$ represent the confidence in the relative transformation parameters $\hat{\mathbf{M}}_{ij}$ . Under the spectral relaxation Eq. 5 admits a closed-form solution, which is provided in the supp. material [2, 3].
+
+Translation synchronization Similarly, the goal of translation synchronization is to retrieve global translation vectors $\{\mathbf{t}_i^*\}$ that minimize the following least squares problem
+
+$$
+\mathbf {t} _ {i} ^ {*} = \arg \min _ {\mathbf {t} _ {i}} \sum_ {(i, j) \in \mathcal {E}} c _ {i j} \| \hat {\mathbf {R}} _ {i j} \mathbf {t} _ {i} + \hat {\mathbf {t}} _ {i j} - \mathbf {t} _ {j} \| ^ {2} \tag {6}
+$$
+
+The differentiable closed-form solution to Eq. 6 is again provided in the supp. material.
+
+# 3.3. Iterative refinement of the registration
+
+The above formulation (Sec. 3.1 and 3.2) facilitates an implementation in an iterative scheme, which in turn can be viewed as an IRLS algorithm. We can start each subsequent iteration $(k + 1)$ by pre-aligning the point cloud pairs using the synchronized estimate of the relative transforma
+
+
+Figure 2. Proposed pipeline for end-to-end multiview 3D point cloud registration. For each of the input point clouds $\mathbf{S}_i$ we extract FCGF [16] features that are fed to the softNN layer to compute the stochastic correspondences for $\binom{N_S}{2}$ pairs. These correspondences are used as input to the initial registration block (i.e. Reg. init.) that outputs the per-correspondence weights, initial transformation parameters, and per-point residuals. Along with the correspondences, the initial weights and residuals are then input to the registration refinement block (i.e. Reg. iter.), whose outputs are used to build the graph. After each iteration of the Transf-Sync layer the estimated transformation parameters are used to pre-align the correspondences that are concatenated with the weights from the previous iteration and the residuals and feed anew to Reg. iter. block. We iterate over the Reg. iter. and Transf-Sync layer for four times.
+
+tion parameters $\mathbf{M}_{ij}^{*(k)} = \mathbf{M}_i^{*(k)}\mathbf{M}_j^{*(k)^{-1}}$ from iteration $(k)$ such that $\mathbf{Q}^{(k + 1)}\coloneqq \mathbf{M}_{ij}^{*(k)}\otimes \mathbf{Q}$ , where $\otimes$ denotes applying the transformation $\mathbf{M}_{ij}^{*(k)}$ to point cloud $\mathbf{Q}$ . Additionally, weights $\mathbf{w}^{(k)}$ and residuals $\mathbf{r}^{(k)}$ of the previous iteration can be used as a side information in the correspondence weighting function. Therefore, $\psi_{\mathrm{init}}(\cdot)$ is extended to
+
+$$
+\mathbf {w} ^ {(k + 1)} := \psi_ {\text {i t e r}} \left(\boldsymbol {\Gamma} ^ {(k + 1)}, \mathbf {w} ^ {(k)}, \mathbf {r} ^ {(k)}\right), \tag {7}
+$$
+
+where $\Gamma^{(k + 1)}\coloneqq \{\gamma_l^{(k + 1)}\} \coloneqq \{\mathbf{P},\{\phi (\mathbf{p}_l,\mathbf{Q}^{(k + 1)})\} _l\}$ Analogously, the difference between the input $\hat{\mathbf{M}}_{ij}^{(k)}$ and the synchronized $\mathbf{M}_{ij}^{*(k)}$ transformation parameters of the $(k)$ -th iteration can be used as an additional cue for estimating the confidence $c_{ij}^{(k + 1)}$ . Thus, $\zeta_{\mathrm{init}}(\cdot)$ can be extended to
+
+$$
+c _ {i j} ^ {(k + 1)} := \zeta_ {\text {i t e r}} \left(\boldsymbol {\Gamma} ^ {(k + 1)}, \hat {\mathbf {M}} _ {i j} ^ {(k)}, \mathbf {M} _ {i j} ^ {* (k)}\right). \tag {8}
+$$
+
+# 4. Network Architecture
+
+We implement our proposed multiview registration algorithm as a deep neural network (Fig. 2). In this section, we first describe the architectures used to approximate $\phi(\cdot), \psi_{\mathrm{init}}(\cdot), \psi_{\mathrm{iter}}(\cdot), \zeta_{\mathrm{init}}(\cdot)$ and $\zeta_{\mathrm{iter}}(\cdot)$ , before integrating them into one fully differentiable, end-to-end trainable algorithm.
+
+Learned correspondence function Our approximation of the correspondence function $\phi(\cdot)$ extends a recently proposed fully convolutional 3D feature descriptor FCGF [16] with a soft assignment layer. FCGF operates on sparse tensors [15] and computes 32 dimensional descriptors for each point of the sparse point cloud in a single pass. Note that the function $\phi(\cdot)$ could be approximated with any of the recently proposed learned feature descriptors [38, 20, 21, 28],
+
+but we choose FCGF due to its high accuracy and low computational complexity.
+
+Let $\mathbf{F_P}$ and $\mathbf{F_Q}$ denote the FCGF embeddings of point clouds $\mathbf{P}$ and $\mathbf{Q}$ obtained using the same network weights, respectively. Pointwise correspondences $\{\phi(\cdot)\}$ can then be established by a nearest neighbor (NN) search in this high dimensional feature space. However, the selection rule of such hard assignments is not differentiable. We therefore form the NN-selection rule in a probabilistic manner by computing a probability vector $\mathbf{s}$ of the categorical distribution [49]. The stochastic correspondence of the point $\mathbf{p}$ in the point cloud $\mathbf{Q}$ is then defined as
+
+$$
+\phi (\mathbf {p}, \mathbf {Q}) := \mathbf {s} ^ {T} \mathbf {Q}, \quad (\mathbf {s}) _ {l} := \frac {\exp (- d _ {l} / t)}{\sum_ {l = 1} ^ {N _ {\mathbf {Q}}} \exp (- d _ {l} / t)} \tag {9}
+$$
+
+where $d_{l} \coloneqq ||\mathbf{f}_{\mathbf{p}} - (\mathbf{F}_{\mathbf{Q}})_{l}||_{2}$ , $\mathbf{f}_{\mathbf{p}}$ is the FCGF embedding of the point $\mathbf{p}$ and $t$ denotes the temperature parameter. In the limit $t \to 0$ the $\phi(\mathbf{p}, \mathbf{Q})$ converges to the deterministic NN-search [49].
+
+We follow [16] and supervise the learning of $\phi(\cdot)$ with a correspondence loss $\mathcal{L}_c$ , which is defined as the hardest contrastive loss and operates on the FCGF embeddings
+
+$$
+\begin{array}{l} \mathcal {L} _ {c} = \frac {1}{N _ {\mathrm {F C G F}}} \sum_ {(i, j) \in \mathcal {P}} \left\{\left[ d (\mathbf {f} _ {i}, \mathbf {f} _ {j}) - m _ {p} \right] _ {+} ^ {2} / | \mathcal {P} | \right. \\ + 0. 5 \big [ m _ {n} - \min _ {k \in \mathcal {N}} d (\mathbf {f} _ {i}, \mathbf {f} _ {k}) \big ] _ {+} ^ {2} / | \mathcal {N} _ {i} | \\ \left. + 0. 5 \left[ m _ {n} - \min _ {k \in \mathcal {N}} d \left(\mathbf {f} _ {j}, \mathbf {f} _ {k}\right) \right] _ {+} ^ {2} / \left| \mathcal {N} _ {j} \right| \right\} \\ \end{array}
+$$
+
+where $\mathcal{P}$ is a set of all the positive pairs in a FCGF mini batch $N_{\mathrm{FCGF}}$ and $\mathcal{N}$ is a random subset of all features that is used for the hardest negative mining. $m_p = 0.1$ and $m_n = 1.4$ are the margins for positive and negative pairs
+
+respectively. The detailed network architecture of $\phi(\cdot)$ as well as the training configuration and parameters are available in the supp. material.
+
+Deep pairwise registration Despite the good performance of the FCGF descriptor, several putative correspondences $\Gamma' \subset \Gamma$ will be false. Furthermore, the distribution of inliers and outliers does not resemble noise but rather shows regularity [53]. We thus aim to learn this regularity from the data using a deep neural network. Recently, several networks representing a complex weighting function for filtering of 2D [46, 53, 68] or 3D [29] feature correspondences have been proposed.
+
+Herein, we propose extending the 3D outlier filtering network [29] that is based on [46] with the order-aware blocks proposed in [68]. Specifically, we create a pairwise registration block $f_{\theta}:\mathbb{R}^{N_{\mathrm{P}}\times 6}\mapsto \mathbb{R}^{N_{\mathrm{P}}}$ that takes the coordinates of the putative correspondences $\Gamma$ as input and outputs weights $\mathbf{w}\coloneqq \psi_{\mathrm{init}}(\boldsymbol {\Gamma})\coloneqq \tanh (\mathrm{ReLU}(f_{\theta}(\boldsymbol {\Gamma})))$ that are fed, along with $\Gamma$ , into the closed form solution of Eq. 4 to obtain $\hat{\mathbf{R}}_{ij}$ and $\hat{\mathbf{t}}_{ij}$ . Motivated by the results in [53, 68] we add another registration block $\psi_{\mathrm{iter}}(\cdot)$ to our network and append the weights $\mathbf{w}$ and the pointwise residuals $\mathbf{r}$ to the original input s.t. $\mathbf{w}^{(k)}\coloneqq \psi_{\mathrm{iter}}(\mathrm{cat}([\boldsymbol{\Gamma}^{(k)},\mathbf{w}^{(k - 1)},\mathbf{r}^{(k - 1)}]))$ (see Sec. 3.3). The weights $\mathbf{w}^{(k)}$ are then, again fed together with the initial correspondences $\Gamma$ to the closed form solution of Eq. 4 to obtain the refined pairwise transformation parameters. In order to ensure permutation-invariance of $f_{\theta}(\cdot)$ a PointNet-like [50] architecture that operates on individual correspondences is used in both registration blocks. As each branch only operates on individual correspondences, the local 3D context information is gathered in the intermediate layers using symmetric context normalization [65] and order-aware filtering layers [68]. The detailed architecture of the registration block is available in the supp. material. Training of the registration network is supervised using the registration loss $\mathcal{L}_{\mathrm{reg}}$ defined for a batch with $N_{\mathrm{reg}}$ examples as
+
+$$
+\mathcal {L} _ {\text {r e g}} = \alpha_ {\text {r e g}} L _ {\text {c l a s s}} + \beta_ {\text {r e g}} L _ {\text {t r a n s}} \tag {10}
+$$
+
+loss, where $\mathcal{L}_{\mathrm{class}}$ denotes the binary cross entropy loss and
+
+$$
+\mathcal {L} _ {\text {t r a n s}} = \frac {1}{N _ {\text {r e g}}} \sum_ {(i, j)} \frac {1}{N _ {\mathbf {P}}} \sum_ {l = 1} ^ {N _ {\mathbf {P}}} \left| \left| \hat {\mathbf {M}} _ {i j} \otimes \mathbf {p} _ {l} - \mathbf {M} _ {i j} ^ {\mathrm {G T}} \otimes \mathbf {p} _ {l} \right| \right| _ {2} \tag {11}
+$$
+
+is used to penalize the deviation from the ground truth transformation parameters $\mathbf{M}_{ij}^{\mathrm{GT}}$ . $\alpha_{\mathrm{reg}}$ and $\beta_{\mathrm{reg}}$ are used to control the contribution of the individual loss functions.
+
+Confidence estimation block Along with the estimated relative transformation parameters $\tilde{\mathbf{M}}_{ij}$ , the edges of the graph $\mathcal{G}$ encode the confidence $c_{ij}$ in those estimates. Confidence encoded in each edge of the graph consists of (i) the
+
+local confidence $c_{ij}^{\mathrm{local}}$ of the pairwise transformation estimation and (ii) the global confidence $c_{ij}^{\mathrm{global}}$ derived from the transformation synchronization. We formulate the estimation of $c_{ij}^{\mathrm{local}}$ as a classification task and argue that some of the required information is encompassed in the features of the second-to-last layer of the registration block. Let $\mathbf{X}_{ij}^{\mathrm{conf}} = f_{\theta}^{(-2)}(\cdot)$ denote the output of the second-to-last layer of the registration block, we propose an overlap pooling layer $f_{\mathrm{overlap}}$ that extracts a global feature $\mathbf{x}_{ij}^{\mathrm{conf}}$ by performing the weighted average pooling as
+
+$$
+\mathbf {x} _ {i j} ^ {\text {c o n f}} = \mathbf {w} _ {i j} ^ {\mathrm {T}} \mathbf {X} _ {i j} ^ {\text {c o n f}}. \tag {12}
+$$
+
+The obtained global feature is concatenated with the ratio of inliers $\delta_{ij}$ (i.e., the number of correspondences whose weights are higher than a given threshold) and fed to the confidence estimation network with three fully connected layers $(129 - 64 - 32 - 1)$ , followed by a ReLU activation function. The local confidence can thus be expressed as
+
+$$
+c _ {i j} ^ {\text {l o c a l}} := \zeta_ {\text {i n i t}} (\boldsymbol {\Gamma}) := \operatorname {M L P} \left(\operatorname {c a t} \left(\left[ \mathbf {x} _ {i j} ^ {\text {c o n f}}, \delta_ {i j} \right]\right)\right) \tag {13}
+$$
+
+The training of the confidence estimation block is supervised with the confidence loss function $\mathcal{L}_{\mathrm{conf}} = \frac{1}{N}\sum_{(i,j)}\mathrm{BCE}(c_{ij}^{\mathrm{local}},c_{ij}^{\mathrm{GT}})$ ( $N$ denotes the number of cloud pairs), where BCE refers to the binary cross entropy and the ground truth confidence $c_{ij}^{\mathrm{GT}}$ labels are computed on the fly by thresholding the angular error $\tau_{a} = \arccos \left(\frac{\mathrm{Tr}(\hat{\mathbf{R}}_{ij}^{T}\mathbf{R}_{ij}^{\mathrm{GT}}) - 1}{2}\right)$ .
+
+The $\zeta_{\mathrm{init}}(\cdot)$ incorporates the local confidence in the relative transformation parameters. On the other hand, the output of the transformation synchronization layer provides the information how the input relative transformations agree globally with the other edges. In fact, traditional synchronization algorithms [13, 4, 34] only use this global information to perform the reweighting of the edges in the iterative solutions, because they do not have access to the local confidence information. Global confidence in the relative transformation parameters $c_{ij}^{\mathrm{global}}$ can be expressed with the Cauchy weighting function [33, 4]
+
+$$
+c _ {i j} ^ {\text {g l o b a l}} = 1 / \left(1 + r _ {i j} ^ {*} / b\right) \tag {14}
+$$
+
+where $r_{ij}^{*} = ||\hat{\mathbf{M}}_{ij} - \mathbf{M}_{i}^{*}\mathbf{M}_{j}^{*T}||_{F}$ and following [33, 4] $b = 1.482\gamma \mathrm{med}(|\mathbf{r}^{*} - \mathrm{med}(\mathbf{r}^{*})|)$ with $\mathrm{med}(\cdot)$ denoting the median operator and $\mathbf{r}^*$ the vectorization of residuals $r_{ij}^{*}$ . Since local and global confidence provide complementary information about the relative transformation parameters, we combine them into a joined confidence $c_{ij}$ using their harmonic mean:
+
+$$
+c _ {i j} := \zeta_ {i t e r} \left(c _ {i j} ^ {\text {l o c a l}}, c _ {i j} ^ {\text {g l o b a l}}\right) := \frac {\left(1 + \beta^ {2}\right) c _ {i j} ^ {\text {g l o b a l}} \cdot c _ {i j} ^ {\text {l o c a l}}}{\beta^ {2} c _ {i j} ^ {\text {g l o b a l}} + c _ {i j} ^ {\text {l o c a l}}} \tag {15}
+$$
+
+ | 3DMatch [67] | CGF [38] | PPFNet [21] | 3DR [22] | 3DSN [28] | FCGF [16] | Ours |
| 1-iter | 4-iter |
| Kitchen | 0.85 | 0.72 | 0.90 | 0.80 | 0.96 | 0.95 | 0.96 | 0.98 |
| Home 1 | 0.78 | 0.69 | 0.58 | 0.81 | 0.88 | 0.91 | 0.92 | 0.93 |
| Home 2 | 0.61 | 0.46 | 0.57 | 0.70 | 0.79 | 0.72 | 0.70 | 0.73 |
| Hotel 1 | 0.79 | 0.55 | 0.75 | 0.73 | 0.95 | 0.93 | 0.95 | 0.97 |
| Hotel 2 | 0.59 | 0.49 | 0.68 | 0.67 | 0.83 | 0.88 | 0.90 | 0.90 |
| Hotel 3 | 0.58 | 0.65 | 0.88 | 0.94 | 0.92 | 0.81 | 0.89 | 0.89 |
| Study | 0.63 | 0.48 | 0.68 | 0.70 | 0.84 | 0.86 | 0.86 | 0.92 |
| MIT Lab | 0.51 | 0.42 | 0.62 | 0.62 | 0.76 | 0.82 | 0.78 | 0.78 |
| Average | 0.67 | 0.56 | 0.71 | 0.75 | 0.86 | 0.86 | 0.87 | 0.89 |
+
+Table 1. Registration recall on 3DMatch data set. 1-iter and 4-iter denote the result of the pairwise registration network and input to the 4th Trasnf-Sync laser, respectively. Best results, except for 4-iter that is informed by the global information, are shown in bold.
+
+where the $\beta$ balances the contribution of the local and global confidence estimates and is learned during training.
+
+End-to-end multiview 3D registration The individual parts of the network are connected into an end-to-end multiview 3D registration algorithm as shown in Fig. $2^{2}$ . We pretrain the individual sub-networks (training details available in the supp. material) before fine-tuning the whole model in an end-to-end manner on the 3DMatch data set [67] using the official train/test data split. In fine-tuning we use $N_{\mathrm{FCGF}} = 4$ to extract the FCGF features and randomly sample feature vectors of 2048 points per fragment. These features are used in the soft assignment (softNN) to form the putative correspondences of $\binom{N_S}{2}$ point clouds pairs3, which are fed to the pairwise registration network. The output of the pairwise registration is used to build the graph, which is input to the transformation synchronization layer. The iterative refinement of the transformation parameters is performed four times. We supervise the fine tuning using the joint multiview registration loss
+
+$$
+\mathcal {L} = \mathcal {L} _ {\mathrm {c}} + \mathcal {L} _ {\text {r e g}} + \mathcal {L} _ {\text {c o n f}} + \mathcal {L} _ {\text {s y n c}} \tag {16}
+$$
+
+where the transformation synchronization $\mathcal{L}_{sync}$ loss reads
+
+$$
+\mathcal {L} _ {\text {s y n c}} = \frac {1}{N} \sum_ {(i, j)} \left(\left\| \mathbf {R} _ {i j} ^ {*} - \mathbf {R} _ {i j} ^ {G T} \right\| _ {F} + \left\| \mathbf {t} _ {i j} ^ {*} - \mathbf {t} _ {i j} ^ {G T} \right\| _ {2}\right). \tag {17}
+$$
+
+We fine-tune the whole network for 2400 iterations using Adam optimizer [39] with a learning rate of $5 \times 10^{-6}$ .
+
+# 5. Experiments
+
+We conduct the evaluation of our approach on the publicly available benchmark datasets 3DMatch [67], Redwood [14] and ScanNet [18]. First, we evaluate the performance, efficiency, and the generalization capacity of the proposed pairwise registration algorithm on 3DMatch and
+
+ | Per fragment pair | Whole scene |
| NN search [s] | Model estimation [s] | Total time [s] |
| RANSAC | 0.38 | 0.23 | 1106.3 |
| Ours (softNN) | 0.10 | 0.01 | 80.3 |
+
+Table 2. Average run-time for estimating the pairwise transformation parameters of one fragment pair on 3DMatch dataset. Note, the GPU implementation of the soft assignments is faster than the CPU based kd-tree NN search.
+
+Redwood dataset respectively (Sec. 5.1). We then evaluate the whole pipeline on the global registration of the point cloud fragments generated from RGB-D images, which are part of the ScanNet dataset [18].
+
+# 5.1. Pairwise registration performance
+
+We begin by evaluating the pairwise registration part of our algorithm on a traditional geometric registration task. We compare the results of our method to the state-of-the-art data-driven feature descriptors 3DMatch [67], CGF [38], PPFNet [21], 3DSmoothNet (3DS) [28], and FCGF [16], which is also used as part of our algorithm, as well as to a recent network based registration algorithm 3DR [22]. Following the evaluation procedure of 3DMatch [67] we complement all the descriptor based methods with the RANSAC-based transformation parameter estimation. For our approach we report the results after the pairwise registration network (1-iter in Tab. 1) as well as the output of the $\psi_{\mathrm{iter}}(\cdot)$ in the $4^{\mathrm{th}}$ iteration (4-iter in Tab. 1). The latter is already informed with the global information and serves primarily as verification that with the iterations our input to the Transf-Sync layer improves. Consistent with the 3DMatch evaluation procedure, we report the average recall per scene as well as for the whole dataset in Tab. 1.
+
+The registration results show that our approach reaches the highest recall among all the evaluated methods. More importantly, it indicates that using the same features (FCGF), our method can outperform RANSAC-based estimation of the transformation parameters, while having a much lower time complexity (Tab. 2). The comparison of the results of 1-iter and 4-iter also confirms the intuition that feeding the residuals and weights of the previous estimation back to the pairwise registration block helps refining the estimated pairwise transformation parameters.
+
+Generalization to other domains In order to test if our pairwise registration model can generalize to new datasets and unseen domains, we perform a generalization evaluation on a synthetic indoor dataset Redwood indoor [14]. We follow the evaluation protocol of [14] and report the average registration recall and precision across all four scenes. We compare our approach to the recent data driven approaches 3DMatch [67], CGF [38] $^+$ FGR [69] or CZK [14], RelativeNet (RN) [22], 3DR [22] and traditional methods CZK [14] and Latent RANSAC (LR) [40]. Fig. 3 shows
+
+| Methods | Rotation Error | Translation Error (m) |
| 3° | 5° | 10° | 30° | 45° | Mean/Med. | 0.05 | 0.1 | 0.25 | 0.5 | 0.75 | Mean/Med. |
| Pairwise (All) | FGR [69] | 9.9 | 16.8 | 23.5 | 31.9 | 38.4 | 76.3°/- | 5.5 | 13.3 | 22.0 | 29.0 | 36.3 | 1.67/- |
| Ours (1stiter.) | 32.6 | 37.2 | 41.0 | 46.5 | 49.4 | 65.9°/48.8° | 25.1 | 34.1 | 40.0 | 43.4 | 46.8 | 1.37/0.94 |
| Edge Pruning (All) | Ours (4thiter.) | 34.3 | 38.7 | 42.2 | 48.2 | 51.9 | 62.3°/37.0° | 26.7 | 35.7 | 41.8 | 45.5 | 49.4 | 1.26/0.78 |
| Ours (After Sync.) | 40.7 | 45.7 | 50.8 | 56.2 | 58.4 | 52.2°/9.0° | 29.3 | 42.1 | 50.9 | 54.7 | 58.3 | 0.96/0.20 |
| FGR (Good) | FastGR [69] | 12.4 | 21.4 | 29.5 | 38.6 | 45.1 | 68.8°/- | 7.7 | 17.6 | 28.2 | 36.2 | 43.4 | 1.43/- |
| GeoReg (FGR) [14] | 0.2 | 0.6 | 2.8 | 16.4 | 27.1 | 87.2°/- | 0.1 | 0.7 | 4.8 | 16.4 | 28.4 | 1.80/- |
| EIGSE3 (FGR) [4] | 1.5 | 4.3 | 12.1 | 34.5 | 47.7 | 68.1°/- | 1.2 | 4.1 | 14.7 | 32.6 | 46.0 | 1.29/- |
| RotAvg (FGR [12]) | 6.0 | 10.4 | 17.3 | 36.1 | 46.1 | 64.4°/- | 3.7 | 9.2 | 19.5 | 34.0 | 45.6 | 1.26/- |
| L2Sync (FGR) [35] | 34.4 | 41.1 | 49.0 | 58.9 | 62.3 | 42.9°/- | 2.0 | 7.3 | 22.3 | 36.9 | 48.1 | 1.16/- |
| Ours (Good) | EIGSE3 [4] | 63.3 | 70.2 | 75.6 | 80.5 | 81.6 | 23.0°/1.7° | 42.2 | 58.5 | 69.8 | 76.9 | 79.7 | 0.45/0.06 |
| Ours (1stiter.) | 57.7 | 65.5 | 71.3 | 76.5 | 78.1 | 28.3°/1.9° | 44.8 | 60.3 | 69.6 | 73.1 | 75.5 | 0.57/0.06 |
| Ours (4thiter.) | 60.6 | 68.3 | 73.7 | 78.9 | 81.0 | 24.2°/1.8° | 47.1 | 63.3 | 72.2 | 76.2 | 78.7 | 0.50/0.05 |
| Ours (After Sync) | 65.8 | 72.8 | 77.6 | 81.9 | 83.2 | 20.3°/1.6° | 48.4 | 67.2 | 76.5 | 79.7 | 82.0 | 0.42/0.05 |
+
+Table 3. Multiview registration evaluation on ScanNet [18] dataset. We report the ECDF values for rotation and translation errors. Best results are shown in bold.
+
+that our approach can achieve $\approx 4$ percentage points higher recall than state-of-the-art without being trained on synthetic data and thus confirming the good generalization capacity of our approach. Note that while the average precision across the scenes is low for all the methods, several works [14, 38, 22] show that the precision can easily be increased using pruning without almost any loss in the recall.
+
+# 5.2. Multiview registration performance
+
+We finally evaluate the performance of our complete method on the task of multiview registration using the ScanNet [18] dataset. ScanNet is a large RGBD dataset of indoor scenes. It provides the reconstructions, ground truth camera poses and semantic segmentations for 1513 scenes. To ensure a fair comparison, we follow [35] and use the same 32 randomly sampled scenes for evaluation. For each scene we randomly sample 30 RGBD images that are 20 frames apart and convert them to point clouds. The temporal sequence of the frames is discarded. In combination with the large temporal gap between the frames, this makes the test setting extremely challenging. Different to [35], we do not train our network on ScanNet, but rather perform direct generalization of the network trained on the 3DMatch dataset.
+
+Evaluation protocol We use the standard evaluation protocol [13, 35] and report the empirical cumulative distribution function (ECDF) for the angular $a_{e}$ and translation $t_{e}$ deviations defined as
+
+$$
+a _ {e} = \operatorname {a r c c o s} \left(\frac {\operatorname {T r} \left(\mathbf {R} _ {i j} ^ {* \mathrm {T}} \mathbf {R} _ {i j} ^ {\mathrm {G T}}\right) - 1}{2}\right) \quad t _ {e} = \| \mathbf {t} _ {i j} ^ {\mathrm {G T}} - \mathbf {t} _ {i j} ^ {*} \| _ {2} \tag {18}
+$$
+
+The ground truth rotations $\mathbf{R}^{\mathrm{GT}}$ and translations $\mathbf{t}^{\mathrm{GT}}$ are provided by the authors of ScanNet [18]. In Tab. 3 we report the results for three different scenarios. "FGR (Good)" and "Ours (Good)" denote the scenarios in which we follow [35] and use the computed pairwise registrations to prune the edges before the transformation synchronization
+
+if the median point distance in the overlapping4 region after the transformation is larger than $0.1\mathrm{m}$ (FGR) or $0.05\mathrm{m}$ (ours). The EIGSE3 in "Ours (Good)" is initialized using our pairwise estimates. On the other hand, "all" denotes the scenario in which all $\binom{Ns}{2}$ pairs are used to build the graph. In all scenarios we prune the edges of the graph if the confidence estimation in the relative transformation parameters of that edge $c_{ij}^{\mathrm{local}}$ drops below $\tau_p = 0.85$ . This threshold was determined on 3DMatch dataset and its effect on the performance of our approach is analyzed in detail in the supp. material. If during the iterations the pruning of the edges yields a disconnected graph we simply report the last valid values for each node before the graph becomes disconnected. A more sophisticated handling of the edge pruning and disconnected graphs is left for future work.
+
+Analysis of the results As shown in Tab. 3 our approach can achieve a large improvement on the multiview registration tasks when compared to the baselines. Not only are the initial pairwise relative transformation parameters estimated using our approach more accurate than the ones of FGR [69], but they can also be further improved in the subsequent iterations. This clearly confirms the benefit of the feed-back loop of our algorithm. Furthermore even when directly considering all input edges our approach still proves dominant, even when considering the results of the scenario "Good" for our competitors. More qualitative results of the multiview registration evaluation, including the failure cases, are available in the supp. material.
+
+Computational complexity Low computational costs of pairwise and multiview registration is important for various fields like augmented reality or robotics. We first compare computation time of our pairwise registration component to RANSAC. In Tab. 2 we report the average time needed to register one fragment pair of the 3DMatch dataset as well
+
+
+Figure 3. Registration results on the Redwood indoor dataset.
+
+as one whole scene. All timings were performed on a standalone computer with Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz, GeForce GTX 1080, and 32 GB RAM. Average time of performing softNN for a fragment pair is about 0.1s, which is a approximately four times faster than traditional nearest neighbor search (implemented using scikit-learn [48]). An even larger speedup (about 23 times) is gained in the model estimation stage, where our approach requires a single forward pass (constant time) compared to up to 50000 iterations of RANSAC when the inlier ratio is $5\%$ and the desired confidence $0.99^5$ . This results in an overall run-time of about 80s for our entire multiview approach (including the feature extraction and transformation synchronization) for the Kitchen scene with 1770 fragment pairs. In contrast, feature extraction and pairwise estimation of transformation parameters with RANSAC takes $>1100s$ . This clearly shows the efficiency of our method, being $>13$ times faster to compute (for a scene with 60 fragments).
+
+# 5.3. Ablation study
+
+To get a better intuition how much the individual novelties in our approach contribute to the final performance, we carry out an ablation study on the ScanNet [18] dataset. In particular, we analyze the proposed edge pruning scheme based on the confidence estimation block and Cauchy function as well as the impact of the iterative refinement of the relative transformation parameters. The results of the ablation study are presented in Fig. 4.
+
+Benefit from the iterative refinement We motivate the iterative refinement of the transformation parameters that are input to the Transf-Sync layer with a notion that the weights and residuals provide additional ques for their estimation. Results in Fig. 4 confirm this assumption. The input relative parameters in the 4-th iteration are approximately 2 percentage points better than the initial estimate. On the other hand, Fig. 4 shows that at the high presence of
+
+
+Figure 4. Ablation study on the ScanNet dataset.
+
+outliers or inefficient edge pruning (see e.g., the results w/o edge pruning) the weights and the residuals actually provide a negative bias and worsen the results.
+
+Edge pruning scheme There are several possible ways to implement the pruning of the presumable outlier edges. In our experiments we prune the edges based on the output of the confidence estimation block (w-conf.). Other options are to realize this step using the global confidence, i.e. the Cauchy weights defined in (14) (w-Cau.) or not performing this at all (w/o). Fig. 4 clearly shows the advantage of using our confidence estimation block (gain of more than 20 percentage points). Even more, due to preserving a large amount of outliers, alternative approaches preform even worse than the pairwise registration.
+
+# 6. Conclusions
+
+We have introduced an end-to-end learnable, multiview point cloud registration algorithm. Our method departs from the common two-stage approach and directly learns to register all views in a globally consistent manner. We augment the 3D descriptor FCGF [16] by a soft correspondence layer that pairs all the scans to compute initial matches, which are fed to a differentiable pairwise registration block resulting in transformation parameters as well as weights. A pose graph is constructed and a novel, differentiable iterative transformation synchronization layer globally refines weights and transformations. Experimental evaluation on common benchmark datasets show that our method outperforms state-of-the-art by more than 25 percentage points on average regarding the rotation error statistics. Moreover, our approach is $>13$ times faster than RANSAC-based methods in a multiview setting of 60 scans, and generalizes better to new scenes ( $\approx 4$ percentage points higher recall on Redwood indoor compared to state-of-the-art).
+
+Acknowledgements. This work is partially supported by Stanford-Ford Alliance, NSF grant IIS-1763268, Vannevar Bush Faculty Fellowship, Samsung GRO program and the Stanford SAIL Toyota Research Center. We thank NVIDIA Corp. for providing the GPUs used in this work.
+
+# References
+
+[1] Dror Aiger, Niloy J Mitra, and Daniel Cohen-Or. 4-points congruent sets for robust pairwise surface registration. In ACM transactions on graphics (TOG), number 3, 2008. 2
+[2] Mica Arie-Nachimson, Shahar Z Kovalsky, Ira Kemelmacher-Shlizerman, Amit Singer, and Ronen Basri. Global motion estimation from point matches. In International Conference on 3D Imaging, Modeling, Processing, Visualization & Transmission, 2012. 1, 2, 3
+[3] Federica Arrigoni, Luca Magri, Beatrice Rossi, Pasqualina Fragneto, and Andrea Fusiello. Robust absolute rotation estimation via low-rank and sparse matrix decomposition. In IEEE International Conference on 3D Vision (3DV), pages 491-498, 2014. 1, 2, 3
+[4] Federica Arrigoni, Beatrice Rossi, and Andrea Fusiello. Spectral synchronization of multiple views in se(3). SIAM Journal on Imaging Sciences, 9(4):1963-1990, 2016. 1, 3, 5, 7
+[5] Florian Bernard, Johan Thunberg, Peter Gemmar, Frank Hertel, Andreas Husch, and Jorge Goncalves. A solution for multi-alignment by transformation synchronisation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2161-2169, 2015. 1, 2, 3
+[6] PJ Besl and Neil D McKay. A method for registration of 3-d shapes. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 14(2):239-256, 1992. 2
+[7] Uttaran Bhattacharya and Venu Madhav Govindu. Efficient and robust registration on the 3d special euclidean group. In The IEEE International Conference on Computer Vision (ICCV), 2019. 2, 3
+[8] Tolga Birdal and Slobodan Ilic. Point pair features based object detection and pose estimation revisited. In IEEE International Conference on 3D Vision (3DV), 2015. 2
+[9] Tolga Birdal and Slobodan Ilic. Cad priors for accurate and flexible instance reconstruction. In IEEE International Conference on Computer Vision (ICCV), 2017. 2
+[10] Tolga Birdal and Umut Simsekli. Probabilistic permutation synchronization using the riemannian structure of the birkhoff polytope. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11105-11116, 2019. 2
+[11] Tolga Birdal, Umut Simsekli, Mustafa Onur Eken, and Slobodan Ilic. Bayesian pose graph optimization via bingham distributions and tempered geodesic mcmc. In Advances in Neural Information Processing Systems (NIPS), pages 308-319, 2018. 1, 3
+[12] A Chatterjee and VM Govindu. Robust relative rotation averaging. IEEE transactions on pattern analysis and machine intelligence, 40(4):958-972, 2018. 7
+[13] Avishek Chatterjee and Venu Madhav Govindu. Efficient and robust large-scale rotation averaging. In Proceedings of the IEEE International Conference on Computer Vision, pages 521-528, 2013. 5, 7
+[14] Sungjoon Choi, Qian-Yi Zhou, and Vladlen Koltun. Robust reconstruction of indoor scenes. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 6, 7
+
+[15] Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3075-3084, 2019. 4
+[16] Christopher Choy, Jaesik Park, and Vladlen Koltun. Fully convolutional geometric features. In The IEEE International Conference on Computer Vision (ICCV), pages 8958-8966, 2019. 2, 4, 6, 8
+[17] Zhaopeng Cui and Ping Tan. Global structure-from-motion by similarity averaging. In Proceedings of the IEEE International Conference on Computer Vision, pages 864-872, 2015. 2
+[18] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2017. 6, 7, 8
+[19] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppf-foldnet: Unsupervised learning of rotation invariant 3d local descriptors. In European conference on computer vision (ECCV), 2018. 1
+[20] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppf-foldnet: Unsupervised learning of rotation invariant 3d local descriptors. In European Conference on Computer Vision (ECCV), pages 602-618, 2018. 2, 4
+[21] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppfnet: Global context aware local features for robust 3d point matching. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 195-205, 2018. 1, 2, 4, 6
+[22] Haowen Deng, Tolga Birdal, and Slobodan Ilic. 3d local features for direct pairwise registration. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 6, 7
+[23] Li Ding and Chen Feng. DeepMapping: Unsupervised map estimation from multiple point clouds. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8650-8659, 2019. 2
+[24] Bertram Drost, Markus Ulrich, Nassir Navab, and Slobodan Ilic. Model globally, match locally: Efficient and robust 3d object recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 998-1005, 2010. 2
+[25] Simone Fantoni, Umberto Castellani, and Andrea Fusiello. Accurate and automatic alignment of range surfaces. In 2012 Second International Conference on 3D Imaging, Modeling, Processing, Visualization & Transmission, pages 73-80. IEEE, 2012. 2
+[26] Martin A. Fischler and Robert C. Bolles. Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. Commun. ACM, 24(6):381-395, 1981. 2
+[27] A. Flint, A. Dick, and A. van den Hangel. Thrift: Local 3D structure recognition. In 9th Biennial Conference of the Australian Pattern Recognition Society on Digital Image Computing Techniques and Applications, 2007. 1
+[28] Zan Gojcic, Caifa Zhou, Jan D Wegner, and Andreas Wieser. The perfect match: 3d point cloud matching with smoothed densities. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 4, 6
+
+[29] Zan Gojcic, Caifa Zhou, and Andreas Wieser. Robust pointwise correspondences for point cloud based deformation monitoring of natural scenes. In 4th Joint International Symposium on Deformation Monitoring (JISDM), 2019. 5
+[30] Venu Madhav Govindu. Lie-algebraic averaging for globally consistent motion estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 684-691, 2004. 1, 3
+[31] Johannes Groß, Aljosa Osep, and Bastian Leibe. Alignnet-3d: Fast point cloud registration of partially observed objects. In 2019 International Conference on 3D Vision (3DV), pages 623–632. IEEE, 2019. 2
+[32] Stefan Hinterstoisser, Vincent Lepetit, Naresh Rajkumar, and Kurt Konolige. Going further with point pair features. In European conference on computer vision (ECCV), pages 834-848, 2016. 2
+[33] Paul W. Holland and Roy E. Welsch. Robust regression using iteratively reweighted least-squares. Communications in Statistics - Theory and Methods, 6(9):813-827, 1977. 5
+[34] Xiangru Huang, Zhenxiao Liang, Chandrajit Bajaj, and Qixing Huang. Translation synchronization via truncated least squares. In Advances in neural information processing systems (NIPS), pages 1459-1468, 2017. 3, 5
+[35] Xiangru Huang, Zhenxiao Liang, Xiaowei Zhou, Yao Xie, Leonidas J Guibas, and Qixing Huang. Learning transformation synchronization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8082-8091, 2019. 2, 3, 7
+[36] Daniel F Huber and Martial Hebert. Fully automatic registration of multiple 3d data sets. Image and Vision Computing, 21(7):637-650, 2003. 2
+[37] A.E. Johnson and M. Hebert. Using spin images for efficient object recognition in cluttered 3d scenes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21, 1999. 1
+[38] Marc Khoury, Qian-Yi Zhou, and Vladlen Koltun. Learning compact geometric features. In IEEE International Conference on Computer Vision (ICCV), 2017. 1, 2, 4, 6, 7
+[39] Diederik P. Kingma and Jimmy Lei Ba. Adam: a Method for Stochastic Optimization. In International Conference on Learning Representations 2015, 2015. 6
+[40] Simon Korman and Roee Litman. Latent ransac. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6693-6702, 2018. 2, 6
+[41] Hongdong Li and Richard Hartley. The 3D-3D registration problem revisited. In International Conference on Computer Vision (ICCV), pages 1–8, 2007. 2
+[42] Weixin Lu, Guowei Wan, Yao Zhou, Xiangyu Fu, Pengfei Yuan, and Shiyu Song. Deepvcp: An end-to-end deep neural network for point cloud registration. In IEEE International Conference on Computer Vision (ICCV), 2019. 1, 2
+[43] Eleonora Maset, Federica Arrigoni, and Andrea Fusiello. Practical and efficient multi-view matching. In Proceedings of the IEEE International Conference on Computer Vision, pages 4568-4576, 2017. 1, 2
+[44] Nicolas Mellado, Dror Aiger, and Niloy J Mitra. Super 4pcs fast global pointcloud registration via smart indexing. In Computer Graphics Forum, volume 33, 2014. 2
+
+[45] Ajmal S Mian, Mohammed Bennamoun, and Robyn Owens. Three-dimensional model-based object recognition and segmentation in cluttered scenes. IEEE transactions on pattern analysis and machine intelligence, 28(10):1584-1601, 2006. 2
+[46] Kwang Moo Yi, Eduard Trulls, Yuki Ono, Vincent Lepetit, Mathieu Salzmann, and Pascal Fua. Learning to find good correspondences. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2666-2674, 2018. 5
+[47] 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. In NIPS Autodiff Workshop, 2017. 6
+[48] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825-2830, 2011. 8
+[49] Tobias Plötz and Stefan Roth. Neural nearest neighbors networks. In Advances in Neural Information Processing Systems (NIPS), pages 1087-1098, 2018. 4
+[50] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 5
+[51] T. Rabbani, S. Dijkman, F. van den Heuvel, and G. Vosselman. An integrated approach for modelling and global registration of point clouds. ISPRS Journal of Photogrammetry and Remote Sensing, 61:355-370, 2007. 1
+[52] Rahul Raguram, Ondrej Chum, Marc Pollefeys, Jiri Matas, and Jan-Michael Frahm. Usac: a universal framework for random sample consensus. IEEE transactions on pattern analysis and machine intelligence, 35(8), 2012. 2
+[53] René Ranftl and Vladlen Koltun. Deep fundamental matrix estimation. In European Conference on Computer Vision (ECCV), pages 284-299, 2018. 5
+[54] Radu Bogdan Rusu, Nico Blodow, and Michael Beetz. Fast point feature histograms (FPFH) for 3D registration. In IEEE International Conference on Robotics and Automation (ICRA), 2009. 1, 2
+[55] Olga Sorkine-Hornung and Michael Rabinovich. Least-squares rigid motion using svd. Computing, 1(1), 2017. 3
+[56] Pascal Theiler, Jan D. Wegner, and Konrad Schindler. Globally consistent registration of terrestrial laser scans via graph optimization. ISPRS Journal of Photogrammetry and Remote Sensing, 109:126-136, 2015. 1, 2
+[57] Pascal Willy Theiler, Jan Dirk Wegner, and Konrad Schindler. Keypoint-based 4-points congruent sets—automated marker-less registration of laser scans. *ISPRS* journal of photogrammetry and remote sensing*, 2014. 2
+[58] Federico Tombari, Samuele Salti, and Luigi Di Stefano. Unique shape context for 3D data description. In Proceedings of the ACM workshop on 3D object retrieval, 2010. 2
+[59] Federico Tombari, Samuele Salti, and Luigi Di Stefano. Unique signatures of histograms for local surface descrip-
+
+tion. In European conference on computer vision (ECCV), 2010. 1, 2
+[60] Philip HS Torr and David W Murray. The development and comparison of robust methods for estimating the fundamental matrix. International journal of computer vision, 24(3):271-300, 1997. 3
+[61] Andrea Torsello, Emanuele Rodola, and Andrea Albarelli. Multiview registration via graph diffusion of dual quaternions. In CVPR 2011, pages 2441-2448. IEEE, 2011. 1, 2
+[62] Yue Wang and Justin M. Solomon. Deep closest point: Learning representations for point cloud registration. In The IEEE International Conference on Computer Vision (ICCV), pages 3523-3532, October 2019. 1, 2
+[63] Jiaolong Yang, Hongdong Li, Dylan Campbell, and Yunde Jia. Go-icp: A globally optimal solution to 3d icp point-set registration. IEEE transactions on pattern analysis and machine intelligence (TPAMI), 38(11):2241–2254, 2015. 2
+[64] Zi Jian Yew and Gim Hee Lee. 3dfeat-net: Weakly supervised local 3d features for point cloud registration. In European Conference on Computer Vision, 2018. 1, 2
+[65] Kwang Moo Yi, Yannick Verdie, Pascal Fua, and Vincent Lepetit. Learning to assign orientations to feature points. In Computer Vision and Pattern Recognition (CVPR), 2016. 5
+[66] B. Zeisl, K. Koser, and M. Pollefeys. Automatic registration of rgb-d scans via salient directions. In IEEE International Conference on Computer Vision, pages 2808-2815, 2013. 1
+[67] Andy Zeng, Shuran Song, Matthias Nießner, Matthew Fisher, Jianxiong Xiao, and Thomas Funkhouser. 3DMatch: Learning Local Geometric Descriptors from RGB-D Reconstructions. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 1, 2, 6, 8
+[68] Jiahui Zhang, Dawei Sun, Zixin Luo, Anbang Yao, Lei Zhou, Tianwei Shen, Yurong Chen, Long Quan, and Honggen Liao. Learning two-view correspondences and geometry using order-aware network. In International Conference on Computer Vision (ICCV), 2019. 5
+[69] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Fast global registration. In European Conference on Computer Vision (ECCV), pages 766-782, 2016. 2, 3, 6, 7
+[70] Siyu Zhu, Runze Zhang, Lei Zhou, Tianwei Shen, Tian Fang, Ping Tan, and Long Quan. Very large-scale global sfm by distributed motion averaging. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4568-4577, 2018. 2
\ No newline at end of file
diff --git a/learningmultiview3dpointcloudregistration/images.zip b/learningmultiview3dpointcloudregistration/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..917fb7aef613f3c50be7188f4a23e02e6f93707c
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f48bc9187009b528b5dd60d253640a8a2df7923c16ccb73492b4d7fae232e492
+size 455059
diff --git a/learningmultiview3dpointcloudregistration/layout.json b/learningmultiview3dpointcloudregistration/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9aef7d1485284e66c08a84e459bfe8f553ff7e8
--- /dev/null
+++ b/learningmultiview3dpointcloudregistration/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b876ef6d27b1d48ad17969661b223ea93758c2cd76ee64109094b5be0feae502
+size 471431
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_content_list.json b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f06a0c5a03842a7b717d3b172183aea0acf671ef
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e707c6b16c6b911bbca8ce16dc0db3f85fa5292bcc201c62f093df612886cf58
+size 78068
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_model.json b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa6858cc4698447889f7c1bd43bc40ce250eb366
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:384cc6da3b39c3e9f44ed984e17f1dff3fa72702672e2ca124144cc542f858f0
+size 97337
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_origin.pdf b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ffcfbf6ab646bc28fabb1d041bece77e96ca775b
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/95531b45-fddf-4f75-8b88-cc38f3387898_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:236ae06147f3c0b71a30b6122d8acc74a785ad686ecee05c5c8075a513c64bc2
+size 39606637
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/full.md b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c3baf89d2755c42010e1ecf6a80b037c4b2b6de7
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/full.md
@@ -0,0 +1,367 @@
+# Learning Multi-view Camera Relocalization with Graph Neural Networks
+
+Fei Xue $^{1}$ , Xin Wu $^{2}$ , Shaojun Cai $^{1}$ , and Junqiu Wang $^{3}$
+
+UISEE Technology Inc.
+
+$^{2}$ Key Laboratory of Machine Perception, Peking University
+
+3 AVIC Beijing Changcheng Aeronautical Measurement and Control Technology Research Institute
+
+{fei.xue, shaojun.cai}@uisee.com
+
+wuxin1998@pku.edu.cn, jerywangjq@foxmail.com
+
+
+
+We propose to construct a new graph to excavate the initiation of the whole given sequence for absolute camera estimation. Specially, we harm GNNs to model the graph, allowing non-convex times to exchange information with each other. Rather than adopting the regular GNNs directly, we redefine the nodes, edges, and embedded functions to fit the relocalization task. Redesigned GNNs collaborate with CNNs in guiding knowledge propagation and feature extraction respectively to process multi-view high-dimensional image features iteratively at different levels. Besides, a general graph-based loss function beyond constraints between consecutive views is employed for training the network in an end-to-end fashion. Extensive experiments conducted on both indoor and outdoor datasets demonstrate that our method outperforms previous approaches especially in large-scale and challenging scenarios. Our code is publicly available (https://github.com/feixue94/grnet).
+
+# 1. Introduction
+
+Visual relocalization estimates the absolute pose of the camera in a known scene from an image or multiple images. It plays an important role in various applications including robotics, autonomous driving, and virtual/augmented reality. In the last two decades, many geometry-based algorithms [37, 38, 23, 30, 29, 35] have been proposed. Recent studies formulate the task as a regression problem using Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs). Most of them estimate the camera pose from a single image [18, 25, 17, 19, 5, 46, 44, 16, 4]. Therefore, their performances degrade severely due to visual ambiguities in challenging conditions, e.g., textureless regions, repetitive textures, local similarities, dynamic
+
+
+Figure 1: Overview of our framework. We construct a graph with nodes representing observations of different viewpoints. CNNs and GNNs are exploited for feature extraction and message exchange, respectively. The two processes are executed iteratively at multiple levels with edges dynamically adjusted to retain the most important connections. Enhanced feature of each node is fed into the pose estimator for absolute pose prediction. The preserved edges are utilized to build additional constraints in the training process.
+
+objects, and various weather states. In contrast to single images, sequential images provide more information from
+
+different viewpoints, and thus can improve both the robustness and accuracy of relocalization.
+
+To deal with visual ambiguities, temporal consistency is utilized by fusing sequential observations via LSTMs (Long-Short Term Memories) [50, 9] or adding VO (visual odometry) results as constraints to guarantee the consistency [3, 40, 50, 28, 9]. Unfortunately, due to limitations of LSTMs, temporal consistency is maintained in short-term periods [36]. As consecutive frames are much overlapped, temporally close views bring little new information to each other, leading to inadequate usage of multiple views for resolving visual ambiguities [48, 49].
+
+Inspired by classic 3D reconstruction and SLAM systems [32, 26], we try to mine the correlation of all potentially related frames by constructing a view graph where observations are represented as nodes, and thus even temporally far images can contribute to each other. We harness the prevalent GNNs (Graph Neural Networks) which have been widely utilized to tackle tasks with unstructured inputs [51, 13, 41, 22, 45, 52], to process the relationships of multiple views. Considering the significant differences between relocalization and other tasks, we redesign the nodes, edges, and embedded functions of regular GNNs to fit the relocalization task. Moreover, to facilitate information propagation among multiple frames, we take advantages of CNNs and GNNs in governing feature extraction and knowledge exchange respectively to process the high-dimensional image features progressively at multiple levels.
+
+An overview of our framework is shown in Fig. 1. Images are initially organized in a graph. All features in the graph are represented as 3D tensors so that the spatial correlations can be retained. Taking these 3D tensors as input, CNNs and GNNs cooperate to extract features and propagate messages along edges, respectively. The two processes are executed iteratively at multiple levels with both feature resolution and number of edges reduced. Finally, fused features absorbing the knowledge of other views are utilized to regress the absolute poses. The whole process is differentiable and can be trained and tested in an end-to-end fashion. Our contributions are summarized as follows:
+
+- To the best of our knowledge, we are the first to tackle the multi-view camera relocalization task with GNNs, enabling the messages of different frames to be transferred beyond temporal connections.
+- We redefine the nodes, edges, and embedded functions of GNNs to fit the relocalization task, allowing more effective information exchange between different frames.
+- We leverage GNNs and CNNs for feature extraction and graph modeling respectively, which process multiview image features iteratively at different levels to enhance the performance of our relocalization system.
+
+We organize the rest of this paper as follows. In Sec. 2, we describe the related works and GNNs. In Sec. 3, our framework is introduced in detail. We compare our algorithm with previous methods in Sec. 4 and conclude the paper in Sec. 5.
+
+# 2. Related Work
+
+We mainly discuss visual relocalization methods in this section, and then give a brief introduction to GNNs along with their applications in computer vision tasks.
+
+# 2.1. Visual Relocalization
+
+The absolute pose of a camera can be recovered approximately using pose of the most similar image in the database [39, 1, 29] or further estimating the relative pose between the query image and the candidate to improve the accuracy [2, 10, 21]. However, query images may differ drastically from those in the database due to changing environments, making these methods prone to failure. Structure-based algorithms build 3D maps of the scene and then establish 2D-3D correspondences. Poses are calculated by performing the RANSAC and solving a Perspective-n-Point problem [8, 30, 35]. Despite their promising performance, they require accurate intrinsic calibration and intricate initialization to establish correct correspondences. Moreover, when dealing with large-scale scenes, they need excessive amounts of memory storage and computational resource in order to build a complete 3D model, which further impair their feasibility in real-world applications.
+
+Recently, direct absolute pose regression with CNNs has achieved promising performance. PoseNet [19] and its variations [17, 18, 25, 42, 5, 44, 46, 16, 4] calculate poses from single images. These methods suffer from high uncertainty in challenging scenarios, e.g., texture-less regions, local similarities, and illumination/weather variations. Since sequential images contain more information than a single frame, they are found helpful for mitigating such ambiguities [9, 3, 50]. VidLoc [9] models image sequences using bidirectional LSTMs [33] so that observations from multiple images can be fused for pose estimation. MapNet [3] introduces additional information from IMU, GPS, and visual SLAM systems [11] as constraints to guarantee the pose consistency between consecutive frames. VLocNet [40] leverages the temporal consistency of two nearby views and imposes relative poses as constraints. LsG [50] proposes to support global pose recovery with the local properties of sequential images. It achieves state-of-the-art performance because the uncertainty of pose estimation is alleviated by augmenting the observations in local maps and optimizing poses in VO streams.
+
+Previous methods mainly emphasize the temporal consistency by modeling the multi-view images via LSTMs or imposing relative constraints on consecutive frames. How-
+
+ever, this unidirectional process cannot take full advantages of multi-view images. Besides, LSTMs are incapable of keeping memories for a long time [36], causing the loss of global knowledge. Instead, we formulate the multi-view images using graphs and exploit GNNs to propagate information between different views more adequately.
+
+# 2.2. Graph Neural Network
+
+GNNs model the relationships of unstructured data by passing messages between connected nodes and have been investigated intensively in the literature [52, 47]. Recently, GNNs are getting increasingly popular for their outstanding performance on tackling computer vision tasks including classification [51, 13, 41], segmentation [45, 43], human pose estimation [6], and scene representation [53]. However, visual relocalization is essentially different from these tasks as the nodes are defined on high-dimensional image features rather than vectors, and edges are utilized to exchange information between two views. Adopting regular GNNs directly by compressing image features to vectors leads to a large amount of information loss. In addition, this process introduces a large number of fully-connected layers, which further cause over-fitting and instability of the model [22].
+
+In this paper, we employ GNNs to handle the topological relationships of multiple views. Rather than employing the regular GNN directly, we redefine the nodes, edges, and embedded functions of GNNs to fit the relocalization task.
+
+# 3. Method
+
+We first introduce how to formulate the sequence-based relocalization task using a graph in Sec. 3.1. Next, we describe the message exchange protocol among multiple frames in Sec. 3.2. Finally, we define a graph-based loss function in Sec. 3.4.
+
+# 3.1. Graph Definition
+
+A graph is usually defined as $\mathcal{G} = (\mathcal{V},\mathcal{E})$ with $\mathcal{V} = \{v_{i}\}$ and $\mathcal{E} = \{e_{ij}\}$ representing the nodes and edges, respectively. Each node $v_{i}$ contains a feature $x_{i}$ denoting its attribute and each edge $e_{ij} = (v_i,v_j)$ connects $v_{i}$ and $v_{j}$ . The overall process of our network can be described as:
+
+$$
+\mathcal {G} _ {\text {p o s e}} = \mathcal {F} \left(\mathcal {G} _ {\text {i m g}}\right), \tag {1}
+$$
+
+where $\mathcal{G}_{img} = (\mathcal{V}_{img},\mathcal{E}_{img})$ and $\mathcal{G}_{pose} = (\mathcal{V}_{pose},\mathcal{E}_{pose})$ represent the input and output graphs, respectively. $\mathcal{F}$ is the model proposed in this paper.
+
+Node Definition. Instead of compressing features to vectors in standard GNNs, we define the representation of each node as a 3D tensor considering the spatial connections of image features, which are crucial for knowledge sharing between different views. Thus, each feature map
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 2: Graph structure. Previous methods [3, 9, 50] focus mainly on the temporal consistency by adding connections between consecutive frames (a). In contrast, we initialize the graph with dense connections (b), so that even temporally distant views can contribute to each other (c).
+
+$x_{i}\in \mathcal{R}^{H\times W\times C}$ ( $H$ , $W$ , and $C$ denote the height, width, and channels) can be directly put into the graph without losing any information. Accordingly, we redefine the message passing and node updating functions so that information can be propagated in the formulation of 3D tensors.
+
+Edge Initialization. As shown in Fig 2, each edge determines which two views should be connected and allows them to exchange information. Traditionally, edges are defined between consecutive frames as $\mathcal{E} = \{e_{ij} \mid |i - j| = 1\}$ (in Fig. 2a) and LSTMs are adopted to model the sequential images along the temporal direction or the inverse. Theoretically, two views can potentially contribute to each other if they share enough content overlap, which can be treated as priors defined as the attribute of edges. However, such priors are unachievable without depth information [2].
+
+In order to retain the potential connections, we initially construct a dense direct graph by connecting every two nodes with edges (in Fig. 2b). Therefore, even temporally far images can contribute to each other (in Fig. 2c).
+
+It can be seen clearly that modeling the sequence using LSTMs in [9, 50] is just a special case of graph model proposed in this paper. The graph model allows the global information of the whole sequence to be transferred to each node, which is unattainable in LSTMs.
+
+# 3.2. Message Passing
+
+Once the graph is built, the key becomes how to transfer valuable information from the source nodes to the target ones. In the following, we introduce how to produce messages and how to aggregate them, as shown in Fig. 3.
+
+Message Generation. The message provided by node $v_{j}$ to node $v_{i}$ carries the correlation between image $I_{j}$ and $I_{i}$ . We calculate the message from node features using convolution operations so that the spatial correlations are retained.
+
+
+Figure 3: The pipeline of message passing and node updating. Each source feature concatenated with the target one is utilized to generate the message which is then re-weighted along the channel dimension for selection. Messages from all source features are aggregated by adding pixel-wise values and concatenated with the target feature for the final node updating.
+
+The message generation function is defined as:
+
+$$
+m _ {j \rightarrow i} = f _ {m} \left(x _ {i}, x _ {j}\right), \tag {2}
+$$
+
+where $f_{m}$ is the function calculating message $m_{j\rightarrow i}$ from $x_{i}$ and $x_{j}$ . $x_{i}$ and $x_{j}$ are first concatenated along the channel dimension and then fed into two convolutional layers with kernel size of $3\times 3$ , padding size of 1 to produce the message. The output channels of both two layers are the same as $x_{i}$ , hence $m_{j\rightarrow i}$ shares the same size with $x_{i}$ and $x_{j}$ .
+
+Message Selection. Different views contribute discriminatively, resulting in some messages being more important than others. Hence, we employ a soft attention mechanism to calculate the channel-wise correlations between connected nodes. The soft attention is performed as:
+
+$$
+a _ {j \rightarrow i} = f _ {\text {a t t e n}} \left(x _ {i}, x _ {j}\right), \tag {3}
+$$
+
+$$
+a _ {j \rightarrow i} ^ {(k)} = \sigma \left(c s \left(v e c \left(x _ {i} ^ {(k)}\right), v e c \left(x _ {j} ^ {(k)}\right)\right)\right), \tag {4}
+$$
+
+where $f_{atten}$ calculates the cosine similarity $cs$ between each corresponding vectorized $k$ th channel of connected features $x_i$ and $x_j$ . The attention value is then normalized to $(0,1)$ by the sigmoid function $\sigma$ .
+
+Message Aggregation. The final message $m_i^{agg}$ for node $v_i$ is aggregated by gathering messages from all source nodes with soft attentions, as:
+
+$$
+m _ {i} ^ {a g g} = \frac {1}{N _ {i}} \sum_ {e _ {i j} \in \mathcal {E}} a _ {j \rightarrow i} \otimes m _ {j \rightarrow i}, \tag {5}
+$$
+
+where $N_{i}$ is the number of source nodes connected to node $v_{i}$ and $\otimes$ denotes the channel-wise multiplication.
+
+Node Updating. The feature of node $v_{i}$ is augmented by the aggregated message $m_{i}^{agg}$ as:
+
+$$
+x _ {i} ^ {\prime} = f _ {u} \left(x _ {i}, m _ {i} ^ {a g g}\right), \tag {6}
+$$
+
+where $f_{u}$ is the updating function sharing the same structure with $f_{m}$ , yet using another group of parameters. $x_{i}$ and $m_{i}^{agg}$ are first passed through a convolutional layer with kernel size of $1 \times 1$ individually and then concatenated along the channel dimension and fed into $f_{u}$ to calculate the updated feature $x_{i}'$ .
+
+# 3.3. Multi-level Dynamic Updating
+
+The redesigned message passing and node updating functions facilitate the cooperation between GNNs and CNNs in processing image features. To promote the information sharing among multiple views, we extend the framework to operate on multi-level features progressively with additional edge pooling incorporated to abandon redundant connections, as shown in Fig. 4.
+
+Multi-level Graph Modeling. The interaction among different views is computed iteratively as:
+
+$$
+\mathcal {V} ^ {l} = f _ {c} ^ {l} \left(\mathcal {V} ^ {l - 1}\right), \tag {7}
+$$
+
+$$
+\mathcal {V} _ {f u s e d} ^ {l}, \mathcal {E} ^ {l} = f _ {g} ^ {l} \left(\mathcal {V} ^ {l}, \mathcal {E} ^ {l - 1}\right), \tag {8}
+$$
+
+where $\mathcal{V}^l, \mathcal{E}^l, \mathcal{V}^{l-1}$ , and $\mathcal{E}^{l-1}$ indicate the nodes and edges at the $l$ th and the previous level, respectively. $\mathcal{V}_{fused}^l$ denotes the nodes with fused information.
+
+As shown in Fig. 4, ResNet34 [15] is divided into 4 parts as $f_{c}^{1}$ , $f_{c}^{2}$ , $f_{c}^{3}$ , and $f_{c}^{4}$ at the end of 4 groups of residual layers. Each $f_{c}^{i}$ is followed by a GNN block $f_{g}^{i}$ for graph modeling.
+
+Adaptive Edge Pooling. Densely initialized edges retain the potential connections, yet inevitably lead to redundancy, extra computational time, over-fitting, and thus degrade performance of the whole system. Moreover, as the information is propagated among multiple views from the low to high levels progressively, there is no need to keep
+
+connections with small values. Here, we enable the network to make the decision adaptively according to the correlation between connected nodes, as:
+
+$$
+c _ {j \rightarrow i} = c s (m a x p o o l (x _ {i}), m a x p o o l (x _ {j})) , \tag {9}
+$$
+
+where the correlation $c_{j \to i}$ is calculated with cosine similarity on the downsampled features of $x_i$ and $x_j$ . For each node, only $k$ neighbors with the largest correlations are preserved while the rest are discarded.
+
+Pose Estimation. Each node gives an absolute pose calculated from its updated feature $x_{i}^{\prime}$ . Instead of estimating the pose from the output of the last GNN block which contains only high-level information, we aggregate fused features from the output of all GNN blocks and use the aggregated feature to estimate the absolute pose. Therefore, both low and high level visual clues can contribute to the final calculation. As shown in Fig. 4, outputs of GNN blocks are first passed through a GAP (global average pooling) layer for downsampling and then concatenated along the channel dimension, and finally fed into two FC (fully connected) layers to predict the position $\hat{\mathbf{t}}_i\in \mathcal{R}^3$ and orientation $\hat{\mathbf{r}}_i\in \mathcal{R}^4$ (quaternion) for image $I_{i}$ , respectively.
+
+# 3.4. Graph-based Loss Function
+
+The output of our model contains the predicted poses and connections between them. The loss function is designed considering both of them, as:
+
+$$
+\mathcal {L} = \frac {1}{N _ {v}} \sum_ {v _ {i} \in \mathcal {V} _ {\text {p o s e}}} d \left(\zeta_ {i}, \hat {\zeta} _ {i}\right) + \frac {1}{N _ {e}} \sum_ {e _ {i j} \in \mathcal {E} _ {\text {p o s e}}} d \left(\omega_ {i j}, \hat {\omega} _ {i j}\right), \tag {10}
+$$
+
+where $\zeta_{i} = (\mathbf{t}_{i},\mathbf{r}_{i})$ and $\hat{\zeta}_i = (\hat{\mathbf{t}}_i,\hat{\mathbf{r}}_i)$ are the ground-truth and predicted 6-DoF absolute poses. $\mathbf{t}$ and $\mathbf{r}$ denote the position and orientation, respectively. $\hat{\omega}_{ij}$ is the relative pose between predicted poses $\hat{\zeta}_i$ and $\hat{\zeta}_j$ if $e_{ij}$ exists in the output edges. $d(.)$ is the geometric loss function adopted to balance the position and orientation errors as in [18, 3, 50]. $d(.)$ is defined as:
+
+$$
+d \left(\zeta_ {i}, \hat {\zeta} _ {i}\right) = \left\| \mathbf {t} _ {i} - \hat {\mathbf {t}} _ {i} \right\| _ {1} e ^ {- \beta_ {p}} + \beta_ {p} + \left\| \mathbf {r} _ {i} - \hat {\mathbf {r}} _ {i} \right\| _ {1} e ^ {- \gamma_ {p}} + \gamma_ {p}, \tag {11}
+$$
+
+where $\beta_{p}$ and $\gamma_{p}$ are the parameters balancing the position and orientation errors. We adopt another group of $\beta_{g}$ and $\gamma_{g}$ to balance the translations and rotations in relative poses. Both $\beta$ s and $\gamma$ s are optimized jointly with the parameters in the neural networks.
+
+It is noteworthy that our graph-based loss function introduces constraints among multiple views beyond solely consecutive poses in MapNet [3] and LsG [50]. Therefore, the loss function is close to the standard pose-graph [7], which has been an indispensable component of current reconstruction and SLAM systems [26, 32] to improve the pose accuracy.
+
+
+Figure 4: Multi-level modeling. ResNet34 [15] is integrated with GNNs for iterative feature processing at four levels. After each GNN block, an edge pooling is performed to discard redundant connections. Fused features from four GNN blocks are passed through the GAP (global average pooling) layer, concatenated along the channel dimension, and fed into two FC (fully connected) layers for position and orientation prediction, respectively.
+
+# 4. Experiments
+
+We first describe the implementation details, then introduce the datasets used for evaluation in Sec. 4.1 and the performance of our approach against previous methods on the 7Scenes [34], Cambridge [19], and Oxford RobotCar [24] datasets in Sec. 4.2, Sec. 4.3, and Sec. 4.4, respectively. Finally, we perform an ablation study to test the efficacy of each component in our framework in Sec. 4.5. More details and results can be found in our Supplementary Material.
+
+Implementation. The input of our model is (but not limited to) monocular RGB sequential images. The length is 8 for all datasets, while our network is flexible to accept sequences of arbitrary lengths. Following [3, 50, 18], all images are resized with the height as 256 and normalized by subtracting mean pixel values. The $\beta$ s and $\gamma$ s are set to -4.0 and -1.0 for initialization, respectively. $k$ is set to 8, 8, 6, and 4 for four levels. ResNet34 [15] is pretrained on the ImageNet, while the rest are initialized with the MSRA method [14]. We implement our model using the prevalent pytorch-geometric [12] on the NVIDIA GeForce GTX 1080TI GPU. The Adam [20] with initial learning rate $10^{-4}$ is utilized to optimize the parameters with batch size of 8 for 200 epochs in total.
+
+Baseline Methods. We compare our model against previous networks that regress absolute camera poses in an end-to-end fashion. Both image-based [19, 17, 18, 25, 5, 46, 44, 42, 16, 4]) and sequence-based algorithms (VidLoc [9], MapNet [3], and LsG [50]) are considered.
+
+# 4.1. Dataset
+
+We conduct experiments on three public datasets with different scales and conditions including 7Scenes [34],
+
+| Method | Sequence |
| Chess 6m2 | Fire 2.5m2 | Heads 1m2 | Office 7.5m2 | Pumpkin 5m2 | Kitchen 18m2 | Stairs 7.5m2 | Avg |
| PoseNet15 [19] | 0.32m, 8.12° | 0.47m, 14.4° | 0.29m, 12.0° | 0.48m, 7.68° | 0.47m, 8.42° | 0.59m, 8.64° | 0.47m, 13.8° | 0.44m, 10.4° |
| PoseNet16 [17] | 0.37m, 7.24° | 0.43m, 13.7° | 0.31m, 12.0° | 0.48m, 8.04° | 0.61m, 7.08° | 0.58m, 7.54° | 0.48m, 13.1° | 0.47m, 9.81° |
| PoseNet17 [18] | 0.14m, 4.50° | 0.27m, 11.80° | 0.18m, 12.10° | 0.20m, 5.77° | 0.25m, 4.82° | 0.24m, 5.52° | 0.37m, 10.60° | 0.24m, 7.87° |
| PoseNet17 (geo) [18] | 0.13m, 4.48° | 0.27m, 11.30° | 0.17m, 13.00° | 0.19m, 5.55° | 0.26m, 4.75° | 0.23m, 5.35° | 0.35m, 12.40° | 0.23m, 8.12° |
| Hourglass [25] | 0.15m, 6.17° | 0.27m, 10.84° | 0.19m, 11.63° | 0.21m, 8.48° | 0.25m, 7.01° | 0.27m, 10.15° | 0.29m, 12.46° | 0.23m, 9.53° |
| LSTM-Pose [42] | 0.24m, 5.77° | 0.34m, 11.9° | 0.21m, 13.7° | 0.30m, 8.08° | 0.33m, 7.00° | 0.37m, 8.83° | 0.40m, 13.7° | 0.31m, 9.85° |
| ANNet [4] | 0.12m, 4.30° | 0.27m, 11.60° | 0.16m, 12.40° | 0.19m, 6.80° | 0.21m, 5.20° | 0.25m, 6.00° | 0.28m, 8.40° | 0.21m, 7.90° |
| BranchNet [46] | 0.18m, 5.17° | 0.34m, 8.99° | 0.20m, 14.15° | 0.30m, 7.05° | 0.27m, 5.10° | 0.33m, 7.40° | 0.38m, 10.26° | 0.29m, 8.30° |
| GPoseNet [5] | 0.20m, 7.11° | 0.38m, 12.3° | 0.21m, 13.8° | 0.28m, 8.83° | 0.37m, 6.94° | 0.35m, 8.15° | 0.37m, 12.5° | 0.31m, 9.95° |
| MLFBPpose [44] | 0.12m, 5.82° | 0.26m, 11.99° | 0.14m, 13.54° | 0.18m, 8.24° | 0.21m, 7.05° | 0.22m, 8.14° | 0.38m, 10.26° | 0.22m, 9.29° |
| Ours | 0.08m, 2.82° | 0.26m, 8.94° | 0.17m, 11.41° | 0.18m, 5.08° | 0.15m, 2.77° | 0.25m, 4.48° | 0.23m, 8.78° | 0.19m, 6.33° |
| VidLoc [9] | 0.18m, NA | 0.26m, NA | 0.14m, NA | 0.26m, NA | 0.36m, NA | 0.31m, NA | 0.26m, NA | 0.25m, NA |
| MapNet [3] | 0.08m, 3.25° | 0.27m, 11.69° | 0.18m, 13.25° | 0.17m, 5.15° | 0.22m, 4.02° | 0.23m, 4.93° | 0.30m, 12.08° | 0.21m, 7.77° |
| LsG [50] | 0.09m, 3.28° | 0.26m, 10.92° | 0.17m, 12.70° | 0.18m, 5.45° | 0.20m, 3.69° | 0.23m, 4.92° | 0.23m, 11.3° | 0.19m, 7.47° |
| Ours | 0.08m, 2.82° | 0.26m, 8.94° | 0.17m, 11.41° | 0.18m, 5.08° | 0.15m, 2.77° | 0.25m, 4.48° | 0.23m, 8.78° | <0.19m, 6.33° |
+
+Table 1: Median errors of image- and sequence-based methods on the 7Scenes dataset [34]. The best results are highlighted.
+
+| Method | College
+5.6 × 103m2 | Shop
+8.8 × 103m2 | Church
+4.8 × 103m2 | Sequence
+Hospital
+2.0 × 103m2 | Avg | Court
+8 × 103m2 | Street
+5.0 × 103m2 |
| ADPoseNet [16] | 1.30m, 1.67° | 1.22m, 6.7° | 2.28m, 4.80° | - | 1.60m, 4.21° | - | - |
| PoseNet15 [19] | 1.66m, 4.86° | 1.41m, 7.18° | 2.45m, 7.96° | 2.62m, 4.90° | 2.04m, 6.23° | - | - |
| PoseNet16 [17] | 1.74m, 4.06° | 1.25m, 7.54° | 2.11m, 8.38° | 2.57m, 5.14° | 1.92m, 6.28° | - | - |
| LSTM-Pose [42] | 0.99m, 3.65° | 1.18m, 7.44° | 1.52m, 6.68° | 1.51m, 4.29° | 1.30m, 5.52° | - | - |
| GPoseNet [5] | 1.61m, 2.29° | 1.14m, 5.73° | 2.93m, 6.46° | 2.62m, 3.89° | 2.08m, 4.59° | - | - |
| SVS-Pose [27] | 1.06m, 2.81° | 0.63m, 5.73° | 2.11m, 8.11° | 1.50m, 4.03° | 1.33m, 5.17° | - | - |
| MLFBPPose [44] | 0.76m, 1.72° | 0.75m, 5.10° | 1.29m, 5.01° | 1.99m, 2.85° | 1.20m, 3.67° | - | - |
| PoseNet17 [18] | 0.99m, 1.06° | 1.05m, 3.97° | 1.49m, 3.43° | 2.17m, 2.94° | 1.43m, 2.85° | 7.00m, 3.65° | 20.70m, 25.70° |
| PoseNet17 (geo) [18] | 0.88m, 1.04° | 0.88m, 3.78° | 1.57m, 3.32° | 3.20m, 3.29° | 1.63m, 2.86° | 6.83m, 3.47° | 20.30m, 25.50° |
| MapNet [3] | 1.07m, 1.89° | 1.49m, 4.22° | 2.00m, 4.53° | 1.94m, 3.91° | 1.63m, 3.64° | 7.85m, 3.76° | 22.23m, 27.55° |
| Ours | 0.59m, 0.65° | 0.50m, 2.87° | 1.90m, 3.29° | 1.88m, 2.78° | 1.12m, 2.40° | 6.67m, 2.79° | 14.72m, 22.44° |
+
+Table 2: Median errors on the Cambridge dataset [19]. Results of MapNet [3] on College, Shop, Church, and Hospital are from [31] and others are from retrained model. ${}^{\prime \prime } - {}^{\prime \prime }$ denotes no data provided. The best results are highlighted.
+
+Cambridge [19], and Oxford RobotCar [24] datasets.
+
+7Scenes. The 7Scenes dataset [34] was recorded continuously by a Kinect in seven different indoor environments. It contains scenes with highly repetitive textures (Chess and Stairs) and many textureless regions (Fire and Pumpkin), and thus is very challenging for relocalization algorithms.
+
+Cambridge. The Cambridge dataset [19] was captured by a mobile phone in urban environments. Dynamic objects, various illumination and weather conditions, and distinct walking paths between training and testing sequences make the dataset more difficult for relocalization methods.
+
+Oxford RobotCar. The Oxford RobotCar dataset was collected by a car driving in the central Oxford city. It contains much longer trajectories (from $1 \times 10^{3}m$ to $9 \times 10^{3}m$ ) and larger areas (from $8 \times 10^{4}m^{2}$ to $1 \times 10^{6}m^{2}$ ) than 7Scenes and Cambridge benchmarks, and hence is extremely challenging for relocalization algorithms. Additionally, this dataset consists of images captured under vari-
+
+ous illuminations, weather conditions, and dynamic objects, which may further increase the relocalization difficulties. We follow the train/test split in [3, 50] and evaluate the performance of our approach on the LOOP and FULL scenes.
+
+# 4.2. Experiments on the 7Scenes Dataset
+
+Table 1 shows the quantitative results of our method and previous image- and sequence-based approaches. It can be seen that our model outperforms PoseNet [19] and its variations [17, 18, 25, 42] considerably in terms of both position and orientation prediction, especially in scenes with texture-less regions (Fire and Pumpkin) and highly repetitive textures (Chess and Stairs). That is because estimating poses from single images suffers severely from visual ambiguities resulting from texture-less regions and highly repetitive textures. These problems can be effectively mitigated by exploiting correlations of multiple frames.
+
+Additionally, we can find that our model performs much
+
+| Method | Scene |
| LOOP1 8.8 × 104m2 | LOOP2 8.8 × 104m2 | FULL1 1.2 × 106m2 | FULL2 1.2 × 106m2 | Avg |
| PoseNet [18, 19, 17] | 28.81m, 19.62° | 25.29m, 17.45° | 125.6m, 27.1° | 131.06m, 26.05° | 77.85m, 22.56° |
| MapNet [3] | 8.76m, 3.46° | 9.84m, 3.96° | 41.40m, 12.50° | 59.30m, 14.81° | 29.83m, 8.68° |
| LsG [50] | 9.07m, 3.31° | 9.19m, 3.53° | 31.65m, 4.51° | 53.45m, 8.60° | 25.84m, 4.99° |
| Ours | 7.76m, 2.54° | 8.15m, 2.57° | 17.35m, 3.47° | 37.81m, 7.55° | 17.77m, 4.03° |
| Ours (s) | 23.43m, 9.75° | 24.65m, 10.55° | 34.47m, 4.07° | 58.16m, 9.73° | 35.18m, 8.53° |
| Ours (l4) | 10.60m, 4.54° | 10.77m, 4.12° | 20.26m, 4.78° | 39.57m, 8.05° | 20.30m, 5.37° |
| Ours (l4+p.g.) | 9.07m, 3.15° | 9.16m, 3.22° | 19.70m, 4.46° | 39.83m, 8.17° | 19.44m, 4.75° |
| Ours (l4,3+p.g.) | 8.49m, 3.11° | 8.62m, 3.19° | 18.76m, 4.35° | 38.76m, 9.41° | 18.66m, 5.02° |
| Ours (l4,3,2+p.g.) | 8.46m, 3.02° | 7.68m, 2.78° | 17.35m, 3.59° | 36.84m, 8.22° | 17.58m, 4.40° |
| Ours (l4,3,2,1+p.g.) | 7.76m, 2.54° | 8.15m, 2.57° | 17.35m, 3.47° | 37.81m, 7.55° | 17.77m, 4.03° |
+
+Table 3: Mean errors on the Oxford RobotCar dataset [24]. Ours (s) is the network using standard GNNs. $l_{i}$ and $p.g.$ denote the model using the ith level GNN block (see Fig. 4) with pose graph as additional constraint. The best results are highlighted.
+
+better than sequence-based methods including VidLoc [9], MapNet [3], and LsG [50] in orientation estimation. The improvement comes from the adequate message passing among multiple images via the graph modeling. Recovered trajectories can be found in our Supplementary Materials.
+
+# 4.3. Experiments on the Cambridge Dataset
+
+Covering large regions of outdoor scenes, the Cambridge dataset [19] validates the potential of our method in handling large-scale challenging conditions. As VidLoc and LsG didn't report results on this dataset, we compare our approach with image-based methods and MapNet. As shown in Table 2, our model outperforms previous networks consistently with large margins. Note that the improvement gets progressively larger as the size of the scene increases (College, Shop, Court, and Street).
+
+# 4.4. Experiments on the RobotCar Dataset
+
+Table 3 demonstrates the quantitative comparison between previous methods and our model. Both position and orientation errors are considerably reduced by the proposed graph-based relocalization system. As the FULL1-2 sequences contain an area of $1.2 \times 10^{6}m^{2}$ with the length of trajectories up to $9562m$ , these sequences are extremely challenging for relocalization algorithms. From Table 3 we can see that our framework is more effective in handling these challenges than other methods.
+
+Fig. 5 illustrates the trajectories recovered by PoseNet [19, 17, 18], MapNet [3], LsG [50], and our method. PoseNet produces inaccurate estimations with lots of outliers due to local similarities and over-exposure. MapNet yields more accurate results and reduces many outliers by introducing relative poses between consecutive frames as additional constraints. However, there still exist a large number of unstable predictions, especially in
+
+the FULL scenes. By employing content augmentation, although LsG ameliorates this problem to a certain extent, it scarifies the accuracy. In contrast, our approach reduces the number of outliers more effectively than LsG and guarantees the accuracy at the same time. This improvement can be seen in both LOOP and FULL sequences.
+
+We additionally calculate the cumulative distribution errors to further compare the performance regarding both position and orientation estimation in Fig. 6. Fig. 6b and 6d show that our method outperforms PoseNet, MapNet, and LsG in orientation estimation consistently in both the LOOP and FULL sequences. Fig. 6a and 6c further verify the efficacy of our model for retaining the accuracy and reducing the number of outliers. Besides, the two figures also reveal the limitations of MapNet and LsG in dealing with hard and simple cases, respectively. Fortunately, both of these two cases can be effectively handled by our approach.
+
+# 4.5. Ablation Study
+
+We conduct an ablation study to validate the effectiveness of redesigned GNN, multi-scale modeling, and the graph-based loss function. As shown in Table 3, compared with PoseNet [19, 17, 18], standard GNN (Ours (s)) can boost the performance by exchanging information among different views, while the redefined GNN can yield more accurate results by sharing knowledge in the formulation of 3D tensors (Ours $(l_4)$ ), which can be further improved by the pose graph (Ours $(l_4 + p.g.)$ ).
+
+From Table 3, we can see that even our network with only a single level of GNN block (Ours $(l_4 + p.g.)$ ) outperforms PoseNet [19, 17, 18], MapNet [3], and LsG [50] considerably, especially in larger environments (Full1-2). The improvement on position is much more significant than orientation because the Oxford RobotCar dataset was collected by moving cars, and its rotation patterns are relatively sim
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+PoseNet [19, 17, 18]
+
+
+MapNet [3]
+
+
+LsG [50]
+
+
+Ours
+
+
+Figure 5: Trajectories of PoseNet, MapNet, LsG, and our model on the LOOP1 (top), LOOP2 (middle), and FULL1 scenes (bottom) of the Oxford RobotCar dataset [24] The red and black lines indicate predicted and ground truth poses, respectively.
+(a) Translation error on LOOP.
+Figure 6: Cumulative distributions of the mean position and orientation errors of PoseNet, MapNet, LsG, and our method on the Oxford RobotCar LOOP and FULL scenes. X-axis and y-axis denote the error and the percentage of frames, respectively.
+
+
+(b) Rotation error on LOOP.
+
+
+(c) Translation error on FULL.
+
+
+(d) Rotation error on FULL.
+
+ple than those captured by handheld cameras (7Scenes and Cambridge datasets). Both orientation and position errors are reduced progressively by incorporating multiple GNN blocks for information propagation.
+
+# 5. Conclusion
+
+In this paper, we propose to estimate the absolute camera poses from multiple images. In contrast to previous works which rely heavily on the temporal consistency, we construct a view graph to exploit the dependency among multiple frames and leverage GNNs for graph modeling. Rather
+
+than adopting the regular GNNs with brute-force, we redefine the nodes and edges and redesign the embedded functions for message passing and node updating to fit the relocalization task. Moreover, we take full advantages of CNNs and GNNs in feature extraction and knowledge propagation respectively to process high-dimensional image features at multiple levels. Finally, we employ a graph-based loss function to train our model in an end-to-end fashion. We conduct extensive experiments on the 7Scenes, Cambridge, and Oxford RobotCar datasets. Results demonstrate that our approach outperforms previous methods, especially in large-scale and challenging scenarios.
+
+# References
+
+[1] Relja Arandjelovic, Petr Gronat, Akihiko Torii, Tomas Pa-jdla, and Josef Sivic. NetVLAD: CNN architecture for Weakly Supervised Place Recognition. In CVPR, 2016.
+[2] Vassileios Balntas, Shuda Li, and Victor Prisacariu. RelocNet: Continuous Metric Learning Relocalisation using Neural Nets. In ECCV, 2018.
+[3] Samarth Brahmbhatt, Jinwei Gu, Kihwan Kim, James Hays, and Jan Kautz. MapNet: Geometry-aware Learning of Maps for Camera Localization. In CVPR, 2018.
+[4] Mai Bui, Christoph Baur, Nassir Navab, Slobodan Ilic, and Shadi Albarqouni. Adversarial Networks for Camera Pose Regression and Refinement. In ICCV Workshops, 2019.
+[5] Ming Cai, Chunhua Shen, and Ian Reid. A Hybrid Probabilistic Model for Camera Relocalization. In BMVC, 2018.
+[6] Yujun Cai, Liuhao Ge, Jun Liu, Jianfei Cai, Tat-Jen Cham, Junsong Yuan, and Nadia Magnenat Thalmann. Exploiting Spatial-Temporal Relationships for 3D Pose Estimation via Graph Convolutional Networks. In ICCV, 2019.
+[7] Giuseppe Calafiore, Luca Carlone, and Frank Dellaert. Pose Graph Optimization in the Complex Domain: Lagrangian Duality, Conditions for Zero Duality Gap, and Optimal Solutions. T-RO, 2016.
+[8] Federico Camposeco, Torsten Sattler, Andrea Cohen, Andreas Geiger, and Marc Pollefeys. Toroidal Constraints for Two-point Localization under High Outlier Ratios. In CVPR, 2017.
+[9] Ronald Clark, Sen Wang, Andrew Markham, Niki Trigoni, and Hongkai Wen. Vidloc: A Deep Spatio-temporal Model for 6-DOF Video-clip Relocalization. In CVPR, 2017.
+[10] Mingyu Ding, Zhe Wang, Jiankai Sun, Jianping Shi, and Ping Luo. CamNet: Coarse-to-Fine Retrieval for Camera Re-Localization. In ICCV, 2019.
+[11] Jakob Engel, Vladlen Koltun, and Daniel Cremers. Direct Sparse Odometry. TPAMI, 2018.
+[12] Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop, 2019.
+[13] Hongyang Gao and Shuiwang Ji. Graph U-Nets. In ICML, 2019.
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving Deep into Rectifiers: Surpassing Human-level Performance on Imagenet Classification. In ICCV, 2015.
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In CVPR, 2016.
+[16] Zhaoyang Huang, Yan Xu, Jianping Shi, Xiaowei Zhou, Hujun Bao, and Guofeng Zhang. Prior Guided Dropout for Robust Visual Localization in Dynamic Environments. In ICCV, 2019.
+[17] Alex Kendall and Roberto Cipolla. Modelling Uncertainty in Deep Learning for Camera Relocalization. In ICRA, 2016.
+[18] Alex Kendall and Roberto Cipolla. Geometric Loss Functions for Camera Pose Regression with Deep Learning. In CVPR, 2017.
+[19] Alex Kendall, Matthew Grimes, and Roberto Cipolla. PoseNet: A Convolutional Network for Real-time 6-DoF Camera Relocalization. In ICCV, 2015.
+
+[20] Diederik P Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In ICLR, 2015.
+[21] Zakaria Laskar, Iaroslav Melekhov, Surya Kalia, and Juho Kannala. Camera Relocalization by Computing Pairwise Relative Poses using Convolutional Neural Network. In ICCV, 2017.
+[22] Guohao Li, Matthias Müller, Ali Thabet, and Bernard Ghanem. Can GCNs Go as Deep as CNNs? In ICCV, 2019.
+[23] Liu Liu, Hongdong Li, and Yuchao Dai. Efficient Global 2D-3D Matching for Camera Localization in a Large-scale 3D Map. In ICCV, 2017.
+[24] Will Maddern, Geoff Pascoe, Chris Linegar, and Paul Newman. 1 Year, 1000km: The Oxford RobotCar Dataset. *IJRR*, 2017.
+[25] Iaroslav Melekhov, Juha Ylioinas, Juho Kannala, and Esa Rahtu. Image-based Localization Using Hourglass Networks. In ICCV Workshops, 2017.
+[26] Raul Mur-Artal and Juan D Tardós. ORB-SLAM2: An Open-source SLAM System for Monocular, Stereo, and RGB-D Cameras. T-RO, 2017.
+[27] Tayyab Naseer and Wolfram Burgard. Deep Regression for Monocular Camera-based 6-DoF Global Localization in Outdoor Environments. In IROS, 2017.
+[28] Noha Radwan, Abhinav Valada, and Wolfram Burgard. Vlocnet++: Deep Multitask Learning for Semantic Visual Localization and Odometry. RA-L, 2018.
+[29] Torsten Sattler, Michal Havlena, Konrad Schindler, and Marc Pollefeys. Large-scale Location Recognition and the Geometric Burstiness Problem. In CVPR, 2016.
+[30] Torsten Sattler, Bastian Leibe, and Leif Kobbelt. Efficient & Effective Prioritized Matching for Large-scale Image-based Localization. TPAMI, 2017.
+[31] Torsten Sattler, Qunjie Zhou, Marc Pollefeys, and Laura Leal-Taixe. Understanding the Limitations of CNN-based Absolute Camera Pose Regression. In CVPR, 2019.
+[32] Johannes Lutz Schonberger and Jan-Michael Frahm. Structure-from-Motion Revisited. In CVPR, 2016.
+[33] Mike Schuster and Kuldip K Paliwal. Bidirectional Recurrent Neural Networks. TSP, 1997.
+[34] Jamie Shotton, Ben Glocker, Christopher Zach, Shahram Izadi, Antonio Criminisi, and Andrew Fitzgibbon. Scene Coordinate Regression Forests for Camera Relocalization in RGB-D Images. In CVPR, 2013.
+[35] Pablo Speciale, Johannes L. Schonberger, Sudipta N. Sinha, and Marc Pollefeys. Privacy Preserving Image Queries for Camera Localization. In ICCV, 2019.
+[36] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end Memory Networks. In NIPS, 2015.
+[37] Hajime Taira, Masatoshi Okutomi, Torsten Sattler, Mircea Cimpoi, Marc Pollefeys, Josef Sivic, Tomas Pajdla, and Akihiko Torii. InLoc: Indoor Visual Localization with Dense Matching and View Synthesis. In CVPR, 2018.
+[38] Carl Toft, Erik Stenberg, Lars Hammarstrand, Lucas Brynte, Marc Pollefeys, Torsten Sattler, and Fredrik Kahl. Semantic Match Consistency for Long-term Visual Localization. In ECCV, 2018.
+
+[39] Akihiko Torii, Relja Arandjelovic, Josef Sivic, Masatoshi Okutomi, and Tomas Pajdla. 24/7 Place Recognition by View Synthesis. In CVPR, 2015.
+[40] Abhinav Valada, Noha Radwan, and Wolfram Burgard. Deep Auxiliary Learning for Visual Localization and Odometry. In ICRA, 2018.
+[41] Petar Velicković, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon Hjelm. Deep Graph Infomax. In ICLR, 2019.
+[42] Florian Walch, Caner Hazirbas, Laura Leal-Taixe, Torsten Sattler, Sebastian Hilsenbeck, and Daniel Cremers. Image-based Localization Using LSTMs for Structured Feature Correlation. In ICCV, 2017.
+[43] Wenguan Wang, Xiankai Lu, Jianbing Shen, David J. Crandall, and Ling Shao. Zero-Shot Video Object Segmentation via Attentive Graph Neural Networks. In ICCV, 2019.
+[44] Xin Wang, Xiang Wang, Chen Wang, Xiao Bai, Jing Wu, and Edwin R Hancock. Discriminative Features Matter: Multilayer Bilinear Pooling for Camera Localization. In BMVC, 2019.
+[45] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic Graph CNN for Learning on Point Clouds. ACM TOG, 2019.
+[46] Jian Wu, Liwei Ma, and Xiaolin Hu. Delving Deeper into Convolutional Neural Networks for Camera Relocalization. In ICRA, 2017.
+[47] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A Comprehensive Survey on Graph Neural Networks. arXiv preprint arXiv:1901.00596, 2019.
+[48] Fei Xue, Qiuyuan Wang, Xin Wang, Wei Dong, Junqiu Wang, and Hongbin Zha. Guided Feature Selection for Deep Visual Odometry. In ACCV, 2018.
+[49] Fei Xue, Xin Wang, Shunkai Li, Qiuyuan Wang, Junqiu Wang, and Hongbin Zha. Beyond Tracking: Selecting Memory and Refining Poses for Deep Visual Odometry. In CVPR, 2019.
+[50] Fei Xue, Xin Wang, Zike Yan, Qiuyuan Wang, Junqiu Wang, and Hongbin Zha. Local Supports Global: Deep Camera Relocalization with Sequence Enhancement. In ICCV, 2019.
+[51] Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An End-to-end Deep Learning Architecture for Graph Classification. In AAAI, 2018.
+[52] Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph Neural Networks: A Review of Methods and Applications. arXiv preprint arXiv:1812.08434, 2018.
+[53] Yang Zhou, Zachary While, and Evangelos Kalogerakis. SceneGraphNet: Neural Message Passing for 3D Indoor Scene Augmentation. In ICCV, 2019.
\ No newline at end of file
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/images.zip b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..442a1058650074e92fbdcdfe524c3504e37c1f59
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:48eb53c1e1e9a2a85bb1906632bd14b991f412e96a89b3befa1004468a13d6aa
+size 882853
diff --git a/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/layout.json b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6149d3a8a43aa3016824e905121e57ff967220fe
--- /dev/null
+++ b/learningmultiviewcamerarelocalizationwithgraphneuralnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12bab5f33d1427412d665100606272ceaa016775784402b8173a044590885a1c
+size 425433
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_content_list.json b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0434167386d3d93ec8f22e560c4ca9ec2b372469
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1db3690dd308f1c293a649cb4c600a42910b5304417cad7d4f3d86cce5b2dd56
+size 72137
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_model.json b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c28f91a1621ab1dd0d2e96b04f7c36f4c2290a9b
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a8c6b39582fbc59a8346767be25dab6fbf5e0759385d1f42d05c294da33b849
+size 93927
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_origin.pdf b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..70eda150fa632073de7fce060221f228a592ecc2
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/b49a8236-a95b-4af4-b4fd-60732579a96c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67498fc0277f43c01d05576def3fd553ef76a9f34ad3aaf4ca198f92fef71635
+size 1554134
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/full.md b/learningnanoscalemotionpatternsofvesiclesinlivingcells/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..35cfe09b18e6e01ba5b2101b2ff8163618572dd7
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/full.md
@@ -0,0 +1,283 @@
+# Learning nanoscale motion patterns of vesicles in living cells
+
+Arif Ahmed Sekh1 Ida Sundvor Opstad1 Åsa Birna Birgisdottir1,2 Truls Myrmel1,2 Balpreet Singh Ahluwalia1 Krishna Agarwal1 Dilip K. Prasad1*
+1IiT The Arctic University of Norway, Tromsø, Norway
+2 University Hospital of North Norway, Tromsø, Norway
+*dlip.prasad@uit.no
+
+# Abstract
+
+Detecting and analyzing nanoscale motion patterns of vesicles, smaller than the microscope resolution ( $\sim 250 \, \text{nm}$ ), inside living biological cells is a challenging problem. State-of-the-art CV approaches based on detection, tracking, optical flow or deep learning perform poorly on this problem. We propose an integrative approach built upon physics-based simulations, nanoscopy algorithms and shallow residual attention network to permit for the first time analysis of sub-resolution motion patterns in vesicles, also of sub-resolution diameter. Our results show state-of-the-art performance, $89\%$ validation accuracy on simulated dataset and $82\%$ testing accuracy on an experimental dataset of images of living heart muscle cells grown under three different pathophysiologically relevant conditions. We demonstrate automated analysis of the motion states and changes in them for over 9000 vesicles. Such analysis will enable large scale biological studies of vesicle transport and interactions in living cells in the future.
+
+# 1. Introduction
+
+Microscopy images and videos are the only visual windows to the life in biological cells. The life events in a cell are orchestrated by a variety of organelles, such as nanoscale vesicles (30 nm to $\sim 1\mu \mathrm{m}$ ). The vesicles perform their tasks by undergoing diverse motions in the scale of tens of nanometers to a few micrometers and interacting with other sub-cellular structures. The analysis of dynamic behaviour of vesicles may hold key to understanding and treating diverse neurological and immunological disorders [21, 27, 35]. However, learning about their motion patterns from microscopy videos of vesicles inside living cells is an imposing task, both visually and through computer vision (CV), for multiple reasons presented next:
+
+- Optical and digital resolutions - The digital resolution (effective pixel size) of the most advanced live-cell compatible fluorescence microscopes are limited to $\sim 100$ nm and their optical resolution (smallest resolvable feature
+
+
+Figure 1. Our integrative approach of experiments, physics, nanoscopy, and computer vision allows analysis of nanoscale motion patterns of vesicles inside living cells.
+
+size) is $\sim 250\mathrm{nm}$ . As a consequence, the structures as well as the motion patterns of nanometer scale ( $< 250\mathrm{nm}$ ) are not discernible by the microscopes, unless super-resolution microscopy (i.e. nanoscopy) approaches are employed.
+
+- Noise - As compared to conventional imaging and videography, fluorescence microscopy deals with light of the order of a few photons per pixel. The shot noise and the dark noise of the camera often make the measurements significantly noisy. This has further negative effect on identification of motion patterns from microscopy videos.
+- Lack of data - Live-cell experiments are not quite repeatable. Small variations in cell culture and imaging processes introduce differences in cell behaviour. Further, the age of the cells and the number of times of cell culture result in variations in the frequencies of normative life-events. Moreover, generating ground truth for such data is practically impossible. Therefore, generating large, controlled, statistically consistent, and suitably annotated
+
+dataset for machine learning is quite challenging.
+
+- Number of vesicles and variety of motions - A single living cell can easily contains a few hundred vesicles within the focal region of the microscope. Their diameters have a large range (30 nm to $\sim 1\mu \mathrm{m}$ ) and motion patterns have a large variety and complexity. Designing a method that caters to such diversity is challenging.
+
+We present an integrative approach of physics-based nanoscopy-integrated artificial intelligence for learning motion patterns of vesicles in the biological system under consideration (see Fig. 1). Our approach addresses the aforementioned problems using four key propositions.
+
+- The complex motion patterns of individual vesicles are broken down into piece-wise simple patterns. Small spatio-temporal regions of interest (ROIs), each potentially containing a simple motion pattern of a single vesicle are identified using a combination of localization nanoscopy and particle tracking.
+
+- Vesicles' nanoscale motion patterns smaller than the microscope resolution are reconstructed using a motion-preserving live-cell compatible nanoscopy algorithm.
+
+- Sufficiently large annotated dataset for CV is created synthetically for diverse simple motion patterns of vesicles with a wide range of diameters using a physics-based simulation approach which emulates physical motion, fluorescence photo-kinetics, optical properties of the microscope, as well as noise. This is significantly more advanced than the previous state-of-the-art simulated vesicles' dataset [8], as discussed in the supplementary.
+
+- A shallow residual attention network is used for learning the relatively small information content (the type of motion pattern) from a large motion-encoded nanoscopy image (hundreds of thousands of pixels for every vesicle).
+
+We show that our approach provides significantly better results than the state-of-the-art spatio-temporal CV approaches on true microscopy videos of vesicles in heart muscle cells (cardiomyoblasts). We demonstrate that the motion patterns can be analyzed and that meaningful analytics can be derived using our approach. This analysis and the corresponding datasets is the first such contribution to the family of CV for microscopy-related research problems.
+
+# 2. Related work
+
+We note two separate bodies of related work. The first one pertains to the microscopy community, which is increasingly adopting CV for a variety of tasks. The second one pertains to analogous problems in CV where motion patterns of individual entities are learnt. We discuss also how our approach bridges the gaps between them.
+
+CV in microscopy: Advances in microscopes and computational hardware are expanding the possibilities for live-cell image analysis, which is of importance to research in biology. Deep neural networks [50, 55] are used for
+
+tracking of cells or simulated particles. Detection based tracking [49] and feature tracking [36, 40] were successfully applied in cell migration analysis [26]. For vesicles larger than the microscope resolution, tracking and activity analysis of vesicles have been performed using single-particle tracking [8, 38, 45, 51]. Zhao et al. [58] proposed an analysis of large scale and collective motion of lysosomes (a type of vesicles) by tracking. Feature tracking works fine when particles move continuously and the signal-to-noise ratio (SNR) is high. Detection based tracking performs well when the object being tracked is a few times larger than the microscope resolution. Neither condition is satisfied in our problem. Recurrent neural networks have been used to classify spatio-temporal events [34]. Optical flow guided event detection has been applied in live-cell analysis [10]. These methods reflect promising results regarding temporal activity analysis from microscopy videos of live-cells. However, they inherently assume that the structures and motion patterns are larger than the microscope resolution.
+
+Motion pattern analysis in computer vision: Video analysis for understanding crowd patterns [39], monitoring traffic [46], and event detection [18] are gaining popularity. They are equivalent to collective motion pattern analysis [58], single-particle tracking [38, 45], and interaction detection [51], respectively. Alexander et al. [3] introduced a computational sensor for 3D velocity measurement using a per-pixel linear constraint composed of spatial and temporal image derivatives. The challenges are however different when the sub-resolution nanoscale motion patterns in the presence of significant noise have to be investigated. Recently, micro-motion analysis [6, 13] has been proposed to extract small motion from videos that can not be observed with the naked eye. The method has been applied for extraction of micro expressions [24]. We found that these methods are sensitive to noise and therefore have limited applicability in our problem. Kim et al. [22] proposed a method for classifying human-car activity using simulated data for training. This is analogous to our approach of physics-based simulations for training. Baradel et al. [4] proposed a framework for causal learning of dynamics in mechanical systems from visual input. This is roughly analogous to our investigation of transition of vesicles from one simple motion state to another.
+
+Gaps bridged by our work: The main challenge of identifying nanoscale motion patterns is solved by selecting a motion-preserving nanoscopy algorithm, namely multiple signal classification algorithm (MUSICAL) [1], for performing optical and digital super-resolution for live-cell imaging. Through this, we introduce live-cell compatible nanoscopy algorithms [1, 9, 12, 42] as valuable tools for CV at the nanometer scale. Although analysing nanoscopy images using neural networks may help in various biological experiments, the application of state-of-the-art deep learn
+
+
+Figure 2. Overview of the proposed framework. Scale bars: $5\mu \mathrm{m}$ horizontal, $500\mathrm{nm}$ vertical. F indicates frame number hereon.
+
+ing methods for nanoscopy image analysis is limited. This, we opine, is due to 1) limited availability of annotated large datasets, and 2) presence of fewer features in nanoscopy images compared to the real-world camera images. The first problem is solved in our case by employing a rigorous physics-based simulation framework which emulates both the dynamic organelles and the presence of noise in the experiments. All details of the physics-based simulations are included in the supplementary. For problems in biology where ground truth on experimental data is nearly impossible, such approaches will be indispensable for developing CV solutions. Such approach will also find value in other ground-truth deficient applications such as astronomy, geology and climate if suitable physics-based simulation frameworks of sufficient detail can be developed. The second problem is solved by using a shallow residual attention network. The features exploited in state-of-the-art deep models based CV, namely textures, edges, and colors, are missing in the microscopy data. Moreover, the dynamic range of intensity is quite small in microscopy images and the noise is comparable to the signal. The microscopy images contain only few features encoded mainly in intensity variations. Due to these reasons, we expect shallow networks to perform better than deep models. This introduces a valuable CV tool to the microscopy community, which currently depends heavily on visual inspection.
+
+# 3. Method
+
+The proposed methodology is shown in Fig. 2. It consists of four modules: (1) physics-based simulations for creating training dataset, (2) MUSICAL for nanoscale motion reconstruction, (3) spatio-temporal ROI detection using localization based tracking, and (4) classification of motion patterns. We discuss each module next.
+
+# 3.1. Physics-based simulations
+
+Our simulation flowchart is shown in Fig. 3(a). We first simulate a vesicle labeled with several fluorescent molecules. The diameters of the simulated vesicles is in the range [150, 400] nm. The fluorescent molecules are randomly placed inside the volume of the vesicle. The number of photons emitted by each molecule are simulated using the photokinetic model of [1]. Code provided by its authors used for this. It includes blinking, bleaching, and non-radiative energy dissipation of fluorescent molecules [9]. It has been reported that the vesicles may demonstrate random movement in a confined space [2], directed flow-like motion [7], circular motion [32], and sometimes they become stationary during interaction with other organelles [14]. Inspired by the biological evidence, we have simulated five types of vesicular motion patterns (also called motion states) in 2D, described below:
+
+- Circular Motion (Circ): The vesicle moves along the periphery of a virtual circle with randomly selected center, radius, and velocity. The radius of the circle and the velocity of the vesicle are in the ranges [200, 500] nm and [0, 500] nm/frame, respectively.
+- Random walk inside a circle (RCir): The vesicle takes random positions within a circular area. The radius of the circle is chosen randomly from the range [200, 400] nm.
+- Flow (Flow): The vesicle moves along a path with a constant velocity. First, a random curve is generated. Next, the vesicle is transported along the curve with velocity selected randomly from the range [0, 1000] nm/frame.
+- Random walk (RanW): During a random walk, the vesicle may move in any direction with equal probability. For each movement, the velocity is randomly selected from the range $(0,1000]$ nm/frame.
+- Stationary (Stat): The vesicle remains stationary.
+
+
+
+
+Figure 3. Physics-based simulation framework. (a) The flow chart and its illustration using an example of a vesicle of diameter 200 nm. (b) A visual comparison of a few randomly selected examples of the chosen motion patterns. Scale bar: $500~\mathrm{nm}$ .
+
+
+Figure 4. MUSICAL preserves spatio-temporal features in images using eigenimages (block B) and reconstructs the nanoscale patterns by projecting microscope's PSF from a nanoscale sample grid onto the signal and noise subspaces (block C).
+
+We note that our library of motion patterns is not exhaustive. It is expandable to include other patterns in the future. After forming the coordinate list of all the fluorescent molecules at all the time points, we compute the raw noise-free microscopy video by emulating the point spread function (PSF) [31] using the optical parameters relevant to the molecules, the microscope, and the imaging conditions. Then, the noise characteristics of the camera are incorporated [44]. All the details are included in the supplementary. We show an example of simulation below the block diagram presented in Fig. 3(a). We also illustrate examples of simulated motion patterns reconstructed using MUSICAL as compared to similar reconstructions from the experimental live-cell data in Fig. 3(b).
+
+# 3.2. MUSICAL
+
+The function of MUSICAL [1] is explained in two parts, namely eigenimages and identifying nanoscale patterns. Spatio-temporal features in eigenimages: For small optical windows (size given by the span of the microscope PSF), MUSICAL computes eigenimages from the microscopy video. The eigenimages order the spatiotemporal information from the most consistent ones to most random ones. The first few eigenimages with largest eigenvalues correspond to vesicle motion patterns (spanning the signal subspace) and the remaining correspond to noise patterns (spanning the noise subspace), see Fig. 4.
+
+Nanoscale pattern identification: Even if two points are separated by a distance below both the optical and the digital resolution, the PSFs at such points are slightly different from each other. Their projection onto the signal and noise subspaces are therefore different. Precisely, at a point in the sample space, the projection of the PSF onto every single eigenimage in the noise subspace is zero if two conditions are satisfied. First, the separation of signal and noise subspaces is robust. Second, a fluorescent molecule ever emitted fluorescence photons from that location during the video. The condition of zero projection on the noise subspace is violated at a point even slightly away from such a location. This property is mathematically enhanced in MUSICAL to reconstruct nanoscopy image with pronounced nanoscale features.
+
+# 3.3. Spatio-temporal ROI detection
+
+This step comprises of two tasks - detecting vesicles and linking the detections across frames (Fig. 5).
+
+Detection of vesicles: Localization nanoscopy [41] can localize individual fluorescent molecules by fitting Gaussian functions in microscopy images. This is possible only if extreme spatio-temporal sparsity in fluorescence emissions is enforced, which is not possible while imaging living cells. Nonetheless, the nearly spherical geometry of vesicles implies that their image can also be roughly approximated as a Gaussian function. Thus, we use localization nanoscopy in an unconventional setting for detecting vesicles in the microscopy videos. We have used quick-PALM [17] implementation for this purpose.
+
+Linking the detections and creating sub ROIs: The detected vesicles are linked using Hungarian method and Kalman filter [5] to construct their trajectories. Let a given live-cell sequence contain $n$ number of tracks as: $\{T_1, T_2, \dots, T_n\}$ . Each track is defined by series of positions of the vesicle over time, i.e. $\{p_1, p_2, \dots, p_m\}$ , where $p_i = (x_i, y_i)$ . For each track, a set of sequential non-overlapping sub ROIs is created such that each sub ROI contains $\hat{K}$ continuous positions of the particle. The key idea behind using sub ROIs is that each sub ROI is likely to contain one simple motion pattern, potentially among Circ, RCir, Flow,
+
+
+Figure 5. ROI detection using localization based tracking.
+
+
+Figure 6. Architecture of the shallow residual attention network.
+
+RanW, and Stat. The number $\hat{K}$ can either be selected for the chosen biological cell type and image acquisition rate heuristically or more sophisticated automatic sub ROI selection may be designed, which is out of the scope of the current work. We have heuristically selected $\hat{K} = 200$ .
+
+# 3.4. Motion Classification
+
+The choice of the depth of the network depends on the task, image features, and class variation. Several biological classification tasks have been solved using shallow networks [11, 15, 33] due to the unavailability of large microscopy and nanoscopy datasets as well as fewer features in live-cell images compared to the real-world RGB images. We have observed that the state-of-the-art deep neural networks such as deep CNN [23], VGG16 [56], Inception [52], and ResNet50 [16] performed poorly in our dataset (results in section 4). Furthermore, the use of pretrained models did not improve the classification accuracy significantly. We found that comparatively shallow networks such as a 3-layered MLP, shallow CNN [28], and ResNet20 perform better on our data. The observations inspired us to design a shallow network for motion pattern classification.
+
+In the last few years, the use of residual connection among layers has proven its ability to improve accuracy in several computer vision tasks [16]. On the other hand, attention-based neural networks inspired by the human perception have become popular in various computer vision tasks. They employ attention mechanism [53] to identify and highlight useful features during learning. Recently, residual-attention mechanism [47] demonstrated state-of-the-art or comparable accuracy in certain computer vision tasks [20, 30, 57], and also serve as an inspiration for us.
+
+Shallow Residual Attention Network: We combine the concept of residual and attention mechanisms with a shal
+
+low neural network to propose a Shallow Residual Attention Network (SRAN). The network architecture is presented in Fig. 6. It consists of a set of initial pre-processing layers including a residual pre-processing block, an attention module, and a gated residual post-processing block connected to the classification layer. The attention module further consists of a residual attention block (also called trunk branch) and a soft mask branch. The trunk branch has a down-sample and an up-sample unit, for top-down and bottom-up attention mechanisms [47] respectively. The soft mask branch is a form of residual block. The outputs of the trunk and soft mask branches are combined using a controlled gate similar to long short-term memory. The attention module suppresses the noise and highlights important information by applying dot product between the residual attention features and soft masks learnt in the trunk branch and the soft mask branch respectively. The details of SRAN are given in the supplementary.
+
+# 4. Experimental results
+
+# 4.1. Dataset
+
+In order to evaluate the effectiveness of the proposed method, we use two datasets described below. We make both the datasets and supplementary public for research purposes at our project page1.
+
+Simulation dataset: This dataset is used for training and evaluation of the classifier. It contains 3000 data samples for each type of motion pattern. Each data sample is a small video of 200 frames corresponding to simulated microscopy images of $25 \times 25$ pixels of a single vesicle exhibiting a single motion pattern. The optical and camera parameters used for the simulation were based on the experimental setup used for creating live-cell dataset. The simulated noise was chosen such that the signal to noise ratio was similar to the videos in the live-cell dataset.
+
+Live-cell dataset: Cardiomyoblasts (heart muscle cells) were divided into 3 different pools and labelled using live-cell friendly fluorescent dye. The pools are: $\bullet$ Normal: These cells were kept under normal cell-culture conditions.
+
+- Hypoxia: These cells were subjected to hypoxia (deficiency of oxygen) for 1 hour. - HypoxiaADM: These cells were subjected to hypoxia like the cells above, but were simultaneously treated with the hormone adrenomedullin (ADM). This hormone is found to exhibit protective functions under pathological conditions like myocardial infarction (cardiac arrest).
+
+For each pool, 10 videos of 2000 frames each and 1024 $\times$ 1024 pixels were imaged using GE DeltaVision Elite fluorescent microscope. Other experimental details are provided in the supplementary. We counted the number of vesicles in the cells that were imaged in each pool. These
+
+Table 1. Multiple Object Tracking Accuracy [19] of different methods on live-cell dataset.
+
+| Condition | Feature Tracking [40] | Deep Tracking [49] | Proposed |
| Normal | 0.48 | 0.69 | 0.91 |
| Hypoxia | 0.39 | 0.62 | 0.93 |
| HypoxiaADM | 0.41 | 0.68 | 0.87 |
+
+Table 2. Classification accuracy of different neural networks using various input features. Format: Validation/Testing
+
+| Method | Raw Images | Micro Motion | Optical Flow |
| RNN [29] | 0.29 / 0.26 | 0.26 / 0.24 | 0.32 / 0.21 |
| BLSTM [25] | 0.32 / 0.21 | 0.27 / 0.18 | 0.36 / 0.24 |
| Con3D [54] | 0.28 / 0.26 | 0.22 / 0.22 | 0.46 / 0.39 |
+
+
+Figure 7. Feature representations of a vesicle in Circ state using different approaches for motion classification. In (d), each colour represents different direction quadrant. Scale bar: $500\mathrm{nm}$ .
+
+numbers are 3283 vesicles for normal, 3186 vesicles for hypoxia, and 2980 vesicles for hypoxiaADM. Thus, we performed activity analysis of experimental data of a total of 9449 vesicles. The motion patterns of sub ROIs of each vesicle were manually annotated for generating ground truth by visual inspection of raw image sequences and nanoscopy images reconstructed using MUSICAL. Live-cell dataset refers to all the data, except in section 4.5 4.4 where pool-specific results are presented.
+
+# 4.2. Vesicle Localization and Tracking
+
+We experimented with feature tracking [40], deep learning based tracking [43], and the proposed localization based tracking. In deep learning based tracking, the neural network was trained with the simulated dataset and tested on live-cell dataset. We evaluated the tracking performance using multiple object tracking accuracy (MOTA) [19] metric with manually generated ground truth, see results in Table 1. Feature based tracking method failed to distinguish between features and noise, therefore failing to track. Deep learning based tracking methods also perform poor due to noise and tiny size of the vesicles.
+
+# 4.3. Results of Motion Classification
+
+We conducted different experiments using a variety of spatio-temporal features and learning methods. We tried using raw image sequences, micro-motion magnified sequences [13], optical flow, and the trajectories constructed in the proposed ROI detection approach as the input for classification. Fig. 7 depicts a visual comparison of the different features extracted for a vesicle in Circ state. It can be observed from Fig. 7 that the naked eye can not detect the Circ pattern from either the raw image sequence or the micro-motion magnified sequence (example in the supplementary videos). The micro-motion magnified sequence contains larger noise compared to the raw image sequence. Due to high noise levels in the raw data, optical flow spans a larger area, therefore failing to detect the nanoscale motion. Localization nanoscopy can detect the vesicle but can not extract the trajectory of nanoscale movement accurately. We experimented using LSTM (baseline) and a deep CNN [48] using the detected trajectories as input and found the accuracy of (validation/testing) as (0.38/0.29) and (0.40/0.35) for LSTM and deep CNN, respectively. For the other features, namely raw image sequence, micromotion magnified sequence, and optical flow, we experimented using different baseline learning algorithms. For all the experiments, the simulation dataset is used for training and validation. Five-fold cross-validation is used. The live-cell dataset is used for testing. Parameters of all the baseline methods are set similar to the original implementations. We have included early stopping and data augmentation, and verified that no over-fitting exists (see the supplementary for training details, hyperparameters, and hyperparameter study). The classification accuracy is presented in Table 2. The results indicate that these features are not suitable for the classification of nanoscale movement.
+
+Next, we performed experiments to classify the motion patterns using the nanoscopy images obtained using MUSICAL as inputs. SRAN is trained and tested with a similar weight initialization method and residual blocks reported in [47]. We used 2-stage attention block (compared to a 3 stage attention block reported in [47]); training details are in the supplementary. It took 35 epochs to stabilize the learning (see Fig. 8). In the case of the baseline methods, we keep most of the settings same as the original implementations. The results are summarized in Table 3. It is observed that most shallow networks perform better compared to deep networks and SRAN performs the best. Fig. 8 presents the comparative epoch vs accuracy and loss of a deep residual attention network [47] (DRAN) and SRAN. It is seen that SRAN stabilizes and converges quicker and to a lower loss than the deep counterpart.
+
+Failure cases: Fig. 9 depicts the confusion matrix of SRAN for the live-cell dataset. Although the accuracy for each individual class is better than $70\%$ , we make some in
+
+Table 3. Classification accuracy of different methods using nanoscopy images. Format: Validation/Testing
+
+| Method | Pre-training | Accuracy |
| Deep CNN [23] | Imagenet | 0.32 / 0.29 |
| Deep CNN [23] | - | 0.36 / 0.31 |
| VGG16 [56] | Imagenet | 0.42 / 0.33 |
| VGG16 [56] | - | 0.33 / 0.33 |
| Attention Model [53] | - | 0.71 / 0.56 |
| Shallow Network [28] | - | 0.82/ 0.63 |
| ResNet50 [16] | - | 0.71/ 0.69 |
| ResNet20 [16] | - | 0.82/ 0.74 |
| MLP (Baysian Optimization) [37] | - | 0.72/ 0.68 |
| Inception V3 [52] | Imagenet | 0.46 / 0.36 |
| Inception V3 [52] | - | 0.43 / 0.29 |
| Deep residual attention [47] | - | 0.85/ 0.78 |
| Proposed SRAN | - | 0.89/ 0.82 |
+
+
+
+
+Figure 8. Accuracy & loss curves of DRAN and SRAN.
+
+teresting observations. The miss-classifications are generally among the classes where randomness at nanoscale is involved and therefore random patterns of two kinds may have significant overlap. In other cases, artefacts due to noise in the nanoscale reconstruction may be easily confused with an equivalent nanoscale random motion pattern. In yet other cases, more than one vesicles present may be present in close vicinity, resulting in multiple motion reconstructions in a single ROI. Fig. 10 presents some failure cases related to the points mentioned above.
+
+# 4.4. Analysis of Events
+
+We analyzed the frequency of motion patterns and changes in motion patterns (i.e. events) in the live-cell dataset. Fig. 11(a) shows the statistics of motion states in normal, hypoxia, and hypoxiaADM pools. A clear demarcation is observed between them, except for the Stat motion state. Here, we see that vesicles in the case of hypoxia are least stationary. Potentially, adding ADM restores the occurrence of vesicles in this state towards normal pool.
+
+
+Figure 9. Confusion matrix on the live-cell dataset using SRAN.
+
+
+O: Stat
+
+
+D: RanW
+Figure 10. Example failure cases. D: detected, O: ground truth.
+
+
+(b) O: RanW
+D: Flow
+(c) O: RCir
+
+
+D: RanW
+(d) O: Flow
+D:RanW
+
+We also note that most vesicles in any pool are in the RanW state. Fig. 11(b) shows the statistics of changes in motion states in normal, hypoxia, and hypoxiaADM pools. It is of particular interest to note the squares with green background. They indicate that ADM may have resulted into change in the trend introduced by hypoxia. For example, as compared to normal pool, hypoxia pool demonstrated more number of transitions from Circ and Flow to RanW states. But, hypoxiaADM demonstrated reduced number of such transitions. Other similar behaviours may indicate some potential mechanisms of action of ADM. It is important to note that these results are not conclusive from biological perspective since these experiments were designed to provide an initial test dataset for the proposed framework. A rigorous biological study needs further biological and environmental controls, hypothesis-specific experiment design, and large scale experimentation.
+
+We further show that our analysis may indicate nanoscale nature of interaction of two sub-cellular structures. For example, in Fig. 12, green colored low resolution structures are mitochondria. A vesicle flows towards it and interacts with it. This is visible in the microscopy video, included in the supplementary. However, the nanoscale detail of interaction is not known. The result of our framework, with 200 frames for each sub ROI, is presented in Fig. 12(a). The interaction is contained in sub ROI 2, which is classified as RCir. Then, we used the proposed framework with only 50 frames per sub ROI. This result, presented in Fig. 12(b), indicates that sub ROIs 5-8 contain the inter
+
+
+
+
+Subsequent states
+Figure 11. Analytics of motion patterns and changes in them. Legend for box plots: normal (green), hypoxia (blue), and hypoxiaADM (red). Numbers in each square indicate the maximum and minimum values for that square. (a) frequency of occurrence of motion patterns (ratio of sub ROIs in a particular motion state to the total number of sub ROIs in a pool). (b) ratio of number of consecutive-motion-state-pairs exhibiting a certain combination of initial and subsequent motion states to the total number of consecutive-motion-state-pairs. In (b), squares with green background indicate a trend reversal in hypoxiaADM as compared to trend of change between normal and hypoxia pools.
+
+action. Among them, sub ROIs 5-7 are classified as Stat and generate nanoscopy spots at three different locations (see magenta, cyan, and blue spots below the white pattern) while the sub ROI 8 is classified as Circ. This indicates that the vesicle may have spent some time being stationary at different locations (hopping action) in close vicinity of mitochondrion, before performing a circular motion (spinning action) close to it. Such analysis will open possibilities of understanding detailed mechanisms of interactions.
+
+# 5. Discussion and conclusion
+
+We report a first framework and an important step towards studying motion and interaction of vesicles in living biological cells and cell systems with sub-resolution nanoscale details. Our approach indicates the utility of hybrid learning approaches which combine non-CV ap
+
+
+(a) Sub-ROIs of 200 frames
+Figure 12. Example of interaction of a vesicle (nanoscopy images obtained using MUSICAL in colors other than green) with another sub-cellular structure namely mitochondrion (green microscopy image) and effect of choosing sub ROIs of different temporal sizes. In (a), sub ROIs 1 and 2 are classified as Flow and RCir, respectively. In (b), sub ROIs 1-4 are classified as Flow, sub ROIs 5-7 as Stat, and sub ROI 8 as Circ. Scale bars: $500\mathrm{nm}$ .
+
+
+(b) Sub-ROIs of 50 frames
+
+proaches with conventional CV approaches to perform challenging tasks with specific limitations due to the nature and physics of microscopy data. Our work also highlights that shallow learning networks may outperform deep learning networks for certain tasks where feature sparsity is an important characteristic of the data. We envision at least three future directions for the developed framework of analysis. First, the simulation framework can be extended to 3D to incorporate out of focus light and limited depth of focus of microscopes. Second, more variety of motion patterns can be incorporated in this framework or custom motion states may be learnt for different sub-cellular and inter-cellular structures. Third, the complete sequence of motion states can be formed to identify specific events of interest. The correlation of such events with activities of other sub-cellular structures can be used to identify and better understand biological interactions.
+
+Our framework can accommodate different time scales (as demonstrated in Fig. 12) for extracting motion details of different levels. In this sense, the framework is easily adaptable to different imaging conditions. In the future, the applicability of this framework for sub-resolution analysis of microscopy images and videos from a wide variety of microscopes and biological problems will be explored.
+
+# Acknowledgement
+
+The following funding is acknowledged: ERC starting grant 804233 (Agarwal), Research Council of Norway's Nano2021 grant 288565 (Ahluwalia), Northern Norway Regional Health Authority grant HNF1449-19 (Myrmel and Birgisdotiir), UiT's strategic funding program (Sekh), and UiT's Tematiske Satsinger grants (all authors). All data and codes are available at https://nonoscalemotion.github.io/.
+
+# References
+
+[1] K. Agarwal and R. Machan. Multiple signal classification algorithm for super-resolution fluorescence microscopy. Nature Communications, 7:13752, 2016. 2, 3, 4
+[2] H. Al-Obaidi, B. Nasseri, and A. T. Florence. Dynamics of microparticles inside lipid vesicles: movement in confined spaces. Journal of Drug Targeting, 18(10):821-830, 2010. 3
+[3] E. Alexander, Q. Guo, S. Koppal, S. Gortler, and T. Zickler. Focal flow: Measuring distance and velocity with defocus and differential motion. In European Conference on Computer Vision, pages 667-682, 2016. 2
+[4] F. Baradel, N. Neverova, J. Mille, G. Mori, and C. Wolf. Cyphy: Counterfactual learning of physical dynamics. arXiv preprint arXiv:1909.12000, 2019. 2
+[5] A. Bewley, Z. Ge, L. Ott, F. Ramos, and B. Upcroft. Simple online and realtime tracking. In IEEE International Conference on Image Processing, pages 3464-3468, 2016. 4
+[6] S. Bharadwaj, T. I. Dhamecha, M. Vatsa, and R. Singh. Computationally efficient face spoofing detection with motion magnification. In IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 105-110, 2013. 2
+[7] B. Cabukusta and J. Neefjes. Mechanisms of lysosomal positioning and movement. Traffic, 19(10):761-769, 2018. 3
+[8] N. Chenouard, I. Smal, F. De Chaumont, M. Maška, I. F. Sbalzarini, Y. Gong, J. Cardinale, C. Carthel, S. Coraluppi, M. Winter, et al. Objective comparison of particle tracking methods. Nature methods, 11(3):281, 2014. 2
+[9] S. Cox, E. Rosten, J. Monypenny, T. Jovanovic-Talisman, D. T. Burnette, J. Lippincott-Schwartz, G. E. Jones, and R. Heintzmann. Bayesian localization microscopy reveals nanoscale podosome dynamics. Nature Methods, 9(2):195, 2012. 2, 3
+[10] A. Czirok, D. G. Isai, E. Kosa, S. Rajasingh, W. Kinsey, Z. Neufeld, and J. Rajasingh. Optical-flow based non-invasive analysis of cardiomyocyte contractility. Scientific Reports, 7(1):10404, 2017. 2
+[11] M. R. de Souza, R. Ruschel, A. Susin, J. M. Boeira, L. V. Guimares, and A. Parraga. A framework for automatic recognition of cell damage on microscopic images using artificial neural networks. In International Conference of Engineering in Medicine and Biology Society, pages 636-639, 2018. 5
+[12] T. Dertinger, R. Colyer, G. Iyer, S. Weiss, and J. Enderlein. Fast, background-free, 3D super-resolution optical fluctuation imaging (soft). Proceedings of the National Academy of Sciences, 106(52):22287-22292, 2009. 2
+[13] M. Elgharib, M. Hefeeda, F. Durand, and W. T. Freeman. Video magnification in presence of large motions. In IEEE Conference on Computer Vision and Pattern Recognition, pages 4119-4127, 2015. 2, 6
+[14] Y. Han, M. Li, F. Qiu, M. Zhang, and Y.-H. Zhang. Cell-permeable organic fluorescent probes for live-cell long-term super-resolution imaging reveal lysosome-mitochondrion interactions. Nature Communications, 8(1):1307, 2017. 3
+[15] E. A. Hay and R. Parthasarathy. Performance of convolutional neural networks for identification of bacteria
+
+in 3D microscopy datasets. PLoS Computational Biology, 14(12):e1006628, 2018. 5
+[16] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pages 770-778, 2016. 5, 7
+[17] R. Henriques, M. Lelek, E. F. Fornasiero, F. Valtorta, C. Zimmer, and M. M. Mhlanga. Quickpalm: 3D real-time photoactivation nanoscopy image processing in ImageJ. Nature Methods, 7(5):339, 2010. 4
+[18] R. T. Ionescu, F. S. Khan, M.-I. Georgescu, and L. Shao. Object-centric auto-encoders and dummy anomalies for abnormal event detection in video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7842–7851, 2019. 2
+[19] R. Kasturi, D. Goldgof, P. Soundararajan, V. Manohar, J. Garofolo, R. Bowers, M. Boonstra, V. Korzhova, and J. Zhang. Framework for performance evaluation of face, text, and vehicle detection and tracking in video: Data, metrics, and protocol. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(2):319-336, 2008. 6
+[20] J.-H. Kim, S.-W. Lee, D. Kwak, M.-O. Heo, J. Kim, J.-W. Ha, and B.-T. Zhang. Multimodal residual learning for visual QA. In Advances in Neural Information Processing Systems, pages 361-369, 2016. 5
+[21] S. Kim, Y. Sato, P. S. Mohan, C. Peterhoff, A. Pensalfini, A. Rigoglioso, Y. Jiang, and R. A. Nixon. Evidence that the rab5 effector appl1 mediates app- $\beta$ ctf-induced dysfunction of endosomes in down syndrome and alzheimer's disease. Molecular Psychiatry, 21(5):707, 2016. 1
+[22] T. S. Kim, M. Peven, W. Qiu, A. Yuille, and G. D. Hager. Synthesizing attributes with unreal engine for fine-grained activity analysis. In IEEE Winter Applications of Computer Vision Workshops, pages 35-37, 2019. 2
+[23] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems, pages 1097-1105, 2012. 5, 7
+[24] X. Li, X. Hong, A. Moilanen, X. Huang, T. Pfister, G. Zhao, and M. Pietikainen. Towards reading hidden emotions: A comparative study of spontaneous micro-expression spotting and recognition methods. IEEE Transactions on Affective Computing, 9(4):563-577, 2017. 2
+[25] Y. Mao and Z. Yin. Two-stream bidirectional long short-term memory for mitosis event detection and stage localization in phase-contrast microscopy images. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 56–64, 2017. 6
+[26] P. Masuzzo, M. Van Troys, C. Ampe, and L. Martens. Taking aim at moving targets in computational cell migration. Trends in Cell Biology, 26(2):88-110, 2016. 2
+[27] J. M. Mc Donald and D. Krainc. Lysosomal proteins as a therapeutic target in neurodegeneration. Annual Review of Medicine, 68:445-458, 2017. 1
+[28] M. D. McDonnell and T. Vladusich. Enhanced image classification with a fast-learning shallow convolutional neural network. In IEEE International Joint Conference on Neural Networks, pages 1-7, 2015. 5, 7
+
+[29] A. Montes, A. Salvador, S. Pascual, and X. Giro-i Nieto. Temporal activity detection in untrimmed videos with recurrent neural networks. arXiv preprint arXiv:1608.08128, 2016. 6
+[30] H. Noh, S. Hong, and B. Han. Learning deconvolution network for semantic segmentation. In IEEE International Conference on Computer Vision, pages 1520-1528, 2015. 5
+[31] L. Novotny and B. Hecht. Principles of Nano-optics. Cambridge university press, 2012. 4
+[32] N. Okabe, B. Xu, and R. D. Burdine. Fluid dynamics in zebrafish kupffer's vesicle. Developmental Dynamics: an of-ficial publication of the American Association of Anatomists, 237(12):3602-3612, 2008. 3
+[33] T. Parnamaa and L. Parts. Accurate classification of protein subcellular localization from high-throughput microscopy images using deep learning. G3: Genes, Genomes, Genetics, 7(5):1385-1392, 2017. 5
+[34] H. T. H. Phan, A. Kumar, D. Feng, M. Fulham, and J. Kim. Unsupervised two-path neural network for cell event detection and classification using spatiotemporal patterns. IEEE Transactions on Medical Imaging, 38(6):1477-1487, 2018. 2
+[35] N. Plotegher and M. R. Duchen. Mitochondrial dysfunction and neurodegeneration in lysosomal storage disorders. Trends in Molecular Medicine, 23(2):116-134, 2017. 1
+[36] I. F. Sbalzarini and P. Koumoutsakos. Feature point tracking and trajectory analysis for video imaging in cell biology. Journal of Structural Biology, 151(2):182-195, 2005. 2
+[37] B. Shahriari, A. Bouchard-Côté, and N. Freitas. Unbounded bayesian optimization via regularization. In Artificial Intelligence and Statistics, pages 1168-1176, 2016. 7
+[38] H. Shen, L. J. Tauzin, R. Baiyasi, W. Wang, N. Moringo, B. Shuang, and C. F. Landes. Single particle tracking: from theory to biophysical applications. Chemical Reviews, 117(11):7331-7376, 2017. 2
+[39] Z. Shen, Y. Xu, B. Ni, M. Wang, J. Hu, and X. Yang. Crowd counting via adversarial cross-scale consistency pursuit. In IEEE Conference on Computer Vision and Pattern Recognition, pages 5245-5254, 2018. 2
+[40] S. N. Sinha, J.-M. Frahm, M. Pollefeys, and Y. Genc. Feature tracking and matching in video using programmable graphics hardware. Machine Vision and Applications, 22(1):207-217, 2011. 2, 6
+[41] A. R. Small and R. Parthasarathy. Superresolution localization methods. Annual Review of Physical Chemistry, 65:107-125, 2014. 4
+[42] O. Solomon, Y. C. Eldar, M. Mutzafi, and M. Segev. Sparcom: sparsity based super-resolution correlation microscopy. SIAM Journal on Imaging Sciences, 12(1):392-419, 2019. 2
+[43] R. Spilger, T. Wollmann, Y. Qiang, A. Imle, J. Y. Lee, B. Müller, O. T. Fackler, R. Bartenschlager, and K. Rohr. Deep particle tracker: Automatic tracking of particles in fluorescence microscopy images using deep learning. In *Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support*, pages 128-136. 2018. 6
+[44] E. T. T. T. Stephanie Fullerton, Keith Bennett. ORCA-flash4.0 - changing the game. Technical report, Hamamatsu, 2010. 4
+
+[45] J.-Y. Tinevez, N. Perry, J. Schindelin, G. M. Hoopes, G. D. Reynolds, E. Laplantine, S. Y. Bednarek, S. L. Shorte, and K. W. Eliceiri. Trackmate: An open and extensible platform for single-particle tracking. Methods, 115:80-90, 2017. 2
+[46] M.-T. Tran, T. Dinh-Duy, T.-D. Truong, V. Ton-That, T.-N. Do, Q.-A. Luong, T.-A. Nguyen, V.-T. Nguyen, and M. N. Do. Traffic flow analysis with multiple adaptive vehicle detectors and velocity estimation with landmark-based scanlines. In IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 100–107, 2018. 2
+[47] F. Wang, M. Jiang, C. Qian, S. Yang, C. Li, H. Zhang, X. Wang, and X. Tang. Residual attention network for image classification. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3156-3164, 2017. 5, 6, 7
+[48] L. Wang, Y. Qiao, and X. Tang. Action recognition with trajectory-pooled deep-convolutional descriptors. In IEEE Conference on Computer Vision and Pattern Recognition, pages 4305–4314, 2015. 6
+[49] Y. Wang, M. Ali, Y. Wang, S. Kucenas, and G. Yu. Detection and tracking of migrating oligodendrocyte progenitor cells from in vivo fluorescence time-lapse imaging data. In IEEE International Symposium on Biomedical Imaging, pages 961-964, 2018. 2, 6
+[50] Y. Wang, H. Mao, and Z. Yi. Stem cell motion-tracking by using deep neural networks with multi-output. Neural Computing and Applications, pages 1-13, 2017. 2
+[51] Y. C. Wong, D. Ysselstein, and D. Krainc. Mitochondrialysosome contacts regulate mitochondrial fission via rab7 gtp hydrolysis. Nature, 554(7692):382, 2018. 2
+[52] X. Xia, C. Xu, and B. Nan. Inception-v3 for flower classification. In International Conference on Image, Vision and Computing, pages 783-787, 2017. 5, 7
+[53] T. Xiao, Y. Xu, K. Yang, J. Zhang, Y. Peng, and Z. Zhang. The application of two-level attention models in deep convolutional neural network for fine-grained image classification. In IEEE Conference on Computer Vision and Pattern Recognition, pages 842-850, 2015. 5, 7
+[54] H. Xu, A. Das, and K. Saenko. R-c3d: Region convolutional 3D network for temporal activity detection. In Proceedings of the IEEE international conference on computer vision, pages 5783-5792, 2017. 6
+[55] Y. Yao, I. Smal, and E. Meijering. Deep neural networks for data association in particle tracking. In IEEE International Symposium on Biomedical Imaging, pages 458-461, 2018. 2
+[56] X. Zhang, J. Zou, K. He, and J. Sun. Accelerating very deep convolutional networks for classification and detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(10):1943-1955, 2015. 5, 7
+[57] Y. Zhang, K. Li, K. Li, L. Wang, B. Zhong, and Y. Fu. Image super-resolution using very deep residual channel attention networks. In European Conference on Computer Vision, pages 286-301, 2018. 5
+[58] H. Zhao, Q. Zhou, M. Xia, J. Feng, Y. Chen, S. Zhang, and X. Zhang. Characterize collective lysosome heterogeneous dynamics in live cell with a space-and time-resolved method. Analytical Chemistry, 90(15):9138-9147, 2018. 2
\ No newline at end of file
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/images.zip b/learningnanoscalemotionpatternsofvesiclesinlivingcells/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4b323dd1b7046dce4ac3506e95f708fceacc5f54
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:812e51d524e6072088c439e38a92b4c7a5b18352ce0cd52c19eeef9fc6899a11
+size 562039
diff --git a/learningnanoscalemotionpatternsofvesiclesinlivingcells/layout.json b/learningnanoscalemotionpatternsofvesiclesinlivingcells/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6695a3340f2a24e538a9933747b1d018fb69aa0f
--- /dev/null
+++ b/learningnanoscalemotionpatternsofvesiclesinlivingcells/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:76302896a2144c6e1be8dee4e21a3f1b5c39376bb47a3a25038150ad5462f033
+size 335755
diff --git a/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_content_list.json b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..dea89c539634d39142fffdf99fbc4dcc0f13a172
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e41af5a05be100f2d3a3282d5db15e052bb726d129276883c5816c6f3606b712
+size 70775
diff --git a/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_model.json b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ac9201e8760dcc8ce466e0cc7a98d3e45d6a1f3d
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:309968186433ef2df19bbebdb61ef636968a3bfdc699ac672f2cb73d18241bb1
+size 84996
diff --git a/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_origin.pdf b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..af1dd73a51b88a4c7e9665819aa4feae7b4ce8de
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/8a9a3720-1fab-4f22-8d60-04df75255a86_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea46b7787668ffd319d80c0056e94df654e4014350b2c90f3deed99e1345dba9
+size 1112375
diff --git a/learningoracleattentionforhighfidelityfacecompletion/full.md b/learningoracleattentionforhighfidelityfacecompletion/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..563f6d950e43910570ae0aa8e9a8d2e8754e3027
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/full.md
@@ -0,0 +1,303 @@
+# Learning Oracle Attention for High-fidelity Face Completion
+
+Tong Zhou $^{1}$ Changxing Ding $^{1}$ Shaowen Lin $^{1}$ Xinchao Wang $^{2}$ Dacheng Tao $^{3}$
+
+$^{1}$ South China University of Technology $^{2}$ Stevens Institute of Technology
+
+3 UBTECH Sydney AI Centre, School of Computer Science, Faculty of Engineering, The University of Sydney, Darlington, NSW 2008, Australia
+
+201821011282@mail.scut.edu.cn chxding@scut.edu.cn
+
+eeswlin@mail.scut.edu.cn xinchao.w@gmail.com dacheng.tao@sydney.edu.au
+
+# Abstract
+
+High-fidelity face completion is a challenging task due to the rich and subtle facial textures involved. What makes it more complicated is the correlations between different facial components, for example, the symmetry in texture and structure between both eyes. While recent works adopted the attention mechanism to learn the contextual relations among elements of the face, they have largely overlooked the disastrous impacts of inaccurate attention scores; in addition, they fail to pay sufficient attention to key facial components, the completion results of which largely determine the authenticity of a face image. Accordingly, in this paper, we design a comprehensive framework for face completion based on the U-Net structure. Specifically, we propose a dual spatial attention module to efficiently learn the correlations between facial textures at multiple scales; moreover, we provide an oracle supervision signal to the attention module to ensure that the obtained attention scores are reasonable. Furthermore, we take the location of the facial components as prior knowledge and impose a multi-discriminator on these regions, with which the fidelity of facial components is significantly promoted. Extensive experiments on two high-resolution face datasets including CelebA-HQ and Flickr-Faces-HQ demonstrate that the proposed approach outperforms state-of-the-art methods by large margins.
+
+# 1. Introduction
+
+Image inpainting refers to filling in the missing pixels in an image with the expectation that the recovered image will be visually realistic. This process not only requires that the filled textures themselves be meaningful, but also seeks semantic consistency between the filled area and the context. Image inpainting is widely applied to photo restoration, image editing, and object removal, among many other tasks.
+
+
+
+
+
+
+
+
+(a) PEN-Net
+
+
+
+
+
+
+
+
+(b) Ours
+Figure 1. Face completion results for images $(256 \times 256)$ with center mask $(128 \times 128)$ . In each row from left to right: (a) the result taken from the paper of PEN-Net [34]. By zooming in, we can observe the color discrepancy between two eyes, along with distortions in the nose and mouth regions. (b) The results of our method. It can be seen that our method indeed produces face images with high fidelity.
+
+Face completion, as a branch of image inpainting, focuses on filling the missing regions of a human face, and turns out to be a challenging task. The reasons behind lie in two aspects. First, the human face contains rich and subtle textures that also differ dramatically across persons, mean
+
+ing that it is difficult to perfectly restore these diverse facial textures. Second, there are close correlations between facial components, making the fidelity of the image more vulnerable to the semantic consistency between the facial components. Take one very recent work [34] for example, its generated images are satisfactory in facial structure, but still suffer from small artifacts in facial components and semantic inconsistency. As illustrated in Figure 1, the two eyes in the same face are different in color; moreover, small distortions in the nose and mouth areas can also be observed. These flaws have a substantial impact on the authenticity of the overall visual effect.
+
+Recently, convolutional neural network (CNN) based methods have become the mainstream approach to image inpainting [30, 29, 12, 26, 36]. In order to generate visually realistic images, existing approaches typically adopt the non-local schemes that make use of contextual relations to fill in the missing pixels [32, 21, 39, 24]. However, due to the lack of direct supervision on the obtained attention scores, the learned relations are insufficiently reliable, meaning that these methods may generate distorted textures.
+
+Moreover, different types of structural information have been extracted by networks in order to act as prior knowledge for assisting image inpainting; for example, segmentation maps [25], object contours [28], edge [17], facial landmarks [23], and face parsing [13]. While these methods focus on the correctness of the structural information, they also ignore the quality of the textures on key areas in the image (e.g. facial components in face images).
+
+In this paper, we propose a comprehensive framework to handle the above issues. Inspired by recent progress in attention models [35, 3], we propose a Dual Spatial Attention (DSA) model that comprises foreground self-attention and foreground-background cross-attention modules. To capture contextual information across different scales, we apply it to multiple layers in the network. Compared with attention models introduced in recent works [32, 15], DSA has two key advantages: first, it is more efficient and can capture more comprehensive contextual information; second, we impose an oracle supervision signal to ensure that the attention scores produced by DSA are reasonable. With the help of DSA, our approach obtains semantically consistent face completion results, as illustrated in Figure 1.
+
+Furthermore, we also extract facial landmarks from the ground truth image to act as prior knowledge. Rather than imposing constraints to ensure that the facial landmarks between the recovered and ground-truth images are consistent, we use facial landmarks to locate four key facial components: i.e., both eyes, the nose, and the mouth. Subsequently, we train four discriminators for each recovered facial component. By benefiting from adversarial learning on the specified locations, our generator pays more attention to the textures of each key facial component. As a result,
+
+our proposed approach can generate more visually realistic textures, as shown in Figure 1. Since all discriminators are removed during testing, our approach does not yield any drop in efficiency.
+
+We conduct a number of experiments on high-resolution face datasets, including CelebA-HQ [8] and Flickr-Faces-HQ [9]. Quantitative and qualitative comparisons demonstrate that our proposed approach outperforms state-of-the-art methods by large margins.
+
+# 2. Related Work
+
+# 2.1. Image Inpainting
+
+Previous image inpainting methods can be divided into two categories: hand-crafted methods and learning-based methods.
+
+Methods in the first category attempt to copy similar patches from the unmasked area to fill in the missing area [37, 20, 11, 5]. Criminisi et al. [2] established the priority of each missing patch with reference to the surrounding structure. When the missing patch is surrounded by more valid pixels or closer to boundary region, this patch is assigned a higher priority. These methods can restore a continuous structure as they give priority to well-defined structural areas; however, iterating over every patch to search for the most similar one results in elevated time and memory costs. Accordingly, Barnes et al. [1] proposed a faster method referred to as PatchMatch. This approach employs a randomized algorithm to quickly find the approximate nearest neighbor matches. However, the hand-crafted methods are unable to handle complex-structured or largely occluded images, as only low-level features are considered.
+
+The second category of methods [31, 19, 27] typically involve training a deep CNN in an encoder-decoder structure to predict each pixel of the missing area. Pathak et al. [18] proposed Context Encoders that applied adversarial learning to the entire image. In order to generate more realistic details, moreover, Iizuka et al. [6] appended an extra local discriminator to improve the generated effect of the masked area. However, this approach relies on post-processing to alleviate artifacts. To address this problem, Liu et al. [14] used only valid pixels per convolution to alleviate artifacts by updating a binary mask to indicate the generated pixels.
+
+Face Completion Due to the complexity and diversity of facial structures, face completion is one of the more challenging image inpainting tasks. Generally speaking, researchers in this area therefore use a wealth of face prior knowledge to aid in restoration. For example, Li et al. [13] used face parsing to propose a semantic parsing loss. Song et al. [23] trained an extra network to restore the facial landmarks and face parsing, then input them along with the masked image to train face completion network. However, the results of these methods are greatly affected
+
+
+Figure 2. The overall architecture of our model. We use the U-Net structure [14] as backbone. The proposed attention module is embedded to layer 12, 13 and 14, where the resolution is $16 \times 16$ , $32 \times 32$ and $64 \times 64$ respectively. We feed the ground truth images to the network, such that we can impose an oracle supervision signal on attention scores produced by DSA. We deploy discriminators on both the masked area and each of the four facial components, respectively. Best viewed in color.
+
+by the performance of the prior knowledge extracting network, which may consume a large amount of computational resources; moreover, these methods cannot directly guide the network to focus on the texture of key facial components.
+
+# 2.2. Attention Mechanism
+
+In order to maintain contextual consistency, Yu et al. [32] proposed a coarse-to-fine network containing a contextual attention module that learns the correlations between the missing and unmasked patches. Subsequently, some methods directly use the coarse-to-fine network with contextual attention; for example, GConv [33] turns the binary mask proposed by PConv [14] into learnable soft value as a gating mechanism, while Xiong et al. [28] used object contours as prior knowledge to assist in restoration. On the other hand, other methods opt to use contextual attention in different ways. For example, Sagong et al. [21] designed a parallel decoding network to replace the coarse-to-fine structure, thereby reducing the number of parameters, while Zeng et al. [34] proposed an attention transfer network that uses the attention learned from high-level features to reconstruct low-level features. Moreover, the CSA layer [15] learns correlations between the patches inside the masked area.
+
+In summary, previous attention-based methods learn long-range correlations in order to search the similar feature-level patches as references for filling. However, the learned attention is not reliable enough, as the parameters of the attention module lack direct supervision.
+
+# 3. Proposed Algorithm
+
+The overall architecture of the proposed approach is illustrated in Figure 2. We adopt the same U-Net structure as used in [14] to construct the basic generator. In what follows, we provide the details of our proposed methods. Specifically, we introduce the proposed DSA module with an oracle supervision signal, and then describe the deployment of the multi-discriminator. Finally, we describe the loss functions used to guide the training process.
+
+# 3.1. Dual Spatial Attention with Supervision
+
+We treat the masked area as the foreground and the un-masked area as background. When learning relations between the different parts of the face, we consider two key scenarios. First, when restoring the foreground features, we obtain reference information from the background. For example, when the left eye is masked and the right one is not, we obtain features from the right eye to help restore the left eye. Second, when the masked area is large, we consider the relations between different parts in the foreground. For instance, when both eyes are masked, we ensure that the restored eyes have similar features.
+
+Inspired by the principle of self-attention [35, 3], we propose the DSA module, which comprises foreground self-attention and foreground background cross-attention modules, so as to tackle above two scenarios. As shown in Figure 3, we first use the mask to segment the input feature $\mathbf{X}$ into the foreground feature $\mathbf{X}_p$ and background feature
+
+
+Figure 3. Overview of the Dual Spatial Attention (DSA) module, which includes two parallel branches. They focus on learning foreground-background cross-attention and foreground self-attention, respectively. Best viewed in color.
+
+$\mathbf{X}_b$ . Then we reshape $\mathbf{X}_p$ into $N\times C$ and $\mathbf{X}_b$ into $N^{\prime}\times C$ , where $N$ and $N^{\prime}$ denote the number of foreground pixels and background pixels in $\mathbf{X}$ respectively. $C$ denotes the number of channels. For the foreground background cross-attention module, we put $\mathbf{X}_p$ and $\mathbf{X}_b$ into 1-dimensional convolutional layers respectively and generate two new feature maps $\mathbf{Q}$ and $\mathbf{K}$ . Subsequently, we conduct a matrix multiplication between $\mathbf{Q}$ and the transpose of $\mathbf{K}$ . Then we apply a softmax layer to obtain the attention map with size of $N\times N^{\prime}$ . We write,
+
+$$
+E _ {i j} = \frac {\exp \left(\mathbf {Q} _ {i} \cdot \mathbf {K} _ {j}\right)}{\sum_ {n = 1} ^ {N ^ {\prime}} \exp \left(\mathbf {Q} _ {i} \cdot \mathbf {K} _ {n}\right)}, \tag {1}
+$$
+
+where $E_{ij}$ denotes the degree of correlation between the $i^{th}$ feature vector of $\mathbf{Q}$ (learned from $\mathbf{X}_p$ ) and the $j^{th}$ feature vector of $\mathbf{K}$ (learned from $\mathbf{X}_b$ ).
+
+Meanwhile, we also feed feature $\mathbf{X}_b$ into the other 1-dimensional convolutional layer, so as to generate a new feature $\mathbf{V}$ . Next, we perform a matrix multiplication between the transpose of $\mathbf{V}$ and the transpose of the attention matrix, then reshape it back to the original size of $\mathbf{X}_p$ $(C\times H\times W)$ . In this way, the original foreground features are eventually rebuilt with consideration given to the correlation with the background features. Finally, we extend the rebuilt feature to the original feature map size by means of zero-padding, and then merge it into the original feature map $X$ via element-wise sum operation, which can be formulated as follows:
+
+$$
+\mathbf {Y} = \alpha \operatorname {P a d} \left(\mathbf {V} ^ {\mathrm {T}} \otimes \mathbf {E} ^ {\mathrm {T}}\right) + \mathbf {X}, \tag {2}
+$$
+
+where Pad denotes zero-padding operation, $\alpha$ is a training
+
+parameter that is initialized to zero, and $\otimes$ denotes matrix multiplication.
+
+For the foreground self-attention module, we follow the same steps as for the foreground background cross-attention module, except that we use $\mathbf{X}_p$ only. Specifically, we use three convolutional layers to generate feature maps $\mathbf{V}'$ , $\mathbf{K}'$ , and $\mathbf{Q}'$ . The foreground attention matrix can be formulated as
+
+$$
+E _ {i j} ^ {\prime} = \frac {\exp \left(\mathbf {Q} _ {i} ^ {\prime} \cdot \mathbf {K} _ {j} ^ {\prime}\right)}{\sum_ {n = 1} ^ {N} \exp \left(\mathbf {Q} _ {i} ^ {\prime} \cdot \mathbf {K} _ {n} ^ {\prime}\right)}, \tag {3}
+$$
+
+where $E_{ij}^{\prime}$ denotes the degree of correlation between the $i^{th}$ feature vector of $\mathbf{Q}^{\prime}$ and $j^{th}$ feature vector of $\mathbf{K}^{\prime}$ , where $\mathbf{Q}^{\prime}$ and $\mathbf{K}^{\prime}$ are both learned from $\mathbf{X}_p$ . The output can thus be formulated as follows,
+
+$$
+\mathbf {Y} ^ {\prime} = \beta \operatorname {P a d} \left(\mathbf {V} ^ {\prime \mathrm {T}} \otimes \mathbf {E} ^ {\prime \mathrm {T}}\right) + \mathbf {X}, \tag {4}
+$$
+
+where $\beta$ is a training parameter initialized to zero as $\alpha$ . Finally, we fuse $\mathbf{Y}$ and $\mathbf{Y}'$ by means of element-wise addition, and then adopt a convolutional layer to adjust the feature and obtain the final refined feature map.
+
+Supervision Signal The attention module helps the network select reference features to improve the filling quality. Nevertheless, if the learned attention is insufficiently accurate, the network may refer to unsuitable features, resulting in poorer filling quality. As a result, ensuring the accuracy of the learned attention scores is key to improving the filling quality. However, the parameters of the attention module are optimized together with the total face completion network using supervision signals for face completion only, meaning that the parameters of the attention module lack a direct restriction.
+
+In order to impose a direct supervision signal towards attention, we extract the attention learned from the ground truth images as the objective. More specifically, in addition to taking the masked image as input, we also feed the ground truth image into the network when training. Through the use of the same network layers, including the DSA, we can obtain the oracle attention maps learned from the ground truth denoted as $\mathbf{E}^{gt}$ and $\mathbf{E}^{tgt}$ . Moreover, all-1 attention scores are received through the softmax layer, which means that the attention map comprises a number of probability distributions. Therefore, we use KL-divergence distance to set up the objective function for attention. The KL-divergence loss is formulated as follows:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {K L}} = \frac {1}{N \cdot N ^ {\prime}} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N ^ {\prime}} E _ {i j} ^ {g t} \cdot \left(\ln E _ {i j} ^ {g t} - \ln E _ {i j}\right) \tag {5} \\ + \frac {1}{N \cdot N} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} E _ {i j} ^ {\prime g t} \cdot \left(\ln E _ {i j} ^ {\prime g t} - \ln E _ {i j} ^ {\prime}\right), \\ \end{array}
+$$
+
+where we add the average KL-divergence distance between $\mathbf{E}^{gt}$ and $\mathbf{E}$ , as well as between $\mathbf{E}^{'gt}$ and $\mathbf{E}'$ .
+
+In addition, attentions learned from different scale layers complement each other. On a high-resolution feature map, the attention reflects the relations between small-scale features, such as hair. Conversely, the attention on a low-resolution feature map reflects the relations between large-scale features, such as large-range aspects of facial structure. After accounting for the trade-off between computational efficiency and attention learning, we embed the DSA module into three layers of the decoder (i.e. layers 12, 13, and 14) to assist the filling process. It is important to note that the large-scale attention represents more large-range structural information and can affect later features; thus, we only impose the KL-divergence loss on layer 12 in order to strengthen the authenticity of the face structure, which can also benefit the subsequent attention learning.
+
+Discussion Compared with the contextual attention layer [32], our DSA uses matrix multiplication rather than dividing the background patches as kernels for convolution, which significantly promotes efficiency. In addition, the C-SA layer [15] also learns the relations between foreground patches. However, it computes the similarity between two foreground patches in a iterative way; this slows down the filling speed, especially when the masked area is large. Moreover, neither contextual attention or CSA ensures the accuracy of learned attention scores, which leads to unsatisfying results.
+
+# 3.2. Multi-discriminator Design
+
+Adversarial learning is helpful in generating photorealistic images by training the generator and discriminator until a Nash equilibrium is achieved. In addition to the global discriminator [18], which is used on the whole image, the local discriminator is designed to focus on the generated details of the masked area [6, 13]. For face completion tasks, the quality of the facial components largely determines the authenticity of the entire face image. However, relying solely on the global and local discriminators is insufficient if our goal is to guide the network to focus on small regions. To this end, we propose the multi-discriminator for enhancing face details especially on facial components, as shown in Figure 4.
+
+We first use the facial landmarks extracted by the method [10] to mark the locations of the left eye, right eye, nose, and mouth. We then generate four masks of fixed size, and use these masks to crop four facial components. During training, we input each facial component of the generated image and ground truth into the corresponding discriminator to judge whether it is real or fake. Moreover, inspired by the collocation of the global and local discriminators, we further divide the masked area into four equal parts without overlap. These four parts share a discriminator, named the
+
+
+Figure 4. Overview of the multi-discriminator. $G$ denotes the generator. The four facial components are located by facial landmarks of the ground truth image. Best viewed in color.
+
+local subdivision discriminator, which focuses on more detailed characteristics and can also be regarded as a weighted optimization of the local discriminator loss function.
+
+By using the multi-discriminator, the generator can learn more specific features for each facial component and further enhance the details within the masked area. Unlike previous ways that utilize the prior knowledge, we only use facial landmarks to mark the positions of facial components, after which we guide the network to improve the details in specific areas. Furthermore, since the discriminator only works during the training process, adding multiple discriminators does not affect the efficiency of the implementation.
+
+# 3.3. Loss Functions
+
+In order to effectively guide the training process, it is critical to design loss functions to be capable of measuring the distance between the generated image and the corresponding ground truth. We thus adopt multiple loss functions from different aspects, described as follows.
+
+Given an original ground truth image $\mathbf{I}_{gt}$ and a randomly generated binary mask $\mathbf{M}_1$ (zero for holes), we produce the training image $\mathbf{I}_{in}$ by means of element-wise multiplication and denote the generated area of output $\mathbf{I}_{out}$ as $\mathbf{I}_{gen}$ . Moreover, in order to crop the facial components, we also produce a left-eye mask, right-eye mask, nose mask, and mouth mask, which are denoted by $\mathbf{M}_2,\dots ,\mathbf{M}_5$ respectively.
+
+Firstly, we use L1-distance between the output and the ground truth as the reconstruction loss $\mathcal{L}_r$ to constrain the value of pixels. Furthermore, we propose to increase the penalty on the facial components and masked area. $\mathcal{L}_r$ can be represented as
+
+$$
+\mathcal {L} _ {r} = \left\| \left(\mathbf {1} + \sum_ {i = 1} ^ {5} \left(\mathbf {1} - \mathbf {M} _ {i}\right)\right) \odot \left(\mathbf {I} _ {\text {o u t}} - \mathbf {I} _ {g t}\right) \right\| _ {1}, \tag {6}
+$$
+
+where $\odot$ denotes element-wise multiplication, and 1 indicates a matrix with all values set to 1. Here, the facial components and missing area have more weight than other parts,
+
+| Method | L1 | PSNR | SSIM | LPIPS [38] |
| PM [1] | 5.82% | 17.60 | 0.7786 | 0.2221 |
| CA [32] | 1.82% | 24.58 | 0.8980 | 0.0977 |
| PIC [39] | 1.81% | 25.31 | 0.9023 | 0.0897 |
| GConv [33] | 1.89% | 26.29 | 0.8996 | 0.0809 |
| Ours | 1.46% | 26.36 | 0.9107 | 0.0706 |
+
+while the missing portion of facial components is assigned the largest weight. Secondly, we introduce the perceptual loss $L_{p}$ using a VGG-16 [22], which is pre-trained by [38] to impose a constraint:
+
+$$
+\mathcal {L} _ {p} = \left\| \Psi \left(\mathbf {I} _ {\text {o u t}}\right) - \Psi \left(\mathbf {I} _ {g t}\right) \right\| _ {1} + \left\| \Psi \left(\mathbf {I} _ {\text {g e n}}\right) - \Psi \left(\mathbf {I} _ {g t}\right) \right\| _ {1}, \tag {7}
+$$
+
+where $\Psi$ is the output of the pre-trained VGG-16. The perceptual loss computes the L1-distance in feature space between both $I_{out}$ and $I_{gen}$ and the ground truth.
+
+Thirdly, we adopt PatchGAN [7] as our discriminator structure, which maps the input image to a matrix where each element represents the authenticity of a portion of the input image. In this way, the network pays more attention to the local image details. In addition, we adopt an improved version of WGAN with a gradient penalty term [4]. The final adversarial loss function for each discriminator is as follows:
+
+$$
+\begin{array}{l} \mathcal {L} _ {D _ {i}} = \mathbb {E} _ {\mathbf {I} _ {o u t} \sim \mathbb {P} _ {g}} \left[ D _ {i} \left(C _ {i} (\mathbf {I} _ {o u t})\right) \right] \\ - \mathbb {E} _ {\mathbf {I} _ {\mathbf {g} t} \sim \mathbb {P} _ {d a t a}} \left[ D _ {i} \left(C _ {i} (\mathbf {I} _ {\mathbf {g} t})\right) \right] \tag {8} \\ + \gamma \mathbb {E} _ {\hat {\mathbf {I}} \sim \mathbb {P} _ {\hat {\mathbf {I}}}} (\| \nabla_ {\hat {\mathbf {I}}} D _ {i} (C _ {i} (\hat {\mathbf {I}})) \| _ {2} - 1) ^ {2}, \\ \end{array}
+$$
+
+where $D_{i}(i = 1,\dots ,7)$ indicates one of the seven discriminators as shown in Figure 4. Here, $C_i$ denotes the crop operation used to obtain the corresponding areas from the image, $\hat{\mathbf{I}}$ is interpolated from pairs of points sampled from the real data distribution $\mathbb{P}_{data}$ and the generated distribution $\mathbb{P}_g$ ; $\nabla$ means the operation to compute gradient, and $\gamma$ is set to 10. Thus, the adversarial loss for the generator is as follows,
+
+$$
+\mathcal {L} _ {G} = - \sum_ {i = 1} ^ {7} \mathbb {E} _ {\mathbf {I} _ {o u t} \sim \mathbb {P} _ {g}} \left[ D _ {i} \left(C _ {i} \left(\mathbf {I} _ {o u t}\right)\right) \right]. \tag {9}
+$$
+
+The KL-divergence loss $\mathcal{L}_{KL}$ is depicted as Equation 5, while the details are described in Section 3.1. We define the overall loss function as follows,
+
+$$
+\mathcal {L} = \lambda_ {r} \mathcal {L} _ {r} + \lambda_ {K L} \mathcal {L} _ {K L} + \lambda_ {p} \mathcal {L} _ {p} + \lambda_ {G} \mathcal {L} _ {G}, \tag {10}
+$$
+
+where we empirically set the four trade-off parameters $\lambda_r$ , $\lambda_{KL}$ , $\lambda_p$ , and $\lambda_G$ to 10, 2, 1 and 1 respectively.
+
+Table 1. Quantitative results on the same test set using masks with random position. Higher SSIM and PSNR values are better; lower L1 error and LPIPS are better.
+
+| Method | L1 | PSNR | SSIM | LPIPS [38] |
| PEN-Net [34] | 2.87% | 24.53 | 0.8369 | 0.1701 |
| Ours | 2.28% | 26.11 | 0.8718 | 0.1355 |
+
+Table 2. Quantitative comparison on the same test set with a center mask. Higher SSIM and PSNR values are better; lower L1 error and LPIPS are better.
+
+# 4. Experiment
+
+# 4.1. Experimental settings
+
+Dataset We conduct a number of experiments on two high-quality human face datasets including CelebA-HQ [8] and Flickr-Faces-HQ [9]; these contain 30,000 and 70,000 high-quality face images respectively with size of $1024 \times 1024$ . We randomly selected 2,000 images from CelebA-HQ and 10,000 from Flickr-Faces-HQ to comprise the test set.
+
+Implementation Details We resize all input images to $256 \times 256$ . The random position rectangle masks account for $13.5\% \sim 25\%$ of the original image; the largest size is $128 \times 128$ and the smallest size is $94 \times 94$ . During training, we use RMSprop as the optimizer with a learning rate of 0.0001. On a single NVIDIA Titan Xp (12GB), we train our model on CelebA-HQ for four days and Flickr-Faces-HQ for eight days with a batch size of 16.
+
+# 4.2. Comparisons with State-of-the-Art Methods
+
+We conduct qualitative and quantitative comparisons with multiple methods including PatchMatch (PM) [1], Contextual Attention (CA) [32], PIC [39], GConv [33] and PEN-Net [34]. We use the officially released models of CA, PIC, and GConv trained on CelebA-HQ to facilitate fair comparisons. We compare with PEN-Net on the same test set on CelebA-HQ as [34]. As PEN-Net only handles a center mask on CelebA-HQ whose size is $128 \times 128$ , we compare with it separately using a center mask. For PIC, we follow the official instructions to select the best of their multiple results. In addition, we train models of CA, PIC, and GConv for Flickr-Faces-HQ respectively. The results on Flickr-Faces-HQ are presented in the supplementary material. In order to focus on assessing the generative capability of the different models, we copy the valid pixels to the output image for all models in comparison.
+
+Quantitative Comparisons As outlined in Table 1 and Table 2, we conduct quantitative comparisons on CelebAHQ using different masks. We select the commonly-used L1 loss, peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) as evaluation metrics at pixel space. As mentioned in [32, 16], however, these classical metrics are not optimal for image inpainting tasks; thus, we further use Learned Perceptual Image Patch Similarity (LPIPS) [38] as perceptual metric. According to these metrics, our method
+
+
+Figure 5. Comparisons in visual effect by different methods with random rectangle masks. Four state-of-the-art methods are compared: PM [1], CA [32], PIC [39] and GConv [33]. Best viewed with zoom-in and pay attention to the details on facial components. More qualitative results are presented in the supplementary material.
+
+| Method | L1 | PSNR | SSIM | LPIPS | Time Cost |
| CA [32] | 1.64% | 25.56 | 0.9057 | 0.0899 | 12.9ms |
| DSA | 1.46% | 26.36 | 0.9107 | 0.0706 | 6.4ms |
+
+Table 3. Quantitative comparison results on CelebA-HQ. The first row is the result of our model that replaces DSA with the CA module [32]. Higher SSIM and PSNR values are better; lower L1 error and LPIPS are better. We compare the time cost per image by CA and DSA on layer 14 of the U-Net.
+
+not only outperforms the previous state-of-the-art image inpainting methods, but also achieves a notable improvement. This is because our method focuses on learning the exact relations of the facial structure and improving the completion effect of facial components; by contrast, other methods tend to ignore the complexity and diversity of the facial structure.
+
+Qualitative Comparisons As shown in Figure 1 and Figure 5, we respectively compare the visual effect using a center mask and a random mask on the CelebA-HQ dataset. Firstly, the hand-crafted method PM [1] fails to recover the basic structure of the face because it is difficult to find similar patches on background. Secondly, CA [32], PIC [39], GConv [33] and PEN-Net [34] employ attention modules to learn contextual information for inpainting. But they still generate semantically inconsistent structures or textures as their learned attention scores may not be reasonable. In addition, these methods may generate artifacts or blurry effect on facial components such as the noses in the first row of Figure 5. This is because they do not pay enough at
+
+
+Figure 6. Qualitative comparison results on CelebA-HQ. In each row from left to right: (a) input image, (b) the result of using CA module [32] to replace DSA layer, (c) the result of using DSA module and (d) the ground truth image. Best viewed with zoom-in.
+
+tention to facial components. Finally, our approach produces sharper and more abundant details, especially for facial components, which can be explained by the effect of multi-discriminator. More qualitative results are presented in the supplementary material.
+
+# 4.3. Ablation Study
+
+Effect of DSA Module We replace the DSA module in our model with the contextual attention (CA) module [32] for comparison. As shown in Table 3 and Figure 6, the model with DSA is more effective and produces images with fine-grained textures. This is because DSA explores pixel-to-pixel correlations rather than patch-to-patch correlation-
+
+
+Figure 7. Qualitative comparison results on CelebA-HQ. In each row from left to right: (a) input image, (b) the result of using global and local discriminator, (c) the result of using the multi-discriminator, and (d) the ground truth image. Best viewed with zoom-in.
+
+| Method | PSNR | SSIM | LPIPS |
| DSA without supervision | 26.23 | 0.9062 | 0.0726 |
| DSA with supervision | 26.36 | 0.9107 | 0.0706 |
+
+Table 4. Quantitative results over CelebA-HQ to prove the effect of supervision on DSA. Higher SSIM and PSNR values are better; lower LPIPS are better.
+
+s in CA. Therefore, DSA can employ small-scale features as reference for inpainting. Furthermore, as DSA learns foreground self-attention, it maintains the contextual consistency in foreground areas. For example, the eyes generated by DSA are symmetric in both structure and texture, as shown in Figure 6. In comparison, the eyes generated by CA may be inconsistent with each other. Besides, DSA is also more efficient than CA as the latter one adopts more convolution operations [32]. The CSA module [15] also learns correlations between foreground patches, but its computational cost is significantly higher than DSA. This is because it adopts an iterative processing strategy, which means foreground pixels are refined one by one. Under the same GPU and experimentation setting, DSA and CSA (our implementation) take $6.4\mathrm{ms}$ and $31.3\mathrm{ms}$ per image on layer 14, respectively.
+
+Effect of Multi-discriminator As shown in Figure 7, comparisons in visual effect show that using global and local discriminator only [13, 6] is insufficient to generate high-fidelity facial textures. With the help of local subdivision discriminator and four discriminators for facial components, the generated results are sharper and contain richer textures especially for the facial components.
+
+Effect of Supervision on Attention As shown in Figure 8 (b), DSA without the extra supervision signal may produce artifacts for some challenging cases. For example, redundant hair is generated on the cheek of the girl in the first row. In the second row, the generated eye is close to
+
+
+Figure 8. Qualitative comparison results on CelebA-HQ. In each row from left to right: (a) input, (b) the result of using DSA module but without supervision signal, (c) the result of using DSA module with supervision signal and (d) the ground truth image. The yellow circles indicate artifacts. Best viewed with zoom-in.
+
+blue due to the influence of the blue background. In addition, there is clutter on the boundary between hair and background. These artifacts are caused by inaccurate attention scores, which lead the network to refer to features in unsuitable areas for inpainting. As illustrated in Figure 8 (c), after imposing the oracle supervision signal as a guidance, the accuracy of attention scores is improved and accordingly these artifacts or color discrepancy can be solved. As noted in Table 4, the quantitative results also prove that the network benefits from the supervision signal.
+
+# 5. Discussion and Extension
+
+In this paper, we propose a comprehensive model for face completion consisting of a DSA module with supervision signal, and a multi-discriminator, and further conduct multiple experiments to prove that it outperforms previous state-of-the-art methods. The supervised DSA module helps the network to identify the correlation between different facial parts, while the multi-discriminator forces the network to learn the specific features of facial components. In the supplementary material, we further show the results of the proposed method conditioning on irregular masks and higher resolution face image $(1024\times 1024)$ .
+
+# 6. Acknowledgement
+
+Changxing Ding is the corresponding author and he was supported by NSF of China under Grant 61702193 and U1801262, the Science and Technology Program of Guangzhou under Grant 201804010272, the Program for Guangdong Introducing Innovative and Entrepreneurial Teams under Grant 2017ZT07X183, and the Fundamental Research Funds for the Central Universities of China under Grant 2019JQ01.
+
+# References
+
+[1] Connelly Barnes, Eli Shechtman, Adam Finkelstein, and Dan B Goldman. Patchmatch: A randomized correspondence algorithm for structural image editing. In ToG, volume 28, page 24. ACM, 2009.
+[2] Antonio Criminisi, Patrick Pérez, and Kentaro Toyama. Region filling and object removal by exemplar-based image inpainting. TIP, 13(9):1200-1212, 2004.
+[3] Jun Fu, Jing Liu, Hajjie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In CVPR, pages 3146-3154, 2019.
+[4] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent-Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In NeurIPS, pages 5767-5777, 2017.
+[5] Kaiming He and Jian Sun. Statistics of patch offsets for image completion. In ECCV, pages 16-29. Springer, 2012.
+[6] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and locally consistent image completion. ACM Transactions on Graphics (ToG), 36(4):107, 2017.
+[7] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, pages 1125-1134, 2017.
+[8] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
+[9] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, pages 4401-4410, 2019.
+[10] Vahid Kazemi and Josephine Sullivan. One millisecond face alignment with an ensemble of regression trees. In CVPR, pages 1867-1874, 2014.
+[11] Jino Lee, Dong-Kyu Lee, and Rae-Hong Park. Robust exemplar-based inpainting algorithm using region segmentation. TCE, 58(2):553-561, 2012.
+[12] Ang Li, Jianzhong Qi, Rui Zhang, and Ramamohanarao Kotagiri. Boosted gan with semantically interpretable information for image inpainting. In IJCNN, pages 1-8. IEEE, 2019.
+[13] Yijun Li, Sifei Liu, Jimei Yang, and Ming-Hsuan Yang. Generative face completion. In CVPR, pages 3911-3919, 2017.
+[14] Guilin Liu, Fitsum A Reda, Kevin J Shih, Ting-Chun Wang, Andrew Tao, and Bryan Catanzaro. Image inpainting for irregular holes using partial convolutions. In ECCV, pages 85-100, 2018.
+[15] Hongyu Liu, Bin Jiang, Yi Xiao, and Chao Yang. Coherent semantic attention for image inpainting. In ICCV, 2019.
+[16] Ivan Molodetskikh, Mikhail Erofeev, and Dmitry Vatolin. Perceptually motivated method for image inpainting comparison. arXiv preprint arXiv:1907.06296, 2019.
+[17] Kamyar Nazeri, Eric Ng, Tony Joseph, Faisal Qureshi, and Mehran Ebrahimi. Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv preprint arXiv:1901.00212, 2019.
+[18] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In CVPR, pages 2536-2544, 2016.
+
+[19] Yurui Ren, Xiaoming Yu, Ruonan Zhang, Thomas H Li, Shan Liu, and Ge Li. Structureflow: Image inpainting via structure-aware appearance flow. In ICCV, pages 181-190, 2019.
+[20] Tijana Ružić and Aleksandra Pizurica. Context-aware patch-based image inpainting using markov random field modeling. TIP, 24(1):444-456, 2014.
+[21] Min-cheol Sagong, Yong-goo Shin, Seung-wook Kim, Seung Park, and Sung-jae Ko. Pepsi: Fast image inpainting with parallel decoding network. In CVPR, pages 11360-11368, 2019.
+[22] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. Computer Science, 2014.
+[23] Linsen Song, Jie Cao, Linxiao Song, Yibo Hu, and Ran He. Geometry-aware face completion and editing. In AAAI, pages 2506-2513, 2019.
+[24] Yuhang Song, Chao Yang, Zhe Lin, Xiaofeng Liu, Qin Huang, Hao Li, and C.-C. Jay Kuo. Contextual-based image inpainting: Infer, match, and translate. In ECCV, September 2018.
+[25] Yuhang Song, Chao Yang, Yeji Shen, Peng Wang, Qin Huang, and C-C Jay Kuo. Spg-net: Segmentation prediction and guidance network for image inpainting. In BMVC, page 97, 2018.
+[26] Yi Wang, Xin Tao, Xiaojuan Qi, Xiaoyong Shen, and Jiaya Jia. Image inpainting via generative multi-column convolutional neural networks. In NeurIPS, pages 331-340, 2018.
+[27] Chaohao Xie, Shaohui Liu, Chao Li, Ming-Ming Cheng, Wangmeng Zuo, Xiao Liu, Shilei Wen, and Errui Ding. Image inpainting with learnable bidirectional attention maps. In ICCV, pages 8858-8867, 2019.
+[28] Wei Xiong, Jiahui Yu, Zhe Lin, Jimei Yang, Xin Lu, Connelly Barnes, and Jiebo Luo. Foreground-aware image inpainting. In CVPR, pages 5840-5848, 2019.
+[29] Zhaoyi Yan, Xiaoming Li, Mu Li, Wangmeng Zuo, and Shiguang Shan. Shift-net: Image inpainting via deep feature rearrangement. In ECCV, pages 1-17, 2018.
+[30] Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-resolution image inpainting using multiscale neural patch synthesis. In CVPR, pages 6721-6729, 2017.
+[31] Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa-Johnson, and Minh N Do. Semantic image inpainting with deep generative models. In CVPR, pages 5485-5493, 2017.
+[32] Jiahui Yu, Zhe Lin, Jamei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Generative image inpainting with contextual attention. In CVPR, pages 5505-5514, 2018.
+[33] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Free-form image inpainting with gated convolution. In CVPR, 2019.
+[34] Yanhong Zeng, Jianlong Fu, Hongyang Chao, and Baining Guo. Learning pyramid-context encoder network for high-quality image inpainting. In CVPR, pages 1486-1494, 2019.
+[35] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In ICML, pages 7354–7363, 2019.
+
+[36] Haoran Zhang, Zhenzhen Hu, Changzhi Luo, Wangmeng Zuo, and Meng Wang. Semantic image inpainting with progressive generative networks. In ACM-MM, pages 1939-1947. ACM, 2018.
+[37] Hongying Zhang, Yuhong Jin, and Yadong Wu. Image completion by a fast and adaptive exemplar-based image inpainting. In ICCASM, volume 3, pages V3-115. IEEE, 2010.
+[38] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, pages 586-595, 2018.
+[39] Chuanxia Zheng, Tat-Jen Cham, and Jianfei Cai. Pluralistic image completion. In CVPR, pages 1438-1447, 2019.
\ No newline at end of file
diff --git a/learningoracleattentionforhighfidelityfacecompletion/images.zip b/learningoracleattentionforhighfidelityfacecompletion/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6f94f0bddf0605dde7caa49ef495d13b36be34ef
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b8aa035e23c49321564a08d7405fef8950372266afc1ed78bf848afc590eddf
+size 613987
diff --git a/learningoracleattentionforhighfidelityfacecompletion/layout.json b/learningoracleattentionforhighfidelityfacecompletion/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1305f5e35a5c8ffb3268e80925a62f06167a9253
--- /dev/null
+++ b/learningoracleattentionforhighfidelityfacecompletion/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40f8920f184f2e0beeae8ec45fbedeea7c07cf45edb6516690015c575b679a3e
+size 362946
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_content_list.json b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..908bc09ef4e04d56077b76d9bfb5e4801adf4532
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cdace9d8c8f903a65da406f186f449f4ece159d5347b87fa61d3d131bc8b16fa
+size 85232
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_model.json b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5cf67639febc8eb6a25834543f5689226db48292
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c5bdab6983d5ad7a7beee6b1cf07fb202b96dd5416d9c924d7158397a313a28f
+size 109251
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_origin.pdf b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..da5217aafb5de9f894a48efe5e5117f10d559f79
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/ef1d0137-15c2-419f-bc56-2581ca99917c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35e51b821e3835d2fbf47a958f8f6bb374a1e9e52b49bba94550891aaf24eacf
+size 5518367
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/full.md b/learningphysicsguidedfacerelightingunderdirectionallight/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f4560b1cb0ef283125bf5f7dec586cdfa428846c
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/full.md
@@ -0,0 +1,397 @@
+# Learning Physics-guided Face Relighting under Directional Light
+
+Thomas Nestmeyer*
+MPI for Intelligent Systems
+
+Jean-François Lalonde
+Université Laval
+
+Iain Matthews
+Epic Games
+
+Andreas Lehrmann* Borealis AI
+
+# Abstract
+
+Relighting is an essential step in realistically transferring objects from a captured image into another environment. For example, authentic telepresence in Augmented Reality requires faces to be displayed and relit consistent with the observer's scene lighting. We investigate end-to-end deep learning architectures that both de-light and relight an image of a human face. Our model decomposes the input image into intrinsic components according to a diffuse physics-based image formation model. We enable non-diffuse effects including cast shadows and specular highlights by predicting a residual correction to the diffuse render. To train and evaluate our model, we collected a portrait database of 21 subjects with various expressions and poses. Each sample is captured in a controlled light stage setup with 32 individual light sources. Our method creates precise and believable relighting results and generalizes to complex illumination conditions and challenging poses, including when the subject is not looking straight at the camera.
+
+Supplementary material can be found on our project page https://lvsn.github.io/face-relighting
+
+# 1. Introduction
+
+In recent years Augmented Reality (AR) has seen widespread interest across a variety of fields, including gaming, communication, and remote work. For an AR experience to be immersive, the virtual objects inserted in the environment should match the lighting conditions of their observed surroundings, even though they were originally captured under different lighting. This task, known as relighting, has a long history in computer vision with many seminal works paving the way for modern AR technologies [2,3,21,34,39].
+
+Relighting is often represented as a physics-based, two-stage process. First, de-light the object in order to recover its intrinsic properties of reflectance, geometry, and lighting. Second, relight the object according to a desired target lighting. This implies an exact instantiation of the rendering
+
+
+(a) $\ell_{\mathrm{src}}$ , input
+Figure 1: Overview. Given an unseen input image (a) from the test set that was lit by the according directional light $\ell_{\mathrm{src}}$ above it, we relight it towards the directional light $\ell_{\mathrm{dst}}$ in (b). To judge the performance, we provide the corresponding ground truth image in (c).
+
+
+(b) $\ell_{\mathrm{dst}}$ , prediction
+
+
+(c) $\ell_{\mathrm{dst}}$ ground truth
+
+equation [17] operating on lighting and surface reflectance representations capable of capturing the true nature of the light-material-geometry interactions. In practice, errors occur due to imperfect parametric models or assumptions. One common approximation is to assume diffuse materials [2, 39]. Another approximation is smooth lighting, e.g. modeled as low-order spherical harmonics, which cannot produce hard shadows cast from point light sources like the sun. We consider the hard problem of relighting human faces, which are known for both their complex reflectance properties including subsurface scattering, view-dependent and spatially-varying reflectance, but also for our perceptual sensitivity to inaccurate rendering. Recent image-to-image translation approaches rely on deep learning architectures (e.g. [16]) that make no underlying structural assumption about the (re)lighting problem. Given enough representational capacity an end-to-end system can describe any underlying process, but is prone to large variance due to overparameterization, and poor generalization due to physically implausible encodings. Test-time manipulation is also difficult with a semantically meaningless internal state. While this could potentially be alleviated with more training data,
+
+acquiring sufficient amounts is very time consuming.
+
+Recent approaches have demonstrated that explicitly integrating physical processes in neural architectures is beneficial in terms of both robust estimates from limited data and increased generalization [25, 39, 43]. However, these approaches have focused on the de-lighting process, and use the simplified physical models for relighting that do not model non-diffuse effects such as cast shadows and specularities.
+
+In this work, we bridge the gap between the expressiveness of a physically unconstrained end-to-end approach and the robustness of a physics-based approach. In particular, we consider relighting as an image-to-image translation problem and divide the relighting task into two distinct stages: a physics-based parametric rendering of estimated intrinsic components, and a physics-guided residual refinement. Our image formation model makes the assumption of directional light and diffuse materials. The subsequent refinement process is conditioned on the albedo, normals, and diffuse rendering, and dynamically accounts for shadows and any remaining non-diffuse phenomena.
+
+We describe a neural architecture that combines the strengths of a physics-guided relighting process with the expressive representation of a deep neural network. Notably, our approach is end-to-end trained to simultaneously learn to both de-light and relight. We introduce a novel dataset of human faces under varying lighting conditions and poses, and demonstrate our approach can realistically relight complex non-diffuse materials like human faces. Our directional lighting representation does not require assumptions of smooth lighting environments and allows us to generalize to arbitrarily complex output lighting as a simple sum of point lights. To our knowledge, this is the first paper showing realistic relighting effects caused by strong directional lighting, such as sharp cast shadows, from a single input image.
+
+# 2. Related work
+
+Intrinsic images. Intrinsic image decomposition [3] and the related problem of shape from shading [57] have inspired countless derived works. Of interest, [2] propose to simultaneously recover shape, illumination, reflectance and shading from a single image and rely on extensive priors to guide an inverse rendering optimization procedure. Other methods recover richer lighting representations in the form of environment maps given the known geometry [26]. More recent approaches rely on deep learning for the same task, for example using a combination of CNN and guided/bilateral filtering [31] or a pure end-to-end CNN approach [10] with the common problem of hard to come by training data. Available datasets may include only sparse relative reflectance judgements [4], or sparse shading annotations [20], which limits learning and quantitative evaluation.
+
+While many previous works focus on lighting estimation from objects [2, 12, 26, 29] or even entire images [11, 15, 18,
+
+54, 55], few papers explicitly focus on the relighting problem. Notably, [36] use a small number of images as input, and, more recently, [52] learn to determine which set of five light directions is optimal for relighting. Image-to-image translation [16] combined with novel multi-illumination datasets [30] has lately demonstrated promising results in full scene relighting.
+
+The explicit handling of moving hard shadows in [9] and [35] is relevant. While both use multi-view inputs to relight outdoor scenes, our method works on a single input image to relight faces (our multi-view setup is only used to capture training data). Similar to our work, [53] regress to intrinsic components like albedo and normals, but their illumination model is spherical harmonics and therefore does not handle shadows. [38] recently proposed a residual appearance renderer which bears similarities to our learned residual in that it models non-Lambertian effects. Both of the latter works optimize for intrinsic decomposition, whereas we learn end-to-end relighting. Our intrinsic components are only used as a meaningful intermediate representation.
+
+Face relighting. Lighting estimation from face images often focuses on normalization for improving face recognition. For example, [50] use spherical harmonics (SH) to relight a face image, and [47] use a Markov random field to handle sharp shadows not modeled by low-frequency SH models. Other face modeling methods have exploited approximate lighting estimates to reconstruct the geometry [23, 45] or texture [24]. In computer graphics similar ideas have been proposed for face replacement [5,8]. Low-frequency lighting estimation from a face has been explored in [19, 40, 41]. In contrast, [32] note that eyes reflect our surroundings and can be used to recover high frequency lighting. More closely related to our work, [7] learn the space of outdoor lighting using a deep autoencoder and combine this latent space with an inverse optimization framework to estimate lighting from a face. However, their work is restricted to outdoor lighting and cannot be used explicitly for relighting.
+
+Of particular relevance to our work, neural face editing [43] and the related SfSNet [39] train CNNs to decompose a face image into surface normals, albedo, and SH lighting. These approaches also impose a loss on the intrinsic components, as well as a rendering loss which ensures that the combination of these components is similar to the input image. FRADA [22] revisited the idea of relighting for improving face recognition with face-specific 3D morphable models (similar to [43]), while we do not impose any face-specific templates. Single image portrait relighting [58] bypasses the need for decomposition, while still estimating the illumination to allow editing. In a similar line of work, [44] capture faces in a light stage using one light at a time, but then train using smoother illuminations from image based rendering which leads to artifacts when exposed to hard cast shadows or strong specularities. Re
+
+cently, [28] also used light stage data and train to relight to directional lighting as we do. However, their network expects a pair of images captured under spherical gradient illumination at test time, which can only be captured in a light stage. The portrait lighting transfer approach of [42] directly transfers illumination from a reference portrait to an input photograph to create high-quality relit images, but fails when adding/removing non-diffuse effects.
+
+# 3. Architecture
+
+The following two sections first introduce an image formation process (Sec. 3.1) and then describe its integration into a physics-based relighting architecture (Sec. 3.2).
+
+# 3.1. Image formation process
+
+The image formation process describes the physics-inspired operations transforming the intrinsic properties of a 3D surface to a rendered output. The majority of physics-based works are based on specific instantiations of the rendering equation [17],
+
+$$
+L _ {o} \left(\omega_ {o}\right) = \int_ {\omega_ {i} \in \Omega} f \left(\omega_ {i}, \omega_ {o}\right) L _ {i} \left(\omega_ {i}\right) \langle \mathbf {n}, \omega_ {i} \rangle \mathrm {d} \omega_ {i}, \tag {1}
+$$
+
+where $\omega_{i},\omega_{o}$ are the incoming and outgoing light directions relative to the surface normal $\mathbf{n}$ at the surface point $\mathbf{X}_j$ . $L_{i}(\omega_{i})$ and $L_{o}(\omega_{o})$ are the corresponding (ir)radiances, $f(\cdot ,\cdot)$ is the BRDF describing the material's reflectance properties, and $\langle \mathbf{n},\omega_i\rangle$ is the attenuating factor due to Lambert's cosine law.
+
+This model is often simplified further by assuming a diffuse decomposition into albedo $a \in \mathbb{R}$ and shading $s \in \mathbb{R}$ ,
+
+$$
+a = f \left(\omega_ {i}, \omega_ {o}\right), \quad [ \text {c o n s t .} ] \tag {2}
+$$
+
+$$
+s = \int_ {\omega_ {i} \in \Omega} L _ {i} \left(\omega_ {i}\right) \langle \mathbf {n}, \omega_ {i} \rangle d \omega_ {i}. \tag {3}
+$$
+
+Non-diffuse effects. A realistic relighting approach must relax modeling assumptions to allow complex reflectance properties such as subsurface scattering, transmission, polarization, etc., and if using (2) peculiarities. Unfortunately, learning a spatially varying BRDF model $f(\omega_{i},\omega_{o})$ based on a non-parametric representation is infeasible: assuming an image size of $512\times 768$ and a pixelwise discretization of the local half-angle space [27] would result in $1.7\times 10^{12}$ parameters. Learning a low-dimensional representation in terms of semantic parameters [6] seems like a viable alternative but is still prone to overfitting and cannot account for light-material-interactions outside of its parametric space.
+
+We propose a hybrid approach and decompose $f$ into two principled components, a diffuse albedo $a$ and a light-varying residual $r$ :
+
+$$
+f \left(\omega_ {i}, \omega_ {o}\right) = a + r \left(\omega_ {i}, \omega_ {o}\right). \tag {4}
+$$
+
+This turns (1) into
+
+$$
+L _ {o} \left(\omega_ {o}\right) = a s + \int_ {\omega_ {i} \in \Omega} r \left(\omega_ {i}, \omega_ {o}\right) L _ {i} \left(\omega_ {i}\right) \langle \mathbf {n}, \omega_ {i} \rangle d \omega_ {i}. \tag {5}
+$$
+
+For a light source with intensity $I(\omega_{i})$ , we can identify $L_{i}(\omega_{i}) = I(\omega_{i})v(\omega_{i})$ , where $v\in \{0,1\}$ is the binary visibility of the light source. Under the assumption of a single directional light source from $\widetilde{\omega}_i$ , we integrate over one point only, so if we further write $\widetilde{r} (\widetilde{\omega}_i,\omega_o) = r(\widetilde{\omega}_i,\omega_o)I(\widetilde{\omega}_i)\langle \mathbf{n},\widetilde{\omega}_i\rangle$ we can re-formulate our rendering equation (1) to
+
+$$
+L _ {o} \left(\omega_ {o}\right) = \left(a s + \widetilde {r} \left(\widetilde {\omega} _ {i}, \omega_ {o}\right)\right) \cdot v \left(\widetilde {\omega} _ {i}\right). \tag {6}
+$$
+
+This will be the underlying image formation process in all subsequent sections. While as captures much of the diffuse energy across the image according to an explicit generative model, the residual $\widetilde{r} (\widetilde{\omega}_i,\omega_o)$ accounts for physical effects outside of the space representable by (2) and is modeled as a neural network (akin to [38]). We do not impose any assumptions on $r(\widetilde{\omega}_i,\omega_o)$ , even allowing light subtraction, but do enforce $a$ to be close to the ground truth albedo of a diffuse model which we obtain from photometric stereo [51].
+
+Discussion. While directional lights are conceptually simple, they lead to challenging relighting problems. Our combination of an explicit diffuse rendering process and a nondiffuse residual (with implicit shading) serves several purposes: (1) Describing most of the image intensities with a physics-based model means the output image will be more consistent with the laws of physics; (2) Describing specular highlights as residuals alleviates learning with a CNN; (3) Leaving the residual unconstrained (up to ground truth guidance) allows us to model effects that are not explainable by the BRDF, such as subsurface scattering and indirect light; (4) Modeling visibility explicitly helps, because the simple diffuse model does not handle cast shadows. At the same time, expecting the residual to take care of shadow removal by resynthesis is much harder than just masking it.
+
+# 3.2. Physics-guided relighting
+
+Presented with an input image $I_{\mathrm{src}}$ that was lit by an input illumination $\ell_{\mathrm{src}}$ , our goal is to learn a generator $G$ , relighting $I_{\mathrm{src}}$ according to a desired output illumination $\ell_{\mathrm{dst}}$ ,
+
+$$
+G \left(I _ {\mathrm {s r c}}, \ell_ {\mathrm {s r c}}, \ell_ {\mathrm {d s t}}\right) = I _ {\mathrm {d s t}}. \tag {7}
+$$
+
+At training time, we assume $\ell_{\mathrm{src}}$ and $\ell_{\mathrm{dst}}$ to be directional lights, which is known to be a particularly challenging instance of relighting and accurately matches our captured data (see Sec. 4). At test time, this is not a limitation, since we can easily fit a set of directional lights to an environment map to perform more complex relighting (see Sec. 6).
+
+Our physics-guided approach to solving the relighting task consists of a recognition model inferring intrinsic components from observed images (de-lighting) and a generative
+
+
+(a) Stage 1: Diffuse Rendering.
+
+
+(b) Stage 2: Non-Diffuse Residual.
+Figure 2: Physics-guided relighting with structured generators. Our generator consists of two stages modeling diffuse and non-diffuse effects. All intrinsic predictions are guided by losses w.r.t. photometric stereo reconstructions. (a) We use a U-Net with grouped convolutions to make independent predictions of the intrinsic components. Predicted normals are always re-normalized to unit vectors. Given a desired output lighting, we compute shading from normals and render a diffuse output. (b) Conditioned on all modalities inferred in (a), we predict a non-diffuse residual and binary visibility map to model specularities, cast shadows, and other effects not captured by our instance of the rendering equation.
+
+model producing relit images from intrinsic components (relighting). While the recognition model takes the form of a traditional CNN, the generative model follows our image formation process (Sec. 3.1) and is represented by structured layers with clear physical meaning. In line with (6), we implement the latter as a two-stage process: (Stage 1) Using the desired target lighting, we compute shading from predicted normals and multiply the result with our albedo estimate to obtain a diffuse render; (Stage 2) Conditioned on all intrinsic states predicted in stage 1, we infer a residual image and a visibility map, which we combine with the diffuse render according to (6). An illustration of this pipeline is shown in Fig. 2. Since all its operations are differentiable and directly stacked, this allows us to learn the proposed model in an end-to-end fashion from input to relit result.
+
+We introduce losses for all internal predictions, i.e., albedo, normals, shading, diffuse rendering, visibility, and residual. We emphasize the importance of using the right loss function and refer to Sec. 5.1 for a comprehensive study. In order to obtain the corresponding guidance during training, we use standard photometric stereo reconstruction [51].
+
+# 4. Data
+
+Our data comprises a diverse set of facial expressions captured under various lighting conditions.
+
+# 4.1. Acquisition
+
+We record our data in a calibrated multi-view light-stage consisting of 6 stationary Sony PMW-F55 camcorders and a total of 32 white LED lights. The cameras record linear HDR images at $2048 \times 1080 / 60$ fps and are synchronized with a Blackmagic sync generator that also triggers the LED lights. We flash one LED per frame and instruct our subjects
+
+to hold a static expression for the full duration of an LED cycle (32 frames $\sim$ 0.53 s). In order to remove captures with motion, we filter our data based on the difference of two fully lit shots before/after each cycle. For light calibration, we use a chrome sphere to recover directions and intensities in 3D [13] but subsequently express them with respect to each of the 6 cameras, such that we obtain a total of $6\cdot 32 = 192$ different light directions/intensities for each image.
+
+We record a total of 482 sequences from 21 subjects, resulting in $482 \cdot 6 \cdot 32 \cdot 32 = 2,961,408$ relighting pairs. Each pair is formed using any one of the 32 lights as input, and any one taken from the same sequence and same camera as output. We split them into $81\%$ (17 subjects) for training, $9.5\%$ (2 subjects) for validation and $9.5\%$ (2 subjects) for testing. We did not ask the subjects to follow any specific protocol of facial expressions, besides being diverse, such that our evaluation on validation/test data is on both unseen expressions and unseen subjects.
+
+After extraction of the raw data, we use photometric stereo (PMS) reconstruction [51] to separate the input images $I$ into albedo $A$ , shading $S$ with corresponding normals, and non-diffuse residual images $R = I - A \odot S$ per frame.
+
+# 4.2. Augmentation
+
+Modern neural architectures are much better at interpolation than extrapolation. It is therefore critical to cover the space of valid light transports as well as possible. To this end, we perform a series of data augmentations steps in an attempt to establish strong correlations throughout the parametric relighting space: (1) We flip all training images along the horizontal and vertical axis, increasing the effec
+
+Table 1: Loss selection. We explore the influence of different training losses and evaluation metrics on direct image-to-image translation ("pix2pix") and our structured guidance approach ("ours"). For each class, we show validation scores for all pairwise combinations of 5 training losses (rows) and the same 5 evaluation metrics (columns). The best model for each evaluation metric is shown in bold.
+
+| M | Training Loss | Evaluation Metric |
| L1 | L2 | LPIPS | DSSIM | MS-DSSIM |
| pix2pix | L1 | .0452 | .0067 | .2564 | .1707 | .1144 |
| L2 | .0516 | .0082 | .2663 | .1911 | .1369 |
| LPIPS | .0424 | .0062 | .1868 | .1440 | .0992 |
| DSSIM | .0406 | .0055 | .2138 | .1378 | .0930 |
| MS-DSSIM | .0422 | .0058 | .2358 | .1547 | .0913 |
| ours | L1 | .0406 | .0055 | .2237 | .1484 | .0913 |
| L2 | .0415 | .0056 | .2302 | .1547 | .0953 |
| LPIPS | .0365 | .0048 | .1701 | .1308 | .0803 |
| DSSIM | .0362 | .0045 | .2008 | .1270 | .0793 |
| MS-DSSIM | .0410 | .0055 | .2165 | .1470 | .0910 |
+
+[M: model; LPIPS: [56]; DSSIM: structured dissimilarity;
+MS-DSSIM: multi-scale DSSIM]
+
+tive dataset size by a factor of 4. Note that this also requires adaptation of the corresponding light directions and normals; (2) We perform a linear scaling $\mathbf{x}' = s\cdot \mathbf{x}$ , $s\sim \mathcal{U}_{[0.6,1.1]}$ of the images, shading, residuals and light intensities. In practice, we did not observe substantial benefits compared to training without scaling; (3) We randomly perturb the light calibration with Gaussian noise $n\sim \mathcal{N}(0,0.01^2)$ to improve generalization and account for minimal calibration errors; (4) For quantitative results, we perform a spatial rescaling to $\frac{1}{8}\mathrm{th}$ of the original image resolution $(135\times 256)$ , train on random crops of size $128\times 128$ and test on center crops with the same resolution to have comparability with SfSNet. Qualitative results are generated by rescaling to $\frac{1}{2}$ of the original resolution $(540\times 1024)$ , trained on random crops of size $512\times 768$ and tested on center crops of that resolution.
+
+# 5. Experiments
+
+Our models were implemented using PyTorch [33] with a U-Net [37] generator and PatchGAN [14] discriminator (for the final relit image) based on the implementations provided by pix2pix [16]. The images in our dataset are camera RAW, represented as 16-bit linear RGB values nominally in the range $[0, 1]$ . There is under- and over-shoot headroom, but for training and evaluation we clamp them into this range and linearly transform to $[-1, 1]$ as input into the network.
+
+# 5.1. Evaluation metric
+
+Quantitatively comparing the relit prediction $\hat{I}_{\mathrm{dst}}$ of the generator against the ground truth $I_{\mathrm{dst}}$ requires an appro
+
+priate error measure. We consider the $L_{1}$ and $L_{2}$ norms but recognize that they do not coincide with human perceptual response. We also consider the "Learned Perceptual Image Patch Similarity" (LPIPS) loss suggested by [56] using the distance of CNN-features pretrained on ImageNet. Another prevailing metric of image quality assessment is structural similarity (SSIM) [48] and its multi-scale variant (MS-SSIM) [49]. In our evaluation, we use the corresponding dissimilarity measure $\mathrm{DSSIM} = \frac{1 - \mathrm{SSIM}}{2}$ , and likewise for MS-SSIM, to consistently report errors.
+
+When defining the loss function during training, the same choices of distance metrics are available. To densely evaluate their performance, we report in Table 1 the results of training all intrinsic layers with the same loss function from the options above. Surprisingly, we conclude that, for our task, using DSSIM for the training loss consistently leads to models which generalize better on the validation set using most of the error metrics. The only exception is evaluation using the LPIPS metric, which is better when also trained using this metric. Therefore, we chose the models trained on DSSIM for computing the final test results.
+
+# 5.2. Baseline comparisons
+
+We now provide quantitative and qualitative comparisons of our proposed architecture, to related work.
+
+# 5.2.1 Baselines
+
+Our baselines comprise the following set of related methods.
+
+PMS. To understand the lower error bound of a diffuse model, we take albedo $A$ and shading $S$ from photometric stereo (PMS; [51]) and diffuse render via $A \odot S$ . We note that this model has access to all light configurations at the same time, with the desired target illumination amongst them. Since this gives an unfair advantage, we do not highlight results for this model in Table 2.
+
+SfSNet (pretrained). We take the pretrained network of SfSNet [39] and apply it to our data by using their decomposition into albedo and normals, but ignoring the output spherical harmonics estimate. Instead, we compute target shading as the dot product of $\ell_{\mathrm{dst}}$ and normals to have a direct comparison with our assumption of directional light and present the result after diffuse rendering.
+
+SfSNet (retrained). We retrain [39] on the calibrated PMS data and also provide the source illumination as input, to which our model has access as well. Compared to the pretrained model above, this baseline can be seen as a fairer comparison to SfSNet.
+
+Pix2pix. The arguably simplest way to learn (7) from data is to instantiate $G$ as a traditional neural network consisting of a series of generic convolutional layers with no semantic
+
+
+(a) input image
+
+
+(b) SfSNet [39] (pretrained)
+
+
+(c) SfSNet [39] (retrained)
+
+
+(d) pix2pix [16]
+
+
+(e) ours
+
+
+(f) ground truth
+Figure 3: Qualitative evaluation on unseen subjects and expressions. We compare relighting (a) the input image with (b/c) pretrained and retrained variants of SfSNet [39], (d) pix2pix [16], and (e) our model. In (f), we show the ground truth capture of the given target illumination. Notice our model's ability to generate realistic shadows and specular highlights.
+
+meaning and no knowledge of the image formation process. We adapt the pix2pix translation GAN [16] to our use case by conditioning the generator on the input image as well as the source and target illumination. This ensures an objective comparison with our more structured model, which also has access to lighting information.
+
+# 5.2.2 Evaluation
+
+Qualitative evaluation. We compiled a collection of qualitative results in Fig. 3. While the shading of SfSNet is smooth, it has a bias towards an albedo which probably resembles skin color in their training data and does not distinguish well between different skin tones and hair. As expected, retraining their model on our data leads to more accurate results. Still, due to the diffuse assumption, it looks flat compared to our more expressive model. It misses specularities and surface normals orthogonal to the light direction are missing ambient light from inter-reflections. The pix2pix model generates promising results, but its domain-agnostic architecture often leads to physically implausible artifacts,
+
+such as missing shadows. In comparison, the predictions of our proposed architecture are typically the most realistic, mainly due to its need to estimate a consistent albedo, as can be seen for example at the hair in the first row of Fig. 3. The last row shows a hand occluding the face, leading to strong cast shadows that have to be introduced/removed. Our model using intrinsic guidance gracefully handles that case.
+
+While our data allows foreground masking computed from PMS, we show the full image predictions for better judgment. At test time, an off-the-shelf face matting approach, e.g. [46], could be used for cleaning the predictions.
+
+We encourage the reader to look at more qualitative results of this type on our project page2, where we also show relighting under a moving target illumination.
+
+Quantitative evaluation. In Table 2 (first block), we analyze the quantitative performance of our model in the described scenario with known source illumination $\ell_{\mathrm{src}}$ . The test set comparison with SfSNet and the diffuse pix2pix baseline confirms the importance of our physics-based guid
+
+Table 2: Quantitative evaluation. We show a quantitative comparison of our approach to baseline methods. Performance on the test set is reported under the assumption of both known ('with') and unknown ('w/o') source illumination. All models have been trained with the DSSIM loss.
+
+| L | Model | Evaluation Metric |
| \( L_1 \) | \( L_2 \) | LPIPS | DSSIM | MS-DSSIM |
| with | SfSNet (R) | .0636 | .0121 | .2508 | .1840 | .1277 |
| pix2pix | .0668 | .0144 | .2430 | .1832 | .1328 |
| ours | .0609 | .0123 | .2144 | .1618 | .1138 |
| w/o | SfSNet (P) | .1359 | .0424 | .4703 | .3221 | .3121 |
| pix2pix | .0815 | .0189 | .2783 | .2076 | .1623 |
| ours | .0684 | .0142 | .2273 | .1763 | .1316 |
| PMS | .0391 | .0047 | .1630 | .1125 | .0561 |
+
+[L: access to source illumination; LPIPS: [56];
+DSSIM: structured dissimilarity, MS-DSSIM: multi-scale DSSIM; PMS: photometric stereo; P/R: (p)retrained]
+
+ance and non-Lambertian residuals. An extension of our model without the assumption of known source illumination (second block) will be discussed in Sec. 6.1. For reference, the PMS reconstruction, restricted to a diffuse model but computed from multiple images, is also shown.
+
+# 5.3. Additional qualitative comparisons
+
+We provide more qualitative comparisons to the following recent portrait relighting approaches in Fig. 4.
+
+The mass transport relighting [42] approach is different in that it defines the target lighting as that of another portrait. To match those conditions, we set the desired output to directly be the ground truth reference image. Despite these optimal conditions, [42] fails to generate specular highlights and cast shadows, which are well-captured by our technique.
+
+Single image portrait relighting using an environment map is learned in [44]. Training images are produced by compositing multiple 'one light at a time' captures. As already discussed in [44], the method fails on strong light.
+
+Finally, [58] learn to do deep portrait relighting using a spherical harmonics representation, which also handles smooth lighting exclusively, as can be seen in Fig. 4.
+
+# 6. Extensions
+
+We now demonstrate that our model successfully generalizes to different scenarios, including unknown input illumination, relighting with environment maps, and relighting images captured in the wild.
+
+# 6.1. Relighting with unknown source illumination
+
+While we cannot remove the need for the target illumination, information about the source illumination is already
+
+
+
+
+
+
+t (b) MT
+
+
+
+
+(c) SIPR
+
+
+
+
+(d) DPR
+
+
+
+
+(e) ours
+
+
+Figure 4: Additional qualitative comparisons. We relight the input in the first row to the input in the second row, and vice versa. Results in the Mass Transport (MT) [42] approach and Single Image Portrait Relighting (SIPR) [44] were provided by the authors. For Deep Portrait Relighting (DPR) [58], we use their provided code and approximate the light directions manually.
+(a) input
+Figure 5: Relighting with unknown source illumination. (a) Input image. (b/c) Our relighting model with and without access to source illumination. (d) Ground truth output.
+
+
+(b) with
+
+
+(c) w/o
+
+
+(d) GT
+
+contained in the input image, allowing for implicit learning of $\ell_{\mathrm{src}}$ . To illustrate our model's ability to extract these signals, we trained a version of our architecture without explicit access to the input lighting; these results, as well as a comparison to the corresponding baseline variants, are shown in Table 2 (second block) and Fig. 5. As expected, all models incur a small drop in performance compared to their counterparts with explicit knowledge. Nonetheless, our model without access to the source illumination achieves similar (and in some cases better) performance than the pix2pix model with access to the source illumination.
+
+# 6.2. Relighting with environment maps
+
+Directional light sources are a very general representation, and our approach easily allows for relighting with environment maps. While more principled approaches like importance sampling are available [1], for illustrative purposes here we simply sample environment maps by downscaling them to $64 \times 32$ pixels and instantiating our relighting prediction with one light direction per pixel. Since light is additive, we then mix the resulting predictions according to their color and intensity. Examples of a relit scene with three environ-
+
+
+(a) input
+
+
+(b) env. 1
+
+
+(c) env. 2
+
+
+(d) env. 3
+
+ment maps are shown in Fig. 6, more results are contained in the supplementary material on our project page.
+
+# 6.3. Relighting in the wild
+
+To demonstrate generalization outside the domain of our lab-captured dataset, we conducted experiments using pictures taken in an office environment with a Canon EOS 5D Mark III and visualize results of relighting towards three target lights in Fig. 7.
+
+We emphasize the practical difficulties of relighting those portraits, including unknown discrepancies in the imaging pipeline (camera sensor, illuminant color, image processing etc.) and approximation of the unknown source lighting. Since the portraits are taken under uncontrolled office lighting, this results in images which are diffusely lit by multiple input light sources. Although this violates our model assumption of a single directional light source, we run our model using an input light direction $\ell_{\mathrm{src}}$ in the image that would simply light the portrait centrally. To compensate for different illumination colors in the input, we compute the mean of a $51 \times 76$ center patch and apply a linear color transform towards our data distribution. The background is masked by hand, which could be automated [46]. Note that we can show neither quantitative nor qualitative comparisons to ground truth relit images since they do not exist.
+
+# 7. Conclusion
+
+We propose a method which learns to relight a face with strong directional lighting, accurately reproducing nondiffuse effects such as specularities and hard-cast shadows. We introduce a structured relighting architecture with seman
+
+
+Figure 6: Relighting with environment maps. We consider input images taken under a point light source (a) and relight them with respect to 3 different environment maps (b-d).
+(a) input
+Figure 7: Relighting in the wild. We consider portraits not taken in our capture environment (a) and relight them with respect to 3 different target point lights (b-d).
+
+
+(b) relit 1
+
+
+(c) relit 2
+(d) relit 3
+
+
+
+tic decomposition into, and subsequent re-rendering from intrinsic components. On our challenging light-stage dataset with directional light, the integration of an explicit generative rendering process and a non-diffuse neural refinement layer within an end-to-end architecture proved to be superior. We found that our model tends to produce shadows and albedo maps that are qualitatively closer to reality than all baselines. A more structured approach also has advantages beyond raw performance, including better interpretability/explainability and the possibility for direct manipulation/extraction of its semantically meaningful intermediate layers for downstream tasks. A comprehensive study of different losses and evaluation metrics highlighted the benefits of training on a perceptual loss over more traditional choices. We therefore believe our model to be useful in a wide range of face-centric and more general applications in, e.g., augmented reality.
+
+Limitations and future work. While our model generally deals well with cast shadows in the input image (see Fig. 4), results get worse when there is so little light that the camera mostly returns noise. Although a crude infilling for those pixels based on context can be learned, an interesting future direction would be to identify these pixels explicitly. A dedicated infilling method, conditioned on the properly relit parts of the image and other intrinsic layers, could be applied to them. To cancel ambient input illumination (as in Fig. 7), future work could experiment with taking a flash photo and subtracting a second non-flash photo (in linear color space).
+
+Acknowledgments. We thank Yannick Hold-Geoffroy and Marc-Andre Gardner for their valuable feedback, and Zhixin Shu and Tiancheng Sun for running their code on our dataset.
+
+# References
+
+[1] Sameer Agarwal, Ravi Ramamoorthi, Serge Belongie, and Henrik Wann Jensen. Structured importance sampling of environment maps. ACM Transactions on Graphics (TOG), 22(3):605-612, 2003. 7
+[2] Jonathan T Barron and Jitendra Malik. Shape, illumination, and reflectance from shading. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(8):1670-1687, 2015. 1, 2
+[3] Harry Barrow and J Tenenbaum. Recovering intrinsic scene characteristics. Comput. Vis. Syst., A Hanson & E. Riseman (Eds.), pages 3-26, 1978. 1, 2
+[4] Sean Bell, Kavita Bala, and Noah Snavely. Intrinsic images in the wild. ACM Transactions on Graphics (TOG), 33(4):159, 2014. 2
+[5] Dmitri Bitouk, Neeraj Kumar, Samreen Dhillon, Peter N Belhumeur, and Shree K Nayar. Face swapping: automatically replacing faces in photographs. ACM Transactions on Graphics (SIGGRAPH), 27(3):39:1-39:8, 2008. 2
+[6] Brent Burley. Physically-Based Shading at Disney. In SIGGRAPH 2012 Courses, 2012. 3
+[7] Dan A Calian, Jean-François Lalonde, Paulo Gotardo, Tomas Simon, Iain Matthews, and Kenny Mitchell. From faces to outdoor light probes. Computer Graphics Forum, 37(2):51-61, 2018. 2
+[8] Kevin Dale, Kalyan Sunkavalli, Micah K Johnson, Daniel Vlasic, Wojciech Matusik, and Hanspeter Pfister. Video face replacement. ACM Transactions on Graphics (SIGGRAPH Asia), 30(6), Dec. 2011. 2
+[9] Sylvain Duchêne, Clement Riant, Gaurav Chaurasia, Jorge Lopez Moreno, Pierre-Yves Laffont, Stefan Popov, Adrien Bousseau, and George Drettakis. Multiview Intrinsic Images of Outdoors Scenes with an Application to Relighting. ACM Transactions on Graphics (TOG), 34(5):1-16, 2015. 2
+[10] Qingnan Fan, Jiaolong Yang, Gang Hua, Baoquan Chen, and David Wipf. Revisiting deep intrinsic image decompositions. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[11] Marc-Andre Gardner, Kalyan Sunkavalli, Ersin Yumer, Xiaohui Shen, Emiliano Gambaretto, Christian Gagné, and Jean-François Lalonde. Learning to predict indoor illumination from a single image. ACM Transactions on Graphics (SIGGRAPH Asia), 9(4), 2017. 2
+[12] Stamatios Georgoulis, Konstantinos Rematas, Tobias Ritschel, Efstratios Gavves, Mario Fritz, Luc Van Gool, and Tinne Tuytelaars. Reflectance and natural illumination from single-material specular objects using deep learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(8):1932-1947, 2018. 2
+[13] Dan B Goldman, Brian Curless, Aaron Hertzmann, and Steven M Seitz. Shape and spatially-varying BRDFs from photometric stereo. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(6):1060-1071, 2010. 4
+[14] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, 2014. 5
+
+[15] Yannick Hold-Geoffroy, Kalyan Sunkavalli, Sunil Hadap, Emiliano Gambaretto, and Jean-François Lalonde. Deep outdoor illumination estimation. In IEEE International Conference on Computer Vision and Pattern Recognition, 2017. 2
+[16] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 1, 2, 5, 6
+[17] James T. Kajiya. The rendering equation. In Proceedings of ACM SIGGRAPH, pages 143-150, 1986. 1, 3
+[18] Kevin Karsch, Kalyan Sunkavalli, Sunil Hadap, Nathan Carr, Hailin Jin, Rafael Fonte, Michael Sittig, and David Forsyth. Automatic scene inference for 3D object compositing. ACM Transactions on Graphics (TOG), 33(3):1-15, 2014. 2
+[19] Sebastian B. Knorr and Daniel Kurz. Real-time illumination estimation from faces for coherent rendering. In IEEE International Symposium on Mixed and Augmented Reality, 2014.
+[20] Balazs Kovacs, Sean Bell, Noah Snavely, and Kavita Bala. Shading annotations in the wild. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+[21] Edwin H Land and John J McCann. Lightness and retinex theory. JOSA, 61(1):1-11, 1971. 1
+[22] Ha Le and Ioannis Kakadiaris. Illumination-invariant face recognition with deep relit face images. In IEEE Winter Conference on Applications of Computer Vision, 2019. 2
+[23] Jinho Lee, Raghu Machiraju, Baback Moghaddam, and Hanspeter Pfister. Estimation of 3D faces and illumination from single photographs using a bilinear illumination model. In Eurographics Conference on Rendering Techniques, 2005. 2
+[24] Chen Li, Kun Zhou, and Stephen Lin. Intrinsic face image decomposition with human face priors. In European Conference on Computer Vision, 2014. 2
+[25] Zhengqin Li, Zexiang Xu, Ravi Ramamoorthi, Kalyan Sunkavalli, and Manmohan Chandraker. Learning to reconstruct shape and spatially-varying reflectance from a single image. ACM Transactions on Graphics (SIGGRAPH Asia), 37(6), Nov. 2018. 2
+[26] Stephen Lombardi and Ko Nishino. Reflectance and illumination recovery in the wild. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(1):129-141, 2016. 2
+[27] Wojciech Matusik. A data-driven reflectance model. PhD thesis, Massachusetts Institute of Technology, 2003. 3
+[28] Abhimitra Meka, Christian Haene, Rohit Pandey, Michael Zollhoefer, Sean Fanello, Graham Fyffe, Adarsh Kowdle, Xueming Yu, Jay Busch, Jason Dourgarian, Peter Denny, Sofien Bouaziz, Peter Lincoln, Matt Whalen, Geoff Harvey, Jonathan Taylor, Shahram Izadi, Andrea Tagliasacchi, Paul Debevec, Christian Theobalt, Julien Valentin, and Christoph Rhemann. Deep reflectance fields - high-quality facial reflectance field inference from color gradient illumination. ACM Transactions on Graphics (SIGGRAPH), 38(4), July 2019. 3
+[29] Abhimitra Meka, Maxim Maximov, Michael Zollhoefer, Avishek Chatterjee, Hans-Peter Seidel, Christian Richardt,
+
+and Christian Theobalt. LIME: Live intrinsic material estimation. In IEEE Conference on Computer Vision and Pattern Recognition, June 2018. 2
+[30] Lukas Murmann, Michael Gharbi, Miika Aittala, and Fredo Durand. A dataset of multi-illumination images in the wild. In IEEE International Conference on Computer Vision, 2019. 2
+[31] Thomas Nestmeyer and Peter V Gehler. Reflectance adaptive filtering improves intrinsic image estimation. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+[32] Ko Nishino and Shree K Nayar. Eyes for relighting. ACM Transactions on Graphics (SIGGRAPH), 23(3):704-711, July 2004. 2
+[33] 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. In Advances in Neural Information Processing Systems Workshops, 2017. 5
+[34] Pieter Peers, Naoki Tamura, Wojciech Matusik, and Paul Debevec. Post-production facial performance relighting using reflectance transfer. ACM Transactions on Graphics (TOG), 26(3):52, 2007. 1
+[35] Julien Philip, Michael Gharbi, Tinghui Zhou, Alexei A Efros, and George Drettakis. Multi-view Relighting Using a Geometry-aware Network. ACM Transactions on Graphics (TOG), 38(4):1-14, 2019. 2
+[36] Peiran Ren, Yue Dong, Stephen Lin, Xin Tong, and Baining Guo. Image based relighting using neural networks. ACM Transactions on Graphics, 34(4):111:1-111:12, July 2015. 2
+[37] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical Image Computing and Computer-assisted Intervention, 2015. 5
+[38] Soumyadip Sengupta, Jinwei Gu, Kihwan Kim, Guilin Liu, David W. Jacobs, and Jan Kautz. Neural inverse rendering of an indoor scene from a single image. In International Conference on Computer Vision, 2019. 2, 3
+[39] Soumyadip Sengupta, Angjoo Kanazawa, Carlos D. Castillo, and David W. Jacobs. SfSNet: Learning shape, reflectance and illuminance of faces in the wild. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 1, 2, 5, 6
+[40] Davoud Shahlaei and Volker Blanz. Realistic inverse lighting from a single 2d image of a face, taken under unknown and complex lighting. In IEEE International Conference on Automatic Face and Gesture Recognition, 2015. 2
+[41] Hyunjung Shim. Faces as light probes for relighting. Optical Engineering, 51(7):077002-1, 2012. 2
+[42] Zhixin Shu, Sunil Hadap, Eli Shechtman, Kalyan Sunkavalli, Sylvain Paris, and Dimitris Samaras. Portrait lighting transfer using a mass transport approach. ACM Transactions on Graphics (TOG), 37(1):2, 2018. 3, 7
+[43] Zhixin Shu, Ersin Yumer, Sunil Hadap, Kalyan Sunkavalli, Eli Shechtman, and Dimitris Samaras. Neural face editing with intrinsic image disentangling. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+
+[44] Tiancheng Sun, Jonathan T Barron, Yun-Ta Tsai, Zexiang Xu, Xueming Yu, Graham Fyffe, Christoph Rhemann, Jay Busch, Paul Debevec, and Ravi Ramamoorthi. Single image portrait relighting. ACM Transactions on Graphics (SIGGRAPH), 38(4):79, 2019. 2, 7
+[45] S. Suwajanakorn, I. Kemelmacher-Shlizerman, and S.M. Seitz. Total moving face reconstruction. In European Conference on Computer Vision, 2014. 2
+[46] Neal Wadhwa, Rahul Garg, David E Jacobs, Bryan E Feldman, Nori Kanazawa, Robert Carroll, Yair Movshovitz-Attias, Jonathan T Barron, Yael Pritch, and Marc Levoy. Synthetic depth-of-field with a single-camera mobile phone. ACM Transactions on Graphics (TOG), 37(4):64, 2018. 6, 8
+[47] Yang Wang, Zicheng Liu, Gang Hua, Zhen Wen, Zhengyou Zhang, and D Samaras. Face re-lighting from a single image under harsh lighting conditions. In IEEE Conference on Computer Vision and Pattern Recognition, 2007. 2
+[48] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600-612, 2004. 5
+[49] Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In IEEE Asilomar Conference on Signals, Systems & Computers, volume 2, 2003. 5
+[50] Zhen Wen, Zicheng Liu, and T S Huang. Face relighting with radiance environment maps. In IEEE Conference on Computer Vision and Pattern Recognition, 2003. 2
+[51] Ying Xiong, Ayan Chakrabarti, Ronen Basri, Steven J. Gortler, David W. Jacobs, and Todd Zickler. From shading to local shape. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(1), 2014. 3, 4, 5
+[52] Zexiang Xu, Kalyan Sunkavalli, Sunil Hadap, and Ravi Ramamoorthi. Deep image-based relighting from optimal sparse samples. ACM Transactions on Graphics (TOG), 37(4):126, 2018. 2
+[53] Ye Yu and William AP Smith. InverseRenderNet: Learning Single Image Inverse Rendering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3155-3164, 2019. 2
+[54] Edward Zhang, Michael F. Cohen, and Brian Curless. Emptying, refurbishing, and relighting indoor spaces. ACM Transactions on Graphics, 35(6), 2016. 2
+[55] Edward Zhang, Michael F Cohen, and Brian Curless. Discovering point lights with intensity distance fields. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[56] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 5, 7
+[57] Ruo Zhang, Ping-Sing Tsai, James Edwin Cryer, and Mubarak Shah. Shape-from-shading: a survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(8):690-706, 1999. 2
+[58] Hao Zhou, Sunil Hadap, Kalyan Sunkavalli, and David W Jacobs. Deep single-image portrait relighting. In IEEE International Conference on Computer Vision, 2019. 2, 7
\ No newline at end of file
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/images.zip b/learningphysicsguidedfacerelightingunderdirectionallight/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8dbeb932ce5326e8bd78894eb0fe9023d6712ef0
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b1d5de30c552a3e5dcdb1da8bf6d71be235d4be59a773cc7140008872e507c3
+size 496791
diff --git a/learningphysicsguidedfacerelightingunderdirectionallight/layout.json b/learningphysicsguidedfacerelightingunderdirectionallight/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2b4b025a6f7ce3572f4ddf20f6e4ce19986e0dc9
--- /dev/null
+++ b/learningphysicsguidedfacerelightingunderdirectionallight/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ac52d768081e5eb1182b498cb152619bc6e5598ff224b9d9df726649021500de
+size 451876
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_content_list.json b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..782489cfb544cfec2a09fe56e710f1f5d4695b53
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9e2e3507968beb8fc20b8148f12da94f360f95a3936cc5463ab3f76a9fcff32e
+size 80358
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_model.json b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b318ce7fbcbbfd6075179a02200db19520da3bd
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a4d6457627f1fc8e4f61b959eb64dcdc5f86094d06afa41b8aa34aa91af1958
+size 103684
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_origin.pdf b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9654593186fe484d9733e018e0ba5d9fb98c7430
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/ada4a45a-7986-4382-95b9-bba98e98e242_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:69279f1f93cd459b520006854ff9bc78bad6ced1d7c9a99d380dea4de1490da6
+size 2564268
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/full.md b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9e563c02d8ac99a7e344b4301034c3bef53f3e83
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/full.md
@@ -0,0 +1,367 @@
+# Learning Rank-1 Diffractive Optics for Single-shot High Dynamic Range Imaging
+
+Qilin Sun
+
+Ethan Tseng
+
+Qiang Fu1
+
+Wolfgang Heidrich1
+
+Felix Heide2
+
+$^{1}$ KAUST $^{2}$ Princeton University
+
+# Abstract
+
+High-dynamic range (HDR) imaging is an essential imaging modality for a wide range of applications in uncontrolled environments, including autonomous driving, robotics, and mobile phone cameras. However, existing HDR techniques in commodity devices struggle with dynamic scenes due to multi-shot acquisition and post-processing time, e.g. mobile phone burst photography, making such approaches unsuitable for real-time applications. In this work, we propose a method for snapshot HDR imaging by learning an optical HDR encoding in a single image which maps saturated highlights into neighboring unsaturated areas using a diffractive optical element (DOE). We propose a novel rank-1 parameterization of the DOE which drastically reduces the optical search space while allowing us to efficiently encode high-frequency detail. We propose a reconstruction network tailored to this rank-1 parametrization for the recovery of clipped information from the encoded measurements. The proposed end-to-end framework is validated through simulation and real-world experiments and improves the PSNR by more than 7 dB over state-of-the-art end-to-end designs.
+
+# 1. Introduction
+
+High dynamic range (HDR) imaging has become a commodity imaging technique as evident by its applications across many domains, including mobile consumer photography, robotics, drones, surveillance, content capture for display, driver assistance systems, and autonomous driving. The pixels in conventional CMOS and CCD image sensors act as potential wells that saturate when the well capacity is reached. Unlike film, which provides a gradual compression of high intensities, digital image sensors thus suffer from a hard cutoff at some peak intensity, so that information about the saturated bright regions is irrevocably lost. By reducing the exposure time, brighter regions can be recovered, but at the cost of under-exposing, i.e., reducing signal photons in darker image regions. As a result, single captures of conventional sensors provide high fidelity only
+
+for low-contrast scenes, while struggling for high-contrast scenes at night with both low- and high-flux scene content.
+
+Although existing HDR imaging methods in widely deployed consumer smartphone devices [20, 45, 23] successfully overcome this limitation by acquiring bursts of captures, the combined capture and processing time of multiple seconds [20] is prohibitive for many applications in robotics and autonomous driving that demand real-time feeds.
+
+Faster multi-capture imaging methods [6, 56, 42], relying on only 2-3 low-dynamic range exposures and hardware exposure fusion, fail for higher dynamic scenes typical in automotive and robotics applications. As an alternative, emerging sensor designs multiplex exposures on the sensor [48, 64, 46], however, at the cost of spatial resolution required for spectral or spatial information. Optical splitting methods using multiple sensors [62] are often not practical in an application due to their cost and footprint. To tackle this issue, a line of recent work explores the hallucination of HDR images [9, 12] from single low-dynamic range (LDR) captures. These methods can only rely on semantic context but no measurement signal to recover the clipped HDR regions. In an alternative direction, Rouf et al. [55] proposed a hand-crafted star filter attachment to optically encode lost information by spreading out saturated highlights to nearby regions. Unfortunately, their approach only achieves low image quality far below that of recent hallucination approaches.
+
+In this work, we revisit this idea, but by learning an optical HDR encoding in an end-to-end optimization. To this end, we jointly design the optical point spread function (PSF) together with the inverse reconstruction method, i.e., the post-capture processing that recovers the latent HDR scene from the input measurement, which we formulate as an (RAW-)image-to-image neural network. However, we found that applying existing end-to-end methods [60, 43] easily finds a local minimum of the vast design space, parameterized by an unconstrained diffractive phase plate optic. Instead, we parameterize the diffractive element in the proposed optical design with a rank-1 phase pattern. This constrained PSF design spaces makes us to tailor the
+
+
+Prototype
+
+
+
+
+Sensor Measurement
+Figure 1: Due to pixel saturation, image detail in bright regions is lost in a single snapshot LDR image. Our camera, with the learned optic prototype (left), captures LDR images where high-intensity image content is encoded through a series of streaks (center left). This allows us to reconstruct the lost highlights (center, center right) with a specialized two-stage CNN.
+
+
+Reconstruction
+
+
+Measurement
+Reconstruction
+
+
+Reference
+
+architecture of the reconstruction network to the recovery from such streak-encoded measurement. We optimize the diffractive optic and reconstruction algorithm jointly in an end-to-end optimization which finds a local minimum that outperforms vanilla end-to-end designs with similar network capacity by more than 7 dB PSNR.
+
+We demonstrate the proposed approach outperforms the state-of-the-art snapshot HDR methods in simulation. We prototype our design camera system by fabricating the DOE and demonstrate on a broad set of experimental in-the-wild captures, that this method generalizes to unseen scenarios, outperforming existing optical designs. Our method is most effective for recovering concentrated high-intensity light sources such as street lamps. In addition, we also show that the proposed network is effective in removing glare from in-the-wild automotive optics with windshield-induced streaks.
+
+Specifically, we make the following contributions:
+
+- We introduce a novel rank-1 parameterized optical design that learns to encode saturated information with a streak-like PSF.
+- We co-design a tailored reconstruction network which first splits the unsaturated regions from the coded information and then recovers the saturated highlights from the encodings.
+- We validate the proposed method in simulation and on real-world measurements acquired with a fabricated prototype system. The proposed method outperforms existing designs by over 7 dB in simulation.
+
+# 2. Related Work
+
+Multi-exposure HDR Imaging Traditionally, HDR imaging is performed by sequentially capturing LDR images for different exposures and then combining them through exposure bracketing [37, 7, 52, 15, 41, 19]. This approach is unsuitable for handling highly dynamic scenes and for fast captures necessary for real-time applications. More rapid HDR imaging can be realized with burst HDR acquisition
+
+[20, 45, 23]. However, these techniques still suffer from motion artifacts and require seconds for capture and processing for a single acquisition.
+
+To alleviate motion artifacts, prior work has employed HDR stitching [31, 33], optical flow [36], patch matching [13, 14, 26, 30, 57], and deep learning [28, 29]. These techniques have even enabled HDR videography, but the post-processing cost makes them impractical for fast capture. Ultimately, these approaches attempt to find a tradeoff between densely sampling different exposures and postprocessing computation time.
+
+HDR Snapshot Reconstruction A large body of work has explored reconstructing HDR content from a single LDR image, a process referred to as inverse tone-mapping. Early work in this domain utilized heuristic approaches [3, 8, 44, 53], but often does not provide satisfying HDR reconstructions [1, 40]. Building upon these works, deep learning has been used to hallucinate HDR content from LDR images [9, 12, 47, 10, 66, 34, 35, 63, 39, 50, 27]. These approaches generate plausible reconstructions of low-light regions but fail to recover saturated details accurately.
+
+Several approaches encode information into the captured LDR image to allow for better estimation of highlights. This can be achieved by modifying the sensor architecture through spatially varying pixel exposures [48, 18], convolutional sparse coding [58], compressed sensing [16], or modulo cameras [68]. Drawbacks of these approaches include the need for expensive custom cameras and loss of detail in the low dynamic range. Furthermore, recovering highlights in scenes involving very large dynamic ranges is still a challenge for these approaches. Instead of modifying the sensor, other approaches place optical components in front of conventional cameras to affect the captured LDR image. Hirakawa et al. [24] utilized color filters to avoid saturation of any single color channel. Rouf et al. [55] proposed to use a known optical element to spread saturated information content into unsaturated regions. Although this allows for high fidelity estimation of highlights, these techniques leave noticeable artifacts in the unsaturated areas.
+
+End-to-end Optics Design Joint optimization of optics and reconstruction has demonstrated superior performance over traditional heuristic approaches in color image restoration [4], microscopy[25, 32, 49, 59], monocular depth imaging [5, 17, 21, 65], super-resolution and extended depth of field [60], and time-of-flight imaging [38, 61].
+
+We propose an end-to-end optimization framework for single-shot HDR imaging. Drawing inspiration from Rouf et al. [55], our optimized optic is a DOE that encodes clipped highlights into specific unsaturated regions. The ample design space of DOEs allows for rich optical encodings but has the unintended consequence of being challenging to optimize. As such, investigating a suitable parameterized model of the DOE becomes a critical design step. Recent work, in parallel to ours, explores end-to-end optimization of optics for HDR imaging by directly learning a heightmap for the DOE [43]. This approach causes the DOE to produce shifted scaled copies of saturated content that allow for HDR reconstruction but that are difficult to remove from the unsaturated regions. Another approach used by Sitzmann et al. [60] is to represent the DOE with Zernike polynomials, but this only allows the DOE to affect low frequencies and is inadequate for capturing high-frequency detail in HDR scenes.
+
+In this work, we found that by constraining the DOE height map model to a rank-1 phase pattern, our DOE learns to produce streak patterns that are easy to remove from the unsaturated regions but still allow for high fidelity reconstruction of saturated image content. We employ a structured multi-stage CNN, instead of a single-stage U-Net as in [43], to perform these tasks step by step.
+
+# 3. Image Formation Model
+
+Our image formation model is illustrated in Figure 2. In the following, we describe the individual parts of this forward model, directly parameterized in a way that can later be used for end-to-end optimization.
+
+Point Light Source. Our optical model begins with a point light source placed $5\mathrm{m}$ in front of the DOE plane. Like most camera systems, the PSF for our optical model is depth dependent. We chose a $5\mathrm{m}$ focal point as a compromise for near and infinite scene depths. We also analyze the robustness with varying depth, please refer to the supplemental material for details.
+
+The point source generates a spherical wave. Upon the arrival of the wavefront to the DOE plane the phase of the wavefront can be expressed as
+
+$$
+\mathbf {u} _ {-} = A _ {0} e ^ {j k \sqrt {x ^ {\prime 2} + y ^ {\prime 2} + z ^ {2}}}, \tag {1}
+$$
+
+where $A_0$ is the amplitude, $k = 2\pi /\lambda$ is the wave number, and $z$ is the distance from the point source and DOE center.
+
+
+Figure 2: Our optical forward model consists of a point light source which generates a spherical wave that is modulated by the DOE and focusing lens before being captured by the sensor. The corresponding PSF is used to simulate images captured by our camera prototype.
+
+DOE Layer and Rank-1 Factorization. We then use a DOE layer to modulate the incident wave and set the DOE plane as the aperture $\mathcal{A}(x', y')$ of the whole optical system. The modulated field can be expressed as
+
+$$
+\mathbf {u} _ {+} = \mathcal {A} \left(x ^ {\prime}, y ^ {\prime}\right) \mathbf {u} _ {-} e ^ {j k \left(n _ {\lambda} - 1\right) \mathbf {h} \left(x ^ {\prime}, y ^ {\prime}\right)}, \tag {2}
+$$
+
+where $n_{\lambda}$ is the wavelength-dependent refractive index of the DOE and $\mathbf{h}(x',y')$ is the height map of the DOE.
+
+Existing end-to-end frameworks have used an unconstrained height map model for the DOE, where each location in the $m \times m$ height map is a learnable parameter [60]. We found that this model has a tendency to produce local minima in the form of very local encodings such as shifted and scaled copies of highlights, as also shown in parallel work [43], but rarely produces non-local encodings such as streaks. Using these local encodings provides lower quality HDR reconstructions as they are difficult to separate from the unsaturated areas in the close neighborhood. We note that alternative parameterizations such as a truncated Zernike basis [60] are also not suitable for our application, because even though it can model non-local encodings, it is only suitable for low spatial frequencies and cannot encode high-frequency content.
+
+To tackle this challenge, we propose a novel rank-1 decomposition of the 2D height map which not only can encode high frequencies but also reduces the number of parameters touched in training. The height map at location $(x', y')$ is given by
+
+$$
+\mathbf {h} \left(x ^ {\prime}, y ^ {\prime}\right) = h _ {\max } \sigma \left(\mathbf {v q} ^ {\top}\right), \tag {3}
+$$
+
+where $\mathbf{v} \in \mathbb{R}^{m \times 3}$ and $\mathbf{q} \in \mathbb{R}^{m \times 3}$ are trainable variable basis pairs whose outer product describes the DOE height map, $\sigma$ is the sigmoid function, and $h_{\max} = 1.125\mu \mathrm{m}$ is the maximum height that corresponds to $2\pi$ phase modulation at $\lambda = 550\mathrm{nm}$ for fused silica. The sigmoid function $\sigma(x) = 1 / (1 + e^{-x})$ is applied element-wise to $\mathbf{vq}^{\top}$ to clamp the range to [0,1].
+
+Our rank-1 parameterized model encourages global optical encodings, such as streaks, while still permitting local encodings, such as peaks. Furthermore, this parameterization produces a grating-like height map which is more suitable for DOE fabrication. In addition to the rank-1 parameterization, we also use an additional constraint to assist the framework in finding proper optical encodings. To ensure that highlights are encoded without severely affecting low-light regions, we adopt a regularization loss to constrain $94\%$ of the energy into the center of the PSF and to spread the remaining $6\%$ into the surroundings. We found that if we take our converged height map and continue optimizing without our rank-1 parameterization, then the optimized height profile is still maintained, which suggests that we do indeed find a good local optimum. Please refer to the Supplemental Material for details.
+
+Focusing-Lens Layer. We place a well-corrected lens (approximated as a thin lens) immediately behind the DOE. This lens is responsible for focusing the image, and allows the DOE to be purely optimized for the HDR encoding without also requiring the focusing operation for broadband illumination. The wave field $\mathbf{u}_l$ can be expressed as
+
+$$
+\mathbf {u} _ {l} = \mathbf {u} _ {+} e ^ {j k (f - \sqrt {x ^ {\prime 2} + y ^ {\prime 2} + f ^ {2}})}. \tag {4}
+$$
+
+Fresnel Propagation Layer. We use the Fresnel approximation here to describe the field propagation from the focusing-lens to sensor. Specifically, the field $\mathbf{u}_s$ at the sensor plane can be expressed as
+
+$$
+\mathbf {u} _ {s} = \mathcal {F} ^ {- 1} \left\{\mathcal {F} \left\{\mathbf {u} _ {l} \right\} \mathcal {H} \right\}, \tag {5}
+$$
+
+where $\mathcal{H}(f_x, f_y) = e^{jkL}e^{-j\pi \lambda L(f_x^2 + f_y^2)}$ , with $f_x = 1/2\Delta x'$ and $f_y = 1/2\Delta y'$ , is the Fresnel propagation kernel and $L$ is the distance between the normal lens and sensor plane. Finally, the PSF corresponding to the entire image formation model is given by $\mathbf{p} \propto |\mathbf{u}_s|^2$ .
+
+Sensor Model. The image captured by the sensor $\mathbf{I}_s$ is given by $\mathbf{I}_s = \mathbf{s}(\mathbf{I}*\mathbf{p} + \eta)$ (6)
+
+where $\mathbf{I}$ is the high dynamic range ground truth image, $\mathbf{p}$ is the point-spread function of the optical system, $\eta$ is sensor noise, and $\mathbf{s}(\cdot)$ is the camera response function that clips to [0, 1]. Note that $\mathbf{I}_s$ and $\mathbf{I}$ are both continuous variables.
+
+# 4. End-to-end Design and Reconstruction
+
+The proposed end-to-end imaging system consists of three main parts: a differentiable optical model, a robust network for recovering and separating the unsaturated image $\mathbf{I}_{\mathbb{U}}$ (i.e., pixel values in [0, 1]) from the residual information $\mathbf{I}_r$ encoded by the saturated image $\mathbf{I}_{\mathbb{S}}$ (i.e., pixel values in $[1,2^{8}]$ ), and a reconstruction network for inferring $\mathbf{I}_{\mathbb{S}}$ from $\mathbf{I}_r$ . In a final step, the recovered unsaturated component $\mathbf{I}_{\mathbb{U}}$ and the recovered highlight component $\mathbf{I}_{\mathbb{S}}$
+
+are combined using a fusion network to predict the latent HDR image $\mathbf{I}$ .
+
+Differentiable Optical Model We implement the optical model as described in Section 3.
+
+Residual Splitting Network. We first discuss the network for reconstructing $\mathbf{I}_{\mathbb{U}}$ and separating this unsaturated part from $\mathbf{I}_r$ . Our residual splitting network $f_{\mathbb{U}}$ takes in the coded LDR sensor capture $\mathbf{I}_s$ and outputs a prediction $\hat{\mathbf{I}}_{\mathbb{U}}$ for the unsaturated image and a prediction $\hat{\mathbf{I}}_r$ for the residual information:
+
+$$
+\hat {\mathbf {I}} _ {\mathbb {U}}, \hat {\mathbf {I}} _ {r} = f _ {\mathbb {U}} \left(\mathbf {I} _ {s}\right). \tag {7}
+$$
+
+Inspired by recent work on separation of reflection from transmission in single-shot images [67], the network first uses a pre-trained VGG model to extract feature maps. Specifically, we used the pre-trained VGG-19 network to extract "conv1_2", "conv2_2", "conv3_2", "conv4_2" and "conv5_2" feature maps and bilinearly upsampled them to the input image size. These feature maps, along with the input image, are then compressed to 64 channels by using a $1 \times 1$ convolution layer before being fed through seven $3 \times 3$ dilated convolution layers with dilation rates from 1 to 64 (Dilated Full-Resolution Reconstruction Block in Fig 3). Each dilated convolution layer has 64 channels. Finally, a $1 \times 1$ convolution layer is used to reduce to six channels, three of which correspond to $\hat{\mathbf{I}}_{\mathbb{U}}$ and the other three correspond to $\hat{\mathbf{I}}_r$ . Each dilated convolution layer is followed by a Leaky ReLu activation (slope = 0.2) and an instance normalization layer. The loss on the unsaturated pixels $\mathcal{L}_{\mathbb{U}}$ as shown in Figure 3 forces this network to effectively split streaks from the unsaturated image $\hat{\mathbf{I}}_{\mathbb{U}}$ .
+
+Highlight Reconstruction Network. After splitting the unsaturated image from the residual encoding we then use the residual to reconstruct highlights. Since the residual encoding was produced by convolving the highlights with our designed PSF, reconstructing the highlights becomes a deconvolution problem. Our network $f_{\mathbb{S}}$ thus takes in the residual prediction $\hat{\mathbf{I}}_r$ and outputs a prediction $\hat{\mathbf{I}}_{\mathbb{S}}$ of the highlights:
+
+$$
+\hat {\mathbf {I}} _ {\mathbb {S}} = f _ {\mathbb {S}} \left(\hat {\mathbf {I}} _ {r}\right). \tag {8}
+$$
+
+We rely on a variation of the U-Net architecture [54] to deal with this deconvolution task. Specifically, our U-Net has five scales with four consecutive downsamplings (max-pools) and four consecutive upsamplings (nearest neighbor upsampling following by a $3 \times 3$ convolution layer). Each layer uses a $3 \times 3$ kernel window except for the first layer with $7 \times 7$ and the last layer with $1 \times 1$ . Since the coded information is in the range $[0,1]$ while the values to reconstruct are in the range $[1,2^8]$ , we avoid using normalization in the last two convolution layers to allow the network to learn a large range of output values. Similar to the splitting network, the loss $\mathcal{L}_{\mathbb{S}}$ encourages high-fidelity highlight reconstructions.
+
+
+Figure 3: Our end-to-end pipeline consists of the image formation model and CNN reconstruction. Our CNN is divided into several stages that focus on separating the encoding from the captured LDR image, recovering the highlights, and fusing the recovered unsaturated and saturated regions to produce the final HDR prediction. After fabrication our image formation model is replaced by real-world captures.
+
+Fusion Network. In order to avoid boundary artifacts caused by combining $\hat{\mathbf{I}}_{\mathbb{U}}$ and $\hat{\mathbf{I}}_{\mathbb{S}}$ into a single image, we adopt a light-weight fusion network $f_{\mathbb{F}}$ to combine them and create the final predicted HDR image $\hat{\mathbf{I}}_{\mathbb{F}}$ :
+
+$$
+\hat {\mathbf {I}} _ {\mathbb {F}} = f _ {\mathbb {F}} \left(\hat {\mathbf {I}} _ {\mathbb {U}}, \hat {\mathbf {I}} _ {\mathbb {S}}\right). \tag {9}
+$$
+
+The fusion network applies two $3 \times 3$ convolution layers with 64 feature channels to $\hat{\mathbf{I}}_{\mathbb{U}}$ and $\hat{\mathbf{I}}_{\mathbb{S}}$ separately, concatenates the feature maps together, and then applies two $3 \times 3$ convolution layers with 32 and 3 feature channels to produce the final predicted output $\hat{\mathbf{I}}_{\mathbb{F}}$ .
+
+# 4.1. Loss Functions
+
+Our loss functions consist of two intermediary losses $\mathcal{L}_{\mathbb{U}}$ and $\mathcal{L}_{\mathbb{S}}$ which we apply to the intermediate outputs of the residual splitting network and the highlight reconstruction network respectively. We also apply a final loss $\mathcal{L}_{\mathbb{F}}$ to the final output of our network. The total loss that we minimize when training our network is given by
+
+$$
+\mathcal {L} _ {\text {T o t a l}} = \mathcal {L} _ {\mathbb {U}} + \mathcal {L} _ {\mathbb {S}} + \mathcal {L} _ {\mathbb {F}}. \tag {10}
+$$
+
+Loss on Unsaturated Regions We adopt a perceptual loss as a metric of difference between the intermediate unsaturated image prediction $\hat{\mathbf{I}}_{\mathbb{U}}$ and the ground truth unsaturated image $\mathbf{I}_{\mathbb{U}}$ . Our perceptual loss is defined using the pre-trained VGG-19 network and is given by
+
+$$
+\mathcal {L} _ {\mathrm {V G G}} (\hat {x}, x) = \sum_ {l} \nu_ {l} \| \phi_ {l} (\hat {x}) - \phi_ {l} (x) \| _ {1}, \tag {11}
+$$
+
+where $\{\nu_l\}$ are loss balancing weights and $\phi_l$ are the feature maps from the $l$ -th layer of pre-trained VGG-19. Specifically, we use the "conv2_2", "conv3_2", and "conv4_2" layers of the VGG-19 network.
+
+To better separate the unsaturated region prediction from the residual prediction, we apply an exclusion loss [67] $\mathcal{L}_{\mathrm{excl}}$
+
+during network fine-tuning. We assume that the edges of the unsaturated image and the edges of the residual encoding are unlikely to overlap, and we apply this assumption through an exclusion loss that penalizes correlation between the predicted unsaturated image and the residual in the gradient domain. The exclusion loss is defined to be
+
+$$
+\mathcal {L} _ {\mathrm {e x c l}} = \left\| \tanh \left(\eta_ {\mathbb {U}} \mid \nabla \hat {\mathbf {I}} _ {\mathbb {U}} \right\rvert\right) \odot \tanh \left(\eta_ {r} \mid \nabla \hat {\mathbf {I}} _ {r} \right\rvert \| _ {F}, \tag {12}
+$$
+
+where $\eta_{\mathbb{U}} = \sqrt{\|\hat{\mathbf{I}}_r\|_F / \|\hat{\mathbf{I}}_{\mathbb{U}}\|_F}$ and $\eta_r = \sqrt{\|\hat{\mathbf{I}}_{\mathbb{U}}\|_F / \|\hat{\mathbf{I}}_r\|_F}$ represent normalization factors, and $\| \cdot \| _F$ represents the Frobenius norm.
+
+In conclusion, the loss that is applied to the intermediate output of the residual splitting network is
+
+$$
+\mathcal {L} _ {\mathbb {U}} = \alpha_ {1} \mathcal {L} _ {\mathrm {V G G}} \left(\hat {\mathbf {I}} _ {\mathbb {U}}, \mathbf {I} _ {\mathbb {U}}\right) + \alpha_ {2} \mathcal {L} _ {\mathrm {e x c l}} \left(\hat {\mathbf {I}} _ {\mathbb {U}}, \hat {\mathbf {I}} _ {r}\right). \tag {13}
+$$
+
+Loss on Saturated Regions To extract information and perform deconvolution from the residual artifacts we use the same VGG loss given in Eq 11 for the intermediate prediction of the saturated highlights:
+
+$$
+\mathcal {L} _ {\mathbb {S}} = \beta \mathcal {L} _ {\mathrm {V G G}} \left(\tilde {\mathbf {I}} _ {\mathbb {S}}, \mathbf {I} _ {\mathbb {S}}\right). \tag {14}
+$$
+
+Loss on Fused Output We applied a Huber loss with $\gamma = 1 / 2$ to the ground truth HDR image $\mathbf{I}$ and final network prediction $\hat{\mathbf{I}}_{\mathbb{F}}$ :
+
+$$
+\mathcal {L} _ {\mathbb {F}} = \mathcal {L} _ {\text {H u b e r}} \left(\left(\hat {\mathbf {I}} + \epsilon\right) ^ {\gamma}, (\mathbf {I} + \epsilon) ^ {\gamma}\right). \tag {15}
+$$
+
+# 4.2. Implementation and Training
+
+We implement our rank-1 DOE height map model and reconstruction network in TensorFlow. Our network assumes inputs are in the range $[0, 1]$ , and outputs are in the range $[0, 2^8]$ . The model is jointly optimized using the Adam optimizer with polynomial learning rate decay. For more details, please refer to the Supplemental Material.
+
+Table 1: Quantitative comparison across single-shot HDR methods.
+
+| Methods | PSNR | HDR-VDP 2 |
| Ours | 48.26 | 74.47 |
| Deep Optics [43] | 40.30 | 67.96 |
| Glare-HDR [55] | 32.23 | 56.76 |
| HDR-CNN [9] | 34.06 | 54.34 |
| LDR | 33.57 | 52.43 |
+
+# 4.3. Dataset
+
+To ensure that our model accurately reconstructs highlights, we gathered HDR images that contain large dynamic ranges with small saturated regions. These include a mix of urban and rural scenes at night as well as indoor scenes from 19 different sources, see Supplemental Material for a complete list of dataset sources. To accommodate different image sizes we manually took $512 \times 512$ crops of the images specifically located at where the saturated regions were. After preprocessing, we had a total of 2039 images for training and 36 images for testing.
+
+As part of the sensor simulation, we saturate a random percentage of pixels during training. That is, we multiply images by a scale factor such that $1\%$ to $3\%$ of pixels are larger than 1. After the scaling, we clip extreme pixel values, any pixel values larger than $2^{8}$ are set to $2^{8}$ . We also augment the images using random rotations and flips. During testing, we saturate exactly $1.5\%$ of the pixels in all test images and again clip pixel values larger than $2^{8}$ .
+
+# 5. Evaluation and Comparisons
+
+We evaluate our approach in simulation against recent state-of-the-art single-shot HDR methods [43, 55, 9]. For HDR-CNN we used their pre-trained model. For Rouf et al.'s glare filter method, we applied an 8-point star PSF to the image using their experimentally obtained glare filter. For Deep Optics, we used the authors' PSF and trained their network on our dataset. Table 1 displays quantitative results on the test set. PSNR is calculated in the linear domain with a maximum value of $2^{8}$ . HDR-VDP Version 2.2.1 was used with default settings except for pixels per degree which was computed using 24 inch diagonal display size, $512 \times 512$ resolution, and $1\mathrm{m}$ viewing distance. We report the Quality Correlation score. Figure 4 shows qualitative comparisons of our approach against others.
+
+# 5.1. Ablation Study
+
+We performed an ablation study to illustrate the benefits of our proposed optical design and reconstruction network. Table 2 compares performance when using different reconstruction networks. We found that our network was best suited to HDR recovery with our learned PSF. Table 2 also shows performance when using different PSFs with our re
+
+Table 2: Ablation study with different PSFs and reconstruction networks.
+
+| PSF | Network | PSNR | HDR-VDP 2 |
| Ours | Ours | 48.26 | 74.47 |
| Ours | Deep Optics [43] | 37.91 | 61.30 |
| Ours | HDR-CNN [9] | 33.51 | 52.66 |
| Dual Peak PSF [43] | Ours | 43.08 | 70.25 |
| Star PSF [55] | Ours | 42.62 | 68.03 |
| Dirac PSF | Ours | 37.25 | 63.45 |
+
+construction network. For these experiments, only the network was optimized, and the PSF remains fixed. We observed that our PSF outperforms alternative PSF designs.
+
+# 6. Experimental HDR Captures
+
+We fabricate the optimized DOE using multilevel photolithography techniques [51, 22]. Due to fabrication limitations, we first slice the continuous phase mask into four layers with $2^{4} = 16$ phase levels. This results in a high diffraction efficiency (theoretically more than $90\%$ ) [11]. By repeating the photolithography and reactive ion etching (RIE) for four iterations, we fabricated the phase mask on a $0.5 \mathrm{~mm}$ fused silica substrate with aperture size $9.16 \mathrm{~mm}$ and feature size $6 \mu \mathrm{m}$ . Please refer to the Supplemental Material for further fabrication details.
+
+Our imaging pipeline uses a Sony A7 with a pixel pitch of $5.97\mu \mathrm{m}$ , and the phase mask is closely placed in front of a Zeiss $50~\mathrm{mm}$ f/1.4 lens (recall that we do not model the propagation between DOE and standard lens). Figure 5 shows that the real-world PSF matches the simulated PSF with slight contrast loss due to manufacturing imperfections and model approximations. Therefore, we perform a PSF calibration step where we capture the real-world PSF and then use it to fine-tune our reconstruction network. The real-world PSF is obtained by placing a white point light source $5\mathrm{m}$ away from the sensor, taking multi-exposure (five) snapshots at $3\mathrm{EV}$ intervals, and then fusing the snapshots in linear space using MATLAB's HDR toolbox.
+
+# 6.1. Results
+
+Figures 1 and 6 show real-world captures and reconstructions with our setup and reconstruction procedure. Reference images were taken by the same camera without the DOE (same aperture and position) using exposure fusion as described above for the PSF capture. In Figure 1, we correctly reconstruct highlights in the illuminated letters while removing most of the encoding streaks. In Figure 6 the left images show a brick wall where details are lost due to the light sources. Our method recovers these details, including color and structure. Note that our method succeeds despite interference between the background image and our streak encodings. The middle images show that our method also works for dynamic scenes with of flashing
+
+
+Figure 4: Visual comparison of different snapshot HDR methods in simulation. HDR-CNN [9] severely underestimates the intensity of saturated regions. Glare-HDR [55] often leaves artifacts and fails to estimate highlights correctly. The copied peaks for Deep Optics [43] sometimes overlap with the saturated areas and consequently are ineffective for highlight reconstruction. Please zoom in to view image details, such as the fine structures within the saturated areas.
+
+
+Figure 5: Comparison of simulation versus the real-world for the heightmap and PSF. Fine-tuning was performed with the captured PSF.
+
+strobe lights, which are challenging for burst HDR methods as the bursts would not be synchronized with the strobe. The right side shows that detailed reconstructions can be obtained for high-intensity lamp regions.
+
+The presented reconstruction results and additional results in the Supplemental Material validate the proposed method for various scene types, including high-contrast night time urban environments and indoor settings. However, it is important to use a low exposure time as our
+
+method fails when the streaks are overexposed.
+
+To evaluate real-time applicability we benchmarked the reconstruction latency. Our unoptimized network in TensorFlow takes $530~\mathrm{ms}$ on an Nvidia Titan RTX to process a single LDR capture. After TensorRT optimization and network pruning our network takes $85~\mathrm{ms}$ with fp32 precision and $44~\mathrm{ms}$ with fp16 precision on the same GPU.
+
+# 7. Grating Optics In-the-Wild
+
+This section explores reconstruction without a designed optic, but with grating-like optics in the wild. As such, front-facing automotive cameras suffer from glare induced by thin lines of dust and dirt remaining on the windshield after wiping [2], see Fig. 7. These thin streaks of dust are oriented perpendicular to the windshield wiping orientation on a typically curved windshield. As a result, they scatter light along streaks with varying orientation, which negatively impacts the imaging systems of autonomous vehicles during night time driving. Removing these streaks could
+
+
+Figure 6: Real-world captures using fabricated DOE and reconstruction results. Note that the middle image is of a strobe light array with $50\mathrm{Hz}$ frequency. The reference images of $-4\mathrm{EV}, -6\mathrm{EV}$ and $-8\mathrm{EV}$ are taken by the same camera without the DOE (same aperture and position) by reducing the exposure time to $1/2^{4}, 1/2^{6}$ and $1/2^{8}$ respectively. Please zoom in to view image details.
+
+
+
+
+Figure 7: Automotive streaks are caused by grating-like patterns on the windshield. Applying our residual splitting network to the corresponding PSFs allows us to remove them.
+
+improve performance for display applications, such as digital mirrors, as well as downstream computer vision tasks.
+
+Although the PSFs corresponding to these streaks are different from our learned PSF, we can still apply our residual splitting network for removing these streaks. To demonstrate this, we collected several night time driving video sequences. We modeled the streak PSF in these videos using a 2-point star PSF, and we trained the residual splitting network using the same dataset from Section 4.3 and the unsaturated loss from Eq 13. To account for variations in the rotation angle of the 2-point star PSF, we uniformly sampled the rotation angle within $(-8, -2.5) \cup (2.5, 8)$ radians where 0 radians refer to the 2-point star PSF being parallel to a vertical line. Example snapshots along with removed glare results can be seen in Figure 7. For additional qualitative results, please refer to the Supplemental Material.
+
+# 8. Discussion
+
+Limitations Like other optical encoding methods, our method requires that the encoding streaks themselves are not saturated. While we can ensure this for applications where small, saturated regions are expected (e.g. night time driving and indoor navigation) our method does struggle with larger saturated regions. Please refer to the Supplemental Matrial for further discussion and failure examples.
+
+In the design phase, our simulation models how the DOE affects narrow RGB bands, and using a model with finer wavelength sampling would reduce the disparity between the simulated PSF and the real-world captured PSF. However, note, that such a model would be more time consuming to train, difficult to optimize, and requires a large corpus of HDR multispectral training data that does not exist today.
+
+State-of-the-art GPUs allow us to achieve real-time latencies, requiring multiple GPUs for high sensor resolutions, but are impractical for low-power consumer applications. Porting to dedicated hardware, such as power-efficient ASICs or FPGAs, is an important next step.
+
+Conclusion We present a novel approach tackling the challenge of estimating HDR images from single-shot LDR captures. To this end, we propose a rank-1 DOE encoding of HDR content and a catered reconstruction network, which when jointly optimized allow for snapshot HDR captures that outperform previous state-of-the-art methods. Going forwards, we envision making snapshot HDR capture truly practical by extending our optical model to handle greater scene information, such as depth and multispectral data, as well as designing our algorithms for specialized hardware for low-power processing at the edge.
+
+Acknowledgements. This work was supported by KAUST baseline funding.
+
+# References
+
+[1] Ahmet Ouz Akyüz, Roland W. Fleming, Bernhard E. Riecke, Erik Reinhard, and Heinrich H. Bulthoff. Do hdr displays support ldr content?: a psychophysical evaluation. In SIGGRAPH 2007, 2007. 2
+[2] Merrill J Allen. Automobile windshields, surface deterioration. Technical report, SAE Technical Paper, 1970. 7
+[3] Francesco Banterle, Patrick Ledda, Kurt Debattista, and Alan Chalmers. Inverse tone mapping. In GRAPHITE, 2006. 2
+[4] Ayan Chakrabarti. Learning sensor multiplexing design through back-propagation. ArXiv, abs/1605.07078, 2016. 3
+[5] Julie Chang and Gordon Wetzstein. Deep optics for monocular depth estimation and 3d object detection. ArXiv, abs/1904.08601, 2019. 3
+[6] Arnaud Darmont and Society of Photo-optical Instrumentation Engineers. High dynamic range imaging: sensors and architectures. SPIE Washington, 2012. 1
+[7] Paul E. Debevec and Jitendra Malik. Recovering high dynamic range radiance maps from photographs. In SIGGRAPH '08, 1997. 2
+[8] Piotr Didyk, Rafal Mantiuk, Matthias Hein, and Hans-Peter Seidel. Enhancement of bright video features for hdr displays. Comput. Graph. Forum, 27:1265-1274, 2008. 2
+[9] Gabriel Eilertsen, Joel Kronander, Gyorgy Denes, Rafal K Mantiuk, and Jonas Unger. HDR image reconstruction from a single exposure using deep cnns. ACM Transactions on Graphics (TOG), 36(6):178, 2017. 1, 2, 6, 7
+[10] Yuki Endo, Yoshihiro Kanamori, and Jun Mitani. Deep reverse tone mapping. ACM Transactions on Graphics (Proc. of SIGGRAPH Asia), 36(6):177, 2017. 2
+[11] Robert Edward Fischer, Biljana Tadic-Galeb, Paul R Yoder, Ranko Galeb, Bernard C Kress, Stephen C McClain, Tom Baur, Richard Plympton, Bob Wiederhold, and Bob Grant Alastair J. Optical system design, volume 1. Citeseer, 2000. 6
+[12] Konstantina Fotiadou, Grigorios Tsagkatakis, and Panagiotis Tsakalides. Snapshot high dynamic range imaging via sparse representations and feature learning. IEEE Transactions on Multimedia, 2019. 1, 2
+[13] Orazio Gallo, Natasha Gelfandz, Wei-Chao Chen, Marius Tico, and Kari Pulli. Artifact-free high dynamic range imaging. 2009 IEEE International Conference on Computational Photography (ICCP), pages 1-7, 2009. 2
+[14] Miguel Granados, Kwang In Kim, James Tompkin, and Christian Theobalt. Automatic noise modeling for ghost-free hdr reconstruction. ACM Trans. Graph., 32:201:1-201:10, 2013. 2
+[15] Michael D. Grossberg and Shree K. Nayar. High dynamic range from multiple images: Which exposures to combine? 2003. 2
+[16] William Guicquero, Antoine Dupret, and Pierre Vandergheynst. An algorithm architecture co-design for cmos compressive high dynamic range imaging. IEEE Transactions on Computational Imaging, 2:190-203, 2016. 2
+[17] Harel Haim, Shay Elmalem, Raja Giryes, Alex Bronstein, and Emanuel Marom. Depth estimation from a single image
+
+using deep learned phase coded mask. IEEE Transactions on Computational Imaging, 4:298-310, 2018. 3
+[18] Saghi Hajisharif, Joel Kronander, and Jonas Unger. Adaptive dualiso hdr reconstruction. EURASIP Journal on Image and Video Processing, 2015:1-13, 2015. 2
+[19] Samuel W. Hasinoff, Frédo Durand, and William T. Freeman. Noise-optimal capture for high dynamic range photography. 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 553-560, 2010. 2
+[20] Samuel W Hasinoff, Dillon Sharlet, Ryan Geiss, Andrew Adams, Jonathan T Barron, Florian Kainz, Jiawen Chen, and Marc Levoy. Burst photography for high dynamic range and low-light imaging on mobile cameras. ACM Transactions on Graphics (TOG), 35(6):192, 2016. 1, 2
+[21] Lei He, Guanghui Wang, and Zhanyi Hu. Learning depth from single images with deep neural network embedding focal length. IEEE Transactions on Image Processing, 27:4676-4689, 2018. 3
+[22] Felix Heide, Qiang Fu, Yifan Peng, and Wolfgang Heidrich. Encoded diffractive optics for full-spectrum computational imaging. Scientific reports, 6:33543, 2016. 6
+[23] Felix Heide, Markus Steinberger, Yun-Ta Tsai, Mushfiqur Rouf, Dawid Pajak, Dikpal Reddy, Orazio Gallo, Jing Liu, Wolfgang Heidrich, Karen Egiazarian, et al. Flexisp: A flexible camera image processing framework. ACM Transactions on Graphics (TOG), 33(6):231, 2014. 1, 2
+[24] Keigo Hirakawa and Paul M. Simon. Single-shot high dynamic range imaging with conventional camera hardware. 2011 International Conference on Computer Vision, pages 1339-1346, 2011. 2
+[25] Roarke Horstmeyer, Richard Y. Chen, Barbara Kappes, and Benjamin Judkewitz. Convolutional neural networks that teach microscopes how to image. ArXiv, abs/1709.07223, 2017. 3
+[26] Jun Hu, Orazio Gallo, Kari Pulli, and Xiaobai Sun. Hdr deghosting: How to deal with saturation? 2013 IEEE Conference on Computer Vision and Pattern Recognition, pages 1163-1170, 2013. 2
+[27] Hanbyol Jang, Kihun Bang, Jinseong Jang, and Dosik Hwang. Inverse tone mapping operator using sequential deep neural networks based on the human visual system. IEEE Access, 6:52058-52072, 2018. 2
+[28] Nima Khademi Kalantari and Ravi Ramamoorthi. Deep high dynamic range imaging of dynamic scenes. ACM Trans. Graph., 36:144:1-144:12, 2017. 2
+[29] Nima Khademi Kalantari and Ravi Ramamoorthi. Deep hdr video from sequences with alternating exposures. Comput. Graph. Forum, 38:193-205, 2019. 2
+[30] Nima Khademi Kalantari, Eli Shechtman, Connelly Barnes, Soheil Darabi, Dan B. Goldman, and Pradeep Sen. Patch-based high dynamic range video. ACM Trans. Graph., 32:202:1-202:8, 2013. 2
+[31] Sing Bing Kang, Matthew Uytendaele, Simon A. J. Winder, and Richard Szeliski. High dynamic range video. ACM Trans. Graph., 22:319-325, 2003. 2
+
+[32] Michael Kellman, Emrah Bostan, Michael Chen, and Laura Waller. Data-driven design for fourier ptychographic microscopy. In 2019 IEEE International Conference on Computational Photography (ICCP), pages 1-8. IEEE, 2019. 3
+[33] Erum Arif Khan, Ahmet Oguz Akyüz, and Erik Reinhard. Ghost removal in high dynamic range images. 2006 International Conference on Image Processing, pages 2005-2008, 2006. 2
+[34] Siyeong Lee, Gwon Hwan An, and Suk-Ju Kang. Deep chain hdri: Reconstructing a high dynamic range image from a single low dynamic range image. IEEE Access, 6:49913-49924, 2018. 2
+[35] Siyeong Lee, Gwon Hwan An, and Suk-Ju Kang. Deep recursive hdri: Inverse tone mapping using generative adversarial networks. In The European Conference on Computer Vision (ECCV), September 2018. 2
+[36] Ce Liu. Exploring new representations and applications for motion analysis. 2009. 2
+[37] Steve Mann and Rosalind W. Picard. Being 'undigital' with digital cameras: extending dynamic range by combining differently exposed pictures. 1994. 2
+[38] Julio Marco, Quercus Hernandez, Adolfo Muñoz, Yue Dong, Adrián Jarabo, Min H. Kim, Xin Tong, and Diego Gutierrez. Deeptof: off-the-shelf real-time correction of multipath interference in time-of-flight imaging. ACM Trans. Graph., 36:219:1-219:12, 2017. 3
+[39] Demetris Marnerides, Thomas Bashford-Rogers, Jonathan Hatchett, and Kurt Debattista. Expandnet: A deep convolutional neural network for high dynamic range expansion from low dynamic range content. CoRR, abs/1803.02266, 2018. 2
+[40] Belén Masiá, Sandra Agustin, Roland W. Fleming, Olga Sorkine-Hornung, and Diego Gutierrez. Evaluation of reverse tone mapping through varying exposure conditions. ACM Trans. Graph., 28:160, 2009. 2
+[41] Tom Mertens, Jan Kautz, and Frank Van Reeth. Exposure fusion: A simple and practical alternative to high dynamic range photography. Comput. Graph. Forum, 28:161-171, 2009. 2
+[42] Tom Mertens, Jan Kautz, and Frank Van Reeth. Exposure fusion: A simple and practical alternative to high dynamic range photography. In Computer graphics forum, volume 28, pages 161-171. Wiley Online Library, 2009. 1
+[43] Christopher A Metzler, Hayato Ikoma, Yifan Peng, and Gordon Wetzstein. Deep optics for single-shot high-dynamic-range imaging. arXiv preprint arXiv:1908.00620, 2019. 1, 3, 6, 7
+[44] Laurence Meylan, Scott J. Daly, and Sabine Süssstrunk. The reproduction of specular highlights on high dynamic range displays. In Color Imaging Conference, 2006. 2
+[45] Ben Mildenhall, Jonathan T Barron, Jiawen Chen, Dillon Sharlet, Ren Ng, and Robert Carroll. Burst denoising with kernel prediction networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2502-2510, 2018. 1, 2
+[46] Atsushi Morimitsu, Isao Hirota, Sozo Yokogawa, Isao Ohdaira, Masao Matsumura, Hiroaki Takahashi, Toshio Yamazaki, Hideki Oyaizu, Yalcin Incesu, Muhammad Atif,
+
+et al. A 4m pixel full-pdaf cmos image sensor with $1.58\mu \mathrm{m}$ $2\times 1$ on-chip micro-split-lens technology. In ITE Technical Report 39.35, pages 5-8. The Institute of Image Information and Television Engineers, 2015. 1
+[47] Kenta Moriwaki, Ryota Yoshihashi, Rei Kawakami, Shaodi You, and Takeshi Naemura. Hybrid loss for learning single-image-based HDR reconstruction. arXiv preprint arXiv:1812.07134, 2018. 2
+[48] Shree K Nayar and Tomoo Mitsunaga. High dynamic range imaging: Spatially varying pixel exposures. In Proceedings IEEE Conference on Computer Vision and Pattern Recognition. CVPR 2000 (Cat. No. PR00662), volume 1, pages 472-479. IEEE, 2000. 1, 2
+[49] Elias Nehme, Daniel Freedman, Racheli Gordon, Boris Ferdman, Tomer Michaeli, and Yoav Shechtman. Dense three dimensional localization microscopy by deep learning. 2019. 3
+[50] Shiyu Ning, Hongteng Xu, Li Song, Rong Xie, and Wenjun Zhang. Learning an inverse tone mapping network with a generative adversarial regularizer. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1383-1387, 2018. 2
+[51] Yifan Peng, Qiang Fu, Hadi Amata, Shuochen Su, Felix Heide, and Wolfgang Heidrich. Computational imaging using lightweight diffractive-refractive optics. Optics express, 23(24):31393-31407, 2015. 6
+[52] Erik Reinhard, Greg Ward, Summant Pattanaik, Paul E. Debevec, Wolfgang Heidrich, and Karol Myszkowski. High dynamic range imaging: Acquisition, display, and image-based lighting. 2010. 2
+[53] Allan G. Rempel, Matthew Trentacoste, Helge Seetzen, H. David Young, Wolfgang Heidrich, Lorne Arthur Whitehead, and Greg Ward. Ldr2hdr: on-the-fly reverse tone mapping of legacy video and photographs. In SIGGRAPH 2007, 2007. 2
+[54] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 4
+[55] Mushfiqur Rouf, Rafal Mantiuk, Wolfgang Heidrich, Matthew Trentacoste, and Cheryl Lau. Glare encoding of high dynamic range images. CVPR 2011, pages 289-296, 2011. 1, 2, 3, 6, 7
+[56] U Seger. HDR imaging in automotive applications. In *High Dynamic Range Video*, pages 477–498. Elsevier, 2016. 1
+[57] Pradeep Sen, Nima Khademi Kalantari, Maziar Yaesoubi, Soheil Darabi, Dan B. Goldman, and Eli Shechtman. Robust patch-based hdr reconstruction of dynamic scenes. ACM Trans. Graph., 31:203:1-203:11, 2012. 2
+[58] Ana Serrano, Felix Heide, Diego Gutierrez, Gordon Wetzstein, and Belén Masiá. Convolutional sparse coding for high dynamic range imaging. Comput. Graph. Forum, 35:153-163, 2016. 2
+[59] Yoav Shechtman, Lucien E Weiss, Adam S. Backer, Maurice Y. Lee, and W E Moerner. Multicolour localization microscopy by point-spread-function engineering. Nature photonics, 10:590-594, 2016. 3
+
+[60] Vincent Sitzmann, Steven Diamond, Yifan Peng, Xiong Dun, Stephen Boyd, Wolfgang Heidrich, Felix Heide, and Gordon Wetzstein. End-to-end optimization of optics and image processing for achromatic extended depth of field and superresolution imaging. ACM Transactions on Graphics (TOG), 37(4):114, 2018. 1, 3
+[61] Shuochen Su, Felix Heide, Gordon Wetzstein, and Wolfgang Heidrich. Deep end-to-end time-of-flight imaging. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6383-6392, 2018. 3
+[62] Michael D Tocci, Chris Kiser, Nora Tocci, and Pradeep Sen. A versatile hdr video production system. In ACM Transactions on Graphics (TOG), volume 30, page 41. ACM, 2011. 1
+[63] Chao Wang, Yang Zhao, and Ronggang Wang. Deep inverse tone mapping for compressed images. IEEE Access, 7:74558-74569, 2019. 2
+[64] Trygve Willassen, Johannes Solhusvik, Robert Johansson, Sohrab Yaghmai, Howard Rhodes, Sohei Manabe, Duli Mao, Zhiqiang Lin, Dajiang Yang, Orkun Cellek, et al. A $1280 \times 1080$ $4.2\mu \mathrm{m}$ split-diode pixel hdr sensor in $110~\mathrm{nm}$ bsi cmos process. In Proceedings of the International Image Sensor Workshop, Vaals, The Netherlands, pages 8-11, 2015. 1
+[65] Yicheng Wu, Vivek Boominathan, Huaijin Chen, Aswin Sankaranarayanan, and Ashok Veeraraghavan. Phasecam3d learning phase masks for passive single view depth estimation. 2019 IEEE International Conference on Computational Photography (ICCP), pages 1-12, 2019. 3
+[66] Jinsong Zhang and Jean-François Lalonde. Learning high dynamic range from outdoor panoramas. CoRR, abs/1703.10200, 2017. 2
+[67] Xuaner Zhang, Ren Ng, and Qifeng Chen. Single image reflection separation with perceptual losses. In IEEE Conference on Computer Vision and Pattern Recognition, 2018. 4, 5
+[68] Hang Zhao, Boxin Shi, Christy Fernandez-Cull, Sai-Kit Yeung, and Ramesh Raskar. Unbounded high dynamic range photography using a modulo camera. 2015 IEEE International Conference on Computational Photography (ICCP), pages 1–10, 2015. 2
\ No newline at end of file
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/images.zip b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8032bc70b7d28d0473d34ad22fb198ada8733211
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:44b90191f5467dc42bb25bdc3b63750c0811beaa18a089c6d6343de0eaa9544a
+size 419193
diff --git a/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/layout.json b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..43bed45586f7257281193b74208414fbdbecf0de
--- /dev/null
+++ b/learningrank1diffractiveopticsforsingleshothighdynamicrangeimaging/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dcaecfb9ef583527e25464e32bd9e22067f745232c6844c7d4b1c5b32b849ba2
+size 454371
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_content_list.json b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3f7516d0620b4903129f9cb3ee572ccd22dbe89c
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a7e1b4a2c0bae06ac95c17afde02fec19f2595ae30ce88b8199b1fc0b6565be
+size 84920
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_model.json b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8d6620b5003211682d905fe1005c6061795ab7a1
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49e1adc2930f409ec2861de2c8e39c8cd980b6e34b67132c9d70bc81d215f1ab
+size 107793
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_origin.pdf b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..657e8b249e30da76f426a261a8d619f7aafac7b2
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/74c35e05-00c8-46da-8a8e-813be95b067c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a75d1b77d12b73e7eb2a3478c8dc9360fde50e5d34958a4e98631b23b19bd8b9
+size 285711
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/full.md b/learningrepresentationsbypredictingbagsofvisualwords/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..6907021281db74873b09303d4ddcb9f53a26fb47
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/full.md
@@ -0,0 +1,296 @@
+# Learning Representations by Predicting Bags of Visual Words
+
+Spyros Gidaris1 Andrei Bursuc1 Nikos Komodakis2 Patrick Pérez1 Matthieu Cord1
+
+$^{1}$ Valeo.ai $^{2}$ University of Crete
+
+# Abstract
+
+Self-supervised representation learning targets to learn convnet-based image representations from unlabeled data. Inspired by the success of NLP methods in this area, in this work we propose a self-supervised approach based on spatially dense image descriptions that encode discrete visual concepts, here called visual words. To build such discrete representations, we quantize the feature maps of a first pretrained self-supervised convnet, over a $k$ -means based vocabulary. Then, as a self-supervised task, we train another convnet to predict the histogram of visual words of an image (i.e., its Bag-of-Words representation) given as input a perturbed version of that image. The proposed task forces the convnet to learn perturbation-invariant and context-aware image features, useful for downstream image understanding tasks. We extensively evaluate our method and demonstrate very strong empirical results, e.g., our pre-trained self-supervised representations transfer better on detection task and similarly on classification over classes "unseen" during pre-training, when compared to the supervised case.
+
+This also shows that the process of image discretization into visual words can provide the basis for very powerful self-supervised approaches in the image domain, thus allowing further connections to be made to related methods from the NLP domain that have been extremely successful so far.
+
+# 1. Introduction
+
+The goal of our work is to learn convolutional neural network [37] (convnet) based representations without human supervision. One promising approach towards this goal is the so-called self-supervised representation learning [14, 20, 35, 45, 49, 72], which advocates to train the convnet with an annotation-free pretext task defined using only the information available within an image, e.g., predicting the relative location of two image patches [14]. Pre-training on such a pretext task enables the convnet to learn representa
+
+tions that are useful for other vision tasks of actual interest, such as image classification or object detection. Moreover, recent work has shown that self-supervision can be beneficial to many other learning problems [10, 18, 28, 29, 58, 71], such as few-shot [18, 58] and semi-supervised [28, 71] learning, or training generative adversarial networks [10].
+
+A question that still remains open is what type of self-supervision we should use. Among the variety of the proposed learning tasks, many follow the general paradigm of first perturbing an image or removing some part/aspect of the image and then training the convnet to reconstruct the original image or the dropped part (e.g., color channel, image region). Popular examples are Denoising AutoEncoders [62], Image Colorization [35, 72], Split-Brain architectures [73], and Image In-painting [49]. However, predicting such low-level image information can be a difficult task to solve, and does not necessarily force the convnet to acquire image understanding "skills", which is what we ultimately want to achieve. As a result, such reconstruction-based methods have not been very successful so far. In contrast, in Natural Language Processing (NLP), similar self-supervised methods, such as predicting the missing words of a sentence (e.g., BERT [12] and ROBERTA [39]), have proven much more successful at learning strong language representations. The difference of those NLP methods with their computer vision counterparts is that (1) words undoubtedly represent more high-level semantic concepts than raw image pixels. Also, (2) words are defined in a discrete space while images in a continuous one where, without changing the depicted content, small pixel perturbations can significantly alter the target of a reconstruction task.
+
+Spatially dense image quantization into visual words. Inspired by the above NLP methods, in this work we propose for self-supervised learning in the image domain to use tasks that aim at predicting/reconstructing targets that encode discrete visual concepts as opposed, e.g., to (low-level) pixel information. To build such discrete targets, we first take an existing self-supervised method (e.g., rotation prediction [20]) and use it to train an initial convnet, which can learn feature representations that capture mid-to-higher-level
+
+
+Figure 1: Learning representations through prediction of Bags of Visual Words. We first train a feature extractor $\hat{\Phi}(\cdot)$ for a self-supervised task, e.g. rotation prediction. Then we compute a visual vocabulary from feature vectors computed from $\hat{\Phi}$ feature maps and compute the corresponding image level BoW vectors. These BoW vectors will serve as ground truth for the next stage. In the second stage we perturb images with $g(\cdot)$ and send them as input to a second network $\Phi(\cdot)$ . The BoW prediction module $\Omega(\cdot)$ processes $\Phi(\cdot)$ feature maps to predict BoW vectors corresponding to the original non-perturbed images. Both $\Phi(\cdot)$ and $\Omega(\cdot)$ are trained jointly with cross-entropy loss. The feature extractor $\Phi(\cdot)$ is further used for downstream tasks.
+
+image features. Then, for each image, we densely quantize its convnet-based feature map using a k-means-based vocabulary. $^{2}$ This results in a spatially dense image description based on discrete codes (i.e., k-means cluster assignments), called visual words hereafter. Such a discrete image representation opens the door to easily adapting self-supervised methods from the NLP community to the image domain. For instance, in this case, one could very well train a BERT-like architecture that, given as input a subset of the patches in an image, predicts the visual words of the missing patches. Although self-supervised methods of this type are definitely something that we plan to explore as future work, in this paper we aim to go one step further and develop (based on the above discrete visual representations) self-supervised tasks that furthermore allow using standard convolutional architectures that are commonly used (and optimized) for the image domain we are interested in. But how should we go about defining such a self-supervised task?
+
+Learning by "reconstructing" bags of visual words. To this end, we take inspiration from the so-called Bag-of-Words [67] (BoW) model in computer vision and propose using as self-supervised task one where we wish (to train a convnet) to predict the histogram of visual words of an image (also known as its BoW representation) when given as input a perturbed version of that image. This type of BoW representations have been very powerful image models, and as such have been extensively used in the past in several computer vision problems (including, e.g., image retrieval, object recognition, and object detection). Interestingly, there is recent empirical evidence that even modern state-of-the-art convnets for image classification exhibit similar behavior to
+
+BoW models [7]. By using the above BoW prediction task in the context of self-supervised learning, one important benefit is that it is no longer required to enhance a typical convnet architecture for images (e.g., ResNet-50) with extra network components, such as multiple stacks of attention modules as in [61] or PixelCNN-like autoregressors as in [46], that can make the overall architecture computationally intensive. Furthermore, due to its simplicity, it can be easily incorporated into other types of learning problems (e.g., few-shot learning, semi-supervised learning, or unsupervised domain adaptation), thus allowing to further improve performance for these problems which is an additional advantage.
+
+Concerning the perturbed image (that is used as input to the BoW prediction task), it is generated by applying a set of (commonly used) augmentation techniques such as random cropping, color jittering, or geometric transformations. Therefore, to solve the task of "reconstructing" the BoW histogram of the original image, the convnet must learn to detect visual cues that remain constant (i.e., invariant) to the applied perturbations. Moreover, since the perturbed image can often be only a small part of the original one (due to the cropping transformation), the convnet is also forced to infer the context of the missing input, i.e., the visual words of the missing image regions. This encourages learning of perturbation-invariant and context-aware image features, which, as such, are more likely to encode higher-level semantic visual concepts. Overall, as we show in the experimental results, this has as a result that the proposed self-supervised method learns representations that transfer significantly better to downstream vision tasks than the representations of the initial convnet. As a last point, we note that the above process of defining a convnet-based BoW model and then training another convnet to predict it, can be applied iteratively, which can lead to even better representations.
+
+Contributions. To summarize, the contributions of our work are: (1) We propose the use of discrete visual word representations for self-supervised learning in the image domain. (2) In this context, we propose a novel method for self-supervised representation learning (Fig. 1). Rather than predicting/reconstructing image-pixel-level information, it uses a first self-supervised pre-trained convnet to densely discretize an image to a set of visual words and then trains a second convnet to predict a reduced Bag-of-Words representation of the image given as input perturbed versions of it. (3) We extensively evaluate our method and we demonstrate that it manages to learn high-quality convnet-based image representations, which are significantly superior to those of the first convnet. Furthermore, our ImageNet-trained self-supervised ResNet-50 representations, when compared to the ImageNet-trained supervised ones, achieve better VOC07+12 detection performance and comparable Places205 classification accuracy, i.e., better generalization on the detection task and similar generalization on the Places205 classes which are "unseen" during self-supervised training. (4) The simple design of our method allows someone to easily use it on many other learning problems where self-supervision has been shown to be beneficial.
+
+# 2. Approach
+
+Our goal is to learn in an unsupervised way a feature extractor or convnet model $\Phi(\cdot)$ parameterized by $\theta$ that, given an image $\mathbf{x}$ , produces a "good" image representation $\Phi(\mathbf{x})$ . By "good" we mean a representation that would be useful for other vision tasks of interest, e.g. image classification, object detection. To this end, we assume that we have available a large set of unlabeled images $X$ on which we will train our model. We also assume that we have available an initial self-supervised pre-trained convnet $\hat{\Phi}(\cdot)$ . We can easily learn such a model by employing one of the available self-supervised tasks. Here, except otherwise stated, we use RotNet [20] (which is based on the self-supervised task of image rotation prediction) as it is easy to implement and, at the same time, has been shown to achieve strong results in self-supervised representation learning [34].
+
+To achieve our goal, we leverage the initial model $\hat{\Phi}(\cdot)$ to create spatially dense descriptions based on visual words. Then, we aggregate those descriptions into BoW representations and train the model $\Phi(\cdot)$ to "reconstruct" the BoW of an image $\mathbf{x}$ given as input a perturbed version of it. Note that the model $\hat{\Phi}(\cdot)$ remains frozen during the training of the new model $\Phi(\cdot)$ . Also, after training $\Phi(\cdot)$ , we can set $\hat{\Phi}(\cdot) \gets \Phi(\cdot)$ and repeat the training process.
+
+# 2.1. Building spatially dense discrete descriptions
+
+Given a training image $\mathbf{x}$ , the first step for our method is to create a spatially dense visual words-based descrip-
+
+tion $q(\mathbf{x})$ using the pre-trained convnet $\hat{\Phi} (\cdot)$ . Specifically, let $\hat{\Phi} (\mathbf{x})$ be a feature map (with $\hat{c}$ channels and $\hat{h}\times \hat{w}$ spatial size) produced by $\hat{\Phi} (\cdot)$ for input $\mathbf{x}$ , and $\hat{\Phi}^u (\mathbf{x})$ the $\hat{c}$ -dimensional feature vector at the location $u\in \{1,\dots ,U\}$ of this feature map, where $U = \hat{h}\cdot \hat{w}$ . To generate the description $q(\mathbf{x}) = [q^{1}(\mathbf{x}),\ldots ,q^{U}(\mathbf{x})]$ , we densely quantize $\hat{\Phi} (\mathbf{x})$ using a predefined vocabulary $V = [\mathbf{v}_1,\dots,\mathbf{v}_K]$ of $\hat{c}$ -dimensional visual word embeddings, where $K$ is the vocabulary size. In detail, for each position $u$ , we assign the corresponding feature vector $\hat{\Phi}^u (\mathbf{x})$ to its closest (in terms of squared Euclidean distance) visual word embedding $q^{u}(\mathbf{x})$ :
+
+$$
+q ^ {u} (\mathbf {x}) = \underset {k = 1 \dots K} {\arg \min } \| \hat {\Phi} ^ {u} (\mathbf {x}) - \mathbf {v} _ {k} \| _ {2} ^ {2}. \tag {1}
+$$
+
+The vocabulary $V$ is learned by applying the k-means algorithm with $K$ clusters to a set of feature maps extracted from the dataset $X$ , i.e., by optimizing the following objective:
+
+$$
+\min _ {V} \sum_ {\mathbf {x} \in X} \sum_ {u} \left[ \min _ {k = 1, \dots , K} \| \hat {\Phi} _ {p} ^ {u} (\mathbf {x}) - \mathbf {v} _ {k} \| _ {2} ^ {2} \right], \tag {2}
+$$
+
+where the visual word embedding $\mathbf{v}_k$ is the centroid of the $k$ -th cluster.
+
+# 2.2. Generating Bag-of-Words representations
+
+Having generated the discrete description $q(\mathbf{x})$ of image $\mathbf{x}$ , the next step is to create its BoW representation, denoted by $y(\mathbf{x})$ . This is a $K$ -dimensional vector whose $k$ -th element $y^{k}(\mathbf{x})$ either encodes the number of times the $k$ -th visual word appears in image $\mathbf{x}$ ,
+
+$$
+y ^ {k} (\mathbf {x}) = \sum_ {u = 1, \dots , U} \mathbb {1} \left[ q ^ {u} (\mathbf {x}) = k \right], \tag {3}
+$$
+
+or indicates if the $k$ -th visual word appears in image $\mathbf{x}$ ,
+
+$$
+y ^ {k} (\mathbf {x}) = \max _ {u = 1, \dots , U} \mathbb {1} \left[ q ^ {u} (\mathbf {x}) = k \right], \tag {4}
+$$
+
+where $\mathbb{1}[\cdot ]$ is the indicator operator. Furthermore, to convert $y(\mathbf{x})$ into a probability distribution over visual words, we $L_{1}$ -normalize it, i.e., we set $y^{k}(\mathbf{x}) = \frac{y^{k}(\mathbf{x})}{\sum_{m}y^{m}(\mathbf{x})}$ . The resulting $y(\mathbf{x})$ can thus be perceived as a soft categorical label of $\mathbf{x}$ for the $K$ visual words. Note that, although $K$ might be very large, the BoW representation $y(\mathbf{x})$ is actually quite sparse as it has at most $U$ non-zero elements.
+
+# 2.3. Learning to "reconstruct" BoW
+
+Based on the above BoW representation, we propose the following self-supervised task: given an image $\mathbf{x}$ , we first apply to it a perturbation operator $g(\cdot)$ , to get the perturbed image $\tilde{\mathbf{x}} = g(\mathbf{x})$ , and then train the model to predict/reconstruct" the BoW representation $y(\mathbf{x})$ of the original unperturbed image $\mathbf{x}$ from $\tilde{\mathbf{x}}$ . This, in turn, means that we
+
+want to predict the BoW representation $y(\mathbf{x})$ from the feature vector $\Phi (\tilde{\mathbf{x}})$ (where hereafter we assume that $\Phi (\tilde{\mathbf{x}})\in \mathbb{R}^c$ , i.e., the feature representation produced by model $\Phi (\cdot)$ is $c$ -dimensional). To this end, we define a prediction layer $\Omega (\cdot)$ that gets $\Phi (\tilde{\mathbf{x}})$ as input and outputs a $K$ -dimensional softmax distribution over the $K$ visual words of the BoW representation. More precisely, the prediction layer is implemented with a linear-plus-softmax layer:
+
+$$
+\Omega^ {k} (\Phi (\tilde {\mathbf {x}})) = \operatorname {s o f t m a x} _ {k} \left[ \gamma \Phi (\tilde {\mathbf {x}}) ^ {T} \bar {\mathbf {w}} _ {m} \right] _ {m \in [ 1, \dots , K ]}, \tag {5}
+$$
+
+where $\Omega^k (\Phi (\tilde{\mathbf{x}}))$ is the softmax probability for the $k$ -th visual word, and $W = [\mathbf{w}_1,\dots ,\mathbf{w}_K]$ are the $K$ $c$ -dimensional weight vectors (one per visual word) of the linear layer. Notice that, instead of directly applying the weights vectors $W$ to the feature vector $\Phi (\tilde{\mathbf{x}})$ , we use their $L_{2}$ -normalized versions $\bar{\mathbf{w}}_k = \mathbf{w}_k / \| \mathbf{w}_k\| _2$ , and apply a unique learnable magnitude $\gamma$ for all the weight vectors ( $\gamma$ is a scalar value). The reason for this reparametrization of the linear layer is because the distribution of visual words in the dataset (i.e., how often, or in how many dataset-images, a visual word appears) tends to be unbalanced and, so, without such a reparametrization the network would attempt to make the magnitude of each weight vector proportional to the frequency of its corresponding visual word (thus basically always favoring the most frequently occurring words). In our experiments, the above reparametrization has led to significant improvements in the quality of the learned representations.
+
+Self-supervised training objective. The training loss that we minimize for learning the convnet model $\Phi (\cdot)$ is the expected cross-entropy loss between the predicted softmax distribution $\Omega (\Phi (\tilde{\mathbf{x}}))$ and the BoW distribution $y(\mathbf{x})$ :
+
+$$
+L (\theta , W, \gamma ; X) = \underset {\mathbf {x} \sim X} {\mathbb {E}} \left[ \operatorname {l o s s} \left(\Omega \left(\Phi (\tilde {\mathbf {x}})\right), y (\mathbf {x})\right) \right], \tag {6}
+$$
+
+where $\mathrm{loss}(\alpha ,\beta) = -\sum_{k = 1}^{K}\beta^{k}\log \alpha^{k}$ is the cross-entropy loss for the discrete distributions $\alpha = (\alpha^k)$ and $\beta = (\beta^{k})$ $\theta$ are the learnable parameters of $\Phi (\cdot),(W,\gamma)$ are the learnable parameters of $\Omega (\cdot)$ ,and $\tilde{\mathbf{x}} = g(\mathbf{x})$
+
+Image perturbations. The perturbation operator $g(\cdot)$ that we use consists of (a) color jittering (i.e., random changes of the brightness, contrast, saturation, and hue of an image) (b) converting the image to grayscale with probability $p$ , (c) random image cropping, (d) scale or aspect ratio distortions, and (e) horizontal flips. The role served by such an operator is two-fold: to solve the BoW "reconstruction" task after such aggressive perturbations, the convnet must learn image features that (1) are robust w.r.t. the applied perturbations
+
+and at the same time (2) allow predicting the visual words of the original image, even for image regions that are not visible to the convnet due to cropping. To further push towards this direction, we also incorporate the CutMix [69] augmentation technique into our self-supervised method. According to CutMix, given two images $\tilde{\mathbf{x}}_A = g(\mathbf{x}_A)$ and $\tilde{\mathbf{x}}_B = g(\mathbf{x}_B)$ , we generate a new synthetic one $\tilde{\mathbf{x}}_S$ by replacing a patch of the first image $\tilde{\mathbf{x}}_A$ with one from the second image $\tilde{\mathbf{x}}_B$ . The position and size of the patch is randomly sampled from a uniform distribution. The BoW representation that is used as a reconstruction target for this synthetic image is the convex combination of the BoW targets of the two images, $\lambda y(\mathbf{x}_A) + (1 - \lambda)y(\mathbf{x}_B)$ , where $1 - \lambda$ is the patch-over-image area ratio. Hence, with CutMix we force the convnet to infer both (a) the visual words that belong on the patch that was removed from the first image $\tilde{\mathbf{x}}_A$ , and (b) the visual words that belong on the image area that surrounds the patch that was copied from second image $\tilde{\mathbf{x}}_B$ .
+
+Model initialization and iterated training. We note that the model $\hat{\Phi}(\cdot)$ is used only for building BoW representations and not for initializing the parameters of the $\Phi(\cdot)$ model, i.e., $\Phi(\cdot)$ is randomly initialized before training. Also, as already mentioned, we can apply our self-supervised method iteratively, using each time the previously trained model $\hat{\Phi}(\cdot)$ for creating the BoW representation. We also note, however, that this is not necessary for learning "good" representations; the model learned from the first iteration already achieves very strong results. As a result, only a few more iterations (e.g., one or two) might be applied after that.
+
+# 3. Related Work
+
+Bag-of-Words. BoW is a popular method for text document representation, which has been adopted and heavily used in computer vision [11, 56]. For visual content, BoW conveniently encapsulates image statistics from hundreds of local features [40] into vector representations. BoW have been studied extensively and leveraged in numerous tasks, while multiple extensions [32, 50] and theoretical interpretations [60] have been proposed. Due to its versatility, BoW has been applied to pre-trained convnets as well to compute image representations from intermediate feature maps [22, 44, 68], however few works have dealt with the integration of BoW in the training pipeline of a convnet. Among them, NetVLAD [2] mimics the BoW-derived VLAD descriptor by learning a visual vocabulary along with the other layers and soft quantizing activations over this vocabulary. Our method differs from previous approaches in training with self-supervision and in predicting directly the BoW vector bypassing quantization and aggregation.
+
+Self-supervision. Self-supervised learning is a recent paradigm aiming to learn representations from data by lever
+
+aging supervision from various intrinsic data signals without any explicit manual annotations and human supervision. The representations learned with self-supervision are then further fine-tuned on a downstream task with limited human annotations available. Numerous creative mechanisms for squeezing out information from data in this manner have been proposed in the past few years: predicting the colors of image [35, 72], the relative position of shuffled image patches [14, 45], the correct order of a set of shuffled video frames [43], the correct association between an image and a sound [3], and many other methods [38, 64, 65, 75].
+
+Learning to reconstruct. Multiple self-supervised methods are formulated as reconstruction problems [1, 21, 33, 41, 49, 51, 62, 72, 73, 75]. The information to be reconstructed can be provided by a different view [21, 51, 75] or sensor [16]. When no such complementary information is available, the current data can be perturbed and the task of the model is now to reconstruct the original input. Denoising an input image back to its original state [62], inpainting an image patch that has been removed from a scene [49], reconstructing images that have been overlayed [1] are some of the many methods of reconstruction from perturbation. While such approaches display impressive results for the task hand, it remains unclear how much structure they can encapsulate beyond the reconstruction of visual patterns [13]. Similar ideas have been initially proposed in NLP where missing words [41] or sentences [33] must be reconstructed. Another line of research employs perturbations for guiding the model towards assigning the same label to both perturbed and original content [5, 15]. Our method also deals with perturbed inputs, however instead of reconstructing the input, we train it to reconstruct the BoW vector of the clean input. This enables learning non-trivial correlations between local visual patterns in the image.
+
+VQ-VAE. These works [47, 53] explore the learning of spatially-dense discrete representations with unsupervised generative models with goal of image generation. Instead, we focus on exploiting discrete image representations in the context of self-supervised image representation learning.
+
+# 3.1. Discussion
+
+Relation to clustering-based representation learning methods [4, 8, 9]. Our work presents similarities to the Deep(er) Clustering approach [8, 9]. The latter alternates between k-means clustering the images based on their convnet features and using the cluster assignments as image labels for training the convnet. In our case however, we use the k-means clustering for creating BoW representations instead of global image labels. The former leads to richer (more complete) image descriptions compared to the latter as it encodes multiple local visual concepts extracted in a spatially dense way. For example, a cluster id is not sufficient to describe
+
+an image with multiple objects, like the one in Figure 1, while a BoW is better suited for that. This fundamental difference leads to a profoundly different self-supervised task. Specifically, in our case the convnet is forced to: (1) focus on more localized visual patterns and (2) learn better contextual reasoning (since it must predict the visual words of missing image regions).
+
+Relation to contrastive self-supervised learning methods [5, 15, 25, 42]. Our method bears similarities to recent works exploiting contrastive losses for learning representations that are invariant under strong data augmentation or perturbations [5, 15, 25, 42]. These methods deal with image recognition and the same arguments mentioned above w.r.t. [8, 9] hold. Our contribution departs from this line of approaches allowing our method to be applied to a wider set of visual tasks. For instance, in autonomous driving, most urban images are similar and differ only by few details, e.g. a pedestrian or a car, making image recognition under strong perturbation less feasible. In such cases, leveraging local statistics as done in our method appears as a more appropriate self-supervised task for learning representations.
+
+# 4. Experiments and results
+
+We evaluate our method (BoWNet) on CIFAR-100, MiniImageNet [63], ImageNet [55], Places205 [74], VOC07 [17] classification, and VOC07+12 detection datasets.
+
+# 4.1. Analysis on CIFAR-100 and MiniImageNet
+
+# 4.1.1 Implementation details
+
+CIFAR-100. CIFAR-100 consists of $50k$ training images with $32 \times 32$ resolution. We train self-supervised WRN-28-10 [70] convnets using those training images. Specifically, we first train a WRN-28-10 based RotNet [20] and build based on that BoW using the feature maps of its last/3rd residual block. Then, we train the BoWNet using those BoW representations. We use a $K = 2048$ vocabulary size. The prediction head of RotNet consists of an extra residual block (instead of just a linear layer); in our experiments this led the feature extractor to learn better representations (we followed this design choice of RotNet for all the experiments in our paper; we provide more implementation details in §C.1).
+
+We train the convnets using stochastic gradient descent (SGD) for 30 epochs of 2000 batch iterations and batch size 128. The learning rate is initialized with 0.1 and multiplied by 0.1 after 12 and 24 epochs. The weight decay is $5e - 4$ .
+
+MiniImageNet. Since MiniImageNet is used for evaluating few-shot methods, it has three different splits of classes, train, validation, and test with 64, 16, and 20 classes respectively. Each class has 600 images with $84 \times 84$ resolution. We train WRN-28-4 convnets on the $64 \times 600$ images that correspond to the training classes following the same training protocol as for CIFAR-100.
+
+# 4.1.2 Evaluation protocols.
+
+CIFAR-100. To evaluate the learned representations we use two protocols. (1) The first is to freeze the learned representations (which in case of WRN-28-10 is a 640-dimensional vector) and train on top of them a 100-way linear classifier for the CIFAR-100 classification task. We use the linear classifier accuracy as an evaluation metric. The linear classifier is trained with SGD for 60 epochs using a learning rate of 0.1 that is multiplied by 0.3 every 10 epochs. The weight decay is 0.001. (2) For the second protocol we use a few-shot episodic setting [63] similar to what is proposed on [18]. Specifically, we choose 20 classes from CIFAR-100 and run with them multiple (2000) episodes of 5-way few-shot classification tasks. Essentially, at each episode we randomly sample 5 classes from the 20 ones and then $n$ training examples and $m = 15$ test examples per class (both randomly sampled from the test images of CIFAR-100). For $n$ we use 1, 5, 10, and 50 examples (1-shot, 5-shot, 10-shot, and 50-shot settings respectively). To classify the $m$ examples we use a cosine distance Prototypical-Networks [57] classifier that is applied on top of the frozen representations. We report the mean accuracy over the 2000 episodes. The purpose of this metric is to analyze the ability of the representations to be used for learning with few training examples. More details about this protocol are provided in §C.3.
+
+MiniImageNet. We use the same two protocols as in CIFAR-100. (1) The first is to train 64-way linear classifiers on the task of recognizing the 64 training classes of MiniImageNet. Here, we use the same hyper-parameters as for CIFAR-100. (2) The second protocol is to use the frozen representations for episodic few-shot classification [63]. The main difference with CIFAR-100 is that here we evaluate using the test classes of MiniImageNet, which were not part of the training set of the self-supervised models. Therefore, with this evaluation we analyze the ability of the representations to be used for learning with few training examples and for "unseen" classes during training. For comparison with this protocol we provide results of the supervised Cosine Classifier (CC) few-shot model [19, 52].
+
+# 4.1.3 Results
+
+In Tables 1 and 2 we report results for our self-supervised method on the CIFAR-100 and MiniImageNet datasets respectively. By comparing BoWNet with RotNet (that we used for building BoW), we observe that BoWNet improves all the evaluation metrics by at least 10 percentage points, which is a very large performance improvement. Applying BoWNet iteratively (entries BoWNet $\times 2$ and BoWNet $\times 3$ ) further improves the results (except the 1-shot accuracy). Also, BoWNet outperforms by a large margin the CIFAR-100 linear classification accuracy of the recently proposed AMDIM [5] method (see Table 1), which has been shown to
+
+| Method | n=1 | 5 | 10 | 50 | Linear |
| Supervised [70] | - | - | - | - | 79.5 |
| RotNet | 58.3 | 74.8 | 78.3 | 81.9 | 60.3 |
| Deeper Clustering | 65.9 | 84.6 | 87.9 | 90.8 | 65.4 |
| AMDIM [5] | - | - | - | - | 70.2 |
| BoWNet | 69.1 | 86.3 | 89.2 | 92.4 | 71.5 |
| BoWNet ×2 | 68.5 | 87.1 | 90.4 | 93.8 | 74.1 |
| BoWNet ×3 | 68.4 | 87.2 | 90.4 | 93.9 | 74.5 |
| BoWNet w/o cutmix | 68.5 | 85.8 | 88.8 | 92.2 | 69.7 |
| Sp-BoWNet | 67.7 | 85.8 | 89.2 | 92.3 | 71.3 |
+
+Table 1: CIFAR-100 linear classifier and few-shot results with WRN-28-10. For few-shot we use $n = 1,5,10$ , or 50 examples per class. AMDIM uses a higher-capacity custom made architecture.
+
+| Classes
+Method | Novel | Base
+Linear |
| n=1 | 5 | 10 | 50 |
| Supervised CC [19] | 56.8 | 74.1 | 78.1 | 82.7 | 73.7 |
| RotNet | 40.8 | 56.9 | 61.8 | 68.1 | 52.3 |
| RelLoc [14] | 40.2 | 57.1 | 62.6 | 68.8 | 50.4 |
| Deeper Clustering | 47.8 | 66.6 | 72.1 | 78.4 | 60.3 |
| BoWNet | 48.7 | 67.9 | 74.0 | 79.9 | 65.0 |
| BoWNet ×2 | 49.1 | 67.6 | 73.6 | 79.9 | 65.6 |
| BoWNet ×3 | 48.6 | 68.9 | 75.3 | 82.5 | 66.0 |
+
+Table 2: MiniImageNet linear classifier and few-shot results with WRN-28-4.
+
+| Classes
+Method | Novel | Base
+Linear |
| n=1 | 5 | 10 | 50 |
| RotNet | 40.8 | 56.9 | 61.8 | 68.1 | 52.3 |
| RelLoc | 40.2 | 57.1 | 62.6 | 68.8 | 50.4 |
| RotNet → BoWNet | 48.7 | 67.9 | 74.0 | 79.9 | 65.0 |
| RelLoc → BoWNet | 51.8 | 70.7 | 75.9 | 81.3 | 65.2 |
| Random → BoWNet | 42.4 | 62.0 | 68.9 | 78.1 | 61.5 |
+
+Table 3: MiniImageNet linear classifier and few-shot results with WRN-28-4. Impact of base convnet.
+
+achieve very strong results. Finally, the performance of the BoWNet representations on the MiniImageNet novel classes for the 10-shot and especially the 50-shot setting are very close to the that of the supervised CC model (see Table 2).
+
+Impact of CutMix augmentation. In Table 1 we report CIFAR-100 results without CutMix, which confirms that employing CutMix does indeed provide some further improvement on the quality of the learned representations.
+
+Spatial-Pyramid BoW [36]. By reducing the visual words descriptions to BoW histograms, we remove spatial information from the visual word representations. To avoid this, one could divide the image into several spatial grids of
+
+different resolutions, and then extract a BoW representation from each resulting image patch. In Table 1 we provide results for such a case (entry Sp-BoWNet). Specifically, we used 2 levels for the spatial pyramid, one with $2 \times 2$ and one with $1 \times 1$ resolution, giving in total 5 BoW. Although one would expect otherwise, we observe that adding more spatial information to the BoW via Spatial-Pyramids-BoW, does not improve the quality of the learned representations.
+
+Comparison with Deeper Clustering (DC) [9]. To compare our method against DC we implemented it using the same convnet backbone and the same pre-trained RotNet as for BoWNet. To be sure that we do not disadvantage DC in any way, we optimized the number of clusters (512), the training routine5, and applied the same image augmentations (including cutmix) as in BoWNet. We also boosted DC by combining it with rotation prediction and applied our re-parametrization of the linear prediction layer (see Equation 5), which however did not make any difference in the DC case. We observe in Tables 1 and 2 that, although improving upon RotNet, DC has finally a significantly lower performance compared to BoWNet, e.g., several absolute percentage points lower linear classification accuracy, which illustrates the advantage of using BoW as targets for self-supervision instead of the single cluster id of an image.
+
+Impact of base convnet. In Table 3 we provide MiniImageNet results using RelLoc [14] as the initial convnet with which we build BoW (base convnet). RelLoc $\rightarrow$ BoWNet achieves equally strong or better results than in the RotNet $\rightarrow$ BoWNet case. We also conducted (preliminary) experiments with a randomly initialized base convnet (entry Random $\rightarrow$ BoWNet). In this case, to learn good representations, (a) we used in total 4 training rounds, (b) for the 1st round we built BoW from the 1st residual block of the randomly initialized WRN-28-4 and applied PCA analysis before k-means, (c) for the 2nd round we built BoW from 2nd residual block, and (d) for the remaining 2 rounds we built BoW from 3rd/last residual block. We observe that with a random base convnet the performance of BoWNet drops. However, BoWNet still is significantly better than RotNet and RelLoc.
+
+We provide additional experimental results in $\S B.1$ .
+
+# 4.2. Self-supervised training on ImageNet
+
+Here we evaluate BoWNet by training it on the ImageNet dataset that consists of more than $1M$ images coming from 1000 different classes. We use the ResNet-50 (v1) [27] architecture with $224 \times 224$ input images for implementing the RotNet and BoWNet models. The BoWNet models are trained with 2 training rounds. For each round we use SGD, 140 training epochs, and a learning rate 0.03 that is multi
+
+| Method | conv4 | conv5 |
| ImageNet Supervised [24] | 80.4 | 88.0 |
| RotNet* | 64.6 | 62.8 |
| Jigsaw [24] | 64.5 | 57.2 |
| Colorization [24] | 55.6 | 52.3 |
| BoWNet conv4 | 73.6 | 79.3 |
| BoWNet conv5 | 74.3 | 78.4 |
+
+Table 4: VOC07 image classification results for ResNet-50 Linear SVMs. *: our implementation.
+
+| Method | ImageNet conv* pool15 | Places205 conv* pool15 |
| Random [24] | 13.7 | - | 16.6 | - |
| Supervised methods |
| ImageNet [24] | 75.5 | - | 51.5 | - |
| ImageNet* | 76.0 | 76.2 | 52.8 | 52.0 |
| Places205 [24] | 58.2 | - | 62.3 | - |
| Prior self-supervised methods |
| RotNet* | 52.5 | 40.6 | 45.0 | 39.4 |
| Jigsaw [24] | 45.7 | - | 41.2 | - |
| Colorization [24] | 39.6 | - | 31.3 | - |
| LA†[76] | 60.2 | - | 50.1 | - |
| Concurrent work |
| MoCo [25] | - | 60.6 | - | - |
| PIRL [42] | 63.6 | - | 49.8 | - |
| CMC‡[59] | - | 64.1 | - | - |
| BowNet conv4 | 62.5 | 62.1 | 50.9 | 51.1 |
| BowNet conv5 | 60.5 | 60.2 | 50.1 | 49.5 |
+
+Table 5: ResNet-50 top-1 center-crop linear classification accuracy on ImageNet and Places205. zoo15 indicates the accuracy for the 2048-dimensional features produced by the global average pooling layer after conv5. conv* indicates the accuracy of the best (w.r.t. accuracy) conv. layer of ResNet-50 (for the full results see §B.3) Before applying classifiers on those conv. layers, we resize their feature maps to around $9k$ dimensions (in the same way as in [24]). Entries in gray are advantaged by either using 10-crops evaluation (method with $\dagger$ ) or using two ResNet-50 feature extractor networks (method with $\ddagger$ ). *: our implementation.
+
+plied by 0.1 after 60, 100, and 130 epochs. The batch size is 256 and the weight decay is $1e - 4$ . To build BoW we use a vocabulary of $K = 20000$ visual words created from the 3rd or 4th residual blocks (aka conv4 and conv5 layers respectively) of RotNet (for an experimental analysis of those choices see §B.2. We named those two models BowNet conv4 and BowNet conv5 respectively.
+
+We evaluate the quality of the learned representations on ImageNet classification, Places205 classification, VOC07 classification, and VOC07+12 detection tasks.
+
+| Pre-training | AP50 | AP75 | APall |
| Supervised* | 80.8 | 58.5 | 53.2 |
| Jigsaw†[24] | 75.1 | 52.9 | 48.9 |
| PIRL†[42] | 80.7 | 59.7 | 54.0 |
| MoCo [25] | 81.4 | 61.2 | 55.2 |
| BoWNet conv4 | 80.3 | 60.4 | 55.0 |
| BoWNet conv5 | 81.3 | 61.1 | 55.8 |
+
+Table 6: Object detection with Faster R-CNN fine-tuned on VOC trainval07+12. The detection AP scores (AP $^{50}$ , AP $^{75}$ , AP $^{\text{all}}$ ) are computed on test07. All models use ResNet-50 backbone (R50-C4) pre-trained with self-supervision on ImageNet. BowNet scores are averaged over 3 trials. *: our implementation fine-tuned in the same conditions as BoWNet. †: BatchNorm layers are frozen and used as affine transformation layers.
+
+VOC07 classification results. For this evaluation we use the publicly available code for benchmarking self-supervised methods provided in [24]. Goyal et al. [24] implement the guidelines of [48] and trains linear SVMs [6] on top of the frozen learned representations using the VOC07 train+val splits for training and the VOC07 test split for testing. We consider the features of the 3rd (layer conv4) and 4th (layer conv5) residual blocks and provide results in Table 4. Again, BoWNet improves the performance of the already strong RotNet by several points. Furthermore, BoWNet outperforms all prior methods. Interestingly, conv4-based BoW leads to better classification results for the conv5 layer of BoWNet, and conv5-based BoW leads to better classification results for the conv4 layer of BoWNet.
+
+ImageNet and Places205 classification results. Here we evaluate on the 1000-way ImageNet and 205-way Places205 classification tasks using linear classifiers on frozen feature representations. To that end, we follow the guidelines of [24]: for the ImageNet (Places205) dataset we train linear classifiers using Nesterov SGD for 28 (14) training epochs and a learning rate of 0.01 that is multiplied by 0.1 after 10 (5) and 20 (10) epochs. The batch size is 256 and the weight decay is $1e - 4$ . We report results in Table 5. We observe that BoWNet outperforms all prior self-supervised methods by significant margin. Furthermore, the accuracy gap on Places205 between our ImageNet-trained BoWNet representations and the ImageNet-trained supervised representations is only 0.9 points in $\mathsf{poo}15$ . This demonstrates that our self-supervised representations have almost the same generalization ability to the "unseen" (during training) Places205 classes as the supervised ones. We also compare against the MoCo [25] and PIRL [42] methods that were recently uploaded on arXiv and essentially are concurrent work. BoWNet outperforms MoCo on ImageNet. When compared to PIRL, BoWNet has around 1 point higher Places205 accuracy but 1 point lower ImageNet accuracy.
+
+VOC detection results. Here we evaluate the utility of our self-supervised method on a more complex downstream task: object detection. We follow the setup considered in prior works [24, 25, 42]: Faster R-CNN [54] with a ResNet50 backbone [26] (R50-C4 in Detectron2 [66]). We fine-tune the pre-trained BoWNet on trainval $107 + 12$ and evaluate on test07. We use the same training schedule as [24, 42] adapted for 8 GPUs and freeze the first two convolutional blocks. In detail, we use mini-batches of 2 images per GPU and fine-tune for $25K$ steps with the learning rate dropped by 0.1 after $17K$ steps. We set the base learning to 0.02 with a linear warmup [23] of 1,000 steps. We fine-tune BatchNorm layers [30] (synchronizing across GPUs) and use BatchNorm on newly added layers specific to this task. $^6$
+
+We compare BoWNet conv4 and BoWNet conv5 against both classic and recent self-supervised methods and report results in Table 6. Both BoWNet variants exhibit strong performance. Differently from previous benchmarks, the conv5 is clearly better than conv4 on all metrics. This might be due to the fact that here we fine-tune multiple layers and depth plays a more significant role. Interestingly, BoWNet outperforms the supervised ImageNet pretrained model, which is fine-tuned in the same conditions as BoWNet. So, our self-supervised representations generalize better to the VOC detection task than the supervised ones. This result is in line with concurrent works [25, 42] and underpins the utility of such methods in efficiently squeezing out information from data without using labels.
+
+# 5. Conclusion
+
+In this work we propose BoWNet, a novel method for representation learning that employs spatial dense descriptions based on visual words as targets for self-supervised training. The labels for training BoWNet are provided by a standard self-supervised model. The reconstruction of the BoW vectors from perturbed images along with the discretization of the output space into visual words, enable a more discriminative learning of the local visual patterns in an image. Interestingly, although BoWNet is trained over features learned without label supervision, not only it achieves strong performances, but it also manages to outperform the initial model. This finding along with the discretization of the feature space (into visual words) open additional perspectives and bridges to NLP self-supervised methods that have greatly benefited from this type of approaches in the past few years.
+
+Acknowledgements. We would like to thank Gabriel de Marmiesse for his invaluable support during the experimental implementation and analysis of this work.
+
+# References
+
+[1] Jean-Baptiste Alayrac, Joao Carreira, and Andrew Zisserman. The visual centrifuge: Model-free layered video representations. In IEEE Conf. on Computer Vision and Pattern Recognition, 2019. 5
+[2] Relja Arandjelovic, Petr Gronat, Akihiko Torii, Tomas Pajdla, and Josef Sivic. NetVLAD: CNN architecture for weakly supervised place recognition. In IEEE Conf. on Computer Vision and Pattern Recognition, 2016. 4
+[3] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In Int. Conf. on Computer Vision, 2017. 5
+[4] Yuki Markus Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. In Int. Conf. on Learning Representations, 2020. 5
+[5] Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, 2019. 5, 6
+[6] Bernhard E Boser, Isabelle M Guyon, and Vladimir N Vapnik. A training algorithm for optimal margin classifiers. In Fifth Annual Workshop on Computational Learning Theory, 1992. 8
+[7] Wieland Brendel and Matthias Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well onImagenet. In Int. Conf. on Learning Representations, 2019. 2
+[8] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In European Conf. on Computer Vision, 2018. 5
+[9] Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In Int. Conf. on Computer Vision, 2019. 5, 7
+[10] Ting Chen, Xiaohua Zhai, Marvin Ritter, Mario Lucic, and Neil Houlsby. Self-supervised generative adversarial networks. arXiv preprint arXiv:1811.11212, 2018. 1
+[11] Gabriella Csurka, Christopher Dance, Lixin Fan, Jutta Willamowski, and Cedric Bray. Visual categorization with bags of keypoints. In ECCV Workshops, 2004. 4
+[12] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. 1
+[13] Tom van Dijk and Guido de Croon. How do neural networks see depth in single images? In Int. Conf. on Computer Vision, 2019. 5
+[14] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Int. Conf. on Computer Vision, 2015. 1, 5, 6, 7
+[15] Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg, Martin Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with exemplar convolutional neural networks. IEEE Trans. on Pattern Analysis and Machine Intelligence, 38(9), 2015. 5
+[16] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep
+
+network. In Advances in Neural Information Processing Systems, 2014. 5
+[17] M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The Pascal visual object classes (VOC) challenge. Int. journal of Computer Vision, 88(2), 2010. 5
+[18] Spyros Gidaris, Andrei Bursuc, Nikos Komodakis, Patrick Pérez, and Matthieu Cord. Boosting few-shot visual learning with self-supervision. In Int. Conf. on Computer Vision, 2019. 1, 6
+[19] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In IEEE Conf. on Computer Vision and Pattern Recognition, 2018. 6
+[20] Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In Int. Conf. on Learning Representations, 2018. 1, 3, 5
+[21] Clément Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estimation with left-right consistency. In IEEE Conf. on Computer Vision and Pattern Recognition, 2017. 5
+[22] Yunchao Gong, Liwei Wang, Ruiqi Guo, and Svetlana Lazebnik. Multi-scale orderless pooling of deep convolutional activation features. In European Conf. on Computer Vision, 2014. 4
+[23] Priya Goyal, Piotr Dolkar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SBD: Training Imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. 8
+[24] Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking self-supervised visual representation learning. In Int. Conf. on Computer Vision, 2019, 7, 8
+[25] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019. 5, 7, 8
+[26] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask R-CNN. In Int. Conf. on Computer Vision, 2017. 8
+[27] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conf. on Computer Vision and Pattern Recognition, 2016. 7
+[28] Olivier J Henaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. 1
+[29] Dan Hendrycks, Mantas Mazeika, Saurav Kadavath, and Dawn Song. Using self-supervised learning can improve model robustness and uncertainty. In Advances in Neural Information Processing Systems, 2019. 1
+[30] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 8
+[31] Hervé Jégou, Matthijs Douze, and Cordelia Schmid. Packing bag-of-features. In Int. Conf. on Computer Vision, 2009. 3
+[32] Hervé Jégou, Matthijs Douze, Cordelia Schmid, and Patrick Pérez. Aggregating local descriptors into a compact image
+
+representation. In IEEE Conf. on Computer Vision and Pattern Recognition, 2010. 4
+[33] Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Advances in Neural Information Processing Systems, 2015. 5
+[34] Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In IEEE Conf. on Computer Vision and Pattern Recognition, 2019. 3
+[35] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In European Conf. on Computer Vision, 2016. 1, 5
+[36] Svetlana Lazebnik, Cordelia Schmid, and Jean Ponce. Beyond bags of features: Spatial pyramid matching for recognizing natural scene categories. In IEEE Conf. on Computer Vision and Pattern Recognition, 2006. 6
+[37] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 1998. 1
+[38] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In Int. Conf. on Computer Vision, 2017. 5
+[39] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. 1
+[40] David G Lowe. Distinctive image features from scale-invariant keypoints. Int. journal of Computer Vision, 60(2), 2004. 4
+[41] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. 5
+[42] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. arXiv preprint arXiv:1912.01991, 2019. 5, 7, 8
+[43] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conf. on Computer Vision, 2016. 5
+[44] Eva Mohedano, Kevin McGuinness, Noel E O'Connor, Amaia Salvador, Ferran Marques, and Xavier Giro-i Nieto. Bags of local convolutional features for scalable instance search. In Int. Conf. on Multimedia Retrieval, 2016. 4
+[45] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conf. on Computer Vision, 2016. 1, 5
+[46] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 2
+[47] Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Advances in Neural Information Processing Systems, 2017. 5
+[48] Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In European Conf. on Computer Vision, 2016. 8
+
+[49] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In IEEE Conf. on Computer Vision and Pattern Recognition, 2016. 1, 5
+[50] Florent Perronnin and Christopher Dance. Fisher kernels on visual vocabularies for image categorization. In IEEE Conf. on Computer Vision and Pattern Recognition, 2007. 4
+[51] Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Superdepth: Self-supervised, super-resolved monocular depth estimation. In International Conference on Robotics and Automation (ICRA), 2019. 5
+[52] Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In IEEE Conf. on Computer Vision and Pattern Recognition, 2018. 6
+[53] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. In Advances in Neural Information Processing Systems, 2019. 5
+[54] 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, 2015. 8
+[55] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. Int. journal of Computer Vision, 115(3), 2015. 5
+[56] Josef Sivic and Andrew Zisserman. Video google: Efficient visual search of videos. In Toward category-level object recognition. Springer, 2006. 3, 4
+[57] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, 2017. 6
+[58] Jong-Chyi Su, Subhransu Maji, and Bharath Hariharan. When does self-supervision improve few-shot learning? arXiv preprint arXiv:1910.03560, 2019. 1
+[59] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. 7
+[60] Giorgos Tolias, Yannis Avrithis, and Hervé Jégou. To aggregate or not to aggregate: Selective match kernels for image search. In Int. Conf. on Computer Vision, 2013. 4
+[61] Trieu H Trinh, Minh-Thang Luong, and Quoc V Le. Self-supervised pretraining for image embedding. arXiv preprint arXiv:1906.02940, 2019. 2
+[62] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Int. Conf. on Machine Learning, 2008. 1, 5
+[63] Oriol Vinyals, Charles Blundell, Tim Lillicrap, and Daan Wierstra. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, 2016. 5, 6
+[64] Carl Vondrick, Abhinav Shrivastava, Alireza Fathi, Sergio Guadarrama, and Kevin Murphy. Tracking emerges by colorizing videos. In European Conf. on Computer Vision, 2018. 5
+[65] Donglai Wei, Joseph J Lim, Andrew Zisserman, and William T Freeman. Learning and using the arrow of time.
+
+In IEEE Conf. on Computer Vision and Pattern Recognition, 2018. 5
+[66] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. *Detectron2*, 2019. 8
+[67] Jun Yang, Yu-Gang Jiang, Alexander G Hauptmann, and Chong-Wah Ngo. Evaluating bag-of-visual-words representations in scene classification. In ACM Int. Workshop on Multimedia Information Retrieval, 2007. 2
+[68] Joe Yue-Hei Ng, Fan Yang, and Larry S Davis. Exploiting local features from deep networks for image retrieval. In CVPR Workshops, 2015. 4
+[69] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization strategy to train strong classifiers with localizable features. In Int. Conf. on Computer Vision, 2019. 4
+[70] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conf., 2016. 5, 6
+[71] Xiaohua Zhai, Avital Oliver, Alexander Kolesnikov, and Lucas Beyer. S $^4$ L: Self-supervised semi-supervised learning. In
+
+Int. Conf. on Computer Vision, 2019. 1
+[72] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conf. on Computer Vision, 2016. 1, 5
+[73] Richard Zhang, Phillip Isola, and Alexei A Efros. Split-brain autoencoders: Unsupervised learning by cross-channel prediction. In IEEE Conf. on Computer Vision and Pattern Recognition, 2017. 1, 5
+[74] Bolei Zhou, Agata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In Advances in Neural Information Processing Systems. 2014. 5
+[75] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In IEEE Conf. on Computer Vision and Pattern Recognition, 2017. 5
+[76] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In Int. Conf. on Computer Vision, 2019. 7
\ No newline at end of file
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/images.zip b/learningrepresentationsbypredictingbagsofvisualwords/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..47d47980af8f4483c6174c5755c507c05a1100b1
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36fea720920388af373724a2ebcaf2e9df9295dbd1510b699f957e97f9572c70
+size 266369
diff --git a/learningrepresentationsbypredictingbagsofvisualwords/layout.json b/learningrepresentationsbypredictingbagsofvisualwords/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9e7fcda9b3a878f979cc9a788f656a0bd9d2aabc
--- /dev/null
+++ b/learningrepresentationsbypredictingbagsofvisualwords/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f6d4ab05328c590a70b18b605f936dda61df0187a41734e95a4748e1663a53b
+size 457183
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_content_list.json b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d885ddb86762646f4f9d8637bc17d0931b234398
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:305dc367d09731f8f1a17e9d92e83d8719e3d2bb1ac463d2c3351292b758b844
+size 71824
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_model.json b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..42f9df3cd982b74f6768e950aa542657d5a5b1f3
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c3be9678a354098b0c3ce962291eb7dd8a98c622591d359ebef48f127ac30f71
+size 84802
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_origin.pdf b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..75e827aa7145475705bcf6ab76cd1364f5e63e07
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/f39483c5-b142-4769-b355-178ed53bffd4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bc7ef86bb5360db9893cc7ff854f445f69e1c43103e8411b38587c392b271c73
+size 4728337
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/full.md b/learningsaliencypropagationforsemisupervisedinstancesegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1fa4bdc4b038c7513ac38fb725dc7c9bfd8a44e9
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/full.md
@@ -0,0 +1,257 @@
+# Learning Saliency Propagation for Semi-Supervised Instance Segmentation
+
+Yanzhao Zhou $^{1,2}$ , Xin Wang $^{2}$ , Jianbin Jiao $^{1}$ , Trevor Darrell $^{2}$ and Fisher Yu $^{2}$
+
+1University of Chinese Academy of Sciences
+
+$^{2}$ UC Berkeley
+
+zhouyanzhao215@mails.ucas.ac.cn, {xinw, trevor}@eecs.berkeley.edu, jiaojb@ucas.ac.cn, i@yf.io
+
+# Abstract
+
+Instance segmentation is a challenging task for both modeling and annotation. Due to the high annotation cost, modeling becomes more difficult because of the limited amount of supervision. We aim to improve the accuracy of the existing instance segmentation models by utilizing a large amount of detection supervision. We propose ShapeProp, which learns to activate the salient regions within the object detection and propagate the areas to the whole instance through an iterative learnable message passing module. ShapeProp can benefit from more bounding box supervision to locate the instances more accurately and utilize the feature activations from the larger number of instances to achieve more accurate segmentation. We extensively evaluate ShapeProp on three datasets (MS COCO, PASCAL VOC, and BDD100k) with different supervision setups based on both two-stage (Mask R-CNN) and single-stage (RetinaMask) models. The results show our method establishes new states of the art for semi-supervised instance segmentation.
+
+# 1. Introduction
+
+Instance segmentation methods [13, 3, 25] have enjoyed great success recently thanks to deep convolutional networks and availability of new datasets [5, 32]. Those methods can be applied in a broad range of applications such as key point detection and 3D cuboid fitting. However, collecting these fine annotations requires prohibitively expensive human effort, preventing the existing frameworks from learning on larger data. This difficulty limits our further study in the instance segmentation problem.
+
+One possible solution is to use the abundant cheaper bounding box annotations to relieve the shortage of segmentation supervision. Some works [15, 20] have explored how to generalize to unseen categories with the weak supervi
+
+
+Figure 1: ShapeProp jointly learns from the abundant yet coarse-grained boxes and the fine-detailed yet limited amount of masks to extract a shape representation, which provide strong shape prior to mask head to improve segmentation accuracy and generalization.
+
+sion. However, the segmentation modules usually only get pixel information from only fine segmentation supervision. It is still not well understood how to exploit the new pixel-level information from bounding boxes, even though more box-level supervision can improve the object localization,
+
+In this work, we aim to combine the weekly supervised segmentation information in bounding boxes and full instance segmentation supervision for semi-supervised learning of instance segmentation. The task is a generalization of the "partially supervised instance segmentation" in previous literature [16, 20] which assumes the costly mask annotations are available for a subset of categories. We denote this as category-wise semi-supervision and also consider a realistic image-wise semi-supervision where only a subset of images has masks. The category-wise and image-wise semi-supervision focuses on inter- and intra-class generalization. Note that the considerably cheaper bounding box annotations are available for all object instances.
+
+Semi-supervised instance segmentation is challenging to existing instance segmentation frameworks. Current single-stage (e.g., RetinaMask [10]) or two-stage (e.g., Mask R-CNN family [13, 25]) instance segmentation frameworks do not take full advantage of the existing supervision. They typically use a detection head and a segmentation head to learn from the box and mask supervision separately. So the segmentation head does not explicitly benefit from the abundant box annotations as each box is a coarse-grained representation which does not specify object shape. Also, the segmentation head requires high-level semantics to predict pixel-wise labels, making it difficult to adequately capture data distribution when only limited masks are available.
+
+Our goal is to learn to locate and segment objects from both box and segmentation annotations. We propose ShapeProp, a lightweight network module that can extend existing instance segmentation frameworks to utilize box-level instance supervision for the semi-supervised instance segmentation. ShapeProp exploits the shape prior information hidden inside box and mask annotations to improve accuracy and generalization of existing instance segmentation frameworks, as illustrated in Fig. 1. ShapeProp can learn instance-specific saliency from the abundant box supervision and model the instance-specific latent relationships between pixels from the limited segmentation annotations.
+
+ShapeProp extracts salient regions of the instance from the box detection outputs. Then it propagates salient regions into an intermediate shape representation, referred as Shape Activation, which specifies fine-detailed instance shape extents, as shown in Fig. 2. Shape activation indicates the potential object shapes and provides shape prior. We then fuse it with the region features before making final instance segmentation predictions.
+
+Our approach does not use preprocessing steps such as grouping masks in ShapeMask [20], and can be easily integrated and jointly trained with existing instance segmentation frameworks. In contrast to methods [15] based on transfer learning, which only aims to improve interclass generalization, our approach improves both inter- and intra-class generalization. Furthermore, our method is lightweight and do not introduce heavy computational overhead to the model inference speed.
+
+Extensive experiments show that ShapeProp module brings consistent and significant improvements to baselines, achieving top performance on various benchmarks. For instance, on semi-supervision setting, Mask R-CNN augmented by ShapeProp improves the baseline by 10.8 AP and outperform the state-of-the-art by 2.2 AP. Those results show strong evidence that ShapeProp effectively improves model's segmentation quality and generalization ability.
+
+Box Detection Grabcut [31] ShapeMask [21] ShapeProp
+
+
+
+
+
+
+
+
+
+
+
+
+Prior from Box
+
+
+Figure 2: Visualization of extracted shape representation. Previous methods use either box or mask supervision to extract shape prior, while our approach jointly learns from both boxes and masks to extract shape representation.
+
+
+Box and Mask
+
+# 2. Related Work
+
+Instance segmentation. Instance segmentation is a fundamental task in the computer vision can be roughly categorized into detection-based or grouping-based approaches. The detection-based methods [11, 6, 12, 21, 4, 13] dominates the state-of-the-art performance in commonly used benchmarks, e.g., COCO [22]. They typically follow a multi-task learning paradigm where a backbone network first extracts spatial features and generates a set of candidate regions, either with region proposal networks [30] or dense anchor boxes [10]. Then a detection head and a segmentation head which composes several convolution -relu layers predicted the accurate box and the segmentation mask inside the region cropped by the detected box. The grouping-based approaches [19, 2, 7, 26, 24, 1, 18] view the instance segmentation as a bottom-up grouping problem. Although great progress has been achieved in the instance segmentation task, most of these works require strong supervision in the form of hand-annotated instance masks for all objects, which limits their application on large-scale datasets.
+
+Weakly supervised instance segmentation. Methods learning with weaker labels try to break this limitation by learning with a weaker form of supervision. [17] leverages the idea that given a bounding box for the target object, one can obtain a pseudo mask label from a grouping-based segmentation algorithm like GrabCut [31]. Pham et al. [28] study open-set instance segmentation by using a boundary detector followed by grouping. Zhou et al. [33, 34] tackle weakly supervised instance segmentation by exploiting the class peak response of classification networks. Although effective, these approaches do not take advantage of existing instance mask labels to achieve better performance.
+
+Learning with limited masks. As opposed to the weakly-supervised setting [17, 33], some recent approaches tackle the partially supervised setting where only box labels (not mask labels) are available for a subset of categories at training time. The model is required to perform instance segmentation on these categories at test time, which requires strong generalization ability. $\mathbf{Mask}^X$ R-CNN [15]
+
+
+Figure 3: Overall Framework. ShapeProp activates a saliency map for each box detection and propagate the saliency conditioned on the appearance of the object to generate a well-generalized shape representation, i.e. Shape Activation, which provide strong shape prior to improve segmentation accuracy and generalization.
+
+tackles the problem by learning to predict weights of mask segmentation branch from the box detection branch. This transfer learning approach shows significant improvement over class-agnostic training; however, performance gap to fully supervised methods remains significant.
+
+Moreover, it only addresses inter-class generalization problems while ignoring intra-class generalization (i.e. novel instances from seen categories). ShapeMask [20] is based on a strong assumption that shape bases from existing mask annotations could serve as canonical shapes and generalize to unseen categories. ShapeMask uses the limited mask annotations to extract prior knowledge to help segmentation. Despite its effectiveness, this approach drew class agnostic shape prior from the limited mask annotations and neglect the abundant box annotations, which we argue could provide informative instance-specific saliency.
+
+In this paper, we tackle semi-supervised instance segmentation problem, which includes both category-wise semi-supervision setting (i.e., partially supervised setting), and image-wise semi-supervision setting, i.e., only a small subset of images have masks. Those two settings focus on inter- and intra-class generalization, respectively. In other words, our model generalizes to both objects from unseen categories and novel objects from seen categories.
+
+# 3. Method
+
+In this section, we first revisit the detection based instance segmentation frameworks as we aim to improve their accuracy and generalization. We then introduce the proposed ShapeProp approach, starting with the process of statistically learning instance-specific saliency via multiple instance learning and followed by the design of propagating saliency to a well-generalized shape representation, referred to as Shape Activation. Finally, we discuss how to integrate Shape Activation to the instance segmentation frameworks. The overall architecture of ShapeProp is illustrated in Fig. 3.
+
+# 3.1. Learning Saliency Propagation
+
+Activating Saliency. Although a single box annotation does not specify the label for each pixel, they entail information on what an object looks like and provide one weak label for all pixels within the bounding box. We can still learn pixel-level label statistics from the weak supervision after looking at a large number of examples. This is also studied in the context of Multiple Instance Learning (MIL). MIL [27] is a form of weakly supervised learning where training instances are arranged in sets, called bags, and a label is provided for the entire bag instead of an individual instance. Note that in our context, we consider each box as a bag of pixels.
+
+We first construct positive and negative bags from the box detections $\mathcal{B} = \{b_1, b_2, \dots, b_N\}$ outputted by the instance segmentation framework where $b_i = (\hat{x}, \hat{y}, \hat{w}, \hat{h}, \hat{c})$ is the $i$ -th detection and $N$ is the number of detected objects in the image. $(\hat{x}, \hat{y}, \hat{w}, \hat{h})$ is the predicted coordinates of the bounding box and $0 \leq \hat{c} < K$ is the predicted class label from $K$ predefined object categories, e.g., car, dog, and person. Let $Y_i$ be the label of a bag $X_i = \{x_1, x_2, \dots, x_{\hat{w} * \hat{h}}\}$ , where a bag is defined as a set of pixels within the box detection $b_i$ . Each instance (i.e., pixel) $x_j$ corresponds to a binary label $y_j$ which indicates whether the pixel is in the mask of object detected by $b_i$ . We follow the standard MIL assumption that all negative bags contain only negative instances, and positive bags contain at least one positive instance:
+
+$$
+Y _ {i} = \left\{ \begin{array}{l} + 1 i f \exists y _ {j}: y _ {j} = + 1, \\ - 1 i f \forall y _ {j}: y _ {j} = - 1. \end{array} \right. \tag {1}
+$$
+
+For each category $c$ , we use the box annotations $G^c$ to partition $\mathcal{B}^c$ into positive bags $\mathcal{P}^c = \{p_1, p_2, \dots, p_u\}$ and negative bags $\mathcal{N}^c = \{n_1, n_2, \dots, n_v\}$ based on the Intersection over Union (IoU) and a threshold $t$ ( $e.g., t = 0.5$ ):
+
+$$
+\mathcal {P} ^ {c} = \left\{b _ {i} \in \mathcal {B} i f I o U \left(b _ {i}, g\right) > t, \exists g \in G ^ {c} \right\}, \tag {2}
+$$
+
+$$
+\mathcal {N} ^ {c} = \left\{b _ {i} \in \mathcal {B} i f I o U (b _ {i}, g) \leq t, \forall g \in G ^ {c} \right\}.
+$$
+
+We do this because positive sample must contain part of the object (i.e., positive bag) as the IoU is high. The negative sample is misaligned with the object (low IoU) thus all pixels are consider invalid (i.e., negative bag). Note that this is different from previous works that utilize MIL to discover class-specific responses in the image for semantic segmentation [29]. We extract object-specific responses for instance segmentation.
+
+We build a weak learner $\mathcal{F}$ , which is a lightweight module containing several conv-relu layers. For each sample $p_i$ , $\mathcal{F}$ predicts a map $M \in \mathcal{R}^{h \times w}$ based on the corresponding region feature. In contrast to using pixel-level ground truth, we learn $\mathcal{F}$ using bag-level labels from boxes:
+
+$$
+L = \sum_ {c} \left(\sum_ {p _ {i} \in \mathcal {P} ^ {c}} - \sigma (F (\omega (p _ {i}), \theta)) + \sum_ {n _ {j} \in \mathcal {N} ^ {c}} + \sigma (F (\omega (n _ {j}), \theta))\right), \tag {3}
+$$
+
+where $L$ is the loss, $\theta$ is the learnable parameters in $\mathcal{F}$ , $\sigma$ is a 2D aggregation operator, e.g., Avg2D, and $\omega$ is a region feature pooling operator, e.g., ROIAlign. The learning of $\mathcal{F}$ accumulates several bags of instances to collect pixel-level information statistically, and the predicted $M$ highlights salient regions in the image specific to each detected object and provides rich shape prior information to the subsequent mask head, as shown in Fig. 4.
+
+Propagating Saliency. Object-specific region responses $M$ obtained with MIL highlight only salient regions, we further design a propagation step to make use of the existing limited mask annotations and to recover full object extent from the incomplete object region responses. The motivation is to exploit the relation between pixels to estimate object shape from the salient regions obtained from boxes. Instead of considering it as a pixelwise classification problem, we learn how to propagate messages between deep pixels in the latent feature space. Learning to predict edges between nodes (i.e., deep pixels) for propagation instead of labels of nodes is more effective for the cases with only limited mask annotations. The reason lies in that pixelwise classification depends on high-level semantics and thus requires sufficient supervision to capture the diverse data distribution. Meanwhile, the relationship between pixels, i.e., whether two pixels belong to the same object, can be more reliably inferred with low-level semantics, e.g., similar color, and smooth texture. Intuitively speaking, a model does not need to recognize the semantic category of a banana but still can segment its extent by grouping pixels with a similar color.
+
+The saliency propagation is implemented as a latent space message passing process. As illustrated in Fig. 5, we first use conv blocks (i.e., conv-relu layers) to encode the instance saliency map $M \in \mathcal{R}^{H \times W}$ to latent features $\tilde{M} \in \mathcal{R}^{C \times H \times W}$ , where $C$ is the channel dimension (e.g., 16). The encoding extracts features from $M$ while making the subsequent message passing more robust to noise.
+
+For each channel $\tilde{M}_i$ , we consider deep pixels as nodes
+
+
+Figure 4: Learning instance-specific saliency from abundant yet coarse-grain box annotations. We partition box detections as bags of receptive fields (RFs) with bag-level labels (i.e., contain instance or not), and statistically learn a weak learner for predicting probability for each RF, resulting a saliency map for each object.
+
+and learn to propagate the message between spatially adjacent nodes. Based on the appearance feature of $b$ , we use conv blocks to predict propagation weights between nodes $W \in \mathbb{R}^{C \times (r \times r) \times (H \times W)}$ , where $r$ is a window size (e.g., 3). We then normalize and shuffle the learned propagation weights $W$ to construct location-specific kernels $K_{i,u,v} \in \mathcal{R}^{r \times r}$ , where $i$ is the channel dimension and $(u, v)$ is the spatial location and the $\sum_{(p,q)} K_{i,u,v}^{p,q} = 1$ . The propagation is an iterative process. At each step, we use $K$ to update the latent features:
+
+$$
+\tilde {M} _ {i} ^ {u, v} (t + 1) = \sum_ {(p, q) \in \mathcal {N}} \tilde {M} _ {i} ^ {p, q} (t) \cdot K _ {i, u, v} ^ {p - u + \frac {r}{2}, q - v + \frac {r}{2}}, \tag {4}
+$$
+
+where $\tilde{M}_i^{(u,v)}$ is the feature value at the $(u,v)$ location of $i$ -th channel, and $\mathcal{N}$ is the set of neighbor locations of $(u,v)$ . We iterate $\max(H,W)$ steps to guarantee that messages can spread over all locations, and each node could absorb information from all other nodes. This iterative process does not introduce significant computation overhead as the spatial size of the region feature is typically very small (e.g., 14), and our efficient GPU implementation computes message passing for all detections simultaneously.
+
+Finally, we use the convolution layer to decode the updated latent features back to a single channel map, referred to as Shape Activation, which combines shape information from both box and mask annotations and specify the extent of the object. Shape Activation serves as an intermediate shape representation that provides strong shape prior to subsequent mask prediction (i.e., mask head). During training, we use binary cross-entropy to compute the reconstruction loss against the ground truth mask. For the semi-supervised setting, we only calculate the loss in the small subset of images that have mask annotations. Note that learning of saliency propagation is in a class-agnostic manner that allows it to accumulate common knowledge from all existing
+
+
+Figure 5: Saliency Propagation. We learn to predict latent relationship between pixels conditioned on instance appearance and utilize iterative message passing to propagate saliency into a intermediate shape representation, referred to as Shape Activation.
+
+masks and effectively generalize to novel categories.
+
+# 3.2. Intergrating Shape Representation
+
+We integrate the learned Shape Activation $S$ into existing instance segmentation frameworks by concatenating it with the input region features before feeding into the mask head. The additional input channels provide strong prior information of objects' possible shapes; thus can significantly simplify the task of learning mask prediction, i.e., pixel-level classification, and allows mask head to focus on capturing fine-detailed information. Experimentally, we show that the Shape Activation guided segmentation not only significantly improves generalization ability (10.8% AP improvements on COCO's partially supervised setting), but also benefit segmentation quality even when mask annotations are sufficient (1.4% AP75 improvements on COCO's fully supervised setting).
+
+# 4. Experiments
+
+We evaluate the proposed ShapeProp method on popular instance segmentation benchmarks including COCO [22], PASCAL-VOC [9] and BDD100K [32]. We report standard metrics, that is, mask AP, AP50, AP75, and AP, for small/medium/large objects, following the evaluation protocol in previous works [13, 16, 20].
+
+In Sec. 4.1, we test our method on the category-wise semi-supervision setting (i.e., "partially supervised" setting in previous literature [16, 20]). The significant improvements over baselines (10.8% AP) and the new state-of-the-art results indicate ShapeProp's capability to learn from limited masks and generalize to unseen categories. In Sec. 4.2, we benchmark on BDD100K, where only a subset of images have mask annotations. We augment both the single-stage and two-stages instance segmentation frameworks [10, 13] with ShapeProp and show consistent im
+
+
+Figure 6: Generalization with less data. ShapeProp generalizes well down to 1/100 of the training data and it consistently improves the baseline.
+
+provements over baselines. This indicates the effectiveness of ShapeProp's intra-class generalization. We further show that our approach can improve strong baselines that are trained using full mask annotations from the dataset. In Sec. 4.3, statistical analyses show that ShapeProp can learn high-quality shape representation. Finally, we perform ablation studies to investigate our model design further.
+
+# 4.1. Generalization to unseen categories
+
+Experiment setup. The experiments are set up following [15, 20]. We split the COCO17's 80 categories into VOC (20) vs. Non-VOC (60). The VOC categories are also present in PASCAL VOC [8]. At training time, models have access to the bounding boxes of all classes, but the masks only come from either VOC or Non-VOC categories. The performance upper bounds are set by the oracle models that have access to masks from all categories. In this section, our training set is COCO train2017, and the comparison with other methods is done on val2017 Non-VOC/VOC.
+
+We build our models by plugging the ShapeProp module into the representative Mask R-CNN framework [13]. In order to evaluate across categories, we use the class-agnostic setting, which considers all object classes as the foreground class. We implement the model with two backbones, i.e., ResNet50-FPN and ResNet101-FPN [14, 23]. We use the same training parameters as the baseline.
+
+Numerical results. It can be seen in table 1, Mask R-CNN equipped with ShapeProp improves the baseline by a significant margin (e.g., $34.4\%$ vs $23.9\%$ for non-voc $\rightarrow$ voc and $30.4\%$ vs $19.2\%$ for voc $\rightarrow$ non-voc). Our model with ResNet50-FPN backbone outperforms the state-of-the-art ShapeMask [20] that is built on a stronger backbone (ResNet101-FPN. Our ShapeProp module improves segmentation by fully exploiting shape knowledge from the box and mask annotations; thus, it can also benefit from other advances in deep learning i.e., stronger backbone. Switching to ResNet101-FPN backbone improves yields a top result on these benchmarks (e.g., $2.2\%$ AP higher than state of the art ShapeMask [20]).
+
+| Backbone | Method | non-voc → voc: test on B = {voc} | voc → non-voc: test on B = {non-voc} |
| AP | AP50 | AP75 | APS | APM | APL | AP | AP50 | AP75 | APS | APM | APL |
| R-50-FPN | Mask R-CNN trained w/ GrabCut [17] | 19.5 | 46.2 | 14.2 | 4.7 | 15.9 | 32.0 | 19.5 | 39.2 | 17.0 | 6.5 | 20.9 | 34.3 |
| MaskX R-CNN [15] | 28.9 | 52.2 | 28.6 | 12.1 | 29.0 | 40.6 | 23.7 | 43.1 | 23.5 | 12.4 | 27.6 | 32.9 |
| Mask R-CNN (Baseline) [13] | 23.9 | 42.9 | 23.5 | 11.6 | 24.3 | 33.7 | 19.2 | 36.4 | 18.4 | 11.5 | 23.3 | 24.4 |
| Mask R-CNN w/ ShapeProp (Ours) | 34.4 | 59.6 | 35.2 | 13.5 | 32.9 | 48.6 | 30.4 | 51.2 | 31.8 | 14.3 | 34.2 | 44.7 |
| fully supervised (Oracle) [13] | 37.5 | 63.1 | 38.9 | 15.1 | 36.0 | 53.1 | 33.0 | 53.7 | 35.0 | 15.1 | 37.0 | 49.9 |
| R-101-FPN | Mask R-CNN trained w/ GrabCut [17] | 19.6 | 46.1 | 14.3 | 5.1 | 16.0 | 32.4 | 19.7 | 39.7 | 17.0 | 6.4 | 21.2 | 35.8 |
| MaskX R-CNN [16] | 29.5 | 52.4 | 29.7 | 13.4 | 30.2 | 41.0 | 23.8 | 42.9 | 23.5 | 12.7 | 28.1 | 33.5 |
| ShapeMask [20] | 33.3 | 56.9 | 34.3 | 17.1 | 38.1 | 45.4 | 30.2 | 49.3 | 31.5 | 16.1 | 38.2 | 28.4 |
| Mask R-CNN (Baseline) [13] | 24.7 | 43.5 | 24.9 | 11.4 | 25.7 | 35.1 | 18.5 | 34.8 | 18.1 | 11.3 | 23.4 | 21.7 |
| Mask R-CNN w/ ShapeProp (Ours) | 35.5 | 60.5 | 36.7 | 15.6 | 33.8 | 50.3 | 31.9 | 52.1 | 33.7 | 14.2 | 35.9 | 46.5 |
| fully supervised (Oracle) [13] | 38.5 | 64.4 | 40.4 | 18.9 | 39.4 | 51.4 | 34.3 | 54.7 | 36.3 | 18.6 | 39.1 | 47.9 |
+
+Table 1: Performance on COCO2017's category-wise semi-supervision setting which focuses on inter-class generalization. At the top, non-voc $\rightarrow$ voc means "train on masks in non-voc, test on masks in voc", and vice versa. Equipping ShapeProp module to class-agnostic Mask R-CNN gives 10.8 AP improvements and beat ShapeMask by 2.2 AP, showing strong evidence that ShapeProp can significantly improve existing models' accuracy and generalization.
+
+Generalization with less data. To further validate the generalization ability of ShapeProp with less training data, we train the ResNet50-FPN based models on full categories using only 1/10, 1/50, 1/100 of the data. As can be seen in Fig. 6, our approach generalizes well down to 1/100 of the training data, and it consistently outperforms the baseline (Mask R-CNN without ShapeProp).
+
+Qualitative results. Fig. 7 gives qualitative examples from the non-voc $\rightarrow$ voc setting. It can be seen in the second row, the baseline method failed to segment the novel category "bicycle" as no masks for this category is available during training. However, adding ShapeProp to the baseline significantly improves the segmentation quality. It can also be seen in the bottom row that Mask R-CNN predicts a broken mask for the "cow" instance. In contrast, Mask R-CNN with ShapeProp model segment it correctly.
+
+# 4.2. Generalization to novel instances
+
+Experiment setup. We further benchmark upon the BDD100K dataset [32], which is the largest and most diverse driving video dataset. Due to the extensive human efforts required for labeling detailed instance segmentation, only a subset of BDD100K provides mask annotations. The dataset fits naturally with our semi-supervised setting. We fuse the annotations of BDD100K's instance segmentation and detection to build a data contains 67k images with box annotations, among which 7k images have mask annotations. We test models on BDD100K's val. set (1k images).
+
+We build our models by plugging the proposed Shape-Prop module into two representative detection based instance segmentation frameworks, i.e., Mask R-CNN (two-stages method), and RetinaMask (single-stage method). We compare with the joint learning version of Mask R-CNN. It learns from all images and only compute the loss for segmentation head when mask annotation is available. We also compare with Grabcut Mask R-CNN [17] and Progressive
+
+Mask R-CNN, which use Grabcut post-processing and the pretrained annotator model to obtain pseudo masks from box annotations. All models are based on the ResNet-50 FPN backbone and are trained via standard SGD optimization with LR 0.01 and batch size 12.
+
+Numerical results. As shown in Tab. 2, the mask APs for both single-stage and two-stage baselines are significantly improved when more box annotations are available, i.e., Mask RCNN (24.5 vs 21.6) and RetinaMask (24.4 vs 20.0). However, the model trained with Grabcut pseudo masks performs even worse than the baseline, indicating the shape representation quality from Grabcut is not good enough. It can be seen in Tab. 2, equipping the proposed ShapeProp module bridges the learning of box and mask and further improves the model's segmentation ability $(26.2\%$ vs $24.5\%)$ . This shows ShapeProp can effectively exploit shape prior hidden inside the annotations to enhance the quality of segmentation. Moreover, it can be seen in Tab. 3, equipping ShapeProp also improves the strong baselines trained with fully supervised setting where all masks are available during training. This indicates that fully exploiting annotations can improve segmentation quality even when masks are sufficient.
+
+Inference time. The proposed ShapeProp module is a lightweight module built on top of the convolution blocks. The message passing operation for propagating saliency is efficiently implemented as matrix dot production. Therefore, overall ShapeProp module does not introduce heavy computation overhead (0.35 vs 0.39 s/img on 2080 Ti).
+
+Qualitative results. In Fig. 8, we visualize examples of box detection, instance saliency, shape activation, and mask predictions from models with or without ShapeProp. It can be seen from the left sample, multiple cars are occluded in the detected region, and the baseline model failed to segment the correct one. In contrast, ShapeProp find the object-specific salient parts and further predict propagation
+
+
+Figure 7: Visualization of Mask R-CNN (w/ or wo/ ShapeProp)'s results on novel categories. Results demonstrate that plugging ShapeProp module leads to significant better segmentation quality.
+
+| Training data (# annotations) | Method | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) | Comment |
| BDD100k-Instseg(7k w/ masks, 7k w/ boxes) | RetinaMask [10] | 20.0 | 37.6 | 18.1 | 7.6 | 27.0 | 42.3 | Single-stage baseline |
| Mask R-CNN [13] | 21.6 | 40.5 | 20.5 | 9.3 | 28.8 | 45.4 | Two-stage baseline |
| BDD100k(7k w/ masks, 67k w/ boxes) | RetinaMask [10] | 24.4 | 44.7 | 22.5 | 9.8 | 32.6 | 51.5 | Joint training |
| RetinaMask w/ ShapeProp | 26.1 | 46.8 | 24.9 | 10.7 | 34.7 | 56.3 | ShapeProp augmented (Ours) |
| Mask R-CNN [13] | 24.5 | 45.4 | 21.6 | 10.1 | 33.1 | 48.3 | Joint training |
| Grabcut Mask R-CNN [17] | 21.0 | 41.0 | 19.5 | 8.3 | 27.0 | 40.7 | Grabcut limited mask |
| Progressive Mask R-CNN | 24.8 | 45.4 | 23.0 | 10.0 | 33.0 | 52.7 | Progressive learning |
| Mask R-CNN w/ ShapeProp | 26.2 | 48.4 | 23.5 | 11.4 | 34.2 | 53.0 | ShapeProp augmented (Ours) |
+
+Table 2: Performance on BDD100K's image-wise semi-supervision setting that focuses on intra-class generalization. Shape-Prop improves the accuracy and generalization of single-stage (RetinaMask) and two-stage (Mask R-CNN) framework.
+
+
+Figure 8: Visualization of samples in BDD100K datasets.
+
+weights conditional on the visual appearance to propagate salient regions into a high-quality shape activation. Based on the shape activation's strong shape prior, the mask prediction of our model is significantly improved. The right sample gave a case when detection failed, i.e., a background region is mis-detected as a car. Despite this background re
+
+gion is unseen from the training data, our model gives a more reasonable shape representation and mask prediction while the baseline outputs a mask with broken pieces. Note the model is designed to estimate the shape of the centered salient "object" in the box. This further demonstrates the strong generalization of our approach.
+
+# 4.3. Analysis and ablation studies
+
+Statistical Analysis. We analyze the quality of the extracted shape prior with respect to object size, demonstrating that our approach can effectively extract shape prior from the box and mask annotations. Shape activation is assigned to GT masks and judged by measuring the best overlap metric. To be considered a perfect
+
+| Dataset | Method | AP | \( AP_{50} \) | \( AP_{75} \) |
| VOC12(1k images) | Mask R-CNN [13] | 29.7 | 54.1 | 29.6 |
| ShapeProp (Ours) | 30.6 | 53.2 | 32.0 |
| BDD100K(7k images) | Mask R-CNN [13] | 21.6 | 40.5 | 20.5 |
| ShapeProp (Ours) | 22.7 | 42.2 | 21.8 |
| COCO17(120k images) | Mask R-CNN [13] | 34.2 | 56.4 | 36.7 |
| ShapeProp (Ours) | 35.7 | 56.9 | 38.2 |
+
+Table 3: Comparison under fully supervised setting. ShapeProp-augmented models consistently improve AP.
+
+| Setting | AP | \( AP_{50} \) | \( AP_{75} \) |
| baseline | 21.6 | 40.5 | 20.5 |
| baseline + More head params | 21.4 | 40.3 | 19.5 |
| baseline + ShapeProp (Channel-agnostic) | 22.4 | 42.0 | 20.5 |
| baseline + ShapeProp | 22.7 | 42.2 | 21.8 |
| baseline + More boxes | 24.5 | 45.4 | 21.6 |
| baseline + More boxes + ShapeProp | 26.2 | 48.4 | 23.5 |
+
+Table 4: Ablation studies of model design on BDD100K.
+
+shape activation that completely coincide with a GT mask, the IoU between the predicted shape activation $M$ and GT masks $\mathcal{T}$ must be close to $100\%$ as computed using the metric $\max_{\theta ,T_i\in \mathcal{T}}\frac{\text{area}(f_b(M,\theta)\cap T_i)}{\text{area}(f_b(M,\theta)\cup T_i)}$ , where the function $f_{b}(M,\theta) = M\geq \theta$ produces the best matching binary instance masks based on the probabilistic shape activation over a set of threshold values $\theta \in (0,1)$ . Note that this metric is robust to the absolute value range of prediction and is suitable for evaluating probabilistic activation maps.
+
+We visualize the density of the best overlap for instance-specific saliency and the shape activation obtained by message passing to see whether the activation can cover object instances of different sizes. Fig. 9 (left) shows that saliency samples clustered in the area where the best overlap value is around $60\%$ and failed to cover large objects. In contrast, in Fig. 9 (right), most of the data points have relatively high best overlap IoUs and perform very well on both small and large objects. It can be seen that the message-passing design in our ShapeProp significantly improves the quality of the extracted shape prior. The underlying reason is that multiple instance learning typically captures the salient regions of the instance; however, it failed to recover the full extent. The message passing utilizes the limited number of ground truth masks to learn how to refine the saliency map and recover such extent in a class agnostic and well-generalized manner, thus considerably improve the quality.
+
+Ablation Study. We perform ablation studies on the BDD100K dataset to validate some specific designs of our method, Tab. 4. The baseline model is a Mask R-CNN with a ResNet50-FPN backbone. The first to sixth rows correspond to models trained on the instseg split of BDD100K, which contains $7\mathrm{k}$ images for training, and all instances in the training data have both box and mask annotations. The last two rows are trained with the overall BDD100K data,
+
+
+Figure 9: Shape activation accuracy. Message passing process propagates saliency to better cover object extent.
+
+including its official detection and instseg split, which has 67k images in total among it; only 7k images have masks. The setting of the second row increases the number of channels used in Mask R-CNN's mask head to make the number of learnable parameters be the same as the ShapePropaugmented counterpart. The AP of this setting is even slightly worse than the baseline, which validates that the gain of ShapeProp doesn't come from the increasing of model parameters. Comparing the fifth to the third rows, the better AP indicates that predicting propagation weights for each channel of the latent space instead of sharing the same weights for all channels can lead to performance improvements. The sixth row, which uses additional bounding box annotations from the BDD100K detection split has $2.9\%$ AP improvements (24.5% vs 21.6%). Meanwhile, the last row, which is augmented by the ShapeProp module, has $3.5\%$ AP gains (26.2% vs 22.7%) over the baseline and $4.6\%$ AP improvements over the plain baseline of the first row. This clearly shows that the ShapeProp module can better utilize the hidden shape prior to the additional box annotations to benefit the segmentation quality.
+
+# 5. Conclusions
+
+We developed a lightweight network module, ShapeProp, which can be plugged into existing instance segmentation frameworks to tackle the challenging semi-supervised instance segmentation task. ShapeProp extracts a well-generalized shape representation from the joint learning of the abundant yet coarse-grind box supervision and the fine-detailed yet limited amount of mask annotations. Such shape representation hypothesis possible object shape and specify detailed instance boundaries that provide strong shape prior to the subsequent mask prediction, which allows the learning of strong instance segmentation model based on limited mask annotations. We extensively test ShapeProp on popular benchmarks, including COCO, PASCAL VOC, and BDD100K. The results indicate that ShapeProp-augmented frameworks consistently outperform baseline by a significant margin, establishing states-of-the-art for semi-supervised instance segmentation.
+
+# References
+
+[1] Anurag Arnab and Philip HS Torr. Pixelwise instance segmentation with a dynamically instantiated network. In CVPR, volume 1, page 5, 2017. 2
+[2] Min Bai and Raquel Urtasun. Deep watershed transform for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5221-5229, 2017. 2
+[3] Liang-Chieh Chen, Alexander Hermans, George Papandreou, Florian Schroff, Peng Wang, and Hartwig Adam. Masklab: Instance segmentation by refining object detection with semantic and direction features. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1
+[4] Liang-Chieh Chen, Alexander Hermans, George Papandreou, Florian Schroff, Peng Wang, and Hartwig Adam. Masklab: Instance segmentation by refining object detection with semantic and direction features. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4013-4022, 2018. 2
+[5] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213-3223, 2016. 1
+[6] Jifeng Dai, Kaiming He, and Jian Sun. Instance-aware semantic segmentation via multi-task network cascades. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3150-3158, 2016. 2
+[7] Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv preprint arXiv:1708.02551, 2017. 2
+[8] Dumitru Erhan, Yoshua Bengio, Aaron Courville, and Pascal Vincent. Visualizing higher-layer features of a deep network. University of Montreal, 1341(3):1, 2009. 5
+[9] Mark Everingham, S. M. Ali Eslami, Luc J. Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The pascal visual object classes challenge: A retrospective. International Journal of Computer Vision (IJCV), 111(1):98-136, 2015. 5
+[10] Cheng-Yang Fu, Mykhailo Shvets, and Alexander C Berg. Retinamask: Learning to predict masks improves state-of-the-art single-shot detection for free. arXiv preprint arXiv:1901.03353, 2019. 2, 5, 7
+[11] Bharath Hariharan, Pablo Arbeláez, Ross Girshick, and Jitendra Malik. Simultaneous detection and segmentation. In European Conference on Computer Vision, pages 297-312. Springer, 2014. 2
+[12] Zeeshan Hayder, Xuming He, and Mathieu Salzmann. Boundary-aware instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5696-5704, 2017. 2
+[13] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In IEEE International Conference on Computer Vision (ICCV), pages 2980-2988, 2017. 1, 2, 5, 6, 7, 8
+
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 5
+[15] Ronghang Hu, Piotr Dólár, Kaiming He, Trevor Darrell, and Ross Girshick. Learning to segment every thing. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2, 5, 6
+[16] Ronghang Hu, Piotr Dólar, Kaiming He, Trevor Darrell, and Ross Girshick. Learning to Segment Every Thing. In CVPR, 2018. 1, 5, 6
+[17] Anna Khoreva, Rodrigo Benenson, Jan Hosang, Matthias Hein, and Bernt Schiele. Simple does it: Weakly supervised instance and semantic segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1665-1674, 2017. 2, 6, 7
+[18] Alexander Kirillov, Evgeny Levinkov, Bjoern Andres, Bogdan Savchynskyy, and Carsten Rother. Instancecut: from edges to instances with multicut. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5008-5017, 2017. 2
+[19] Shu Kong and Charless C Fowlkkes. Recurrent pixel embedding for instance grouping. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9018-9028, 2018. 2
+[20] Weicheng Kuo, Anelia Angelova, Jitendra Malik, and Tsung-Yi Lin. Shapemask: Learning to segment novel objects by refining shape priors. arXiv preprint arXiv:1904.03239, 2019. 1, 2, 3, 5, 6
+[21] Yi Li, Haozhi Qi, Jifeng Dai, Xiangyang Ji, and Yichen Wei. Fully convolutional instance-aware semantic segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4438-4446, 2017. 2
+[22] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dolkar, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In European Conference on Computer Vision (ECCV), pages 740-755, 2014. 2, 5
+[23] Tsung-Yi Lin, Piotr Dólar, Ross B Girshick, Kaiming He, Bharath Hariharan, and Serge J Belongie. Feature pyramid networks for object detection. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 1, page 3, 2017. 5
+[24] Shu Liu, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. Sgn: Sequential grouping networks for instance segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3496-3504, 2017. 2
+[25] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8759-8768, 2018. 1, 2
+[26] Yiding Liu, Siyu Yang, Bin Li, Wengang Zhou, Jizheng Xu, Houqiang Li, and Yan Lu. Affinity derivation and graph merge for instance segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 686-703, 2018. 2
+
+[27] Oded Maron and Tomás Lozano-Pérez. A framework for multiple-instance learning. In Advances in neural information processing systems, pages 570-576, 1998. 3
+[28] Trung Pham, Vijay BG Kumar, Thanh-Toan Do, Gustavo Carneiro, and Ian Reid. Bayesian semantic instance segmentation in open set world. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3-18, 2018. 2
+[29] Pedro O Pinheiro and Ronan Collobert. Weakly supervised semantic segmentation with convolutional networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 2, page 6, 2015. 4
+[30] 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 (NIPS), pages 91-99, 2015. 2
+[31] Carsten Rother, Vladimir Kolmogorov, and Andrew Blake. Grabcut: Interactive foreground extraction using iterated graph cuts. In ACM transactions on graphics (TOG), pages 309-314. ACM, 2004. 2
+[32] Fisher Yu, Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, and Trevor Darryll. Bdd100k: A diverse driving dataset for heterogeneous multitask learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. 1, 5, 6
+[33] Yanzhao Zhou, Yi Zhu, Qixiang Ye, Qiang Qiu, and Jianbin Jiao. Weakly supervised instance segmentation using class peak response. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[34] Yi Zhu, Yanzhao Zhou, Huijuan Xu, Qixiang Ye, David Doermann, and Jianbin Jiao. Learning instance activation maps for weakly supervised instance segmentation. In CVPR, 2019. 2
\ No newline at end of file
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/images.zip b/learningsaliencypropagationforsemisupervisedinstancesegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..951438588c734785938c79cd0c9009ab1ed0e6a0
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1840753abcaa974460814ebf6402a95d3201f5aafd8d88d7ddc0dd79830aef00
+size 778200
diff --git a/learningsaliencypropagationforsemisupervisedinstancesegmentation/layout.json b/learningsaliencypropagationforsemisupervisedinstancesegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..0ac8efa1a9082148f64e33f19ec8bce2f1d8bed5
--- /dev/null
+++ b/learningsaliencypropagationforsemisupervisedinstancesegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dd8fc160b1ea5e5247c18870e3c36e32c5f9769b9c9066b9d4b97cf76f59d223
+size 328530
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_content_list.json b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b7d06f258b6ea5196307dd2e240b38acbad79319
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e91b9109420de3aa6efc6ab0eb521a9cf6fb3be026a57fbaca6c3c609ba927f6
+size 81311
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_model.json b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8166c8a9597aa6edddc65d825891c1cb927888ad
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7a7728b8317c2de1f29729476ac696fff7d7a0618089e469f4b13246c1c3528
+size 101407
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_origin.pdf b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..473e56e0177d89918e5fb990ddde8c90fd808492
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/79f75820-f4fa-4dac-9b1b-fc47e8b0e629_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5313c4fde91a8a2db2221bd32b61aff084dedb296343f0ec388a8a94da5788b2
+size 1787165
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/full.md b/learningselectiveselfmutualattentionforrgbdsaliencydetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5be99a8e86e2bd1bd64b93d861c4b66acf26421b
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/full.md
@@ -0,0 +1,346 @@
+# Learning Selective Self-Mutual Attention for RGB-D Saliency Detection
+
+Nian Liu $^{1,2}$
+
+Ni Zhang
+
+Junwei Han $^{1*}$
+
+1Northwestern Polytechnical University
+
+$^{2}$ Mohamed bin Zayed University of Artificial Intelligence
+
+{liunian228, nnizhang.1995, junweihan2010}@gmail.com
+
+# Abstract
+
+Saliency detection on RGB-D images is receiving more and more research interests recently. Previous models adopt the early fusion or the result fusion scheme to fuse the input RGB and depth data or their saliency maps, which incur the problem of distribution gap or information loss. Some other models use the feature fusion scheme but are limited by the linear feature fusion methods. In this paper, we propose to fuse attention learned in both modalities. Inspired by the Non-local model, we integrate the self-attention and each other's attention to propagate long-range contextual dependencies, thus incorporating multimodal information to learn attention and propagate contexts more accurately. Considering the reliability of the other modality's attention, we further propose a selection attention to weight the newly added attention term. We embed the proposed attention module in a two-stream C-NN for RGB-D saliency detection. Furthermore, we also propose a residual fusion module to fuse the depth decoder features into the RGB stream. Experimental results on seven benchmark datasets demonstrate the effectiveness of the proposed model components and our final saliency model. Our code and saliency maps are available at https://github.com/nnizhang/S2MA.
+
+# 1. Introduction
+
+Saliency detection is the task to distinguish the most salient object from complex background in a visual scene. It mimics the human visual attention mechanism to find out what catch people's eyes when free viewing scenes. This task can be used as a pre-processing technique or a model component for many other vision tasks, such as semantic segmentation [52, 2], and image editing [43, 50].
+
+Researchers have proposed many saliency models in decades, and most of them work on RGB images. Although recent RGB saliency models have achieved very promising performance, e.g., [32, 33, 17, 31], they can only leverage
+
+
+
+
+
+
+
+
+Image
+Depth
+(a)
+Figure 1. Comparison of the RGB and RGB-D saliency detection results and the learned attention. In (a) we give a challenging image and its corresponding depth map. (b) shows the saliency maps of a RGB-based deep model (top) and our RGB-D-based model (bottom). (c) illustrates the learned attention maps at the same position (the red point) in a RGB-based Non-local model [51] (top) and our proposed attention fusion model (bottom).
+
+
+RGB-based Result
+Our Result
+(b)
+
+
+RGB-based Attention
+Fused Attention
+(c)
+
+appearance cues from the input RGB data, which are often severely limited in many challenging scenarios, e.g., cluttered background or salient object having similar appearance with the background. Nevertheless, we human beings actually live in a 3D environment, in which depth cues can supply sufficient complementary information for the appearance cues. Thus, it is quite necessary to study the saliency detection problem on RGB-D data. In Figure 1 we show a challenging image with complex appearance. In column (b), we can see that its RGB-based saliency detection result is easily disturbed and has severe false positive highlights. However, its foreground object is quite different from the background in terms of depth. Thus the depth information can be used to easily distinguish the foreground object and obtain an accurate saliency map.
+
+To combine the appearance information and the depth cues for RGB-D salient object detection, some previous methods adopt the early fusion strategy [46, 41, 34, 14], in which case both RGB and depth data are taken as inputs and processed in a unified model. However, it is not easy for one model to fit the data from two modalities well due to their distribution gap. Some other models use the result fusion strategy [11, 22, 49], where the RGB image and the depth
+
+map are used in two models to generate their own saliency maps separately, and then a fusion method is adopted to fuse the two saliency maps. This scheme is also suboptimal since rich modality information is gradually compressed and lost in the two separate saliency modeling processes. Thus, the final interaction between the two saliency maps is highly limited.
+
+As a better choice, many models utilize the middle fusion strategy, i.e., fusing the intermediate information of the two modalities, and then generating the final saliency map. Most typically, many recently proposed deep RGB-D saliency models [40, 5, 44, 23, 3, 4, 19] first use two-stream CNNs to extract RGB and depth features separately, and then fuse them via summation or concatenation. We refer these methods as the feature fusion strategy. This strategy avoids the distribution gap problem and fuses rich multimodal features with plentiful interaction. However, simple feature summation or concatenation only learns to linearly fuse RGB and depth features, being unable to explore more complex multi-modal interaction.
+
+In this paper, we present a novel middle fusion strategy. Inspired by the Non-local (NL) model [51], we propose to fuse multi-modal attention. The NL model computes each position a set of spatial attention and then uses them to aggregate the features at all positions, thus being able to incorporate long-range global context. Since the attention and the propagated features in the NL model are based on the same feature map, this kind of attention mechanism is usually referred as the self-attention. Considering the complementary information between the RGB and the depth data, we propose to further propagate global context using each other's attention, as which we refer the mutual-attention mechanism. Since the original self-attention may be highly limited by the single modality information, the proposed mutual attention can supply extra complementary cues about where should attend based on the information of the other modality when propagating the contextual features. In Figure 1(c), we show two attention maps of the same position (the red point) in the image. We can see that RGB-based attention is highly biased due to the complex appearance, while the fused attention can accurately locate the main body of the salient object by fusing the depth attention.
+
+Furthermore, since the complementary information from the other modality may be not always reliable for all positions, we propose another selection attention to decide how much mutual attention should be involved at each position. We adopt this novel selective self-mutual attention mechanism in a two-stream CNN network to fuse multi-modal cues for RGB-D saliency detection. Additionally, we also present a novel residual fusion module to transfer the depth cues to the RGB features in the decoder part. Experimental results demonstrate that our proposed model components
+
+are all helpful for improving the saliency detection performance. Finally, our saliency model outperforms all other state-of-the-art methods.
+
+# 2. Related Work
+
+Saliency detection on RGB-D images. Early RGB-D salient object detection methods usually borrow common priors (e.g., contrast [8] and compactness [10]) from RGB saliency models to design RGB and depth features. Additionally, some researchers exploit depth-specific priors, e.g., shape and 3D layout priors [9], and anisotropic center-surround difference [28, 22].
+
+Recent work introduces CNNs to RGB-D salient object detection and have achieved promising results. Qu et al. [41] adopt the early fusion strategy to serialize hand-crafted RGB and depth features together as the CNN inputs. Fan et al. [14] and Liu et al. [34] concatenate each depth map as the $4^{th}$ channel with the corresponding RGB image as the CNN input. Wang et al. [49] adopt the result fusion strategy and learn a switch map to adaptively fuse RGB and depth saliency maps. Many recent work adopt the middle fusion strategy to fuse intermediate depth and appearance features. Han et al. [23] fuse the representation layers of the RGB and the depth modality with a joint representation layer. Chen et al. [3] propose a complementarity-aware fusion module to capture cross-modal and cross-level features. In contrast, our model focuses on fusing multi-modal attention.
+
+Some other existing models also leverage the attention mechanism to fuse the two modalities, e.g., [55] and [40]. However, they only generate channel [40] or spatial [55] attention from the depth view and adopt it to filter the appearance features. Nevertheless, we generate non-local attention from both views and then fuse them to propagate long-range contexts.
+
+Non-local networks. Vaswani et al. [47] propose a self-attention network for language modeling. Given a query and a set of key-value pairs, they first compute the attention weight between the query and each key. Then they use the attention weights to aggregate the values by weighted sum as the output. Similarly, Wang et al. [51] propose the NL model for learning self-attention in 2D or 3D vision modeling. Huang et al. [26] propose to replace the densely connected attention path with the criss-cross path to improve the model efficiency. Cao et al. [1] propose to unify the NL model with SENet [24] to learn query-independent global context with a lightweight network structure. In [18], Fu et al. apply the NL model to capture both spatial and channel long-range dependencies. Some other models [7, 30, 57, 54] propose to improve both model performance and efficiency by learning representative key-value pairs. In this paper, we propose to improve the NL module by fusing attention from multi-modalities, thus greatly promoting the
+
+accuracy of attention generation and context propagation.
+
+Multi-modal attention learning. In [36] and [48], the authors also propose to learn multi-modal attention. Nam et al. [36] propose to learn visual and textual attention mechanisms for both multi-modal reasoning and matching. Wan et al. [48] apply three attention models in three modalities of source code for the code retrieval task. However, both of them learn and adopt attention for each modality separately, and then fuse the obtained attended features. On the contrary, we propose to directly fuse multi-modal attention.
+
+# 3. From Non-local to Selective Self-Mutual Attention
+
+In this section, we elaborate on the proposed Selective Self-Mutual Attention ( $S^2\mathrm{MA}$ ) module for fusing multimodal information. It is built on the basis of the NL module [51], additionally with the proposed attention fusion and selective attention added. We first briefly review the NL module and then go into our $S^2\mathrm{MA}$ module.
+
+# 3.1. Reviewing the NL module
+
+Here we briefly review the NL module, whose network architecture is shown in Figure 2(a). Imaging we have a feature map $\mathbf{X} \in \mathbb{R}^{H \times W \times C}$ , where $H$ , $W$ , and $C$ represent its height, width, and channel number, respectively, the NL module first embeds $\mathbf{X}$ into three spaces with $C_1$ channels:
+
+$$
+\theta (\boldsymbol {X}) = \boldsymbol {X} W _ {\theta}, \phi (\boldsymbol {X}) = \boldsymbol {X} W _ {\phi}, g (\boldsymbol {X}) = \boldsymbol {X} W _ {g}, \tag {1}
+$$
+
+where $W_{\theta}, W_{\phi}$ , and $W_{g} \in \mathbb{R}^{C \times C_{1}}$ are embedding weights, and the embeddings can be implemented by $1 \times 1$ convolution as shown in Figure 2(a).
+
+Next, a similarity (or affinity) function $f$ is computed within $\theta$ and $\phi$ embeddings. In [51], several forms of the function $f$ are proposed. Here we introduce the most widely used embedded Gaussian function, where
+
+$$
+f (\boldsymbol {X}) = \theta (\boldsymbol {X}) \phi (\boldsymbol {X}) ^ {\top}, \tag {2}
+$$
+
+and $f(\mathbf{X}) \in \mathbb{R}^{HW \times HW}$ . In $f(\mathbf{X})$ , each element $f_{i,j}$ represents the affinity between the $i^{th}$ and the $j^{th}$ spatial location in $\mathbf{X}$ .
+
+Subsequently, the NL module generates the attention weight by using normalization along the second dimension:
+
+$$
+A (\boldsymbol {X}) = \operatorname {s o f t m a x} (f (\boldsymbol {X})) \tag {3}
+$$
+
+where each row $A_{i}$ indicates the normalized attention of all positions respect to the $i^{th}$ position. Then the features in $g$ are aggregated by weighted sum:
+
+$$
+\boldsymbol {Y} = A (\boldsymbol {X}) g (\boldsymbol {X}), \tag {4}
+$$
+
+where $\mathbf{Y} \in \mathbb{R}^{HW \times C_1}$ is an attentive feature, and it is further reshaped to the shape $H \times W \times C_1$ .
+
+Finally, the NL module learns a residual signal based on $\mathbf{Y}$ to improve the original feature $\mathbf{X}$ and obtain the final output $\mathbf{Z}$ :
+
+$$
+\boldsymbol {Z} = \boldsymbol {Y} W _ {Z} + \boldsymbol {X}, \tag {5}
+$$
+
+where $W_{Z} \in \mathbb{R}^{C_{1} \times C}$ is the weight of a $1 \times 1$ Conv layer for projecting the attentive feature back to the original feature space.
+
+# 3.2. Self-Mutual Attention
+
+The obtaining of the attention $A(\mathbf{X})$ in the NL module can be rewritten as:
+
+$$
+A (\boldsymbol {X}) = \operatorname {s o f t m a x} \left(\boldsymbol {X} W _ {\theta} W _ {\phi} ^ {\top} \boldsymbol {X} ^ {\top}\right). \tag {6}
+$$
+
+We can see that it is a bilinear projection of the original feature $\mathbf{X}$ itself, thus the NL module belongs to the self-attention category. We argue that using a further projection of the same feature can only bring limited information and performance gain (see the experimental results in Section 5.4). For multi-modal tasks, such as RGB-D salient object detection, we can leverage the features from multiple modalities to integrate information complementarity.
+
+In this paper, we first propose fusing Self-Mutual Attention (SMA) to improve the NL module for multi-modal data. Considering we have two feature maps $\mathbf{X}^r, \mathbf{X}^d \in \mathbb{R}^{H \times W \times C}$ from the RGB and the depth modality, respectively, we follow the NL module to embed them into the $\theta, \phi, g$ spaces and obtain their affinity matrixes respectively:
+
+$$
+\begin{array}{l} f ^ {r} \left(\boldsymbol {X} ^ {r}\right) = \theta^ {r} \left(\boldsymbol {X} ^ {r}\right) \phi^ {r} \left(\boldsymbol {X} ^ {r}\right) ^ {\top}, \\ f ^ {d} (\boldsymbol {X} ^ {d}) = \theta^ {d} (\boldsymbol {X} ^ {d}) \phi^ {d} (\boldsymbol {X} ^ {d}) ^ {\top}. \\ \end{array}
+$$
+
+Since the two affinity matrixes are computed by their own modality-specific feature, we fuse them via simple summation and then obtain the fused attention:
+
+$$
+A ^ {f} \left(\boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d}\right) = \operatorname {s o f t m a x} \left(f ^ {r} \left(\boldsymbol {X} ^ {r}\right) + f ^ {d} \left(\boldsymbol {X} ^ {d}\right)\right). \tag {8}
+$$
+
+Then we use $A^f$ to propagate long-range contextual dependencies in the two modalities, respectively:
+
+$$
+\begin{array}{l} \boldsymbol {Y} ^ {r} = A ^ {f} (\boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d}) g ^ {r} (\boldsymbol {X} ^ {r}), \\ \boldsymbol {Y} ^ {d} = A ^ {f} \left(\boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d}\right) g ^ {d} \left(\boldsymbol {X} ^ {d}\right). \tag {9} \\ \end{array}
+$$
+
+Finally, we use (5) to obtain modality-specific outputs $Z^r$ and $Z^d$ , respectively.
+
+Note that in $A^f$ , the affinity of two modalities are both included, thus the attention generation and context propagation can become more accurate. Experimental results in Section 5.4 demonstrate that the SMA module can bring significant performance gain for the RGB-D saliency detection task.
+
+
+(a) Non-local Module
+Figure 2. Network architecture of the original Non-local module [51] (a) and the proposed selective self-mutual attention module (b).
+
+
+(b) Selective Self-Mutual Attention Module
+
+# 3.3. Selective Self-Mutual Attention
+
+The SMA model considers self-mutual attention equally. However, the mutual attention from the other modality is not always reliable for all positions since the information from one modality may be inaccurate or useless for some positions. A typical example is that some depth maps are noisy and inaccurate in some datasets. Based on the widely validated effectiveness of the self-attention mechanism and the experimental results, we choose to reweight the mutual attention by computing a selection attention weight at each position. Specifically, we first concatenate $X^r$ and $X^d$ and then use a $1 \times 1$ Conv layer with the softmax activation function to compute the selection attention:
+
+$$
+\alpha = \operatorname {s o f t m a x} \left(\operatorname {C o n v} \left(\left[ \boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d} \right]\right)\right), \tag {10}
+$$
+
+where $\alpha \in \mathbb{R}^{H\times W\times 2}$ and $[\cdot ]$ indicates the concatenation operation. We further split it into two maps $\alpha^r,\alpha^d\in$ $\mathbb{R}^{H\times W\times 1}$ . Each of them represents the reliability at all positions of the corresponding modality.
+
+Then, we can obtain the selective self-mutual attention by changing (8) with a weighted sum of the two affinities:
+
+$$
+\begin{array}{l} A ^ {r} \left(\boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d}\right) = \operatorname {s o f t m a x} \left(f ^ {r} \left(\boldsymbol {X} ^ {r}\right) + \alpha^ {d} \odot f ^ {d} \left(\boldsymbol {X} ^ {d}\right)\right), \tag {11} \\ A ^ {d} \left(\boldsymbol {X} ^ {r}, \boldsymbol {X} ^ {d}\right) = \operatorname {s o f t m a x} \left(f ^ {d} \left(\boldsymbol {X} ^ {d}\right) + \alpha^ {r} \odot f ^ {r} \left(\boldsymbol {X} ^ {r}\right)\right), \\ \end{array}
+$$
+
+where $\odot$ is the channel-wise Hadamard matrix product. Finally, we use $A^r$ and $A^d$ to aggregate contextual features for the two views, respectively, similar with (9).
+
+The whole network architecture of the $S^2\mathrm{MA}$ module is shown in Figure 2(b). Experimental results in Section 5.4 indicate that using the proposed selection attention can fur
+
+ther improve the model performance on the basis of the S-MA module.
+
+# 4. RGB-D Saliency Detection Network
+
+Based on the proposed $S^2\mathrm{MA}$ module, we propose a novel deep model for RGB-D saliency detection. As shown in Figure 3(a), our model is based on a two-stream CNN, and each of them is based on a UNet [42] architecture.
+
+Specifically, we take the VGG-16 network [45] as the backbones of the UNets and share the same network structure for the two encoder parts. We follow [33] to slightly change the VGG-16 network structure as follows. First, we change the pooling strides of the pool4 and pool5 layers to 1 and the dilation rates [6] of the conv5 block to 2. Second, we turn the fc6 layer into a $3 \times 3$ Conv layer with 1024 channels and the dilation rate of 12. Third, we transform the fc7 layer to a $1 \times 1$ Conv layer with 1024 channels. As such, the encoder network becomes a fully convolutional network [35] with the output stride of 8.
+
+Next, to further enhance the capability of the encoder network, we adopt a DenseASPP [53] module, which introduces dense connections [25] to the ASPP [6] module to cover dense feature scales. We first adopt a $1 \times 1$ Conv layer to compress the fc7 feature map to 512 channels and then deploy the DenseASPP module on it. Considering our specific training image size, we design three dilated Conv branches, which have $3 \times 3$ Conv layers with 176 channels and the dilation rates of 2, 4, and 8, respectively. At the same time, we follow [53] to densely connect the three branches. To capture the global feature, we also design another branch to average pool the input feature map and then
+
+
+
+
+Figure 3. Architecture of our proposed RGB-D saliency detection network. (a) shows the main two-stream network. The skip-connected VGG layers are marked in the first stream by “C*_*” and “fc*”. The channel numbers of the feature maps are also marked in the second stream. (b) shows our used DenseASPP module. Some key channel numbers are also given. (c) shows the two proposed decoder modules of the RGB and the depth CNN streams, respectively. Here “UP” means upsampling with bilinear interpolation.
+
+
+
+upsample it to the original size. Finally, we concatenate the input feature map and the features of all the four branches, and then compress them to 512 channels. The whole module architecture can be found in Figure 3(b).
+
+After the DenseASPP module, we take the features of the RGB and the depth CNN streams as the inputs and adopt the proposed $S^2$ MA module to fuse multi-modal attention and propagate global contexts for both views. Whereafter, we go into the decoding part. In the first decoder module, we use two Conv layers with 512 channels. Then we follow the UNet [42] architecture to progressively skip connect intermediate encoder features with decoder features. The used intermediate VGG features are the last Conv feature maps of the five blocks, which are marked in Figure 3(a). For each depth decoder module, we use a naive fusion model $\widehat{\mathbf{F}}$ by simply concatenating the VGG feature and the previous decoder feature, and then adopting two Conv layers to fuse them. For the RGB decoder modules, we design a residual fusion model $\widehat{\mathbf{R}}$ to further fuse depth decoder features with a residual connection. Specifically, after concatenating the two input features and adopt the first Conv layer, we concatenate this feature with the first Conv feature of the corresponding depth decoder module as the pre-activation of the fused feature. Then we use another Conv layer to learn
+
+a residual fusion signal to ease the network training. The detailed network structure is shown in Figure 3(c). Please note that we do not further adopt the $S^2\mathrm{MA}$ module in the decoding part since it is computational prohibitive for large feature maps.
+
+Each Conv layer in our decoder part has $3 \times 3$ kernels, and is followed by a BN [27] layer and the ReLU activation function. The output channel number in each decoder module is set to be the same as that of the next skip-connected VGG feature, which is also marked in Figure 3(a). For each of the last three decoder modules, since the previous decoder feature map has a smaller spatial size than the skip-connected VGG feature map, we upsample it by bilinear interpolation to progressively enlarge the spatial size. Finally, we adopt a $3 \times 3$ Conv layer with 1 channel on the last decoder feature map and use the sigmoid activation function to obtain the saliency map for each CNN stream.
+
+# 5. Experiments
+
+# 5.1. Datasets
+
+For model training and evaluation, we use seven RGB-D saliency benchmark datasets as follows. NJUD [28] has 1,985 images collected from the Internet, 3D movies, and
+
+Table 1. Ablation study on the effectiveness of the DenseASPP (DA) module, the NL module, the SMA module, the $S^2\mathrm{MA}$ module, and the residual fusion module $\widehat{\mathbb{R}}$ . Blue indicates the best performance.
+
+| Settings | NJUD [28] | NLPR [39] | RGBD135 [8] | LFSD [29] | | | | | |
| DA | NL | SMA | \( S^2 \)MA | R | Sm | maxF | Eξ | MAE | Sm | maxF | Eξ | MAE | Sm | maxF | Eξ | MAE | | | | |
| | | | | 0.865 | 0.852 | 0.902 | 0.072 | 0.897 | 0.873 | 0.941 | 0.039 | 0.875 | 0.834 | 0.927 | 0.046 | 0.786 | 0.775 | 0.836 | 0.131 |
| ✓ | | | | | 0.877 | 0.865 | 0.913 | 0.057 | 0.911 | 0.892 | 0.945 | 0.030 | 0.889 | 0.861 | 0.925 | 0.032 | 0.787 | 0.768 | 0.836 | 0.118 |
| ✓ | ✓ | | | | 0.877 | 0.865 | 0.916 | 0.057 | 0.908 | 0.888 | 0.945 | 0.032 | 0.892 | 0.868 | 0.922 | 0.034 | 0.793 | 0.784 | 0.838 | 0.123 |
| ✓ | | ✓ | | | 0.890 | 0.882 | 0.927 | 0.058 | 0.907 | 0.886 | 0.947 | 0.035 | 0.918 | 0.903 | 0.956 | 0.028 | 0.821 | 0.812 | 0.857 | 0.108 |
| ✓ | | | ✓ | | 0.889 | 0.884 | 0.929 | 0.056 | 0.915 | 0.898 | 0.950 | 0.031 | 0.929 | 0.918 | 0.972 | 0.025 | 0.829 | 0.819 | 0.865 | 0.101 |
| ✓ | | | ✓ | ✓ | 0.894 | 0.889 | 0.930 | 0.053 | 0.915 | 0.902 | 0.953 | 0.030 | 0.941 | 0.935 | 0.973 | 0.021 | 0.837 | 0.835 | 0.873 | 0.094 |
+
+
+Figure 4. Visualization of the learned attention maps. We show the learned depth-based self-attention (Depth SA), the RGB-based self-attention (RGB SA), the selection attention $\alpha^d$ , and the fused attention $A^r$ in three images. In each image, the red point indicates the query position.
+
+
+
+
+
+
+
+
+
+
+
+stereo photos. NLPR [39] and RGBD135 [8] contain 1,000 and 135 images collected by the Microsoft Kinect, respectively. LFSD [29] contains 100 images captured by a Lytro light field camera. STERE [37] contains 1,000 pairs of binocular images downloaded from the Internet. SSD [56] has 80 stereo movie frames. DUT-RGBD [40] contains 1,200 real life images captured by a Lytro2 camera.
+
+# 5.2. Evaluation Metrics
+
+Following recent work, we adopt four evaluation metrics. The first one is the maximum F-measure (maxF). F-measure comprehensively considers both precision and recall for binarized saliency maps and we report the maxF score under an optimal threshold. The second metric is the Structure-measure $S_{m}$ [12] which evaluates both region-aware and object-aware structural similarities between the saliency maps and the ground truth. We use the third metric as the Enhanced-alignment measure $E_{\xi}$ [13] to capture both global statistics and local pixel matching information of the saliency maps. The fourth metric is the Mean Absolute Error (MAE). It measures the average of the per-pixel absolute difference between the saliency maps and the ground truth.
+
+# 5.3. Implementation Details
+
+For fair comparisons, we adopt the same training set as in [23, 3, 55], which consists of 1,400 images from the NJUD
+
+dataset and 650 images from the NLPR dataset. For data augmentation, we first resize training images and corresponding depth maps to $288 \times 288$ pixels and then randomly crop $256 \times 256$ image regions to train the network. Random horizontal flipping is also used. For the depth stream CNN, we simply replicate each single depth map to three channels to fit the network input layer. Since the depth maps of different datasets have different presentations, we process them to a unified presentation, where small depth values represent the object is close to the camera and vice versa. We also normalize the depth map of each image to the value range of [0,255] to ease the network training. Finally, each image and the three-channel depth map are subtracted by their mean pixel values as the inputs of the two-stream network.
+
+We use the cross-entropy loss between the predicted saliency maps and the ground truth masks as the training losses of both streams. To facilitate the network training, we also use deep supervision for each decoder module, where we first adopt a $3 \times 3$ Conv layer with the sigmoid activation function on each decoder feature map to generate a saliency map and then compute the cross entropy loss to train this decoder module. Following [33], we empirically use 0.5, 0.5, 0.5, 0.8, and 0.8 to weight the first five decoder losses of each stream. The stochastic gradient descent (SGD) with momentum algorithm is adopted to optimize our saliency network with totally 40,000 iterations. Weight decay, momentum, and batchsize are set to 0.0005, 0.9, and 8, respectively. The initial learning rate is set to 0.01 and divided by 10 at the $20,000^{th}$ and the $30,000^{th}$ iteration, respectively.
+
+We implement the proposed network using the Pytorch [38] package and use a GTX 1080 Ti GPU for computing acceleration. During testing, we directly resize each image and its depth map to $256 \times 256$ pixels as the network inputs and obtain the saliency map from the network output of the RGB stream without any post-processing method. The testing process takes 0.107 seconds for each image.
+
+# 5.4. Ablation Study
+
+To evaluate the effectiveness of the proposed model components, we conduct the ablation study on four datasets,
+
+Table 2. Quantitative comparison of our proposed model with other 11 state-of-the-art RGB-D saliency models on 7 benchmark datasets in terms of 4 evaluation metrics. Red and blue indicate the best and the second best performance, respectively.
+
+| Dataset | Metric | LBE [16] | DCMC [10] | SE [22] | DF [41] | AFNet [49] | CTMF [23] | MMCI [5] | PCF [3] | TANet [4] | CPFP [55] | DMRA [40] | S2MA (Ours) |
| NJUD | Sm↑ | 0.695 | 0.686 | 0.664 | 0.763 | 0.772 | 0.849 | 0.858 | 0.877 | 0.878 | 0.878 | 0.886 | 0.894 |
| maxF↑ | 0.748 | 0.715 | 0.748 | 0.804 | 0.775 | 0.845 | 0.852 | 0.872 | 0.874 | 0.877 | 0.886 | 0.889 |
| Eξ↑ | 0.803 | 0.799 | 0.813 | 0.864 | 0.853 | 0.913 | 0.915 | 0.924 | 0.925 | 0.923 | 0.927 | 0.930 |
| [28] | MAE↓ | 0.153 | 0.172 | 0.169 | 0.141 | 0.100 | 0.085 | 0.079 | 0.059 | 0.060 | 0.053 | 0.051 | 0.053 |
| NLPR | Sm↑ | 0.762 | 0.724 | 0.756 | 0.802 | 0.799 | 0.860 | 0.856 | 0.874 | 0.886 | 0.888 | 0.899 | 0.915 |
| maxF↑ | 0.745 | 0.648 | 0.713 | 0.778 | 0.771 | 0.825 | 0.815 | 0.841 | 0.863 | 0.867 | 0.879 | 0.902 |
| Eξ↑ | 0.855 | 0.793 | 0.847 | 0.880 | 0.879 | 0.929 | 0.913 | 0.925 | 0.941 | 0.932 | 0.947 | 0.953 |
| [39] | MAE↓ | 0.081 | 0.117 | 0.091 | 0.085 | 0.058 | 0.056 | 0.059 | 0.044 | 0.041 | 0.036 | 0.031 | 0.030 |
| RGBD135 | Sm↑ | 0.703 | 0.707 | 0.741 | 0.752 | 0.770 | 0.863 | 0.848 | 0.842 | 0.858 | 0.872 | 0.900 | 0.941 |
| maxF↑ | 0.788 | 0.666 | 0.741 | 0.766 | 0.729 | 0.844 | 0.822 | 0.804 | 0.827 | 0.846 | 0.888 | 0.935 |
| Eξ↑ | 0.890 | 0.773 | 0.856 | 0.870 | 0.881 | 0.932 | 0.928 | 0.893 | 0.910 | 0.923 | 0.943 | 0.973 |
| [8] | MAE↓ | 0.208 | 0.111 | 0.090 | 0.093 | 0.068 | 0.055 | 0.065 | 0.049 | 0.046 | 0.038 | 0.030 | 0.021 |
| LFSD | Sm↑ | 0.736 | 0.753 | 0.698 | 0.791 | 0.738 | 0.796 | 0.787 | 0.794 | 0.801 | 0.828 | 0.847 | 0.837 |
| maxF↑ | 0.726 | 0.817 | 0.791 | 0.817 | 0.744 | 0.791 | 0.771 | 0.779 | 0.796 | 0.826 | 0.856 | 0.835 |
| Eξ↑ | 0.804 | 0.856 | 0.840 | 0.865 | 0.815 | 0.865 | 0.839 | 0.835 | 0.847 | 0.872 | 0.900 | 0.873 |
| [29] | MAE↓ | 0.208 | 0.155 | 0.167 | 0.138 | 0.133 | 0.119 | 0.132 | 0.112 | 0.111 | 0.088 | 0.075 | 0.094 |
| STERE | Sm↑ | 0.660 | 0.731 | 0.708 | 0.757 | 0.825 | 0.848 | 0.873 | 0.875 | 0.871 | 0.879 | 0.886 | 0.890 |
| maxF↑ | 0.633 | 0.740 | 0.755 | 0.757 | 0.823 | 0.831 | 0.863 | 0.860 | 0.861 | 0.874 | 0.886 | 0.882 |
| Eξ↑ | 0.787 | 0.819 | 0.846 | 0.847 | 0.887 | 0.912 | 0.927 | 0.925 | 0.923 | 0.925 | 0.938 | 0.932 |
| [37] | MAE↓ | 0.250 | 0.148 | 0.143 | 0.141 | 0.075 | 0.086 | 0.068 | 0.064 | 0.060 | 0.051 | 0.047 | 0.051 |
| SSD | Sm↑ | 0.621 | 0.704 | 0.675 | 0.747 | 0.714 | 0.776 | 0.813 | 0.841 | 0.839 | 0.807 | 0.857 | 0.868 |
| maxF↑ | 0.619 | 0.711 | 0.710 | 0.735 | 0.687 | 0.729 | 0.781 | 0.807 | 0.810 | 0.766 | 0.844 | 0.848 |
| Eξ↑ | 0.736 | 0.786 | 0.800 | 0.828 | 0.807 | 0.865 | 0.882 | 0.894 | 0.897 | 0.852 | 0.906 | 0.909 |
| [56] | MAE↓ | 0.278 | 0.169 | 0.165 | 0.142 | 0.118 | 0.099 | 0.082 | 0.062 | 0.063 | 0.082 | 0.058 | 0.052 |
| DUT-RGBD | Sm↑ | 0.695 | 0.499 | 0.526 | 0.736 | 0.702 | 0.831 | 0.791 | 0.801 | 0.808 | 0.818 | 0.889 | 0.903 |
| maxF↑ | 0.692 | 0.411 | 0.458 | 0.740 | 0.659 | 0.823 | 0.767 | 0.771 | 0.790 | 0.795 | 0.898 | 0.901 |
| Eξ↑ | 0.800 | 0.654 | 0.709 | 0.823 | 0.796 | 0.899 | 0.859 | 0.856 | 0.861 | 0.859 | 0.933 | 0.937 |
| [40] | MAE↓ | 0.220 | 0.243 | 0.201 | 0.144 | 0.122 | 0.097 | 0.113 | 0.100 | 0.093 | 0.076 | 0.048 | 0.043 |
+
+i.e., NJUD, NLPR, RGBD135, and LFSD. The basic UNet model with the naive fusion decoder modules trained only on RGB images is used as the baseline model. The experimental results are shown in Table 1.
+
+Effectiveness of the DenseASPP module. The first row in Table 1 denotes the baseline UNet, while the second row means we adopt the DenseASPP module. The comparison results show that using the DenseASPP module can moderately improve the saliency detection performance, offering us a more powerful baseline model for evaluating our proposed attention module and the residual fusion module.
+
+Effectiveness of the $S^2\mathbf{MA}$ module. We show the model performance of further adding the NL module, the proposed SMA module, and the proposed $S^2\mathbf{MA}$ module in the $3^{rd}$ to $5^{th}$ rows in Table 1. We can see that adding the NL [51] module can only slightly improve (or even degrade) the model performance on the basis of a powerful baseline model (UNet+DenseASPP). Whereas using our proposed SMA module brings significant performance gain on the NJUD, RGBD135, and LFSD datasets, which demonstrates the effectiveness of the proposed self-mutual attention fusion scheme. Finally, using the proposed $S^2\mathbf{MA}$ module
+
+can further moderately improve the model performance, especially on the NLPR, RGBD135, and LFSD datasets. These results indicate that using the proposed selection attention to weight the mutual attention in attention fusion is beneficial. We also tried to use $\alpha^r$ and $\alpha^d$ to weight both self-attention and mutual attention but got worse results.
+
+To thoroughly understand the effectiveness of our proposed attention fusion scheme, we show some visualization examples of the learned RGB-based self-attention, the depth-based self-attention, the selection attention $\alpha^d$ , and the fused attention $A^r$ in Figure 4. We can see that usually the self-attention learned in each single modality is imperfect or even noisy, while $A^r$ learned in the proposed $S^2\mathrm{MA}$ module can locate related positions of the query position more accurately by fusing the information from both modalities. For $\alpha^d$ , we find it tends to be small for pixels with large depth values. This is because large depth is usually coarse-grained, thus being less discriminative. On the contrary, $\alpha^d$ tends to be large for close pixels since their depth are more accurate and discriminative. Moreover, $\alpha^d$ are around 0.5 for pixels inside salient objects, which means RGB and depth attention are equally important for salient
+
+
+Figure 5. Qualitative comparison against 11 state-of-the-art RGB-D saliency detection methods. (GT: ground truth)
+
+regions.
+
+Effectiveness of the residual fusion module. In the last row of Table 1, we further adopt the residual fusion module $\mathbf{R}$ in our saliency model. The results indicate that using this module to further fuse the depth decoder features into the RGB stream with a residual path can further improve the model performance, especially on the RGBD135 and the LFSD datasets.
+
+# 5.5. Comparison with State-of-the-Art Methods
+
+To evaluate the effectiveness of our proposed saliency model, we compare it with other 11 recently published RGB-D saliency methods, which include LBE [16], DCM-C [10], SE [22], DF [41], AFNet [49], CTMF [23], MMCI [5], PCF [3], TANet [4], CPFP [55], and DMRA [40]. The first three methods are based on traditional models while the last eight ones are deep models. Since the training set of the DMRA [40] model further includes 800 images from the DUT-RGBD dataset, we further finetune our model on these images for a fair comparison on this dataset.
+
+In Table 2 we show the quantitative comparison results. We can see that our model achieves the best performance on the NJUD, NLPR, RGBD135, SSD, and DUT-RGBD datasets. Especially on the RGBD135 dataset, the proposed $S^2$ MA model outperforms the second-best model by a large margin. On the other two datasets, our model achieves the second-best performance but is close to the best model.
+
+We also give qualitative comparison results in Figure 5. It shows that our model can handle various challenging scenarios, e.g., the first two images have complex backgrounds, the salient objects in the $3^{rd}$ and the $4^{th}$ images have similar
+
+appearance with the backgrounds, the $5^{th}$ to the $7^{th}$ images have multiple objects. Generally, our model can accurately localize salient objects and segment them precisely, while other models are heavily disturbed in these complex scenes.
+
+# 6. Conclusion
+
+In this paper, we propose to fuse the self-attention and the other modality's attention in the Non-local model as a novel way for fusing multi-modal information. The fused attention is more accurate thus can propagate better global contexts. We also develop a selection attention mechanism to reweight the mutual attention term for filtering out unreliable modality information. The proposed $S^2\mathrm{MA}$ module is embedded into a two-stream CNN to solve the RGB-D saliency detection problem. Experimental results show that $S^2\mathrm{MA}$ significantly improves the model performance on the basis of a powerful baseline model. As a result, our saliency model performs favorably against state-of-the-art RGB-D saliency detection methods. In the future, our proposed $S^2\mathrm{MA}$ module can also be used for other multi-modal tasks, such as video saliency detection [15], visual questions and segmentation answers [20], and audio-visual tasks [21].
+
+# Acknowledgments
+
+This work was supported in part by the National Key R&D Program under Grant 2017YFB1002201. This work was also supported by "Research Funds for Interdisciplinary subject, NWPU" and the Fundamental Research Funds for the Central Universities(3102019PJ005).
+
+# References
+
+[1] Yue Cao, Jiarui Xu, Stephen Lin, Fangyun Wei, and Han Hu. Gcnet: Non-local networks meet squeeze-excitation networks and beyond. arXiv preprint arXiv:1904.11492, 2019. 2
+[2] Arslan Chaudhry, Puneet K. Dokania, and Philip H. S. Torr. Discovering class-specific pixels for weakly-supervised semantic segmentation. In BMVC, 2017. 1
+[3] Hao Chen and Youfu Li. Progressively complementarity-aware fusion network for rgb-d salient object detection. In CVPR, pages 3051-3060, 2018. 2, 6, 7, 8
+[4] Hao Chen and Youfu Li. Three-stream attention-aware network for rgb-d salient object detection. TIP, 28(6):2825-2835, 2019. 2, 7, 8
+[5] Hao Chen, Youfu Li, and Dan Su. Multi-modal fusion network with multi-scale multi-path and cross-modal interactions for rgb-d salient object detection. Pattern Recognition, 86:376-385, 2019. 2, 7, 8
+[6] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. TPAMI, 40(4):834-848, 2017. 4
+[7] Yunpeng Chen, Yannis Kalantidis, Jianshu Li, Shuicheng Yan, and Jiashi Feng. A^2-nets: Double attention networks. In NIPS, pages 352-361, 2018. 2
+[8] Yupeng Cheng, Huazhu Fu, Xingxing Wei, Jiangjian Xiao, and Xiaochun Cao. Depth enhanced saliency detection method. In International Conference on Internet Multimedia Computing and Service, page 23. ACM, 2014. 2, 6, 7
+[9] Arridhana Ciptadi, Tucker Hermans, and James Rehg. An in depth view of saliency. In BMVC, 2013. 2
+[10] Runmin Cong, Jianjun Lei, Changqing Zhang, Qingming Huang, and Chunping Hou. Saliency detection for stereoscopic images based on depth confidence analysis and multiple cues fusion. IEEE Signal Processing Letters, 23(6):819-823, 2016. 2, 7, 8
+[11] Karthik Desingh, K Madhava Krishna, Deepu Rajan, and CV Jawahar. Depth really matters: Improving visual salient region detection with depth. In BMVC, 2013. 1
+[12] Deng-Ping Fan, Ming-Ming Cheng, Yun Liu, Tao Li, and Ali Borji. Structure-measure: A new way to evaluate foreground maps. In ICCV, pages 4558-4567, 2017. 6
+[13] 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. AAAI Press, 2018. 6
+[14] Deng-Ping Fan, Zheng Lin, Jia-Xing Zhao, Yun Liu, Zhao Zhang, Qibin Hou, Menglong Zhu, and Ming-Ming Cheng. Rethinking rgb-d salient object detection: Models, datasets, and large-scale benchmarks. arXiv preprint arXiv:1907.06781, 2019. 1, 2
+[15] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In CVPR, pages 8554-8564, 2019. 8
+
+[16] David Feng, Nick Barnes, Shaodi You, and Chris McCarthy. Local background enclosure for rgb-d salient object detection. In CVPR, pages 2343-2350, 2016. 7, 8
+[17] Mengyang Feng, Huchuan Lu, and Errui Ding. Attentive feedback network for boundary-aware salient object detection. In CVPR, pages 1623-1632, 2019. 1
+[18] Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In CVPR, pages 3146-3154, 2019. 2
+[19] Keren Fu, Deng-Ping Fan, Ge-Peng Ji, and Qijun Zhao. Jldcf: Joint learning and densely-cooperative fusion framework for rgb-d salient object detection. In CVPR, 2020. 2
+[20] Chuang Gan, Yandong Li, Haoxiang Li, Chen Sun, and Boqing Gong. Vqs: Linking segmentations to questions and answers for supervised attention in vqa and question-focused semantic segmentation. In ICCV, pages 1811-1820, 2017. 8
+[21] Chuang Gan, Hang Zhao, Peihao Chen, David Cox, and Antonio Torralba. Self-supervised moving vehicle tracking with stereo sound. In ICCV, pages 7053-7062, 2019. 8
+[22] Jingfan Guo, Tongwei Ren, and Jia Bei. Salient object detection for rgb-d image via saliency evolution. In ICME, pages 1-6. IEEE, 2016. 1, 2, 7, 8
+[23] Junwei Han, Hao Chen, Nian Liu, Chenggang Yan, and Xuelong Li. Cnns-based rgb-d saliency detection via cross-view transfer and multiview fusion. IEEE Transactions on Cybernetics, 48(11):3171-3183, 2017. 2, 6, 7, 8
+[24] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pages 7132-7141, 2018. 2
+[25] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and K.ilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017. 4
+[26] Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. Ccnet: Criss-cross attention for semantic segmentation. In ICCV, 2019. 2
+[27] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pages 448-456, 2015. 5
+[28] Ran Ju, Ling Ge, Wenjing Geng, Tongwei Ren, and Gangshan Wu. Depth saliency based on anisotropic center-surround difference. In ICIP, pages 1115-1119. IEEE, 2014. 2, 5, 6, 7
+[29] Nianyi Li, Jinwei Ye, Yu Ji, Haibin Ling, and Jingyi Yu. Saliency detection on light field. In CVPR, pages 2806-2813, 2014. 6, 7
+[30] Xia Li, Zhisheng Zhong, Jianlong Wu, Yibo Yang, Zhouchen Lin, and Hong Liu. Expectation-maximization attention networks for semantic segmentation. In ICCV, 2019. 2
+[31] Jiang-Jiang 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. 1
+[32] Nian Liu and Junwei Han. Dhsnet: Deep hierarchical saliency network for salient object detection. In CVPR, pages 678-686, 2016. 1
+[33] Nian Liu, Junwei Han, and Ming-Hsuan Yang. Picanet: Learning pixel-wise contextual attention for saliency detection. In CVPR, pages 3089-3098, 2018. 1, 4, 6
+
+[34] Zhengyi Liu, Song Shi, Quntao Duan, Wei Zhang, and Peng Zhao. Salient object detection for rgb-d image by single stream recurrent convolution neural network. Neurocomputing, 363:46-57, 2019. 1, 2
+[35] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015. 4
+[36] Hyeonseob Nam, Jung-Woo Ha, and Jeonghee Kim. Dual attention networks for multimodal reasoning and matching. In CVPR, pages 299-307, 2017. 3
+[37] Yuzhen Niu, Yujie Geng, Xueqing Li, and Feng Liu. Leveraging stereopsis for saliency analysis. In CVPR, pages 454-461. IEEE, 2012. 6, 7
+[38] 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. In NIPS Autodiff Workshop, 2017. 6
+[39] Houwen Peng, Bing Li, Weihua Xiong, Weiming Hu, and Rongrong Ji. Rgbd salient object detection: A benchmark and algorithms. In ECCV, pages 92-109. Springer, 2014. 6, 7
+[40] Yongri Piao, Wei Ji, Jingjing Li, Miao Zhang, and Huchuan Lu. Depth-induced multi-scale recurrent attention network for saliency detection. In ICCV, 2019. 2, 6, 7, 8
+[41] Liangqiong Qu, Shengfeng He, Jiawei Zhang, Jiandong Tian, Yandong Tang, and Qingxiong Yang. Rgbd salient object detection via deep fusion. TIP, 26(5):2274-2285, 2017. 1, 2, 7, 8
+[42] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, pages 234-241, 2015. 4, 5
+[43] Carsten Rother, Lucas Bordeaux, Youssef Hamadi, and Andrew Blake. Autocollage. In ACM Transactions on Graphics, volume 25, pages 847-852, 2006. 1
+[44] Riku Shigematsu, David Feng, Shaodi You, and Nick Barnes. Learning rgb-d salient object detection using background enclosure, depth contrast, and top-down features. In ICCV Workshops, pages 2749-2757, 2017. 2
+[45] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 4
+[46] Hangke Song, Zhi Liu, Huan Du, Guangling Sun, Olivier Le Meur, and Tongwei Ren. Depth-aware salient object detection and segmentation via multiscale discriminative saliency fusion and bootstrap learning. TIP, 26(9):4204-4216, 2017. 1
+[47] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pages 5998-6008, 2017. 2
+[48] Yao Wan, Jingdong Shu, Yulei Sui, Guandong Xu, Zhou Zhao, Jian Wu, and Philip Yu. Multi-modal attention network learning for semantic source code retrieval. In IEEE/ACM International Conference on Automated Software Engineering, pages 13-25. IEEE, 2019. 3
+
+[49] Ningning Wang and Xiaojin Gong. Adaptive fusion for rgb-d salient object detection. IEEE Access, 7:55277-55284, 2019. 1, 2, 7, 8
+[50] Wenguan Wang, Jianbing Shen, and Haibin Ling. A deep network solution for attention and aesthetics aware photo cropping. TPAMI, 41(7):1531-1544, 2018. 1
+[51] Xiaolong Wang, Ross B Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, pages 7794-7803, 2018. 1, 2, 3, 4, 7
+[52] Yunchao Wei, Xiaodan Liang, Yunpeng Chen, Xiaohui Shen, Ming-Ming Cheng, Jiashi Feng, Yao Zhao, and Shuicheng Yan. Stc: A simple to complex framework for weakly-supervised semantic segmentation. TPAMI, 39(11):2314-2320, 2017. 1
+[53] Maoke Yang, Kun Yu, Chi Zhang, Zhiwei Li, and Kuiyuan Yang. Denseaspp for semantic segmentation in street scenes. In CVPR, pages 3684-3692, 2018. 4
+[54] Yuhui Yuan, Xilin Chen, and Jingdong Wang. Object-contextual representations for semantic segmentation. arXiv preprint arXiv:1909.11065, 2019. 2
+[55] Jia-Xing Zhao, Yang Cao, Deng-Ping Fan, Ming-Ming Cheng, Xuan-Yi Li, and Le Zhang. Contrast prior and fluid pyramid integration for rgbd salient object detection. In CVPR, 2019. 2, 6, 7, 8
+[56] Chunbiao Zhu and Ge Li. A three-pathway psychobiological framework of salient object detection using stereoscopic technology. In ICCV Workshops, pages 3008-3014, 2017. 6, 7
+[57] Zhen Zhu, Mengdu Xu, Song Bai, Tengteng Huang, and Xiang Bai. Asymmetric non-local neural networks for semantic segmentation. In ICCV, 2019. 2
\ No newline at end of file
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/images.zip b/learningselectiveselfmutualattentionforrgbdsaliencydetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6611ece08fa5f6dcbe65b03f93720db0205442fa
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d49ad9125fa0943841a031d12a1a284e01fcf0d82cf0976857ae28d72890c40
+size 755108
diff --git a/learningselectiveselfmutualattentionforrgbdsaliencydetection/layout.json b/learningselectiveselfmutualattentionforrgbdsaliencydetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7197a4986b81e88a4b7a6ea984d6f079fbe419f1
--- /dev/null
+++ b/learningselectiveselfmutualattentionforrgbdsaliencydetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4ad8454dc2ed093aa11bb12389c043b04871dfa48849be42219b2d8c5e5c99cf
+size 416228
diff --git a/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_content_list.json b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..130f105e480af3316fb42bf0531534d4d98ef13c
--- /dev/null
+++ b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:70387eb2be6371a22a13d7493a569954f94858809c8147cb0d5469dd7c40837e
+size 74762
diff --git a/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_model.json b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f857a99f8e802b61f8795863fbb1fbd14299b39e
--- /dev/null
+++ b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1371e71da7e258d48e16566ab2d2f1c87204bab76ab4e03299db228c2015756
+size 92814
diff --git a/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_origin.pdf b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..37ab373a3d21275c363d0207d036d491f1002823
--- /dev/null
+++ b/learningsituationaldriving/79369de2-a7d2-4923-adb4-128a328270ed_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2209bc54834e257bb753dcf9031f5964a101706e5295b32a23ec0fc7eaee5ffa
+size 365922
diff --git a/learningsituationaldriving/full.md b/learningsituationaldriving/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..37c69b39ca1cc51ca42963ddff9e111646860a57
--- /dev/null
+++ b/learningsituationaldriving/full.md
@@ -0,0 +1,285 @@
+# Learning Situational Driving
+
+Eshed Ohn-Bar $^{1,3}$ Aditya Prakash $^{1}$ Aseem Behl $^{1,2}$ Kashyap Chitta $^{1,2}$ Andreas Geiger $^{1,2}$ $^{1}$ Max Planck Institute for Intelligent Systems, Tübingen $^{2}$ University of Tübingen $^{3}$ Boston University {firstname_lastname}@tue.mpg.de
+
+# Abstract
+
+Human drivers have a remarkable ability to drive in diverse visual conditions and situations, e.g., from maneuvering in rainy, limited visibility conditions with no lane markings to turning in a busy intersection while yielding to pedestrians. In contrast, we find that state-of-the-art sensorimotor driving models struggle when encountering diverse settings with varying relationships between observation and action. To generalize when making decisions across diverse conditions, humans leverage multiple types of situation-specific reasoning and learning strategies. Motivated by this observation, we develop a framework for learning a situational driving policy that effectively captures reasoning under varying types of scenarios. Our key idea is to learn a mixture model with a set of policies that can capture multiple driving modes. We first optimize the mixture model through behavior cloning and show it to result in significant gains in terms of driving performance in diverse conditions. We then refine the model by directly optimizing for the driving task itself, i.e., supervised with the navigation task reward. Our method is more scalable than methods assuming access to privileged information, e.g., perception labels, as it only assumes demonstration and reward-based supervision. We achieve over $98\%$ success rate on the CARLA driving benchmark as well as state-of-the-art performance on a newly introduced generalization benchmark.
+
+# 1. Introduction
+
+Realizing highly accurate and fail-safe autonomous vehicles that can handle the range of perceptual and situational complexities of driving has challenged researchers for decades. For instance, the systems' perception-to-action reasoning must flexibly accommodate both normal highway driving on a sunny day, as well as driving in a busy intersection full of pedestrians on a rainy day, where lane markings may not even be visible. To drive in such diverse scenarios, humans leverage different types of situation-specific strategies and contextual cues [11], e.g., identifying the need to slow-down and follow scene-level cues if lane information
+
+
+Figure 1: Situational Driving. To address the complexity in learning perception-to-action driving models, we introduce a situational framework using a behavior module. The module reasons over current on-road scene context when composing a set of learned behavior policies under varying driving scenarios. Our approach is used to improve over behavior reflex and privileged approaches in terms of robustness and scalability.
+
+is not available. Moreover, drivers leverage combinations of driving strategies, in particular when encountering a novel scenario [26]. How can we endow machines with similar reasoning and learning capabilities, crucial for operating under the vast diversity of all possible visual, planning, and control scenarios?
+
+Towards addressing this question, several learning paradigms have been previously proposed. On one hand, the complex task of mapping visual observations to a control action can be decomposed into modules or subtasks using dedicated auxiliary loss functions, i.e., addressing the perception and action tasks as two modules (e.g., [4,28,37]). Leveraging prior and domain knowledge through hand-engineered modular structures can improve generalization under certain conditions [40], but the training requires additional annotations and the representations might not be optimal when not learned with respect to the actual navigation task. On the other hand, learning sensorimotor
+
+driving directly from visual observations (e.g., with behavior cloning [8, 33]) has recently re-emerged as a compelling solution to autonomous driving because it can leverage flexibly learned representations and easily scale to large corpus of data. However, even with a large corpus of data, the learned representations may fail to generalize beyond the training set, partly due to the minimal structural prior [50, 52]. Moreover, commonly employed behavior cloning techniques [52] optimize a surrogate loss with respect to the driving task, while task-driven reinforcement learning techniques are difficult to employ, e.g., due to sample inefficiency [10, 13].
+
+We seek to decompose the perception-action learning task in a way that best facilitates generalization, e.g., over varying situations, and scalability, i.e., with minimal supervision. Motivated by the observation that the aforementioned perception-action frameworks may be seen as orthogonal to some degree, we propose a module that attempts to leverage the benefits of incorporating compositional structure, and do so without requiring additional annotations beyond demonstrations and rewards. Towards this goal, we make the following three contributions: (1) To improve modeling capacity in behavior cloning models, we develop a mixture of experts (MoE) framework for composing a set of situation-specific policy predictors specialized to different components of the driving task, (2) we further analyze the benefits of the situational policy through refinement with task-driven optimization i.e., with respect to the driving task reward, and (3) we demonstrate state-of-the-art performance in vision-based single frame driving on the CARLA benchmark [10].
+
+# 2. Related Work
+
+We propose learning a driving policy that can effectively leverage different types of perception-action strategies, i.e., a mixture model that is learned to combine the predictions of specialized expert models. Hence, our work is related to research in learning sensorimotor policies for driving through behavior cloning, reinforcement learning, and hierarchical techniques.
+
+Sensorimotor Navigation: Recognizing the fundamental inflexibility in manually structured and fixed representations, Pomerleau [33] explored an end-to-end neural network for sensorimotor driving, in an imitation learning technique that became known as the behavior reflex. This method learns the perception-to-action mapping via supervised learning from driver demonstrations, i.e., using behavior cloning [22, 29, 30, 49]. Due to ease of training, it is employed in several state-of-the-art approaches on the open-source CARLA simulator [8, 10, 25], as shown in Table 1. However, based on our experiments, increasing the difficulty of the perception-action learning task by introduc
+
+ing multiple relationships between observation and control during training leads to models that generalize poorly. Our MoE framework aims to address such issues in model capacity and optimization.
+
+Issues in Behavior Cloning: Recently, Codevilla et al. [8] demonstrated that behavior cloning achieves state-of-the-art performance on the CARLA [10] benchmark. However, even with ample data, learning representations from high-dimensional visual data for perception, planning, and action with a single end-to-end network can be difficult to optimize. The presence of several dataset phenomena, such as bias [8], lack of on-policy experience [5, 35], multiple data modalities, or an expert that is difficult to imitate [5, 15] can all result in poor modeling and generalization performance [12, 40, 46, 50].
+
+Task-Driven Policy Optimization: The optimization of a surrogate imitation loss with respect to the task can result in several undesirable learned driving behaviors. For instance, Codevilla et al. [8] discuss an 'inertia problem,' where the imitation agent gets stuck and never recovers. As the model was not trained with respect to the driving task itself, i.e., timely arrival to the destination, there is no supervisory signal that prevents the learning of such behaviors. We employ an explicit task-based optimization process in addition to imitation learning as it can alleviate such modeling issues. Liang et al. [25] proposed a driving agent learned with reinforcement learning with weights initialized by behavior cloning. Our model significantly outperforms that of [25] and the architecture is quite different as we learn a hierarchical policy where only the compositional module is learned in a task-driven manner while the imitation learning agents are kept frozen. This process greatly improves sample-efficiency since it only updates the composition of the learned policies. In addition to optimized training, our approach aids in encouraging the learned agent to adhere to traffic rules, which is essential for real-world driving.
+
+Structure and Modularity in Driving Policies: Several studies demonstrate the benefit of incorporating hierarchical, situational reasoning in computer vision, e.g., boundary detection [47] and indoor navigation in static environments [42, 53]. The hierarchy enables to effectively decompose the overall learning task into manageable components that can potentially be combined to improve performance in novel settings [42]. Several hierarchical policy learning frameworks have been previously proposed, e.g. option learning [32, 41, 45] and action primitives [9, 45]. Li et al. [24] learns an optimal policy from an ensemble of imperfect teaching drivers, however they do not employ an MoE objective. A close study to ours is by Kipf et al. [20], showing hierarchical reasoning to enable imitation learning models that generalize to new environments and tasks using grid-world navigation and reaching tasks. However, [20]
+
+Table 1: Comparison with Representative Related Work. For each approach we show the type of data and supervision assumed. Control refers to whether the agent outputs the control command directly or not, e.g., waypoints for a PID controller.
+
+| Approach | Input | Output | Supervision |
| Image | Speed | Video | Control | Image Annotations | Reconstruction | Demonstrations | On-Policy | Reward |
| CIL [7] | ● | ● | - | ● | - | - | ● | - | - |
| CAL [37] | ● | ● | ● | - | ● | - | - | - | - |
| CIRL [25] | ● | ● | - | ● | - | - | ● | ● | ● |
| CILRS [8] | ● | ● | - | ● | - | - | ● | - | - |
| LBC [5] | ● | ● | - | - | ● | - | ● | ● | - |
| LSD (this work) | ● | ● | - | ● | - | ● | ● | - | - |
| LSD+ (this work) | ● | ● | - | ● | - | ● | ● | ● | ● |
+
+does not employ a mixture density network nor a task-driven optimization process. Moreover, the aforementioned studies have focused on highly simplified visual and situational environments. In contrast, our driving task involves realistic scenes of diverse weathers and dynamic obstacles.
+
+Leveraging Privileged Supervision: Related studies in autonomous driving alleviate the issue of lack of structure through stronger supervision in the form of explicit perception labels and more structured representations (e.g., affordances [4, 37] and perception modules [2, 23, 28, 38, 48, 51, 52]). Sauer et al. [37] learns a low-dimensional intermediate representations set of affordances which are then inputted to a PID controller. However, the approach is not trained end-to-end and performs worse than the behavior cloning baseline of CILRS. Recently, Chen et al. [5] utilized environment layout and traffic participant annotations in order to train a privileged agent for coaching a non-privileged sensorimotor agent, i.e., an instantiation of imitation by coaching [15]. In contrast, our approach assumes no access to such extensive privileged information, while also performing task-driven optimization. Moreover, we directly learn to map to a control command, while [5] relies on a hand-tuned, separate control module. Nonetheless, we do explore visual representations which can be learned without such explicit supervision, i.e. a Variational Auto-Encoder [13, 19] (VAE). Related to this line of research is a study by Srivastava et al. [44], showing that image reconstruction and prediction tasks improve classification performance. Moreover, our MoE approach is complementary to privileged methods, e.g., training a behavior cloning model over intermediate representations with an MoE objective.
+
+# 3. Method
+
+In this section, we formulate our approach for learning a situational driving model which accommodates multiple types of on-road reasoning and decision-making processes.
+
+Problem Definition: The goal-directed driving task is formulated as a sequential-decision making problem, de
+
+fined in the context of the CARLA [10] simulator. The objective of the driving agent is to produce a sequence of control actions that result in timely arrival at a predefined destination. The environment provides the current observations $\mathbf{o}_t = [\mathbf{I}_t, v_t] \in \mathcal{O}$ which comprise an image from a front-facing camera and the ego-vehicle speed at the current time step $t$ . In addition, it supplies a categorical variable defining a high-level navigation command $c_t \in \mathcal{C} = \{\text{left}, \text{right}, \text{straight}, \text{follow}\}$ which determines the vehicle path at the next intersections. The action space $\mathcal{A} = [-1, 1]^2$ defines the range of the continuous longitudinal and lateral control values. Our goal is to learn a policy $\pi_\Theta: \mathcal{O} \times \mathcal{C} \to \mathcal{A}$ parameterized by $\Theta$ that determines which action to take at every time step. Once an action is chosen, the environment provides the next observation $\mathbf{o}_{t+1} \sim p(\mathbf{o}_{t+1} | \mathbf{o}_t, \mathbf{a}_t)$ .
+
+# 3.1. Situational Driving Model
+
+We now describe our situational driving model which facilitates efficient learning of diverse driving behaviors, e.g., fast driving in an empty road vs. driving cautiously in dense urban environments. Our policy takes the following form
+
+$$
+\pi_ {\boldsymbol {\Theta}} (\mathbf {a} | \mathbf {o}, c) = \sum_ {k = 1} ^ {K} \underbrace {\alpha_ {\boldsymbol {\theta}} ^ {k} (\mathbf {o} , c)} _ {\text {M i x t u r e W e i g h t s}} \underbrace {\pi_ {\boldsymbol {\theta}} ^ {k} (\mathbf {a} | \mathbf {o} , c)} _ {\text {E x p e r t M o d e l s}} + \boldsymbol {\Psi} \underbrace {\left[ \begin{array}{c} q _ {\phi} (\mathbf {I}) \\ v \\ c \end{array} \right]} _ {\text {C o n t e x t E m b e d d i n g}} \tag {1}
+$$
+
+and comprises two main components:
+
+- A mixture model of probabilistic expert policies $\Pi = \{\pi_{\theta}^{1}, \dots, \pi_{\theta}^{K}\}$ with weights $\alpha_{\theta}^{k}$ for combining multiple diverse driving behaviors.
+- A context embedding $q_{\phi}$ which provides additional image-based context during model optimization and when regressing the final action.
+
+We implement the mixture of experts model and the context embedding model using neural networks with trainable parameters $\theta$ and $\phi$ , respectively. In addition, we learn the
+
+
+Figure 2: Approach Overview. The agent learns to combine a set of expert policies in a context-dependent, task-optimized manner to robustly drive in diverse scenarios.
+
+matrix $\Psi$ that projects the context features into the two-dimensional action space $\mathcal{A}$ . An overview of our framework is provided in Fig. 2, with details on our architecture found in the supplementary.
+
+We now discuss how we decompose the learning problem to learn the model parameters $\Theta = \{\theta, \phi, \Psi\}$ in a data efficient manner.
+
+# 3.2. Training
+
+Optimizing for the parameters of the driving policy $\pi_{\Theta}$ is a difficult learning task [21]. In particular, training requires learning to map high-dimensional visual observations to a two dimensional control output, i.e., implicitly and jointly learning representations for performing perception, planning, and control. Moreover, the policy should ideally be optimized directly for the task at hand, i.e., timely arrival to a destination in the map while minimizing infractions, through interaction with the environment. However, learning the policy in this manner is inefficient due to long rollout times in simulation and the large number of parameters that must be optimized. We therefore propose to learn our policy $\pi_{\Theta}$ in three steps:
+
+1. Learning expert policies $\{\alpha_{\pmb{\theta}}^{k},\pi_{\pmb{\theta}}^{k}\}$ via imitation.
+2. Learning of the context embedding $q_{\phi}$
+3. Task-driven learning / refinement of $\Psi$ and $\{\alpha_{\pmb{\theta}}^k\}$ .
+
+While the first step uses expert demonstrations for supervision, the second step requires only raw image sequences. The third step, in contrast, refines the model wrt. the actual driving task using evolutionary optimization. We now describe each of the three steps in detail.
+
+Learning a Mixture of Experts Model: A key part of the proposed model is learning of the expert models, $\pi_{\theta}^{K}$ . These models can specialize to certain scenarios and hence increase robustness within those scenarios when compared to a monolithic policy that must learn to handle all modes of the data with a single prediction branch. As the parameter set of the expert network $\theta$ is large, we train it
+
+via behavior cloning [1, 33] which solves the perception-action mapping using supervised learning, assuming access to an off-line collection of expert driving demonstrations. Given its sample-efficiency, this technique is the primary workhorse for many state-of-the-art sensorimotor driving models [7, 8, 25], yet existing approaches do not learn data-driven situational policies with a mixture model.
+
+We formulate the following loss function for training our MoE model from demonstrations:
+
+$$
+\mathcal {L} _ {\mathrm {M o E}} = \beta_ {0} \mathcal {L} _ {\mathrm {I}} + \beta_ {1} \mathcal {L} _ {\mathrm {V}} + \beta_ {2} \mathcal {L} _ {\mathrm {R}} \tag {2}
+$$
+
+where $\beta_{i}$ are scalar hyper-parameters which trade-off the three components of this loss function. The imitation loss is defined as the negative log-likelihood of the mixture density network [3, 13]
+
+$$
+\mathcal {L} _ {\mathrm {I}} = - \log \left[ \sum_ {k = 1} ^ {K} \alpha_ {\boldsymbol {\theta}} ^ {k} (\mathbf {o}, c) \pi_ {\boldsymbol {\theta}} ^ {k} (\mathbf {a} | \mathbf {o}, c) \right] \tag {3}
+$$
+
+where we model each probabilistic expert policy $\pi_{\theta}^{k}$ as a Gaussian distribution with mean and standard deviation determined by a neural network with parameters $\theta$ :
+
+$$
+\pi_ {\boldsymbol {\theta}} ^ {k} (\mathbf {a} | \mathbf {o}, c) = \mathcal {N} \left(\mathbf {a} \mid \boldsymbol {\mu} _ {\boldsymbol {\theta}} ^ {k} (\mathbf {o}, c), \operatorname {d i a g} \left(\boldsymbol {\sigma} _ {\boldsymbol {\theta}} ^ {k} (\mathbf {o}, c)\right) ^ {2}\right) \tag {4}
+$$
+
+Behavioral cloning provides a sample-efficient way for training an initial driving model by optimizing an imitation loss that is surrogate to the actual driving task. However, the imitation objective only implicitly encodes the task objective [15, 35]. This is a significant issue that can be alleviated through task-driven policy refinement (see step 3 of our learning curriculum) as well as with auxiliary losses [2, 8].
+
+Following Codevilla et al. [8], we incorporate a velocity prediction branch and an additional loss term in addition to the imitation loss for regularizing learning during this stage:
+
+$$
+\mathcal {L} _ {\mathrm {V}} = \left| \left| \hat {v} _ {\boldsymbol {\theta}} - v \right| \right| _ {2} ^ {2} \tag {5}
+$$
+
+We also add a reconstruction branch and loss which is useful for learning general purpose features [13,44]:
+
+$$
+\mathcal {L} _ {\mathrm {R}} = \left\| \hat {\mathbf {I}} _ {\theta} - \mathbf {I} \right\| _ {2} ^ {2} \tag {6}
+$$
+
+Here, $\hat{v}_{\theta}, \hat{\mathbf{I}}_{\theta}$ are the network predictions and $v, \mathbf{I}$ denote the measured velocity and the observation, respectively.
+
+Learning the Context Embedding: The context embedding in Eq. (1) enables to integrate context information that is complementary to the learned expert policies as it is a shallow network trained independently from the experts using a different objective from the mixture model training. Moreover, due to the multi-step policy optimization process, the context embedding term can provide opportunities
+
+to recover from sub-optimal solutions using the additional context [27,43].
+
+Due to known bias and generalization challenges on CARLA, e.g., overfitting to certain actions and the 'inertia problem' [8], we learn a general purpose embedding $q_{\phi}(\mathbf{I})$ from image observations alone. As evaluation on CARLA has a diverse range of weather not seen in training, e.g., from rainy to sunset weathers where large amounts of useful, task-specific visual scene information learned during training becomes unreliable in testing. Therefore, such an embedding provides additional diversity for learning a generalized policy. Following Ha and Schmidhuber [13] we train a shallow VAE [19, 34, 39] with encoder $q_{\phi}$ and decoder $d_{\phi}$ to produce a compact action-agnostic context embedding $\mathbf{z}$ . While [13] employs a VAE to encode a highly simplified driving environment, we analyze its utility in more complex settings, i.e., textured and realistic rendering of autonomous driving scenes with CARLA. We minimize the variational lower bound
+
+$$
+\mathcal {L} _ {\mathrm {V A E}} = \beta \operatorname {K L} \left(q _ {\phi} (\mathbf {z} | \mathbf {I}) \| p _ {0} (\mathbf {z})\right) + \| d _ {\phi} (\mathbf {z}) - \mathbf {I} \| _ {2} ^ {2} \tag {7}
+$$
+
+of a $\beta$ -VAE [17] where $p_0(\mathbf{z}) = \mathcal{N}(\mathbf{z}|0,\mathbf{I})$ refers to the standard normal distribution, KL is the Kullback-Leibler divergence, $\mathbf{z}$ is sampled from the posterior distribution $q_{\phi}(\mathbf{z}|\mathbf{I})$ and the hyper-parameter $\beta$ provides a trade-off between reconstruction loss and the KL-divergence. Note that we have abbreviated the distribution $q_{\phi}(\mathbf{z}|\mathbf{I})$ with $q_{\phi}(\mathbf{I})$ in Eq. (1) to avoid clutter in the notation. At inference time, we draw a sample from this distribution and combine it with the current speed and the control command as context embedding, see right part of Eq. (1).
+
+Task-Driven Policy Refinement: In the final step, we optimize the driving policy $\pi_{\Theta}$ with respect to the actual driving task which we define in terms of a reward function. The reward takes into account sequence completion, collision avoidance and traffic infractions. In contrast to the first two steps, this refinement enables the policy to interact with the simulation and collect experience in an on-policy manner, further reducing the remaining co-variate shift of the expert demonstration training set. In particular, this step helps to encourage the learned agent to adhere to traffic rules and safety, an essential component for real-world driving. Unlike current state-of-the-art methods on CARLA [5, 8], optimization wrt. the task enables the agent to go beyond imitation of the driving expert to compose the expert models and the context embedding in a way that generates a more robust and safe driving behavior.
+
+For efficiency, we only update the parameters $\Psi$ and the head of the expert network that predicts the mixture weights $\alpha_{\theta}$ . Intuitively, this step combines the pre-trained experts and context embedding with the goal of improving the policy $\pi_{\Theta}$ for the actual driving task. We will use $\theta$ to refer to the subset of the parameters $\theta$ that belong to this part
+
+of the network architecture. The remaining parameters in $\pi_{\Theta}$ are kept frozen. Note that unlike previous approaches that have trained reinforcement learning agents on CARLA by fine-tuning the entire perception stack of sensorimotor control policies [25], here we update only the mixture coefficients over predictions provided by pre-trained models. This expert-level optimization facilitates a sample-efficient training process (e.g., compared to Dosovitskiy et al. [10] which achieves poor performance even after million of interaction steps) as the predictions by the experts can guide exploration [42]. We experimentally demonstrate that a recombination of experts indeed leads to a more robust final policy.
+
+More formally, our task-driven optimization step maximizes the expected reward when following the policy $\pi_{\Theta}$ sequentially over $T$ time steps
+
+$$
+\mathcal {J} _ {\mathrm {T A S K}} (\tilde {\boldsymbol {\theta}}, \boldsymbol {\Psi}) = \mathbb {E} _ {\pi_ {\Theta}} \left[ \sum_ {t = 0} ^ {T} r _ {t} \right] \tag {8}
+$$
+
+Motivated by recent works that reported successful learning of robust policies in a variety of tasks [13, 36], we optimize the objective wrt. $\tilde{\theta}$ and $\Psi$ using an evolution strategy-based algorithm [14].
+
+# 3.3. Implementation Details
+
+We utilize a ResNet-50 [16] backbone for our mixture model, trained from scratch with Adam [18] using an initial learning rate of 0.0001. We employ a $256 \times 256$ image resolution as we found that increasing the input resolution compared to [8] improves performance slightly. We employ several data augmentation techniques based on [7], such as pixel dropout and color perturbations. For validation we follow the procedure from [6].
+
+We implement two architectures for the MoE model in the experiments, referred to as MoE-Branched (experts share the backbone network) and MoE (each expert has a separate backbone network). In both cases, the model architecture extends the CIL [7] and CILRS [8, 25] approaches. The main difference is that we do not employ hard gating based on $c$ for the experts, but replace it with a MoE head. Instead, we encode the high-level command $c$ as a one-hot vector and input it to the network, also introduced in [7]. This architectural modification allows us to analyze the benefits of combining a set of learned policy prediction heads. The other architecture components, e.g., the MLP for speed measurements are kept the same. The MLP maps the measurements to a non-linear embedding which improves performance as shown in [7]. For the policy refinement step, we follow the publicly available implementation and hyperparameter settings of [13] both for the $\beta$ -VAE and for CMA-ES [14].
+
+# 4. Experimental Evaluation
+
+Evaluation Procedure: We employ the CARLA 0.8.4 benchmark [10] as it provides diverse weathers, towns, and dynamic obstacles for analyzing situational reasoning. The environment contains two towns, one for training (Town 1) and one for testing (Town 2). In total there are 14 types of weathers, out of which four are used for training the models on Town 1. These weathers are clear noon, wet noon (with after rain puddles), heavy rain noon, and clear sunset (challenging due to illumination conditions). In this paper, we focus on evaluation on Town 2 as it requires the agent to generalize to new conditions. During standard evaluation on Town 2, the agent is required to drive in the four previously seen weathers, as well as two weathers not seen in training time, wet cloudy noon and soft rain sunset. The evaluation performance metrics involve arrival to the goal within an allocated amount of time over 25 routes for each of the weathers. On the original CARLA benchmark, collisions are allowed to occur along with other types of infractions [10] such that the episode may still complete successfully. For evaluation, the best results out of five test runs are reported for four driving conditions: driving straight, short one turn routes, longer navigation routes, and long navigation routes with dynamic obstacles. In the last case, the number of cars and pedestrians on Town 02 is set to 15 and 50, respectively. Overall, the evaluation requires 600 episodes per test run.
+
+We also employ the more recent NoCrash [8] evaluation procedure, which involves several modifications to the original benchmark. The driving conditions are categorized into empty roads, regular traffic, and dense settings, where the last condition involves a higher number of cars and pedestrians in Town 2, of 70 and 150, respectively. In addition to these significantly more challenging settings, any type of collision with pedestrians, cars, or static obstacles results in episode termination. Hence, this evaluation procedure provides a better measure for overall driving performance. Both mean and standard deviation obtained using three overall test runs are reported (the experiments are not entirely deterministic due to simulator randomness).
+
+To fully analyze the ability of the models to generalize beyond the training settings to diverse conditions, we also introduce a new benchmark which we refer to as the AnyWeather benchmark. We follow the original CARLA 0.8.4 benchmark but increase the types of new weathers to also include drastically different weathers from training conditions, e.g., a sunset with heavy rain conditions. In this evaluation procedure the agent drives on the test town (Town 2) with all the new weather types which are unseen in training (see supplement for visualizations). The AnyWeather benchmark incorporates 10 novel weathers, some are particularly challenging in terms of visibility and weather artifacts. Given that generalization capability is crucial for
+
+real-world autonomous driving, this benchmark is used in order to highlight the limitations of existing models.
+
+Baselines: The closest baseline to ours is the recent CILRS behavior cloning model [8]. CILRS uses demonstrations as supervision, and so can be compared directly with our mixture model, i.e., for the monolithic case of $K = 1$ . We report CILRS navigation performance numbers by re-running the publicly available models provided by [8]. A concurrent work to ours is the recently proposed LBC model [5]. However, the work employs a highly privileged agent, i.e., assuming access to an agent trained with extensive 3D annotations. To ensure meaningful comparison to our approach which does not assume access to such information, LBC can be considered as an upper limit on performance.
+
+Experiments: We demonstrate the benefits of the proposed situational driving framework over four main experiments. First, we motivate the approach by training behavior cloning models while varying the dataset. Second, we perform ablative analysis for the model choices, including the task-driven optimization stage for the MoE policy refinement. Third, we discuss the performance of our method in comparison with several baselines on the CARLA benchmarks. Fourth, we explore the limits of the generalization ability of the situational model in diverse conditions unseen in training.
+
+# 4.1. Results
+
+Mixture Model Performance: The goal of this initial experiment, shown in Table 2, is to motivate the need for employing a mixture model to learn more flexible sensorimotor driving models. Specifically, we demonstrate how training a monolithic behavior cloning policy as in the CILRS [8] baseline can lead to poor decision-making and generalization performance across navigation tasks. This issue can be analyzed by varying the training data to introduce an additional perception-action modality, and consequently analyzing model performance within each data modality.
+
+As shown in Table 2, we train three different models. We focus on the MoE training without the refinement step as it leads to the most significant improvement in driving performance. First, a monolithic policy is trained over scenes containing no dynamic obstacles, referred to as Nav. Static. Remarkably, the model learns to solve the static scenes navigation task, even when driving in new town and new weather conditions, better than the baseline models. However, the model is unable to safely drive around dynamic obstacles as these were not observed in training. Nonetheless, this experiment shows the strong benefit of learning situation-specialized policy models.
+
+The second model is a similar monolithic behavior cloning policy, with one difference. The model is now trained with a dataset that also contains dynamic obstacles,
+
+referred to as Nav. Dynamic $(\mathrm{K} = 1)$ . The presence of dynamic obstacles requires the agent to learn to slow down and brake appropriately. As shown in Table 2, this model can better handle navigation in such settings, but this improvement comes with a trade-off in generalization performance over settings and weathers, i.e., dynamic vs. static scenes. For example, performance for the static navigation task are reduced from $96\%$ to $78\%$ .
+
+Finally, we train an MoE model with three components with the same dataset, referred to as Nav. Dynamic $(\mathrm{K} = 3)$ . The model achieves a $98\%$ episode success rate on navigation in static scenarios and $92\%$ in dynamic scenarios. Learning a mixture model effectively addresses the aforementioned issue, while achieving state-of-the-art performance without utilizing on-policy data or privileged information (e.g., [5]). Because there are shared elements of driving behavior over both the dynamic and static scenes analyzed (e.g., during lane following and turning), the situational reasoning improves performance both within each driving scenario as well as across scenarios.
+
+Ablation: Table 3 shows the contribution of different training steps in the situational model on overall navigation success. Our baseline monolithic model already improves over the performance of CILRS [8] for the Nav. Dynamic task. We then train the two variants of the MoE architecture, with most gains seen due to incorporating a $K = 3$ component model. Adding mixture components up to $K = 5$ leads to a minor improvement, with examples of learned experts visualized in Fig. 3. The branched architecture, which is more computationally efficient due to sharing of the backbone network, shows an absolute improvement of $14\%$ over the monolithic baseline. We can see how the experts specialize into different components of the driving task with respect to throttle and brake control. Further gains in performance are observed by training experts that do not share the backbone network due to the increase in diversity between the experts (also discussed in [31]).
+
+We also analyze the limitations of learning the MoE policy with behavior cloning in Table 3. Specifically, we can see how refinement of the MoE policy through interaction with the environment can further improve driving performance. Although we only update the final layer for predicting the mixing coefficients, this step alone leads to a more robust policy and a $4\%$ improvement. The refinement step mostly leads to improved driving performance in dynamic scenarios, as shown in Table 3.
+
+Comparison with State-of-the-Art: We now compare our full model performance with several previously proposed approaches on the original CARLA benchmark in Table 4 and the NoCrash benchmark in Table 5. Results are shown both without and with the task-driven refinement stage, referred to as LSD and $\mathbf{LSD}+$ , respectively. Our proposed
+
+Table 2: Monolithic vs. Mixture. We analyze the driving performance for new town (Town 2) & new weather conditions when introducing dynamic obstacles into the training town (Town 1).
+
+| Task | Training Data and Model |
| Nav. Static (K=1) | Nav. Dynamic (K=1) | Nav. Dynamic (K=3) |
| Straight | 99 | 64 | 100 |
| One Turn | 98 | 74 | 100 |
| Navigation | 96 | 78 | 98 |
| Nav. Dynamic | 40 | 78 | 92 |
+
+Table 3: Ablative Analysis. Performance shown for the new town and dynamic obstacles (Nav. Dynamic) settings.
+
+| Model | Success Rate (%) |
| Monolithic (K=1) | 75 |
| MoE-Branched (K=3) | 89 |
| MoE-Branched (K=5) | 90 |
| MoE-Branched (K=8) | 87 |
| MoE (K=3) | 94 |
| MoE (K=5) | 93 |
| MoE (K=8) | 93 |
| MoE+Refinement (K=3) | 98 |
+
+
+Figure 3: Learned Experts' Statistics. Acceleration behavior distribution of three different experts during testing.
+
+
+
+
+
+model significantly improves over state-of-the-art driving performance on both test conditions of new town and new town with two new weathers. As previously mentioned, we can see how state-of-the-art models are unable to navigate empty road conditions well in some cases, e.g., CILRS achieves a $65\%$ success rate Table 5. In contrast, our model is able to learn a policy that can handle such differing scenarios, achieving expert-level behavior. Moreover, the MoE approach also improves performance within driving tasks by combining the situation-specific policies. Our multistage learned policy also improves over CIRL [25], another approach incorporating reinforcement learning to optimize for the driving task. We find that enabling the model to learn through interaction experience and collisions facilitates significantly better behavior in dense traffic conditions. However, on NoCrash, even the provided expert is unable to solve the driving due to a variety of reasons unrelated to
+
+Table 4: Comparison of success rates (%) with the state-of-the-art on the original CARLA 0.8.4 benchmark. A * indicates our independently performed evaluation using the publicly available model.
+
+| Task | New Town | New Town & Weather |
| CIRL [25] | CILRS [8] | CILRS* | LSD | LSD+ | LBC [5] | CIRL [25] | CILRS [8] | CILRS* | LSD | LSD+ | LBC [5] |
| Straight | 100 | 96 | 96 | 100 | 100 | 100 | 98 | 96 | 78 | 100 | 100 | 100 |
| One Turn | 71 | 84 | 86 | 99 | 99 | 100 | 80 | 92 | 96 | 100 | 100 | 100 |
| Navigation | 53 | 69 | 67 | 99 | 99 | 100 | 68 | 92 | 96 | 98 | 100 | 100 |
| Nav. Dynamic | 41 | 66 | 64 | 94 | 98 | 99 | 62 | 90 | 94 | 92 | 98 | 100 |
+
+Table 5: Comparison of success rates (%) with the state-of-the-art on the NoCrash CARLA 0.8.4 benchmark. Mean and standard deviation are shown over three runs.
+
+| Task | New Town | New Town & Weather |
| CILRS [8] | CILRS* | LSD | LSD+ | Expert | CILRS [8] | CILRS* | LSD | LSD+ | Expert |
| Empty | 66 ± 2 | 65 ± 2 | 93 ± 2 | 94 ± 1 | 96 ± 0 | 90 ± 2 | 71 ± 2 | 96 ± 1 | 95 ± 1 | 96 ± 2 |
| Regular | 49 ± 5 | 46 ± 2 | 66 ± 2 | 68 ± 2 | 91 ± 1 | 56 ± 2 | 59 ± 4 | 61 ± 1 | 65 ± 4 | 92 ± 1 |
| Dense | 23 ± 1 | 20 ± 1 | 27 ± 2 | 30 ± 4 | 41 ± 2 | 24 ± 8 | 31 ± 3 | 29 ± 4 | 32 ± 3 | 43 ± 2 |
+
+the agent. For instance, in dense settings, pedestrians and other cars may crash into the ego-vehicle or block an intersection indefinitely at no fault of the ego-vehicle, resulting in unsuccessful episode completion.
+
+The AnyWeather Benchmark: As a final experiment we seek to quantify the ability of our model to operate under drastically diverse visual conditions, which is essential in real-world driving. While learning specialized policies can provide some flexibility under different settings, the analysis on 10 unseen weathers further highlights the benefits and limitations of our approach. Table 6 shows a summary of the results in this challenging settings over a total 1000 episodes, 250 for each condition. Due to this large number of episodes, even small improvements in success rates are significant. The results should be directly compared to the results in Table 4. Here, even simpler tasks such as driving straight in static scenes is no longer solved due to the harsh weather conditions. Surprisingly, several new weathers are so difficult that they result in zero success rate by state-of-the-art approaches (both CILRS and LSD), motivating future study of this challenging benchmark.
+
+# 5. Conclusion
+
+We presented a situational policy model for driving in diverse scenarios. Based on our experiments, employing a mixture model when learning sensorimotor driving can lead to significant improvements in modeling capacity across different driving tasks. Moreover, directly optimizing for the driving task can provide additional performance gains, achieving state-of-the-art performance on the CARLA, NoCrash, and AnyWeather benchmarks. Although our approach does not require access to image-level
+
+Table 6: Generalization to Harsh Environments on the AnyWeather Benchmark. Success rates $(\%)$ for new town (Town 2) and all 10 weathers unseen in training on the CARLA 0.8.4 benchmark.
+
+| Task | New Town & Weather |
| CILRS* | LSD | LSD+ |
| Straight | 83.2 | 85.2 | 85.6 |
| One Turn | 78.4 | 80.4 | 81.6 |
| Navigation | 76.4 | 78.8 | 79.6 |
| Nav. Dynamic | 75.6 | 77.2 | 78.4 |
+
+annotations, the situational model can also be learned over a perception-module, providing a stronger visual prior and improving generalization capabilities further. Moreover, the situational formulation provides some interpretability, as the situation-specific predictions can be inspected at test time. Another future direction would be to evaluate the ability of the model to generalize to new traffic scenarios, i.e., through the composition of the expert policies. Given that our work takes a step towards learning robust, generalized driving policies, an important next step would be to further analyze the MoE model on challenging generalization settings, e.g., real-world datasets and Sim2Real [28].
+
+Acknowledgements: This work was supported by the BMBF through the Tübingen AI Center (FKZ: 01IS18039B). The authors thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Kashyap Chitta and the Humboldt Foundation for supporting Eshed Ohn-Bar.
+
+# References
+
+[1] M. Bain and C. Sammut. A framework for behavioural cloning. In Machine Intelligence 15, 1996.
+[2] M. Bansal, A. Krizhevsky, and A. Ogale. ChauffeurNet: Learning to drive by imitating the best and synthesizing the worst. In RSS, 2019.
+[3] C. M. Bishop. Mixture density networks. 1994.
+[4] C. Chen, A. Seff, A. L. Kornhauser, and J. Xiao. DeepDriving: Learning affordance for direct perception in autonomous driving. In ICCV, 2015.
+[5] D. Chen, B. Zhou, and V. Koltun. Learning by cheating. In CoRL, 2019.
+[6] F. Codevilla, A. M. Lopez, V. Koltun, and A. Dosovitskiy. On offline evaluation of vision-based driving models. In ECCV, 2018.
+[7] F. Codevilla, M. Miller, A. López, V. Koltun, and A. Dosovitskiy. End-to-end driving via conditional imitation learning. In ICRA.
+[8] F. Codevilla, E. Santana, A. M. López, and A. Gaidon. Exploring the limitations of behavior cloning for autonomous driving. ICCV, 2019.
+[9] P. Dayan and G. E. Hinton. Feudal reinforcement learning. In Advances in Neural Information Processing Systems, 1993.
+[10] A. Dosovitskiy, G. Ros, F. Codevilla, A. Lopez, and V. Koltun. CARLA: An open urban driving simulator. In CoRL, 2017.
+[11] M. R. Endsley, D. J. Garland, et al. Theoretical underpinnings of situation awareness: A critical review. Situation Awareness Analysis and Measurement, 1, 2000.
+[12] S. Gupta, J. Davidson, S. Levine, R. Sukthankar, and J. Malik. Cognitive mapping and planning for visual navigation. In CVPR, 2017.
+[13] D. Ha and J. Schmidhuber. Recurrent world models facilitate policy evolution. In Advances in Neural Information Processing Systems, 2018.
+[14] N. Hansen and A. Ostermeier. Completely derandomized self-adaptation in evolution strategies. Evolutionary computation, 9(2):159-195, 2001.
+[15] H. He, J. Eisner, and H. Daume. Imitation learning by coaching. In Advances in Neural Information Processing Systems, 2012.
+[16] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016.
+[17] I. Higgins, L. Matthew, A. Pal, C. Burgess, X. Glorot, M. Botvinick, S. Mohamed, and A. Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. *ICLR*, 2017.
+[18] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
+[19] D. P. Kingma and M. Welling. Auto-encoding variational bayes. 2014.
+[20] T. Kipf, Y. Li, H. Dai, V. Zambaldi, A. Sanchez-Gonzalez, E. Grefenstette, P. Kohli, and P. Battaglia. CompILE: Com- compositional imitation learning and execution. In ICML, 2019.
+[21] J. Kober, J. A. Bagnell, and J. Peters. Reinforcement learning in robotics: A survey. The International Journal of Robotics Research, 32(11):1238-1274, 2013.
+
+[22] J. Koutnik, G. Cuccu, J. Schmidhuber, and F. Gomez. Evolving large-scale neural networks for vision-based reinforcement learning. In Genetic and Evolutionary Computation, 2013.
+[23] D. Kuan, G. Phipps, A.-C. Hsueh, et al. Autonomous robotic vehicle road following. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 10(5):648-658, 1988.
+[24] G. Li, M. Mueller, V. Casser, N. Smith, D. L. Michels, and B. Ghanem. Oil: Observational imitation learning. RSS, 2019.
+[25] X. Liang, T. Wang, L. Yang, and E. Xing. CIRL: Controllable imitative reinforcement learning for vision-based self-driving. In ECCV, 2018.
+[26] C. C. Macadam. Understanding and modeling the human driver. Vehicle System Dynamics, 40(1-3), 2003.
+[27] D. Q. Mayne, M. M. Seron, and S. Rakovic. Robust model predictive control of constrained linear systems with bounded disturbances. Automatica, 41(2):219-224, 2005.
+[28] M. Müller, A. Dosovitskiy, B. Ghanem, and V. Koltun. Driving policy transfer via modularity and abstraction. CoRL, 2018.
+[29] U. Muller, J. Ben, E. Cosatto, B. Flepp, and Y. L. Cun. Off-road obstacle avoidance through end-to-end learning. In Advances in Neural Information Processing Systems, 2006.
+[30] T. Osa, J. Pajarinen, G. Neumann, J. A. Bagnell, P. Abbeel, J. Peters, et al. An algorithmic perspective on imitation learning. Foundations and Trends in Robotics, 7(1-2):1-179, 2018.
+[31] I. Osband, C. Blundell, A. Pritzel, and B. Van Roy. Deep exploration via bootstrapped dqn. In Advances in Neural Information Processing Systems, 2016.
+[32] X. B. Peng, M. Chang, G. Zhang, P. Abbeel, and S. Levine. MCP: Learning composable hierarchical control with multiplicative compositional policies. In Advances in Neural Information Processing Systems, 2019.
+[33] D. A. Pomerleau. ALVINN: An autonomous land vehicle in a neural network. In Advances in Neural Information Processing Systems, 1989.
+[34] D. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, 2014.
+[35] S. Ross, G. Gordon, and D. Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In AISTATS, 2011.
+[36] T. Salimans, J. Ho, X. Chen, S. Sidor, and I. Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv, 1703.03864, 2017.
+[37] A. Sauer, N. Savinov, and A. Geiger. Conditional affordance learning for driving in urban environments. In CoRL, 2018.
+[38] A. Sax, B. Emi, A. R. Zamir, L. Guibas, S. Savarese, and J. Malik. Mid-level visual representations improve generalization and sample efficiency for learning active tasks. In CoRL, 2019.
+[39] E. Schonfeld, S. Ebrahimi, S. Sinha, T. Darrell, and Z. Akata. Generalized zero-and few-shot learning via aligned variational autoencoders. In CVPR, 2019.
+
+[40] S. Shalev-Shwartz and A. Shashua. On the sample complexity of end-to-end training vs. semantic abstraction training. arXiv, 1807.01622, 2016.
+[41] A. Sharma, M. Sharma, N. Rhinehart, and K. M. Kitani. Directed-info GAIL: Learning hierarchical policies from unsegmented demonstrations using directed information. ICLR, 2019.
+[42] W. B. Shen, D. Xu, Y. Zhu, L. J. Guibas, L. Fei-Fei, and S. Savarese. Situational fusion of visual representation for visual navigation. ICCV, 2019.
+[43] T. Silver, K. Allen, J. Tenenbaum, and L. Kaelbling. Residual policy learning. In ICRA, 2019.
+[44] N. Srivastava, E. Mansimov, and R. Salakhudinov. Unsupervised learning of video representations using lstms. In ICML, 2015.
+[45] R. S. Sutton, D. Precup, and S. P. Singh. Intra-option learning about temporally abstract actions. In ICML, 1998.
+[46] A. Tamar, Y. Wu, G. Thomas, S. Levine, and P. Abbeel. Value iteration networks. In Advances in Neural Information Processing Systems, 2016.
+[47] J. R. Uijlings and V. Ferrari. Situational object boundary detection. In CVPR, 2015.
+[48] D. Wang, C. Devin, Q.-Z. Cai, P. Krahenbuhl, and T. Darrell. Monocular plan view networks for autonomous driving. IROS, 2019.
+[49] H. Xu, Y. Gao, F. Yu, and T. Darrell. End-to-end learning of driving models from large-scale video datasets. In CVPR, 2017.
+[50] A. M. Zador. A critique of pure learning and what artificial neural networks can learn from animal brains. Nature Communications, 10(1):1-7, 2019.
+[51] A. R. Zamir, A. Sax, W. Shen, L. J. Guibas, J. Malik, and S. Savarese. Taskonomy: Disentangling task transfer learning. In CVPR, 2018.
+[52] B. Zhou, P. Krahenbuhl, and V. Koltun. Does computer vision matter for action? Science Robotics, 4(30), 2019.
+[53] Y. Zhu, R. Mottaghi, E. Kolve, J. J. Lim, A. Gupta, L. Fei-Fei, and A. Farhadi. Target-driven visual navigation in indoor scenes using deep reinforcement learning. In ICRA, 2017.
\ No newline at end of file
diff --git a/learningsituationaldriving/images.zip b/learningsituationaldriving/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..08a5aafa017266d1e04bbef62ef7d2a11323f3a2
--- /dev/null
+++ b/learningsituationaldriving/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2cd5f30cd34f58875f38a03866ef3683923e743e921db555ae0c6cbbafe5a5c0
+size 268908
diff --git a/learningsituationaldriving/layout.json b/learningsituationaldriving/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..fd7ba25fefdabe2c669af4f7548ca76adb21d38b
--- /dev/null
+++ b/learningsituationaldriving/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86ad9d152006965e9c528dcf9241b9e7abe90671b6103b146ea0b0f1641bcf72
+size 347539
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_content_list.json b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8bb643aef731756fd9012d52934caa912adce869
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:389c73f183691221aa210465e765e47cf819c78c7ca8300b2e8a78149aaa7bd2
+size 76840
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_model.json b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..769a832cc16da4c6a06f5531ff816f2d1950f197
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:978d4f58290f56d05c926e253bf295aa31161a375a94f7d88bf22e4bde7b23e2
+size 95658
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_origin.pdf b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3f1101826d44d4f3efd9c292e496eec273125d5c
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/10778b97-88b5-427e-93dc-5fbebe797a80_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e0f9bfb713831771c6c7b400492b225bf9f46048ae89fcb8025ab017b177ed1
+size 1318626
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/full.md b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..506db4871209f42c4a9b8901494354a2482dbb35
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/full.md
@@ -0,0 +1,340 @@
+# Learning Temporal Co-Attention Models for Unsupervised Video Action Localization
+
+Guoqiang Gong, Xinghan Wang, Yadong Mu *
+Wangxuan Institute of Computer Technology, Peking University
+{gongggq, xinghan_wang, myd}@pku.edu.cn
+
+Qi Tian
+Noah's Ark Lab, Huawei
+tian.qil@huawei.com
+
+# Abstract
+
+Temporal action localization (TAL) in untrimmed videos recently receives tremendous research enthusiasm. To our best knowledge, this is the first attempt in the literature to explore this task under an unsupervised setting, hereafter referred to as action co-localization (ACL), where only the total count of unique actions that appear in the video set is known. To solve ACL, we propose a two-step "clustering + localization" iterative procedure. The clustering step provides noisy pseudo-labels for the localization step, and the localization step provides temporal coattention models that in turn improve the clustering performance. Using such two-step procedure, weakly-supervised TAL can be regarded as a direct extension of our ACL model. Technically, our contributions are two-folds: 1) temporal co-attention models, either class-specific or class-agnostic, learned from video-level labels or pseudo-labels in an iterative reinforced fashion; 2) new losses specially designed for ACL, including action-background separation loss and cluster-based triplet loss. Comprehensive evaluations are conducted on 20-action THUMOS14 and 100-action ActivityNet-1.2. On both benchmarks, the proposed model for ACL exhibits strong performances, even surprisingly comparable with state-of-the-art weakly-supervised methods. For example, previous best weakly-supervised model achieves $26.8\%$ under mAP@0.5 on THUMOS14, our new records are $30.1\%$ (weakly-supervised) and $25.0\%$ (unsupervised).
+
+# 1. Introduction
+
+Temporal action localization (or action detection) [54, 39, 57, 48, 23, 30, 56] is a fundamental challenge in video understanding. The goal of temporal action localization is to precisely find the starting and ending time for each action instance from a long, untrimmed video. It has a variety of potential applications in real-world scenarios, including
+
+
+Figure 1. Illustration of two co-attention models. Class-agnostic attention helps to find the important frames of a video. Class-specific attention models the temporal distribution of actions, which can be used for action localization. Note that actions are anonymous (obtained via co-attention piloted clustering) in ACL.
+
+video summarization, video highlight detection, surgical skill assessment and others. To learn an effective action localization model, it is crucial to collect a sufficient number of annotated videos. In comparison with the benchmarks mainly designed for image recognition (e.g., ImageNet[35]) or video classification (e.g., Kinetics[3]), the largest video benchmarks for action localization, known as ActivityNet v1.3[10], has only about 20,000 annotated videos. This partly attributes to the fact that labeling an action instance is more tedious and prone to errors, since accurately delimiting the temporal boundary of an action instance is both time-consuming and subjective to different annotators. The scarcity of instance-level annotation has inspired recent endeavors on weakly-supervised temporal action localization methods. Specifically, for every training video, only a rough video-level action category yet not frame-wise labels are available.
+
+This main scope of this work is an unexplored problem setting of unsupervised temporal action localization. In
+
+the unsupervised case, all we know regarding the training videos is an integer $C$ which totals unique actions appearing in the video collection. For ease of statement, we term this new problem as action co-localization (ACL). To our best knowledge, our work is the first to address unsupervised temporal action localization.
+
+To solve ACL, we propose a two-step "clustering + localization" iterative procedure. In the unsupervised case, true semantic annotations are missing, so we use clustering algorithm to group videos into $C$ clusters, each of which defines a pseudo-action. Each unlabeled untrimmed video is assigned with a pseudo action class label based on clustering results. Then, an action localization model will be learned based on these noisy video-level pseudo-labels, which is capable of detecting action instances and predicting their pseudo-labels. The core of our proposed solution to ACL are two kinds of temporal co-attention illustrated in Figure 1, optimized with action-background separation loss and cluster-based triplet loss respectively:
+
+1) Inspired by classic image co-segmentation techniques [34, 15], we regard that videos of the same action (here approximated via action pseudo-label) share a common class-specific co-attention model. We get the class-specific action feature representation by the class-specific co-attention score. In particular, for videos belonging to the same cluster, we want to satisfy the following two criteria: high inter-video class-specific action feature representation similarity and high intra-video action-background feature distinctness. Based on these criteria, we design action-background separation loss to train the class-specific co-attention model. Once accurately learned, such co-attention models can be used to generate and rank action-specific proposals.
+
+2) Since untrimmed videos usually contain a large portion of irrelevant backgrounds, we design a dataset-level class-agnostic co-attention model to learn the importance score of each frame. We get the class-agnostic video feature representation by the class-agnostic co-attention model. To pull the feature representation of the same cluster closer and push the video features belonging to different clusters further in the feature space, we design cluster-based triplet loss to train the class-agnostic co-attention model.
+
+The clustering step and localization step reinforce each other. The clustering step provides noisy pseudo-labels for the localization step. All temporal co-attention are then updated in the localization step. The class-agnostic co-attention model is in turn used to modulate the first video clustering step, ensuring that video frames with high attention scores play a more important role during clustering.
+
+Importantly, weakly-supervised TAL, where video-level action class label is available, can be regarded as a special case of ACL and solved via our temporal co-attention models. In particular, videos with weak annotation can
+
+be grouped into $C$ clusters according to video-level labels, therefore the first clustering is skipped.
+
+The technical contributions of this work can be summarized as below: 1) To our best knowledge, it is the first work that explores unsupervised temporal action colocalization (ACL) in the literature; 2) This paper presents a novel two-step "clustering + localization" solution to the task of unsupervised ACL. In particular, we devise class-agnostic and class-specific temporal co-attentions, which are iteratively reinforced to gradually elevate the accuracy. We propose action-background separation loss and clustering-based triplet loss combined with cross-entropy loss to train both co-attention models; 3) Our comprehensive experiments on 20-action THUMOS14 and 100-action ActivityNet-1.2 have established first baselines and evaluation protocol for ACL. Surprisingly, the proposed model for ACL exhibits competitive performances to state-of-the-art weakly-supervised methods on both benchmarks. For example, our record on THUMOS14 is $25.0\%$ in an unsupervised setting under mAP@0.5. Besides, our new record on THUMOS14 in a weakly-supervised setting under mAP@0.5 is $30.1\%$ while the previous best is $26.8\%$ .
+
+# 2. Related Work
+
+Fully-supervised action localization: This refers to the problem setting where all true action instances are labeled in detail, including temporal boundaries and action categories. One of the key challenges in supervised action localization is the vast number of candidate temporal windows that are drawn from varying scales and locations. Inspired by the R-CNN family of image object detectors [9], early development of action localization models [39, 48, 37, 49, 4, 24, 44, 22] adopt a two-stage "generate action proposals + rank proposals" paradigm. The first stage draws a large pool of possible temporal windows from videos (e.g., by sliding windows [5, 39, 2, 8], temporal action grouping [57, 7], or boundary point detection [18, 16]) and quickly filters out a majority of them which are least likely to contain any action. The remaining proposals further go through more fine-grained inspection, such as temporal stage-aware SSN [57]. The most confident proposals are outputted as the predicted action instances. Besides the two-stage methods, there also exist other methods which adopt a framework of reinforcement learning [50, 11] or single-shot detection [1, 17] inspired by their counterparts in image object detection (e.g. YOLO [32] and SSD [21]).
+
+Weakly-supervised action localization: Video-level labeling is more straightforward compared with that in segment-level, which is referred to as weakly-supervised action localization [43]. Most of the relevant approaches are strongly inspired by multiple instance learning (MIL) [25] or visual attention models [51]. Representative approaches include
+
+
+
+
+Figure 2. Overall architecture of our proposed model. The upper part is the clustering module and the lower part is the localization module. See section 3 for more details.
+
+UntrimmedNet [46], Hide-and-Seek [41], W-TALC [29], Sparse Temporal Pooling Network [27], AutoLoc [38], and CleanNet[14], etc. Among them, UntrimmedNet [46] is comprised of classification/selection models and sparsity-encouraging regularization. The work in [58] identifies a key challenge as over-sparse supporting frames along the temporal scale. The authors thus propose to iteratively erase predecessor classifiers and enforce a new classifier to learn some complementary pieces. More recently, in [19], a multi-branch network with MIL loss and diversity loss is proposed to model action completeness. 3C-Net [26] propose to use multi-label center loss and action counting loss to reduce intra-class variations and enhance separability of adjacent action instances. In [28], the authors propose a background-aware loss to explicitly model background content. TSM [53] views each action as a multi-phase process and finds an optimal phase transition path to localize the actions.
+
+Unsupervised action clustering / localization: Most relevant works to ours are [13, 42]. They sequentially did two jobs: unsupervised action clustering that group videos of similar human actions into separate action classes (e.g., by spectral clustering and dominant set selection [42]), and localize the video tube-let that contains the actors. We would
+
+emphasize that those works have fundamental differences to the task of ACL: those methods mainly target trimmed videos and the "localization" is essentially spatial.
+
+# 3. The Proposed Approach
+
+In this section, we present our proposed method for ACL. Its extension to the weakly-supervised case can be trivially obtained by skipping the first clustering step, since we know the action category of each video in the case of weak supervision. Consider that we are provided with a training set of untrimmed videos $V = \{v_{i}\}_{i=1}^{N}$ , where $N$ is the number of videos. In the unsupervised case, we know the number of action categories $C$ in the entire training set, but we don't know the specific category of each video.
+
+# 3.1. Video Feature Extraction
+
+Given an untrimmed video, we first divide it into a set of snippets, each consisting of several consecutive frames. Following the common practice in previous works, we extract the RGB and flow video features for each snippet. Let $X^{R}, X^{F} \in \mathbb{R}^{T \times D}$ denote the snippet-wise RGB and flow feature sequence respectively, where $T$ denotes the number of snippets and $D$ denotes dimension of feature.
+
+# 3.2. Architecture Overview
+
+The overall architecture is illustrated in Figure 2. Given the RGB or flow feature $X \in \mathbb{R}^{T \times D}$ of an input video $v$ , we first use our proposed Local-Global Feature Aggregation Block to obtain an embedding feature $X_{e} \in \mathbb{R}^{T \times D_{1}}$ . Then the network breaks into two branches, each composed of a convolution layer and a fully-connected layer. The outputs of the two branches are the class-agnostic attention weights $S \in \mathbb{R}^{T \times 1}$ and the class-specific attention weights $A \in \mathbb{R}^{T \times C}$ respectively. We denote the feature vectors before the fully-connected layers of the two branches as $X_{ca}, X_{cs} \in \mathbb{R}^{T \times D_{2}}$ . Then we combine class-agnostic and class-specific attention weights to obtain class probability distribution $\hat{p}$ for the video.
+
+In ACL, since ground-truth video label is not available, we perform clustering on the training data to assign each video with a pseudo label and use it to calculate a cross-entropy loss $\mathcal{L}_{cls}$ . Meanwhile, we use the class-agnostic attention weight $S$ to get a cluster-based triplet loss $\mathcal{L}_{trip}$ , and use the class-specific attention weight $A$ to get an action-background separation loss $\mathcal{L}_{abs}$ . Combining the above losses, we get our overall loss function
+
+$$
+\mathcal {L} = \mathcal {L} _ {c l s} + \alpha \mathcal {L} _ {t r i p} + \beta \mathcal {L} _ {a b s}, \tag {1}
+$$
+
+where $\alpha$ and $\beta$ are coefficients. Details will be described in the following sections.
+
+# 3.3. Co-Attention Piloted Video Clustering
+
+This section presents using the acquired class-agnostic attention for video clustering. In ACL, we only know the number of action categories $C$ of the training set. To get the video-level pseudo label for each video, we utilize the spectral clustering algorithm [36, 45, 52] on the training set to obtain $C$ clusters, so that each video can be assigned with a pseudo label according to the cluster it belongs to. For each video $v$ with $T_v$ snippets, let $X_v^R, X_v^F \in \mathbb{R}^{T_v \times D}$ denote its RGB and flow stream features, respectively. Let $S_{v,i}^R, S_{v,i}^F \in \mathbb{R}^{T_v \times 1}$ denote its RGB and flow stream class-agnostic attention weights of $v$ at iteration $i$ , respectively. Since we don't have the importance scores of each video snippet at the first iteration, we set
+
+$$
+S _ {v, 1} ^ {R} [ j, 1 ] = S _ {v, 1} ^ {F} [ j, 1 ] = \frac {1}{T _ {v}} (1 \leq j \leq T _ {v}). \tag {2}
+$$
+
+Due to untrimmed videos usually contain a large proportion of background frames, the video representation which is generated by average pooling along the temporal dimension is not discriminative. To extract the action-related video representation, at iteration $i$ ( $i > 1$ ), we use the class-agnostic temporal attention $S_{v,i}^{R}, S_{v,i}^{F}$ which is generated by action localization model at iteration $i - 1$ . Then RGB fea
+
+
+Figure 3. Local-Global Feature Aggregation Block. $d$ is the dilation rate of temporal 1D convolution.
+
+ture $f_{v}^{R}$ and flow feature $f_{v}^{F}$ of video $v$ at iteration $i$ is generated by:
+
+$$
+f _ {v} ^ {R} = L _ {2} \operatorname {N o r m} \left(\left(X _ {v} ^ {R}\right) ^ {\top} S _ {v, i} ^ {R}\right), f _ {v} ^ {F} = L _ {2} \operatorname {N o r m} \left(\left(X _ {v} ^ {F}\right) ^ {\top} S _ {v, i} ^ {F}\right),
+$$
+
+where $L_{2}Norm(\cdot)$ denotes $L_{2}$ normalization. Afterwards, $f_{v}^{R}$ and $f_{v}^{F}$ are concatenated to generate the two-stream feature representation $f_{v}$ of video $v$ . Given all training videos $\{v_{i}\}_{i = 1}^{N}$ and their features $\{f_i\}_{i = 1}^N$ , we build a fully connected affinity graph $G = \{V,E\}$ , where $V$ denotes the collection of vertices, i.e., training set videos, and $E$ denotes the collection of edges. The edge weight $w_{ij}$ of $v_{i}$ and $v_{j}$ is computed as $w_{ij} = \exp \left(-\frac{\|f_i - f_j\|_2^2}{2\sigma^2}\right)$ , where $\sigma = \frac{1}{N^2}\sum_{i = 1}^{N}\sum_{j = 1}^{N}\| f_i - f_j\| _2,\| \| _2$ denotes the Euclidean distance. Then $W = [w_{ij}]$ is the affinity matrix of the graph. Based on the constructed affinity graph, we use spectral clustering algorithm [36] to group untrimmed videos into $C$ clusters, each of which defines a pseudo-action. Each unlabeled untrimmed video is assigned with a pseudo action class label based on clustering results. Then, these video-level pseudo-labels are used to train action localization model. For the weakly-supervised extension, video-level labels are available for each video, thus clustering is skipped.
+
+# 3.4. Local-Global Feature Aggregation Block
+
+Since the feature of each snippet contains only the information of the current snippet, there is a lack of temporal context information. To improve the discriminability of each snippet feature, a Local-Global Feature Aggregation Block (FAB) is proposed to extract both local and global context information. The architecture is illustrated in Figure 3. FAB consists of three parts: a 1D temporal con
+
+volution branch, a dilated temporal pyramid branch, and a global context branch. The dilated temporal pyramid branch is composed of 2 parallel dilated convolutions with different dilation rates to aggregate local temporal context. The global context branch uses a non-local block [47] to capture the temporal correlation between all frames. A 1D temporal convolution with kernel size 1 is added before the global context branch to reduce the computation cost. The outputs of all branches are concatenated and fused via 1D temporal convolution. A skip connection is inserted after 1D temporal convolution.
+
+# 3.5. Class-Specific Temporal Attention Module
+
+In an untrimmed video, actions usually take place in a part of the video. We design Class-Specific Temporal Attention Module to get the probabilities of different action categories appearing at different times. These class-specific probabilities are further used for action localization. In this module, we take the class-specific feature $X_{cs}$ as input and output a sequence of class-specific temporal attention scores $A \in \mathbb{R}^{T \times C}$ . Then $A$ is passed through a softmax along the temporal dimension, yielding the normalized class-specific temporal attention scores $\hat{A} = \text{softmax}(A)$ .
+
+In the task of unsupervised or weakly supervised temporal action localization, since there is no temporal annotation, the temporal boundary of action localization result is usually inaccurate. To get a more precise temporal boundary of action, we designed the action-background separation loss.
+
+For a batch of training videos, we randomly sample videos from $Z$ clusters and $K$ videos of each cluster. Let $V_{z} = \{v_{k}\}_{k=1}^{K}$ denotes all videos belonging to the same cluster $z(1 \leq z \leq C)$ in a batch. The design of action-background separation loss is based on two criteria, namely high inter-video action similarity and high intra-video action-background distinctness. For each video $v_{k}$ , we extract the action feature
+
+$$
+J _ {k} = X _ {c s, k} ^ {\intercal} \hat {A} _ {k} [:, z ], \tag {3}
+$$
+
+and background feature
+
+$$
+B _ {k} = \frac {1}{T _ {k} - 1} X _ {c s, k} ^ {\intercal} \left(\mathbf {1} - \hat {A} _ {k} [:, z ]\right), \tag {4}
+$$
+
+where $\hat{A}_k$ is the normalized temporal attention score of $v_{k}$ , $X_{cs,k}$ is the class-specific feature of $v_{k}$ and $T_{k}$ is the number of snippets of $v_{k}$ . Assume we have a pair of videos $v_{m}$ and $v_{n}$ belonging to $V_{z}$ . Let $d$ denote the cosine distance function, $\tau_{1}$ and $\tau_{2}$ denote two positive margins respectively. To ensure the high inter-video action similarity, we use the following equation to enforce this requirement:
+
+$$
+d \left(J _ {m}, J _ {n}\right) \leq \tau_ {1}. \tag {5}
+$$
+
+To satisfy high intra-video action-background distinctness, we use the following equations:
+
+$$
+d \left(J _ {m}, B _ {m}\right) - d \left(J _ {m}, J _ {n}\right) \geq \tau_ {2}, \tag {6}
+$$
+
+$$
+d \left(J _ {n}, B _ {n}\right) - d \left(J _ {m}, J _ {n}\right) \geq \tau_ {2}. \tag {7}
+$$
+
+For videos belonging to the same cluster $z$ , we calculate action-background separation loss of cluster $z$ as follows:
+
+$$
+\mathcal {L} _ {\text {i n t e r}, z} = \sum_ {m = 1} ^ {K} \sum_ {n = 1, n \neq m} ^ {K} \max \left\{d \left(J _ {m}, J _ {n}\right) - \tau_ {1}, 0 \right\}, \tag {8}
+$$
+
+$$
+\mathcal {L} _ {\text {i n t r a}, z} = \sum_ {m = 1} ^ {K} \sum_ {n = 1, n \neq m} ^ {K} \max \left\{d \left(J _ {m}, J _ {n}\right) - d \left(J _ {m}, B _ {m}\right) + \tau_ {2}, 0 \right\}. \tag {9}
+$$
+
+For a batch of videos, we sum the loss of all cluster in a batch as follows:
+
+$$
+\mathcal {L} _ {a b s} = \sum_ {z = 1} ^ {Z} \left(L _ {i n t e r, z} + \theta \cdot L _ {i n t r a, z}\right), \tag {10}
+$$
+
+where $\theta$ is a weight coefficient.
+
+# 3.6. Class-Agnostic Temporal Attention Module
+
+Untrimmed videos usually contain irrelevant backgrounds. For example, each video in the THUMOS14 validation set has $71\%$ background on average. To alleviate the confusion caused by excessive background information, we hope to select the foreground part in which actions take place from the untrimmed video. So we designed the Class-Agnostic Temporal Attention Module to learn the attention score of each snippet. This module takes the class-agnostic feature $X_{ca}$ as input and outputs a sequence of class-agnostic temporal attention score $S \in \mathbb{R}^{T \times 1}$ .
+
+To pull the video feature representation of the same cluster closer and push the video feature representation of different clusters further in the feature space, we utilize the triplet loss. Same with section 3.5, we randomly sample videos from $Z$ clusters and $K$ videos of each cluster. Then we extract the class-agnostic video feature representation $H$ by $H = X_{ca}^{\top} S$ .
+
+Let $d$ denote the cosine distance and $m$ denote the positive margin. In cluster $z$ , for each anchor video $v_{a}$ , suppose $v_{n}$ is the video which is not in cluster $z$ and has the minimal distance to $v_{a}, v_{p}$ is the video in cluster $z$ and has the maximum distance to $v_{a}$ . Suppose $H_{a}, H_{n}, H_{p}$ are their class-agnostic video features respectively, then the following condition should be satisfied:
+
+$$
+d \left(H _ {a}, H _ {n}\right) - d \left(H _ {a}, H _ {p}\right) \geq m \tag {11}
+$$
+
+then we calculate the cluster-based triplet loss as follows:
+
+$$
+\mathcal {L} _ {t r i p} = \sum_ {z = 1} ^ {Z} \sum_ {a = 1} ^ {K} \max \left\{d \left(H _ {a}, H _ {p}\right) - d \left(H _ {a}, H _ {n}\right) + m, 0 \right\}. \tag {12}
+$$
+
+To predict the action category of each video, we first get the normalized class-agnostic temporal attention score $\hat{S}$ by taking softmax operation along the temporal dimension on $S$ . Then we calculate the weighted average $p = A\hat{S} \in \mathbb{R}^{C \times 1}$ . We get probabilistic distribution over action classes $\hat{p}$ by performing softmax along the category dimension on $p$ . The cross-entropy loss for a batch of videos is calculated by:
+
+$$
+\mathcal {L} _ {c l s} = - \sum_ {n = 1} ^ {Z K} \sum_ {i = 1} ^ {C} y _ {n, i} \log \hat {p} _ {n, i}, \tag {13}
+$$
+
+where $y_{n}$ denotes the label of video $v_{n}$ and $\hat{p}_n$ denotes the predicted label of video $v_{n}$ .
+
+# 3.7. Iterative optimization
+
+In this paper, we propose a novel iterative optimization method to tackle the problem of unsupervised action localization. The method consists of two iterative steps: video clustering and temporal action localization.
+
+Since there are no true semantic annotations, we first perform spectral clustering algorithm [36] on the training set, then assign each video with a pseudo label according to the cluster it belongs to. Pseudo video labels are then employed as the supervision information to train the localization part and temporal co-attentions are updated. As discussed in section 3.3, the class-agnostic co-attention model guides the video clustering step, ensuring video frames with high attention scores play a important role during clustering.
+
+On the one hand, a better co-attention model $S$ helps to find the important frames of the video and yield a better feature representation $f_{v}$ for the video. On the other hand, a more precise feature representation leads to more precise pseudo labels obtained from the clustering process, and in turn provides better supervision for the localization. Our experiments show this iterative optimization process indeed gradually improves the performance of both steps.
+
+# 3.8. Action Localization by Class-Specific Co-Attentions
+
+Given a test video, we first use the trained localization network to obtain the class-specific attention $A$ and video-level classification score $\hat{p}$ . Then we threshold on $\hat{p}$ , and find all the categories $c$ satisfying $\hat{p}_c > \tau$ . Let $[\alpha_0,\dots,\alpha_r]$ be a set of threshold values. Each $\alpha_{j}$ is used to threshold on $A[:,c]$ and obtain a set of localization proposals. Each proposal has the form of $(b_i,e_i,c_i)$ , where $b_{i},e_{i}$ denote the start and end time of the $i^{th}$ detected action and $c_{i}$ is the predicted category. Following [19], we combine the Outer-Inner Contrastive loss in [38] and the video-level class score $\hat{p}_c$ to score each action proposal:
+
+$$
+\operatorname {s c o r e} _ {i} = \operatorname {a v g} (A [ \text {i n n e r}, c ]) - \operatorname {a v g} (A [ \text {o u t e r}, c ]) + \gamma \hat {p} _ {c}, \tag {14}
+$$
+
+ | Methods | mAP@IoU (%) |
| 0.3 | 0.4 | 0.5 | 0.6 | 0.7 |
| FS | SLM-mgram [33] | 30.0 | 23.2 | 15.2 | - | - |
| Glimpse [50] | 36.0 | 26.4 | 17.1 | - | - |
| PSDF [54] | 33.6 | 26.1 | 18.8 | - | - |
| S-CNN [39] | 36.3 | 28.7 | 19.0 | 10.3 | 5.3 |
| SSAD [17] | 43.0 | 35.0 | 24.6 | - | - |
| CDC [37] | 40.1 | 29.4 | 23.3 | 13.1 | 7.9 |
| R-C3D [48] | 44.8 | 35.6 | 28.9 | - | - |
| SSN [57] | 51.9 | 41.0 | 29.8 | - | - |
| TAL-Net [4] | 53.2 | 48.5 | 42.8 | 33.8 | 20.8 |
| WS | Hide-and-seek [41] | 19.5 | 12.7 | 6.8 | - | - |
| UntrimmedNet [46] | 28.2 | 21.1 | 13.7 | - | - |
| STPN [27] | 35.5 | 25.8 | 16.9 | 9.9 | 4.3 |
| Autoloc [38] | 35.8 | 29.0 | 21.2 | 13.4 | 5.8 |
| W-TALC [29] | 40.1 | 31.1 | 22.8 | - | 7.6 |
| MAAN [55] | 41.1 | 30.6 | 20.3 | 12.0 | 6.9 |
| CMCS [20] | 41.2 | 32.1 | 23.1 | 15.0 | 7.0 |
| 3C-Net [26] | 44.2 | 34.1 | 26.6 | - | 8.1 |
| BM [28] | 46.6 | 37.5 | 26.8 | 17.6 | 9.0 |
| TSM [53] | 39.5 | - | 24.5 | - | 7.1 |
| CleanNet [14] | 37.0 | 30.9 | 23.9 | 13.9 | 7.1 |
| Ours | 46.9 | 38.9 | 30.1 | 19.8 | 10.4 |
| US | Ours | 39.6 | 32.9 | 25.0 | 16.7 | 8.9 |
+
+Table 1. Comparisons on the THUMOS14 test set for action detection. We denote fully-supervised, weakly-supervised and unsupervised as FS, WS and US respectively.
+
+where inner denotes the predicted action boundary $(b_i, e_i)$ , and outer denotes the inflated region $(b_i - (e_i - b_i) / 4, b_i) \cup (e_i, e_i + (e_i - b_i) / 4)$ . $\gamma$ is a trade-off coefficient. Notice that the proposals for different $\alpha_i$ may overlap, so we perform non-maximum suppression(NMS) on all these proposals and get the final localization output.
+
+# 4. Evaluations
+
+# 4.1. Data Description and Evaluation Protocol
+
+We evaluate our method on two large-scale benchmark datasets: THUMOS14 and ActivityNet-1.2. The videos contained in both datasets are untrimmed, implying that videos contain some frames that are not from any target action.
+
+THUMOS14 [12]. A subset of the THUMOS14 dataset contains videos with temporal annotations from 20 action classes. Following the previous convention [4, 19], we train our model with 200 untrimmed videos in the validation set and evaluate our method on the test set of 212 videos.
+
+ActivityNet-1.2 [10]. To facilitate comparisons, we conduct experiments on ActivityNet-1.2 which contains 4,819 training videos, 2,383 validation videos and 2,480 testing videos from 100 activity classes. Since the test set annotations of this dataset are withheld, we train our model on the training set and perform evaluations on the validation set as in previous works [29, 26].
+
+Cluster evaluation protocol. To measure the clustering performance, we use three criteria, i.e., purity, normalized mutual information score (NMI) and adjust rand index (ARI), which are widely used in the clustering task [31]. Bigger values of these criteria indicate better clustering performance.
+
+Action localization evaluation protocol. For temporal action localization task, we report the traditional mean Average Precision (mAP) [6] at different temporal intersection over union(IoU). The IoU thresholds are 0.3, 0.4, 0.5, 0.6, 0.7 on THUMOS14. The IoU thresholds are 0.5, 0.75, 0.95 on ActivityNet-1.2. The average mAP with IoU thresholds [0.5:0.95:0.05] is used to compare different methods on ActivityNet-1.2.
+
+# 4.2. Implementation Details
+
+We utilize two-stream architecture [40] to extract features for video frames. In our experiment, two separate I3D [3] models are trained from consecutive frames and flow on Kinetics [3], respectively. I3D takes nonoverlapping snippets of 16 stacked RGB or optical flow frames as input and extracts 1024-dimensional feature for each stream. We adopt the late fusion of the RGB and optical flow streams to generate the final action localization results.
+
+Our action localization model is implemented in PyTorch. It is trained with a mini-batch size of 24 using Adam optimizer with weight decay 0.001. For a batch of training data, we randomly sample videos from 12 clusters and 2 videos of each cluster. The learning rates are set as 0.001 and 0.0001 for ActivityNet-1.2 and THUMOS14 respectively. We set both $\alpha$ and $\beta$ in Eq.1 to 0.5. For action-background separation loss, we set $\tau_{1}$ , $\tau_{2}$ as 0.0001 and 0.25 respectively. $\theta$ in Eq.10 is set as 1. For triplet loss, we set margin parameter $m$ as 0.5 in Eq.12. When generating action localization results, we only keep classes whose video-level probabilities are above 0.1. For class $c$ with $\hat{p}_c > 0.1$ , we use a set of threshold values ranging from $[0.1:1.0:0.1] \times \text{mean}(A(:,c])$ , where mean get the mean value of $A(:,c]$ . $\gamma$ in Eq.14 is empirically set as 0.1. Proposals generated by different thresholds are combined, then NMS is used to remove duplicate localization results.
+
+For ACL, we only know the cluster index that each proposal belongs to. To make comparisons with other fully-supervised or weakly-supervised TAL methods, we need to further map the cluster indices to action classes of THU-MOS14 or ActivityNet-1.2 to get the class label for each proposal in the testing step. Specifically, we map each cluster to the action class which occurs most frequently in this cluster. In addition, since some videos may contain multiple actions of different classes (e.g., some videos in THU-MOS14 contain both diving and cliff diving), sometimes we should map one cluster to more than one action. In our ex
+
+ | Methods | mAP@IoU (%) |
| 0.5 | 0.75 | 0.95 | Average |
| WS | FC-CRF [58] | 27.3 | 14.7 | 2.9 | 15.6 |
| AutoLoc [38] | 27.3 | 15.1 | 3.3 | 16.0 |
| W-TALC [29] | 37.0 | - | - | 18.0 |
| CMCS [20] | 36.8 | 22.0 | 5.6 | 22.4 |
| 3C-Net [26] | 37.2 | - | - | 21.7 |
| TSM [53] | 28.3 | 17.0 | 3.5 | - |
| CleanNet [14] | 37.1 | 20.3 | 5.0 | 21.6 |
| Ours | 40.0 | 25.0 | 4.6 | 24.6 |
| US | Ours | 35.2 | 21.4 | 3.1 | 21.1 |
+
+Table 2. Comparisons on the ActivityNet1.2 dataset for action detection. We denote weakly-supervised and unsupervised as WS and US respectively.
+
+| Iteration | Purity↑ | ARI↑ | NMI↑ |
| 1 | 0.645 | 0.445 | 0.726 |
| 2 | 0.740 | 0.569 | 0.788 |
| 3 | 0.780 | 0.612 | 0.811 |
+
+Table 3. Comparing video clustering results of different iterations on THUMOS14 validation set.
+
+periment, suppose in cluster $z$ , $C_A$ is the most frequently occurred action class and appears $N_A$ times, then for any action class $C_B$ whose number of occurrence in cluster $z$ is greater than $\frac{N_A}{2}$ , we also map cluster $z$ to action $C_B$ .
+
+# 4.3. Comparisons with state-of-the-art
+
+Table 1 summarizes the results of the THUMOS14 test set when the IoU threshold varies from 0.3 to 0.7. Specifically, for mAP@0.5, the result achieved by our method in the unsupervised case is comparable to the results obtained by the state-of-the-art weakly-supervised methods [26, 28] and outperform all other recent weakly-supervised methods. In weakly supervised case, we improve the mAP@0.5 from previous state-of-the-art $26.8\%$ to $30.1\%$ .
+
+Table 2 presents the results on the benchmark ActivityNet-1.2. We compare our method with other recent state-of-the-art weakly-supervised action localization methods. Even without video class annotations, our method in unsupervised case achieves average mAP of $21.1\%$ , showing competitive performance comparing to several recent weakly supervised methods. In weakly-supervised case, our method outperforms the state-of-the-art weakly-supervised methods by $2.2\%$ in terms of average mAP.
+
+# 4.4. Effectiveness of iterative optimization
+
+To demonstrate the effectiveness of our iterative optimization method, we evaluate the clustering and action localization performance at each iteration.
+
+Clustering performance w.r.t. iterations: Table 3 compares the clustering performance of different iterations on THUMOS14 validation set. As the number of iterations in
+
+| Iteration | mAP@IoU (%) |
| 0.3 | 0.4 | 0.5 | 0.6 | 0.7 |
| 1 | 21.4 | 17.1 | 13.0 | 8.1 | 4.0 |
| 2 | 33.6 | 27.8 | 20.8 | 13.1 | 7.1 |
| 3 | 39.6 | 32.9 | 25.0 | 16.7 | 8.9 |
+
+
+Figure 4. Visualize affinity matrices used for spectral clustering [36] of iteration 1(left) and iteration 3(right) on THUMOS14 validation set. For clarification, videos are arranged according to their classes.
+
+creases, the performance of clustering is getting better. Figure 4 shows the visualization of affinity matrices used for spectral clustering in section 3.3. It can be seen that with the help of class-agonic temporal attention pooling method, the video representation concentrates more on frames related to video actions and is more discriminative. Therefore we can get better clustering results and reduce the noise of pseudo-labels.
+
+mAP w.r.t. iterations: Action localization results of different iterations on THUMOS14 test set are shown in Table 4. Since the performance of clustering increases with the number of iterations, the error rate of pseudo label decreases in the meantime. As the quality of pseudo-labels improves, our ACL model can learn more precise attention weights, so the performance of temporal action localization can be improved by a non-trivial margin. As demonstrated in Table 4, we achieved an mAP of $13.0\%$ when the IoU threshold is 0.5 at iteration 1. As the number of iterations increase, the mAP gets improved. We finally get an mAP of $25.0\%$ under the unsupervised setting. Figure 5 shows the qualitative action localization results of different iterations. We can observe that as the number of iteration increases, the action localization results are more precise in Figure 5.
+
+# 4.5. Ablation studies
+
+To analyze the contribution of each model component, we perform ablation studies on the THUMOS14 test set in the unsupervised case. The average mAP at the IoU threshold from 0.3 to 0.7 is used to compare different settings. Results in Table 5 show the comparison of all settings. We use the model in which the Local-Global feature aggregation block is replaced with standard 1D temporal convolu
+
+
+Figure 5. Qualitative examples of localization results by our method on THUMOS14 dataset. GT denotes the ground truth segments. Iteration 1,2 and 3 denote localization results of different iterations respectively.
+
+Table 4. Comparing action localization results of different iterations on THUMOS14 test set.
+
+| Methods | Avg(0.3:0.7) |
| Conv1D+Lcls | 21.39 |
| LG+Lcls | 22.16 |
| LG+Lcls + Labs | 23.48 |
| LG+Lcls + Ltrip | 23.05 |
| LG+Lcls + Labs + Ltrip | 24.68 |
+
+Table 5. Ablation studies results on THUMOS14 test set.
+
+tions combined with only classification loss as our baseline. We add Local-Global feature aggregation block to the baseline model and improve the average mAP from $21.39\%$ to $22.16\%$ . Based on the model with Local-Global feature aggregation block, we explore the contributions of each loss function by adding the proposed losses. As we can see in Table 5, the action-background loss improves the performance by $1.32\%$ , and the triplet loss improves the performance by $0.89\%$ . Finally, we use all losses to train the action localization model and achieve an mAP of $24.68\%$ , implying that each loss contributes to the overall performance.
+
+# 5. Conclusions
+
+We address the problem of unsupervised action localization for the first time. A two-step "clustering + localization" framework is developed and validated on two large-scale benchmarks using our proposed evaluation metrics. The major contributions include novel temporal coattention models and several loss function specially designed for this new task. Moreover, our formulation can be easily extended to the weakly-supervised case. Our experiments re-calibrate the state-of-the-art performances under the weakly-supervised setting and achieved surprisingly competitive results under the unsupervised setting. Acknowledgement: This work is supported by Beijing Municipal Commission of Science and Technology (Z181100008918005), Beijing Natural Science Foundation (Z190001), and Tencent AI Lab Rhino-Bird Focused Research Program (JR202021).
+
+# References
+
+[1] Shyamal Buch, Victor Escorcia, Bernard Ghanem, Li Fei-Fei, and Juan Carlos Niebles. End-to-end, single-stream temporal action detection in untrimmed videos. In BMVC, 2017.
+[2] Shyamal Buch, Victor Escorcia, Chuanqi Shen, Bernard Ghanem, and Juan Carlos Niebles. SST: single-stream temporal action proposals. In CVPR, 2017.
+[3] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In CVPR, 2017.
+[4] Yu-Wei Chao, Sudheendra Vijayanarasimhan, Bryan Seybold, David A. Ross, Jia Deng, and Rahul Sukthankar. Rethinking the faster R-CNN architecture for temporal action localization. In CVPR, 2018.
+[5] Victor Escorcia, Fabian Caba Heilbron, Juan Carlos Niebles, and Bernard Ghanem. Daps: Deep action proposals for action understanding. In ECCV, 2016.
+[6] Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The Pascal visual object classes (VOC) challenge. International Journal of Computer Vision, 88(2):303-338, 2010.
+[7] Jiyang Gao, Kan Chen, and Ram Nevatia. CTAP: complementary temporal action proposal generation. In ECCV, 2018.
+[8] Jiyang Gao, Zhenheng Yang, Chen Sun, Kan Chen, and Ram Nevatia. TURNS TAP: temporal unit regression network for temporal action proposals. In ICCV, 2017.
+[9] Ross B. Girshick. Fast R-CNN. In ICCV, 2015.
+[10] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In CVPR, 2015.
+[11] Jingjia Huang, Nannan Li, Tao Zhang, Ge Li, Tiejun Huang, and Wen Gao. SAP: self-adaptive proposal model for temporal action detection based on reinforcement learning. In AAAI, 2018.
+[12] Haroon Idrees, Amir Roshan Zamir, Yu-Gang Jiang, Alex Gorban, Ivan Laptev, Rahul Sukthankar, and Mubarak Shah. The THUMOS challenge on action recognition for videos "in the wild". Computer Vision and Image Understanding, 155:1-23, 2017.
+[13] Tian Lan, Yang Wang, and Greg Mori. Discriminative figure-centric models for joint action localization and recognition. In ICCV, 2011.
+[14] Ziyi Liu Le Wang, Qilin Zhang, Zhanning Gao, Zhenxing Niu, Nanning Zheng, and Gang Hua. Weakly supervised temporal action localization through contrast based evaluation networks. 2019.
+[15] Weihao Li, Omid Hosseini Jafari, and Carsten Rother. Deep object co-segmentation. In ACCV, 2018.
+[16] Tianwei Lin, Xiao Liu, Xin Li, Errui Ding, and Shilei Wen. BMN: boundary-matching network for temporal action proposal generation. In ICCV, 2019.
+[17] Tianwei Lin, Xu Zhao, and Zheng Shou. Single shot temporal action detection. In ACM Multimedia, 2017.
+
+[18] Tianwei Lin, Xu Zhao, Haisheng Su, Chongjing Wang, and Ming Yang. BSN: boundary sensitive network for temporal action proposal generation. In ECCV, 2018.
+[19] Daochang Liu, Tingting Jiang, and Yizhou Wang. Completeness modeling and context separation for weakly supervised temporal action localization. In CVPR, 2019.
+[20] Daochang Liu, Tingting Jiang, and Yizhou Wang. Completeness modeling and context separation for weakly supervised temporal action localization. In CVPR, 2019.
+[21] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott E. Reed, Cheng-Yang Fu, and Alexander C. Berg. SSD: single shot multibox detector. In ECCV, 2016.
+[22] Yuan Liu, Lin Ma, Yifeng Zhang, Wei Liu, and Shih-Fu Chang. Multi-granularity generator for temporal action proposal. In CVPR, 2019.
+[23] Fuchen Long, Ting Yao, Zhaofan Qiu, Xinmei Tian, Jiebo Luo, and Tao Mei. Gaussian temporal awareness networks for action localization. In CVPR, 2019.
+[24] Fucheng Long, Ting Yao, Zhaofan Qiu, Xinmei Tian, Jiebo Luo, and Tao Mei. Gaussian temporal awareness networks for action localization. In CVPR, 2019.
+[25] Oded Maron and Tomás Lozano-Pérez. A framework for multiple-instance learning. In NIPS, 1997.
+[26] Sanath Narayan, Hisham Cholakkal, Fahad Shabaz Khan, and Ling Shao. 3c-net: Category count and center loss for weakly-supervised action localization. 2019.
+[27] Phuc Nguyen, Ting Liu, Gautam Prasad, and Bohyung Han. Weakly supervised action localization by sparse temporal pooling network. In CVPR, 2018.
+[28] Phuc Xuan Nguyen, Deva Ramanan, and Charless C Fowlkes. Weakly-supervised action localization with background modeling. ICCV, 2019.
+[29] Sujoy Paul, Sourya Roy, and Amit K. Roy-Chowdhury. W-TALC: weakly-supervised temporal activity localization and classification. In ECCV, 2018.
+[30] A. J. Piergiovanni and Michael S. Ryoo. Temporal gaussian mixture layer for videos. In ICML, 2019.
+[31] William M Rand. Objective criteria for the evaluation of clustering methods. Journal of the American Statistical Association, 66(336):846-850, 1971.
+[32] Joseph Redmon, Santosh Kumar Divvala, Ross B. Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016.
+[33] Alexander Richard and Juergen Gall. Temporal action detection using a statistical language model. In CVPR, 2016.
+[34] Carsten Rother, Thomas P. Minka, Andrew Blake, and Vladimir Kolmogorov. Cosegmentation of image pairs by histogram matching - incorporating a global constraint into mrfs. In CVPR, 2006.
+[35] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
+[36] Jianbo Shi and Jitendra Malik. Normalized cuts and image segmentation. IEEE Trans. Pattern Anal. Mach. Intell., 22(8):888-905, 2000.
+
+[37] Zheng Shou, Jonathan Chan, Alireza Zareian, Kazuyuki Miyazawa, and Shih-Fu Chang. CDC: convolutional-deconvolutional networks for precise temporal action localization in untrimmed videos. In CVPR, 2017.
+[38] Zheng Shou, Hang Gao, Lei Zhang, Kazuyuki Miyazawa, and Shih-Fu Chang. Autoloc: Weakly-supervised temporal action localization in untrimmed videos. In ECCV, 2018.
+[39] Zheng Shou, Dongang Wang, and Shih-Fu Chang. Temporal action localization in untrimmed videos via multi-stage cnns. In CVPR, 2016.
+[40] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NeurIPS, 2014.
+[41] Krishna Kumar Singh and Yong Jae Lee. Hide-and-seek: Forcing a network to be meticulous for weakly-supervised object and action localization. In ICCV, 2017.
+[42] Khurram Soomro and Mubarak Shah. Unsupervised action discovery and localization in videos. In ICCV, 2017.
+[43] Haisheng Su, Xu Zhao, and Tianwei Lin. Cascaded pyramid mining network for weakly supervised temporal action localization. CoRR, abs/1810.11794, 2018.
+[44] Rui Su, Wanli Ouyang, Luping Zhou, and Dong Xu. Improving action localization by progressive cross-stream cooperation. In CVPR, 2019.
+[45] Ulrike von Luxburg. A tutorial on spectral clustering. Statistics and Computing, 17(4):395-416, 2007.
+[46] Limin Wang, Yuanjun Xiong, Dahua Lin, and Luc Van Gool. Untrimmednets for weakly supervised action recognition and detection. In CVPR, 2017.
+[47] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018.
+[48] Huijuan Xu, Abir Das, and Kate Saenko. R-C3D: region convolutional 3d network for temporal activity detection. In ICCV, 2017.
+[49] Ke Yang, Peng Qiao, Dongsheng Li, Shaohe Lv, and Yong Dou. Exploring temporal preservation networks for precise temporal action localization. In AAAI, 2018.
+[50] Serena Yeung, Olga Russakovsky, Greg Mori, and Li Fei-Fei. End-to-end learning of action detection from frame glimpses in videos. In CVPR, 2016.
+[51] Quanzeng You, Hailin Jin, Zhaowen Wang, Chen Fang, and Jiebo Luo. Image captioning with semantic attention. In CVPR, 2016.
+[52] Stella X. Yu and Jianbo Shi. Multiclass spectral clustering. In ICCV, pages 313-319, 2003.
+[53] Tan Yu, Zhou Ren, Yuncheng Li, Enxu Yan, Ning Xu, and Junsong Yuan. Temporal structure mining for weakly supervised action detection. In ICCV, 2019.
+[54] Jun Yuan, Bingbing Ni, Xiaokang Yang, and Ashraf A. Kassim. Temporal action localization with pyramid of score distribution features. In CVPR, 2016.
+[55] Yuan Yuan, Yueming Lyu, Xi Shen, Ivor W. Tsang, and Dit-Yan Yeung. Marginalized average attentional network for weakly-supervised learning. In ICLR, 2019.
+[56] Runhao Zeng, Wenbing Huang, Mingkui Tan, Yu Rong, Peilin Zhao, Junzhou Huang, and Chuang Gan. Graph convolutional networks for temporal action localization. In ICCV, 2019.
+
+[57] Yue Zhao, Yuanjun Xiong, Limin Wang, Zhirong Wu, Xiaou Tang, and Dahua Lin. Temporal action detection with structured segment networks. In ICCV, 2017.
+[58] Jia-Xing Zhong, Nannan Li, Weijie Kong, Tao Zhang, Thomas H. Li, and Ge Li. Step-by-step erasion, one-by-one collection: A weakly supervised temporal action detector. In ACM Multimedia, 2018.
\ No newline at end of file
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/images.zip b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4c551d40ba3fc78a49ded70a396cf3ea2952c639
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dda1c8b31ffb6cdc63f5d23774e4b22ce07235f7d7bc584fa2ac425bd6b932e3
+size 489898
diff --git a/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/layout.json b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8a41e4a6637b45b64e18afc8910165520f3ca7b4
--- /dev/null
+++ b/learningtemporalcoattentionmodelsforunsupervisedvideoactionlocalization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e11175319406cd14c659a179b1f760b9b4098da46eb57aafa4c69100153905b
+size 444682
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_content_list.json b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..42eb206e73658b755027d5cdc976d25a60b452e5
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3a4ed6762e2dd49c3c16d4cac48ce89c795912c04a00a19bd39d7590437dd18
+size 81737
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_model.json b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..eba68af2bdfc4d7b4ac9d2982181e5926b94fae0
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d40233e4085e3849489c1e94d33a4ec2ddbc0594ccf2049a1a2e64f9fa751d90
+size 96100
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_origin.pdf b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..56612c4220d674c76379f381e5a3315d6cf83362
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/37efc988-55a6-4601-accb-d01946722cda_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2e5480f180ace6c7063e27f39e306d853e3d48adf8703f78cf4da4d6fc8ce49a
+size 3329763
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/full.md b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1dec4f077d79821bf7fcd95ec6ed16993f2446bd
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/full.md
@@ -0,0 +1,382 @@
+# Learning Texture Invariant Representation for Domain Adaptation of Semantic Segmentation
+
+Myeongjin Kim Hyeran Byun Yonsei University {myeongjin.kim,hrbyun}@yonsei.ac.kr
+
+# Abstract
+
+Since annotating pixel-level labels for semantic segmentation is laborious, leveraging synthetic data is an attractive solution. However, due to the domain gap between synthetic domain and real domain, it is challenging for a model trained with synthetic data to generalize to real data. In this paper, considering the fundamental difference between the two domains as the texture, we propose a method to adapt to the target domain's texture. First, we diversity the texture of synthetic images using a style transfer algorithm. The various textures of generated images prevent a segmentation model from overfitting to one specific (synthetic) texture. Then, we fine-tune the model with self-training to get direct supervision of the target texture. Our results achieve state-of-the-art performance and we analyze the properties of the model trained on the stylized dataset with extensive experiments.
+
+# 1. Introduction
+
+Until now, many studies have dealt with semantic segmentation. For supervised semantic segmentation, a large volume of labeled data is required for training. However, the manual annotation for pixel-wise ground truth labels is extremely laborious. For example, it takes $90\mathrm{min}$ per image to make ground truth label for the Cityscape [5] dataset.
+
+To reduce the cost of annotation, datasets such as GTA5 [20] and SYNTHIA [21] are proposed. Since these datasets are generated by computer graphics, the images and pixel-level annotations are automatically generated. However, due to the domain gap between the synthetic domain and the real domain, a model trained with the synthetic data is hard to generalize to the real data.
+
+Domain adaptation addresses the above issue by reducing the domain gap. One approach is pixel-level adaptation. The pixel-level adaptation uses image translation algorithms like CycleGAN [29] to reduce the gap in visual appearance between two domains. Since the synthetic im
+
+
+Figure 1: Process of learning texture-invariant representation. We consider both the stylized image and the translated image as the source image. The red line indicates the flow of the source image and the blue line indicates the flow of the target image. By segmentation loss of the stylized source data, the model learns texture-invariant representation. By adversarial loss, the model reduces the distribution gap in feature space.
+
+age is translated into the style of the real domain, a model can learn representation for the real domain more easily.
+
+Although CycleGAN reduces the visual gap between two domains to some extent, overcoming the fundamental difference, the texture, is still challenging. In Figure 2, the second column shows translated results by CycleGAN. Although the translated images get the Cityscapes' gray color tone, CycleGAN cannot completely translate the synthetic texture into the real texture. Therefore, the possibility of a model to overfit to the synthetic texture still exists.
+
+To overcome this limitation, we propose a method to adapt to the target domain's texture. First, we generate a texture-diversified source dataset by using a style transfer algorithm. Each source image loses the synthetic texture and gets a random texture. Because of the increased variation of textures, a model trained on the texture-diversified
+
+
+Figure 2: Texture comparison. Original GTA5 [20] images (first column), generated images by CycleGAN [29] (second column) and by Style-swap [4] (third column).
+
+
+
+
+
+dataset is guided to learn texture-invariant representation. Then, we fine-tune the model using self-training to get direct supervision of the target texture.
+
+Our method achieves state-of-the-art performance on the GTA5 to Cityscapes benchmark. With extensive experiments, we analyze the properties of the model trained on the stylized dataset and compare the differences between ours and CycleGAN-based methods.
+
+Our contributions are as follows:
+
+1. We design a method to adapt to the target domain's texture for domain adaptation of semantic segmentation, combining pixel-level method and self-training.
+2. We achieve state-of-the-art performance on the GTA5 to Cityscapes benchmark.
+3. With extensive experiments, we analyze the properties of the model trained on the stylized dataset.
+4. We compare our style transfer-based approach and previous CycleGAN-based methods in terms of reducing the domain gap between the synthetic domain and the real domain.
+
+# 2. Related Work
+
+# 2.1. Domain adaptation of semantic segmentation
+
+Domain adaptation transfers knowledge between different domains. Assume two datasets that have similar but different distributions. Let the one which has a larger volume and is more easy to collect as the source domain and the other as the target domain. The goal of domain adaptation is transferring knowledge learned from the source domain to the target domain.
+
+Among some settings of domain adaptation, the unsupervised setting is the most popular, which has access to input data and ground truth labels for the source domain but only input data for the target domain. The goal of unsupervised domain adaptation is to use the fully-labeled source domain properly to improve performance on the unlabeled target domain. Since annotating semantic label is one of the
+
+most laborious processes, domain adaptation of semantic segmentation gets much attention recently.
+
+Pixel-level adaptation. There exists a visual gap between synthetic and real images, such as texture and lighting. Pixel-level adaptation translates the synthetic source image into the target style using image translation algorithms like CycleGAN [29]. Due to the reduced visual gap, a model more easily encodes the representation for the target domain.
+
+Self-training. Recently, some works adopt self-training (ST) for domain adaptation of semantic segmentation [30, 16]. Generally, ST is applied when labeled training data is scarce. In the unsupervised domain adaptation, because labels of the target domain are absent, it is very attractive to apply ST. [16] suggests a simple method for self-training. At ST stage, [16] generates pseudo labels based on the previous model's confident prediction and fine-tune the model with pseudo labels.
+
+[16] uses both pixel-level adaptation and self-training. In ablation study, the models trained with ST method outperform other models only using the pixel-level method with a large margin. Considering the fundamental difference between the two domains as the texture, powerful performance of ST, which gets direct supervision of the target texture, means that previous methods using pixel-level adaptation are not able to encode the target texture sufficiently.
+
+Based on this observation, we propose a method that is optimized for encoding the target domain's texture.
+
+# 2.2. Style transfer
+
+Starting from texture synthesis [7] and going through [8], many studies have been conducted about style transfer. Based on the observation that style(texture) and content can be separated, modeling feature statistics makes possible to synthesize image with one image's content and another image's texture.
+
+Our purpose is, using various textures as a regularizer preventing a model from overfitting to one specific texture, to make the segmentation model learn texture-invariant representation.
+
+# 2.3. Texture and shape
+
+According to recent research [9], human recognition is based on shape but the ImageNet [6] pre-trained CNN's criterion is based on texture. To overcome texture-dependency, [9] generates Stylized ImageNet (SIN) using the AdaIN [14] style transfer algorithm. Stylized ImageNet lose natural texture and get the various random texture. Since a model trained on SIN cannot predict results based on the local texture, it is enforced to consider the overall structure of the input. [9] demonstrates with experiments that CNN trained on SIN is more shape-dependent like humans and
+
+
+(a) Style
+
+
+(b) Content
+
+
+(c) AdaIN
+
+
+(d) PhotoWCT
+Figure 3: Results of stylization.
+
+
+(e) Style-Swap
+
+the shape-dependent model is better at classification and detection tasks.
+
+Inspired by this work, we apply this method to domain adaptation of semantic segmentation task, where the texture is fundamental differences between synthetic and real domains.
+
+# 3. Method
+
+In this section, we present a process for generating texture-diversified datasets and a method to adapt to the target texture. We first diversity the texture of the original source dataset with a style transfer algorithm Style-swap [4] and translate the original source dataset with an image translation algorithm CycleGAN [29]. Then, our model goes through two training stages.
+
+Stage 1: We train a segmentation model with the texture-diversified dataset to learn texture-invariant representation.
+
+Stage 2: Based on the texture-invariant representation, we fine-tune the model to the target domain's texture.
+
+# 3.1. Stylized GTA5/SYNTHIA
+
+Prior works [13, 16] use an image translation method CycleGAN [29] to reduce the visual gap between the synthetic and real domains. Although the image translation algorithm makes the source image's overall color tone similar to the real image, it cannot completely translate the synthetic texture into the real one.
+
+To overcome this limitation, we take a more fundamental approach which removes the synthetic texture drastically. Inspired by [9], we generate Stylized GTA5 and Stylized SYNTHIA. Stylized ImageNet [9] is generated by fast AdaIN [14] style transfer algorithm. Although AdaIN is efficient in inference, it distorts the structure of content image considerably with some wave patterns. Unlike the classification task, semantic segmentation task requires accurate pixel-level annotations. Thus, we cannot use AdaIN. The photo-realistic style transfer algorithm [15] is another option, which preserves the precise structure of the original image using a smoothing step after the stylization step. However, due to the smoothing process which is based on the original content image, final results preserve original synthetic texture. Since our purpose is to remove the synthetic texture using a style transfer algorithm, it is not appro
+
+priate to apply the photo-realistic algorithm. Our requirements are three-fold. First, enough stylization effect to remove the synthetic texture, while not distorting the structure of the original image too much. Second, due to the large image resolution and the large volume of the synthetic dataset, the stylization process should be time-efficient. Third, to generate diverse stylized results, it should be able to transfer various styles. Considering above conditions, we choose Style-swap [4]. We present stylization results from different methods in Figure 3.
+
+For a style dataset, we used the Painter by Numbers dataset which consists of artistic images. Considering the volume of the GTA5 and SYNTHIA dataset, we use the first split, which contains 11,026 images. The stylized datasets have the same number of images with the original datasets, i.e. one-to-one mapping.
+
+As shown in Figure 4, the stylized images drastically lose the synthetic texture and get various random textures. Since each texture is from a different style image, this variety of texture leads a model to encode texture-invariant representation. In other words, the model can learn shape-dependent representation.
+
+# 3.2. Stage 1
+
+The goal of the first stage is to learn texture-invariant representation using the texture-diversified dataset. We train the segmentation model with both the stylized images by Style-swap [4] and the translated images by CycleGAN [29]. At each iteration, the stylized or translated inputs are alternately forwarded due to the limitation of memory. While learning texture-invariant representation with the stylized images, the translated images guide the model toward the target style.
+
+Along with the texture regularization, we additionally use the output-level adversarial training [23] to further align feature space between the two different domains. The process of Stage 1 is shown in Figure 1.
+
+# 3.3. Stage 2
+
+The goal of the second stage is, based on learned texture-invariant representation, to fine-tune the segmentation network to the target domain's texture. For this purpose, we adopt a self-training method. Following the process of [16], we generate pseudo labels with the model trained on Stage
+
+
+
+
+
+
+
+
+Figure 4: Examples of original images and stylized images.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1. Among predictions on the target training images, we set predictions with higher confidence than a threshold(0.9) as pseudo-labels. Then we fine-tune the model with the generated pseudo-labels and translated source images. Now the model is directly supervised by the target domain's texture, the model can learn the representation optimized for the target domain. We apply this process iteratively.
+
+# 3.4. Training objective
+
+Segmentation model training. Since the ground truth label is only available in the source domain, the segmentation loss is defined as:
+
+$$
+L _ {s e g} \left(I _ {s}\right) = - \sum_ {h, w} \sum_ {c = 1} ^ {C} y _ {s} ^ {h, w, c} \log P _ {s} ^ {(h, w, c)} \tag {1}
+$$
+
+And when the target image is given, we calculate the adversarial loss using discriminator.
+
+$$
+L _ {a d v} \left(I _ {t}\right) = - \sum_ {h, w} \log D \left(P _ {t} ^ {(h, w, c)}\right) \tag {2}
+$$
+
+where $I_{s}$ and $I_{t}$ are the input images from the source domain and the target domain. $P_{s}^{(h,w,c)}$ and $P_{t}^{(h,w,c)}$ are the final feature of the source and target image. $y_{s}^{h,w,c}$ is the source domain's ground truth pixel label. $C$ is the number of classes and $D$ is a fully convolutional discriminator.
+
+Therefore, the total loss function for the segmentation network is defined as:
+
+$$
+L \left(I _ {s}, I _ {t}\right) = L _ {\text {s e g}} \left(I _ {s}\right) + \lambda_ {\text {a d v}} L _ {\text {a d v}} \left(I _ {t}\right) \tag {3}
+$$
+
+Discriminator Training. The discriminator takes source and target features and classifies whether it is from the source or target domain.
+
+$$
+\begin{array}{l} L _ {D} (P) = - \sum_ {h, w} ((1 - z) \log D \left(P _ {s} ^ {(h, w, c)}\right) \tag {4} \\ + z \log D \left(P _ {t} ^ {(h, w, c)}\right)) \\ \end{array}
+$$
+
+where $z = 0$ if the feature is from source domain and $z = 1$ if the feature is from target domain.
+
+Self-training. In stage 2, to get direct supervision of the target domain's texture, we calculate the segmentation loss for generated pseudo-labels in target images.
+
+$$
+L _ {S T} \left(I _ {t}\right) = - \sum_ {h, w} \mathbb {1} _ {\text {p s e u d o}} \sum_ {c = 1} ^ {C} \hat {y} _ {t} ^ {h, w, c} \log P _ {t} ^ {(h, w, c)} \tag {5}
+$$
+
+where $\mathbb{1}_{\text{pseudo}}$ indicates whether each pixel of the target training set is pseudo-label or not.
+
+# 4. Experiments
+
+Dataset. GTA5 [20] is a dataset which contains 24,966 synthetic images from the video game with $1914 \times 1052$ resolution. The semantic labels are compatible with the Cityscapes dataset in 19 classes.
+
+For SYNTHIA [21], we use the SYNTHIA-RAND-CITYSCAPES partition with 9,400 images of $1280 \times 760$ resolution. We validate on 13 common classes with the Cityscapes dataset.
+
+Cityscapes [5] is a dataset which contains 5,000 densely annotated images with $2048 \times 1024$ resolution. We use 2,975 training images and 500 validation images.
+
+Network architecture. We use the DeepLab-v2 [2] model with ResNet-101 [11] and VGG-16 [22] which are pretrained on ImageNet [6]. For the discriminator, we adopt similar architecture to [19]. The network contains 5 convolution layers with $4 \times 4$ kernel size, channel numbers are $\{64,128,256,512,1\}$ and stride of 2.
+
+Training detail. We implement our experiment using the Pytorch library on a single GTX 1080 Ti. To optimize the segmentation model, we use the SGD method. The momentum is set as 0.9. The initial learning rate is $1.0 \times 10^{-4}$ for Stage 1. Due to the variation of the stylized dataset, a high learning rate makes training unstable. Therefore, we set smaller value than prior works which adopt the same architecture [23, 18, 25, 1, 16]. The same learning rate is used for fine-tuning in Stage 2. For the learning rate schedule, we adopt the polynomial procedure mentioned in [2]. For optimizing discriminator, we use Adam for optimizing
+
+Table 1: Results on GTA5 to Cityscapes.
+
+| GTA5 → Cityscapes |
| Base Model | Method | road | side. | buil. | wall | fence | pole | t-light | t-sign | vege. | terr. | sky | pers. | rider | car | truck | bus | train | motor | bike | mIoU |
| ResNet101 | AdaptSegNet[23] | 86.5 | 36.0 | 79.9 | 23.4 | 23.3 | 23.9 | 35.2 | 14.8 | 83.4 | 33.3 | 75.6 | 58.5 | 27.6 | 73.7 | 32.5 | 35.4 | 3.9 | 30.1 | 28.1 | 42.4 |
| CLAN[18] | 87.0 | 27.1 | 79.6 | 27.3 | 23.3 | 28.3 | 35.5 | 24.2 | 83.6 | 27.4 | 74.2 | 58.6 | 28.0 | 76.2 | 33.1 | 36.7 | 6.7 | 31.9 | 31.4 | 43.2 |
| ADVENT[25] | 87.6 | 21.4 | 82.0 | 34.8 | 26.2 | 28.5 | 35.6 | 23.0 | 84.5 | 35.1 | 76.2 | 58.6 | 30.7 | 84.8 | 34.2 | 43.4 | 0.4 | 28.4 | 35.2 | 44.8 |
| BDL[16] | 91.0 | 44.7 | 84.2 | 34.6 | 27.6 | 30.2 | 36.0 | 36.0 | 85.0 | 43.6 | 83.0 | 58.6 | 31.6 | 83.3 | 35.3 | 49.7 | 3.3 | 28.8 | 35.6 | 48.5 |
| SIBAN[17] | 88.5 | 35.4 | 79.5 | 26.3 | 24.3 | 28.5 | 32.5 | 18.3 | 81.2 | 40.0 | 76.5 | 58.1 | 25.8 | 82.6 | 30.3 | 34.4 | 3.4 | 21.6 | 21.5 | 42.6 |
| AdaptPatch[24] | 92.3 | 51.9 | 82.1 | 29.2 | 25.1 | 24.5 | 33.8 | 33.0 | 82.4 | 32.8 | 82.2 | 58.6 | 27.2 | 84.3 | 33.4 | 46.3 | 2.2 | 29.5 | 32.3 | 46.5 |
| MaxSquare[3] | 89.4 | 43.0 | 82.1 | 30.5 | 21.3 | 30.3 | 34.7 | 24.0 | 85.3 | 39.4 | 78.2 | 63.0 | 22.9 | 84.6 | 36.4 | 43.0 | 5.5 | 34.7 | 33.5 | 46.4 |
| Ours | 92.9 | 55.0 | 85.3 | 34.2 | 31.1 | 34.9 | 40.7 | 34.0 | 85.2 | 40.1 | 87.1 | 61.0 | 31.1 | 82.5 | 32.3 | 42.9 | 0.3 | 36.4 | 46.1 | 50.2 |
| VGG16 | AdaptSegNet[23] | 87.3 | 29.8 | 78.6 | 21.1 | 18.2 | 22.5 | 21.5 | 11.0 | 79.7 | 29.6 | 71.3 | 46.8 | 6.5 | 80.1 | 23.0 | 26.9 | 0.0 | 10.6 | 0.3 | 35.0 |
| CLAN[18] | 88.0 | 30.6 | 79.2 | 23.4 | 20.5 | 26.1 | 23.0 | 14.8 | 81.6 | 34.5 | 72.0 | 45.8 | 7.9 | 80.5 | 26.6 | 29.9 | 0.0 | 10.7 | 0.0 | 36.6 |
| ADVENT[25] | 86.8 | 28.5 | 78.1 | 27.6 | 24.2 | 20.7 | 19.3 | 8.9 | 78.8 | 29.3 | 69.0 | 47.9 | 5.9 | 79.8 | 25.9 | 34.1 | 0.0 | 11.3 | 0.3 | 35.6 |
| BDL[16] | 89.2 | 40.9 | 81.2 | 29.1 | 19.2 | 14.2 | 29.0 | 19.6 | 83.7 | 35.9 | 80.7 | 54.7 | 23.3 | 82.7 | 25.8 | 28.0 | 2.3 | 25.7 | 19.9 | 41.3 |
| SIBAN[17] | 83.4 | 13.0 | 77.8 | 20.4 | 17.5 | 24.6 | 22.8 | 9.6 | 81.3 | 29.6 | 77.3 | 42.7 | 10.9 | 76.0 | 22.8 | 17.9 | 5.7 | 14.2 | 2.0 | 34.2 |
| AdaptPatch[24] | 87.3 | 35.7 | 79.5 | 32.0 | 14.5 | 21.5 | 24.8 | 13.7 | 80.4 | 32.0 | 70.5 | 50.5 | 16.9 | 81.0 | 20.8 | 28.1 | 4.1 | 15.5 | 4.1 | 37.5 |
| DRPC[28] | 84.6 | 31.5 | 76.3 | 25.4 | 17.2 | 28.2 | 21.5 | 13.7 | 80.7 | 26.8 | 74.9 | 47.5 | 15.8 | 77.1 | 22.2 | 22.7 | 1.7 | 8.9 | 9.7 | 36.1 |
| Ours | 92.5 | 54.5 | 83.9 | 34.5 | 25.5 | 31.0 | 30.4 | 18.0 | 84.1 | 39.6 | 83.9 | 53.6 | 19.3 | 81.7 | 21.1 | 13.6 | 17.7 | 12.3 | 6.5 | 42.3 |
+
+Table 2: Results on SYNTHIA to Cityscapes.
+
+| SYNTHIA → Cityscapes | |
| Base Model | Method | road | side. | buil. | t-light | t-sign | vege. | sky | pers. | rider | car | bus | motor | bike | mIoU |
| ResNet101 | AdaptSegNet[23] | 84.3 | 42.7 | 77.5 | 4.7 | 7.0 | 77.9 | 82.5 | 54.3 | 21.0 | 72.3 | 32.2 | 18.9 | 32.3 | 46.7 |
| CLAN[18] | 81.3 | 37.0 | 80.1 | 16.1 | 13.7 | 78.2 | 81.5 | 53.4 | 21.2 | 73.0 | 32.9 | 22.6 | 30.7 | 47.8 |
| ADVENT[25] | 85.6 | 42.2 | 79.7 | 5.4 | 8.1 | 80.4 | 84.1 | 57.9 | 23.8 | 73.3 | 36.4 | 14.2 | 33.0 | 48.0 |
| BDL[16] | 86.0 | 46.7 | 80.3 | 14.1 | 11.6 | 79.2 | 81.3 | 54.1 | 27.9 | 73.7 | 42.2 | 25.7 | 45.3 | 51.4 |
| SIBAN[17] | 82.5 | 24.0 | 79.4 | 16.5 | 12.7 | 79.2 | 82.8 | 58.3 | 18.0 | 79.3 | 25.3 | 17.6 | 25.9 | 46.3 |
| AdaptPatch[24] | 82.4 | 38.0 | 78.6 | 3.9 | 11.1 | 75.5 | 84.6 | 53.5 | 21.6 | 71.4 | 32.6 | 19.3 | 31.7 | 46.5 |
| MaxSquare[3] | 82.9 | 40.7 | 80. | 12.8 | 18.2 | 82.5 | 82.2 | 53.1 | 18.0 | 79.0 | 31.4 | 10.4 | 35.6 | 48.2 |
| Ours | 92.6 | 53.2 | 79.2 | 1.6 | 7.5 | 78.6 | 84.4 | 52.6 | 20.0 | 82.1 | 34.8 | 14.6 | 39.4 | 49.3 |
| VGG16 | AdaptSegNet[23] | 78.9 | 29.2 | 75.5 | 0.1 | 4.8 | 72.6 | 76.7 | 43.4 | 8.8 | 71.1 | 16.0 | 3.6 | 8.4 | 37.6 |
| CLAN[18] | 80.4 | 30.7 | 74.7 | 1.4 | 8.0 | 77.1 | 79.0 | 46.5 | 8.9 | 73.8 | 18.2 | 2.2 | 9.9 | 39.3 |
| ADVENT[25] | 67.9 | 29.4 | 71.9 | 0.6 | 2.6 | 74.9 | 74.9 | 35.4 | 9.6 | 67.8 | 21.4 | 4.1 | 15.5 | 36.6 |
| SIBAN[17] | 70.1 | 25.7 | 80.9 | 3.8 | 7.2 | 72.3 | 80.5 | 43.3 | 5.0 | 73.3 | 16.0 | 1.7 | 3.6 | 37.2 |
| AdaptPatch[24] | 72.6 | 29.5 | 77.2 | 1.4 | 7.9 | 73.3 | 79.0 | 45.7 | 14.5 | 69.4 | 19.6 | 7.4 | 16.5 | 39.6 |
| DRPC[28] | 77.5 | 30.7 | 78.6 | 10.6 | 16.1 | 75.2 | 76.5 | 44.1 | 15.8 | 69.9 | 14.7 | 8.6 | 17.6 | 41.2 |
| Ours | 89.8 | 48.6 | 78.9 | 0.0 | 4.7 | 80.6 | 81.7 | 36.2 | 13.0 | 74.4 | 22.5 | 6.5 | 32.8 | 43.8 |
+
+method with the learning rate $1.0 \times 10^{-4}$ and the momentum 0.9 and 0.99. We set $\lambda_{adv}$ as 0.001. Inputs are resized to $1024 \times 512$ .
+
+Comparison with state-of-the-art models. As shown in Table 1, our method outperforms all previous state-of-the-art methods on GTA5-to-Cityscapes. BDL [16] iterates the training process six times and outperforms other models with a large margin. Our model surpasses the performance of BDL with only two iterations of the segmentation training as shown in Table 5. These results show that our method (first learn texture-invariant representation, then fine-tune toward target texture) is more effective than a simple self-training method.
+
+For the SYNTHIA to Cityscapes, we compare methods that evaluate performance on 13 classes in Table 2. Our method shows outstanding performance in classes like road and sidewalk, which occupy large area in input im
+
+ages. Since large-area classes will be more affected by texture, our texture-based method outperforms others in these classes.
+
+Results also report our performance on small classes like $t$ -light, $t$ -sign and person are lower than other methods. Although the texture is a fundamental difference between the synthetic and real domains, it is not the only factor causing the domain gap. The layout gap is also an important factor that we didn't handle in this paper. This layout gap brings discrepancy of shape distribution across domains. In SYNTHIA, $t$ -light, $t$ -sign, and person are depicted much smaller compared to GTA5 and Cityscapes. Since the shape is more decisive factors than texture for small-area classes, our shape-dependent representation, which is fitted to SYNTHIA's shape distribution, is hard to be transferred to Cityscapes' shape distribution.
+
+Also as quantitatively shown in [26], the domain gap be
+
+tween SYNTHIA and Cityscapes is much larger than the domain gap between GTA5 and Cityscapes, especially for $t$ -light and $t$ -sign. Other methods use an additional technique like class-ratio prior [25] to reduce the layout gap.
+
+Comparison of class-wise performance. We provide the basis for the above claim through a class-wise ablation study. In Table 3, IoUs are from large (texture-sensitive) and small (texture-insensitive) classes in the Stage 1. Models trained on Stylized dataset outperform models trained on Translated and Original dataset in large-area classes like road and sidewalk. Among other large-area classes, since road and sidewalk have similar layout distribution, texture is an especially important factor for these classes.
+
+On the other hand, Original outperforms other methods in $t$ -light and $t$ -sign. [26] shows, when using the synthetic and real data together, performance increases significantly in $t$ -light and $t$ -sign compared to other classes. This means texture is not a decisive factor for these classes and the sharp original image is more helpful for improving performance in the real domain.
+
+Table 3: Ablation study on large & small classes.
+
+| SYNTHIA → Cityscapes |
| Base Model | Source Type | road | side. | t-light | t-sign |
| ResNet101 | Stylized | 87.7 | 44.1 | 1.0 | 5.8 |
| Translated | 84.6 | 40.6 | 1.3 | 5.0 |
| Original [23] | 79.2 | 37.2 | 9.9 | 10.5 |
| VGG16 | Stylized | 86.1 | 36.4 | 0.3 | 1.7 |
| Translated | 75.6 | 31.9 | 0 | 3.6 |
| Original [23] | 78.9 | 29.2 | 0.1 | 4.8 |
+
+# 5. Discussion
+
+# 5.1. Comparison with CycleGAN-based methods
+
+In this section, we compare the differences between ours and CycleGAN-based methods.
+
+First, CyCADA [13] uses CycleGAN to reduce the visual gap between the synthetic and real domains. However, while CycleGAN's generator is trained to generate undistinguishable images from the target domain, CycleGAN is prone to generate inappropriate images.
+
+In Figure 5, for GTA5 to Cityscapes (first row), CycleGAN generates vegetation-like artifact on the sky to match Cityscapes' distribution. For SYNTHIA to Cityscapes (second row), CycleGAN blurs out person to match Cityscapes' color distribution. Despite CycleGAN discriminator's PatchGAN structure, these patterns are easily observed. On the other hand, because Style-swap transfers style based on local patch, Style-swap doesn't show such patterns.
+
+Second, similar to our method, DRPC [28] uses CycleGAN to randomize source images. In Figure 6, we show
+
+
+
+
+Figure 5: Inappropriate generation of CycleGAN. Original images (first column), generated images by CycleGAN (second column) and Style-swap (third column).
+
+
+
+
+
+
+
+
+
+generated images using ImageNet classes used in [28] as auxiliary domains. Figure 7 shows cropped images from Figure 6.
+
+In Figure 7, CycleGAN match auxiliary domain's color distribution while preserving the original image's synthetic texture. On the other hand, Style-swap diversifies texture. This is the most differentiated point of our method compared to DRPC. Since the main difference between the synthetic and real domains is not color but the texture, our texture-based method is more suitable than DRPC for randomization in synthetic to real tasks.
+
+Also, our method is computationally more efficient than DRPC. Since training CycleGAN is a very costly process, DRPC only uses 15 auxiliary domains. On the other hand, since Style-swap does not require additional training for each style, it can handle many styles more easily. Hence our stylized datasets consist of 11,026 styles.
+
+Additionally, DRPC used Pyramid Consistency across Domain (PCD) loss to learn style-invariant feature. Because of this loss, a computation that is linearly proportional to the number of domains is required to simultaneously forward images across domains. Since DRPC used 16 domains, it requires at least 16 times more memory and computing power.
+
+Though DRPC used 16 domains, it might be required to consider more domains for more style-invariant representation, which demands impractical computation especially when the input's resolution is large like GTA5 (1914x1052) and SYNTHIA (1280x760). On the other hand, our method requires a fixed amount of computation regardless of the number of styles.
+
+# 5.2. Ablation study
+
+We conduct an ablation study on Stage 1 in Table 4. We divide the table into two sections according to the usage of adversarial loss.
+
+In first section, Original source only means training the segmentation network only with the original GTA5 images. Stylized source only and Translated source only use gener
+
+
+Figure 6: Stylization comparison with DRPC.
+
+
+Figure 7: Texture comparison with DRPC. Cropped images from corresponding images from Figure 6.
+
+ated dataset by Style-swap [4] and CycleGAN [29] respectively. Results show model trained on only stylized source dataset outperforms other pixel-level [27, 10] method.
+
+The second section shows the results with the output-level adversarial training [23]. Overall performances are improved compared to the first section. Results show using both types (Stylized source and Translated source) by forwarding images alternately is better than only using Stylized source images. This is because, while learning texture-invariant representation through the stylized images, the translated images guide the model to the target style. Following the results, we choose to use both Stylized source Translated source images with the output-level adversarial loss for the training segmentation network in Stage 1.
+
+We also conduct the ablation study for Stage 2 in Table 5. The results show in the third iteration of Stage 2 the segmentation model converged. Therefore we take three iterations for all results in Table 1, 2.
+
+Table 4: Ablation study on Stage 1.
+
+| GTA5 → Cityscapes |
| method | mIoU |
| Original source only | 36.6 |
| DCAN [ ] | 38.5 |
| Translated source only | 41.0 |
| DLOW [10] | 42.3 |
| Stylized source only | 42.5 |
| Original source + Adv loss [ ] | 41.4 |
| Translated source + Adv loss [10] | 42.7 |
| Stylized source + Adv loss | 43.2 |
| Stylized/translated source + Adv loss | 44.6 |
+
+# 5.3. Robustness test
+
+To verify the texture-invariance of a model trained on the stylized dataset, we test the model on perturbated validation
+
+Table 5: Ablation study on Stage 2. In Stage 2-X, X means the number of iteration of self training.
+
+| GTA5 → Cityscapes |
| method | mIoU |
| Stage 1 | 44.6 |
| Stage 2-1 | 48.6 |
| Stage 2-2 | 50.2 |
| Stage 2-3 | 50.2 |
+
+sets distorted by various noises. If the model is texture-invariant, it will be more robust to noises than other texture-dependent models. We generate noisy Cityscapes validation sets with noises that do not distort the shape of the original image's object. Following the method of [12], we add Gaussian, Impulse, Shot and Speckle noise to the validation set.
+
+Results in Table 6 and Figure 8 show that our model is much more robust to various noises than AdaptSegNet [23] which is trained on original synthetic images.
+
+Table 6: Results on original and noisy validation set.
+
+| Method | AdaptSegNet[23] | Stylized source only |
| Original | 42.4 | 42.5 |
| Gaussian | 22.2 | 35.1 |
| Impulse | 20.9 | 32.6 |
| Shot | 24.9 | 38.2 |
| Speckle | 32.5 | 41.1 |
+
+
+
+
+
+
+(a) Original image
+(c) AdaptSegNet
+Figure 8: Results on the validation image with Gaussian noise.
+
+
+(b) Image with Gaussian noise
+(d) Ours
+
+
+(e) Ground Truth
+
+# 5.4. Qualitative results
+
+To qualitatively demonstrate the texture-invariance of our model, we present segmentation results on images with various texture from the stylized source dataset in Figure 9. Results show our model is robust to texture variation.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 9: Results on images with various texture. Images from the Stylized GTA5 (left column) and segmentation results (right column).
+
+
+
+# 6. Conclusion
+
+In this paper, we present a method to adapt to the target texture. Using a style transfer algorithm, we generate the Stylized GTA5/SYNTHIA. The various texture of the stylized datasets works as a regularizer to make the segmentation model learn texture-invariant representation. We show the texture-invariance of our model qualitatively on images with various texture and quantitatively on noisy validation sets. Based on the texture-invariant representation, we use self-training to get direct supervision of the target texture. Experimental results show the effectiveness of our approach, which achieves new state-of-the-art performance in the GTA5 to Cityscapes benchmark. Besides, we analyze the influence of texture across different classes. Also, we compare our style transfer-based method and CycleGAN-based methods in terms of reducing the texture gap between the synthetic and real domains.
+
+# 7. Acknowledgement
+
+This work was supported by the National Research Foundation of Korea grant funded by Korean government (No. NRF-2019R1A2C2003760).
+
+# References
+
+[1] Wei-Lun Chang, Hui-Po Wang, Wen-Hsiao Peng, and Wei-Chen Chiu. All about structure: Adapting structural information across domains for boosting semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1900-1909, 2019. 4
+[2] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2017. 4
+[3] Minghao Chen, Hongyang Xue, and Deng Cai. Domain adaptation for semantic segmentation with maximum squares loss. arXiv preprint arXiv:1909.13589, 2019. 5
+[4] Tian Qi Chen and Mark Schmidt. Fast patch-based style transfer of arbitrary style. arXiv preprint arXiv:1612.04337, 2016. 2, 3, 7
+[5] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213-3223, 2016. 1, 4
+[6] 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. 2, 4
+[7] Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in neural information processing systems, pages 262-270, 2015. 2
+[8] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2414-2423, 2016. 2
+[9] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018. 2, 3
+[10] Rui Gong, Wen Li, Yuhua Chen, and Luc Van Gool. Dlow: Domain flow for adaptation and generalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2477-2486, 2019. 7
+[11] 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. 4
+[12] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 8
+[13] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. arXiv preprint arXiv:1711.03213, 2017. 3, 6
+[14] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceed-
+
+ings of the IEEE International Conference on Computer Vision, pages 1501-1510, 2017. 2, 3
+[15] Yijun Li, Ming-Yu Liu, Xueting Li, Ming-Hsuan Yang, and Jan Kautz. A closed-form solution to photorealistic image stylization. In Proceedings of the European Conference on Computer Vision (ECCV), pages 453-468, 2018. 3
+[16] Yunsheng Li, Lu Yuan, and Nuno Vasconcelos. Bidirectional learning for domain adaptation of semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6936-6945, 2019. 2, 3, 4, 5, 7
+[17] Yawei Luo, Ping Liu, Tao Guan, Junqing Yu, and Yi Yang. Significance-aware information bottleneck for domain adaptive semantic segmentation. arXiv preprint arXiv:1904.00876, 2019. 5
+[18] Yawei Luo, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Taking a closer look at domain shift: Category-level adversaries for semantics consistent domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2507-2516, 2019. 4, 5
+[19] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. 4
+[20] Stephan R Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In European conference on computer vision, pages 102-118. Springer, 2016. 1, 2, 4
+[21] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio M Lopez. The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3234-3243, 2016. 1, 4
+[22] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 4
+[23] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kiyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7472-7481, 2018. 3, 4, 5, 6, 7, 8
+[24] Yi-Hsuan Tsai, Kihyuk Sohn, Samuel Schulter, and Manmohan Chandraker. Domain adaptation for structured output via discriminative representations. arXiv preprint arXiv:1901.05427, 2019. 5
+[25] Tuan-Hung Vu, Himalaya Jain, Maxime Bucher, Matthieu Cord, and Patrick Pérez. Advent: Adversarial entropy minimization for domain adaptation in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2517-2526, 2019. 4, 5, 6
+[26] Magnus Wrenninger and Jonas Unger. Synscapes: A photorealistic synthetic dataset for street scene parsing. arXiv preprint arXiv:1810.08705, 2018. 5, 6
+[27] Zuxuan Wu, Xintong Han, Yen-Liang Lin, Mustafa Gokhan Uzunbas, Tom Goldstein, Ser Nam Lim, and Larry S
+
+Davis. Dcan: Dual channel-wise alignment networks for unsupervised scene adaptation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 518-534, 2018. 7
+[28] Xiangyu Yue, Yang Zhang, Sicheng Zhao, Alberto Sangiovanni-Vincentelli, Kurt Keutzer, and Boqing Gong. Domain randomization and pyramid consistency: Simulation-to-real generalization without accessing target domain data. arXiv preprint arXiv:1909.00889, 2019. 5, 6
+[29] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223-2232, 2017. 1, 2, 3, 7
+[30] 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. 2
\ No newline at end of file
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/images.zip b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..dc9e282db250f0365e112fde823e450d01d5fce3
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:727aa96c75e1b6eded8215108a5e96ad9a3f1c8e82d6f4e1dcf4450486a1edc8
+size 922644
diff --git a/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/layout.json b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ef15bbeace4f7e84b5ec52eb7c37fb8eed08704
--- /dev/null
+++ b/learningtextureinvariantrepresentationfordomainadaptationofsemanticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d04589564b13d603495f3255c6eab8f2c140da24779d8b7fad2273c36cec3c2
+size 376115
diff --git a/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_content_list.json b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d663d455df24cecf234507b78ffadfb4a962b395
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ab20911bf79db0c179b66b882a6de66350e9a7be350e49e4063e8efa5116109
+size 73738
diff --git a/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_model.json b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1931fb0d3218fa1958d9171d23da77487618d6a7
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0703b7e188e2d87e1766c0b367821c832e20f96cc02ad8b2ab30e3b382240f07
+size 89106
diff --git a/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_origin.pdf b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..530cb5307a287f4dbb8f37c11e7eec7bd4bf1599
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/ebefdd38-34bd-4947-80fb-0d6417c825d7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f725b32ceb6e3983d004d010438cd680f081f9a21c47efeb6b6ff31dfc56539
+size 2435078
diff --git a/learningtexturetransformernetworkforimagesuperresolution/full.md b/learningtexturetransformernetworkforimagesuperresolution/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..657bc6977313003ebb1529679131283dc8ca4182
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/full.md
@@ -0,0 +1,334 @@
+# Learning Texture Transformer Network for Image Super-Resolution
+
+Fuzhi Yang $^{1*}$ , Huan Yang $^{2}$ , Jianlong Fu $^{2}$ , Hongtao Lu $^{1}$ , Baining Guo $^{2}$
+
+$^{1}$ Department of Computer Science and Engineering,
+
+MoE Key Lab of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University,
+
+$^{2}$ Microsoft Research, Beijing, P.R. China,
+
+{yfzcopy0702, htlu} $@$ sjtu.edu.cn, {huayan, jianf, bainguo} $@$ microsoft.com
+
+# Abstract
+
+We study on image super-resolution (SR), which aims to recover realistic textures from a low-resolution (LR) image. Recent progress has been made by taking high-resolution images as references (Ref), so that relevant textures can be transferred to LR images. However, existing SR approaches neglect to use attention mechanisms to transfer high-resolution (HR) textures from Ref images, which limits these approaches in challenging cases. In this paper, we propose a novel Texture Transformer Network for Image Super-Resolution (TTSR), in which the LR and Ref images are formulated as queries and keys in a transformer, respectively. TTSR consists of four closely-related modules optimized for image generation tasks, including a learnable texture extractor by DNN, a relevance embedding module, a hard-attention module for texture transfer, and a soft-attention module for texture synthesis. Such a design encourages joint feature learning across LR and Ref images, in which deep feature correspondences can be discovered by attention, and thus accurate texture features can be transferred. The proposed texture transformer can be further stacked in a cross-scale way, which enables texture recovery from different levels (e.g., from $1 \times$ to $4 \times$ magnification). Extensive experiments show that TTSR achieves significant improvements over state-of-the-art approaches on both quantitative and qualitative evaluations.
+
+# 1. Introduction
+
+Image super-resolution aims to recover natural and realistic textures for a high-resolution image from its degraded low-resolution counterpart [12]. The recent success of image SR can greatly enhance the quality of media content for a better user experiences. For example, the digital zoom
+
+
+
+
+
+
+
+
+
+
+Figure 1. A comparison of $4 \times$ SR results between the proposed TTSR and a state-of-the-art RefSR approach [43]. TTSR (ours) learns to search on relevant textures from the Ref image (indicated by green) for a target LR region (indicated by yellow), which avoids incorrect texture transfer (indicated by red).
+
+
+
+algorithm for mobile cameras and image enhancement technology for digital televisions. Besides, this fundamental technology can benefit a broad range of computer vision tasks, like medical imaging [21] and satellite imaging [35].
+
+The research on image SR is usually conducted on two paradigms, including single image super-resolution (SISR), and reference-based image super-resolution (RefSR). Traditional SISR often results in blurry effects, because the high-resolution (HR) textures have been excessively destructed in the degrading process which are unrecoverable. Although generative adversarial networks (GANs) [7] based image SR approaches are proposed to relieve the above problems, the resultant hallucinations and artifacts caused by GANs further pose grand challenges to image SR tasks.
+
+Recent progress has been made by reference-based image super-resolution (RefSR), which transfers HR textures from a given Ref image to produce visually pleasing results [5, 6, 26, 29, 36]. However, state-of-the-art (SOTA) approaches usually adopt a straightforward way to transfer textures which may result in unsatisfied SR images (as shown in Figure. 1). For example, Zheng et al. [43] adopts a flow-based approach which usually searches and transfers inaccurate textures (indicate by red) when facing large viewpoint changes between the LR and Ref image. Zhang et al. [41] adopts a feature space defined by a pre-trained classification model to search and transfer textures between the LR and Ref image. Nevertheless, such high-level semantic features can not effectively represent HR textures which remain to generate implausible results.
+
+To address these problems, we propose a novel Texture Transformer Network for Image Super-Resolution (TTSR). Specifically, four closely-related modules optimized for image generation tasks are proposed. First, we propose a learnable texture extractor, in which parameters will be updated during end-to-end training. Such a design enables a joint feature embedding of LR and Ref images which creates a solid foundation for applying attention mechanism [19, 34, 31] in SR tasks. Second, we propose a relevance embedding module to compute the relevance between the LR and Ref image. More specifically, we formulate the extracted features from the LR and Ref image as the query and key in a transformer [31] to obtain a hard-attention map and a soft-attention map. Finally, we propose a hard-attention module and a soft-attention module to transfer and fuse HR features from the Ref image into LR features extracted from backbone through the attention maps. The design of TTSR encourages a more accurate way to search and transfer relevant textures from Ref to LR images.
+
+Furthermore, we propose a cross-scale feature integration module to stack the texture transformer, in which the features are learnt across different scales (e.g., from $1 \times$ to $4 \times$ ) to achieve a more powerful feature representation. As shown in Figure 1, the overall design enables our TTSR to search and transfer relevant textures from the Ref image (indicated by green) which achieves a better visual result compared with SOTA approaches. The main contributions of this paper are:
+
+- To the best of our knowledge, we are one of the first to introduce the transformer architecture into image generation tasks. More specifically, we propose a texture transformer with four closely-related modules for image SR which achieves significant improvements over SOTA approaches.
+- We propose a novel cross-scale feature integration module for image generation tasks which enables our approach to learn a more powerful feature representation by stacking multiple texture transformers.
+
+# 2. Related Work
+
+In this section, we review previous works of single image super-resolution (SISR) and reference-based image super-resolution (RefSR) which are the most relevant to our work.
+
+# 2.1. Single Image Super-Resolution
+
+In recent years, deep learning based SISR methods have achieved significant improvements over traditional nonlearning based methods. Deep learning based methods in SISR treat this problem as a dense image regression task which learns an end-to-end image mapping function represented by a CNN between LR and HR images.
+
+Dong et al. [3] proposed SRCNN that firstly adopted deep learning into SISR by using a three-layer CNN to represent the mapping function. Dong et al. [4] further sped up the SR process by replacing the interpolated LR image with the original LR image and using deconvolution at the very last layer to enlarge the feature map. Soon afterwards, Kim et al. proposed VDSR [14] and DRCN [15] with deeper networks on residual learning. Shi et al. [23] replaced deconvolution with the subpixel convolution layer to reduce the checkerboard artifact. Residual block [9] was introduced into SISR in SRResNet [16] and improved in EDSR [17]. With the help of residual block, a lot of works focused on designing deeper or wider networks [2, 27, 28]. Zhang et al. [40] and Tong et al. [30] adopted dense blocks [10] to combine features from different levels. Zhang et al. [39] improved residual block by adding channel attention. Liu et al. [18] proposed a non-local recurrent network for image restoration. Dai et al. [2] introduced second-order statistics for more discriminative feature representations.
+
+The above methods use mean square error (MSE) or mean absolute error (MAE) as their objective function which ignores human perceptions. In recent years, more and more works aim to improve perceptual quality. Johnson et al. [13] introduced perceptual loss into SR tasks, while SRGAN [16] adopted generative adversarial networks (GANs) [7] and showed visually satisfying results. Sajjadi et al. [22] used Gram matrix based texture matching loss to enforce local similar textures, while ESRGAN [32] enhanced SRGAN by introducing RRDB with relativistic adversarial loss. Recent proposed RSRGAN [38] trained a ranker and used rank-content loss to optimize the perceptual quality, which achieved state-of-the-art visual results.
+
+# 2.2. Reference-based Image Super-Resolution
+
+Different from SISR, RefSR can harvest more accurate details from the Ref image. This could be done by several approaches like image aligning or patch matching. Some existing RefSR approaches [33, 36, 43] choose to align the LR and Ref image. Landmark [36] aligned the Ref image to the LR image through a global registration to solve an
+
+energy minimization problem. Wang et al. [33] enhanced the Ref image by recurrently applying non-uniform warping before feature synthesis. CrossNet [43] adopted optical flow to align the LR and Ref image at different scales and concatenated them into the corresponding layers of the decoder. However, the performance of these methods depends largely on the aligning quality between the LR and Ref image. Besides, the aligning approaches such as optical flow are time-consuming, which is adverse to real applications.
+
+Other RefSR approaches [1, 41, 42] adopt "patch match" method to search proper reference information. Boominathan et al. [1] matched the patches between gradient features of the LR and down-sampled Ref image. Zheng et al. [42] replaced the simple gradient features with features in convolution neural networks to apply semantic matching and used a SISR method for feature synthesis. Recent work SRNTT [41] applied patch matching between VGG [24] features of the LR and Ref image to swap similar texture features. However, SRNTT ignores the relevance between original and swapped features and feeds all the swapped features equally into the main network.
+
+To address these problems, we propose a texture transformer network which enables our approach to search and transfer relevant textures from Ref to LR images. Moreover, the performance of our approach can be further improved by stacking multiple texture transformers with a proposed cross-scale feature integration module.
+
+# 3. Approach
+
+In this section, we introduce the proposed Texture Transformer Network for Image Super-Resolution (TTSR). On top of the texture transformer, we propose a cross-scale feature integration module (CSFI) to further enhance model performances. The texture transformer and CSFI will be discussed in Section 3.1 and Section 3.2, respectively. A group of loss functions for optimizing the proposed network will be explained in Section 3.3.
+
+# 3.1. Texture Transformer
+
+The structure of the texture transformer is shown in Figure 2. LR, $\mathrm{LR\uparrow}$ and Ref represent the input image, the $4\times$ bicubic-upsampled input image and the reference image, respectively. We sequentially apply bicubic down-sampling and up-sampling with the same factor $4\times$ on Ref to obtain $\mathrm{Ref}\downarrow \uparrow$ which is domain-consistent with $\mathrm{LR\uparrow}$ . The texture transformer takes Ref, $\mathrm{Ref}\downarrow \uparrow$ , $\mathrm{LR\uparrow}$ and the LR features produced by the backbone as input, and outputs a synthesized feature map, which will be further used to generate the HR prediction. There are four parts in the texture transformer: the learnable texture extractor (LTE), the relevance embedding module (RE), the hard-attention module for feature transfer (HA) and the soft-attention module for feature synthesis (SA). Details will be discussed below.
+
+
+Figure 2. The proposed texture transformer. $Q$ , $K$ and $V$ are the texture features extracted from an up-sampled LR image, a sequentially down/up-sampled Ref image, and an original Ref image, respectively. $H$ and $S$ indicate the hard/soft attention map, calculated from relevance embedding. $F$ is the LR features extracted from a DNN backbone, and is further fused with the transferred texture features $T$ for generating the SR output.
+
+Learnable Texture Extractor. In RefSR tasks, texture extraction for reference images is essential because accurate and proper texture information will assist the generation of SR images. Instead of using semantic features extracted by a pre-trained classification model like VGG [24], we design a learnable texture extractor whose parameters will be updated during end-to-end training. Such a design encourages a joint feature learning across the LR and Ref image, in which more accurate texture features can be captured. The process of texture extraction can be expressed as:
+
+$$
+Q = L T E (L R \uparrow), \tag {1}
+$$
+
+$$
+K = L T E (R e f \downarrow \uparrow), \tag {2}
+$$
+
+$$
+V = L T E (R e f), \tag {3}
+$$
+
+where $LTE(\cdot)$ denotes the output of our learnable texture extractor. The extracted texture features, $Q$ (query), $K$ (key), and $V$ (value) indicate three basic elements of the attention mechanism inside a transformer and will be further used in our relevance embedding module.
+
+Relevance Embedding. Relevance embedding aims to embed the relevance between the LR and Ref image by estimating the similarity between Q and K. We unfold both Q and K into patches, denoted as $q_{i}$ ( $i \in [1, H_{LR} \times W_{LR}]$ ) and $k_{j}$ ( $j \in [1, H_{Ref} \times W_{Ref}]$ ). Then for each patch $q_{i}$ in $Q$
+
+and $k_{j}$ in $K$ , we calculate the relevance $r_{i,j}$ between these two patches by normalized inner product:
+
+$$
+r _ {i, j} = \left\langle \frac {q _ {i}}{\| q _ {i} \|}, \frac {k _ {j}}{\| k _ {j} \|} \right\rangle . \tag {4}
+$$
+
+The relevance is further used to obtain the hard-attention map and the soft-attention map.
+
+**Hard-Attention.** We propose a hard-attention module to transfer the HR texture features $V$ from the Ref image. Traditional attention mechanism takes a weighted sum of $V$ for each query $q_{i}$ . However, such an operation may cause blur effect which lacks the ability of transferring HR texture features. Therefore, in our hard-attention module, we only transfer features from the most relevant position in $V$ for each query $q_{i}$ .
+
+More specifically, we first calculate a hard-attention map $H$ in which the $i$ -th element $h_i$ ( $i \in [1, H_{LR} \times W_{LR}]$ ) is calculated from the relevance $r_{i,j}$ :
+
+$$
+h _ {i} = \underset {j} {\arg \max } r _ {i, j}. \tag {5}
+$$
+
+The value of $h_i$ can be regarded as a hard index, which represents the most relevant position in the Ref image to the $i$ -th position in the LR image. To obtain the transferred HR texture features $T$ from the Ref image, we apply an index selection operation to the unfolded patches of $V$ using the hard-attention map as the index:
+
+$$
+t _ {i} = v _ {h _ {i}}, \tag {6}
+$$
+
+where $t_i$ denotes the value of $T$ in the $i$ -th position, which is selected from the $h_i$ -th position of $V$ .
+
+As a result, we obtain a HR feature representation $T$ for the LR image which will be further used in our soft-attention module.
+
+Soft-Attention. We propose a soft-attention module to synthesize features from the transferred HR texture features $T$ and the LR features $F$ of the LR image from a DNN backbone. During the synthesis process, relevant texture transfer should be enhanced while the less relevant ones should be relived. To achieve that, a soft-attention map $S$ is computed from $r_{i,j}$ to represent the confidence of the transferred texture features for each position in $T$ :
+
+$$
+s _ {i} = \max _ {j} r _ {i, j}, \tag {7}
+$$
+
+where $s_i$ denotes the $i$ -th position of the soft-attention map $S$ . Instead of directly applying the attention map $S$ to $T$ , we first fuse the HR texture features $T$ with the LR features $F$ to leverage more information from the LR image. Such fused features are further element-wisely multiplied by the soft-attention map $S$ and added back to $F$ to get the
+
+
+Figure 3. Architecture of stacking multiple texture transformers in a cross-scale way with the proposed cross-scale feature integration module (CSFI). RBs indicate a group of residual blocks.
+
+final output of the texture transformer. This operation can be represented as:
+
+$$
+F _ {\text {o u t}} = F + \operatorname {C o n v} (\operatorname {C o n c a t} (F, T)) \odot S, \tag {8}
+$$
+
+where $F_{out}$ indicates the synthesized output features. Conv and Concat represent a covolutional layer and Concatenation operation, respectively. The operator $\odot$ denotes element-wise multiplication between feature maps.
+
+In summary, the texture transformer can effectively transfer relevant HR texture features from the Ref image into the LR features, which boosts a more accurate process of texture generation.
+
+# 3.2. Cross-Scale Feature Integration
+
+Our texture transformer can be further stacked in a cross-scale way with a cross-scale feature integration module. The architecture is shown in Figure 3. Stacked texture transformers output the synthesized features for three resolution scales $(1\times, 2\times$ and $4\times$ ), such that the texture features of different scales can be fused into the LR image. To learn a better representation across different scales, inspired by [25, 37], we propose a cross-scale feature integration module (CSFI) to exchange information among the features of different scales. A CSFI module is applied each time the LR feature is up-sampled to the next scale. For the each scale inside the CSFI module, it receives the exchanged features from other scales by up/down-sampling, followed by a concatenation operation in the channel dimension. Then a convolutional layer will map the features into the original number of channels. In such a design, the texture features transferred from the stacked texture transformers are exchanged across each scale, which achieves a more powerful feature representation. This cross-scale feature integration module further improves the performance of our approach.
+
+# 3.3. Loss Function
+
+There are 3 loss functions in our approach. The overall loss can be interpreted as:
+
+$$
+\mathcal {L} _ {\text {o v e r a l l}} = \lambda_ {\text {r e c}} \mathcal {L} _ {\text {r e c}} + \lambda_ {\text {a d v}} \mathcal {L} _ {\text {a d v}} + \lambda_ {\text {p e r}} \mathcal {L} _ {\text {p e r}}. \tag {9}
+$$
+
+Reconstruction loss. The first loss is the reconstruction loss:
+
+$$
+\mathcal {L} _ {r e c} = \frac {1}{C H W} \left\| I ^ {H R} - I ^ {S R} \right\| _ {1}, \tag {10}
+$$
+
+where $(C, H, W)$ is the size of the HR. We utilize $L_{1}$ loss which has been demonstrated to be sharper for performance and easier for convergence compared to $L_{2}$ loss.
+
+Adversarial loss. Generative adversarial networks [7] are proved effective in generating clear and visually favorable images. Here we adopt WGAN-GP [8], which proposes a penalization of gradient norm to replace weight clipping, resulting in more stable training and better performance. This loss can be interpreted as:
+
+$$
+\mathcal {L} _ {D} = \underset {\tilde {x} \sim \mathbb {P} _ {g}} {\mathbb {E}} [ D (\tilde {x}) ] - \underset {x \sim \mathbb {P} _ {r}} {\mathbb {E}} [ D (x) ] +
+$$
+
+$$
+\lambda_ {\hat {x} \sim \mathbb {P} _ {\hat {x}}} \left[ \left(\| \nabla_ {\hat {x}} D (\hat {x}) \| _ {2} - 1\right) ^ {2} \right], \tag {11}
+$$
+
+$$
+\mathcal {L} _ {G} = - \underset {\tilde {x} \sim \mathbb {P} _ {g}} {\mathbb {E}} [ D (\tilde {x}) ]. \tag {12}
+$$
+
+Perceptual loss. Perceptual loss has been demonstrated useful to improve visual quality and has already been used in [13, 16, 22, 41]. The key idea of perceptual loss is to enhance the similarity in feature space between the prediction image and the target image. Here our perceptual loss contains two parts:
+
+$$
+\begin{array}{l} \mathcal {L} _ {p e r} = \frac {1}{C _ {i} H _ {i} W _ {i}} \left\| \phi_ {i} ^ {v g g} (I ^ {S R}) - \phi_ {i} ^ {v g g} (I ^ {H R}) \right\| _ {2} ^ {2} + \\ \frac {1}{C _ {j} H _ {j} W _ {j}} \left\| \phi_ {j} ^ {l t e} \left(I ^ {S R}\right) - T \right\| _ {2} ^ {2}, \tag {13} \\ \end{array}
+$$
+
+where the first part is a traditional perceptual loss, in which $\phi_{i}^{vgg}(\cdot)$ denotes the $i$ -th layer's feature map of VGG19, and $(C_i,H_i,W_i)$ represents the shape of the feature map at that layer. $I^{SR}$ is the predicted SR image. The second part in our perceptual loss is a transferal perceptual loss, in which $\phi_j^{lte}(\cdot)$ denotes the texture feature map extracted from the $j$ -th layer of the proposed LTE, and $(C_j,H_j,W_j)$ represents that layer's shape. $T$ is the transferred HR texture features in Figure 2. This transferal perceptual loss constraints the predicted SR image to have similar texture features to the transferred texture features $T$ , which makes our approach to transfer the Ref textures more effectively.
+
+# 3.4. Implementation Details
+
+The learnable texture extractor contains 5 convolutional layers and 2 pooling layers which outputs texture features in three different scales. To reduce the consumption of both time and GPU memory, the relevance embedding is only applied to the smallest scale and further propagated to other scales. For the discriminator, we adopt the same network used in SRNTT [41] and remove all BN layers. During
+
+training, we augment the training images by randomly horizontally and vertically flipping followed by randomly rotating $90^{\circ}$ , $180^{\circ}$ and $270^{\circ}$ . Each mini-batch contains 9 LR patches with size $40 \times 40$ along with 9 HR and Ref patches with size $160 \times 160$ . The weight coefficients for $\mathcal{L}_{rec}$ , $\mathcal{L}_{adv}$ and $\mathcal{L}_{per}$ are 1, 1e-3 and 1e-2, respectively. Adam optimizer with $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ , and $\epsilon = 1\mathrm{e - }8$ is used with learning rate of 1e-4. We first warm up the network for 2 epochs where only $\mathcal{L}_{rec}$ is applied. After that, all losses are involved to train another 50 epochs.
+
+# 4. Experiments
+
+# 4.1. Datasets and Metrics
+
+To evaluate our method, we train and test our model on the recently proposed RefSR dataset, CUFED5 [41]. The training set in CUFED5 contains 11,871 pairs, each pair consisting of an input image and a reference image. There are 126 testing images in CUFED5 testing set, each accompanied by 4 reference images with different similarity levels. In order to evaluate the generalization performance of TTSR trained on CUFED5, we additionally test TTSR on Sun80 [26], Urban100 [11], and Manga109 [20]. Sun80 contains 80 natural images, each paired with several reference images. For Urban100, we use the same setting as [41] to regard its LR images as the reference images. Such a design enables an explicit process of self-similar searching and transferring since Urban100 are all building images with strong self-similarity. For Manga109 which also lacks the reference images, we randomly sample HR images in this dataset as the reference images. Since this dataset is constructed with lines, curves and flat colored regions which are all common patterns. Even with a randomly picked HR Ref image, our method can still utilize these common patterns and achieve good results. The SR results are evaluated on PSNR and SSIM on Y channel of YCbCr space.
+
+# 4.2. Evaluation
+
+To evaluate the effectiveness of TTSR, we compare our model with other state-of-the-art SISR and RefSR methods. The SISR methods include SRCNN [3], MDSR [17], RDN [40], RCAN [39], SRGAN [16], ENet [22], ESRGAN [32], RSRGAN [38], among which RCAN has achieved state-of-the-art performance on both PSNR and SSIM in recent years. RSRGAN is considered to achieve the state-of-the-art visual quality. As for RefSR methods, CrossNet [43] and SRNTT [41] are two state-of-the-art methods recently, which significantly outperform previous RefSR methods. All experiments are performed with a scaling factor of $4 \times$ between LR and HR images.
+
+Quantitative Evaluation. For fair comparison, we follow the setting in SRNTT [41] to train all the methods
+
+Table 1. PSNR/SSIM comparison among different SR methods on four different datasets. Methods are grouped by SISR methods (top) and RefSR methods (down). Red numbers denote the highest scores while blue numbers denote the second highest scores.
+
+| Method | CUFED5 | Sun80 | Urban100 | Manga109 |
| SRCNN [3] | 25.33 / .745 | 28.26 / .781 | 24.41 / .738 | 27.12 / .850 |
| MDSR [17] | 25.93 / .777 | 28.52 / .792 | 25.51 / .783 | 28.93 / .891 |
| RDN [40] | 25.95 / .769 | 29.63 / .806 | 25.38 / .768 | 29.24 / .894 |
| RCAN [39] | 26.06 / .769 | 29.86 / .810 | 25.42 / .768 | 29.38 / .895 |
| SRGAN [16] | 24.40 / .702 | 26.76 / .725 | 24.07 / .729 | 25.12 / .802 |
| ENet [22] | 24.24 / .695 | 26.24 / .702 | 23.63 / .711 | 25.25 / .802 |
| ESRGAN [32] | 21.90 / .633 | 24.18 / .651 | 20.91 / .620 | 23.53 / .797 |
| RSRGAN [38] | 22.31 / .635 | 25.60 / .667 | 21.47 / .624 | 25.04 / .803 |
| CrossNet [43] | 25.48 / .764 | 28.52 / .793 | 25.11 / .764 | 23.36 / .741 |
| SRNTT-rec [41] | 26.24 / .784 | 28.54 / .793 | 25.50 / .783 | 28.95 / .885 |
| SRNTT [41] | 25.61 / .764 | 27.59 / .756 | 25.09 / .774 | 27.54 / .862 |
| TTSR-rec | 27.09 / .804 | 30.02 / .814 | 25.87 / .784 | 30.09 / .907 |
| TTSR | 25.53 / .765 | 28.59 / .774 | 24.62 / .747 | 28.70 / .886 |
+
+on CUFED5 training set, and test on CUFED5 testing set, Sun80, Urban100 and Manga109 datasets. For SR methods, there is a fact that training with adversarial loss usually achieves better visual quality but shrinks the number of PSNR and SSIM. Therefore, we train another version of our model which is optimized only on reconstruction loss named TTSR-rec for fair comparison on PSNR and SSIM.
+
+Table 1 shows the quantitative evaluation results. Red numbers denote the highest scores while blue numbers denote the second highest scores. As shown in the comparison results, TTSR-rec significantly outperforms both state-of-the-art SISR methods and state-of-the-art RefSR methods on all four testing datasets. Among the methods which aim to achieve better visual quality with adversarial loss, our model still has the best performance on Sun80 and Manga109 datasets. On the other two datasets, CUFED5 and Urban100, our model achieves comparable performance with the state-of-the-art models. The quantitative comparison results demonstrate the superiority of our proposed TTSR over state-of-the-art SR approaches.
+
+Qualitative Evaluation. Our model also achieves the best performance on visual quality as shown in Figure 5. TTSR can transfer more accurate HR textures from the reference image to generate favorable results, as shown in the first three examples in Figure 5. Even if the reference image is not that globally relevant to the input image, our TTSR can still extract finer textures from local regions and transfer effective textures into the predicted SR result, as shown in the last three examples in Figure 5.
+
+To further verify the superior visual quality of our approach, we conduct a user study where TTSR is compared with four SOTA approaches, including RCAN [39], RSRGAN [38], CrossNet [43] and SRNTT [41]. There are 10 subjects involved in this user study and 2,520 votes are collected on the CUFED5 testing set. For each comparison process, we provide the users with two images which include one TTSR image. Users are asked to select the one with higher visual quality. Figure 4 shows the results of our
+
+
+Figure 4. User study results. Values on Y-axis indicate the percentage of users that prefer TTSR over other approaches.
+
+Table 2. Ablation study on texture transformer.
+
+| Method | HA | SA | LTE | PSNR/SSIM |
| Base | | | | 26.34 / .780 |
| Base+HA | ✓ | | | 26.59 / .786 |
| Base+HA+SA | ✓ | ✓ | | 26.81 / .795 |
| Base+HA+SA+LTE | ✓ | ✓ | ✓ | 26.92 / .797 |
+
+Table 3. Ablation study on CSFI.
+
+| Method | CSFI | numC | param. | PSNR/SSIM |
| Base+TT | | 64 | 4.42M | 26.92 / .797 |
| Base+TT+CSFI | ✓ | 64 | 6.42M | 27.09 / .804 |
| Base+TT(C80) | | 80 | 6.53M | 26.93 / .797 |
| Base+TT(C96) | | 96 | 9.10M | 26.98 / .799 |
+
+user study, where the values on Y-axis represent the percentage of users that prefer TTSR over other approaches. As we can see, the proposed TTSR significantly outperforms other approaches with over $90\%$ of users voting for ours, which verifies the favorable visual quality of TTSR.
+
+# 4.3. Ablation Study
+
+In this section, we verify the effectiveness of different modules in our approach, including the texture transformer, the cross-scale feature integration, the adversarial loss and the transferal perceptual loss. In addition, we also discuss the influence of different reference similarity on TTSR.
+
+Texture transformer. Our texture transformer contains mainly four parts: the learnable texture extractor (LTE), the relevance embedding module, the hard-attention module for feature transfer (HA) and the soft-attention module for feature synthesis (SA). Ablation results are shown in Table 2. We re-implement SRNTT [41] as our "Base" model by only removing all BN layers and Ref part. On top of the baseline model, we progressively add HA, SA, and LTE. Models without LTE use the VGG19 features to do relevance embedding. As we can see, when HA is added, the PSNR performance can be improved from 26.34 to 26.59, which verifies the effectiveness of the hard-attention module for feature transfer. When SA is involved, relevant texture features will be enhanced while the less relevant ones will be relieved during the feature synthesizing. This fur
+
+
+Figure 5. Visual comparison among different SR methods on CUFED5 testing set (top three examples), Sun80 [26] (the forth example), Urban100 [11] (the fifth example), and Manga109 [20] (the last example).
+
+ther boosts the performance to 26.81. When replacing VGG with the proposed LTE, the PSNR is finally increased to 26.92, which proves the superiority of joint feature embedding in LTE.
+
+To further verify the effectiveness of our LTE, we use the hard attention map to transfer the original image. It is expected that a better feature representation can transfer more accurate textures from the original images. Figure 6 shows the transferred original image by VGG19 in SRNTT and
+
+LTE in TTSR. In this figure, TTSR can transfer more accurate reference textures and generate a globally favorable result, which further proves the effectiveness of our LTE.
+
+Cross-scale feature integration. On top of the texture transformer, CSFI can further enable texture recovery from different resolution scales $(1\times, 2\times$ and $4\times$ ). We conduct an ablation study in Table 3. The first row shows the performance of our model with only TT, while the second row proves the effectiveness of CSFI, which brings 0.17
+
+
+Figure 6. Comparison of the transferred original images between SRNTT and TTSR.
+
+
+
+
+
+
+
+
+Figure 7. Qualitative comparison on "Base(-rec)" and TTSR(-rec) (TTSR can be interpreted as "Base+TT(HA+SA+LTE)+CSFI").
+
+
+
+
+
+
+
+increase on PSNR metric. In order to verify that the performance improvement is not brought by the increase of parameter size, we increase the channel number of "Base+TT" model to 80 and 96. As we can see, there is almost no growth of "Base+TT(C80)" which has almost the same parameter number as "Base+TT+CSFI". Even if we increase the parameter number to 9.10M to obtain "Base+TT(C96)" model, there is still a performance gap. This demonstrates that CSFI can efficiently utilize the reference texture information with a relatively smaller parameter size.
+
+Adversarial loss. To make sure that the improvement of perceptual quality benefits from model design rather than the adversarial loss. We conduct an ablation among "Base-rec", "Base", TTSR-rec and TTSR, where TTSR can be interpreted as "Base+TT+CSFI" and "-rec" indicates training with only reconstruction loss. Figure 7 shows that even if without the perceptual and adversarial loss, TTSR-rec can still utilize the Ref image and recover more details than "Base-rec". With all losses enabled, TTSR achieves the best visual result.
+
+Transferal perceptual loss. The transferal perceptual loss constraints the LTE's features between the predicted SR image and the transferred image $T$ to be similar. As shown in Figure 8, using this loss is able to transfer textures in a more effective way which achieves visually pleasing results. In addition, this loss also improves the quantitative metrics PSNR and SSIM of TTSR from 25.20/.757 to 25.53/.765. Influence of different reference similarity. To study how relevance between LR and Ref images influences the results of TTSR, we conduct experiments on CUFED5 testing set, which has reference images of different relevance
+
+
+Figure 8. Comparison between TTSR trained without (top) and with (bottom) transferal perceptual loss.
+
+
+
+Table 4. Ablation study on reference images of different similarity.
+
+| Level | CrossNet | SRNTT-rec | TTSR-rec |
| L1 | 25.48/.764 | 26.15/.781 | 26.99/.800 |
| L2 | 25.48/.764 | 26.04/.776 | 26.74/.791 |
| L3 | 25.47/.763 | 25.98/.775 | 26.64/.788 |
| L4 | 25.46/.763 | 25.95/.774 | 26.58/.787 |
| LR | 25.46/.763 | 25.91/.776 | 26.43/.782 |
+
+levels. Table 4 shows the results of five relevance levels, in which "L1" to "L4" represent the reference images provided by CUFED5 testing set where L1 is the most relevant level while L4 is the least relevant one. "LR" means using the input image itself as the reference image. As shown in Table 4, TTSR using L1 as the reference image achieves the best performance. When using LR as the reference image, TTSR still performs better than previous state-of-the-art RefSR approaches.
+
+# 5. Conclusion
+
+In this paper, we propose a novel Texture Transformer Network for Image Super-Resolution (TTSR) which transfers HR textures from the Ref to LR image. The proposed texture transformer consists of a learnable texture extractor which learns a jointly feature embedding for further attention computation and two attention based modules which transfer HR textures from the Ref image. Furthermore, the proposed texture transformer can be stacked in a cross-scale way with the proposed CSFI module to learn a more powerful feature representation. Extensive experiments demonstrate the superior performance of our TTSR over state-of-the-art approaches on both quantitative and qualitative evaluations. In the future, we will further extend the proposed texture transformer to general image generation tasks.
+
+Acknowledgement This paper is partially supported by NSFC (No. 61772330, 61533012, 61876109), the preresearch project (No. 61403120201), Shanghai Key Laboratory of Crime Scene Evidence (2017XCWZK01) and the Interdisciplinary Program of Shanghai Jiao Tong University (YG2019QNA09).
+
+# References
+
+[1] Vivek Boominathan, Kaushik Mitra, and Ashok Veeraraghavan. Improving resolution and depth-of-field of light field cameras using a hybrid imaging system. In ICCP, pages 1-10, 2014.
+[2] Tao Dai, Jianrui Cai, Yongbing Zhang, Shu-Tao Xia, and Lei Zhang. Second-order attention network for single image super-resolution. In CVPR, pages 11065-11074, 2019.
+[3] Chao Dong, Chen Change Loy, Kaiming He, and Xiaou Tang. Image super-resolution using deep convolutional networks. TPAMI, 38(2):295-307, 2015.
+[4] Chao Dong, Chen Change Loy, and Xiaou Tang. Accelerating the super-resolution convolutional neural network. In ECCV, pages 391-407, 2016.
+[5] Gilad Freedman and Raanan Fattal. Image and video upscaling from local self-examples. ACM Transactions on Graphics (TOG), 30(2):1-11, 2011.
+[6] William T Freeman, Thouis R Jones, and Egon C Pasztor. Example-based super-resolution. IEEE Computer graphics and Applications, 22(2):56-65, 2002.
+[7] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, pages 2672–2680, 2014.
+[8] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In NeurIPS, pages 5767-5777, 2017.
+[9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[10] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, pages 4700-4708, 2017.
+[11] Jia-Bin Huang, Abhishek Singh, and Narendra Ahuja. Single image super-resolution from transformed self-exemplars. In CVPR, pages 5197-5206, 2015.
+[12] Michal Irani and Shmuel Peleg. Improving resolution by image registration. CVGIP, 53(3):231-239, 1991.
+[13] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, pages 694–711, 2016.
+[14] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In CVPR, pages 1646-1654, 2016.
+[15] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Deeplyrecursive convolutional network for image super-resolution. In CVPR, pages 1637-1645, 2016.
+[16] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In CVPR, pages 4681-4690, 2017.
+[17] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Young Mu Lee. Enhanced deep residual networks for single image super-resolution. In CVPR Workshops, pages 136-144, 2017.
+
+[18] Ding Liu, Bihan Wen, Yuchen Fan, Chen Change Loy, and Thomas S Huang. Non-local recurrent network for image restoration. In NeurIPS, pages 1673-1682, 2018.
+[19] Shuang Ma, Jianlong Fu, Chang Wen Chen, and Tao Mei. Da-gan: Instance-level image translation by deep attention generative adversarial networks. In CVPR, pages 5657-5666, 2018.
+[20] Yusuke Matsui, Kota Ito, Yuji Aramaki, Azuma Fujimoto, Toru Ogawa, Toshihiko Yamasaki, and Kiyoharu Aizawa. Sketch-based manga retrieval using manga109 dataset. Multimedia Tools and Applications, 76(20):21811-21838, 2017.
+[21] Ozan Oktay, Wenjia Bai, Matthew Lee, Ricardo Guerrero, Konstantinos Kamnitsas, Jose Caballero, Antonio de Marvao, Stuart Cook, Declan O'Regan, and Daniel Rueckert. Multi-input cardiac image super-resolution using convolutional neural networks. In MICCAI, pages 246-254, 2016.
+[22] Mehdi SM, Sajjadi, Bernhard Scholkopf, and Michael Hirsch. Enhancenet: Single image super-resolution through automated texture synthesis. In ICCV, pages 4491-4500, 2017.
+[23] Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In CVPR, pages 1874-1883, 2016.
+[24] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[25] Ke Sun, Yang Zhao, Borui Jiang, Tianheng Cheng, Bin Xiao, Dong Liu, Yadong Mu, Xinggang Wang, Wenyu Liu, and Jingdong Wang. High-resolution representations for labeling pixels and regions. arXiv preprint arXiv:1904.04514, 2019.
+[26] Libin Sun and James Hays. Super-resolution from internet-scale scene matching. In ICCP, pages 1-12, 2012.
+[27] Ying Tai, Jian Yang, and Xiaoming Liu. Image superresolution via deep recursive residual network. In CVPR, pages 3147-3155, 2017.
+[28] Ying Tai, Jian Yang, Xiaoming Liu, and Chunyan Xu. Memnet: A persistent memory network for image restoration. In ICCV, pages 4539-4547, 2017.
+[29] Radu Timofte, Vincent De Smet, and Luc Van Gool. Anchored neighborhood regression for fast example-based super-resolution. In ICCV, pages 1920-1927, 2013.
+[30] Tong Tong, Gen Li, Xiejie Liu, and Qinquan Gao. Image super-resolution using dense skip connections. In ICCV, pages 4799-4807, 2017.
+[31] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, pages 5998-6008, 2017.
+[32] Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Yu Qiao, and Chen Change Loy. Esrgan: Enhanced super-resolution generative adversarial networks. In ECCV Workshops, 2018.
+[33] Yuwang Wang, Yebin Liu, Wolfgang Heidrich, and Qionghai Dai. The light field attachment: Turning a dslr into a light field camera using a low budget camera ring. IEEE TVCG, 23(10):2357-2364, 2016.
+
+[34] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. In CVPR, pages 1316-1324, 2018.
+[35] Deniz Yildirim and Oğuz Güngör. A novel image fusion method using ikonos satellite images. Journal of Geodesy and Geoinformation, 1(1):75-83, 2012.
+[36] Huanjing Yue, Xiaoyan Sun, Jingyu Yang, and Feng Wu. Landmark image super-resolution by retrieving web images. IEEE TIP, 22(12):4865-4878, 2013.
+[37] Yanhong Zeng, Jianlong Fu, Hongyang Chao, and Baining Guo. Learning pyramid-context encoder network for high-quality image inpainting. In CVPR, pages 1486-1494, 2019.
+[38] Wenlong Zhang, Yihao Liu, Chao Dong, and Yu Qiao. Ranksrgan: Generative adversarial networks with ranker for image super-resolution. In ICCV, pages 3096-3105, 2019.
+[39] Yulun Zhang, Kunpeng Li, Kai Li, Lichen Wang, Bineng Zhong, and Yun Fu. Image super-resolution using very deep residual channel attention networks. In ECCV, pages 286-301, 2018.
+[40] Yulun Zhang, Yapeng Tian, Yu Kong, Bineng Zhong, and Yun Fu. Residual dense network for image super-resolution. In CVPR, pages 2472-2481, 2018.
+[41] Zhifei Zhang, Zhaowen Wang, Zhe Lin, and Hairong Qi. Image super-resolution by neural texture transfer. In CVPR, pages 7982-7991, 2019.
+[42] Haitian Zheng, Mengqi Ji, Lei Han, Ziwei Xu, Haoqian Wang, Yebin Liu, and Lu Fang. Learning cross-scale correspondence and patch-based synthesis for reference-based super-resolution. In BMVC, 2017.
+[43] Haitian Zheng, Mengqi Ji, Haoqian Wang, Yebin Liu, and Lu Fang. Crossnet: An end-to-end reference-based super resolution network using cross-scale warping. In ECCV, pages 88-104, 2018.
\ No newline at end of file
diff --git a/learningtexturetransformernetworkforimagesuperresolution/images.zip b/learningtexturetransformernetworkforimagesuperresolution/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1b64b279d6f1ffb4a6c123a0eed7a4b306dd5e48
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04139f07b764b5f4d8c10b902aeadd384cd544d500b9627fd8e272709c2f1022
+size 891330
diff --git a/learningtexturetransformernetworkforimagesuperresolution/layout.json b/learningtexturetransformernetworkforimagesuperresolution/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d64f3677831312113ec884f1b8023f6bbe91957
--- /dev/null
+++ b/learningtexturetransformernetworkforimagesuperresolution/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d35ec97418e0785cf7122460d9506e86db70499aa69a0cffd47fd28d1055d77
+size 391034
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_content_list.json b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b23345f6428ddfff7fe56b77201425fb0707352a
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d4f1a0a33c2e41b2d28d942a3d776ede3e2178967ec358d0cd1a00adaf590df
+size 78210
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_model.json b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9be93cf278dcddfc661e02b86428cd8d20eb3c6f
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c58e46d238bb4f8319da807da81721b44c512b3c50492fb2703fca6ce3083064
+size 97129
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_origin.pdf b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0549883d99e2582435f6653da8dcf9c8d2977b68
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/bc9a9728-f353-4db9-9b62-dc2055c1e0d1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad282ab019909d4eaa7adde905e42ebd94892a8037a336e173c27a5058ee58e9
+size 1194083
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/full.md b/learningunseenconceptsviahierarchicaldecompositionandcomposition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a0a9d5266313899c5600eaaedfeafb527ee3fed0
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/full.md
@@ -0,0 +1,325 @@
+# Learning Unseen Concepts via Hierarchical Decomposition and Composition
+
+Muli Yang $^{1}$ , Cheng Deng $^{1*}$ , Junchi Yan $^{2}$ , Xianglong Liu $^{3}$ , and Dacheng Tao $^{4}$
+
+$^{1}$ School of Electronic Engineering, Xidian University, Xi'an 710071, China
+
+$^{2}$ Department of CSE, and MoE Key Lab of Artificial Intelligence, Shanghai Jiao Tong University, China
+
+3State Key Lab of Software Development Environment, Beihang University, Beijing 100191, China
+
+4UBTECH Sydney AI Centre, School of CS, Faculty of Engineering, The University of Sydney, Australia
+
+mlyang@stu.xidian.edu.cn, chdeng@mail.xidian.edu.cn, yanjunchi@sjtu.edu.cn,
+
+xlliu@nlsde.buaa.edu.cn, dacheng.tao@sydney.edu.au
+
+# Abstract
+
+Composing and recognizing new concepts from known sub-concepts has been a fundamental and challenging vision task, mainly due to 1) the diversity of sub-concepts and 2) the intricate contextuality between sub-concepts and their corresponding visual features. However, most of the current methods simply treat the contextuality as rigid semantic relationships and fail to capture fine-grained contextual correlations. We propose to learn unseen concepts in a hierarchical decomposition-and-composition manner. Considering the diversity of sub-concepts, our method decomposes each seen image into visual elements according to its labels, and learns corresponding sub-concepts in their individual subspaces. To model intricate contextuality between sub-concepts and their visual features, compositions are generated from these subspaces in three hierarchical forms, and the composed concepts are learned in a unified composition space. To further refine the captured contextual relationships, adaptively semi-positive concepts are defined and then learned with pseudo supervision exploited from the generated compositions. We validate the proposed approach on two challenging benchmarks, and demonstrate its superiority over state-of-the-art approaches.
+
+# 1. Introduction
+
+A character of human intelligence is the composing ability towards individual concepts [1]. Imagining big, it is common for us to come up with compositional concepts such as big building and big cat. The term big here is no more an independent single concept, but is a sub-concept that can be combined into new concepts with other sub-concepts, reflecting the ability of compositional generalization. However, compositional generalization remains an
+
+
+Figure 1. An example of unseen compositional concept recognition. Training with young tiger and old cat, it is expected to learn the sub-concepts of young, tiger, old, and cat that can be used to compose and recognize unseen young cat and old tiger.
+
+insurmountable obstacle to machines. In this paper, we explore compositional generalization under the zero-shot learning (ZSL) setting, where a model needs to recognize unseen images composed from seen sub-concepts.
+
+As shown in Figure 1, one main challenge is the diversity of sub-concepts, e.g., young tiger, where young is a semantic description while tiger is a physical entity. Sub-concepts can be visually and semantically distinct, resulting in recognition difficulties when facing many possible compositions. Another challenge is the contextuality of sub-concepts, e.g., the old in old tiger should be totally different from the old in old car. The semantic meanings of sub-concepts tend to highly depend on each other. Contextuality is also associated with specific images [22], e.g., how old appears in two different old tiger images depends on the images themselves, which requires capturing fine
+
+grained contextual relationships between sub-concepts and their corresponding visual features. However, most of the recent approaches [17, 18, 27] degrade the contextuality to rigid semantic relationships in a common embedding space, in which images and corresponding word vectors are embedded. They fail to capture richer fine-grained contextual relationships and suffer from intricate contextuality under challenging ZSL setting.
+
+In this paper, we propose to learn unseen compositional concepts in a hierarchical decomposition-and-composition (HiDC) manner. Specifically, to address the challenge of diversity, HiDC decomposes each seen image into visual elements according to its compositional labels, and learns the decomposed sub-concepts in their individual subspaces. For contextuality, various compositions are generated from these two concept subspaces, and the composed concepts are learned in a unified composition space. To further explore intricate contextuality between sub-concepts and their corresponding visual features, we propose to generate compositions in three hierarchical forms, i.e., visual, word, and hybrid compositions. Visual compositions serve as visual prototypes for concept learning; word compositions emulate concept learning by mapping word concepts to visual features; hybrid compositions bridge visual and word concepts by transmitting visual features to word concepts and vice versa. These three hierarchical compositions are able to model intricate contextuality, and allow capturing fine-grained contextual relationships. Moreover, to refine the contextuality captured by the compositions, we discover and compose adaptively semi-positive concepts. To this end, underlying knowledge of the generated compositions is exploited as adaptive pseudo supervision to learn the semi-positive concepts more accurately. Our proposed HiDC is validated on two popular benchmark datasets. Experiments demonstrate that HiDC consistently outperforms the state of the arts. Also, the ablation study verifies the effectiveness of each proposed module.
+
+To sum up, the main contributions of this paper are:
+
+- An end-to-end decomposition-and-composition approach with three hierarchical composition forms to model intricate contextuality between compositional sub-concepts and their corresponding visual features;
+- A novel exploration of adaptively semi-positive concepts that depict fine-grained contextual relationships; also, an exploitation of adaptive pseudo supervision from the generated compositions to learn such semi-positive concepts accurately;
+- Extensive ablation studies and experiments, which validate the effectiveness of our proposed approach and demonstrate its superiority over the state of the arts.
+
+# 2. Related Work
+
+Zero-Shot Learning (ZSL). The aim of ZSL [20, 14, 15] is transferring knowledge from seen concepts to unseen ones, such that a model is able to recognize new concepts which never appear in training. Basically, mainstream ZSL methods can be divided into two categories: 1) embedding-based methods and 2) generating-based methods. Embedding-based methods [23, 2, 3, 28, 33] aim to find a discriminative common embedding space for both visual features and attribute semantic features. Generating-based methods [13, 26, 10, 19, 31] utilize generative models to synthesize unseen concepts. ZSL can be further extended to a more practical setting, i.e., generalized ZSL (GZSL), where the models are required to identify an unseen concept with a seen/unseen label. By contrast, conventional ZSL only requires to identify an unseen concept with an unseen label. In this paper, we propose an embedding-based GZSL method where hierarchical embedding spaces are constructed to learn compositional concepts.
+
+Unseen Compositional Concept Recognition. This task is a specialized ZSL problem where images are labeled with compositional concepts, e.g., young tiger. Early methods [4, 17, 25] often train independent classifiers for each sub-concept, and combine the trained classifiers to recognize unseen concepts. Methods most relevant to ours are AttrAsOperator [18] and AdvFineGrained [27]. AttrAsOperator regards the compositional concepts in the datasets as attribute-object pairs. By treating attributes (e.g., young) as operators, AttrAsOperator composes attribute-conditioned transformations in a common embedding space to learn unseen attribute-object concepts with triplet loss regularization [9, 5, 8, 29, 30]. In contrast, rather than treating compositional concepts as attribute-object pairs, we decompose and compose these concepts in a unified framework without explicitly modeling each sub-concept. This enables generalizability in real-world applications when compositions are not biased to attribute-object pairs. On the other hand, AdvFineGrained proposes to regulate the common embedding space with a quintuplet loss, where semi-negative samples are defined. We argue that this definition is too rigid to learn accurate compositional concepts (see Word Compositions in Section 3.2 for detailed discussion). On the contrary, we regard them as adaptively semi-positive samples to learn more accurate concepts. Additionally, AdvFineGrained employs multi-scale features and adversarial training for better performance; while we do not involve any of the problem-unrelated tricks and still achieve superior performance.
+
+# 3. Approach
+
+We consider the setting where each image $\mathbf{I}_{a,o}$ is consisted of an attribute $y_{a}$ and an object $y_{o}$ , and its label $y$ is
+
+
+Figure 2. Pipeline of the proposed HiDC, which mainly includes decomposing visual features into attribute and object subspaces, and generating hierarchical compositions from these subspaces. Best viewed in color.
+
+denoted as $y = (y_{a},y_{o})$ . Note that we only formulate the compositional concepts as attribute-object pairs for brevity, but do not explicitly model each sub-concept as in AttrAsOperator [18]. As a typical ZSL task, given an unseen image $\mathbf{I}$ , the goal is to predict its corresponding label $(y_{a},y_{o})$ . To this end, the dataset is divided into two parts, i.e., seen part $\mathcal{D}^s = \{(\mathbf{I}_{a,o},y)\mid \mathbf{I}_{a,o}\in \mathcal{X}^s,y\in \mathcal{Y}^s\}$ for training, and unseen part $\mathcal{D}^u = \{(\mathbf{I},y)\mid \mathbf{I}\in \mathcal{X}^u,y\in \mathcal{Y}^u\}$ for test, where $\mathcal{V} = \mathcal{V}^s\cup \mathcal{V}^u = \mathcal{V}_a\times \mathcal{V}_o = \{(y_a,y_o)\mid y_a\in \mathcal{V}_a,y_o\in$ $\mathcal{V}_o\}$ . The training and test labels are non-overlapping: $\mathcal{V}^s\cap \mathcal{V}^u = \emptyset$ . Under this setting, all attributes and objects can be seen during training: $\mathcal{V}_a^u\subseteq \mathcal{V}_a^s,\mathcal{V}_o^u\subseteq \mathcal{V}_o^s$ where $y_{a}\in \mathcal{V}_{a}$ and $y_{o}\in \mathcal{V}_{o}$ . In other words, all the attribute/object sub-concepts are available for training, but the composed attribute-object concepts are non-overlapping for training and test. For GZSL, we expect to learn a prediction $\mathcal{X}^u\mapsto \mathcal{Y}^u\cup \mathcal{Y}^s$ by training on $\{\mathcal{X}^s,\mathcal{Y}^s\}$ .
+
+In the following subsections, we will introduce the components of our proposed HiDC, followed by the description of training and test procedures.
+
+# 3.1. Concept Decomposition
+
+Decomposing Visual Features. Given an image $\mathbf{I}_{a,o}$ labeled with $(y_{a},y_{o})$ , we first input it to a pre-trained ResNet-18 [7] to extract high-level visual features as $\mathbf{v}_{a,o} = f_{a,o}(\mathbf{I}_{a,o})$ . As illustrated in Figure 2, the extracted features $\mathbf{v}_{a,o}$ are directly fed into two individual MLPs as $\mathbf{v}_a = f_a(\mathbf{v}_{a,o})$ and $\mathbf{v}_o = f_o(\mathbf{v}_{a,o})$ , each followed by a separate classifier. The classifiers are used to predict attribute label $y_{a}$ and object label $y_{o}$ of $\mathbf{v}_a$ and $\mathbf{v}_o$ respectively. The classification loss is written as
+
+$$
+\mathcal {L} _ {\mathrm {c l s}} \left(\mathbf {v} _ {a}, \mathbf {v} _ {o}\right) = h _ {a} \left(\mathbf {v} _ {a}, y _ {a}\right) + h _ {o} \left(\mathbf {v} _ {o}, y _ {o}\right), \tag {1}
+$$
+
+where $h_a(\cdot)$ and $h_o(\cdot)$ denote two fully-connected layers, each containing a cross-entropy loss trained to classify attributes and objects respectively.
+
+Constructing Concept Subspaces. The two output vectors $\mathbf{v}_a$ and $\mathbf{v}_o$ are projected into two embedding subspaces, i.e., attribute and object subspaces, as $\mathbf{x}_a = p_a^v (\mathbf{v}_a)$ and $\mathbf{x}_o = p_o^v (\mathbf{v}_o)$ . Meanwhile, the corresponding attribute and object are embedded as word vectors $\mathbf{w}_a = e_a(y_a)$ and $\mathbf{w}_o = e_o(y_o)$ . We also randomly embed an attribute word as $\mathbf{w}_{\bar{a}}$ and an object word as $\mathbf{w}_{\bar{o}}$ different from $\mathbf{w}_a$ and $\mathbf{w}_o$ , where “-” is a negative index. Then the attribute and object word vectors $\mathbf{w}_a$ , $\mathbf{w}_{\bar{a}}$ , $\mathbf{w}_o$ and $\mathbf{w}_{\bar{o}}$ are projected into the attribute and object subspaces as positive samples $\hat{\mathbf{x}}_a = p_a^w (\mathbf{w}_a)$ , $\hat{\mathbf{x}}_o = p_o^w (\mathbf{w}_o)$ and negative samples $\hat{\mathbf{x}}_{\bar{a}} = p_a^w (\mathbf{w}_{\bar{o}})$ , $\hat{\mathbf{x}}_{\bar{o}} = p_o^w (\mathbf{w}_{\bar{o}})$ . Together with the anchors $\mathbf{x}_a$ and $\mathbf{x}_o$ , we can construct two triplets in these two concept subspaces, which are regularized by two triplet losses. The triplet loss pulls positive samples close to the anchor, and pushes the negative ones away from the anchor. The triplet losses on the two concept subspaces are defined as
+
+$$
+\mathcal {L} _ {\text {t r i p l e t}} ^ {a} \left(\mathbf {x} _ {a}, \hat {\mathbf {x}} _ {a}, \hat {\mathbf {x}} _ {\bar {a}}\right) = \max \left(0, d \left(\mathbf {x} _ {a}, \hat {\mathbf {x}} _ {a}\right) - d \left(\mathbf {x} _ {a}, \hat {\mathbf {x}} _ {\bar {a}}\right) + m\right),
+$$
+
+$$
+\mathcal {L} _ {\mathrm {t r i p l e t}} ^ {o} \left(\mathbf {x} _ {o}, \hat {\mathbf {x}} _ {o}, \hat {\mathbf {x}} _ {\bar {o}}\right) = \max \left(0, d \left(\mathbf {x} _ {o}, \hat {\mathbf {x}} _ {o}\right) - d \left(\mathbf {x} _ {o}, \hat {\mathbf {x}} _ {\bar {o}}\right) + m\right),
+$$
+
+where $d(\cdot, \cdot)$ denotes Euclidean distance, and $m$ is the triplet margin value, the same as below. The overall loss on the two concept subspaces are added by the two triplet losses:
+
+$$
+\mathcal {L} _ {\text {c o n c}} = \mathcal {L} _ {\text {t r i p l e t}} ^ {a} + \mathcal {L} _ {\text {t r i p l e t}} ^ {o}. \tag {2}
+$$
+
+# 3.2. Hierarchical Concept Composition
+
+With the two constructed concept subspaces, we can flexibly create and adjust attribute-object compositions. We implement the composition by concatenating attribute and
+
+
+Figure 3. Toy illustration of the three hierarchical forms of compositions, where an attribute element and an object one are taken from each of the concept subspaces for composing.
+
+object elements from the two concept subspaces, and sending them to a fully-connected layer. As shown in Figure 3, the compositions are divided into three hierarchical forms, i.e., Visual, Word, and Hybrid Compositions.
+
+Visual Composition. Visual embeddings $\mathbf{x}_a$ and $\mathbf{x}_o$ in the two concept subspaces are directly combined to obtain a visual composition as $\mathbf{x}_{a + o} = g(\mathbf{x}_a,\mathbf{x}_o)$ . Naturally, the visual composition should resemble the original image. As shown in Figure 2, the output vector $\mathbf{v}_{a,o}$ of the pre-trained feature extractor is embedded into the composition space as a universal anchor $\mathbf{x}_{a,o} = p_{a,o}(\mathbf{v}_{a,o})$ for all generated compositions. The visual composition $\mathbf{x}_{a + o}$ is regularized to reconstruct the image embedding $\mathbf{x}_{a,o}$ :
+
+$$
+\mathcal {L} _ {\text {r e c}} \left(\mathbf {x} _ {a + o}, \mathbf {x} _ {a, o}\right) = d \left(\mathbf {x} _ {a + o}, \mathbf {x} _ {a, o}\right). \tag {3}
+$$
+
+Word Compositions. There are four word compositions, i.e., $\hat{\mathbf{x}}_{a + o} = g(\hat{\mathbf{x}}_a,\hat{\mathbf{x}}_o)$ , $\hat{\mathbf{x}}_{\bar{a} +o} = g(\hat{\mathbf{x}}_{\bar{a}},\hat{\mathbf{x}}_o)$ , $\hat{\mathbf{x}}_{a + \bar{o}} = g(\hat{\mathbf{x}}_a,\hat{\mathbf{x}}_{\bar{o}})$ , and $\hat{\mathbf{x}}_{\bar{a} +\bar{o}} = g(\hat{\mathbf{x}}_{\bar{a}},\hat{\mathbf{x}}_{\bar{o}})$ . Covering all the unseen compositional concepts, word compositions are the main concerns to unseen concept learning.
+
+A recent study [27] proposes to treat the compositions like $\hat{\mathbf{x}}_{\bar{a} +o}$ and $\hat{\mathbf{x}}_{a + \bar{o}}$ as semi-negative samples, supplementary to the conventional positive and negative compositions $\hat{\mathbf{x}}_{a + o},\hat{\mathbf{x}}_{\bar{a} +\bar{o}}$ . The problem is "semi-negative" itself-rigidly treating $\hat{\mathbf{x}}_{\bar{a} +o}$ and $\hat{\mathbf{x}}_{a + \bar{o}}$ as somewhat negative is disadvantageous to compositional concepts learning. In contrast, we treat them as adaptively semi-positive samples with variable triplet margins, and formulate the composition loss as
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {c o m p}} \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {a + o}, \hat {\mathbf {x}} _ {\bar {a} + o}, \hat {\mathbf {x}} _ {a + \bar {\delta}}, \hat {\mathbf {x}} _ {\bar {a} + \bar {\delta}}\right) = \\ \max \left(0, d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {a + o}\right) - d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {\bar {a} + \bar {o}}\right) + m\right) \\ + \max \left(0, d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {\bar {a} + o}\right) - d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {\bar {a} + \bar {o}}\right) + \alpha m\right) \\ + \max \left(0, d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {a + \bar {\delta}}\right) - d \left(\mathbf {x} _ {a, o}, \hat {\mathbf {x}} _ {\bar {a} + \bar {\delta}}\right) + \beta m\right), \tag {4} \\ \end{array}
+$$
+
+where we introduce $\alpha, \beta \in (0,1)$ as margin adjusting parameters. The motivation is from a simple observation: if given young tiger as an anchor, young cat should be closer to the anchor than young horse does, where both young cat and young horse are adaptively regarded as semi-positive samples. In Eq. (4), a smaller triplet margin pulls semi-positive samples $\hat{\mathbf{x}}_{\bar{a} + o}, \hat{\mathbf{x}}_{a + \bar{o}}$ close to the negative one $\hat{\mathbf{x}}_{\bar{a} + \bar{o}}$ and meanwhile pushes them away from the anchor $\mathbf{x}_{a,o}$ .
+
+Thus we fix the triplet margin of the positive sample $\hat{\mathbf{x}}_{a + o}$ and assign each semi-positive sample $\hat{\mathbf{x}}_{\bar{a} +o},\hat{\mathbf{x}}_{a + \bar{o}}$ an adaptive margin that can be controlled by $\alpha$ and $\beta$ respectively. The margin adjusting parameters are determined by the underlying knowledge of hybrid compositions introduced below.
+
+Hybrid Compositions. Each composition in this form is generated from a visual embedding and a word one. Hence hybrid compositions are restricted to either positive samples $\tilde{\mathbf{x}}_{a + o}^{vw} = g(\mathbf{x}_a,\hat{\mathbf{x}}_o),\tilde{\mathbf{x}}_{a + o}^{wv} = g(\hat{\mathbf{x}}_a,\mathbf{x}_o)$ or semi-positive ones $\tilde{\mathbf{x}}_{a + \bar{o}}^{vw} = g(\mathbf{x}_a,\hat{\mathbf{x}}_{\bar{o}}),\tilde{\mathbf{x}}_{\bar{a} +o}^{wv} = g(\hat{\mathbf{x}}_{\bar{a}},\mathbf{x}_o)$ , where "vw" denotes visual-word compositions while "vw" word-visual ones.
+
+Let us consider a practical example with an anchor concept as young tiger and semi-positive concepts as young cat and young horse. As shown in Figure 4, the corresponding positive word/hybrid compositions are denoted as $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{tiger}}, \tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{tiger}}^{vw}$ , and the semi-positive word/hybrid compositions as $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}, \tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}^{vw}$ and $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}}, \tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}}^{vw}$ . Since the visual element young is decomposed from the image $\mathbf{I}_{\mathrm{young},\mathrm{tiger}}$ , hybrid compositions $\tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{tiger}}^{vw}, \tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}^{vw}$ , and $\tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}}^{vw}$ should all contain a tiger-style young as shown in Figure 4. The inconsistency between the visual tiger-style young and the negative word cat/horse actually reflects how much the negative word sub-concept cat/horse violates the positive visual sub-concept young which is biased towards tiger. We propose to measure the inconsistency by calculating the distance between the hybrid composition and its corresponding word composition, and further employ it as adaptive pseudo supervision for margin adjusting, i.e., as illustrated in Figure 4, $d_1 = d(\tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}, \hat{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}})$ , and $d_2 = d(\tilde{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}}, \hat{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}})$ . We can expect a larger $d_2$ than $d_1$ since a horse-style young lies farther from a tiger-style young than a cat-style young does.
+
+Now we consider the margin adjusting parameter problem. Following the above example, we calculate $d_0 = d(\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{tiger}}, \hat{\mathbf{x}}_{\mathrm{young} + \mathrm{tiger}})$ as a benchmark distance to $d_1$ and $d_2$ . When choosing $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}$ as the semi-positive sample, the margin adjusting parameter is given by $\beta_1 = \sigma(d_0 - d_1)$ , where $\sigma(\cdot)$ denotes a sigmoid function. As to $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{horse}}$ , we have $\beta_2 = \sigma(d_0 - d_2)$ . When $d_1 < d_2$ , we can derive $\beta_1 > \beta_2$ . As illustrated in Figure 4, the larger $\beta_1$ pulls $\hat{\mathbf{x}}_{\mathrm{young} + \mathrm{cat}}$ closer to the anchor $\mathbf{x}_{\mathrm{young},\mathrm{tiger}}$ and pushes it away from the negative composition ( $\hat{\mathbf{x}}_{\mathrm{old} + \mathrm{cat}}$ , in this example). In general, the margin adjusting parameters
+
+
+
+
+
+
+Figure 4. Upper: illustration of margin adjusting strategy, where triplets corresponding to different negative samples are put in the same coordinate for brevity. Lower: conceptual illustration of pseudo supervision exploitation from hybrid compositions, where young is artificially separated from tiger/cat/horse for clearer illustration.
+
+$\alpha$ and $\beta$ in Eq. (4) are calculated as
+
+$$
+\alpha = \sigma \left(\lambda \left(d \left(\tilde {\mathbf {x}} _ {a + o} ^ {w v}, \hat {\mathbf {x}} _ {a + o}\right) - d \left(\tilde {\mathbf {x}} _ {\bar {a} + o} ^ {w v}, \hat {\mathbf {x}} _ {\bar {a} + o}\right)\right)\right), \tag {5}
+$$
+
+$$
+\beta = \sigma \Big (\lambda \big (d (\tilde {\mathbf {x}} _ {a + o} ^ {v w}, \hat {\mathbf {x}} _ {a + o}) - d (\tilde {\mathbf {x}} _ {a + \bar {\boldsymbol {\sigma}}} ^ {v w}, \hat {\mathbf {x}} _ {a + \bar {\boldsymbol {\sigma}}}) \big) \Big), \tag {6}
+$$
+
+where $\sigma (\cdot)$ denotes a sigmoid function and $\lambda$ scales its input to adjust the sensitive region of the sigmoid function.
+
+# 3.3. Training and Test
+
+Training. The training procedure is summarized in Algorithm 1, in which image feature decomposition is guided by $\mathcal{L}_{\mathrm{cls}}$ in Eq. (1), the two concept subspaces are constrained by $\mathcal{L}_{\mathrm{conc}}$ in Eq. (2), and the compositions are regularized by $\mathcal{L}_{\mathrm{rec}}$ and $\mathcal{L}_{\mathrm{comp}}$ in Eqs. (3) (4), where $\alpha$ and $\beta$ in $\mathcal{L}_{\mathrm{comp}}$ are given by Eqs. (5) (6).
+
+Test. The trained model is tested on the unseen set $\mathcal{D}^u$ . Given an unseen image $\mathbf{I}$ for test, we first extract and map its visual features to the composition space as $\mathbf{x} = p_{a,o}(f_{a,o}(\mathbf{I}))$ , and then generate word compositions $\hat{\mathbf{x}}_{a + o} = g\Big(p_a^w (e_a(y_a)),p_o^w (e_o(y_o))\Big)$ from all $n$ candidate attribute-object pairs $\{(y_a,y_o)\}_{i = 1}^n$ . We compute and store the distances between $\mathbf{x}$ and each $\hat{\mathbf{x}}_{a + o}$ , and select the label $y = (y_{a},y_{o})$ of $\hat{\mathbf{x}}_{a + o}$ corresponding to the shortest distance
+
+Algorithm 1: Training procedure of hierarchical decomposition and composition (HiDC) model for unseen concept recognition.
+
+Data: Training data $\mathcal{D}^s$ , scale parameter $\lambda$
+Result: Optimal $e_a, e_o, p_a^w, p_o^w, p_{a,o}, g$
+1 Initialize: $f_{a}, f_{o}, h_{a}, h_{o}, e_{a}, e_{o}, p_{a}^{v}, p_{o}^{v}, p_{a}^{w}, p_{o}^{w}, p_{a,0}, g$ ;
+2 while not converged do
+
+3 Sample a batch from $\mathcal{D}^s$ as $\{\mathbf{I}_{a,o}\}_{i = 1}^{n}$ with labels $\{(y_{a},y_{o})\}_{i = 1}^{n}$ ; sample corresponding negative labels $\{(y_{\bar{a}},y_{\bar{o}})\}_{i = 1}^{n}$ randomly;
+
+4 for samples in the batch do
+5 Decompose image features: $\mathbf{v}_a = f_a\big(f_{a,o}(\mathbf{I}_{a,o})\big),\mathbf{v}_o = f_o\big(f_{a,o}(\mathbf{I}_{a,o})\big);$
+6 Construct concept subspaces:
+
+$$
+\begin{array}{l} \mathbf {x} _ {a} = p _ {a} ^ {v} (\mathbf {v} _ {a}), \mathbf {x} _ {o} = p _ {o} ^ {v} (\mathbf {v} _ {o}), \\ \hat {\mathbf {x}} _ {a} = p _ {a} ^ {w} \left(e _ {a} \left(y _ {a}\right)\right), \hat {\mathbf {x}} _ {o} = p _ {o} ^ {w} \left(e _ {o} \left(y _ {o}\right)\right), \\ \hat {\mathbf {x}} _ {\bar {a}} = p _ {a} ^ {w} \left(e _ {a} \left(y _ {\bar {a}}\right)\right), \hat {\mathbf {x}} _ {\bar {o}} = p _ {o} ^ {w} \left(e _ {o} \left(y _ {\bar {o}}\right)\right); \\ \end{array}
+$$
+
+7 Generate compositions from concept subspaces:
+
+$$
+\begin{array}{l} \mathbf {x} _ {a, o} = p _ {a, o} \left(f _ {a, o} (\mathbf {I} _ {a, o})\right), \mathbf {x} _ {a + o} = g \left(\mathbf {x} _ {a}, \mathbf {x} _ {o}\right), \\ \hat {\mathbf {x}} _ {a + o} = g (\hat {\mathbf {x}} _ {a}, \hat {\mathbf {x}} _ {o}), \hat {\mathbf {x}} _ {\bar {a} + o} = g (\hat {\mathbf {x}} _ {\bar {a}}, \hat {\mathbf {x}} _ {o}), \\ \hat {\mathbf {x}} _ {a + \bar {o}} = g (\hat {\mathbf {x}} _ {a}, \hat {\mathbf {x}} _ {\bar {o}}), \hat {\mathbf {x}} _ {\bar {a} + \bar {o}} = g (\hat {\mathbf {x}} _ {\bar {a}}, \hat {\mathbf {x}} _ {\bar {o}}), \\ \tilde {\mathbf {x}} _ {a + o} ^ {w v} = g (\mathbf {x} _ {a}, \hat {\mathbf {x}} _ {o}), \tilde {\mathbf {x}} _ {a + o} ^ {w v} = g (\hat {\mathbf {x}} _ {a}, \mathbf {x} _ {o}), \\ \tilde {\mathbf {x}} _ {a + \bar {o}} ^ {w v} = g (\mathbf {x} _ {a}, \hat {\mathbf {x}} _ {\bar {o}}), \tilde {\mathbf {x}} _ {\bar {a} + o} ^ {w v} = g (\hat {\mathbf {x}} _ {\bar {a}}, \mathbf {x} _ {o}); \\ \end{array}
+$$
+
+8 Calculate $\alpha ,\beta ,\mathcal{L}_{\mathrm{cls}},\mathcal{L}_{\mathrm{conc}},\mathcal{L}_{\mathrm{rec}},\mathcal{L}_{\mathrm{comp}}$ by
+
+$$
+\text {E q s .} (5) (6) (1) (2) (3) (4), \text {r e s p e c t i v e l y};
+$$
+
+9 end
+
+10 $\mathcal{L}_{\mathrm{train}} = \mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{conc}} + \mathcal{L}_{\mathrm{rec}} + \mathcal{L}_{\mathrm{comp}};$
+11 Update network parameters using $\nabla \mathcal{L}_{\mathrm{train}}$
+
+12 end
+
+as the prediction of I:
+
+$$
+P (\mathbf {I}) = \underset {y \in \tilde {\mathcal {Y}}} {\arg \min } d \left(\mathbf {x}, \hat {\mathbf {x}} _ {a + o}\right), \tag {7}
+$$
+
+where $\widetilde{\mathcal{V}} = \mathcal{V}^u$ for conventional ZSL, and $\widetilde{\mathcal{Y}} = \mathcal{Y}^u\cup \mathcal{Y}^s$ for GZSL.
+
+# 4. Experiments
+
+In this section, we present ablation studies and parameter analysis to validate the effectiveness of the proposed HiDC, and compare HiDC with several state of the arts to verify its superiority over current methods.
+
+# 4.1. Experimental Setup
+
+Datasets. Our proposed HiDC and baselines are evaluated on two popular benchmark datasets, i.e., MIT-States [11] and UT-Zappos [32].
+
+MIT-States contains 53,753 everyday images with a wide range of attributes (115 classes) and objects (245 classes). Each image is annotated with an attribute-object concept such as "young tiger", and there are 1962 pairs in total. We use the compositional split [17], i.e., 1262 pairs in $\mathcal{V}^s$ for training and 700 pairs in $\mathcal{V}^u$ for test.
+
+| Dataset | Attribute Classes | Object Classes | Seen Pairs (Images) | Unseen Pairs (Images) |
| MIT-States [11] | 115 | 245 | 1262 (34,562) | 700 (19,191) |
| UT-Zappos [32] | 16 | 12 | 83 (24,898) | 33 (4,228) |
+
+Table 1. Dataset descriptions with the numbers of attribute/object classes and seen/unseen pairs (images).
+
+| # | Modules | MIT-States | UT-Zappos |
| Lcls | Lconc | Lcomp | Lrec | α,β | Closed | Open | H-Mean | Closed | Open | H-Mean |
| 1 | ✓ | | | | | 12.6 | 2.3 | 3.9 | 39.0 | 4.8 | 8.6 |
| 2 | ✓ | ✓ | | | | 13.3 | 2.5 | 4.2 | 42.1 | 5.3 | 9.5 |
| 3 | ✓ | ✓ | ✓ | | | 15.0 | 12.3 | 13.5 | 50.6 | 47.2 | 48.8 |
| 4 | ✓ | ✓ | ✓ | ✓ | | 14.7 | 13.0 | 13.8 | 52.3 | 47.3 | 49.7 |
| 5 | ✓ | ✓ | ✓ | | ✓ | 15.2 | 14.3 | 14.7 | 52.4 | 51.5 | 52.0 |
| 6 | ✓ | ✓ | ✓ | ✓ | ✓ | 15.4 | 14.6 | 15.0 | 53.4 | 51.5 | 52.4 |
+
+Table 2. Ablation study on the five proposed modules. Results are reported in unseen pair recognition accuracy (%) under three evaluation metrics on the two datasets. Note that $\checkmark$ under $\alpha ,\beta$ denotes that the margin adjusting strategy is enabled.
+
+UT-Zappos contains 50,025 images of shoes, where each image is annotated with an attribute-object concept such as "canvas slippers". There are 16 attribute classes and 12 object classes. Following the same setting in [18, 27], we use the subset of 29,126 images in the experiments, i.e., 83 attribute-object pairs in $\mathcal{V}^s$ for training and 33 pairs in $\mathcal{V}^u$ for test. Table 1 summaries the details of the two datasets.
+
+Evaluation Metrics. We follow the same evaluation standard in [18, 27]. The top-1 accuracy of unseen attribute-object concept recognition is reported under three metrics:
+
+1) Closed, where the test candidate attribute-object pairs are from $\mathcal{Y}^u$ . Closed metric evaluates the recognition ability on unseen concepts. This metric restricts the test candidates into unseen pairs, in most cases yields higher accuracy due to reduced number of test candidates.
+2) Open, where the test candidate attribute-object pairs are from $\mathcal{Y}^u\cup \mathcal{Y}^s$ , corresponding to GZSL setting. Open metric evaluates the general recognition ability on both seen and unseen concepts. This metric often yields a relatively lower accuracy since all seen and unseen attribute-object pairs are included into the test candidates, and thus is more practical for real-world applications.
+3) $H$ -Mean, namely harmonic mean, which consolidates both Closed and Open metrics. $H$ -Mean is defined as
+
+$$
+A _ {\mathrm {H}} = 2 \times \frac {A _ {\text {C l o s e d}} \times A _ {\text {O p e n}}}{A _ {\text {C l o s e d}} + A _ {\text {O p e n}}}, \tag {8}
+$$
+
+where $A_{\mathrm{H}}$ , $A_{\mathrm{Closed}}$ , and $A_{\mathrm{Open}}$ are the accuracy measured under H-Mean, Closed, and Open metrics respectively. H-Mean penalizes large performance discrepancy between Closed and Open metrics, which has been widely adopted in GZSL for evaluating the overall generalizability.
+
+Implementation Details. Visual feature extractor $f_{a,o}(\cdot)$ is implemented as ResNet-18 [7] pre-trained on ImageNet [24], without fine-tuning for fair comparison with all the baselines. Projections $p(\cdot)$ are implemented as fully-connected layers, and the same with $g(\cdot)$ . Also, word
+
+embeddings $e(\cdot)$ are fully-connected layers trained from scratch without extra knowledge. The triplet margin $m$ is set to 2. Our model is implemented in PyTorch (version 1.1.0) with ADAM [12] optimizer. The code will be made public available.
+
+# 4.2. Ablation Study and Analysis
+
+Loss Functions. We ablate our model to evaluate the effectiveness of the proposed modules:
+
+1) Base model, which is only composed of the MLPs and the followed classifiers. The training is guided by $\mathcal{L}_{\mathrm{cls}}$ , and we test it by directly predicting attribute/object labels of test set images with the classifiers.
+2) Adding $\mathcal{L}_{\mathrm{conc}}$ , which further incorporates the attribute/object subspace constraints. The training is guided by $\mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{conc}}$ , and we test it the same way as above.
+3) Adding $\mathcal{L}_{\mathrm{comp}}$ (without margin adjusting). The training is guided by $\mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{conc}} + \mathcal{L}_{\mathrm{comp}}$ . Margin adjusting parameters $\alpha$ and $\beta$ in $\mathcal{L}_{\mathrm{comp}}$ are both fixed to 0.5. We test it as described in Section 3.3, the same as below.
+4) Adding $\mathcal{L}_{\mathrm{rec}}$ . The training is guided by $\mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{conc}} + \mathcal{L}_{\mathrm{comp}} + \mathcal{L}_{\mathrm{rec}}$ , where $\alpha$ and $\beta$ still remain 0.5.
+5) Adding $\alpha$ and $\beta$ (without $\mathcal{L}_{\mathrm{rec}}$ ). The training is guided by $\mathcal{L}_{\mathrm{cls}} + \mathcal{L}_{\mathrm{conc}} + \mathcal{L}_{\mathrm{comp}}$ , where $\alpha$ and $\beta$ are now variables given by Eqs. (5) (6).
+6) Full model.
+
+As shown in Table 2, each of the proposed modules contributes to the overall performance. Compared with Closed metric, our base model performs considerably worse under Open metric, for its lacking of the capability to learn contextual relationships between compositional sub-concepts, and thus fails to transfer knowledge from seen concepts to unseen ones. In contrast, our proposed $\mathcal{L}_{\mathrm{comp}}$ models contextual relationships by regularizing compositions generated from sub-concepts, where $\mathcal{L}_{\mathrm{conc}}$ ensures robust concept subspaces and $\mathcal{L}_{\mathrm{rec}}$ benefits the composing ability. Together with the adaptive learning ability offered by $\alpha$ and $\beta$ ,
+
+| Method | MIT-States | UT-Zappos |
| Closed | Open | H-Mean | Attribute | Object | Closed | Open | H-Mean | Attribute | Object |
| (with Lquin) | 14.6 | 12.2 | 13.3 | 20.4 | 25.8 | 52.7 | 47.1 | 49.7 | 51.1 | 77.4 |
| (with Lcomp) | 15.4 | 14.6 | 15.0 | 22.6 | 26.9 | 53.4 | 51.5 | 52.4 | 55.8 | 77.6 |
+
+Table 3. Comparison between the proposed ${\mathcal{L}}_{\text{comp }}$ in Eq. (4) and ${\mathcal{L}}_{\text{quin }}$ in [27]. Results are reported in unseen pair recognition accuracy (%) under three evaluation metrics on the two datasets. Also the attribute/object recognition accuracy (%) is reported as complementary.
+
+
+Figure 5. Analysis of scale parameter $\lambda$ . Results are reported in unseen pair recognition accuracy (\%) with changing $\lambda$ .
+
+
+
+our full model achieves favorable performance under both Closed and Open metrics. Arguably, adding trade-off parameters to each loss may benefit the accuracy, but we do not involve any trade-offs for generality and practicality of the proposed HiDC.
+
+Effect of Margin Adjusting. To further verify our adaptive learning ability, we compare the proposed $\mathcal{L}_{\mathrm{comp}}$ with the quintuplet loss $\mathcal{L}_{\mathrm{quin}}$ in current state of the art [27], where we implement our proposed HiDC with $\mathcal{L}_{\mathrm{quin}}$ in replace of $\mathcal{L}_{\mathrm{comp}}$ . As shown in Table 3, our proposed $\mathcal{L}_{\mathrm{comp}}$ is comprehensively superior to $\mathcal{L}_{\mathrm{quin}}$ as $\mathcal{L}_{\mathrm{comp}}$ improves the overall recognition performance, especially under the challenging Open metric. Moreover, benefiting from the adaptive learning ability, $\mathcal{L}_{\mathrm{comp}}$ is able to capture fine-grained attribute concepts more accurately than $\mathcal{L}_{\mathrm{quin}}$ .
+
+Effect of Scale Parameter $\lambda$ . The scale parameter $\lambda$ is employed to control the input scale of the sigmoid function for calculating $\alpha$ and $\beta$ in Eqs. (5) (6), which can be of help when using different datasets. Roughly, the sensitive region of a sigmoid function is $[-5, 5]$ , and the order of magnitude of its input in our experiments is around $-1$ . We select $\lambda$ in $\{0.1, 0.2, 0.5, 1, 2, 5, 10\}$ and report the recognition accuracy in Figure 5. Optimal performances can be observed when $\lambda$ is set to around 2. A suitable $\lambda$ is able to decrease the performance discrepancy between Closed and Open metrics, contributing to the generalizability from seen concepts to unseen ones.
+
+# 4.3. Comparisons with State of the Arts
+
+Baseline Methods. We compare our proposed HiDC against seven baselines:
+
+1) VisProd [16] trains two independent linear SVMs to predict attributes and objects.
+2) AnalogousAttr [4] trains a linear SVM for each seen
+
+pair and generates classifier weights for unseen pairs with Bayesian Probabilistic Tensor Factorization (BPTF).
+
+3) RedWine [17] trains linear SVMs for attribute/object sub-concepts and transforms the SVM weights with a neural network for unseen pairs.
+4) LabelEmbed [6] uses pre-trained GloVe [21] word embeddings rather than classifier weights to compose word vector representations, compared with RedWine.
+5) LabelEmbed+ [18] improves LabelEmbed by incorporating image features and training input representations.
+6) AttrAsOperator [18] treats attributes as operators and conducts attribute-conditioned transformations to learn unseen attribute-object pairs.
+7) AdvFineGrained [27] defines semi-negative samples and regulates them with a quintuplet loss. For fair comparison, we report its results without using multi-scale features to keep consistency with the other methods.
+
+Quantitative Results. As demonstrated in Table 4, our proposed HiDC consistently outperforms all seven baselines under all evaluation metrics. Except AttrAsOperator and AdvFineGrained, all other baselines perform exceedingly worse under Open metric than Closed, which actually suggests over-fitting to a subset of concepts. In contrast, HiDC exhibits the least performance discrepancy between Closed and Open metrics, verifying its superior generalizability from seen concepts to unseen ones. As we discussed in Section 2, AttrAsOperator unequally models each compositional sub-concept, and thus cannot generalize well on UT-Zappos and performs considerably worse than AdvFineGrained and HiDC that equally treat sub-concepts. Benefiting from our adaptive learning strategy, HiDC is able to capture more accurate fine-grained compositional relationships and outperforms state-of-the-art AdvFineGrained under all metrics. Compared to UT-Zappos, the overall worse performance on MIT-States is due to a larger number of unseen pairs with fewer number of training images for each pair, and also the images are more complicated.
+
+Qualitative Results. Our trained model can be directly employed to retrieve relevant images with text queries given as unseen attribute-object pairs $(y_{a}, y_{o})$ . We embed a query $(y_{a}, y_{o})$ and all image candidates $\mathbf{I}$ into the composition space as $\hat{\mathbf{x}}_{a + o}$ and $\mathbf{x}$ , and store the distances between $\hat{\mathbf{x}}_{a + o}$ and each $\mathbf{x}$ . Corresponding nearest images are selected as results. Figure 6 gives retrieval results of similar concepts that only differ in attributes. Our method outperforms peer
+
+| Method | MIT-States | UT-Zappos |
| Closed | Open | H-Mean | Closed | Open | H-Mean |
| VisProd [16] | 11.1 | 2.4 | 3.9 | 46.8 | 4.1 | 7.5 |
| AnalogousAttr [4] | 1.4 | 0.2 | 0.4 | 18.3 | 3.5 | 5.9 |
| RedWine [17] | 12.5 | 3.1 | 5.0 | 40.3 | 2.1 | 4.0 |
| LabelEmbed [6] | 13.4 | 3.3 | 5.3 | 25.8 | 5.2 | 8.7 |
| LabelEmbed+ [18] | 14.8 | 5.7 | 8.2 | 37.4 | 9.4 | 15.0 |
| AttrAsOperator [18] | 12.0 | 11.4 | 11.7 | 33.2 | 23.4 | 27.5 |
| AdvFineGrained [27] | 13.9 | 12.3 | 13.1 | 52.1 | 48.4 | 50.2 |
| HiDC (Ours) | 15.4 | 14.6 | 15.0 | 53.4 | 51.5 | 52.4 |
+
+Table 4. Comparison between our proposed HiDC and seven baselines. Results are reported in unseen pair recognition accuracy (%) under three evaluation metrics on the two datasets.
+
+| Young Tiger | Sheepskin Ankle-boots |
| Attr | | | | | | | | | |
| Adv | | | | | | | | | |
| Ours | | | | | | | | | |
| Old Tiger | Leather Ankle-boots |
+
+Figure 6. Qualitative results of retrieving young tiger, old tiger in MIT-States, and sheepskin ankle-boots, leather ankle-boots in UT-Zappos. The top-6 results of AttrAsOperator [18], AdvFineGrained [27], and our proposed HiDC are reported. Correct and incorrect results are respectively marked in green and red borders.
+
+methods [18, 27] and is better at distinguishing similar concepts. Still, attributes such as old are poorly learned due to ambiguous visual features and few training images.
+
+# 5. Conclusions
+
+In this paper, we present a hierarchical decomposition-and-composition (HiDC) model for unseen compositional concept recognition. We propose to decompose each seen image as visual elements and learn the corresponding sub-concepts in independent subspaces. We generate compositions from these subspaces in three hierarchical forms, and learn the composed concepts in a unified composition space. We define semi-positive concepts to depict fine-grained contextual relationships between sub-concepts, and learn accurate compositional concepts with adaptive pseudo supervision exploited from the generated compositions. Extensive ablation studies and experiments validate the effec
+
+tiveness of our proposed HiDC, and demonstrate its superiority over state-of-the-art approaches. Still, HiDC is limited to compositions with two seen sub-concepts. Extensions to compositions with more sub-concepts (or even unseen ones during training) will be our future work.
+
+# Acknowledgment
+
+This research was partially supported by the Key R&D Program-The Key Industry Innovation Chain of Shaanxi under Grant (2018ZDXM-GY-176 and 2019ZDLGY03-02-01), the National Key R&D Program of China under Grant (2017YFE0104100, 2016YFE0200400, 2018AAA0100704, and 2016YFB1001003), NSFC (61972250, U19B2035, U1609220, and 61672231), STCSM (18DZ1112300), and (ARC FL-170100117, DP-180103424) of Australia.
+
+# References
+
+[1] Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
+[2] Soravit Changpinyo, Wei-Lun Chao, and Fei Sha. Predicting visual exemplars of unseen classes for zero-shot learning. In ICCV, pages 3476-3485, 2017.
+[3] Binghui Chen and Weihong Deng. Hybrid-attention based decoupled metric learning for zero-shot image retrieval. In CVPR, pages 2750–2759, 2019.
+[4] Chao-Yeh Chen and Kristen Grauman. Inferring analogous attributes. In CVPR, pages 200-207, 2014.
+[5] Weihua Chen, Xiaotang Chen, Jianguo Zhang, and Kaiqi Huang. Beyond triplet loss: a deep quadruplet network for person re-identification. In CVPR, pages 403–412, 2017.
+[6] Mohamed Elhoseiny, Babak Saleh, and Ahmed Elgammal. Write a classifier: Zero-shot learning using purely textual descriptions. In ICCV, pages 2584-2591, 2013.
+[7] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[8] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv preprint arXiv:1703.07737, 2017.
+[9] Elad Hoffer and Nir Ailon. Deep metric learning using triplet network. In SIMBAD, pages 84-92, 2015.
+[10] He Huang, Changhu Wang, Philip S Yu, and Chang-Dong Wang. Generative dual adversarial network for generalized zero-shot learning. In CVPR, pages 801-810, 2019.
+[11] Phillip Isola, Joseph J Lim, and Edward H Adelson. Discovering states and transformations in image collections. In CVPR, pages 1383-1391, 2015.
+[12] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[13] Elyor Kodirov, Tao Xiang, and Shaogang Gong. Semantic autoencoder for zero-shot learning. In CVPR, pages 3174-3183, 2017.
+[14] Christoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Learning to detect unseen object classes by between-class attribute transfer. In CVPR, pages 951-958, 2009.
+[15] Christoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Attribute-based classification for zero-shot visual object categorization. IEEE Trans. Pattern Anal. Mach. Intell., 36(3):453-465, 2013.
+[16] Cewu Lu, Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. Visual relationship detection with language priors. In ECCV, pages 852–869, 2016.
+[17] Ishan Misra, Abhinav Gupta, and Martial Hebert. From red wine to red tomato: Composition with context. In $CVPR$ , pages 1792-1801, 2017.
+[18] Tushar Nagarajan and Kristen Grauman. Attributes as operators: factorizing unseen attribute-object compositions. In ECCV, pages 169-185, 2018.
+
+[19] Jian Ni, Shanghang Zhang, and Haiyong Xie. Dual adversarial semantics-consistent network for generalized zero-shot learning. In NeurIPS, 2019.
+[20] Mark Palatucci, Dean Pomerleau, Geoffrey E Hinton, and Tom M Mitchell. Zero-shot learning with semantic output codes. In NeurIPS, pages 1410-1418, 2009.
+[21] Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pages 1532-1543, 2014.
+[22] Senthil Purushwalkam, Maximilian Nickel, Abhinav Gupta, and Marc'Aurelio Ranzato. Task-driven modular networks for zero-shot compositional learning. In ICCV, 2019.
+[23] Bernardino Romera-Paredes and Philip Torr. An embarrassingly simple approach to zero-shot learning. In ICML, pages 2152-2161, 2015.
+[24] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. Int. J. Comput. Vis., 115(3):211-252, 2015.
+[25] Rodrigo Santa Cruz, Basura Fernando, Anoop Cherian, and Stephen Gould. Neural algebra of classifiers. In WACV, pages 729-737, 2018.
+[26] Wenlin Wang, Yunchen Pu, Vinay Kumar Verma, Kai Fan, Yizhe Zhang, Changyou Chen, Piyush Rai, and Lawrence Carin. Zero-shot learning via class-conditioned deep generative models. In AAAI, 2018.
+[27] Kun Wei, Muli Yang, Hao Wang, Cheng Deng, and Xianglong Liu. Adversarial fine-grained composition learning for unseen attribute-object recognition. In ICCV, pages 3741-3749, 2019.
+[28] Xinyi Xu, Huanhuan Cao, Yanhua Yang, Erkun Yang, and Cheng Deng. Zero-shot metric learning. In IJCAI, pages 3996-4002, 2019.
+[29] Xinyi Xu, Yanhua Yang, Cheng Deng, and Feng Zheng. Deep asymmetric metric learning via rich relationship mining. In CVPR, pages 4076-4085, 2019.
+[30] Xu Yang, Cheng Deng, Xianglong Liu, and Feiping Nie. New $\ell_{2,1}$ -norm relaxation of multi-way graph cut for clustering. In AAAI, 2018.
+[31] Xu Yang, Cheng Deng, Feng Zheng, Junchi Yan, and Wei Liu. Deep spectral clustering using dual autoencoder network. In CVPR, pages 4066-4075, 2019.
+[32] Aron Yu and Kristen Grauman. Fine-grained visual comparisons with local learning. In CVPR, pages 192-199, 2014.
+[33] Pengkai Zhu, Hanxiao Wang, and Venkatesh Saligrama. Generalized zero-shot recognition based on visually semantic embedding. In CVPR, pages 2995-3003, 2019.
\ No newline at end of file
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/images.zip b/learningunseenconceptsviahierarchicaldecompositionandcomposition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3c7011cc5ba10050cd076e597b19bbca970d6c0e
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:47b610aabfae215945b3de6ed2d9709cd9c6a27dffe97c52be7f9fb6927dd572
+size 622882
diff --git a/learningunseenconceptsviahierarchicaldecompositionandcomposition/layout.json b/learningunseenconceptsviahierarchicaldecompositionandcomposition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..424cff0445416a334da5db081eb5923777bb24bb
--- /dev/null
+++ b/learningunseenconceptsviahierarchicaldecompositionandcomposition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:523b2d90a7234d9c59efd9bca37f24f72e87134e558e8fb7774e1b4de6415b7c
+size 491757
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_content_list.json b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..776e14187bc92ce889a4af4ddee15fa3dee8f961
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9022031507aa5f1784106917ab60ae39f62a2efee7d3962f333852132d6003bc
+size 80548
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_model.json b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1cf198d5f929c97f7560664e136c4c904db69036
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50f3b845463baf3667fe83b94dae7c346d006bea48249316777072c10ae551e8
+size 101174
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_origin.pdf b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..433ddc9f46885020ae07d5ee0ba91c952b49f32f
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/c026c646-e483-4f8a-b929-fa2d71b30312_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:757cd69a4f304af07aa0e18f48b3377ef157b031d326d4c00658dda8fe8bbdd9
+size 1678228
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/full.md b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..7fcac0d67eaeb2e984c3bb8925303bb9c29bb617
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/full.md
@@ -0,0 +1,323 @@
+# Learning Unsupervised Hierarchical Part Decomposition of 3D Objects from a Single RGB Image
+
+Despoina Paschalidou1,3,5 Luc van Gool3,4,5 Andreas Geiger1,2,5
+
+1Max Planck Institute for Intelligent Systems Tübingen
+
+$^{2}$ University of Tübingen $^{3}$ Computer Vision Lab, ETH Zürich $^{4}$ KU Leuven
+
+Max Planck ETH Center for Learning Systems
+
+{firstname_lastname}@tue.mpg.de vangool@vision.ee.ethz.ch
+
+# Abstract
+
+Humans perceive the 3D world as a set of distinct objects that are characterized by various low-level (geometry, reflectance) and high-level (connectivity, adjacency, symmetry) properties. Recent methods based on convolutional neural networks (CNNs) demonstrated impressive progress in 3D reconstruction, even when using a single 2D image as input. However, the majority of these methods focuses on recovering the local 3D geometry of an object without considering its part-based decomposition or relations between parts. We address this challenging problem by proposing a novel formulation that allows to jointly recover the geometry of a 3D object as a set of primitives as well as their latent hierarchical structure without part-level supervision. Our model recovers the higher level structural decomposition of various objects in the form of a binary tree of primitives, where simple parts are represented with fewer primitives and more complex parts are modeled with more components. Our experiments on the ShapeNet and D-FAUST datasets demonstrate that considering the organization of parts indeed facilitates reasoning about 3D geometry.
+
+# 1. Introduction
+
+Within the first year of their life, humans develop a common-sense understanding of the physical behavior of the world [2]. This understanding relies heavily on the ability to properly reason about the arrangement of objects in a scene. Early works in cognitive science [21, 3, 27] stipulate that the human visual system perceives objects as a hierarchical decomposition of parts. Interestingly, while this seems to be a fairly easy task for the human brain, computer vision algorithms struggle to form such a high-level reasoning, particularly in the absence of supervision.
+
+The structure of a scene is tightly related to the inherent hierarchical organization of its parts. At a coarse level, a
+
+
+Figure 1: Hierarchical Part Decomposition. We consider the problem of learning structure-aware representations that go beyond part-level geometry and focus on part-level relationships. Here, we show our reconstruction as an unbalanced binary tree of primitives, given a single RGB image as input. Note that our model does not require any supervision on object parts or the hierarchical structure of the 3D object. We show that our representation is able to model different parts of an object with different levels of abstraction, leading to improved reconstruction quality.
+
+scene can be decomposed into objects and at a finer level each object can be represented with parts and these parts with finer parts. Structure-aware representations go beyond part-level geometry and focus on global relationships between objects and object parts. In this work, we propose a structure-aware representation that considers part relationships (Fig. 1) and models object parts with multiple levels of abstraction, namely geometrically complex parts are modeled with more components and simple parts are modeled with fewer components. Such a multi-scale representation can be efficiently stored at the required level of detail, namely with less parameters (Fig. 2).
+
+Recent breakthroughs in deep learning led to impressive progress in 3D shape extraction by learning a parametric function, implemented as a neural network, that maps an input image to a 3D shape represented as a mesh [32, 17, 25, 53, 58, 39], a pointcloud [13, 43, 1, 24, 49, 58], a voxel grid [5, 8, 14, 44, 45, 48, 55], 2.5D depth maps [26, 19, 42, 11] or an implicit surface [34, 7, 40, 46, 56, 35]. These approaches are mainly focused on reconstructing the geometry of an object, without taking into consideration its constituent parts. This results in non-interpretable reconstructions. To address the lack of interpretability, researchers shifted their attention to representations that employ shape primitives [51, 41, 31, 10]. While these methods yield meaningful semantic shape abstractions, part relationships do not explicitly manifest in their representations.
+
+Instead of representing 3D objects as an unstructured collection of parts, we propose a novel neural network architecture that recovers the latent hierarchical layout of an object without structure supervision. In particular, we employ a neural network that learns to recursively partition an object into its constituent parts by building a latent space that encodes both the part-level hierarchy and the part geometries. The predicted hierarchical decomposition is represented as an unbalanced binary tree of primitives. More importantly, this is learned without any supervision neither on the object parts nor their structure. Instead, our model jointly infers these latent variables during training.
+
+In summary, we make the following contributions: We jointly learn to predict part relationships and per-part geometry without any part-level supervision. The only supervision required for training our model is a watertight mesh of the 3D object. Our structure-aware representation yields semantic shape reconstructions that compare favorably to the state-of-the-art 3D reconstruction approach of [34], using significantly less parameters and without any additional post-processing. Moreover, our learned hierarchies have a semantic interpretation, as the same node in the learned tree is consistently used for representing the same object part. Experiments on the ShapeNet [6] and the Dynamic FAUST (D-FAUST) dataset [4] demonstrate the ability of our model to parse objects into structure-aware representations that are more expressive and geometrically accurate compared to approaches that only consider the 3D geometry of the object parts [51, 41, 15, 9]. Code and data is publicly available1.
+
+# 2. Related Work
+
+We now discuss the most related primitive-based and structure-aware shape representations.
+
+Supervised Structure-Aware Representations: Our work is related to methods that learn structure-aware shape representations that go beyond mere enumeration of object's
+
+
+Figure 2: Level of Detail. Our network represents an object as a tree of primitives. At each depth level $d$ , the target object is reconstructed with $2^d$ primitives. This results in a representation with various levels of detail. Naturally, reconstructions from deeper depth levels are more detailed. We associate each primitive with a unique color, thus primitives illustrated with the same color correspond to the same object part. Note that the above reconstructions are derived from the same model, trained with a maximum number of $2^4 = 16$ primitives. During inference, the network dynamically combines representations from different depth levels to recover the final prediction (last column).
+
+parts and recover the higher level structural decomposition of objects based on part-level relations [36]. Li et al. [30] represent 3D shapes using a symmetry hierarchy [54] and train a recursive neural network to predict its hierarchical structure. Their network learns a hierarchical organization of bounding boxes and then fills them with voxelized parts. Note that, this model considers supervision in terms of segmentation of objects into their primitive parts. Closely related to [30] is StructureNet [37] which leverages a graph neural network to represent shapes as n-ary graphs. StructureNet considers supervision both in terms of the primitive parameters and the hierarchies. Likewise, Hu et al. [22] propose a supervised model that recovers the 3D structure of a cable-stayed bridge as a binary parsing tree. In contrast our model is unsupervised, i.e., it does not require supervision neither on the primitive parts nor the part relations.
+
+Physics-Based Structure-Aware Representations: The task of inferring higher-level relationships among parts has also been investigated in different settings. Xu et al. [57] recover the object parts, their hierarchical structure and each part's dynamics by observing how objects are expected to move in the future. In particular, each part inherits the motion of its parent and the hierarchy emerges by minimizing the norm of these local displacement vectors. Kipf et al. [28] explore the use of variational autoencoders for learning the underlying interaction among various moving particles. Steenkiste et al. [52] extend the work of [16] on perceptual grouping of pixels and learn an interaction function that models whether objects interact with each other at multiple frames. For both [28, 52], the hierarchical structure emerges from interactions at multiple timestamps. In contrast to [57, 28, 52], our model does not relate hierarchies to motion, thus we do not require multiple frames for discovering the hierarchical structure.
+
+
+Figure 3: Overview. Given an input $\mathbf{I}$ (e.g., image, voxel grid), our network predicts a binary tree of primitives $\mathcal{P}$ of maximum depth $D$ . The feature encoder maps the input $\mathbf{I}$ into a feature vector $\mathbf{c}_0^0$ . Subsequently, the partition network splits each feature representation $\mathbf{c}_k^d$ in two $\{\mathbf{c}_{2k}^{d+1}, \mathbf{c}_{2k+1}^{d+1}\}$ , resulting in feature representations for $\{1, 2, 4, \ldots, 2^d\}$ primitives where $\mathbf{c}_k^d$ denotes the feature representation for the $k$ -th primitive at depth $d$ . Each $\mathbf{c}_k^d$ is passed to the structure network that "assigns" a part of the object to a specific primitive $p_k^d$ . As a result, each $p_k^d$ is responsible for representing a specific part of the target shape, denoted as the set of points $\mathcal{X}_k^d$ . Finally, the geometry network predicts the primitive parameters $\lambda_k^d$ and the reconstruction quality $q_k^d$ for each primitive. To compute the reconstruction loss, we measure how well the predicted primitives match the target object (Object Reconstruction) and the assigned parts (Part Reconstruction). We use plate notation to denote repetition over all nodes $k$ at each depth level $d$ . The final reconstruction is shown on the right.
+
+Supervised Primitive-Based Representations: Zou et al. [59] exploit LSTMs in combination with a Mixture Density Network (MDN) to learn a cuboid representation from depth maps. Similarly, Niu et al. [38] employ an RNN that iteratively predicts cuboid primitives as well as their symmetry and connectivity relationships from RGB images. More recently, Li et al. [31] utilize PointNet++ [43] for predicting per-point properties that are subsequently used for estimating the primitive parameters, by solving a series of linear least-squares problems. In contrast to [59, 38, 43], which require supervision in terms of the primitive parameters, our model is learned in an unsupervised fashion. In addition, modelling primitives with superquadrics, allows us to exploit a larger shape vocabulary that is not limited to cubes as in [59, 38] or spheres, cones, cylinders and planes as in [31]. Another line of work, complementary to ours, incorporates the principles of constructive solid geometry (CSG) [29] in a learning framework for shape modeling [47, 12, 50, 33]. These works require rich annotations for the primitive parameters and the sequence of predictions.
+
+Unsupervised Shape Abstraction: Closely related to our model are the works of [51, 41] that employ a convolutional neural network (CNN) to regress the parameters of the primitives that best describe the target object, in an unsupervised manner. Primitives can be cuboids [51] or superquadrics [41] and are learned by minimizing the discrepancy between the target and the predicted shape, by either computing the truncated bi-directional distance [51] or the Chamfer-distance between points on the target and the
+
+predicted shape [41]. While these methods learn a flat arrangement of parts, our structure-aware representation decomposes the depicted object into a hierarchical layout of semantic parts. This results in part geometries with different levels of granularity. Our model differs from [51, 41] also wrt. the optimization objective. We empirically observe that for both [51, 41], the proposed loss formulations suffer from various local minima that stem from the nature of their optimization objective. To mitigate this, we use the more robust classification loss proposed in [34, 7, 40] and train our network by learning to classify whether points lie inside or outside the target object. Very recently, [15, 9] explored such a loss for recovering shape elements from 3D objects. Genova et al. [15] leverage a CNN to learn to predict the parameters of a set of axis-aligned 3D Gaussians from a set of depth maps rendered at different viewpoints. Similarly, Deng et al. [9] employ an autoencoder to recover the geometry of an object as a collection of smooth convexes. In contrast to [15, 9], our model goes beyond the local geometry of parts and attempts to recover the underlying hierarchical structure of the object parts.
+
+# 3. Method
+
+In this section, we describe our novel neural network architecture for inferring structure-aware representations. Given an input $\mathbf{I}$ (e.g., RGB image, voxel grid) our goal is to learn a neural network $\phi_{\theta}$ , which maps the input to a set of primitives that best describe the target object. The target object is represented as a set of pairs $\mathcal{X} = \{(x_i,o_i)\}_{i = 1}^N$
+
+where $\mathbf{x}_i$ corresponds to the location of the $i$ -th point and $o_i$ denotes its label, namely whether $\mathbf{x}_i$ lies inside $(o_i = 1)$ or outside $(o_i = 0)$ the target object. We acquire these $N$ pairs by sampling points inside the bounding box of the target mesh and determine their labels using a watertight mesh of the target object. During training, our network learns to predict shapes that contain all internal points from the target mesh $(o_i = 1)$ and none of the external $(o_i = 0)$ . We discuss our sampling strategy in our supplementary.
+
+Instead of predicting an unstructured set of primitives, we recover a hierarchical decomposition over parts in the form of a binary tree of maximum depth $D$ as
+
+$$
+\mathcal {P} = \left\{\left\{p _ {k} ^ {d} \right\} _ {k = 0} ^ {2 ^ {d} - 1} \mid d = \{0 \dots D \} \right\} \tag {1}
+$$
+
+where $p_k^d$ is the $k$ -th primitive at depth $d$ . Note that for the $k$ -th node at depth $d$ , its parent is defined as $p_{\lfloor \frac{k}{2} \rfloor}^{d-1}$ and its two children as $p_{2k}^{d+1}$ and $p_{2k+1}^{d+1}$ .
+
+At every depth level, $\mathcal{P}$ reconstructs the target object with $\{1,2,\dots ,\mathbf{M}\}$ primitives. $M$ is an upper limit to the maximum number of primitives and is equal to $2^{D}$ . More specifically, $\mathcal{P}$ is constructed as follows: the root node is associated with the root primitive that represents the entire shape and is recursively split into two nodes (its children) until reaching the maximum depth $D$ . This recursive partition yields reconstructions that recover the geometry of the target shape using $2^{d}$ primitives, where $d$ denotes the depth level (see Fig. 2). Throughout this paper, the term node is used interchangeably with primitive and always refers to the primitive associated with this particular node.
+
+Every primitive is fully described by a set of parameters $\lambda_k^d$ that define its shape, size and position in 3D space. Since not all objects require the same number of primitives, we enable our model to predict unbalanced trees, i.e. stop recursive partitioning if the reconstruction quality is sufficient. To achieve this our network also regresses a reconstruction quality for each primitive denoted as $q_k^d$ . Based on the value of each $q_k^d$ the network dynamically stops the recursive partitioning process resulting in parsimonious representations as illustrated in Fig. 1.
+
+# 3.1. Network Architecture
+
+Our network comprises three main components: (i) the partition network that recursively splits the shape representation into representations of parts, (ii) the structure network that focuses on learning the hierarchical arrangement of primitives, namely assigning parts of the object to the primitives at each depth level and (iii) the geometry network that recovers the primitive parameters. An overview of the proposed pipeline is illustrated in Fig. 3. The first part of our pipeline is a feature encoder, implemented with a ResNet-18 [20], ignoring the final fully connected layer. Instead, we only keep the feature vector of length $F = 512$ after average pooling.
+
+Partition Network: The feature encoder maps the input $\mathbf{I}$ to an intermediate feature representation $\mathbf{c}_0^0\in \mathbb{R}^F$ that describes the root node $p_0^0$ . The partition network implements a function $p_{\theta}:\mathbb{R}^{F}\to \mathbb{R}^{2F}$ that recursively partitions the feature representation $\mathbf{c}_k^d$ of node $p_k^d$ into two feature representations, one for each children $\{p_{2k}^{d + 1},p_{2k + 1}^{d + 1}\}$ :
+
+$$
+p _ {\theta} \left(\mathbf {c} _ {k} ^ {d}\right) = \left\{\mathbf {c} _ {2 k} ^ {d + 1}, \mathbf {c} _ {2 k + 1} ^ {d + 1} \right\}. \tag {2}
+$$
+
+Each primitive $p_k^d$ is directly predicted from $\mathbf{c}_k^d$ without considering the other intermediate features. This implies that the necessary information for predicting the primitive parameterization is entirely encapsulated in $\mathbf{c}_k^d$ and not in any other intermediate feature representation.
+
+Structure Network: Due to the lack of ground-truth supervision in terms of the tree structure, we introduce the structure network that seeks to learn a pseudo-ground truth part-decomposition of the target object. More formally, it learns a function $s_{\theta} : \mathbb{R}^{F} \to \mathbb{R}^{3}$ that maps each feature representation $\mathbf{c}_k^d$ to $\mathbf{h}_k^d$ a spatial location in $\mathbb{R}^3$ .
+
+One can think of each $\mathbf{h}_k^d$ as the (geometric) centroid of a specific part of the target object. We define
+
+$$
+\mathcal {H} = \left\{\left\{\mathbf {h} _ {k} ^ {d} \right\} _ {k = 0} ^ {2 ^ {d} - 1} \mid d = \{0 \dots D \} \right\} \tag {3}
+$$
+
+the set of centroids of all parts of the object at all depth levels. From $\mathcal{H}$ and $\mathcal{X}$ , we are now able to derive the part decomposition of the target object as the set of points $\mathcal{X}_k^d$ that are internal to a part with centroid $\mathbf{h}_k^d$ .
+
+Note that, in order to learn $\mathcal{P}$ , we need to be able to partition the target object into $2^{d}$ parts at each depth level. At the root level ( $d = 0$ ), $\mathbf{h}_0^0$ is the centroid of the target object and $\mathcal{X}_0^0$ is equal to $\mathcal{X}$ . For $d = 1$ , $\mathbf{h}_0^1$ and $\mathbf{h}_1^1$ are the centroids of the two parts representing the target object. $\mathcal{X}_0^1$ and $\mathcal{X}_1^1$ comprise the same points as $\mathcal{X}_0^0$ . For the external points, the labels remain the same. For the internal points, however, the labels are distributed between $\mathcal{X}_0^1$ and $\mathcal{X}_1^1$ based on whether $\mathbf{h}_0^1$ or $\mathbf{h}_1^1$ is closer. That is, $\mathcal{X}_0^1$ and $\mathcal{X}_1^1$ each contain more external labels and less internal labels compared to $\mathcal{X}_0^0$ . The same process is repeated until we reach the maximum depth.
+
+More formally, we define the set of points $\mathcal{X}_k^d$ corresponding to primitive $p_k^d$ implicitly via its centroid $\mathbf{h}_k^d$ :
+
+$$
+\mathcal {X} _ {k} ^ {d} = \left\{N _ {k} (\mathbf {x}, o) \quad \forall (\mathbf {x}, o) \in \mathcal {X} _ {\lfloor \frac {k}{2} \rfloor} ^ {d - 1} \right\} \tag {4}
+$$
+
+Here, $\mathcal{X}_{\lfloor \frac{k}{2}\rfloor}^{d - 1}$ denotes the points of the parent. The function $N_{k}(\mathbf{x},o)$ assigns each $(\mathbf{x},o)\in \mathcal{X}_{\lfloor \frac{k}{2}\rfloor}^{d - 1}$ to part $p_k^d$ if it is closer to $\mathbf{h}_k^d$ than to $\mathbf{h}_{s(k)}^d$ where $s(k)$ is the sibling of $k$ :
+
+$$
+N _ {k} (\mathbf {x}, o) = \left\{ \begin{array}{l l} (\mathbf {x}, 1) & \| \mathbf {h} _ {k} ^ {d} - \mathbf {x} \| \leq \| \mathbf {h} _ {s (k)} ^ {d} - \mathbf {x} \| \wedge o = 1 \\ (\mathbf {x}, 0) & \text {o t h e r w i s e} \end{array} \right. \tag {5}
+$$
+
+
+(b)
+Figure 4: Structure Network. We visualize the centroids $\mathbf{h}_k^d$ and the 3D points $\mathcal{X}_k^d$ that correspond to the estimated part $p_k^d$ for the first three levels of the tree. Fig. 4b explains visually Eq. (4). We color points based on their closest centroid $\mathbf{h}_k^d$ . Points illustrated with the color associated to a part are labeled "internal" ( $o = 1$ ). Points illustrated with gray are labeled "external" ( $o = 0$ ).
+
+Intuitively, this process recursively associates points to the closest sibling at each level of the binary tree where the association is determined by the label $o$ . Fig. 4 illustrates the part decomposition of the target shape using $\mathcal{H}$ . We visualize each part with a different color.
+
+Geometry Network: The geometry network learns a function $r_{\theta} : \mathbb{R}^{F} \to \mathbb{R}^{K} \times [0,1]$ that maps the feature representation $\mathbf{c}_k^d$ to its corresponding primitive parametrization $\lambda_k^d$ and the reconstruction quality prediction $q_k^d$ :
+
+$$
+r _ {\theta} \left(\mathbf {c} _ {k} ^ {d}\right) = \left\{\lambda_ {k} ^ {d}, q _ {k} ^ {d} \right\}. \tag {6}
+$$
+
+# 3.2. Primitive Parametrization
+
+For primitives, we use superquadric surfaces. A detailed analysis of the use of superquadrics as geometric primitives is beyond the scope of this paper, thus we refer the reader to [23, 41] for more details. Below, we focus on the properties most relevant to us. For any point $\mathbf{x} \in \mathbb{R}^3$ , we can determine whether it lies inside or outside a superquadric using its implicit surface function which is commonly referred to as the inside-outside function:
+
+$$
+f (\mathbf {x}; \lambda) = \left(\left(\frac {x}{\alpha_ {1}}\right) ^ {\frac {2}{\epsilon_ {2}}} + \left(\frac {y}{\alpha_ {2}}\right) ^ {\frac {2}{\epsilon_ {2}}}\right) ^ {\frac {\epsilon_ {2}}{\epsilon_ {1}}} + \left(\frac {z}{\alpha_ {3}}\right) ^ {\frac {2}{\epsilon_ {1}}} \tag {7}
+$$
+
+where $\alpha = [\alpha_{1},\alpha_{2},\alpha_{3}]$ determine the size and $\epsilon = [\epsilon_1,\epsilon_2]$ the shape of the superquadric. If $f(\mathbf{x};\lambda) = 1.0$ , the given point $\mathbf{x}$ lies on the surface of the superquadric, if $f(\mathbf{x};\lambda) < 1.0$ the corresponding point lies inside and if $f(\mathbf{x};\lambda) > 1.0$ the point lies outside the superquadric. To account for numerical instabilities that arise from the exponentiations in (7), instead of directly using $f(\mathbf{x};\lambda)$ , we follow [23] and use $f(\mathbf{x};\lambda)^{\epsilon_1}$ . Finally, we convert the inside-outside function to an occupancy function, $g:\mathbb{R}^3\to [0,1]$ ..
+
+$$
+g (\mathbf {x}; \lambda) = \sigma (s (1 - f (\mathbf {x}; \lambda) ^ {\epsilon_ {1}})) \tag {8}
+$$
+
+that results in per-point predictions suitable for the classification problem we want to solve. $\sigma (\cdot)$ is the sigmoid function and $s$ controls the sharpness of the transition of the occupancy function. To account for any rigid body motion transformations, we augment the primitive parameters with a translation vector $\mathbf{t} = [t_x,t_y,t_z]$ and a quaternion $\mathbf{q} = [q_0,q_1,q_2,q_3]$ [18], which determine the coordinate system transformation $\mathcal{T}(\mathbf{x}) = \mathbf{R}(\lambda)\mathbf{x} + \mathbf{t}(\lambda)$ . Note that in (7), (8) we omit the primitive indexes $k,d$ for clarity. Visualizations of (8) are given in our supplementary.
+
+# 3.3. Network Losses
+
+Our optimization objective $\mathcal{L}(\mathcal{P},\mathcal{H};\mathcal{X})$ is a weighted sum over four terms:
+
+$$
+\begin{array}{l} \mathcal {L} (\mathcal {P}, \mathcal {H}; \mathcal {X}) = \mathcal {L} _ {s t r} (\mathcal {H}; \mathcal {X}) + \mathcal {L} _ {r e c} (\mathcal {P}; \mathcal {X}) \\ \begin{array}{l} - \mathcal {L} _ {s t r} (\pi , \mathcal {X}) + \mathcal {L} _ {r e c} (\mathcal {P}, \mathcal {X}) \\ + \mathcal {L} _ {c o m p} (\mathcal {P}; \mathcal {X}) + \mathcal {L} _ {p r o x} (\mathcal {P}) \end{array} \tag {9} \\ \end{array}
+$$
+
+Structure Loss: Using $\mathcal{H}$ and $\mathcal{X}$ , we can decompose the target mesh into a hierarchy of disjoint parts. Namely, each $\mathbf{h}_k^d$ implicitly defines a set of points $\mathcal{X}_k^d$ that describe a specific part of the object as described in (4). To quantify how well $\mathcal{H}$ clusters the input shape $\mathcal{X}$ we minimize the sum of squared distances, similar to classical k-means:
+
+$$
+\mathcal {L} _ {s t r} (\mathcal {H}; \mathcal {X}) = \sum_ {h _ {k} ^ {d} \in \mathcal {H}} \frac {1}{2 ^ {d} - 1} \sum_ {\left(\mathbf {x}, o\right) \in \mathcal {X} _ {k} ^ {d}} o \| \mathbf {x} - \mathbf {h} _ {k} ^ {d} \| _ {2} \tag {10}
+$$
+
+Note that for the loss in (10), we only consider gradients with respect to $\mathcal{H}$ as $\mathcal{X}_k^d$ is implicitly defined via $\mathcal{H}$ . This results in a procedure resembling Expectation-Maximization (EM) for clustering point clouds, where computing $\mathcal{X}_k^d$ is the expectation step and each gradient updated corresponds to the maximization step. In contrast to EM, however, we minimize this loss across all instances of the training set, leading to parsimonious but consistent shape abstractions. An example of this clustering process performed at training-time is shown in Fig. 4.
+
+Reconstruction Loss: The reconstruction loss measures how well the predicted primitives match the target shape. Similar to [15, 9], we formulate our reconstruction loss as a
+
+binary classification problem, where our network learns to predict the surface boundary of the predicted shape by classifying whether points in $\mathcal{X}$ lie inside or outside the target object. To do this, we first define the occupancy function of the predicted shape at each depth level. Using the occupancy function of each primitive defined in (8), the occupancy function of the overall shape at depth $d$ becomes:
+
+$$
+G ^ {d} (\mathbf {x}) = \max _ {k \in 0.. 2 ^ {d} - 1} g _ {k} ^ {d} \left(\mathbf {x}; \lambda_ {k} ^ {d}\right) \tag {11}
+$$
+
+Note that (11) is simply the union of the per-primitive occupancy functions. We formulate our reconstruction loss wrt. the object and wrt. each part of the object as follows
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {r e c}} (\mathcal {P}; \mathcal {X}) = \sum_ {(\mathbf {x}, o) \in \mathcal {X}} \sum_ {d = 0} ^ {D} L \left(G ^ {d} (\mathbf {x}), o\right) + (12) \\ \sum_ {d = 0} ^ {D} \sum_ {k = 0} ^ {2 ^ {d} - 1} \sum_ {(\mathbf {x}, o) \in \mathcal {X} _ {k} ^ {d}} L \left(g _ {k} ^ {d} \left(\mathbf {x}; \lambda_ {k} ^ {d}\right), o\right) (13) \\ \end{array}
+$$
+
+where $L(\cdot)$ is the binary cross entropy loss. The first term is an object reconstruction loss (12) and measures how well the predicted shape at each depth level matches the target shape. The second term (13) which we refer to as part reconstruction loss measures how accurately each primitive $p_k^d$ matches the part of the object it represents, defined as the point set $\mathcal{X}_k^d$ . Note that the part reconstruction loss enforces non-overlapping primitives, as $\mathcal{X}_k^d$ are non-overlapping by construction. We illustrate our reconstruction loss in Fig. 3.
+
+Compatibility Loss: This loss measures how well our model is able to predict the expected reconstruction quality $q_{k}^{d}$ of a primitive $p_{k}^{d}$ . A standard metric for measuring the reconstruction quality is the Intersection over Union (IoU). We therefore task our network to predict the reconstruction quality of each primitive $p_{k}^{d}$ in terms of its IoU wrt. the part of the object $\mathcal{X}_{k}^{d}$ it represents:
+
+$$
+\mathcal {L} _ {\text {c o m p}} (\mathcal {P}; \mathcal {X}) = \sum_ {d = 0} ^ {\mathcal {D}} \sum_ {k = 0} ^ {2 ^ {d} - 1} \left(q _ {k} ^ {d} - \operatorname {I o U} \left(p _ {k} ^ {d}, \mathcal {X} _ {k} ^ {d}\right)\right) ^ {2} \tag {14}
+$$
+
+During inference, $q_{k}^{d}$ allows for further partitioning primitives whose IoU is below a threshold $q_{th}$ and to stop if the reconstruction quality is high (the primitive fits the object part well). As a result, our model predicts an unbalanced tree of primitives where objects can be represented with various number of primitives from 1 to $2^{D}$ . This results in parsimonious representations where simple parts are represented with fewer primitives. We empirically observe that the threshold value $q_{th}$ does not significantly affect our results, thus we empirically set it to 0.6. During training, we do not use the predicted reconstruction quality $q_{k}^{d}$ to dynamically partition the nodes but instead predict the full tree.
+
+
+(a) Input
+
+
+(b) Prediction
+
+
+
+
+(d) Input
+
+
+(e) Prediction
+Figure 5: Predicted Hierarchies on ShapeNet. Our model recovers the geometry of an object as an unbalanced hierarchy over primitives, where simpler parts (e.g. base of the lamp) are represented with few primitives and more complex parts (e.g. wings of the plane) with more.
+
+
+(c) Predicted Hierarchy
+(f) Predicted Hierarchy
+
+Proximity Loss: This term is added to counteract vanishing gradients due to the sigmoid in (8). For example, if the initial prediction of a primitive is far away from the target object, the reconstruction loss will be large while its gradients will be small. As a result, it is impossible to "move" this primitive to the right location. Thus, we introduce a proximity loss which encourages the center of each primitive $p_k^d$ to be close to the centroid of the part it represents:
+
+$$
+\mathcal {L} _ {p r o x} (\mathcal {P}) = \sum_ {d = 0} ^ {D} \sum_ {k = 0} ^ {2 ^ {d} - 1} \| \mathbf {t} \left(\lambda_ {k} ^ {d}\right) - \mathbf {h} _ {k} ^ {d} \| _ {2} \tag {15}
+$$
+
+where $\mathbf{t}(\lambda_k^d)$ is the translation vector of the primitive $p_k^d$ and $\mathbf{h}_k^d$ is the centroid of the part it represents. We demonstrate the vanishing gradient problem in our supplementary.
+
+# 4. Experiments
+
+In this section, we provide evidence that our structure-aware representation yields semantic shape abstractions while achieving competitive (or even better results) than various state-of-the-art shape reconstruction methods, such as [34]. Moreover, we also investigate the quality of the learned hierarchies and show that the use of our structure-aware representation yields semantic scene数据分析. Im
+
+| Category | Chamfer-L1 | IoU |
| OccNet [34] | SQs [41] | SIF [15] | CvxNets [9] | Ours | OccNet [34] | SQs [41] | SIF [15] | CvxNets [9] | Ours |
| airplane | 0.147 | 0.122 | 0.065 | 0.093 | 0.175 | 0.571 | 0.456 | 0.530 | 0.598 | 0.529 |
| bench | 0.155 | 0.114 | 0.131 | 0.133 | 0.153 | 0.485 | 0.202 | 0.333 | 0.461 | 0.437 |
| cabinet | 0.167 | 0.087 | 0.102 | 0.160 | 0.087 | 0.733 | 0.110 | 0.648 | 0.709 | 0.658 |
| car | 0.159 | 0.117 | 0.056 | 0.103 | 0.141 | 0.737 | 0.650 | 0.657 | 0.675 | 0.702 |
| chair | 0.228 | 0.138 | 0.192 | 0.337 | 0.114 | 0.501 | 0.176 | 0.389 | 0.491 | 0.526 |
| display | 0.278 | 0.106 | 0.208 | 0.223 | 0.137 | 0.471 | 0.200 | 0.491 | 0.576 | 0.633 |
| lamp | 0.479 | 0.189 | 0.454 | 0.795 | 0.169 | 0.371 | 0.189 | 0.260 | 0.311 | 0.441 |
| speaker | 0.300 | 0.132 | 0.253 | 0.462 | 0.108 | 0.647 | 0.136 | 0.577 | 0.620 | 0.660 |
| rifle | 0.141 | 0.127 | 0.069 | 0.106 | 0.203 | 0.474 | 0.519 | 0.463 | 0.515 | 0.435 |
| sofa | 0.194 | 0.106 | 0.146 | 0.164 | 0.128 | 0.680 | 0.122 | 0.606 | 0.677 | 0.693 |
| table | 0.189 | 0.110 | 0.264 | 0.358 | 0.122 | 0.506 | 0.180 | 0.372 | 0.473 | 0.491 |
| phone | 0.140 | 0.112 | 0.095 | 0.083 | 0.149 | 0.720 | 0.185 | 0.658 | 0.719 | 0.770 |
| vessel | 0.218 | 0.125 | 0.108 | 0.173 | 0.178 | 0.530 | 0.471 | 0.502 | 0.552 | 0.570 |
| mean | 0.215 | 0.122 | 0.165 | 0.245 | 0.143 | 0.571 | 0.277 | 0.499 | 0.567 | 0.580 |
+
+Table 1: Single Image Reconstruction on ShapeNet. Quantitative evaluation of our method against OccNet [34] and primitive-based methods with superquadrics [41] (SQs), SIF [15] and CvxNets [9]. We report the volumetric IoU (higher is better) and the Chamfer- $L_{1}$ distance (lower is better) wrt. the ground-truth mesh.
+
+
+Figure 6: Predicted Hierarchies on D-FAUST. We visualize the input RGB image (a), the prediction (b) and the predicted hierarchy (c). We associate each primitive with a color and we observe that our network learns semantic mappings of body parts across different articulations, e.g. node (3, 3) is used for representing the upper part of the left leg, whereas node (1, 1) is used for representing the upper body.
+
+plementation details and ablations on the impact of various components of our model are detailed in the supplementary.
+
+Datasets: First, we use the ShapeNet [6] subset of Choy et al. [8], training our model using the same image renderings and train/test splits as Choy et al. Furthermore, we also
+
+experiment with the Dynamic FAUST (D-FAUST) dataset [4], which contains meshes for 129 sequences of 10 humans performing various tasks, such as "running", "punching" or "shake arms". We randomly divide these sequences into training (91), test (29) and validation (9).
+
+Baselines: Closely related to our work are the shape parsing methods of [51] and [41] that employ cuboids and superquadric surfaces as primitives. We refer to [41] as SQs and we evaluate using their publicly available code2. Moreover, we also compare to the Structured Implicit Function (SIF) [15] that represent the object's geometry as the isolevel of the sum of a set of Gaussians and to the CvxNets [9] that represent the object parts using smooth convex shapes. Finally, we also report results for OccNet [34], which is the state-of-the-art implicit shape reconstruction technique. Note that in contrast to us, [34] does not consider part decomposition or any form of latent structure.
+
+Evaluation Metrics: Similar to [34, 15, 9], we evaluate our model quantitatively and report the mean Volumetric IoU and the Chamfer- $L_{1}$ distance. Both metrics are discussed in detail in our supplementary.
+
+# 4.1. Results on ShapeNet
+
+We evaluate our model on the single-view 3D reconstruction task and compare against various state-of-the-art methods. We follow the standard experimental setup and train a single model for the 13 ShapeNet objects. Both our model and [41] are trained for a maximum number of 64
+
+
+Figure 7: Single Image 3D Reconstruction. The input image is shown in (a, d), the other columns show the results of our method (c, f) compared to [41] (b, e). Additional qualitative results are provided in the supplementary.
+
+primitives $(D = 6)$ . For SIF [15] and CvxNets [9] the reported results are computed using 50 shape elements. The quantitative results are reported in Table 1. We observe that our model outperforms the primitive-based baselines in terms of the IoU as well as the OccNet [34] for the majority of objects (7/13). Regarding Chamfer- $L_{1}$ , our model is the second best amongst primitive representations, as [41] is optimized for this metric. This also justifies that [41] performs worse in terms of IoU. While our model performs on par with existing state-of-the-art primitive representations in terms of Chamfer- $L_{1}$ , it also recovers hierarchies, which none of our baselines do. A qualitative comparison of our model with SQs [41] is depicted in Fig. 7. Fig. 5 visualizes the learned hierarchy for this model. We observe that our model recovers unbalanced binary trees that decompose a 3D object into a set of parts. Note that [51, 41] were originally introduced for volumetric 3D reconstruction, thus we provide an experiment on this task in our supplementary.
+
+# 4.2. Results on D-FAUST
+
+We also demonstrate results on the Dynamic FAUST (D-FAUST) dataset [4], which is very challenging due to the fine structure of the human body. We evaluate our model on the single-view 3D reconstruction task and compare with [41]. Both methods are trained for a maximum number of 32 primitives $(D = 5)$ . Fig. 6 illustrates the predicted hierarchy on different humans from the test set. We note that the predicted hierarchies are indeed semantic, as the same nodes are used for modelling the same part of the human body. Fig. 8 compares the predictions of our model with SQs. We observe that while our baseline yields more parsimonious abstractions, their level of detail is limited. On the contrary, our model captures the geometry of the human body with more detail. This is also validated quantitatively, from Table 2. Note that in contrast to ShapeNet, D-FAUST does not contain long, thin (e.g. legs of tables, chairs) or hollow parts (e.g. cars), thus optimizing for either Chamfer-L1 or IoU leads to similar results. Hence, our method out
+
+
+Figure 8: Single Image 3D Reconstruction. Qualitative comparison of our reconstructions (c, f), to [41] that does not consider any form of structure (b, e). The input RGB image is shown in (a, d). Note how our representation yields geometrically more accurate reconstructions, while being semantic, e.g., the primitive colored in blue consistently represents the head of the human while the primitive colored in orange captures the left thigh. Additional qualitative results are provided in the supplementary.
+
+ | IoU | Chamfer-L1 |
| SQs [41] | 0.608 | 0.189 |
| Ours | 0.699 | 0.098 |
+
+Table 2: Single Image Reconstruction on D-FAUST. We report the volumetric IoU and the Chamfer-L1 wrt. the ground-truth mesh for our model compared to [41].
+
+performs [41] also in terms of Chamfer-L1. Due to lack of space, we only illustrate the predicted hierarchies up to the fourth depth level. The full hierarchies are provided in the supplementary.
+
+# 5. Conclusion
+
+We propose a learning-based approach that jointly predicts part relationships together with per-part geometries in the form of a binary tree without requiring any part-level annotations for training. Our model yields geometrically accurate primitive-based reconstructions that outperform existing shape abstraction techniques while performing competitively with more flexible implicit shape representations. In future work, we plan to extend our model and predict hierarchical structures that remain consistent in time, thus yielding kinematic trees of objects. Another future direction, is to consider more flexible primitives such as general convex shapes and incorporate additional constraints e.g. symmetry to further improve the reconstructions.
+
+# Acknowledgments
+
+This research was supported by the Max Planck ETH Center for Learning Systems and a HUWEI research gift.
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas J. Guibas. Learning representations and generative models for 3d point clouds. In Proc. of the International Conf. on Machine learning (ICML), 2018. 2
+[2] Renée Baillargeon. Infants' physical world. Current directions in psychological science, 13(3):89-94, 2004. 1
+[3] Irving Biederman. Human image understanding: Recent research and a theory. Computer Vision, Graphics, and Image Processing, 1986. 1
+[4] Federica Bogo, Javier Romero, Gerard Pons-Moll, and Michael J. Black. Dynamic FAUST: registering human bodies in motion. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. 2, 7, 8
+[5] André Brock, Theodore Lim, James M. Ritchie, and Nick Weston. Generative and discriminative voxel modeling with convolutional neural networks. arXiv.org, 1608.04236, 2016. 2
+[6] Angel X. Chang, Thomas A. Funkhouser, Leonidas J. Guibas, Pat Hanrahan, Qi-Xing 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. arXiv.org, 1512.03012, 2015. 2, 7
+[7] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2, 3
+[8] Christopher Bongsoo Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In Proc. of the European Conf. on Computer Vision (ECCV), 2016. 2, 7
+[9] Boyang Deng, Kyle Genova, Soroosh Yazdani, Sofien Bouaziz, Geoffrey Hinton, and Andrea Tagliasacchi. Cvxnets: Learnable convex decomposition. arXiv.org, 2019. 2,3,5,7,8
+[10] Theo Deprelle, Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. Learning elementary structures for 3d shape generation and matching. In Advances in Neural Information Processing Systems (NIPS), 2019. 2
+[11] Simon Donne and Andreas Geiger. Learning non-volumetric depth fusion using successive reprojections. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[12] Kevin Ellis, Daniel Ritchie, Armando Solar-Lezama, and Joshua B. Tenenbaum. Learning to infer graphics programs from hand-drawn images. In Advances in Neural Information Processing Systems (NIPS), 2018. 3
+[13] Haoqiang Fan, Hao Su, and Leonidas J. Guibas. A point set generation network for 3d object reconstruction from a single image. Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[14] Matheus Gadelha, Subhransu Maji, and Rui Wang. 3d shape induction from 2d views of multiple objects. In Proc. of the International Conf. on 3D Vision (3DV), 2017. 2
+[15] Kyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna, William T. Freeman, and Thomas A. Funkhouser. Learning
+
+shape templates with structured implicit functions. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2, 3, 5, 7, 8
+[16] Klaus Greff, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Neural expectation maximization. In Advances in Neural Information Processing Systems (NIPS), 2017. 2
+[17] Thibault Groueix, Matthew Fisher, Vladimir G. Kim, Bryan C. Russell, and Mathieu Aubry. AtlasNet: A papier-mâché approach to learning 3d surface generation. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[18] William Rowan Hamilton. Xi. on quaternions; or on a new system of imaginaries in algebra. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 33(219):58-60, 1848. 5
+[19] Wilfried Hartmann, Silvano Galliani, Michal Havlena, Luc Van Gool, and Konrad Schindler. Learned multi-patch similarity. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2017. 2
+[20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2016. 4
+[21] Donald D Hoffman and Whitman A Richards. Parts of recognition. Cognition, 18(1-3):65-96, 1984. 1
+[22] Fangqiao Hu, Jin Zhao, Yong Hunag, and Hui Li. Learning structural graph layouts and 3d shapes for long span bridges 3d reconstruction. arXiv.org, abs/1907.03387, 2019. 2
+[23] Ales Jaklic, Ales Leonardis, and Franc Solina. Segmentation and Recovery of Superquadrics, volume 20 of Computational Imaging and Vision. Springer, 2000. 5
+[24] Li Jiang, Shaoshuai Shi, Xiaojuan Qi, and Jiaya Jia. GAL: geometric adversarial loss for single-view 3d-object reconstruction. In Proc. of the European Conf. on Computer Vision (ECCV), 2018. 2
+[25] Angjoo Kanazawa, Shubham Tulsiani, Alexei A. Efros, and Jitendra Malik. Learning category-specific mesh reconstruction from image collections. In Proc. of the European Conf. on Computer Vision (ECCV), 2018. 2
+[26] Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a multi-view stereo machine. In Advances in Neural Information Processing Systems (NIPS), 2017. 2
+[27] Katherine D Kinzler and Elizabeth S Spelke. Core systems in human cognition. Progress in brain research, 164:257-264, 2007. 1
+[28] Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. In Proc. of the International Conf. on Machine learning (ICML), 2018. 2
+[29] David H Laidlaw, W Benjamin Trumbore, and John F Hughes. Constructive solid geometry for polyhedral objects. In ACM Trans. on Graphics, 1986. 3
+[30] Jun Li, Kai Xu, Siddhartha Chaudhuri, Ersin Yumer, Hao (Richard) Zhang, and Leonidas J. Guibas. GRASS: generative recursive autoencoders for shape structures. ACM Trans. on Graphics, 36(4), 2017. 2
+
+[31] Lingxiao Li, Minhyuk Sung, Anastasia Dubrovina, Li Yi, and Leonidas Guibas. Supervised fitting of geometric primitives to 3d point clouds. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 3
+[32] Yiyi Liao, Simon Donne, and Andreas Geiger. Deep marching cubes: Learning explicit surface representations. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[33] Yunchao Liu, Zheng Wu, Daniel Ritchie, William T Freeman, Joshua B Tenenbaum, and Jiajun Wu. Learning to describe scenes with programs. In Proc. of the International Conf. on Learning Representations (ICLR), 2019. 3
+[34] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 3, 6, 7, 8
+[35] Mateusz Michalkiewicz, Jhony Kaesemodel Pontes, Dominic Jack, Mahsa Baktashmotlagh, and Anders P. Eriksson. Implicit surface representations as layers in neural networks. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[36] Niloy J. Mitra, Michael Wand, Hao Zhang, Daniel Cohen-Or, Vladimir G. Kim, and Qi-Xing Huang. Structure-aware shape processing. In ACM Trans. on Graphics, pages 13:1–13:21, 2014. 2
+[37] Kaichun Mo, Paul Guerrero, Li Yi, Hao Su, Peter Wonka, Niloy Mitra, and Leonidas Guibas. Structurenet: Hierarchical graph networks for 3d shape generation. In ACM Trans. on Graphics, 2019. 2
+[38] Chengjie Niu, Jun Li, and Kai Xu. Im2struct: Recovering 3d shape structure from a single RGB image. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 3
+[39] Junyi Pan, Xiaoguang Han, Weikai Chen, Jiapeng Tang, and Kui Jia. Deep mesh reconstruction from single RGB images via topology modification networks. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[40] Jeong Joon Park, Peter Florence, Julian Straub, Richard A. Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2, 3
+[41] Despoina Paschalidou, Ali Osman Ulusoy, and Andreas Geiger. Superquadrics revisited: Learning 3d shape parsing beyond cuboids. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 3, 5, 7, 8
+[42] Despoina Paschalidou, Ali Osman Ulusoy, Carolin Schmitt, Luc van Gool, and Andreas Geiger. Raynet: Learning volumetric 3d reconstruction with ray potentials. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[43] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. Point-net++: Deep hierarchical feature learning on point sets in a metric space. In Advances in Neural Information Processing Systems (NIPS), 2017. 2, 3
+[44] Danilo Jimenez Rezende, S. M. Ali Eslami, Shakir Mohamed, Peter Battaglia, Max Jaderberg, and Nicolas Heess.
+
+Unsupervised learning of 3d structure from images. In Advances in Neural Information Processing Systems (NIPS), 2016. 2
+[45] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3d representations at high resolutions. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[46] Shunsuke Saito, Zeng Huang, Ryota Natsume, Shigeo Morishima, Angjoo Kanazawa, and Hao Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[47] Gopal Sharma, Rishabh Goyal, Difan Liu, Evangelos Kalogerakis, and Subhransu Maji. Csgnet: Neural shape parser for constructive solid geometry. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 3
+[48] David Stutz and Andreas Geiger. Learning 3d shape completion from laser scan data with weak supervision. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[49] Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatrix Marcotegui, François Goulette, and Leonidas J. Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[50] Yonglong Tian, Andrew Luo, Xingyuan Sun, Kevin Ellis, William T Freeman, Joshua B Tenenbaum, and Jiajun Wu. Learning to infer and execute 3d shape programs. In Proc. of the International Conf. on Learning Representations (ICLR), 2019. 3
+[51] Shubham Tulsiani, Hao Su, Leonidas J. Guibas, Alexei A. Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. 2, 3, 7, 8
+[52] Sjoerd van Steenkiste, Michael Chang, Klaus Greff, and Jürgen Schmidhuber. Relational neural expectation maximization: Unsupervised discovery of objects and their interactions. In Proc. of the International Conf. on Learning Representations (ICLR), 2018. 2
+[53] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proc. of the European Conf. on Computer Vision (ECCV), 2018. 2
+[54] Yanzhen Wang, Kai Xu, Jun Li, Hao Zhang, Ariel Shamir, Ligang Liu, Zhi-Quan Cheng, and Yueshan Xiong. Symmetry hierarchy of man-made objects. In EUROGRAPHICS, 2011. 2
+[55] Haozhe Xie, Hongxun Yao, Xiaoshuai Sun, Shangchen Zhou, and Shengping Zhang. Pix2vox: Context-aware 3d reconstruction from single and multi-view images. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[56] Qiangeng Xu, Weiyue Wang, Duygu Ceylan, Radomir Mech, and Ulrich Neumann. DISN: deep implicit surface network for high-quality single-view 3d reconstruction. In
+
+Advances in Neural Information Processing Systems (NIPS), pages 490-500, 2019. 2
+[57] Zhenjia Xu, Zhijian Liu, Chen Sun, Kevin Murphy, William T Freeman, Joshua B Tenenbaum, and Jiajun Wu. Unsupervised discovery of parts, structure, and dynamics. In Proc. of the International Conf. on Learning Representations (ICLR), 2019. 2
+[58] Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge J. Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2019. 2
+[59] C. Zou, E. Yumer, J. Yang, D. Ceylan, and D. Hoiem. 3d-prnn: Generating shape primitives with recurrent neural networks. In Proc. of the IEEE International Conf. on Computer Vision (ICCV), 2017. 3
\ No newline at end of file
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/images.zip b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5c6ea3eb59eee2360d32186e1788100328b79c94
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b6d80b22f8467fe9c9f460a8a586858e5d6c677a22296ed26e323c2f018449bf
+size 505659
diff --git a/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/layout.json b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..11216b1117486791519b4931eede852dae5e84a4
--- /dev/null
+++ b/learningunsupervisedhierarchicalpartdecompositionof3dobjectsfromasinglergbimage/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96d753005c923680778828e715d3f8bca2e491d1557a7aea162c2f33d45afdc2
+size 471290
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_content_list.json b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..724626b506c13de232a1db0edb6b90d3674d26da
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2277aad1809c47b6356609a17982640ae15e3c05c980f97d21348e15a36e671
+size 77989
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_model.json b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..aeddfa4ccbd1a653f05b1360d22cccb270f11671
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12b76eb10eb00aa02513539ac43f5454eb0b29a727e623758460ad1957a3f255
+size 94701
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_origin.pdf b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..554862a9d52982a6ea98bfa15700c40a2615bad1
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/2e77bc8c-465d-441b-8616-34511cf86f1e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:622ef3df5500a875aef64fbfee0b565d74d00cb4ab0e00dff7e4762b9bd27c26
+size 589293
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/full.md b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..260b6f7b7b75214a8fb77771478d6a40222786b2
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/full.md
@@ -0,0 +1,293 @@
+# Learning User Representations for Open Vocabulary Image Hashtag Prediction
+
+Thibaut Durand
+Borealis AI Simon Fraser University
+
+thibaut.durand@borealisai.com
+
+# Abstract
+
+In this paper, we introduce an open vocabulary model for image hashtag prediction – the task of mapping an image to its accompanying hashtags. Recent work shows that to build an accurate hashtag prediction model, it is necessary to model the user because of the self-expression problem, in which similar image content may be labeled with different tags. To take into account the user behaviour, we propose a new model that extracts a representation of a user based on his/her image history. Our model allows to improve a user representation with new images or add a new user without retraining the model. Because new hashtags appear all the time on social networks, we design an open vocabulary model which can deal with new hashtags without retraining the model. Our model learns a cross-modal embedding between user conditional visual representations and hashtag word representations. Experiments on a subset of the YFCC100M dataset demonstrate the efficacy of our user representation in user conditional hashtag prediction and user retrieval. We further validate the open vocabulary prediction ability of our model.
+
+# 1. Introduction
+
+Understanding the content of an image is a fundamental and challenging computer vision task because an image can contain a large variety of semantic concepts and a semantic concept can have diverse visual appearances. The vocabulary to describe visual concepts in an image is very large and it is necessary to go beyond the semantic categories used in standard classification datasets (e.g. COCO [31], ImageNet [36]) which focus on a small subset of categories that have precise physical description. Moreover, the annotations of these datasets are independent of the users who take the picture and ignore sentiment/subjective concepts like fun or happy.
+
+The hashtag problem serves as a lens into the general problem of image understanding because the user's intent is not separable from the image content. Images annotated with hashtags are available in great abundance be
+
+
+Figure 1. Overview of the proposed user conditional joint embedding model for hashtag prediction. First, a user representation (yellow) is extracted from the user history. Then, the model computes a user conditional image representation (green) which is projected into a joint embedding space with the hashtag representation of #street (red).
+
+cause of social networks, but hashtags are inherently subjective because they are provided by users as a form of self-expression [43]. As a consequence, hashtags may have synonyms (different hashtags referring to the same visual content) and may be ambiguous (the same hashtag referring to different visual content). This self-expression leads to user-specific variation in hashtag supervision that is independent of the image content, and therefore limits the effectiveness of standard image classification methods. To overcome this problem, [43] introduced a user-specific model that models the joint distribution of images, hashtags and users instead of the image-hashtag pairs as in standard image classification models. But this approach has two main limitations: it cannot deal with new users or new hashtags without retraining the model.
+
+To deal with new users, we propose a new model that extracts a representation of a user from his/her image history (top-left of Figure 1). Given a user, our model only uses the images and their corresponding hashtags from the user's history to compute a user representation – our model works like a standard image classification model if a user does not have an image history. Our approach is inductive and can extract a representation of a new user without retraining the model. Another advantage of our model is that
+
+it constructs a dynamic (time-varying) user representation so it can easily improve the representation of a user if new images from this user are available. Then, the user representation (yellow) is fused with the image representation (blue) to compute a user conditional image representation (green).
+
+Unlike existing hashtag prediction models for images [12, 43] or text [47, 13], we propose an open vocabulary hashtag prediction: our model can generalize and map across new concepts that have not been seen at training time. Open vocabulary models are important because social networks are constantly evolving: user interests can change quickly and new hashtags appear frequently. Our model uses pretrained word embeddings to represent each hashtag in a continuous and semantic space (red in Figure 1), and then the hashtag representations are projected into a joint embedding space with the user conditional visual representation. A continuous semantic embedding space is more appropriate than using separate classifiers because it can share knowledge between synonymous hashtags. Similarly, it can deal with the long tail distribution problem (infrequent hashtags) and unseen hashtags because it can share information between hashtags. We show that our model is scalable and can deal with a vocabulary of $550\mathrm{k}$ hashtags. Finally, our approach is symmetric and can be used for both image-to-hashtag and hashtag-to-image retrieval.
+
+To summarize, our contribution is threefold. (1) We propose a new model to extract a user representation from his/her image history. This approach allows to deal with new users or to improve a user representation with new images without retraining the model. (2) We introduce an open vocabulary model based on pre-trained word embeddings that can deal with infrequent hashtags and hashtags unseen during training. (3) Our experiments show that the image history can be used to extract effective user representations. We investigate the efficacy of our user representation for both user-specific image tagging and user retrieval. We also evaluate the ability of our model to generalise to predict hashtags unseen during training.
+
+# 2. Related Work
+
+Image tagging with user representation. Recent works [12, 43] show that modelling the user is important to analyze images annotated with hashtags because of the self-expression problem. Denton et al. [12] introduced a user representation that exploits user metadata (age, gender, GPS coordinates and country). Even if this user representation can deal with geographical domain shift [38] (the same semantic category of objects can look quite different in images taken in different geographical locations), it cannot fully represent a user because these user metadata are not informative enough to fully capture user behaviour. Another limitation is that it is not always possible to have access to user metadata. To overcome this problem, Veit et
+
+al. [43] proposed to learn an embedding for each user based on the images and the corresponding hashtags. However, learning an embedding per user is limited to a transductive setting; it is not applicable to new users. In this paper, we propose a model that can capture user behaviour and deal with new users without retraining the model. Our model extracts a representation of a user by only exploiting the images with their corresponding hashtags from his/her image history. Our model can also improve a user representation with new images without retraining the model. Note that [47, 23] also address the problem of hashtag prediction but do not model the user.
+
+Conditional models for visual recognition. Our work is related to conditional models for visual recognition. The most popular example is probably the Visual Question Answering (VQA) task [19, 25, 49, 14] where the input image is conditioned by a question. Recently, [39] proposed a model for the personality-captions task by conditioning the input image on the given style and personality traits. While [39] uses an addition to fuse the visual and the personality representation, we use a bilinear product as in most of the VQA models to fuse the visual and the user representation. Our model is also related to the Conditional Similarity Networks [42] that learn embeddings differentiated into semantically distinct subspaces to capture different notions of similarities. However this model can only deal with a fixed number of similarities.
+
+Open vocabulary. Standard image classification models [28, 22] are not suitable for open vocabulary prediction because the classes are usually fixed before training and the models are designed to predict among those classes for a given image. [18] introduced a vocabulary-free image tagging model, that uses an image search engine to collect images for each tag in the vocabulary, but it cannot deal with new hashtags after training. A strategy to deal with new categories is to use a Zero-Shot Learning (ZSL) model [29, 30]. ZSL models are learned on some categories and tested on other categories based on the knowledge extracted during training [35]. A more realistic scenario is the Generalized Zero-Shot Learning (GZSL) [9, 48] where both seen and unseen classes are present at test time. A lot of ZSL/GZSL models [30, 17, 2, 3, 50, 1, 7, 48, 45] learn an embedding between a visual space and a semantic space (attributes, text description). Our model is similar to [17], but the main difference is that [17] is designed for single-label object classification whereas our model works for multi-label classification with a large and diverse hashtags set, which can represent abstract concepts like fun. Another important difference is that [17] preprocesses the labels based on the WordNet hierarchy to clean the vocabulary and avoid synonyms whereas our model works for hashtags in the wild without this preprocessing.
+
+Multi-modal embeddings. Over the past few years, a lot of models using visual-text embeddings [27, 20, 46, 37, 16, 15, 8, 39, 44] have been proposed for several applications. Today, most of the methods that build cross-modal embeddings between text and images use a triplet loss [27]. While the original triplet loss averages over all triplets in the minibatch, [16] introduced a hard negative sampling because the average strategy can lead to vanishing gradients since, as the optimization progresses, most of the triplets tend to contribute less to the error. [16, 21, 15] observe a significant improvement by using hard negatives in the loss. However, the hard negative triplet loss is sensitive to noise/outliers and needs a few epochs to "warm up" at the beginning of the learning process because a very limited amount of triplets are contributing to the gradient, when many are violating the constraints. Recently, [8] introduced an adaptive strategy that automatically adapts the number of triplets used in the loss. These triplet losses work well for tasks like caption retrieval [16] because the number of triplets is the size of the mini-batch, but they are not scalable for our task because the hashtag vocabulary is too large ( $>400\mathrm{k}$ ). The complexity is exacerbated for the multi-label setting because each example can be a positive example for several hashtags. [21] show that randomly sampling some triplets is not helpful because most of the triplets incur no loss and therefore do not improve the model. Moreover it is difficult to define negative examples because hashtags have synonyms.
+
+# 3. Model
+
+Our goal is to learn a user-specific hashtag prediction model. Our model uses the user image history to compute the user representation and hence it can deal with new users. We first present our model to extract a user representation from an image history and then our user conditional joint embedding model for open vocabulary hashtag prediction.
+
+Notations. We denote by $\mathcal{U} = \{u_1, \ldots, u_U\}$ a set of $U$ users and a vocabulary of $K$ hashtags by $\mathcal{H} = \{h_1, \ldots, h_K\}$ . In the open vocabulary setting the vocabulary of hashtags for training is a subset of the vocabulary of hashtags for testing, i.e. $\mathcal{H}^{train} \subset \mathcal{H}^{test} = \mathcal{H}$ , whereas in the fixed vocabulary setting (standard setting for image classification) the vocabulary of hashtags is the same for training and testing, i.e. $\mathcal{H}^{train} = \mathcal{H}^{test} = \mathcal{H}$ . For each user $u$ , we have access to an ordered list by time $^1$ of $N_u$ images with their associated hashtags: $\bar{\mathcal{I}}^{(u)} = [(\mathcal{I}_1^{(u)}, \mathcal{H}_1^{(u)}), \ldots, (\mathcal{I}_{N_u}^{(u)}, \mathcal{H}_{N_u}^{(u)})]$ , where $\mathcal{I}_j^{(u)}$ is the image and $\mathcal{H}_j^{(u)} \subset \mathcal{H}$ is the nonempty hashtag set of the $j$ -th image. Each image is associated with a unique user and we use disjoint sets of users for training and testing.
+
+Model overview. We define our problem as an automatic image labelling based on inferring hashtags, conditioned on an image $\mathcal{I}$ , and a user $u$ . During training, we aim at learning a model $f$ that outputs the probability distribution over a tag $y_{i}$ conditional on the image $\mathcal{I}$ and the user $u$ :
+
+$$
+p \left(y _ {i} = 1 \mid \mathcal {I}, u; \Theta\right) = f \left(\mathcal {I}, u, y _ {i}; \Theta\right) \tag {1}
+$$
+
+where $\Theta$ are the whole set of parameters of the model. The general architecture of our approach is shown in Figure 1. Our model first extracts a representation of the user from his image history (yellow vector) and a visual representation of the image (blue vector). Then, these representations are fused to compute a user conditional image representation (green vector). Finally, the model learns a joint embedding between the user conditional image representations and the hashtag representations (red vector).
+
+# 3.1. User representation
+
+A key component of our model is the user representation because hashtags are inherently subjective and depend on the user. To extract a representation of a user, we propose to exploit his/her image history. Our approach allows to extract a user representation of a new user by exploiting only the image history and without retraining the model. Extracting a good user representation is a challenging problem because the user representation should encode some information about the user, for instance the hashtags used (each user only uses a small subset of hashtags based on topics of interest), language (English, Spanish, French, etc.), but also the correlations between images and the hashtags.
+
+We now explain our method to extract a user representation which is shown in Figure 2. Given a user $u$ , we assume that we know his/her image history (or a subset) $\bar{\mathcal{L}}^{(u)}$ . Thereafter, we ignore the $u$ notation for the sake of clarity because we only consider one user. To predict the hashtags of the $T$ -th image, we use the $T - 1$ past images and their corresponding hashtags to extract the user representation $\mathbf{u}_{1:T - 1} \in \mathbb{R}^{d_u}$ . The model first extracts a representation for each image-hashtags pair in the user history. Then, it aggregates these representations with a Gated Recurrent Unit (GRU [10]) to compute the user representation.
+
+Image-hashtags representation. The goal is to compute a vectorial representation of each image-hashtags pair. We first extract a visual representation for each image in the user history with a ConvNet $f^{im}$ :
+
+$$
+\mathbf {x} _ {t} ^ {i m} = f ^ {i m} \left(\mathcal {I} _ {t}\right) \in \mathbb {R} ^ {d _ {i}} \quad \forall t < T \tag {2}
+$$
+
+Similarly, we compute a representation of the hashtags associated with each image. We first extract a word representation for each hashtag (Section 3.2.2), then we sum
+
+
+Figure 2. Our open vocabulary model for hashtag prediction where the user representation is extracted based on the user history.
+
+each hastag representation to have a fixed size representation $\mathbf{y}_t$ , and finally we learn a non-linear mapping $f^{tag}$ :
+
+$$
+\mathbf {x} _ {t} ^ {t a g} = f ^ {t a g} \left(\mathbf {y} _ {t}\right) \in \mathbb {R} ^ {d _ {t}}, \quad \mathbf {y} _ {t} = \sum_ {y \in \mathcal {H} _ {t}} \psi (y) \quad \forall t < T \tag {3}
+$$
+
+where $\psi(y) \in \mathbb{R}^{d_w}$ is a pretrained word embedding of hashtag $y$ . If a hashtag is composed of several words, we sum the representation of each word e.g. $\psi(\text{black} + \text{white}) = \psi(\text{black}) + \psi(\text{white})$ . If a hashtag does not have a word representation, it is possible to approximate it by using some algebraic properties. Pretrained word embeddings are used as auxiliary information to share information between hashtags so that the knowledge learned from seen hashtags can be transferred to unseen hashtags. It also allows to deal with the long-tail distribution problem because it can transfer knowledge from the data-rich head to the data-poor tail hashtags. In our experiments we use GloVe [34], but our model works with any word embeddings (e.g. [33, 47, 6]). Note that these word embeddings do not require additional supervision because they are learned in an unsupervised way from large text corpora.
+
+Finally, we aggregate the image and hashtag representations to compute a representation of each image-hashtags pair:
+
+$$
+\mathbf {x} _ {t} = f u s i o n (\mathbf {x} _ {t} ^ {i m}, \mathbf {x} _ {t} ^ {t a g}) \qquad \forall t < T \qquad (4)
+$$
+
+We use an element-wise product to fuse the two modalities. In Section 4.2, we analyze several fusion operators and we observe that the choice of the fusion is important.
+
+User representation. The goal is to compute a fixed size user representation $\mathbf{u}_{1:T - 1}$ given the set of features $\{\mathbf{x}_t\}_{t = 1,\dots,T - 1}$ representing each image-hashtags pair of
+
+the user history. To take into account the temporal information of the images, we use a Gated Recurrent Unit [10]:
+
+$$
+\mathbf {h} _ {t} = f _ {G R U} \left(\mathbf {x} _ {t}, \mathbf {h} _ {t - 1}\right) \quad \forall t < T \tag {5}
+$$
+
+where $\mathbf{h}_t$ is the hidden state of the GRU at step $t$ and $\mathbf{h}_0 = \mathbf{0}$ . GRUs turn variable length sequences into meaningful, fixed-sized representations. The last hidden state $\mathbf{h}_{T-1}$ is used as user representation $\mathbf{u}_{1:T-1}$ . To aggregate the image-hashtags representations, it is possible to use any pooling function (e.g. max, average), but our experiments show that taking into account the temporal information improves performance. Thereafter, we use all the previous images as the user history and we denote the user representation by $\mathbf{u}$ for the sake of clarity. Note that it is possible to replace the GRU by other temporal models like TCN [4].
+
+# 3.2. User conditional joint embedding model
+
+We now introduce the user conditional joint embedding model. Given an image and user representations, our model first computes the user conditional image representation and then it learns a joint embedding between the user conditional image and hashtag representations.
+
+# 3.2.1 User conditional image representation
+
+The image $\mathcal{I}$ and user $u$ are firstly embedded into vectors $\mathbf{v}$ and $\mathbf{u}$ respectively. We use a ConvNet to extract a fixed-size vectorial representation $\mathbf{v} \in \mathbb{R}^{d_v}$ of the visual content of an image. We use a different ConvNet from the ConvNet used in the user model because these two networks have different goals (representing an image vs representing a user). Experimentally, we observe that using separate networks improves performance. The image and user representations $\mathbf{v}$ and $\mathbf{u}$ are then fused using a bilinear operator to produce a user conditional image representation
+
+$\mathbf{z} \in \mathbb{R}^{d_c}$ . Bilinear models are powerful solutions used in particular in computer vision to capture multi-modal interactions [12, 19, 25, 43]. The bilinear model is more expressive than straightforward concatenation, element-wise product, or element-wise sum and is defined as follows:
+
+$$
+z _ {j} = \mathbf {v} ^ {T} \mathbf {W} _ {j} \mathbf {u} + b _ {j} \quad j \in \{1, \dots , d _ {c} \} \tag {6}
+$$
+
+where $\mathbf{W}_j\in \mathbb{R}^{d_v\times d_u}$ is a weight matrix and $b_{j}\in \mathbb{R}$ is a bias of the $j$ -th dimension. $\mathbf{z} = [z_j]_{j = 1,\dots ,d_c}$ is the output of the bilinear model and represents the image-user pair. We need to learn the tensor $\mathbf{W} = [\mathbf{W}_j]_{j = 1,\dots ,d_c}\in \mathbb{R}^{d_v\times d_u\times d_c}$ and the bias $\mathbf{b} = [b_j]_{j = 1,\dots ,d_c}\in \mathbb{R}^{d_c}$ .
+
+# 3.2.2 Joint embedding
+
+In this section, we introduce our joint embedding model that can deal with hashtags unseen during training (Figure 2). Our aim is to learn functions that take the representation of an arbitrary hashtag and a user conditional image representation as inputs and embed them into a joint embedding. To learn the joint embedding space, we define a similarity function between the two modalities. We first project each modality in a joint embedding space by learning a mapping function $\phi^{iu}:\mathbb{R}^{d_c}\to \mathbb{R}^d$ (resp. $\phi^{tag}:\mathbb{R}^{d_w}\rightarrow \mathbb{R}^d$ ) from the user conditional image (resp. hashtag) space to the joint embedding space. Then, we define the similarity function in the joint embedding space to be the usual inner product. Given a user conditional image representation $g(\mathbf{v},\mathbf{u}) (= \mathbf{z})$ , we compute the compatibility score of any given hashtag $y$ as follows:
+
+$$
+f (\mathbf {v}, \mathbf {u}, y; \Theta) = \phi^ {i u} (g (\mathbf {v}, \mathbf {u})) ^ {T} \phi^ {\operatorname {t a g}} (\psi (y)) \tag {7}
+$$
+
+The intuition is to maximize the similarity between the user conditional image representation and its associated hashtags in the joint embedding space. Unlike standard visual-semantic embeddings, our joint embedding also depends on the user, so an image can be mapped to different points in the joint embedding space with respect to the user profile. Note that unlike existing image hashtag prediction models [12, 43], our model is scalable because the number of learnable parameters of our model is independent of the hashtag vocabulary size.
+
+# 3.3. Learning
+
+Our training objective is to increase the similarity to the present hashtags, while decreasing the similarity to the other hashtags. Because the triplet loss commonly used to learn joint embedding is not scalable, we employ a classification loss for this task. Recent works [24, 40, 43, 32] suggest that softmax classification can be very effective even in multi-label settings with large numbers of classes such as
+
+ours. Given a user $u$ and an image $\mathcal{I}_n$ , the posterior hastag probability is:
+
+$$
+p (\hat {y} | \mathcal {I}, u; \Theta) = \frac {\exp (f (\mathcal {I} , u , \hat {y} ; \Theta))}{\sum_ {y \in \mathcal {H} ^ {t r a i n}} \exp (f (\mathcal {I} , u , y ; \Theta))} \tag {8}
+$$
+
+The probability distribution is computed only on the hashtags known during training $(\mathcal{H}^{train})$ . Following [24, 43], we select a single hashtag $\hat{y}_n^{(u)}$ uniformly at random from hashtag set $\mathcal{H}_n^{(u)}$ as target class for each image. All the weights except the ones for the ResNets (due to the limitation of GPU memory) are optimized jointly in an end-to-end manner by minimizing the negative log-likelihood of the probability distribution:
+
+$$
+\mathcal {L} (\Theta) = - \frac {1}{U} \sum_ {u \in \mathcal {U}} \frac {1}{N _ {u}} \sum_ {n = 1} ^ {N _ {u}} \log p \left(\hat {y} _ {n} ^ {(u)} \mid \mathcal {I}, u; \Theta\right) \tag {9}
+$$
+
+Due to technical constraints, it is not possible to have several users in memory at the same time. A mini-batch contains the consecutive images of a single user.
+
+# 4. Experiments
+
+Implementation details. We use PyTorch in our experiments and each experiment runs on 1 GPU. We train our model using ADAM [26] during 20 epochs with a start learning rate 5e-5. We use ResNet-50 [22] as the ConvNet and GloVe embeddings [34] as pre-trained word embeddings. GloVe was trained on Common Crawl dataset with a vocabulary of 1.9M words2. Despite their appealing modelling power, bilinear models are intractable for our task, because the size of the full tensor is prohibitive. In our experiments, we use the MUTAN model [5] to approximate the bilinear product (Equation 6) but other models [19, 25, 49, 14] can be used.
+
+Datasets. We perform experiments on a subset of the YFCC100M dataset [41]. YFCC100M consists of about 99 million images from the Flickr image sharing site. We collect the images from all the users having between 100 and 200 images with at least one hashtag. We use all the hashtags for which we can compute a GloVe representation. The training set has a vocabulary of $442\mathrm{k}$ hashtags and the test set has a vocabulary of $568\mathrm{k}$ hashtags (about $125\mathrm{k}$ hashtags are unseen during training). We ignore all the images that do not have at least one valid hashtag. Finally, we keep all the users that have at least 50 images. We split the sets by user ID in order to ensure that images from the same user do not occur in both sets. We assign $70\%$ (resp. $10\%$ and $20\%$ ) of the images to the training (resp. validation and test) set. Thereafter, this dataset is named open vocabulary
+
+ | MODEL | USER REP. | USER FUSION | A@1 | A@10 | P@10 | R@1 | R@10 |
| FIXED VOCAB | (∼18.5k hashtags) | [A] frequency | | - | 0.01 | 0.13 | 0.03 | 0.00 | 0.07 |
| [B] user agnostic | | - | 14.57 | 37.60 | 7.52 | 4.79 | 15.86 |
| [C] used hashtags | ✓ | max | 61.62 | 80.43 | 37.37 | 26.02 | 55.88 |
| [D] hashtag occurrences | ✓ | sum | 62.09 | 80.56 | 37.58 | 26.26 | 56.13 |
| [43] Tensor (MCLL) | ✓ | - | 14.75 | 37.66 | 7.53 | 4.86 | 15.94 |
| Ours (hashtag) | ✓ | GRU | 71.90 | 85.21 | 47.60 | 31.51 | 62.83 |
| Ours (image+hashtag) | ✓ | GRU | 74.13 | 87.49 | 50.88 | 33.36 | 66.49 |
| OPEN VOCAB | (∼440k hashtags) | [A] frequency | | - | 0.00 | 0.01 | 0.01 | 0.00 | 0.00 |
| [B] user agnostic | | - | 13.47 | 34.71 | 6.64 | 4.26 | 13.49 |
| [E] hashtag sum | ✓ | sum | 59.93 | 79.75 | 36.24 | 23.42 | 54.20 |
| [43] Tensor (MCLL) | ✓ | - | 13.49 | 34.73 | 6.65 | 4.26 | 13.50 |
| Ours (hashtag) | ✓ | GRU | 65.06 | 83.31 | 44.84 | 26.87 | 60.69 |
| Ours w/o Glove (image+hashtag) | ✓ | GRU | 46.24 | 64.17 | 20.36 | 17.08 | 31.49 |
| Ours (image+hashtag) | ✓ | GRU | 67.46 | 86.32 | 46.68 | 27.90 | 62.99 |
+
+Table 1. Hashtag prediction results on both datasets (higher is better). We compare several strategies to extract a user representation based on user image history. The performance on the open vocabulary dataset is evaluated only with the hashtags seen during training. The performance with the unseen hashtags is shown in Table 2. Ours w/o Glove means that the pretrained GloVe embeddings are not used.
+
+dataset. We also proposed a fixed vocabulary version of the open vocabulary dataset. We use a similar hashtag preprocessing as [43] except the dataset splits are by user ID. On this dataset, we propose a variant of our model without pretrained word embeddings to have a fair comparison with [43] (see subsection A.3 of supplementary). More information and analysis about these datasets can be found in subsection A.1 of supplementary.
+
+Metrics. To evaluate the hashtag prediction performance of the models, we use three standard metrics [12, 43]: Accuracy@k (A@k), Precision@k (P@k) and Recall@k (R@k). More information about these metrics is available in subsection A.2 of supplementary. We use $k = 1$ and $k = 10$ : for instance, A@1 measures how often the top-ranked hashtag is in the ground-truth hashtag set and A@10 how often at least one of the ground-truth hashtags appears in the 10 highest-ranked predictions.
+
+# 4.1. Hashtag prediction
+
+In this section, we evaluate our model for the hashtag prediction task which attempts to rank an image's ground-truth hashtags higher than hashtags it does not contain. In these experiments, we use all the previous images in the user history to extract the user representation. Image retrieval results are shown in subsection A.5 of supplementary.
+
+Baseline models. We compare our model with the following models:
+
+[A] FREQUENCY: this simple baseline ignores input image and user representation, always ranking hashtags by their
+
+frequency in the training data.
+
+[B] USER AGNOSTIC: this model is equivalent to a standard image classification: there is no user representation.
+
+[C] USED HASHTAGS: this user representation is a binary vector of the hashtags used in previous images by the user:
+
+$$
+\mathbf {u} = \left[ u _ {1}, \dots , u _ {K} \right] \quad \text {w h e r e} \quad u _ {i} \in \{0, 1 \} \tag {10}
+$$
+
+where $u_{i} = 1$ (resp. $u_{i} = 0$ ) means that the $i$ -th hashtag has been used (resp. has never been used) by the user.
+
+[D] HASHTAG OCCURRENCES: this user representation is similar to [C] except that it indicates the number of occurrences of each hashtag:
+
+$$
+\mathbf {u} = \left[ u _ {1}, \dots , u _ {K} \right] \quad \text {w h e r e} \quad u _ {i} \in \mathbb {N} \tag {11}
+$$
+
+where $u_{i}$ indicates the number of times that the $i$ -th tag has been used by the user.
+
+[E] HASHTAG SUM: this user representation is the sum of each hashtag word embedding used in previous images by the user.
+
+The models [C] and [D] are not used on the open vocabulary dataset because they require a fixed hashtag vocabulary. Note that it is not possible to compare with the user representation proposed in [12] because it uses user metadata that are not available in the dataset. We also report the results of our model with only the hashtag branch in the user representation model (i.e. $\mathbf{x} = \mathbf{x}^{tag}$ ) and without the pretrained GloVe embeddings (they are randomly initialised). To compare our model with [43], we reimplement the user-specific Tensor (MCLL) model. Because this model was proposed for a transductive setting, we use a vector filled with the value $1 / d_{u}$ to represent a user that is not present in the training set.
+
+| MODEL | UNSEEN HASHTAGS (~ 120k hashtags) | ALL HASHTAGS (~ 560k hashtags) |
| A@1 | A@10 | P@10 | R@1 | R@10 | A@1 | A@10 | P@10 | R@1 | R@10 |
| [B] user agnostic | 0.06 | 0.40 | 0.08 | 0.03 | 0.25 | 12.89 | 33.21 | 6.07 | 3.78 | 12.05 |
| [E] sum hashtags | 36.41 | 55.40 | 32.51 | 26.60 | 48.12 | 58.91 | 79.47 | 34.08 | 21.35 | 51.42 |
| Ours (hashtag) | 44.07 | 60.15 | 39.35 | 33.97 | 53.05 | 65.75 | 83.90 | 43.99 | 26.09 | 59.14 |
| Ours (image+hashtag) | 45.98 | 62.62 | 41.31 | 35.53 | 55.30 | 68.06 | 86.91 | 45.80 | 27.03 | 61.39 |
+
+Results. The performance of all the models are summarized in Table 1 and we make seven observations. First, the user agnostic models ([A, B]) perform poorly for all metrics with respect to the user-specific models as already shown in [12, 43]. It also demonstrates that the user history can be used to extract good user representations. Second, the Tensor (MCLL) model [43] has similar performance than the user agnostic model because it cannot deal with user unseen during training. It is necessary to retrain [43] to deal with new user. We also compare our model with [43] in a transductive setting in a next paragraph. Third, we observe that the hashtag occurrences user representation [D] is slightly better than the used hashtags user representation [C]. The reason is that the [D] is richer than [C] because it encodes user hashtag frequency. Fourth, modelling the temporal information of the hashtags with a recurrent network (our model with only hashtags) significantly improves performance with respect to hashtag pooling strategy ([C, D]). Fifth, using visual information improves the results because it can exploit the correlations between the hashtags and the visual content of the images. Sixth, we observe that the pretrained word embeddings are very important on imbalanced data because it allows to transfer knowledge between hashtags. Finally, we observe the same behaviour on the closed set and open set datasets, so our user representation model can be used in both settings. Visual results are shown in subsection A.4 of supplementary.
+
+Results on unseen hashtags. We also evaluate the ability of our model to generalize to predict unseen hashtags. In the first experiment, named UNSEEN HASHTAGS, we only evaluate the results of unseen hashtags (equivalent to ZSL setting). In the second experiment, named ALL HASHTAGS, we evaluate the performance for all the hashtags (similar to GZSL setting). While the first experiment directly evaluates the performance on unseen hashtags, the second experiment is more realistic because the model has to predict hashtags among both seen and unseen hashtags. The results of these experiments are shown in Table 2 on the open vocabulary dataset. We observe that our model is able to predict unseen hashtags so our model is able to deal with new hashtags without retraining the model. We draw the same conclusions about the user representation that for seen hashtags in Table 1: modeling the user is important for unseen tags,
+
+Table 2. Hashtag prediction results on hashtags unseen during training and all the hashtags on the open vocabulary dataset.
+
+| MODEL | A@1 | A@10 | P@10 | R@1 | R@10 |
| [43] | 35.92 | 63.07 | 11.51 | 15.91 | 37.79 |
| Ours-FH | 48.20 | 69.59 | 33.03 | 20.50 | 46.41 |
| Ours | 73.19 | 87.28 | 50.44 | 32.19 | 65.86 |
+
+Table 3. Comparison with [43] on a fixed set of users. Ours-FH means that our user representation is computed with on a fixed history (training images).
+
+and our user representation model has the best results because it models the temporal information and exploits the visual content.
+
+Comparison with state-of-the-art model [43] in a transductive setting. We compare our model with [43] on the fixed vocabulary dataset with a transductive setting i.e. the same set of users during both training and testing. The results are summarized in Table 3. We report the results of our model with the user representation computed only on the training images (fixed user history) and our model with the user representation computed on all the previous images. We observe that our model is better than [43] because [43] needs a lot of images to have good performance, and cannot exploit the temporal information because each image is processed independently during training. Another advantage of our dynamic approach is that it can improve the user representation by exploiting new images without retraining the model.
+
+# 4.2. Model analysis
+
+In this section, we analyse important parameters of our model: the dimension of the user representation and importance of the image-hashtags fusion. The impact of the image history size to extract the user representation is analyzed in the supplementary (subsection A.6).
+
+User representation dimension. We first analyze the importance of the user representation dimension, which is the hidden state dimension of the GRU in our model. We show in Figure 3 the R@10 and the computation time for a large range of user dimension (32 to 8192). We observe that using a large user representation is better than small user representation for all metrics. However, using a large user representation
+
+
+Figure 3. Analysis of the user representation dimension with respect to R@10. The width of the circle is proportional to the computation time of the user representation. (x-axis log scale)
+
+| FUSION | A@1 | A@10 | R@1 | R@10 |
| only hashtags | 65.16 | 83.26 | 26.12 | 60.89 |
| sum | 65.29 | 83.21 | 26.19 | 60.75 |
| concatenation | 65.36 | 83.24 | 26.21 | 60.71 |
| bilinear [5] | 65.95 | 85.63 | 26.69 | 59.94 |
| GLU [11] | 66.02 | 85.77 | 26.73 | 60.28 |
| TIRG [44] | 63.97 | 81.94 | 25.10 | 59.35 |
| eltwise product | 67.28 | 86.27 | 27.18 | 62.88 |
+
+tation is more time consuming and requires more memory to store (the GRU becomes the bottleneck of the model). We observe that 1024 is a good trade-off between accuracy and computation time and we use this dimension for ours experiments.
+
+Image-hashtags fusion. Our second analysis is about the combination of the image and hashtags branches in the user representation model (Equation 4). In Table 4, we show the results for several standard multi-modal fusion operators, and our model with only the hashtags branch. We compare standard fusion operators (element-wise sum, concatenation, element-wise product) and more complex operators like bilinear (MUTAN) [5], GLU [11], and TIRG [44]. We use ReLU for each model except for the element-wise product model where we use SELU to avoid having a vector with too many zeros (using a ReLU with the element-wise product significantly drops the performances). We note that only the element-wise product fusion improves significantly the performance. We believe this is because the element-wise product fusion forces the model to exploit both image and hashtags representations. We observe that both bilinear and GLU operators improve the performance but are not able to efficiently exploit the visual representation. This experiment also shows that the hashtags branch is more informative than the image branch. We note that our conclusions are different from [44] which shows the best fusion depends on
+
+Table 4. Analysis of the image-hastags fusion operator.
+
+ | USER REP. | A@1 | A@10 | MR | DIM |
| FIXED | [C] used | 33.48 | 46.95 | 16 | 18,583 |
| [D] occurrence | 33.64 | 46.94 | 17 | 18,583 |
| Ours (tag) | 42.95 | 58.47 | 3 | 1024 |
| Ours (im+tag) | 45.64 | 61.45 | 2 | 1024 |
| OPEN | [E] sum tags | 35.19 | 44.81 | 29 | 300 |
| Ours (tag) | 45.15 | 59.27 | 3 | 1024 |
| Ours (im+tag) | 47.90 | 61.56 | 2 | 1024 |
+
+Table 5. User retrieval results. MR is the median rank (lower is better) and dim is the user representation dimensionality.
+
+the task. Finally, we want to point out that it is probably possible to use/design better fusion strategies between the user embedding and image embedding but it is out of the scope of this work.
+
+# 4.3. User retrieval
+
+In this section, we analyze the discriminative power of our user representation model. To achieve it, we consider the user retrieval task: given a user representation, the goal is to find a user representation of the same user computed with non-overlapping image histories i.e. each image is used only in one image history. We use users from the test set and an image history size of 20. For instance, given a user, we first use the first 20 images to compute a user representation, then we use the next 20 images to compute another user representation of the same user. For this experiment, we compute 33,648 user representations from 6,139 users. The user representations are $\ell_2$ normalized and we use the cosine similarity to rank the users. To evaluate the performance, we use the Accuracy@k metric and the median rank metric. The results in Table 5 show that our model is able to extract accurate user representations from different image history sizes. Note that our user representation model is not trained for this task. About the user representation model, we observe the same conclusions as for hashtag prediction. Despite our user representation being 18 times smaller than [C] and [D] (which are sparse vectors), we note that our model improves the A@1 performance by 12 pt. On the contrary [E] has a smaller dimension than our model, but the representations are not discriminative enough.
+
+# 5. Conclusion and Future Work
+
+We introduced a new model for hashtag prediction that can deal with new users and new hashtags without retraining the model. This paper shows that the images and their corresponding hashtags in the user history can be efficiently used to extract a user representation. Our user representation can be successfully used for user specific hashtag prediction and user retrieval. Our user representation model could be extended to exploit user relationships or user metadata.
+
+# References
+
+[1] Zeynep Akata, Florent Perronnin, Zaid Harchaoui, and Cordelia Schmid. Label-Embedding for Image Classification. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2016. 2
+[2] Zeynep Akata, Scott Reed, Daniel Walter, Honglak Lee, and Bernt Schiele. Evaluation of output embeddings for fine-grained image classification. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 2
+[3] Jimmy Ba, Kevin Swersky, Sanja Fidler, and Ruslan Salakhutdinov. Predicting Deep Zero-Shot Convolutional Neural Networks using Textual Descriptions. In IEEE International Conference on Computer Vision (ICCV), 2015. 2
+[4] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. In arXiv 1803.01271, 2018. 4
+[5] Hedi Ben-younes, Rémi Cadene, Matthieu Cord, and Nicolas Thome. MUTAN: Multimodal Tucker Fusion for Visual Question Answering. In IEEE International Conference on Computer Vision (ICCV), 2017. 5, 8
+[6] Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching Word Vectors with Subword Information. In Transactions of the Association for Computational Linguistics, 2017. 4
+[7] Maxime Bucher, Stéphane Herbin, and Frédéric Jurie. Improving Semantic Embedding Consistency by Metric Learning for Zero-Shot Classification. In European Conference on Computer Vision (ECCV), 2016. 2
+[8] Micael Carvalho, Rémi Cadène, David Picard, Laure Soulier, Nicolas Thome, and Matthieu Cord. Cross-Modal Retrieval in the Cooking Context: Learning Semantic Text-Image Embeddings. In ACM Special Interest Group on Information Retrieval (SIGIR), 2018. 3
+[9] Wei-Lun Chao, Soravit Changpinyo, Boqing Gong, and Fei Sha. An Empirical Study and Analysis of Generalized Zero-Shot Learning for Object Recognition in the Wild. In European Conference on Computer Vision (ECCV), 2016. 2
+[10] Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. In Advances in Neural Information Processing Systems Workshop (NeurIPS), 2014. 3, 4
+[11] Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. In International Conference on Machine Learning (ICML), 2017. 8
+[12] Emily Denton, Jason Weston, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. User conditional hashtag prediction for images. In International Conference on Knowledge Discovery and Data Mining (KDD), 2015. 2, 5, 6, 7
+[13] Bhuwan Dhingra, Zhong Zhou, Dylan Fitzpatrick, Michael Muehl, and William W. Cohen. Tweet2Vec: Character-Based Distributed Representations for Social Media. In Association for Computational Linguistics (ACL), 2016. 2
+
+[14] Brendan Duke and Graham W. Taylor. Generalized Hadamard-Product Fusion Operators for Visual Question Answering. In arXiv 1803.09374, 2018. 2, 5
+[15] Martin Engilberge, Louis Chevallier, Patrick Pérez, and Matthieu Cord. Finding beans in burgers: Deep semantic-visual embedding with localization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 3
+[16] Fartash Faghri, David J. Fleet, Jamie Ryan Kiros, and Sanja Fidler. VSE++: Improved Visual-Semantic Embeddings. In British Machine Vision Conference (BMVC), 2018. 3
+[17] Andrea Frome, Greg Corrado, Jonathon Shlens, Samy Bengio, Jeffrey Dean, Marc'Aurelio Ranzato, and Tomas Mikolov. DeViSE: A Deep Visual-Semantic Embedding Model. In Advances in Neural Information Processing Systems (NeurIPS), 2013. 2
+[18] Jianlong Fu, Yue Wu, Tao Mei, Jinqiao Wang, Hanqing Lu, and Yong Rui. Relaxing From Vocabulary: Robust Weakly-Supervised Deep Learning for Vocabulary-Free Image Tagging. In IEEE International Conference on Computer Vision (ICCV), 2015. 2
+[19] Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Grounding. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2016. 2, 5
+[20] Albert Gordo, Jon Almazan, Naila Murray, and Florent Perronnin. LEWIS: Latent Embeddings for Word Images and their Semantics. In IEEE International Conference on Computer Vision (ICCV), 2015. 3
+[21] Albert Gordo, Jon Almazan, Jerome Revaud, and Diane Larlus. End-to-end Learning of Deep Visual Representations for Image Retrieval. In International Journal of Computer Vision (IJCV), 2017. 3
+[22] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2, 5
+[23] Hamid Izadinia, Bryan C. Russell, Ali Farhadi, Matthew D. Hoffman, and Aaron Hertzmann. Deep Classifiers from Image Tags in the Wild. In ACM Multimedia, 2015. 2
+[24] Armand Joulin, Laurens van der Maaten, Allan Jabri, and Nicolas Vasilache. Learning Visual Features from Large Weakly Supervised Data. In European Conference on Computer Vision (ECCV), 2016. 5
+[25] Jin-Hwa Kim, Kyoung-Woon On, Woosang Lim, Jeonghee Kim, Jung-Woo Ha, and Byoung-Tak Zhang. Hadamard Product for Low-rank Bilinear Pooling. In International Conference on Learning Representations (ICLR), 2017. 2, 5
+[26] Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In International Conference on Learning Representations (ICLR), 2015. 5
+[27] Ryan Kiros, Ruslan Salakhutdinov, and Richard S. Zemel. Unifying Visual-Semantic Embeddings with Multimodal Neural Language Models. In arXiv 1411.2539, 2014. 3
+[28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey Hinton. ImageNet Classification with Deep Convolutional Neural Net
+
+works. In Advances in Neural Information Processing Systems (NeurIPS), 2012. 2
+[29] Christoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Learning to detect unseen object classes by between-class attribute transfer. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 2
+[30] Christoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Attribute-based classification for zero-shot visual object categorization. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2014. 2
+[31] Tsung-Yi Lin, Michael Maire, Serge Belongie, Lubomir Bourdev, Ross Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dollar. Microsoft COCO: Common Objects in Context. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2014. 1
+[32] 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 European Conference on Computer Vision (ECCV), 2018. 5
+[33] Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed Representations of Words and Phrases and their Compositionality. In Advances in Neural Information Processing Systems (NeurIPS), 2013. 4
+[34] Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014. 4, 5
+[35] Marcus Rohrbach, Michael Stark, and Bernt Schiele. Evaluating knowledge transfer and zero-shot learning in a largescale setting. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2011. 2
+[36] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 2015. 1
+[37] Amaia Salvador, Nicholas Hynes, Yusuf Aytar, Javier Marin, Ferda Ofli, Ingmar Weber, and Antonio Torralba. Learning Cross-modal Embeddings for Cooking Recipes and Food Images. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 3
+[38] Shreya Shankar, Yoni Halpern, Eric Breck, James Atwood, Jimbo Wilson, and D. Sculley. No Classification without Representation: Assessing Geodiversity Issues in Open Data Sets for the Developing World. In NIPS 2017 workshop: Machine Learning for the Developing World, 2017. 2
+[39] Kurt Shuster, Samuel Humeau, Hexiang Hu, Antoine Bordes, and Jason Weston. Engaging Image Captioning Via Personality. In arXiv 1810.10665, 2018. 2, 3
+[40] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting Unreasonable Effectiveness of Data in Deep Learning Era. In IEEE International Conference on Computer Vision (ICCV), 2017. 5
+[41] Bart Thomee, Benjamin Elizalde, David A. Shamma, Karl Ni, Gerald Friedland, Douglas Poland, Damian Borth, and
+
+Li-Jia Li. YFCC100M: The New Data in Multimedia Research. Communications of the ACM, 2016. 5
+[42] Andreas Veit, Serge Belongie, and Theofanis Karaletsos. Conditional Similarity Networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[43] Andreas Veit, Maximilian Nickel, Serge Belongie, and Laurens van der Maaten. Separating Self-Expression and Visual Content in Hashtag Supervision. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018, 1, 2, 5, 6, 7
+[44] Nam Vo, Lu Jiang, Chen Sun, Kevin Murphy, Li-Jia Li, Li Fei-Fei, and James Hays. Composing Text and Image for Image Retrieval - An Empirical Odyssey. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 3, 8
+[45] Liwei Wang, Yin Li, Jing Huang, and Svetlana Lazebnik. Learning Two-Branch Neural Networks for Image-Text Matching Tasks. In IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2018. 2
+[46] Liwei Wang, Yin Li, and Svetlana Lazebnik. Learning Deep Structure-Preserving Image-Text Embeddings. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 3
+[47] Jason Weston, Sumit Chopra, and Keith Adams. # tagspace: Semantic embeddings from hashtags. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014. 2, 4
+[48] Yongqin Xian, Christoph H. Lampert, Bernt Schiele, and Zeynep Akata. Zero-Shot Learning - A Comprehensive Evaluation of the Good, the Bad and the Ugly. In IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2018. 2
+[49] Zhou Yu, Jun Yu, Jianping Fan, and Dacheng Tao. Multimodal Factorized Bilinear Pooling with Co-Attention Learning for Visual Question Answering. In IEEE International Conference on Computer Vision (ICCV), 2017. 2, 5
+[50] Ziming Zhang and Venkatesh Saligrama. Zero-shot learning via semantic similarity embedding. In IEEE International Conference on Computer Vision (ICCV), 2015. 2
\ No newline at end of file
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/images.zip b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8decb402ab74f9d2c1258bb8a551b39b82c554fc
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b246461db22c9acb024ea644d0fceaef49360a44746e294c602af98c066542e2
+size 450278
diff --git a/learninguserrepresentationsforopenvocabularyimagehashtagprediction/layout.json b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..483bf875b25e91da1f26bed1b96dc2156cdb1ef0
--- /dev/null
+++ b/learninguserrepresentationsforopenvocabularyimagehashtagprediction/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a79a9604025ee53e8ea84f6c6c2fe8ed62ea12ebb0cf21626005c7f67f6324d3
+size 347718
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_content_list.json b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ccdf48b187088cae620d4f7a6793f98b299be60f
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d4c437d6d3895b276c2250199dcc34843b5ee0ac5e859f8dc8ff9311b0bddd1
+size 97285
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_model.json b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c61a0c3504d73fd2be21d6cd85665dc0f70fa8e2
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7a815c568d71e5dc81c9e9ab87487aeec5bd6f684bf431db9a3acb2be617af5
+size 123791
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_origin.pdf b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..14d36e3c9d2730f707cc71c2921a4a2e242ca120
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/b16a5a9f-892b-4660-a79c-89f87c614e67_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0bac185ec6f6b92d02884e216f65673e02afc069b435b2b4db132318deff7778
+size 1468296
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/full.md b/learningvideoobjectsegmentationfromunlabeledvideos/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a28def7dc8d85d73836cb298b767f5e8ce321560
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/full.md
@@ -0,0 +1,409 @@
+# Learning Video Object Segmentation from Unlabeled Videos
+
+Xiankai Lu $^{1}$ , Wenguan Wang $^{2*}$ , Jianbing Shen $^{1}$ , Yu-Wing Tai $^{3}$ , David Crandall $^{4}$ , Steven C. H. Ho $^{5,6}$ $^{1}$ Inception Institute of Artificial Intelligence, UAE ETH Zurich, Switzerland
+
+$^{3}$ Tencent $^{4}$ Indiana University, USA $^{5}$ Salesforce Research Asia, Singapore $^{6}$ Singapore Management University, Singapore
+
+carrierlxfk@gmail.com, wenguanwang.ai@gmail.com
+
+https://github.com/carrierlxk/MuG
+
+# Abstract
+
+We propose a new method for video object segmentation (VOS) that addresses object pattern learning from unlabeled videos, unlike most existing methods which rely heavily on extensive annotated data. We introduce a unified unsupervised/weakly supervised learning framework, called MuG, that comprehensively captures intrinsic properties of VOS at multiple granularities. Our approach can help advance understanding of visual patterns in VOS and significantly reduce annotation burden. With a carefully-designed architecture and strong representation learning ability, our learned model can be applied to diverse VOS settings, including object-level zero-shot VOS, instance-level zero-shot VOS, and one-shot VOS. Experiments demonstrate promising performance in these settings, as well as the potential of MuG in leveraging unlabeled data to further improve the segmentation accuracy.
+
+# 1. Introduction
+
+Video object segmentation (VOS) has two common settings, zero-shot and one-shot. Zero-shot VOS $(Z - VOS)^{1}$ is to automatically segment out the primary foreground objects, without any test-time human supervision, whereas one-shot VOS (O-VOS) focuses on extracting the human determined foreground objects, typically assuming the first-frame annotations are given ahead inference1. Current leading methods for both Z-VOS and O-VOS are supervised deep learning models that require extensive amounts of elaborately annotated data to improve the performance and avoid over-fitting. However, obtaining pixel-wise segmentation labels is labor-intensive and expensive (Fig. 1(a)).
+
+It is thus attractive to design VOS models that can learn from unlabeled videos. With this aim in mind, we develop a
+
+
+Figure 1: (a) Current leading VOS methods are learned in a supervised manner, requiring large-scale elaborately labeled data. (b) Our model, MuG, provides an unsupervised/weakly-supervised framework that learns video object patterns from unlabeled videos. (c) Once trained, MuG can be applied to diverse VOS settings, with strong modeling ability and high generability.
+
+unified, unsupervised/weakly supervised VOS method that mines multi-granularity cues to facilitate video object pattern learning (Fig. 1(b)). This allows us to take advantage of nearly infinite amounts of video data. Below we give a more formal description of our problem setup and main idea.
+
+Problem Setup and Main Idea. Let $\mathcal{X}$ and $\mathcal{Y}$ denote the input video space and output VOS space, respectively. Deep learning based VOS solutions seek to learn a differentiable, ideal video-to-segment mapping $g^{*}:\mathcal{X}\mapsto \mathcal{Y}$ . To approximate $g^{*}$ , recent leading VOS models typically work in a supervised learning manner, requiring $N$ input samples and their desired outputs $y_{n}\coloneqq g^{*}(x_{n})$ , where $\{(x_n,y_n)\}_{n}\subset \mathcal{X}\times \mathcal{Y}$ . In contrast, we address the problem in settings with much less supervision: (1) the unsupervised case, when we only have samples drawn from $\mathcal{X}$ , $\{x_{n}\}_{n}\subset \mathcal{X}$ , and want to approximate $g^{*}$ , and (2) the weakly supervised learning setting, in which we have annotations for $\mathcal{K}$ , which is a related output domain for which obtaining annotations is easier
+
+than $\mathcal{V}$ , and we approximate $g^{*}$ using samples from $\mathcal{X} \times \mathcal{K}$ .
+
+The standard way of evaluating learning outcomes follows an empirical risk/loss minimization formulation [43]:
+
+$$
+\tilde {g} \in \underset {g \in \mathcal {G}} {\arg \min } \frac {1}{N} \sum_ {n} \varepsilon (g (x _ {n}), z (x _ {n})), \tag {1}
+$$
+
+where $\mathcal{G}$ denotes the hypothesis (solution) space, and $\varepsilon: \mathcal{X} \times \mathcal{Y} \mapsto \mathbb{R}$ is an error function that evaluates the estimate $g(x_{n})$ against VOS-related prior knowledge $z(x_{n}) \in \mathcal{Z}$ . To make $\tilde{g}$ a good approximation of $g^{*}$ , current supervised VOS methods directly use the desired output $y_{n}$ , i.e., $z(x_{n}) := g^{*}(x_{n})$ , as the prior knowledge, with the price of vast amounts of well-annotated data.
+
+In our method, the prior knowledge $\mathcal{Z}$ , in the unsupervised learning setting, is built upon several heuristics and intrinsic properties of VOS itself, while in the weakly supervised learning setting, it additionally considers a related, easily-annotated output domain $\kappa$ . For example, part of the fore-background knowledge could be from a saliency model [70] (Fig. 1(b)), or in a form of CAM maps [73, 76] from a pre-trained image classifier [14] (i.e., a related image classification domain $\kappa$ )². Exploring VOS in an unsupervised or weakly supervised setting is appealing not only because it alleviates the annotation burden of $\mathcal{Y}$ , but also because it inspires an in-depth understanding of the nature of VOS by exploring $\mathcal{Z}$ . Specifically, we analyze several different types of cues at multiple granularities, which are crucial for video object pattern modeling:
+
+- At the frame granularity, we leverage information from an unsupervised saliency method [70] or CAM [73, 76] activation maps to enhance the foreground and background discriminability of our intra-frame representation.
+- At the short-term granularity, we impose local consistency within the representations of short video clips, to describe the continuous and coherent visual patterns within a few seconds.
+- At the long-range granularity, we address semantic correspondence among distant frames, which makes the cross-frame representations robust to local occlusions, appearance variations and shape deformations.
+- At the whole-video granularity, we encourage the video representation to capture global and compact video content, by learning to aggregate multi-frame information and be discriminative to other videos' representations.
+
+All these constraints are formulated under a unified, multi-granularity VOS (MuG) framework, which is fully differentiable and allows unsupervised/weakly supervised video object pattern learning, from unlabeled videos. Our extensive experiments over various VOS settings, i.e., object-level Z-VOS, instance-level Z-VOS, and O-VOS, show that MuG outperforms other unsupervised and weakly
+
+supervised methods by a large margin, and continuously improves its performance with more unlabeled data.
+
+# 2. Related Work
+
+# 2.1. Video Object Segmentation
+
+Z-VOS. As there is no indication for objects to be segmented, conventional ZVOS methods resorted to certain heuristics, such as saliency [59, 62, 61, 7], object proposals [19, 37, 24], and discriminative motion patterns [31, 10, 33]. Recent advances have been driven by deep learning techniques, from early, relatively simple architectures, such as recurrent network [45, 32, 63], and two-stream network [6, 49, 77], to recent, more powerful designs, such as teacher-student adaption [44], neural co-attention [26] and graph neural network [58, 68].
+
+O-VOS. As the annotations for the first frame are assumed available at the test phase, O-VOS focuses on how to accurately propagate the initial labels to subsequent frames. Traditional methods typically used optical flow based propagation strategy [29, 9, 60, 28]. Now, deep learning based solutions become the main stream, which can be broadly classified into three categories, i.e., online learning, propagation and matching based methods. Online learning based methods [3, 55, 35] fine-tune the segmentation network for each test video on the first-frame annotations. Propagation based methods [18, 67, 71] rely on the segments of the previous frames and work in a frame-by-frame manner. Matching based methods [66, 54, 27] segment each frame according to its correspondence/matching relation to the first frame.
+
+Typically, current deep learning based VOS solutions (both Z-VOS and O-VOS) are trained using a large amount of elaborately-annotated data for supervised learning. In contrast, the proposed method trains a VOS network from scratch using unlabeled videos. This is essential for understanding how visual recognition works in VOS and for narrowing down the annotation budget.
+
+# 2.2. VOS with Unlabeled Training Videos
+
+Learning VOS from unlabeled videos is important but under-explored. Among a few efforts, Pathak et al. [34] present an early attempt in this direction, which uses a modified, purely unsupervised version of [7] to generate proxy masks as pseudo annotations. In a similar spirit, some methods use heuristic segmentation masks [17] or weakly supervised location maps [23] as supervisory signals. With a broader view, some works [47, 11, 74] capitalized on untrimmed videos tagged with semantic labels. In addition to increased annotation efforts, they are hard to handle such a class-agnostic VOS setting. Recently, self-supervised video learning has been applied for O-VOS [56, 65], which imposes the learned features to capture certain constraints on local coherence, such as cross-frame color consistency [56] and temporal cycle-correspondence [65].
+
+Our method is distinctive in two aspects. First, it explores various intrinsic properties of videos as well as class-agnostic fore-background knowledge in a unified, multi-granularity framework, bringing a more comprehensive understanding of visual patterns in VOS. Second, it shows strong video object representation learning ability and, for the first time, it is applied to diverse VOS settings after only being trained once. This gives a new glimpse into the connections between the two most influential VOS settings.
+
+# 3. Proposed Algorithm
+
+# 3.1. Multi-Granularity VOS Network
+
+For a training video $\mathcal{X} \in \mathcal{X}$ containing $T$ frames: $\mathcal{X} = \{X_{t}\}_{t=1}^{T}$ , its features are specified as $\{\pmb{x}_t\}_{t=1}^T$ , obtained from a fully convolutional feature extractor $\varphi: \pmb{x}_t = \varphi(X_t) \in \mathbb{R}^{W \times H \times C}$ . Characteristics at four-granularity are explored to guide the learning of $\varphi$ (Fig.2), as follows.
+
+Frame Granularity Analysis: Fore-background Knowledge Understanding. As $\varphi$ is VOS-aware, basic foreground knowledge is desired to be encoded. In our method, this knowledge (Fig. 1(b)) is initially from a background prior based saliency model[70] (in an unsupervised learning setting), or in a form of CAM maps [73, 76] (in a weakly supervised learning setting).
+
+Formally, for each frame $X_{t}$ , let us denote its corresponding initial fore-background mask as $Q_{t} \in \{0,1\}^{W \times H}$ (i.e., a binarized saliency or CAM activation map). In our frame granularity analysis, the learning of $\varphi$ is guided by the supervision signals of $\{Q_{t}\}_{t=1}^{T}$ , i.e., utilizing the intra-frame information $\mathbf{x}_{t} = \varphi(X_{t})$ to regress $Q_{t}$ :
+
+$$
+\mathcal {L} _ {\text {f r a m e}} = \mathcal {L} _ {\mathrm {C E}} \left(P _ {t}, Q _ {t}\right). \tag {2}
+$$
+
+Here $\mathcal{L}_{\mathrm{CE}}$ is the cross-entropy loss, and $P_{t} = \rho (\pmb{x}_{t})$ where $\rho: \mathbb{R}^{W\times H\times C}\mapsto [0,1]^{W\times H}$ maps the input single-frame feature $\pmb{x}_t$ into a fore-background prediction map $P_{t}$ . $\rho$ is implemented by a $1\times 1$ convolutional layer with sigmoid activation.
+
+Short-Term Granularity Analysis: Intra-Clip Coherence Modeling. Short-term coherence is an essential property in videos, as temporally-close frames typically exhibit continuous visual content changes [15]. To capture this property, we apply a forward-backward patch tracking mechanism [57] which learns $\varphi$ by tracking a sampled patch forwards in a few successive frames and then backwards until the start frame, and penalizing the distance between the initial and final backwards tracked positions of that patch.
+
+
+Figure 2: Overview of our approach. Intrinsic properties over frame, short-term, long-term and whole video granularities are explored to guide the video object pattern learning.
+
+Formally, given two consecutive frames $X_{t}$ and $X_{t + 1}$ , we first crop a patch $p$ from $X_{t}$ and apply $\varphi$ on $p$ and $X_{t + 1}$ , separately. Then we obtain two feature embeddings: $\varphi(p) \in \mathbb{R}^{w \times h \times C}$ and $x_{t + 1} = \varphi(X_{t + 1}) \in \mathbb{R}^{W \times H \times C}$ . With a design similar to the classic Siamese tracker [2], we forward track the patch $p$ on the next frame $X_{t + 1}$ by conducting a cross-correlation operation $\star$ on $\varphi(p)$ and $\varphi(X_{t + 1})$ :
+
+$$
+S _ {\Rightarrow} = \varphi (p) \star \varphi \left(X _ {t + 1}\right) \in [ 0, 1 ] ^ {W \times H}, \tag {3}
+$$
+
+where $S\Rightarrow$ is a sigmoid-normalized response map whose size is rescaled into $(H,W)$ . The new location of $p$ in $X_{t + 1}$ is then inferred according to the peak value on $S\Rightarrow$ . After obtaining the forward tracked patch $p^\prime$ in $X_{t + 1}$ , we backward track $p^\prime$ to $X_{t}$ and get a backward tracking response map $S\Leftarrow$
+
+$$
+S _ {\Leftarrow} = \varphi \left(p ^ {\prime}\right) \star \varphi \left(X _ {t}\right) \in [ 0, 1 ] ^ {W \times H}. \tag {4}
+$$
+
+Ideally, the peak of $S \Leftarrow$ should correspond to the location of $p$ in the initial frame $X_{t}$ . Thus we build a consistency loss that measures the alignment error between the initial and forward-backward tracked positions of $p$ :
+
+$$
+\mathcal {L} _ {\text {s h o r t}} = \| S _ {\Leftarrow} - G _ {p} \| _ {2} ^ {2}, \tag {5}
+$$
+
+where $G_{p} \in [0,1]^{W \times H}$ is a $(H,W)$ -dimensional Gaussian-shape map with the same center of $p$ and variance proportional to the size of $p$ . As in [57], the above forward-backward tracking mechanism is extended to a multi-frame setting (Fig. 3). Specifically, after obtaining the forward
+
+
+Figure 3: Left: Main idea of short-term granularity analysis. Right: Training details for intra-clip coherence modeling.
+
+
+Figure 4: Illustration of our long-term granularity analysis.
+
+tracked patch $p'$ in $X_{t+1}$ , $p'$ is further tracked to the next frame $X_{t+2}$ , and a new tracked patch $p''$ is obtained. Then $p''$ is reversely tracked to $X_{t+1}$ and further to the initial frame $X_t$ , and the local consistency loss in Eq. 5 is computed. Moreover, during training, we first random sample a short video clip consisting of six successive frames. Then we perform above forward-backward tracking based learning strategy over three frames from the six-frame video clip. With above designs, $\varphi$ captures the spatiotemporally local correspondence and is content-discriminative (due to its cross-frame target re-identification nature).
+
+Long-Term Granularity Analysis: Cross-Frame Semantic Matching. In addition to the local consistency among adjacent frames, there also exist strong semantic correlations among distant frames, as frames from the same video typically contain similar content [30, 69]. Capturing this property is essential for $\varphi$ , as it makes $\varphi$ robust to many challenges, such as appearance variation, shape deformations, object occlusions, etc. To address this issue, we conduct a long-term granularity analysis, which casts cross-frame correspondence learning as a dual-frame semantic matching problem (Fig. 4). Specifically, given a training pair of two disordered frames $(X_{i}, X_{j})$ randomly sampled from $\mathcal{X}$ , we compute a similarity affinity $A_{i,j}$ between their embeddings: $(\varphi(X_{i}), \varphi(X_{j}))$ by a co-attention[52]:
+
+$$
+\boldsymbol {A} _ {i, j} = \operatorname {s o f t m a x} \left(\boldsymbol {x} _ {i} ^ {\top} \boldsymbol {x} _ {j}\right) \in [ 0, 1 ] ^ {(W H) \times (W H)}, \tag {6}
+$$
+
+where $\pmb{x}_i\in \mathbb{R}^{C\times (WH)}$ and $\pmb{x}_j\in \mathbb{R}^{C\times (WH)}$ are flat matrix formats of $\varphi (X_i)$ and $\varphi (X_j)$ , respectively. 'softmax' indicates column-wise softmax normalization. Given the normalized cross-correlation $A_{i,j}$ , in line with [41], we use a small neural network $\kappa :\mathbb{R}^{(W\times H)\times (W\times H)}\mapsto \mathbb{R}^6$ to regress the parameters of a geometric transformation $\tau_{i,j}$ , i.e., six-degree of freedom (translation, rotation and scale). $\tau_{i,j}:\mathbb{R}^2\mapsto \mathbb{R}^2$ gives the relations between the spatial coordinates in $X_{i}$ and $X_{j}$ considering the corresponding semantic similarity:
+
+$$
+\boldsymbol {m} _ {i} = \tau_ {i, j} (\boldsymbol {m} _ {j}), \tag {7}
+$$
+
+where $\pmb{m}_i$ is a 2-D spatial coordinate of $X_i$ , and $\pmb{m}_j$ the corresponding sampling coordinates in $X_j$ . Using $\tau_{i,j}$ , we can warp $X_i$ to $X_j$ . Similarly, we can also compute $\tau_{j,i}$ , i.e., a 2-D warping from $X_j$ to $X_i$ . Let us consider two sampling coordinates $\pmb{m}_i$ and $\pmb{n}_j$ in $X_j$ and $X_i$ , respectively, we introduce a semantic matching loss[41]:
+
+$$
+\mathcal {L} _ {\text {l o n g}} = - \left(\sum_ {\boldsymbol {m} _ {i} \in \Omega} \sum_ {\boldsymbol {o} _ {j} \in \Omega} \boldsymbol {A} _ {i, j} \left(\boldsymbol {m} _ {i}, \boldsymbol {o} _ {j}\right) \iota \left(\boldsymbol {m} _ {i}, \boldsymbol {o} _ {j}\right) + \right. \\ \left. \sum_ {\boldsymbol {n} _ {j} \in \Omega} \sum_ {\boldsymbol {o} _ {i} \in \Omega} \boldsymbol {A} _ {j, i} \left(\boldsymbol {n} _ {j}, \boldsymbol {o} _ {i}\right) \iota \left(\boldsymbol {m} _ {i}, \boldsymbol {o} _ {i}\right)\right), \tag {8}
+$$
+
+where $\Omega$ refers to the image lattice, $A_{i,j}(\pmb{m}_i,\pmb{o}_j)\in [0,1]$ gives the similarity value between the positions $\pmb{m}_{i}$ and $\pmb{o}_j$ in $X_{i}$ and $X_{j}$ , and $\iota (\pmb {m}_i,\pmb {o}_j)$ determines if the correspondence between $\pmb{m}_i$ and $\pmb{o}_j$ is geometrically consistent. If $||\pmb {m}_i,\tau_{i,j}(\pmb {o}_j)||\leq 1$ $\iota = 1$ otherwise $\iota = 0$
+
+Video Granularity Analysis: Global and Discriminative Representation Learning. So far, we have used the pairwise cross-frame information in local and long terms to boost the learning of $\varphi$ . $\varphi$ is also desired to learn a compact and globally discriminative video representation. To achieve this, we use a global information aggregation module which performs video granularity analysis within an unsupervised video embedding learning framework [1] to leverage supervision signals from different videos.
+
+Starting with our global information aggregation module, we split $\mathcal{X} = \{X_{t}\}_{t = 1}^{T}$ into $K$ segments of equal durations: $\mathcal{X} = \cup_{k = 1}^{K}\mathcal{X}_{k}$ . For each segment $\mathcal{X}_k$ , we randomly sample a single frame, resulting in a $K$ -frame abstract $\mathcal{X}' = \{X_{t_k}\}_{k = 1}^K$ of $\mathcal{X}$ . $\mathcal{X}'$ reduces the redundancy among successive frames while preserving global information.
+
+With a similar spirit of key-value retrieval networks [46], for each $X_{t_k} \in \mathcal{X}'$ , we set it as a query and the remaining frames $\mathcal{X}' / X_{t_k}$ as reference. Then we compute the normalized cross-correlation between the query and reference:
+
+$$
+\boldsymbol {A} _ {t _ {k}} = \operatorname {s o f t m a x} \left(\boldsymbol {x} _ {t _ {k}} ^ {\top} \left[ \left\{\boldsymbol {x} _ {t _ {k ^ {\prime}}} \right\} _ {t _ {k ^ {\prime}}} \right]\right) \in [ 0, 1 ] ^ {(W H) \times (W H (K - 1))}, \tag {9}
+$$
+
+where $k' \in \{1, \dots, K\}/k$ , and $[\cdot]$ denotes the concatenation operation. $\pmb{x}_{t_k} \in \mathbb{R}^{C \times (WH)}$ and $[\{\pmb{x}_{t_{k'}}\}_{t_{k'}} \in \{1, \dots, K\}/k] \in \mathbb{R}^{C \times (WH(K-1))}$ are flat feature matrices of the query and reference, respectively. Subsequently, $\pmb{A}_{t_k}$ is used as a weight matrix for global information summarization:
+
+$$
+\boldsymbol {x} _ {t _ {k}} ^ {\prime} = \left[ \left\{\boldsymbol {x} _ {t _ {k}, k} \right\} _ {t _ {k}, k} \right] \boldsymbol {A} _ {t _ {k}} ^ {\top} \in \mathbb {R} ^ {(W H) \times C}, \quad \text {w h e r e} k ^ {\prime} \in \{1, \dots , K \} / k. \tag {10}
+$$
+
+Our global information aggregation module gathers information from the reference set with a correlation-based feature summarization procedure. For query frame $X_{t_k}$ , we obtain a global information augmented representation:
+
+$$
+\boldsymbol {r} _ {t _ {k}} = \left[ \boldsymbol {x} _ {t _ {k}} ^ {\prime}, \boldsymbol {x} _ {t _ {k}} \right] \in \mathbb {R} ^ {W \times H \times 2 C}. \tag {11}
+$$
+
+During training, the video granularity analysis essentially discriminates between a set of surrogate video classes [1]. Specifically, given $N$ training videos, we randomly sample a single frame from each video, leading to $N$ training instances: $\{X^n\}_{n=1}^N$ . The core idea is that, for a query frame $X_{t_k}^n$ in the $n$ -th video, its global feature embedding is close to the instance $X^n$ from the same $n$ -th video, and far from other unrelated instances $\{X^{n'}\}_{n' \neq n}$ (from the other $N-1$ videos). We solve this as a binary classification problem via maximum likelihood estimation (MLE). In particular, for $X_{t_k}^n$ , instance $X^n$ should be classified into $n$ , while other instances $\{X^{n'}\}_{n' \neq n}$ shouldn't be. The probability of $X^n$ being recognized as instance $n$ is:
+
+$$
+P (n \mid X ^ {n}) = \frac {\exp \left(\operatorname {G A P} \left(\boldsymbol {r} _ {t _ {k}} ^ {n \top} \boldsymbol {r} ^ {n}\right)\right)}{\sum_ {i = 1} ^ {N} \exp \left(\operatorname {G A P} \left(\boldsymbol {r} _ {t _ {k}} ^ {n \top} \boldsymbol {r} ^ {i}\right)\right)}. \tag {12}
+$$
+
+where 'GAP' stands for global average pooling. Similarly, given $X_{t_k}^n$ , the probability of other instances $X^{n'}$ be recognized as instance $n$ is:
+
+$$
+P (n \mid X ^ {n ^ {\prime}}) = \frac {\exp \left(\operatorname {G A P} \left(\boldsymbol {r} _ {t _ {k}} ^ {n ^ {\top}} \boldsymbol {r} ^ {n ^ {\prime}}\right)\right)}{\sum_ {i = 1} ^ {N} \exp \left(\operatorname {G A P} \left(\boldsymbol {r} _ {t _ {k}} ^ {n ^ {\top}} \boldsymbol {r} ^ {i}\right)\right)}. \tag {13}
+$$
+
+Correspondingly, the probability of $X^{n'}$ not being recognized as instance $n$ is $1 - P(n|X^{n'})$ . The joint probability of $X^n$ being recognized as instance $n$ and $X^{n'}$ not being is: $P(n|X^n)\prod_{n'\neq n}(1 - P(n|X^{n'}))$ , under the assumption that different instances being recognized as $n$ are independent.
+
+Then the loss function is defined as the negative log likelihood over $N$ query frames from $N$ videos:
+
+$$
+\mathcal {L} _ {\text {g l o b a l}} = - \sum_ {n} \log P (n | X ^ {n}) - \sum_ {n} \sum_ {n ^ {\prime} \neq n} \log \left(1 - P (n | X ^ {n ^ {\prime}})\right). \tag {14}
+$$
+
+# 3.2. One Training Phase for both Z-VOS and O-VOS
+
+We now describe the network architecture during the training and inference phases. An appealing advantage of our multi-granularity VOS network is that, after being trained in a unified mode, it can be directly applied to both Z-VOS and O-VOS settings with only slight adaption.
+
+Network Architecture. Our whole module is end-to-end trainable. The video representation space $\varphi$ is learned by a fully convolutional network, whose design is inspired by ResNet-50[13]. In particular, the first four groups of convolutional layers in ResNet are preserved and dilated convolutional layer[72] is used to maintain enough spatial details as well as ensure a large receptive field, resulting in a 512-channel feature representation $x$ whose spatial dimensions are $1/4$ of an input video frame $X$ .
+
+During training, we use a mini-batch of $N = 16$ videos and scale all the training frames into $256 \times 256$ pixels. For frame granularity analysis, all the frames access to the supervision signal from the loss $\mathcal{L}_{\mathrm{frame}}$ in Eq.2.
+
+For short-term granularity analysis, six successive video frames are first randomly sampled from each training video, resulting in a six-frame video clip. For each video clip, we further sample three video frames orderly and randomly crop a $64 \times 64$ patch as $p$ . With the feature embedding $\varphi(p) \in \mathbb{R}^{16 \times 16 \times 64}$ of $p$ , we forward-backward track $p$ and get its final backward tracking response map $S \Leftarrow [0,1]^{64 \times 64}$ via Eq. 4. For computing the loss in Eq. 5, the Gaussian-shape map $G_{p} \in [0,1]^{64 \times 64}$ is obtained by convolving the center position of $p$ with a two-dimension Gaussian map with a kernel width proportional (0.1) to the patch size.
+
+For long-term granularity analysis, after randomly sampling two disordered frames $(X_{i},X_{j})$ $(|i - j|\geq 6)$ from a training video $\mathcal{X}$ , we compute the correlation map $A_{i,j}\in [0,1]^{(64\times 64)\times (64\times 64)}$ by the normalized inner production operation in Eq.6. For the geometric transformation parameter estimator $\kappa \colon \mathbb{R}^{(64\times 64)\times (64\times 64)}\mapsto \mathbb{R}^6$ , it is achieved by two
+
+convolutional layers and one linear layer, as in [41]. Then the semantic matching loss in Eq.8 is computed.
+
+For video granularity analysis, we split each training video $\mathcal{X}$ into $K = 8$ segments, and get the global information augmented representation $\boldsymbol{r}_{t_k} \in \mathbb{R}^{64 \times 64 \times 256}$ for each query frame $X_{t_k}$ by Eq.11. Then, we compute the softmax embedding learning loss using Eq.14, which leverages supervision signals from the $N$ training videos.
+
+Iterative Training by Bootstrapping. As seen in Fig.1(b), the fore-background knowledge from the saliency [70] or CAM [73, 76] is ambiguous and noisy. Inspired by Bootstrapping [40], we apply an iterative training strategy: after training with the initial fore-background maps, we use our trained model to re-label the training data. With each iteration, the learner bootstraps itself by mining better fore-background knowledge and then leading a better model. Specifically, for each training frame $X$ , given the initial fore-background mask $Q \in \{0,1\}^{64 \times 64}$ and current prediction $\bar{P}^i \in \{0,1\}^{64 \times 64}$ of the model in $i$ -th training iteration, the loss in Eq.2 in $(i + 1)$ -th iteration is formulated in a bootstrapping format:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {f r a m e}} ^ {(i + 1)} = \sum_ {m \in \Omega} [ \alpha Q _ {m} + (1 - \alpha) \bar {P} _ {m} ^ {i} ] \log \left(P _ {m} ^ {i + 1}\right) + \tag {15} \\ [ \alpha (1 - Q _ {m}) + (1 - \alpha) (1 - \bar {P} _ {m} ^ {i}) ] \log (1 - P _ {m} ^ {i + 1}), \\ \end{array}
+$$
+
+where $\alpha = 0.05$ and $Q_{m}$ gives the value in position $m$ . In such a design, the 'confident' fore-background knowledge is generated as a convex combination of the initial fore-background information $Q$ and model prediction $P$ .
+
+In the $i$ -th training iteration, the overall loss to optimize the whole network parameters is the combination of the losses in Eq. 15, 4, 8 and 14:
+
+$$
+\mathcal {L} ^ {(h)} = \mathcal {L} _ {\text {f r a m e}} ^ {(h)} + \beta_ {1} \mathcal {L} _ {\text {s h o r t}} + \beta_ {2} \mathcal {L} _ {\text {l o n g}} + \beta_ {3} \mathcal {L} _ {\text {g l o b a l}}, \tag {16}
+$$
+
+where $\beta$ s are coefficients: $\beta_{1} = 0.1$ , $\beta_{2} = 0.02$ and $\beta_{3} = 0.5$ .
+
+The above designs enable a unified un-/weakly supervised feature learning framework. Once the model is trained, the learned representations $\varphi$ can be used for Z-VOS and O-VOS, with slight modifications. In practice, we find that our model can perform well after being trained with 2 iterations; please see §4.2 for related experiments.
+
+# 3.3. Inference for Z-VOS and O-VOS
+
+Now we detail our inference modes for object-level Z-VOS, instance-level Z-VOS, and O-VOS settings.
+
+Object-Level Z-VOS Setting. For each test frame, object-level Z-VOS aims to predict a binary segmentation mask where the primary foreground objects are separated from the background while the identities of different foreground objects are not distinguished. In the classic VOS setting, since there is no any test-time human intervention, how to discover the primary video objects is the central problem. Considering the fact that interested objects frequently appear throughout the video sequence, we readout
+
+the segmentation results from the global information augmented feature $\pmb{r}$ , instead of directly using intra-frame information to predict the fore-background mask (i.e., $\rho(\pmb{x})$ ). This is achieved by an extra segmentation readout layer $v: \mathbb{R}^{64 \times 64 \times 256} \mapsto [0,1]^{64 \times 64}$ , which takes the global frame embedding $\pmb{r}$ as the input and produces the final object-level segmentation prediction. $v$ is also trained by the cross-entropy loss, as in Eq. 15. For notation clarity, we omit this term in the overall training loss in Eq. 16. Note that $v$ is only used in Z-VOS (not O-VOS, see below).
+
+Instance-Level Z-VOS Setting. Our model can also be adapted for the instance-level Z-VOS setting, in which different object instances must be discriminated, in addition to separating the primary video objects from the background without test-time human supervision. For each test frame, we first apply mask-RCNN [12] to produce a set of category agnostic object proposals. Then we apply our trained model for producing a binary foreground-background mask per frame. After combining object bounding-box proposals with binary object-level segmentation masks, we can filter out the background proposals and obtain pixel-wise, instance-level object candidates for each frame. Finally, to link those object candidates across different frames, similar to [27], we use overlap ratio and optical flow as the cross-frame candidate-association metric. Note that, mask-RCNN can be replaced with nonlearning Edgebox [78] and GrabCut, resulting a purely unsupervised/weakly-supervised protocol.
+
+O-VOS Setting. In O-VOS, for each test video sequence, instance-level annotations regarding multiple general foreground objects in the first frame are given. In such a setting, our trained network works in a per-frame matching based mask propagation fashion. Concretely, assume there are a total of $L$ object instances (including the background) in the first-frame annotation, each spatial position $\pmb{n} \in \Omega$ will be associated with a one-hot class vector $\hat{y}_n \in \{0,1\}^L$ , whose element $\hat{y}_n^l$ indicates whether pixel $\pmb{n}$ belong to $l$ -th object instance. Starting from the second frame, we use both the last segmented frame $X_{t-1}$ as well as current under-segmented frame $X_t$ to build an input pair for our model. Then we compute their similarity affinity $A_{t-1,t} \in [0,1]^{(64 \times 64) \times (64 \times 64)}$ in the feature space: $A_{t-1,t} = \text{softmax}(x_{t-1}^\top x_t)$ . After that, for each pixel $\pmb{m}$ in $X_t$ , we compute its probability distribution $\nu_m \in [0,1]^L$ over the $L$ object instances as:
+
+$$
+\boldsymbol {v} _ {\boldsymbol {m}} = \sum_ {\boldsymbol {n} \in \Omega} \boldsymbol {A} _ {t - 1, t} (\boldsymbol {n}, \boldsymbol {m}) \hat {\boldsymbol {y}} _ {\boldsymbol {m}}, \tag {17}
+$$
+
+where $\mathbf{A}_{t-1,t}(\mathbf{n},\mathbf{m}) \in [0,1]$ is the affinity value between pixel $\mathbf{n}$ in $X_{t-1}$ and $\mathbf{m}$ in $X_t$ . For $\mathbf{m}$ , it is assigned to $l^*$ -th instance: $l^* = \arg \max_l(\{v_m^l\}_{l=1}^L)$ , where $v_m = [v_m^l]_{l=1}^L$ . Then we get its label vector $\hat{\mathbf{y}}_m$ . In this way, from the segmented frame $X_t$ , we move to the next input frame pair $(X_t, X_{t+1})$ and get the segmentation result for $X_{t+1}$ . As our method does not use any first-frame fine-tuning [6, 35] or online learning [55] technique, it is fast for inference.
+
+| Aspects | Module | Unsuper. mean J ΔJ | Weakly-super. mean J ΔJ |
| Reference | Full model (2 iterations) | 58.0 | - | 61.2 | - |
| Initial Fore-/Background Knowledge | Heuristic Saliency [70] | 37.2 | -20.8 | - | - |
| CAM[73] | - | - | 45.3 | -15.9 |
| Multi-Granularity Analysis | w/o. Frame Granularity | 40.2 | -17.8 | 40.2 | -21.0 |
| w/o. Short-term Granularity | 51.3 | -6.7 | 57.1 | -4.1 |
| w/o. Long-term Granularity | 52.8 | -5.2 | 56.0 | -5.2 |
| w/o. Video Granularity | 56.4 | -1.6 | 60.4 | -0.8 |
| Iterative Training via Bootstrapping | 1 iteration | 50.8 | -7.2 | 54.9 | -6.3 |
| 3 iterations | 58.0 | 0.0 | 61.2 | 0.0 |
| 4 iterations | 58.0 | 0.0 | 61.2 | 0.0 |
| More Data | + LaSOT dataset[8] | 59.5 | +1.5 | 62.3 | +1.1 |
| Post-Process | w/o. CRF | 55.3 | -2.7 | 58.7 | -2.5 |
+
+Table 1: Ablation study on $\mathbf{DAVIS}_{16}$ [36] val set, under the object-level Z-VOS setting. Please see §4.2 for details.
+
+# 4. Experiment
+
+# 4.1. Common Setup
+
+Implementation Details. We train the whole network from scratch on the OxUvA [51] tracking dataset, as in [22]. OxUvA comprises 366 video sequences with more than 1.5 million frames in total. We train our model with SGD optimizer. For our bootstrapping based iterative training, two iterations are used and each takes about 8 hours.
+
+Configuration and Reproducibility. MuG is implemented on PyTorch. All experiments are conducted on an Nvidia TITAN Xp GPU and an Intel (R) Xeon E5 CPU. All our implementations, trained models, and segmentation results will be released to provide the full details of our approach.
+
+# 4.2. Diagnostic Experiments
+
+A series of ablation studies are performed for assessing the effectiveness of each essential component of MuG.
+
+Initial Fore-Background Knowledge. Baselines Heuristic Saliency and CAM give the scores of initial fore-background knowledge, based on their CRF-binarized outputs. As seen, with the low-quality initial knowledge, our MuG gains huge performance improvements $(+20.8\%)$ and $+15.9\%$ promotions), showing the significance of our multi-granularity video object pattern learning scheme.
+
+Multi-Granularity Analysis. Next we investigate the contributions of multi-granularity cues in depth. As shown in Table1, the intrinsic, multi-granularity properties are indeed meaningful, as disabling any granularity analysis component causes performance to erode. For instance, removing the frame granularity analysis during learning hurts performance (mean $\mathcal{I}: 58.0 \to 40.2$ , $61.2 \to 40.2$ ), due to the lack of fore-/background information. Similarly, performance drops when excluding short- or long-term granularity analysis, suggesting the importance of capturing local consistency and semantic correspondence. Moreover, considering video granularity information also improves the final performance, proving the meaning of comprehensive video content understanding in video object pattern modeling.
+
+Iterative Training Strategy. From Table 1, we can see that
+
+| Supervision Method | Non Learning | Unsupervised Learning | Weakly-supervised |
| TRC[10] | CVOS[48] | KEY[24] | MSG[31] | NLC[7] | FST[33] | Motion Masks[34] | TSN[17] | Ours | COSEG[50] | Ours |
| J | Mean ↑ | 47.3 | 48.2 | 49.8 | 53.3 | 55.1 | 55.8 | 48.9 | 31.2 | 58.0 | 52.8 | 61.2 |
| Recall ↑ | 49.3 | 54.0 | 59.1 | 61.6 | 55.8 | 64.7 | 44.7 | 18.7 | 65.3 | 50.0 | 74.5 |
| Decay ↓ | 8.3 | 10.5 | 14.1 | 2.4 | 12.6 | 0.0 | 19.2 | -0.4 | 2.0 | 10.7 | 11.6 |
| F | Mean ↑ | 44.1 | 44.7 | 42.7 | 50.8 | 52.3 | 51.1 | 39.1 | 18.4 | 51.5 | 49.3 | 56.1 |
| Recall ↑ | 43.6 | 52.6 | 37.5 | 60.0 | 51.9 | 51.6 | 28.6 | 5.6 | 53.2 | 52.7 | 62.1 |
| Decay ↓ | 12.9 | 11.7 | 10.6 | 5.1 | 11.4 | 2.9 | 17.9 | 1.9 | 2.1 | 10.5 | 3.55 |
| T | Mean ↓ | 39.1 | 25.0 | 26.9 | 30.1 | 42.5 | 36.6 | 36.4 | 37.5 | 30.1 | 28.2 | 58.6 |
+
+Table 2: Evaluation of object-level Z-VOS on DAVIS16 val set [36] (§4.3), with region similarity $\mathcal{I}$ , boundary accuracy $\mathcal{F}$ and time stability $\mathcal{T}$ . (The best scores in each supervision setting are marked in bold. These notes are the same to other tables.)
+
+| Supervision Method | Non Learning | Unsupervised Learning | Weakly-supervised Learning |
| CRANE[47] | NLC[7] | FST[33] | ARP[19] | Motion Masks[34] | TSN[17] | Ours | SOSD[75] | BBF[42] | COSEG[50] | Ours |
| J Mean ↑ | 23.9 | 27.7 | 53.8 | 46.2 | 32.1 | 52.2 | 57.7 | 54.1 | 53.3 | 58.1 | 62.4 |
+
+with more iterations of our bootstrapping training strategy $(1\to 2)$ , better performance can be obtained. However, further iterations $(2\to 4)$ give only marginal performance change. We thus use two iterations in all the experiments.
+
+More Training Data. To show the potential of our unsupervised/weakly supervised VOS learning scheme, we probe the upper bound by training on additional videos. With more training data (1400 videos) from LaSOT dataset [8], performance boosts can be observed in both two settings.
+
+# 4.3. Performance for Object-Level Z-VOS
+
+Datasets. Experiments are conducted on two famous Z-VOS datasets: DAVIS[36] and Youtube-Objects[39], which have pixel-wise, object-level annotations. $\mathrm{DAVIS}_{16}$ has 50 videos (3,455 frames), covering a wide range of challenges, such as fast motion, occlusion, dynamic background, etc. It is split into a train set (30 videos) and a val set (20 videos). Youtube-Objects contains 126 video sequences that belong to 10 categories (such as cat, dog, etc.) and has 25,673 frames in total. The val set of $\mathrm{DAVIS}_{16}$ and whole Youtube-Objects are used for evaluation.
+
+Evaluation Criteria. For fair comparison, we follow the official evaluation protocols of each dataset. For $\mathrm{DAVIS}_{16}$ , we report region similarity $\mathcal{I}$ , boundary accuracy $\mathcal{F}$ and time stability $\mathcal{T}$ . For Youtube-Objects, the performance is evaluated in terms of region similarity $\mathcal{J}$ .
+
+Post-processing. Following the common protocol in this area[49, 45, 6], the final segmentation results are optimized by CRF[21] (about 0.3s per frame).
+
+Quantitative Results. Table 2 presents the comparison results with several non-learning, unsupervised or weakly supervised learning competitors in $\mathrm{DAVIS}_{16}$ dataset. MuG exceeds current leading unsupervised learning-based methods (i.e., Motion Masks [34] and TSN [17]) in large margins (58.0 vs 48.9 and 58.0 vs 31.2). MuG also outperforms classical weakly-supervised Z-VOS method COSEG [50], and all the previous heuristic methods. Table3 summarizes comparison results on Youtube-Objects dataset, showing again our superior performance in both unsupervised and weakly supervised learning settings.
+
+Table 3: Evaluation of object-level Z-VOS on Youtube-Objects[39] (§4.3), with mean $\mathcal{I}$ . See the supplementary for more details.
+
+| Supervision Method | Fully Supervised | Unsupervised | Weakly-super. |
| AGS [63] | PDB [45] | RVOS [53] | Ours* | Ours | Ours* | Ours |
| J&F | Mean ↑ | 45.6 | 40.4 | 22.5 | 36.5 | 37.3 | 40.6 | 41.7 |
| Mean ↑ | 42.1 | 37.7 | 17.7 | 33.8 | 35.0 | 37.7 | 38.9 |
| J | Recall ↑ | 48.5 | 42.6 | 16.2 | 38.2 | 39.3 | 42.5 | 44.3 |
| Decay ↓ | 2.6 | 4.0 | 1.6 | 2.1 | 3.8 | 1.9 | 2.7 |
| Mean ↑ | 49.0 | 43.0 | 27.3 | 38.0 | 39.6 | 43.5 | 44.5 |
| F | Recall ↑ | 51.5 | 44.6 | 24.8 | 38.6 | 41.1 | 44.9 | 46.6 |
| Decay ↓ | 2.6 | 3.7 | 1.8 | 3.2 | 4.6 | 1.0 | 1.7 |
+
+Table 4: Evaluation of instance-level Z-VOS on $\mathbf{DAVIS}_{17}$ test-dev set[4] ( $\S 4.4$ ), * denotes purely unsupervised/weakly-supervised protocol with non-learning Edgebox [78] and GrabCut.
+
+Runtime Comparison. The inference time of MuG is about 0.6s per frame, which is faster than most deep learning based competitors (e.g., MotionMask [34] (1.1s), TSN [17] (0.9s)). This is because, except CRF [21], there is no other pre-/post-processing step (e.g., superpixel [50], optical flow [33], etc.) and online fine-tuning [19].
+
+# 4.4. Performance for Instance-Level Z-VOS
+
+Datasets. We test the performance for instance-level Z-VOS on $\mathrm{DAVIS}_{17}$ [4] dataset, which has 120 videos and 8,502 frames in total. It has three subsets, namely, train, val, and test-dev, containing 60, 30, and 30 video sequences, respectively. We use the ground-truth masks provided by the newest DAVIS challenge [4], as the original annotations are biased towards the O-VOS scenario.
+
+Evaluation Criteria. Three standard evaluation metrics, provided by $\mathrm{DAVIS}_{17}$ , are used, i.e., region similarity $\mathcal{I}$ , boundary accuracy $\mathcal{F}$ and the average value of $\mathcal{J} \& \mathcal{F}$ .
+
+Quantitative Results. Three top-performing ZVOS methods from the $\mathrm{DAVIS}_{17}$ benchmark are included. As shown in Table 4, our model achieves comparable performance with the fully supervised methods (i.e., AGS [63] and PDB [45]). Notably, it significantly outperforms recent RVOS[53] (mean $\mathcal{J} \& \mathcal{F}$ : $+14.8\%$ and $+19.2\%$ in unsupervised and weakly-supervised learning setting, respectively).
+
+Runtime Comparison. The processing time for each frame is about 0.7s which is comparable to AGS [63] and
+
+| Supervision Method | Non Learning | Unsupervised Learning | Weakly-supervised FlowNet2[16] Ours |
| HVS [29] | JMP [9] | FCP [37] | SIFT Flow [25] | BVS [28] | Vondrick et al. [56] | mgPFF [20] | TimeCycle [65] | CorrFlow [22] | Ours |
| J Recall ↓ | Mean ↑ | 54.6 | 57.0 | 58.4 | 51.1 | 60.0 | 38.9 | 40.5 | 55.8 | 48.9 | 63.1 | 41.6 |
| Decay ↓ | 61.4 | 62.6 | 71.5 | 58.6 | 66.9 | 37.1 | 34.9 | 64.9 | 44.7 | 71.9 | 45.7 |
| 23.6 | 39.4 | -2.0 | 18.8 | 28.9 | 22.4 | 18.8 | 0.0 | 19.2 | 28.1 | 19.9 |
| F Recall ↓ | Mean ↑ | 52.9 | 53.1 | 49.2 | 44.0 | 58.8 | 30.8 | 34.0 | 51.1 | 39.1 | 61.8 | 40.1 |
| 61.0 | 54.2 | 49.5 | 50.3 | 67.9 | 21.7 | 24.2 | 51.6 | 28.6 | 64.2 | 38.3 |
| 22.7 | 38.4 | -1.1 | 20.0 | 21.3 | 16.7 | 13.8 | 2.9 | 17.9 | 30.5 | 26.6 |
| T Mean ↓ | 36.0 | 15.9 | 30.6 | 16.4 | 34.7 | 45.9 | 53.1 | 36.6 | 36.4 | 43.0 | 29.8 |
+
+Table 5: Evaluation of O-VOS on DAVIS16 val set[36] (§4.5), with region similarity J, boundary accuracy F and time stability T.
+
+| Supervision Method | Non Learning | Unsupervised Learning | Weakly-supervised FlowNet2 [16] | Ours |
| SIFT Flow [25] | BVS [28] | DeepCluster [5] | Transitive Inv [64] | Vondrick et al. [56] | mgPFF [20] | TimeCycle [65] | CorrFlow [22] | Ours |
| J&F | Mean ↑ | 34.0 | 37.3 | 35.4 | 29.4 | 34.0 | 44.6 | 42.8 | 50.3 | 54.3 | 26.0 | 56.1 |
| J | Mean ↑ | 33.0 | 32.9 | 37.5 | 32.0 | 34.6 | 42.2 | 43.0 | 48.4 | 52.6 | 26.7 | 54.0 |
| Recall ↑ | - | 31.8 | - | - | 34.1 | 41.8 | 43.7 | 53.2 | 57.4 | 23.9 | 60.7 |
| F | Mean ↑ | 35.0 | 41.7 | 33.2 | 26.8 | 32.7 | 46.9 | 42.6 | 52.2 | 56.1 | 25.2 | 58.2 |
| Recall ↑ | - | 41.4 | - | - | 26.8 | 44.4 | 41.3 | 56.0 | 58.1 | 24.6 | 62.2 |
+
+Table 6: Evaluation of O-VOS on DAVIS17 va1 set[38] (§4.5), with region similarity J, boundary accuracy F and average of J&F.
+
+
+Figure 5: Visual results on three videos (top: blackswan, middle: tram, bottom: scooter-black) under object-level Z-VOS, instance-level Z-VOS and O-VOS setting, respectively (see §4.6). For scooter-black, its first-frame annotation is also depicted.
+
+PDB [45], and slightly slower than RVOS [53] (0.3s).
+
+# 4.5. Performance for O-VOS
+
+Datasets. DAVIS $_{16}$ [36] and DAVIS $_{17}$ [38] datasets are used for performance evaluation under the O-VOS setting.
+
+Evaluation Criteria. Three standard evaluation criteria are reported: region similarity $\mathcal{J}$ , boundary accuracy $\mathcal{F}$ and the average value of $\mathcal{J} \& \mathcal{F}$ . For $\mathrm{DAVIS}_{16}$ dataset, we further report the time stability $\mathcal{T}$ .
+
+Quantitative Results. Table 5 and Table 6 give evaluation results on $\mathrm{DAVIS}_{16}$ and $\mathrm{DAVIS}_{17}$ , respectively. Table 5 shows that our unsupervised method exceeds representative self-supervised methods (i.e., TimeCyle [65] and CorrFlow [65]) and the best non-learning method (i.e., BVS [28]) across most metrics. In particular, with the learned CAM as supervision, our weakly supervised method further improves the performance, e.g., mean $\mathcal{I}$ of 65.7. Table 6 verifies again our method performs favorably against the current best unsupervised method, CorrFlow, according to mean $\mathcal{I} \& \mathcal{F}$ (54.3 vs 50.3). Note that CorrFlow and our method use the same training data. This demonstrates our MuG is able to learn more powerful video object patterns, compared to previous self-learning counterparts.
+
+Runtime Comparison. In O-VOS setting, MuG runs about 0.4s per frame. This is faster than matching based methods
+
+(e.g., SIFT Flow [25] (5.1s) and mgPFF [20] (1.3s)), and favorably against self-supervised learning methods, e.g., TimeCycle[65] and CorrFlow[22].
+
+# 4.6. Qualitative Results
+
+Fig.5 presents some visual results for object-level ZVOS (top row), instance-level Z-VOS (middle row) and O-VOS (bottom row). For blackswan in $\mathrm{DAVIS}_{16}$ [36], the primary objects undergo view changes and background clutter, but our MuG still generates accurate foreground segments. The effectiveness of instance-level Z-VOS can be observed in tram of $\mathrm{DAVIS}_{17}$ [4]. In addition, MuG can produce high-quality results with the given first-frame annotations in O-VOS setting (see the results on the last row for scooter-black in $\mathrm{DAVIS}_{17}$ [38]), although the different instances suffer from fast motion and scale variation. More results can be found in supplementary materials.
+
+# 5. Conclusion
+
+We proposed MuG - an end-to-end trainable, unsupervised/weakly supervised learning approach for segmenting objects from the videos. In contrast to current popular supervised VOS solutions requiring extensive amounts of elaborately annotated training samples, our MuG models video object patterns by comprehensively exploring supervision signals from different granularities of unlabeled videos. Our model sets new state-of-the-arts over diverse VOS settings, including object-level Z-VOS, instance-level Z-VOS, and O-VOS. Our model opens up the probability of learning VOS from nearly infinite amount of unlabeled videos and unifying different VOS settings from a single view of video object pattern understanding.
+
+Acknowledgements This work was sponsored by Zhejiang Lab's Open Fund (No. 2019KD0AB04), Zhejiang Lab's International Talent Fund for Young Professionals, CCF-Tencent Open Fund and ARO grant W911NF-18-1-0296.
+
+# References
+
+[1] Dosovitskiy Alexey, Springenberg Jost Tobias, Martin Ried-miller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In NIPS, 2014. 4
+[2] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In ECCV, 2016. 3
+[3] Sergi Caelles, Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. In CVPR, 2017. 1, 2
+[4] Sergi Caelles, Jordi Pont-Tuset, Federico Perazzi, Alberto Montes, Kevis-Kokitsi Maninis, and Luc Van Gool. The 2019 davis challenge on vos: Unsupervised multi-object segmentation. arXiv:1905.00737, 2019. 7, 8
+[5] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In ECCV, 2018. 8
+[6] Jingchun Cheng, Yi-Hsuan Tsai, Shengjin Wang, and Ming-Hsuan Yang. Segflow: Joint learning for video object segmentation and optical flow. In ICCV, 2017. 2, 6, 7
+[7] Alon Faktor and Michal Irani. Video segmentation by non-local consensus voting. In BMVC, 2014. 2, 7
+[8] Heng Fan, Liting Lin, Fan Yang, Peng Chu, Ge Deng, Sijia Yu, Hexin Bai, Yong Xu, Chunyuan Liao, and Haibin Ling. Lasot: A high-quality benchmark for large-scale single object tracking. In CVPR, 2019. 6, 7
+[9] Qingnan Fan, Fan Zhong, Dani Lischinski, Daniel Cohen-Or, and Baoquan Chen. Jumpcut: non-successive mask transfer and interpolation for video cutout. ACM Trans. Graph., 34(6):195:1-195:10, 2015. 2, 8
+[10] Katerina Fragkiadaki, Geng Zhang, and Jianbo Shi. Video segmentation by tracing discontinuities in a trajectory embedding. In CVPR, 2012. 2, 7
+[11] Glenn Hartmann, Matthias Grundmann, Judy Hoffman, David Tsai, Vivek Kwatra, Omid Madani, Sudheendra Vijayanarasimhan, Irfan Essa, James Rehg, and Rahul Sukthankar. Weakly supervised learning of object segmentations from web-scale video. In ECCV, 2012. 2
+[12] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 6
+[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
+[14] Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, 2017. 2
+[15] Jarmo Hurri and Aapo Hyvarinen. Simple-cell-like receptive fields maximize temporal coherence in natural video. Neural Computation, 15(3):663-691, 2003. 3
+[16] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In CVPR, 2017. 8
+[17] Croitoru Ioana, Bogolin Simion-Vlad, and Leordeanu Marius. Unsupervised learning from video to detect foreground objects in single images. In ICCV, 2017. 2, 7
+[18] Varun Jampani, Raghudeep Gadde, and Peter V. Gehler. Video propagation networks. In CVPR, 2017. 2
+
+[19] Yeong Jun Koh and Chang-Su Kim. Primary object segmentation in videos based on region augmentation and reduction. In CVPR, 2017. 2, 7
+[20] Shu Kong and Charless Fowlkes. Multigrid predictive filter flow for unsupervised learning on videos. arXiv preprint arXiv:1904.01693, 2019. 8
+[21] Philipp Krahenbuhl and Vladlen Koltun. Efficient inference in fully connected crfs with gaussian edge potentials. In NIPS, 2011. 7
+[22] Zihanng Lai and Weidi Xie. Self-supervised learning for video correspondence flow. In BMVC, 2019. 6, 8
+[23] Jungbeom Lee, Eunji Kim, Sungmin Lee, Jangho Lee, and Sungroh Yoon. Frame-to-frame aggregation of active regions in web videos for weakly supervised semantic segmentation. In ICCV, 2019. 2
+[24] Yong Jae Lee, Jaechul Kim, and Kristen Grauman. Key-segments for video object segmentation. In ICCV, 2011. 2, 7
+[25] Ce Liu, Jenny Yuen, and Antonio Torralba. Sift flow: Dense correspondence across scenes and its applications. IEEE TPAMI, 33(5):978-994, 2010. 8
+[26] Xiankai Lu, Wenguan Wang, Chao Ma, Jianbing Shen, Ling Shao, and Fatih Porikli. See more, know more: Unsupervised video object segmentation with co-attention siamese networks. In CVPR, 2019. 2
+[27] Jonathon Luiten, Paul Voigtlaender, and Bastian Leibe. Premvos: Proposal-generation, refinement and merging for video object segmentation. In ACCV, 2018. 2, 6
+[28] Nicolas Marki, Federico Perazzi, Oliver Wang, and Alexander Sorkine-Hornung. Bilateral space video segmentation. In CVPR, 2016. 2, 8
+[29] Grundmann Matthias, Kwatra Vivek, Han Mei, and Essa Irfan. Efficient hierarchical graph-based video segmentation. In CVPR, 2010. 2, 8
+[30] Hossein Mobahi, Collobert Ronan, and Weston Jason. Deep learning from temporal coherence in video. In ICML, 2009. 4
+[31] Peter Ochs and Thomas Brox. Object segmentation in video: A hierarchical variational approach for turning point trajectories into dense regions. In ICCV, 2011. 2, 7
+[32] Bo Pang, Kaiwen Zha, Hanwen Cao, Chen Shi, and Cewu Lu. Deep rn framework for visual sequential applications. In CVPR, 2019. 2
+[33] Anestis Papazoglou and Vittorio Ferrari. Fast object segmentation in unconstrained video. In ICCV, 2013. 2, 7
+[34] Deepak Pathak, Ross Girshick, Piotr Dollar, Trevor Darrell, and Bharath Hariharan. Learning features by watching objects move. In CVPR, 2017. 2, 7
+[35] Federico Perazzi, Anna Khoreva, Rodrigo Benenson, Bernt Schiele, and Alexander Sorkine-Hornung. Learning video object segmentation from static images. In CVPR, 2017. 2, 6
+[36] Federico Perazzi, Jordi Pont-Tuset, Brian McWilliams, Luc Van Gool, Markus Gross, and Alexander Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In CVPR, 2016. 1, 6, 7, 8
+[37] Federico Perazzi, Oliver Wang, Markus H. Gross, and Alexander Sorkine-Hornung. Fully connected object proposals for video segmentation. In ICCV, 2015. 2, 8
+[38] Jordi Pont-Tuset, Federico Perazzi, Sergi Caelles, Pablo Ar
+
+beláez, Alex Sorkine-Hornung, and Luc Van Gool. The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675, 2017. 8
+[39] Alessandro Prest, Christian Leistner, Javier Civera, Cordelia Schmid, and Vittorio Ferrari. Learning object class detectors from weakly annotated video. In CVPR, 2012. 7
+[40] Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. arXiv preprint arXiv:1412.6596, 2014. 5
+[41] Ignacio Rocco, Relja Arandjelović, and Josef Sivic. End-to-end weakly-supervised semantic alignment. In CVPR, 2018. 4, 5
+[42] Fatemeh Sadat Saleh, Mohammad Sadegh Aliakbarian, Mathieu Salzmann, Lars Petersson, and Jose M. Alvarez. Bringing background into the foreground: Making all classes equal in weakly-supervised video semantic segmentation. In ICCV, 2017. 7
+[43] Hao Shen. Towards a mathematical understanding of the difficulty in learning with feedforward neural networks. In CVPR, 2018. 2
+[44] Mennatullah Siam, Chen Jiang, Steven Lu, Laura Petrich, Mahmoud Gamal, Mohamed Elhoseiny, and Martin Jagersand. Video segmentation using teacher-student adaptation in a human robot interaction (hri) setting. In ICRA, 2019. 2
+[45] Hongmei Song, Wenguan Wang, Sanyuan Zhao, Jianbing Shen, and Kin-Man Lam. Pyramid dilated deeper convlstm for video salient object detection. In ECCV, 2018. 2, 7, 8
+[46] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In NIPS, 2015. 4
+[47] Kevin Tang, Rahul Sukthankar, Jay Yagnik, and Li Fei-Fei. Discriminative segment annotation in weakly labeled video. In CVPR, 2013. 2, 7
+[48] Brian Taylor, Vasilyi Karasev, and Stefano Soatto. Causal video object segmentation from persistence of occlusions. In CVPR, 2015. 7
+[49] Pavel Tokmakov, Karteek Alahari, and Cordelia Schmid. Learning video object segmentation with visual memory. In ICCV, 2017. 2, 7
+[50] Yi-Hsuan Tsai, Guangyu Zhong, and Ming-Hsuan Yang. Semantic co-segmentation in videos. In ECCV, 2016. 7
+[51] Jack Valmadre, Luca Bertinetto, Joao F Henriques, Ran Tao, Andrea Vedaldi, Arnold WM Smeulders, Philip HS Torr, and Efstratios Gavves. Long-term tracking in the wild: A benchmark. In ECCV, 2018. 6
+[52] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017. 4
+[53] Carles Ventura, Miriam Bellver, Andreu Girbau, Amaia Salvador, Ferran Marques, and Xavier Giro-i Nieto. Rvos: End-to-end recurrent network for video object segmentation. In CVPR, 2019. 7, 8
+[54] Paul Voigtlaender, Yuning Chai, Florian Schroff, Hartwig Adam, Bastian Leibe, and Liang-Chieh Chen. Feelvos: Fast end-to-end embedding learning for video object segmentation. In CVPR, 2019. 2
+[55] Paul Voigtlaender and Bastian Leibe. Online adaptation of convolutional neural networks for video object segmentation. In BMVC, 2017. 2, 6
+[56] Carl Vondrick, Abhinav Shrivastava, Alireza Fathi, Sergio
+
+Guadarrama, and Kevin Murphy. Tracking emerges by colorizing videos. In ECCV, 2018. 2, 8
+[57] Ning Wang, Yibing Song, Chao Ma, Wengang Zhou, Wei Liu, and Houqiang Li. Unsupervised deep tracking. In CVPR, 2019. 3
+[58] Wenguan Wang, Xiankai Lu, Jianbing Shen, David J Crandall, and Ling Shao. Zero-shot video object segmentation via attentive graph neural networks. In ICCV, 2019. 2
+[59] Wenguan Wang, Jianbing Shen, and Fatih Porikli. Saliency-aware geodesic video object segmentation. In CVPR, 2015. 1, 2
+[60] Wenguan Wang, Jianbing Shen, Fatih Porikli, and Ruigang Yang. Semi-supervised video object segmentation with super-trajectories. IEEE TPAMI, 41(4):985-998, 2018. 2
+[61] Wenguan Wang, Jianbing Shen, and Ling Shao. Consistent video saliency using local gradient flow optimization and global refinement. IEEE TIP, 24(11):4185-4196, 2015. 2
+[62] Wenguan Wang, Jianbing Shen, and Ling Shao. Video salient object detection via fully convolutional networks. IEEE TIP, 27(1):38-49, 2017. 2
+[63] Wenguan Wang, Hongmei Song, Shuyang Zhao, Jianbing Shen, Sanyuan Zhao, Steven CH Hoi, and Haibin Ling. Learning unsupervised video object segmentation through visual attention. In CVPR, 2019. 2, 7
+[64] Xiaolong Wang, Kaiming He, and Abhinav Gupta. Transitive invariance for self-supervised visual representation learning. In CVPR, 2017. 8
+[65] Xiaolong Wang, Allan Jabri, and Alexei A. Efros. Learning correspondence from the cycle-consistency of time. In CVPR, 2019. 2, 8
+[66] Ziqin Wang, Jun Xu, Li Liu, Fan Zhu, and Ling Shao. Ranet: Ranking attention network for fast video object segmentation. In ICCV, 2019. 2
+[67] Seoung Wug Oh, Joon-Young Lee, Kalyan Sunkavalli, and Seon Joo Kim. Fast video object segmentation by reference-guided mask propagation. In CVPR, 2018. 2
+[68] Yichao Yan, Qiang Zhang, Bingbing Ni, Wendong Zhang, Minghao Xu, and Xiaokang Yang. Learning context graph for person search. In CVPR, 2019. 2
+[69] Yichao Yan, Ning Zhuang, Bingbing Ni, Jian Zhang, Minghao Xu, Qiang Zhang, Zhang Zheng, Shuo Cheng, Qi Tian, Xiaokang Yang, Wenjun Zhang, et al. Fine-grained video captioning via graph-based multi-granularity interaction learning. IEEE TPAMI, 2019. 4
+[70] Chuan Yang, Lihe Zhang, Huchuan Lu, Xiang Ruan, and Ming-Hsuan Yang. Saliency detection via graph-based manifold ranking. In CVPR, 2013. 2, 3, 5, 6
+[71] Linjie Yang, Yanran Wang, Xuehan Xiong, Jianchao Yang, and Aggelos Katsaggellos. Efficient video object segmentation via network modulation. In CVPR, 2018. 2
+[72] Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In ICLR, 2016. 5
+[73] Yu Zeng, Yunzhi Zhuge, Hutchuan Lu, Lihe Zhang, Mingyang Qian, and Yizhou Yu. Multi-source weak supervision for saliency detection. In CVPR, 2019. 2, 3, 5, 6
+[74] Dingwen Zhang, Le Yang, Deyu Meng, Dong Xu, and Junwei Han. Spftn: A self-paced fine-tuning network for segmenting objects in weakly labelled videos. In CVPR, 2017. 2
+[75] Yu Zhang, Xiaowu Chen, Jia Li, Chen Wang, and Changqun
+
+Xia. Semantic object segmentation via detection in weakly labeled video. In CVPR, 2015. 7
+[76] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016. 2, 3, 5
+[77] Tianfei Zhou, Shunzhou Wang, Yi Zhou, Yazhou Yao, Jianwu Li, and Ling Shao. Motion-attentive transition for zero-shot video object segmentation. In AAAI, 2020. 2
+[78] C. Lawrence Zitnick and Piotr Dollar. Edge boxes: Locating object proposals from edges. In ECCV, 2014. 6, 7
\ No newline at end of file
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/images.zip b/learningvideoobjectsegmentationfromunlabeledvideos/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7945510288085e00fb5b2f117d87657baf52e2cf
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c6ff39d10049fd0c50833e45831c1a0736d72b2fffa2b9f99d3f21d128225f9
+size 607377
diff --git a/learningvideoobjectsegmentationfromunlabeledvideos/layout.json b/learningvideoobjectsegmentationfromunlabeledvideos/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..63b9787c9b4e9e9eed64a470ca6a086079d08848
--- /dev/null
+++ b/learningvideoobjectsegmentationfromunlabeledvideos/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29c84fe7eef2597bfcb08a3bac0d99d0f76b3d2ad89744198e07cbbf0f8e3684
+size 651032
diff --git a/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_content_list.json b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..94d700557db5584d4aca5809c2ab7ee60c242841
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c8f09eed0f866ac93263598355f7b3c0faf39772a4ba983eb387029d8de94bb5
+size 76462
diff --git a/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_model.json b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..09a88719e69bed498dc94b87a9029c52ef527175
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bbc696ea6fde1bd80fdfd74f14a26c856832e573326936281bda04d41c9056c1
+size 90408
diff --git a/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_origin.pdf b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..86ed74c17ee973278437c0249972498d0e8a73e6
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/e2ec82c1-6922-4c78-9de3-729ba2be1505_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c9d926d57982290f439e816fa7b68a27d3efe13cb01d7ea6dbb7c202783936c
+size 1790466
diff --git a/learningvideostabilizationusingopticalflow/full.md b/learningvideostabilizationusingopticalflow/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..24d919238e465a1dc36fa189c35f18cd440941f7
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/full.md
@@ -0,0 +1,340 @@
+# Learning Video Stabilization Using Optical Flow
+
+Jiyang Yu
+University of California, San Diego
+jiy173@eng.ucsd.edu
+
+Ravi Ramamoorthi
+University of California, San Diego
+ravir@cs.ucsd.edu
+
+# Abstract
+
+We propose a novel neural network that infers the per-pixel warp fields for video stabilization from the optical flow fields of the input video. While previous learning based video stabilization methods attempt to implicitly learn frame motions from color videos, our method resorts to optical flow for motion analysis and directly learns the stabilization using the optical flow. We also propose a pipeline that uses optical flow principal components for motion inpainting and warp field smoothing, making our method robust to moving objects, occlusion and optical flow inaccuracy, which is challenging for other video stabilization methods. Our method achieves quantitatively and visually better results than the state-of-the-art optimization based and deep learning based video stabilization methods. Our method also gives a $\sim 3x$ speed improvement compared to the optimization based methods.
+
+# 1. Introduction
+
+Video stabilization is a common need in both amateur and professional video capture. On the amateur side, using specific video stabilization equipment is usually difficult and expensive. Therefore, various algorithms have been developed for stabilizing the video. There are two main steps in the video stabilization: understanding the motion pattern and stable frame generation. For the first step, previous video stabilization algorithms resort to explicit physics. Some of these algorithms use image feature detection and tracking to build feature tracks, like Matsushita et.al.[12], Liu et.al.[10] and Grundmann et.al.[5]. Other physically based algorithms consider the real 3D camera motion and scene structures, like Liu et.al.[8] and Goldstein and Fattal[4]. However, the complex nature of videos makes it very difficult for a physically based motion model to cover all the scenarios: the motion blur and occlusions may negatively affect the feature detection and tracking, and reconstructing 3D structure from video with these effects is also difficult. Having observed the limitation of physically based algorithms, in this paper, we use the optical flow to understand the frame motions.
+
+For the second step, traditional video stabilization algorithms use full-frame or grid homography to warp the original frames. However, simple parameterized warping cannot handle complex scenarios like parallax and the rolling shutter effect. Like other optical flow based methods SteadyFlow[11] and Yu and Ramamoorthi[19], we use the
+
+per-pixel warp field, which provides the most flexibility in warping the video frames. These methods perform well on handling complex camera effects like rolling shutter. However, the optical flow essentially only provides a pseudo correspondence between two frames. At occlusion boundaries, pixels can either appear in the next frame or be occluded in the next frame. The optical flow is also inaccurate in regions lacking texture. Using the optical flow as the reference can lead to unexpected artifacts in the output warp fields. We propose a pipeline that is specifically designed to handle the inaccuracy in the optical flow. We are the first method that uses the optical flow principal components[17] in video stabilization instead of hand-crafted spatial smoothness constraints. We will discuss the details of our pipeline in Sec. 3.
+
+The core of our algorithm is a deep neural network that takes the optical flow as the input and directly outputs the warp fields. Our neural network based method overcomes the major drawback of optical flow based methods: the computational complexity. Both SteadyFlow[11] and Yu and Ramamoorthi[19] use optimization to minimize an objective function with a significant amount of unknowns (the motion vectors in the warp fields). The optimization process must be performed for each different video. Our pre-trained network is generalizable to any videos; thus we avoid this main overhead compared to traditional optical flow based methods.
+
+We summarize our contribution as follows:
+
+a) An optical flow based video stabilization network: We proposed a novel neural network that takes the optical flow fields as the input and produces a pixel-wise warp field for each frame. Our neural network can be pre-trained and generalized to any videos. The details are discussed in Sec. 5.
+
+b) Frequency domain regularized training: We propose a frequency domain loss function that enables learning with optical flow fields. We will show the necessity of this loss function in Sec. 5.1.
+
+c) Robust video stabilization pipeline: We propose a pipeline that is robust to moving occlusion and optical flow inaccuracy by applying PCA Flow to video stabilization. The design is demonstrated in Sec. 3. In Sec. 7, we will show that our method generates better results compared to the state-of-the-art optimization based and deep learning based video stabilization methods. Our method also achieves $\sim 3x$ speed improvement compared to optimization based methods.
+
+
+Figure 1. The 3-stage pipeline of our algorithm. $①$ In the first stage(Sec. 4) we initially stabilize the video with translation and rotation. $②$ We compute the optical flow between consecutive frames. $③$ We generate a mask for each frame to indicate the valid regions for stabilization(Sec. 4.1). $④$ The invalid regions are inpainted using PCA Flow(Sec. 4.2). $⑤$ In the second stage(Sec. 5), our stabilization network infers the warp field from the inpainted optical flow fields. $⑥$ In the third stage(Sec. 6), we fit the PCA Flow to the raw warp field and use the smoothed warp field to warp the input video.
+
+# 2. Related Works
+
+In this section, we summarize the traditional physically based video stabilization methods and the recent deep learning based methods. Most existing video stabilization works are 2D physically based methods. The methods below all involve 2D feature tracking. The difference is mainly from the method for feature track smoothing and stable frame generation. Buehler et al.[2] re-render the frames at smoothed camera positions using the non-metric IBR algorithm. Matsushita et al.[12] and Gleicher and Liu[3] use simple 2D full-frame transformations to warp the original frames. Liu et al.[10] uses a grid to warp the frames and smoothes the enclosing feature tracks. Grundmann et al.[5] proposed an L1 optimal camera path for smoothing the feature tracks. Liu et al.[9] extracts and smoothes eigen-trajectories. Goldstein and Fattal[4] constrain the feature track smoothing with the epipolar geometry. Wang et al.[16] also keep the relative position of feature points, but use only 2D constraints.
+
+In addition to these 2D physically based methods, Liu et al.[8] first reconstruct the 3D position of the feature points and camera positions, then smooth the camera trajectory and reproject the feature points to new camera positions. Sun[14] and Smith et al.[13] also use 3D information, but they require depth cameras and light field cameras respectively.
+
+Later works use optical flow and smooth the motion at the pixel level. SteadyFlow[11] smoothes the motion vector changes on each pixel using iterative Jacobi-based optimization. Yu and Ramamoorthi[19] track the pixel motion using the optical flow. They optimize the neural network weights that generate the warp field, instead of solving for the warp field directly. Their optimization must be repeated for each new video. Our method also uses a neural network to infer the pixel-wise warp field, but our network is pre-trained and can be generalized to any videos. Moreover, as we discussed in Sec. 1, using optical flow in video stabilization leads to fundamental problems. Our method is designed specifically to overcome these problems.
+
+Recent works start to apply deep learning to video stabilization. Xu et al.[18] uses the adversarial network to generate a target image to guide the frame warping. Wang et al.[15] uses a two branch Siamese network to generate a grid to warp the video frames. These networks take color
+
+frames as input and are trained with the DeepStab dataset, which contains stable and unstable video pairs. Deep learning methods enable near real-time performance in video stabilization. Visually, the results of these works are not as good as traditional methods. There are two potential reasons for the weak performance of deep learning in video stabilization. First, the video stabilization is a spatial transformation problem. The color images contain rich texture information, but the inter-frame spatial relation remains vague. Wang et al.[15] uses ResNet50 directly without any consideration of spatial transformation. Xu et al.[18] added spatial transformer modules to the adversarial network, but training a single network to infer spatial transformation of multiple frames only from color frames is difficult. Second, the dataset used in the training is not large enough. To our knowledge, the DeepStab dataset[18] is the only dataset for the learning of video stabilization and only contains 60 videos. For each video, the color frames are highly similar. Training an RGB based network with this dataset is essentially overfitting. Instead of trying to solve the video stabilization in an end-to-end fashion, we separate the task into two parts. We first use FlowNet2[6] to compute the spatial correspondence between frames, then train a network to smooth the motion fields provided by FlowNet2. This makes the training easier and yields better results compared to networks trained end-to-end.
+
+# 3. Pipeline
+
+The pipeline of our algorithm is shown in Fig. 1. Stage 1 is the pre-processing. We remove the large motions in the video in the first step. We compute SURF features[1] and their matches between consecutive frames, then compute the affine transformations. The translation and rotation components of the affine transformations are smoothed by a simple moving average with a window size 40. The frames are transformed using the affine transformation to obtain the smoothed positions. The optical flow is computed with the state-of-the-art neural network FlowNet2[6] on the smoothed video sequence. The purpose of removing large motions is to increase the accuracy of the optical flow. In Fig. 2(a), we show a visual comparison of the final result versus only using the raw input. Large motion reduction helps avoid large displacement in the optical flow and warp fields, which usually
+
+
+Original Frame
+
+
+(a) With Large Motion Reduction
+
+
+Without Large Motion Reduction
+
+
+Original Frame
+Figure 2. The visual comparison of the results (a) with and without large motion reduction, (b) with and without masking and optical flow inpainting. The results contain distortion if large motion is not removed since the optical flow is not accurate. The distortion is also introduced by the moving object, if we do not use masks and inpaint the moving object regions.
+
+
+(b) With Optical Flow Inpainting
+
+
+Without Optical Flow Inpainting
+
+introduce distortion in the results.
+
+In the next step, based on a few criteria which will be discussed in Sec. 4.1, we generate a mask for each frame indicating the region where the optical flow is accurate. We inpaint the inaccurate regions using the first 5 principal components proposed in PCA Flow[17]. The coefficients are computed by fitting the principal components to the valid regions. In Fig. 2(b), we show an example using the raw optical flow without masking and inpainting. The person introduces significant distortion in the background due to the motion discontinuity. The analysis of the cause of this artifact and the details of motion inpainting will be discussed in Sec. 4.2.
+
+The second stage is our stabilization network. The input of the network is the inpainted optical flow field. The network generates a per-pixel warp field for each frame, which compensates for the frame motion. In Sec. 5, we will discuss the loss function(Sec. 5.1) and the training process(Sec. 5.2).
+
+The third stage is the post-processing. Since the optical flow in the invalid regions is inpainted, local discontinuities can be introduced at the valid/invalid boundaries. To ensure the continuity in the warp field, similar to stage 1, we fit the first 5 principal components to the warp fields in the valid regions. However, in stage 3, we replace the raw warp fields with the resulting low-frequency fits. We will discuss the necessity of this step in Sec. 6.1. Finally, we use the low-frequency warp fields to warp the input video. The warped video is cropped to a rectangle as the output.
+
+# 4. Pre-Processing
+
+In Sec. 3, we introduced the 3 stages of our pipeline: preprocessing(stage 1), stabilization network(stage 2) and warp field smoothing(stage 3). For stage 1, we discussed the large motion reduction and the optical flow computation in Sec. 3. In this section, we demonstrate the mask generation and the PCA Flow fitting in stage 1.
+
+# 4.1. Mask Generation
+
+As we discussed in Sec. 1, using optical flow as the reference in video stabilization potentially suffers from reliability issues. We summarize these problems into four types which are shown in Fig. 3: 1) Motions of moving objects do not match frame motion. 2) Inaccurate at moving object boundaries. 3) Inaccurate in uniform color regions due to the lack
+
+
+1)Motion Mismatch
+
+
+2)Moving Object Boundary
+
+
+3)Uniform Color Regions
+Figure 3. Four types of scenarios in which optical flow can potentially be inaccurate or cause problems. Red boxes indicate example regions we refer to.
+
+
+4)Still Objects Close to Camera
+
+of motion information. 4) Large motion of still objects due to parallax.
+
+Our goal is to identify these regions, and generate a mask $M$ so that $M = 0$ for these regions and $M = 1$ otherwise.
+
+Denote the optical flow from frame $I_{n}$ to frame $I_{n + 1}$ as $\mathbf{F}_n$ . To detect type 1 regions, we use the pre-trained semantic segmentation network[21, 20] to detect 11 kinds of possible dynamic object regions in $I_{n}$ : person, car, boat, bus, truck, airplane, van, ship, motorbike, animal and bicycle. Note that these objects are not necessarily moving in the scene. Therefore, in these regions, we set $M_{n}(\mathbf{p}) = 1$ for any pixel $\mathbf{p}$ that satisfies $\| \mathbf{F}_n(\mathbf{p}) - \overline{\mathbf{F}_n}\|_2 < 5$ , where $\overline{\mathbf{F}_n}$ is the mean motion of the entire frame.
+
+In type 2 regions, the value of the optical flow changes significantly, causing a large local standard deviation. We compute the moving standard deviation with a $5 \times 5$ window, forming the standard deviation map $\Delta \mathbf{F}_n$ . We set $M_n(\mathbf{p}) = 0$ if $\Delta \mathbf{F}_n(\mathbf{p}) > 3\overline{\Delta \mathbf{F}_n}$ where $\overline{\Delta \mathbf{F}_n}$ is the mean standard deviation map value.
+
+To detect type 3 regions, we compute the gradient image of frame $I_{n}$ , denoted as $\nabla I_{n}$ . We set $M_{n}(\mathbf{p}) = 0$ if $\nabla I_{n} < 8$ since a smaller gradient value indicates less color variation.
+
+For type 4 regions, we simply set $M_{n}(\mathbf{p}) = 0$ if $\| \mathbf{F}_n(\mathbf{p}) - \overline{\mathbf{F}_n}\|_2 > 50$ , since the motion can only be very large in a large motion removed video if the object is very close to the camera.
+
+We show sample masks generated using the metrics above in Fig. 4.
+
+
+Figure 4. Sample masks generated using our metrics described in Sec. 4.1. The four types of invalid regions are marked in the mask images.
+
+# 4.2. PCA Flow Fitting
+
+To inpaint the motion vectors in the $M_{n} = 0$ regions, we fit the first 5 principal components proposed by PCAFlow[17] to the $M_{n} = 1$ regions. Since the first 5 principal components of PCAFlow are spatially smooth, we can expect the $M_{n} = 0$ regions are filled with reasonable values that obey the overall optical flow field. We reshape and stack the horizontal and vertical principal components into matrices $\mathbf{Q}_x$ and $\mathbf{Q}_y \in \mathbb{R}^{wh \times 5}$ respectively, where $wh$ is the frame size. Similarly, we also reshape the optical flow field to $\mathbf{F}_{n,x}$ and $\mathbf{F}_{n,y} \in \mathbb{R}^{wh \times 1}$ . For simplicity, we omit the subscript $x$ and $y$ . The fits below are computed independently for the horizontal and vertical directions. For each frame with mask $M_{n}$ , we select the corresponding rows in $\mathbf{Q}$ and $\mathbf{F}$ where $M_{n} = 1$ , forming the frame-specific principal components $\tilde{\mathbf{Q}}_n$ and valid optical flow matrix $\tilde{\mathbf{F}}_n$ . Finding the coefficients $\mathbf{c_n} \in \mathbb{R}^{5 \times 1}$ to fit the valid optical flow $\tilde{\mathbf{F}}_n$ forms a traditional least squares problem:
+
+$$
+\min _ {\mathbf {c} _ {n}} \left\| \tilde {\mathbf {Q}} _ {n} \mathbf {c} _ {\mathbf {n}} - \tilde {\mathbf {F}} _ {n} \right\| _ {2} + \eta \| \mathbf {c} _ {n} \| _ {2} \tag {1}
+$$
+
+where $\eta = 0.1$ is the regularization term. The solution of this problem is:
+
+$$
+\mathbf {c} _ {n} = \left(\tilde {\mathbf {Q}} _ {n} ^ {T} \tilde {\mathbf {Q}} _ {n} + \eta \mathbf {I}\right) ^ {- 1} \tilde {\mathbf {Q}} _ {n} ^ {T} \tilde {\mathbf {F}} _ {n} \tag {2}
+$$
+
+We replace the optical flow values in $M_{n} = 0$ regions with the fitted PCA Flow $\mathbf{Q}_n\mathbf{c}_n$ . The PCA Flow inpainted optical flow matrices for the horizontal and vertical directions are combined and reshaped back to the inpainted optical flow field $\widehat{\mathbf{F}}_n\in \mathbb{R}^{w\times h\times 2}$ .
+
+
+Figure 5. The effect imposed by moving objects. The circles represent pixels and the arrows represent motion vectors evolving with time. The pixel can deviate from the actual track due to the moving object, resulting in a wrong warp field. The image on the right shows an example. The red arrows point out the distortion introduced by the moving object.
+
+# 4.3. Discussion
+
+We demonstrate the necessity of using the mask in Fig. 5, in which we depict a 1D abstraction of the optical flow sequence. The moving object can cause a deviation in the motion vector that enters its region from the background, leading to a different pixel track from the actual motion pattern. Stabilizing the video in this scenario introduces distortion.
+
+Applying the mask and stabilizing the valid regions alone still introduces distortion around moving objects. Figure 6 depicts an example of stabilizing only the valid regions. The mask $M_{n}$ breaks the pixel track, making the pixels that connect to the masked pixels now only connect to one correspondence. These pixels can move freely, causing distortion artifacts around the masked moving objects. Therefore, we need to inpaint the optical flow in the $M_{n} = 0$ regions so that the pixels connecting to these regions are constrained properly.
+
+
+
+
+Figure 6. Only stabilizing the valid regions will cause distortion in the warp field (red arrows) since the pixels are only constrained by the valid pixels connecting to it. The image on the right shows an example of this case.
+Figure 7. A 1D abstraction of the motion loss. The loss indicates the average distance between corresponding pixels in each frame.
+
+# 5. Network and Training
+
+In this section, we introduce our video stabilization network. Our network follows the structure proposed by Zhou et al.[22]. The network has a fixed number of input channels and can only take a segment of the optical flow sequence. Intuitively, the stabilization can handle low-frequency shake better if more frames are stabilized together since the network can access more global motion information. On the other hand, processing more frames together leads to a larger number of network weights and more difficulty in training. Taking all these factors into consideration, we use 20 frames of optical flow fields as the input of our network (representing the motion of a 21-frame video segment). Our network infers 19-frame warp fields for the video frames, excluding the first and the last frame. In the network structure of Zhou et al.[22], we set the number of input channels of layer conv1_1 to 20 and the number of output channels of layer conv7_3 to 19. In Sec. 5.1, we define a loss function that enables the training of this network for our application. We will also introduce the training process of our network in Sec. 5.2. Note that to make our network be able to stabilize arbitrary long videos, we propose a sliding window schedule that will be discussed in Sec. 6.2.
+
+# 5.1. Loss Functions
+
+Denote a pixel at frame $n$ as $\mathbf{p}_i$ , where we unroll the pixel coordinates to index $i$ . As discussed in Sec. 4.2, denote the PCA Flow inpainted optical flow from frame $n$ to frame $n + 1$ as $\widehat{\mathbf{F}}_n$ . By definition, the correspondence of $\mathbf{p}_{i,n}$ in frame $n + 1$ , $\mathbf{q}_{j,n + 1}$ , can be represented as:
+
+$$
+\mathbf {q} _ {j, n + 1} = \mathbf {p} _ {i, n} + \overline {{\mathbf {F}}} _ {n} (\mathbf {p} _ {i, n}) \tag {3}
+$$
+
+Denote the output warp field for frame $n$ as $W_{n}$ . The warped position of a pixel $\mathbf{p}_{i,n}$ is defined as:
+
+$$
+\widehat {\mathbf {p}} _ {i, n} = \mathbf {p} _ {i, n} + \mathbf {W} _ {n} \left(\mathbf {p} _ {i, n}\right) \tag {4}
+$$
+
+Similarly, the warped position of its correspondence $\mathbf{q}_{j,n + 1}$ an be written as:
+
+$$
+\widehat {\mathbf {q}} _ {j, n + 1} = \mathbf {q} _ {j, n + 1} + \mathbf {W} _ {n + 1} \left(\mathbf {q} _ {j, n + 1}\right) \tag {5}
+$$
+
+For a video segment with $N$ frames, the number of optical flow fields between consecutive frames is $N - 1$ . Intuitively,
+
+our goal is to apply the warp field to every pixel so that the distance between correspondences are minimized. In Fig. 7, we depict a 1D abstraction of the motion loss. Note that we must fix the warp field to zero for the first and the last frame, i.e. $\mathbf{W}_1 = \mathbf{W}_N = 0$ . In other words, the network only produces the warp field for the intermediate frames. Therefore, we seek to find the shortest path to move the pixels in the first frame to their destination in the last frame instead of aligning all the frames. We define the motion loss as:
+
+$$
+L _ {m} = \sum_ {n = 1} ^ {N - 1} \sum_ {i} \| \widehat {\mathbf {p}} _ {i, n} - \widehat {\mathbf {q}} _ {j, n + 1} \| _ {2} \tag {6}
+$$
+
+
+Figure 8. The inverted Gaussian map $④$ and an example spectrum of a warp field estimated with $\odot$ and without $⑥$ the frequency domain loss. The magnitude of the spectrum is shown in the $\log_{10}$ domain. The network can learn to produce a significantly smoother warp field with $L_{f}⑥$ .
+
+In addition, we also seek to enforce the spatial smoothness of the warp fields. There are various kinds of constraints for enforcing spatial smoothness, e.g. total variation and the linear warp field constraint proposed by Yu and Ramamoorthi[19]. However, the total variation constraint is strong in constraining local noise but weak in constraining distortions. The linear warping constraint is difficult to control since a strong constraint limits the warping flexibility to handle large scale non-linear motions, while a weak constraint will not constrain local distortions properly. In our method, we seek to unify the need for suppressing warp field noise and avoiding local distortion without affecting the flexibility of compensating global motions. Therefore, we propose to constrain the warp field in the frequency domain. Intuitively, the noise usually increases the high-frequency energy, while the local distortion increases the mid-frequency energy. The goal is to increase the low-frequency energy in the warp field, encouraging global warping and suppressing local warping and noise. This can be achieved by weighting the Fourier transform of the warp field in the training process. Computationally, we compute the 2D Fourier transform of each output warp field, then weight the spectrum by an inverted Gaussian map shown in Fig. 8. In our experiment, we generate the Gaussian map $\mathbf{G}$ with $\mu = 0$ and $\sigma = 3$ , inverted by its maximum value, and normalized by the maximum value:
+
+$$
+\widehat {\mathbf {G}} = (\max (\mathbf {G}) - \mathbf {G}) / \max (\mathbf {G})
+$$
+
+The frequency domain loss is defined as:
+
+$$
+L _ {f} = \sum_ {n = 2} ^ {N - 1} \left\| \widehat {\mathbf {G}} \cdot \mathcal {F} \mathbf {W} _ {n} \right\| _ {2}. \tag {7}
+$$
+
+In this equation, the Fourier spectrum of the output warp field $\mathcal{F}\mathbf{W}_n$ is also normalized by its maximum value. Also note
+
+
+
+
+Figure 9. The comparison of the motion loss $L_{m}$ in different training schedules. The $x$ -axis is the number of iterations and the $y$ -axis is the $L_{m}$ value. The figure below is a zoom-in version of the black box region of the upper figure. The red curve represents the training with $L_{m}$ only. The green curve represents the training with $L_{m} + 10 * L_{f}$ . The blue curve represents our training schedule. The frequency domain loss helps the first training phase so that the finetuning phase can achieve a lower motion loss.
+
+that the DC term of the inverted Gaussian map $\widehat{\mathbf{G}}$ is not used since we only encourage a low-frequency warp field but not a uniform warp field.
+
+In the following section, we will discuss the usage of these loss functions in the training process.
+
+# 5.2. Training
+
+Dataset For the training of our network, we need a dataset with a large number of unstable videos. Existing video stabilization datasets, DeepStab[15](60 videos) and NUS[10](174 videos), do not contain enough motion pattern and color variation. In our training phase, we select the RealEstate10K[22] dataset which contains stable videos with a large number of color variations. For each training sample, we randomly select 20 frames from a random video. To produce an unstable video, we simply perturb every frame other than the first frame and last frame using random 2D affine transformation. The parameters of this random 2D affine transformation are: scaling $U[0.9, 1.1]$ , translation (percentage w.r.t the frame size) $U[-5\%, 5\%]$ , rotation $U[-5^{\circ}, 5^{\circ}]$ and shear $U[-5^{\circ}, 5^{\circ}]$ . The perturbed video forms the input of our network.
+
+Training Phases We summarize our training process into two phases. In the first phase, we set the loss function as:
+
+$$
+L _ {1} = L _ {m} + 1 0 * L _ {f} \tag {8}
+$$
+
+After training for 10000 iterations, we enter the second training phase, in which we switch the loss function to:
+
+$$
+L _ {2} = L _ {m} \tag {9}
+$$
+
+and fine-tune the network for another 5000 iterations. We use the Adam optimizer[7] with $\beta_{1} = 0.9$ and $\beta_{2} = 0.99$ . The learning rate is set to $10^{-4}$ for the first 2500 iterations and fixed to $10^{-5}$ for the rest of the training process.
+
+To justify this training schedule, in Fig. 9, we plot the value of residual motion $L_{m}$ which mainly indicates the
+
+
+Trained without $L_{f}$
+
+
+Trained with $L_{f}$
+
+
+
+
+Figure 10. The visual comparison of (a) the warped frames using the raw outputs of the networks trained with and (b) without $L_{f}$ . The red and green boxes indicate the noisy regions. The frequency domain loss helps to improve the quality of the warp field.
+Raw Warp Field
+Figure 11. The visual comparison of (a) the frames warped with the raw warp field and (b) the PCA Flow smoothed warp field. Due to the inpainting of the optical flow, the raw warp field may contain artifacts at the valid/invalid region boundaries.
+
+
+PCA Flow Smoothed Warp Field
+
+
+
+training progress. The Case-I (red curve) represents the training with $L_{m}$ only. The Case-II (green curve) represents the training with loss set to $L_{m} + 10 * L_{f}$ . It can be observed that using $L_{f}$ helps in making $L_{m}$ descend to a lower value and expedite the training process. In Case-I, we observe that although the optical flow is spatially smooth, the output warp field usually contains high-frequency noise. The noise makes the network difficult to train in Case-I, especially in the early stages(spikes appear in the red curve). By introducing $L_{f}$ to Case-I, we intend to suppress the high-frequency noise and reduce the local minima. After Case-II converges iteration 10000), we switch back to Case-I to fine-tune the network. The blue curve in Fig. 9 shows that our schedule achieves the lowest loss level. Figure 10 shows an output frame comparison between training with $L_{m}$ only and our training schedule. Using $L_{f}$ makes the raw warp field smoother.
+
+# 6. Testing and Implementation Details
+
+In this section, we will discuss the details in the third stage and testing.
+
+# 6.1. Warp Field Smoothing
+
+Since the optical flow in the invalid regions is inpainted, our warp fields are only valid for the valid regions. The continuity of the warp field at valid/invalid boundaries is not guaranteed. Using the raw warp field introduces artifacts in the output, as shown in Fig. 11(a). Similar to the PCA Flow hole filling discussed in Sec. 4.2, we fit PCA Flow to the valid regions. In stage 3, we directly use the fitted PCA Flow as the warp field instead of the raw warp field. Figure 11(b) shows the result warped by the PCA Flow smoothed warp field.
+
+# 6.2. Sliding Window
+
+As discussed in Sec. 5, our network only takes 20 frames as the input. To handle a regular video, we use a sliding window approach for the testing phase.
+
+The sliding window of our method works as shown in Fig. 12. In this figure, we use the notation $\mathbf{W}_{n,k}$ to represent the warp fields from different windows. The first index
+
+
+Figure 12. The sliding window schedule for processing arbitrary long videos. For each window, we only accept the warp field for the second frame, e.g. $\mathbf{W}_{1,1}$ in window 1. In the next window (window 2), the inpainted optical flow from the first frame to the second frame $(\widehat{\mathbf{F}}_2)$ is modified using the accepted warp field from the previous frame $(\widehat{\mathbf{F}}_2 - \mathbf{W}_{1,1})$ .
+
+$n$ is the frame number within a window, and the second index $k$ is the window index. For each 20-frame window, the warp field for the first frame is already known from the previous window. We update the original optical flow as $\widehat{\mathbf{F}}_k - \mathbf{W}_{1,k-1}$ since the starting point of the motion vector is moved by $\mathbf{W}_{1,k-1}$ in the previous window. The updated optical flow is concatenated with the other optical flow fields as the input of the network, as shown on the left of window 2 and 3 in Fig. 12. We only use the first warp field produced by the network output to fit the principal component and warp the second video frame. Then the window slides to the next frame and the process above repeats.
+
+The disadvantage with the sliding window is that we are using 20 frames ahead of the current frame. However, the optical flow for these frames will be updated in the future windows, which should influence the current frame as well. For offline video stabilization, we can process the video with the sliding window for multiple passes. Between two passes, we re-compute the optical flow using the warped frames.
+
+# 7. Results
+
+In this section, we compare the results of our method with the state-of-the-art video stabilization methods. These methods are selected since they represent different approaches to the video stabilization problem. Grundmann et.al.[5] uses the full-frame homography as the motion model and warping method. Liu et.al.[10] uses a grid to analyze the local frame motion and warp the frames. Yu and Ramamoorthi[19] use the dense optical flow as the motion model, and optimize a set of CNN parameters that produce the pixel-wise warp field for each segment of a video. These methods belong to traditional optimization methods since they use traditional optimization and have to be re-run for a new video. We also compare with the most recent deep learning based method, Wang et.al.[15], which uses a pre-trained network to directly infer a warp grid from colored input frames. We compare the results both visually and quantitatively.
+
+Visual Comparison We provide visual comparisons in the supplementary video since most of the artifacts are only visible in the video. For the visual comparison of video stills, we selected a few difficult scenarios for the video stabilization task. Figure 13 shows the comparison of video stills from the comparison methods. Example 1 contains parallax effects with moving occlusions. Since Liu et.al.[10] uses a
+
+
+Figure 13. The visual comparison of Grundmann et.al.[5], Liu et.al.[10], Yu and Ramamoorthi[19], Wang et.al.[15] and our method. The artifacts are noted below the video stills and pointed out by arrows. To avoid introducing extra distortion, all the video stills are scaled while keeping the original aspect ratio.
+
+grid to warp the video, the region enclosed by a single cell is warped by the same homography. Therefore it generates a shear at the motion boundaries. It also introduces distortion in the uniform color regions (the body of the train), since estimating homography in these regions is difficult. Example 2 involves complex occlusions. Grid warping based methods, Liu et.al.[10] and Wang et.al.[15], produce local distortion due to motion mismatch. Yu and Ramamoorthi[19] introduce shear since their linear warping constraint enforces strong rigidity on the warp field, which tries to compensate for the motion. Our PCA Flow smoothed warp field provides more flexibility in warping compared to the grid used by Liu et.al.[10] and Wang et.al.[15], and the linear warping constrained warp field proposed by Yu and Ramamoorthi[19]. Example 3 provides another example where Liu et.al.[10] produces shear at motion boundaries. Example 4 contains complex structures and Example 5 contains quick object motion. Both are challenging for optical flow based video stabilization methods. Yu and Ramamoorthi[19] produce significant distortion in these cases, since they fail to constrain the local region in the warp field. Our PCA Flow based warp field avoids drastic compensation to optical flows and does not introduce artifacts in local regions.
+
+The 2D full-frame homography method of Grundmann et.al.[5] performs well on keeping original frame appearance, but in the supplementary video we will show that their temporal stability is inferior to that of comparison methods in the
+
+examples shown in Fig. 13. The pre-trained model proposed by Wang et.al.[15] failed to generate good results in most of the videos, due to the difficulty in generalization.
+
+
+
+Figure 14. The cropping metric comparison of Grundmann et.al.[5], Liu et.al.[10], Yu and Ramamoorthi[19], Wang et.al.[15] and our method. Each value is the result averaged by the category in the NUS dataset[10]. The last bar group is the average over all videos. The quantitative values of the bars are shown in the table on the right. A larger value indicates a better result. The actual best result of each category before rounding is marked in bold font.
+
+Quantitative Comparison For quantitative comparison, we use the metrics proposed in Liu et.al.[10] to evaluate the quality of the results over the entire NUS dataset[10]. The values are averaged over each category. The cropping metric measures the frame size loss of the output video due to the warping and cropping. A larger value indicates a better frame size preservation. Figure 14 shows the cropping comparison. Our method maintains a large frame size similar to Liu et.al.[10] and Yu and Ramamoorthi[19], since the PCA Flow
+
+smoothed warp field does not introduce sharp warps that affect the cropping size. Our method is slightly worse than Liu et.al.[10] in the Running category since we have the large motion reduction step. The full-frame affine transformation removes large motions in the Running videos, but also leads to a smaller overlapping area and the final frame size. This can be easily avoided by using a smaller window size in the large motion reduction step.
+
+
+Figure 15. The distortion metric comparison of Grundmann et.al.[5], Liu et.al.[10], Yu and Ramamoorthi[19], Wang et.al.[15] and our method. Each value is the result averaged by the category in the NUS dataset[10]. The last bar group is the average over all videos. The quantitative values of the bars are shown in the table on the right. A larger value indicates a better result. The actual best result of each category before rounding is marked in bold font.
+
+The distortion metric measures the anisotropic scaling that leads to distortion in the result frames. A larger value indicates better preservation of the original shape of the objects in the video. Figure 15 shows the comparison of the distortion metric. Our per-pixel warp field introduces less distortion than the grid warping used in Liu et.al.[10] and Wang et.al.[15], and the full-frame homography used in Grundmann et.al.[5] in all the categories. Our method has less anisotropic scaling compared to Yu and Ramamoorthi[19], since our warp field is more flexible than their linear warping constrained warp field. Therefore, our method performs better in preserving the original shape of the objects in the video. It can be also seen in the visual comparison that our PCA Flow smoothed warp field introduces less local distortion. Note that the comparison deep learning based method Wang et.al.[15] performs the worst in all the categories, implying the difficulty in generalization.
+
+
+Figure 16. The stability metric comparison of Grundmann et.al.[5], Liu et.al.[10], Yu and Ramamoorthi[19], Wang et.al.[15] and our method. Each value is the result averaged by the category in the NUS dataset[10]. The last bar group is the average over all videos. The quantitative values of the bars are shown in the table on the right. A larger value indicates a better result. The actual best result of each category before rounding is marked in bold font.
+
+The stability metric measures the stability of the output video. A larger value indicates a more visually stable result. Our method achieves a better stability value compared to optimization based methods Grundmann et.al.[5], Liu et.al.[10]
+
+Table 1. Per-frame run time comparison
+
+| Grundmann et.al.[5] | 480ms |
| Liu et.al.[10] | 1360ms |
| Yu and Ramamoorthi[19] | 1610ms |
| Wang et.al.[15] | 460ms |
| Ours | 570ms |
+
+and Yu and Ramamoorthi[19]. Our results are also significantly more robust than the deep learning based method Wang et.al.[15], since their results are even more unstable than the input video from the NUS dataset[10]. We will also show in the supplementary video that we achieve better stability values with less artifacts compared to these methods.
+
+To evaluate the robustness of our method, we also conduct experiments with inaccurate optical flow. We added Gaussian random noise with standard deviation $\sigma = 3$ and $\sigma = 10$ on the input optical flow to the network. In Fig. 14, Fig. 15 and Fig. 16, we observe that the inaccuracy in the optical flow leads to less cropping and distortion but worse stability. This indicates that the more inaccuracy in the optical flow, the more regions are identified as invalid regions in the stage 1 of our method. The network tends to warp the frame less since it receives less motion information. As shown in Fig. 16, our method is robust to inaccurate optical flow. Our method still maintains comparable level of stability even with optical flow perturbed by Gaussian noise with $\sigma = 10$ .
+
+Also note that since our method is a deep learning based method, the speed of our method is faster than the optimization based methods. Our network and pipeline are implemented with PyTorch and Python. Table. 1 is a summary of per-frame runtime for comparison methods. All the timing is performed on a desktop with an RTX2080Ti GPU and an i7-8700K CPU. On average, our unoptimized method takes $270\mathrm{ms}$ in stage 1 and $300\mathrm{ms}$ in stage 2 and 3. Our method achieves better visual results and somewhat better quantitative results compared to optimization based methods Liu et.al[10] and Yu and Ramamoorthi[19] but gives $\sim 3\mathrm{x}$ speed up. Our method has only a slight computation time loss compared to the simple 2D method of Grundmann et.al.[5] and deep learning based method of Wang et.al.[15], but generates significantly better visual and quantitative results.
+
+# 8. Conclusions and Future Work
+
+In this paper, we proposed a novel deep learning based video stabilization method that infers the pixel-wise warp field for stabilizing video frames from the optical flow between consecutive frames. We also proposed a pipeline that detects invalid regions in the optical flow field, inpaints the invalid regions and smoothes the output warp field. The results show that our method is more robust than existing deep learning based methods and achieves visually and quantitatively better results compared to the state-of-the-art optimization based methods with a $\sim 3\mathrm{x}$ speed improvement. Future works would be an end-to-end network that directly converts input videos to stabilized videos, and a dataset that enables the training of such a network.
+
+Acknowledgements. We thank Qualcomm for supporting this research with a Qualcomm FMA Fellowship.
+
+# References
+
+[1] Herbert Bay, Tinne Tuytelaars, and Luc Van Gool. Surf: Speeded up robust features. ECCV, 2006.
+[2] Christopher Buehler, Michael Bosse, and Leonard McMillan. Non-metric image-based rendering for video stabilization. In IEEE CVPR, 2001.
+[3] Michael L. Gleicher and Feng Liu. Re-cinematography: Improving the camerework of casual video. ACM Trans. Multimedia Comput. Commun. Appl., 5(1), Oct. 2008.
+[4] Amit Goldstein and Raanan Fattal. Video stabilization using epipolar geometry. ACM Trans. Graph., 31(5), Sept. 2012.
+[5] Matthias Grundmann, Vivek Kwatra, and Irfan Essa. Autodirected video stabilization with robust 11 optimal camera paths. In IEEE CVPR, 2011.
+[6] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In IEEE CVPR, 2017.
+[7] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
+[8] Feng Liu, Michael Gleicher, Hailin Jin, and Aseem Agarwala. Content-preserving warps for 3D video stabilization. ACM Trans. Graph., 28(3), July 2009.
+[9] Feng Liu, Michael Gleicher, Jue Wang, Hailin Jin, and Aseem Agarwala. Subspace video stabilization. ACM Trans. Graph., 30(1), Feb. 2011.
+[10] Shuaicheng Liu, Lu Yuan, Ping Tan, and Jian Sun. Bundled camera paths for video stabilization. ACM Trans. Graph., 32(4), July 2013.
+[11] Shuaicheng Liu, Lu Yuan, Ping Tan, and Jian Sun. Steadyflow: Spatially smooth optical flow for video stabilization. In IEEE CVPR, 2014.
+[12] Yasuyuki Matsushita, Eyal Ofek, Weina Ge, Xiaou Tang, and Heung-Yeung Shum. Full-frame video stabilization with motion inpainting. IEEE Trans. Pattern Anal. Mach. Intell.(PAMI), 28(7), July 2006.
+[13] Brandon M. Smith, Li Zhang, Hailin Jin, and Aseem Agarwala. Light field video stabilization. In IEEE ICCV, 2009.
+[14] Jian Sun. Video stabilization with a depth camera. In IEEE CVPR, 2012.
+[15] Miao Wang, Guo-Ye Yang, Jin-Kun Lin, Song-Hai Zhang, Ariel Shamir, Shao-Ping Lu, and Shi-Min Hu. Deep online video stabilization with multi-grid warping transformation learning. IEEE Transactions on Image Processing, 2019.
+[16] Yu-Shuen Wang, Feng Liu, Pu-Sheng Hsu, and Tong-Yee Lee. Spatially and temporally optimized video stabilization. IEEE Trans. Visual. and Comput. Graph., 19(8), Aug 2013.
+[17] Jonas Wulff and Michael J. Black. Efficient sparse-to-dense optical flow estimation using a learned basis and layers. In IEEE CVPR, 2015.
+[18] Sen-Zhe Xu, Jun Hu, Miao Wang, Tai-Jiang Mu, and ShiMin Hu. Deep video stabilization using adversarial networks. Computer Graphics Forum, 2018.
+[19] Jiyang Yu and Ravi Ramamoorthi. Robust video stabilization by optimization in cnn weight space. In IEEE CVPR, 2019.
+[20] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In IEEE CVPR, 2017.
+[21] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal on Computer Vision, 2018.
+
+[22] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snively. Stereo magnification: Learning view synthesis using multiplane images. In ACM Trans. Graph., 2018.
\ No newline at end of file
diff --git a/learningvideostabilizationusingopticalflow/images.zip b/learningvideostabilizationusingopticalflow/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..deb360360435b4687fed2757d1e7b5753a089644
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3897eb2e961d2018eda0e7e247973602eba906a7ea86870042b3f1484139243b
+size 755045
diff --git a/learningvideostabilizationusingopticalflow/layout.json b/learningvideostabilizationusingopticalflow/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..80e0c5fbff17ae2d16693f77c6911147020dac79
--- /dev/null
+++ b/learningvideostabilizationusingopticalflow/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:97033066708db6dd2d1d30326cc53a8917c1d294fcad6f0c84b9e89ad6c92abb
+size 409155
diff --git a/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_content_list.json b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2f057493a0314a11bfd6d5727a0007f29eac768c
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:68665a82605a0addcf5df6d54c3634a20b3150b28e55d4238906925a0108209f
+size 83094
diff --git a/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_model.json b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7b4340dc919557fc99cb06638f7dfdb9049ad72a
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42a41527e1f9131266ddff960eb747d294b3afe010dfcb444a21f48cf71870ee
+size 102284
diff --git a/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_origin.pdf b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8db5279965534dc595ded3dca7a3dba008e46ccf
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/520f9dfa-03dc-4aff-805b-1992c4944a8e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:345adaaba7cfd9847a8f1aa458cd4579dd7515d434d324a8b80a78ded6ed85ae
+size 457305
diff --git a/learningvisualemotionrepresentationsfromwebdata/full.md b/learningvisualemotionrepresentationsfromwebdata/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..09dc0e7a090c140fcd2fdce998b75821e96a5534
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/full.md
@@ -0,0 +1,350 @@
+# Learning Visual Emotion Representations from Web Data
+
+Zijun Wei $^{1}$ , Jianming Zhang $^{1}$ , Zhe Lin $^{1}$ , Joon-Young Lee $^{1}$ , Niranjan Balasubramanian $^{2}$ , Minh Hoai $^{2}$ , Dimitris Samaras $^{2}$ $^{1}$ Adobe Inc., $^{2}$ Stony Brook University
+
+# Abstract
+
+We present a scalable approach for learning powerful visual features for emotion recognition. A critical bottleneck in emotion recognition is the lack of large scale datasets that can be used for learning visual emotion features. To this end, we curated a webly derived large scale dataset, StockEmotion, which has more than a million images. StockEmotion uses 690 emotion related tags as labels giving us a fine-grained and diverse set of emotion labels, circumventing the difficulty in manually obtaining emotion annotations. We used this dataset to train a feature extraction network, EmotionNet, which we further regularized using joint text and visual embedding and text distillation. Our experimental results establish that EmotionNet trained on the StockEmotion dataset outperforms SOTA models on four different visual emotion tasks. An added benefit of our joint embedding training approach is that EmotionNet achieves competitive zero-shot recognition performance against fully supervised baselines on a challenging visual emotion dataset, EMOTIC, which further highlights the generalizability of the learned emotion features.
+
+# 1. Introduction
+
+Understanding the emotion conveyed in an image or a video is an important computer vision task, one that has a wide range of applications from digital content management [3, 6, 19, 45] and marketing [17, 27, 50] to education [10, 35] and healthcare [7]. In this paper, we address the need for a general visual emotion representation. We propose EmotionNet, a convolutional network that can take any input image and output a feature vector representing the emotion conveyed in the input image. The output feature vector can then be used for various downstream tasks such as emotion recognition, conditional image captioning and generation—much like how the feature vector from ResNet [13] pretrained on ImageNet can be used for many downstream visual recognition tasks such as image classification, object detection, person tracking, and semantic seg
+
+mentation. In other words, EmotionNet for visual emotions is analogous to a pretrained VGG16 for object categories.
+
+EmotionNet is an emotion specific feature extraction network. One might question its merits over other general feature extraction networks such as a ResNet pretrained on ImageNet [9]. Unfortunately, such general feature extraction networks are not suitable for emotion analysis, as demonstrated in our experiments. This is understandable because ImageNet pretraining mainly forces the networks to distinguish between object categories, not visual emotions. Detecting emotion requires more than being able to recognize object classes – the same object can evoke different emotions depending on the context in which it appears.
+
+To build a useful feature extraction model, it is crucial to have relevant training data; in our case, an emotion dataset at the scale of ImageNet with a million images and a well-defined taxonomy over hundreds of categories is desirable. Unfortunately, it is difficult to use the same approach as ImageNet to collect an annotated dataset for emotion. Due to language ambiguities and the abstract nature of emotion definitions, identifying emotion in an image is a much harder task than labeling object categories when there is no definitive emotion taxonomy over hundreds of categories. Most existing visual emotion datasets only provide annotations for a small set of emotion categories on a limited scale. Thus, features learned on such limited datasets generalize poorly to other emotion datasets [16, 33].
+
+In this paper, we propose to learn EmotionNet by leveraging web data. We use commercial stock images and their associated tags as our data source and annotation. Different from previous datasets that are manually labeled based on predefined emotion taxonomies with limited categories, we curate our stock image dataset based on 690 common tags that are related to more fine-grained and open categories of emotions. The resulting dataset, StockEmotion, is composed of over one million stock images, covering diverse emotion concepts related to humans, scenes, and symbols.
+
+However, annotated stock image tags can be incomplete and noisy. The owner or creator of an image might only provide a few tags for each image, or might associate an image with concepts that are unrelated or only remotely re
+
+lated to the image. So, we need to address the technical challenge of how to learn from noisily and partially labeled images. Based on the fact that the representations of visual data (e.g., the input image) and text data (the associated tags) should be semantically close to each other, correlating information in the tags and the images can act as a regularizer for the image representation. To this end, we propose an approach for training a joint text and visual embedding that (1) reduces noise in the webly annotated tags and (2) induces a joint space that can be used for cross-modal tasks.
+
+Empirically, we show that EmotionNet, a standard ConvNet architecture trained on the StockEmotion dataset, is indeed useful for various emotion recognition benchmarks. In addition, EmotionNet can be further enhanced by leveraging the image tags through knowledge distillation from text models. We investigate text models and embeddings learned in unsupervised and semi-supervised settings. The text models are used to denoise the keyword labels and enforce joint visual-text embeddings to regularize the visual feature learning.
+
+The induced joint visual-text emotion embedding space can also be used for zero-shot emotion recognition. We achieve competitive performance against fully-supervised methods on the challenging EMOTIC dataset [21].
+
+To sum up, our contributions are as follows:
+
+1. We introduce a large-scale image dataset for visual emotion content1.
+2. We provide a general feature extraction network for emotion. This feature representation achieves state-of-the-art performance on several visual emotion benchmarks across different domains. The learned joint vision-text embedding achieves competitive zero-shot learning performance.
+3. We propose methods to handle noisily, partially annotated data, improving visual feature learning through text model distillation and joint visual-text embedding.
+
+# 2. Related Work
+
+Emotion in Psychological Research. Studying emotions and their relations is an important research area in psychology. Two competing approaches are used in describing emotion: categorical [8, 11, 34, 36] that classifies emotions into basic categories and dimensional [38, 51] that projects emotions into a continuous manifold. Our work sidesteps this debate in that we construct a large collection of emotional words and learn an emotion representation in a data-driven approach. With a large number of emotional words, our model implicitly has much higher dimension than the traditional two to three dimension models used in psychology, allowing us to capture subtle differences in emotions.
+
+Language plays a fundamental role in experiencing and perceiving emotions [24]. With this in mind, our approach connects visual emotion features to a latent emotion space learned from a textual embedding. Our work uses language models to learn an emotion embedding from the text keywords associated with images. See [49] for a detailed review on emotion detection in text.
+
+Visual Emotion Datasets. Visual emotion detection is often framed as a classification problem defined over a small number of predefined emotion classes [21, 22, 25, 32, 33]. However, such a limited categorical taxonomy fails to capture the rich variation and mixture of emotions expressed in images and limits the diversity of retrieved images. There are some datasets with a larger number of categories that combine emotion words with nouns and their descriptive context [2, 5]. Our work goes further and introduces a richer descriptive set for modeling emotions using the natural distributions of keywords assigned to images.
+
+Learning from noisy data. In this paper, we develop a method for training a feature extraction network from noisily annotated web data. Handling noisily labeled data is a well-studied area with many solutions (e.g., [14, 42, 43]), and we refer the reader to [12] for a comprehensive overview of label noise and robust algorithms.
+
+In our work, we constrain images to be close to their keywords in the joint space induced by the transformation from visual space to textual space. Such multi-view structure preservation constraints have been explored in the metric learning literature [15, 28, 39]. However, different from previous work which requires a small set of clean data [48], our work does not need any clean labels as it is difficult to collect clean labels for stock images. We therefore develop a training method where a regularization term on the noisy labels is added to mitigate the label noise itself.
+
+# 3. The StockEmotion Dataset
+
+We have collected a large-scale dataset of images from Adobe Stock with emotion keywords extracted from the original image keywords provided by the image uploaders. Some samples are shown in Fig. 1.
+
+# 3.1. Data Collection
+
+We used Adobe Stock to search images using an overcomplete set of emotion keywords to cover diverse emotion concepts. Initially, we constructed a list of emotion keywords using linguistic emotion lexicons such as NRC-emotion [31] and WordNet-Affect [40]. However, we found that these emotion lexicons are not suitable for computer vision tasks. For example, many adjectives such as beautiful and white are labeled with emotions in these lexicons, but these keywords are often associated with images that do not convey the corresponding emotion information. To get
+
+
+upset, desperate, regret, misery, sadness, young, confused, alone, problem, care, depressed, beautiful, white, female, stress, issue, miserable, girl, thinking, sitting, still, adolescent, gray
+
+
+
+
+, persistence, success, togetherness, celebration
+problem, abuse, pain, ill
+
+
+
+
+pensive, serious, anxiety
+challenge, struggle, difficult
+
+
+Happiness
+
+
+Offended
+
+
+Hug
+
+
+Funeral
+Figure 1: Left: A sample of the image data. Each image comes with a set of keywords (denoted as keyword-full) provided by the image updater. Some of them are related to emotions (in red) while the others are not (in black). Middle: Sample images that convey a range of fine-grained emotions. Emotion related keywords provide a richer, more fine-grained vocabulary to describe emotions compared to the basic emotion categories (happy, sad, anger, ...) used in current datasets [32, 33, 52]. Right: Image samples from various emotion categories of the StockEmotion Database (four samples per category). Note the diversity of the objects and scenes involved in each category.
+
+
+
+
+
+
+
+
+
+a better list of keywords, we randomly sampled four million images from Adobe Stock and ranked the keywords associated with the images by frequency. After removing low-frequency keywords, we obtained about 2000 keyword candidates. We then manually selected keywords that either: 1) are related to emotions (e.g. depression, fury, mad), 2) describe emotional feelings (e.g. romantic, chaotic) and 3) describe actions or events that directly trigger emotional reactions (e.g. bully, Christmas). In the end, based on a majority vote of our in-house annotators, we kept 690 emotional keywords (listed in supplementary material). Tab. 1 shows some representative keywords from each category.
+
+| Keyword Type | Examples |
| Emotion | disappointed, nervous, frustrated, discontent, pensive, bothered |
| Feeling | unfortunate, severe, tranquil, romantic, chaotic |
| Action | quarrel, threat, yell pray, smile, hug |
| Events | Christmas, Halloween, wedding funeral, nightmare |
+
+Table 1: Different examples of emotional keywords.
+
+Using these emotion keywords, we retrieved 4 million images along with the complete list of keywords associated with each image. We then removed duplicates using perspective $\mathrm{Hash}^2$ . This left us with over one million images to use for our StockEmotion dataset. For each image, the keywords included in our emotion keyword list are used as its weak emotion labels.
+
+Our approach for collecting the stock images is motivated by the fact that emotion tags map poorly to existing emotion taxonomies. Many category names in the emotion taxonomies are rarely used for tagging stock images, leading to poor image retrieval results for data collection. Moreover, there are also many emotional tags that are not included in the taxonomies' vocabulary, e.g. abuse, danger and challenge, which can provide useful semantic context for identifying fine-grained emotions.
+
+# 3.2. Statistics
+
+StockEmotion consists of 1.17 million images which we split, at random, into training (1.06 M), validation (33K), and testing (71K) subsets. Each image on average has 48.9 keywords, among which 7.04 are emotional keywords included in our 690-keyword list.
+
+Since StockEmotion is curated through web search, it includes noisy labels. To estimate the amount of noise in the labels, we randomly sampled a subset of 1000 images and asked our lab colleagues to manually check the correctness of the weak emotion labels. The error rate of the emotion labels turned out to be around $15\%$ , making it suitable for training deep convolutional networks [37].
+
+There are around 600K images with one or more people detected by an open-source face/body detector [4]. About 280K out of the 600K images have one single clear face in the image. A significant portion of the images do not contain humans, and can be scenes, objects and symbols related to emotions, as shown in Fig. 1.
+
+Looking at the co-occurrence matrix for the keywords, we found that only a small portion of the keywords co-occur frequently. Most of the 690 categories are independent of each other. A visualization for the co-occurrence matrix is
+
+provided in the supplementary material.
+
+# 3.3. SE30K8 - A Manually Annotated Subset
+
+For verification and controlled studies, we collected 'cleaner' annotations, albeit of a different type, for a subset of the images. Starting from Ekman's emotion taxonomy [11]: anger, happiness, surprise, disgust, sadness, fear, we added a neutral category and divided the surprise category into surprise-positive and surprise-negative. This led to a set of eight emotion categories.
+
+We collected human annotation for the eight emotion categories for a subset of 33K images, using Amazon Mechanical Turk (AMT). For each image, annotators were asked to select all the emotional categories expressed in the image. Each image was annotated by five AMT workers (after a qualification task). Annotations provided by the workers are reasonably consistent: more than $85\%$ of the images had the same annotation by at least three annotators. Many of these images have clearly conveyed emotions, but it is difficult to describe them using basic categories [11, 36].
+
+# 4. EmotionNet
+
+EmotionNet is a general feature extraction network for emotion, trained on the StockEmotion dataset, which has emotion keywords for over a million images. As in most annotations derived from web, the list of emotion keywords for an image might be incomplete, erroneous, or both. The presence or absence of a keyword in the list does not necessarily mean that the image must or must not be associated with that keyword. This is referred to as label noise, and we estimate there is around $15\%$ of label noise. Unfortunately, this will impact the performance of feature extraction networks trained on the StockEmotion dataset, especially those trained by minimizing the data negative log-likelihood.
+
+To mitigate the noise problem, we propose to use an additional data type that also comes with the stock images: text! In addition to the list of emotion keywords, each image in our dataset also comes with other non-emotion keywords, which should also be utilized to our benefit. Non-emotion keywords, by definition, do not convey emotions, but there exist correlations between them. For example, an image with keywords like *sunday*, *young*, *outdoor* is likely to evoke positive emotions. We propose to use the list of non-emotion keywords to infer the missing emotion keywords; in particular, we train a text-based classifier that predicts emotion keywords from the list of non-emotion keywords. The predicted distribution of emotion keywords in combination with the tagged emotion keywords are now used as the smoothed labels for training the feature extractor. Furthermore, we also regularize the visual features by forcing them to be compatible with the text-derived representation of the emotion keywords associated with them. The overview of our proposed model is shown in Fig. 2.
+
+
+Figure 2: Training of EmotionNet. The non-emotion keywords of an image are used to predict the emotion keywords associated with the image. The predicted emotions and the original (noisy) emotion keywords are combined to form the target class distribution. EmotionNet is trained by minimizing two losses: the multi-label classification loss and the joint embedding loss. The joint embedding loss requires the visual embedding of the image to be compatible to the textual embedding of the associated keywords.
+
+
+Figure 3: Architecture of text-to-emotion networks. This architecture is used by a text-to-emotion network, mapping an unordered list of keywords to a probability vector for multiple emotion categories.
+
+Many word embeddings already exist, and state-of-the-art models often exploit the sequential and compositional nature of text [41, 44]. In our case, however, the text associated with each stock image is an unordered collection of keywords with no sequential or compositional aspects. We therefore use a simple model that combines the feature embeddings of multiple words to produce a fixed length feature vector. Although simple, such models have been shown to be effective for multiple text classification tasks [1, 18, 46].
+
+Fig. 3 shows the components of our text-to-emotion classifier. The classifier is a mix of a text CNN [20] and a
+
+deep averaging network (DAN) [18]. The classifier uses word2vec embeddings [30] to represent the keywords as rows in an embedding matrix. The CNN component uses a 1D convolution with kernel size one and a ReLU activation to transform the word embedding features into feature maps. The DAN component averages the feature maps using an averaging pooling layer and then applies one fully-connected layer for non-linear transformations. The resulting feature vector is projected onto the $K = 690$ emotion keywords categories. We denote this text model as TextCNN. We train this TextCNN model on the training set of the StockEmotion dataset.
+
+The predicted probabilities from the text-to-emotion classifier are then combined with the original binary indicators to yield an augmented label distribution as follows:
+
+$$
+y _ {k} ^ {\prime} = \frac {\hat {y} _ {k} + y _ {k}}{1 + \sum_ {i = 1} ^ {K} \hat {y} _ {i}}, \tag {1}
+$$
+
+where $\hat{y}_k$ is the predicted probability by the text-to-emotion classifier for the emotion keyword $k$ and an input image $\mathbf{x}$ , $y_k$ is the binary indicator for whether the keyword $k$ is among the original keywords of image, and $y_k'$ is the resulting soft label. The multiple-label classification loss is then expressed as:
+
+$$
+\mathcal {L} _ {c l s} = - \frac {1}{K} \sum_ {k = 1} ^ {K} y _ {k} ^ {\prime} \log \left(P _ {k} (\mathbf {x})\right). \tag {2}
+$$
+
+The second type of regularization that we introduce is based on the observation that the tags provide an alternate view for the emotion conveyed in the image. As such, we can use the text-based embedding to aid the training of the visual embedding. The main idea is to ensure that the visual emotion features are compatible with the text-based features. We use the average of the keyword embeddings as our text-based representation and map the visual features into the same feature space. We add a regularization term into the training loss to encourage a small cosine distance between the text and the transformed visual features. Formally, the embedding loss for a pair of image $\mathbf{x}$ and a list of keywords $\mathbf{y}$ is given by:
+
+$$
+\mathcal {L} _ {\text {e m b e d}} = 1 - \cos \left(f _ {t} (\mathbf {y}), \mathbf {W} f _ {v} (\mathbf {x})\right), \tag {3}
+$$
+
+where $f_{t}(\mathbf{y})$ is the average of all keyword features, $f_{v}(\mathbf{x})$ is the visual embedding of the input image $\mathbf{x}$ , and $\mathbf{W}$ is a linear transformation that maps the visual features to the joint embedding space.
+
+Finally, for a pair of image $\mathbf{x}$ and associated keywords $\mathbf{y}$ we minimize the combined loss function between the classification loss and the embedding loss:
+
+$$
+\mathcal {L} = \mathcal {L} _ {c l s} + \lambda \mathcal {L} _ {e m b e d}, \tag {4}
+$$
+
+where $\lambda$ controls the strength of the embedding loss term. We set $\lambda = 1$ in all of our experiments for simplicity and did not tune it for better performance. There are many other advanced solutions for this multimodal representation learning problem (detailed survey in [47]). Here we choose a simple but effective approach, as shown in our experiments.
+
+# 5. Experiments
+
+This section describes experiments to evaluate the benefits of EmotionNet for several emotion analysis tasks. First, we use EmotionNet as a feature extractor and train simple linear classifiers on emotion datasets and measure the recognition performance on those datasets. Second, we evaluate EmotionNet on zero-shot learning. Finally, we compare qualitatively between the features from EmotionNet and another generic feature extraction network for the task of image retrieval.
+
+# 5.1. Network and implementation details
+
+We use ResNet50, a residual network with 50 layers [13], as our backbone network. We initialize the model with ImageNet pretrained weights and continue to train on StockEmotion for 30 epochs using stochastic gradient descent with a mini batch size of 256, learning rate 0.001, momentum 0.9, and weight decay $10^{-5}$ . We reduce the learning rate by a factor of 10 at epochs 10 and 20. When training converges, top-1 prediction accuracy for the 690 emotional categories on the test set stabilizes around $50\%$ . Our experiments suggest that Emotion-Net models trained from scratch on StockEmotion achieve similar accuracy values, but their training takes longer to converge.
+
+The TextCNN model was trained following [18] using AdaGrad with an initial learning rate of 1 and dropped by a factor of 10 every 10 epochs for 30 epochs. We used the publicly available word2vec [30] trained with GoogleNews to generate word embeddings. We also experimented with word2vec embeddings learned from our dataset by regarding the keyword list associated with each image as a sentence but no improvement was observed.
+
+# 5.2. Evaluation of learned image features
+
+We evaluate the learned features by using them for emotion category prediction tasks defined by other emotion datasets. We use ResNet50 trained on StockEmotion to extract image features. The extracted features are used as is, without any fine-tuning on the target task datasets. We use simple linear classifiers for emotion category prediction in order to demonstrate the utility of the visual features returned by EmotionNet.
+
+Evaluation Protocol. We freeze all the layers of EmotionNet and replace the last fully-connected layer with a new one that projects the learned features to the output cate
+
+ | DE [52] | UBE [33] | AffectNet [32] | SE30K8 | EMTIC-B [21] | EMTIC-I [21] |
| Metric | Accuracy | mAP |
| Previous SOTA | 61.13 [33] | 74.30 [33] | 57.31 [54] | - | 25.44 [21] | 22.48 [21] |
| ResNet-50 | 58.30 | 60.26 | 40.17 | 52.52 | 24.34 | 26.03 |
| EmotionNet | 65.81 | 81.45 | 53.43 | 69.78 | 29.24 | 30.96 |
+
+gories of the target dataset. We train the last layer alone on the target dataset. The trainable fully connected layer contains 12K to 60K parameters, depending on various number of categories. For all the datasets, we use the same training hyper-parameters as [33].
+
+# Datasets. We evaluate on the following datasets:
+
+DeepEmotion [52] uses eight emotions derived from a recent psychological study [29]. It has 23K images collected from Flicker and Instagram that were annotated by Amazon Mechanical Turk workers. We followed the experiment set up for the emotion recognition task in [33] in which the authors used $80\%$ of the 23K images for training and the remaining $20\%$ for testing.
+
+UnBiasedEmotion [33] contains 3000 images downloaded from Google with different emotions for the same objects to reduce object bias. Each image is labeled with one of six emotional categories. We follow the evaluation setup in [33].
+
+EMOTIC [21] consists of a mixture of images from MSCOCO [23], Ade20k [55], and images that were manually downloaded using Google search. The dataset is a collection of images of people in real environments and includes annotations of their apparent emotions drawn from a set of 26 emotion categories. It includes 18,316 images with a total of 23,788 annotations. We report performance of our models on both cases denoted as EMOTIC-B(ody) and EMOTIC-I(image). We follow training and evaluation procedures used in [21].
+
+AffectNet [32] contains around 400K annotated facial images, each labeled by a single coder. It includes 5K labeled images in 10 categories as the validation set. Following [53], we selected around 280K images as training samples and 3.5K images for validation. The labels include six basic emotions and a neutral category. For efficiency, in each training epoch, we sample 30K images uniformly at random covering the seven categories and trained the final fully connected layer for 10 epochs.
+
+SE30K8 is the manually annotated subset of our StockEmotion dataset as described in Sec. 3.3. We use a randomly selected subset of $22\mathrm{K}$ images as training samples and $3\mathrm{K}$ for validation. We test on $5\mathrm{K}$ images. We again follow the evaluation setup in [33].
+
+The datasets listed above are diverse in terms of image
+
+sources, emotion categories, and exhibiting locations. The emotion conveyed in an image could be inferred from the expression on a face, or the pose of a human body, or from the overall scene.
+
+Comparison methods and results. We directly compare to previous state-of-the-art algorithms on each dataset: [33] achieves state-of-the-art performance on DeepEmotion [52] and UnBiasedEmotion [33] using curriculum training algorithms. Kosti et al. [21] report state-of-the-art performance on EMOTIC [21] by combining both categorical and continuous emotion information. Zeng et al. [53] report best performance on [32] by training on multiple datasets and automatically filtering inconsistencies. Compared to these methods, ours model is relatively simpler, a linear classifier on top of the visual emotion features from EmotionNet. To establish the utility of visual emotion features over general purpose image features, we also compare with features from a generic feature extractor ResNet-50 pre-trained on ImageNet.
+
+The results in Tab. 2 show that: (1) the classifiers trained using the features from EmotionNet outperform four of the five previous state-of-the-art algorithms; and (2) the features from ResNet-50, a network trained for object recognition (ImageNet), are not useful for emotion prediction.
+
+Table 2: Emotion detection performance on multiple emotion datasets: A simple linear classifier trained with the Visual features learned on StockEmotion surpasses SOTA results on four of the five datasets. Our proposed unsupervised text regularization method provides minor modest additional gains.
+
+| Method | Dataset |
| DE | UBE | AffectNet | EMTIC-B | EMTIC-I |
| EmotionNet | 65.81 | 81.45 | 53.43 | 29.24 | 30.96 |
| +Extra anno. | 65.53 | 81.45 | 53.69 | 28.98 | 30.99 |
| -Soft loss | 64.76 | 80.13 | 52.66 | 28.61 | 30.66 |
| -Embed loss | 65.85 | 80.29 | 52.71 | 28.74 | 30.83 |
| -Embed & Soft | 65.29 | 78.98 | 52.51 | 28.58 | 30.52 |
+
+Table 3: Ablation experiment. Training EmotionNet with extra annotation does not necessarily help. Both the soft-label classification loss and the joint text-visual embedding loss are important.
+
+# 5.3. Ablations studies
+
+We conduct ablation studies to further understand the values of the StockEmotion dataset and the components of EmotionNet.
+
+Benefits of extra supervision. Can we improve the performance of EmotionNet with extra supervision? To answer this question, we perform an experiment where we also train EmotionNet on SE30K8, a subset of the StockEmotion dataset with human annotation for eight basic emotions. We first train a text-based classifier that predicts the eight emotion categories from a list of keywords. The representation produced by this text-classifier is an alternate view of the emotion conveyed by the image. We use it to guide the learning of the visual embedding network, forcing the transformed feature vector to be compatible with the 8-emotion embedding feature vector. Further details on this setup can be found in the supplementary material. Tab. 3 compares the performance of EmotionNet trained with and without extra supervision. As can be seen, adding extra supervision does not provide consistent benefits. The extra supervision provides minor gains in two out of five cases, while slightly degrades performance in the others. This can be attributed to the limited size of the extra annotation (only 30K) or to the small number of emotion categories (only 8). In either case, it is time-consuming and costly to either increase the number of manually annotated images or the number of manually specified annotations. On the other hand, EmotionNet trained on our webly derived StockEmotion dataset does not suffer from these scalability issues.
+
+Benefits of different loss functions. In addition to the original loss associated with predicting the emotion keywords that come with the images, EmotionNet is also trained with an embedding loss, which aims to minimize the distance between the visual representation and the textual representation of the associated tags and a soft label loss. The soft label loss refers to the difference between the label distribution predicted by EmotionNet and the emotion probabilities predicted by the text-to-emotion classifier. Tab. 3 shows the ablation study where we evaluate the contribution of the soft-label classification loss and the embedding loss. As can be seen, removing either or both of these loss terms degrades performance.
+
+Benefits of a large emotion taxonomy. StockEmotion has 690 emotion categories. We perform experiments to understand the benefits of having such a large number of categories. We consider two variants of the feature extraction network, trained with different supervision signals: (1) Use the full set of 30K keywords, rather than using just the 690 emotion related keywords, for training the feature extractor. (2) Use only eight basic emotion categories. We first learn a text classifier that predicts the eight emotion categories given image keywords as input. We train this classifier on the 30K images of SE30K8 and use it to predict emotion categories for rest of StockEmotion. We use these predicted labels as emotion pseudo-labels for the images (since the image keywords often contain clear indicators of emotion, this pseudo-labeling is of high accuracy, yielding up to $90\%$
+
+in top-2 accuracy). We then train the image feature extractor to predict these emotion pseudo-labels.
+
+Tab. 4 compares the performance of the feature extraction networks trained with different sets of emotion keywords or labels. As can be seen, the feature extraction network trained with 30K labels is substantially worse than the network trained with emotion-related keywords alone, either with 690 or 8 emotions. This suggests the benefits of focusing on the emotion-related concepts. The feature extraction network trained with 8 emotion labels is not as good as the network trained with 690 emotions. This indicates the benefits of having a fine-grained list of emotion categories.
+
+| # categories | Dataset |
| DE | UBE | AffectNet | EMTIC-B | EMTIC-I |
| 8 | 64.20 | 78.96 | 45.57 | 28.13 | 29.54 |
| 30K | 63.41 | 74.54 | 46.57 | 27.60 | 28.96 |
| 690 | 65.29 | 78.98 | 52.51 | 28.58 | 30.52 |
+
+Benefits of a large scale dataset We further investigate the effect of dataset size on emotion recognition tasks by training feature extractors on subsets of StockEmtion. More specifically, we still fix the number of categories to be 690 but the number of examples are reduced by random sampling. As shown in Tab. 5, accuracy on the UnBiasedEmotion classification task increases as more images are used for training, but the absolution improvements decreases. This trend is similar to previous studies [16, 26] on the impact of dataset size for object recognition problems.
+
+Table 4: Ablation Experiment. Performance of different feature extraction networks trained on the same set of images but with different number of annotation categories.
+
+| % of StockEmotion | 10 | 25 | 50 | 75 | 100 |
| Accuracy | 52.45 | 66.34 | 72.24 | 76.63 | 78.98 |
+
+Table 5: Ablation Experiment. Performance of feature extractors trained with various subsets of StockEmotion on UnBiasedEmotion (UBE) dataset.
+
+For all experiments thus far, we used the publicly available word2vec trained with GoogleNews to generate word embeddings. We also experimented with word2vec [30] embeddings learned from our dataset and variants of the text classification model [18], but there were no significant improvements. We report these detailed experiments in the supplementary material.
+
+# 5.4. Zero-Shot Learning Performance
+
+EmotionNet is trained with both classification and joint vision-text embedding losses. One benefit of this approach is that the feature vectors returned by EmotionNet can be
+
+
+afraid, horror, fearful...
+
+
+
+
+
+
+
+
+
+
+Ours
+
+
+haunted, mystery, creepy...
+Figure 4: Two examples of images retrieved using nearest neighbour search. For each example, Left: query images and their emotion keywords. Top: returned by ImageNet features search. Bottom: returned by features trained from StockEmotion dataset.
+
+
+
+
+
+
+
+
+
+
+Ours
+
+used for zero-shot learning, given the ability to map the image features into the same space as the text features. We evaluate EmotionNet for zero-shot learning on the EMOTIC dataset [21], in which each of the 26 emotion categories comes with a brief textual description. We create a representation for each of these categories in the text emotion space by processing the emotion keywords mentioned in their descriptions through the aforementioned text-to-eight-emotion classifier. To classify any image, we first use the text distillation model to produce a representation of the image in the text emotion space. We then score each category based on its cosine similarity to the representation of the image in the text emotion space.
+
+Results in Tab. 6 show that zero-shot learning using EmotionNet gets close to the fully supervised SOTA method on EMOTIC-B and outperforms the SOTA method on EMOTIC-I. Note that in these experiments, we do not perform any training on the EMOTIC dataset. The results show the strong generalizability of EmotionNet and the representations learned on the StockEmotion dataset.
+
+| Method | EMOTIC-B | EMOTIC-I |
| Previous SOTA | 25.44 | 22.48 |
| EmotionNet | 23.29 | 24.24 |
+
+Table 6: Zero-Shot Learning results on EMOTIC
+
+# 5.5. Image Retrieval and Qualitative Results
+
+The feature representations produced by EmotionNet can be used to find images with similar emotion content. Given a query image, we can retrieve the nearest neighbors to the query in the emotion feature space. Fig. 4 compares the performance of ImageNet and EmotionNet features for image retrieval. The figure shows four query examples on the left. The images on the right are the nearest neighbors obtained by either ImageNet features (top row) or Emotion-
+
+Net features (bottom row). As can be seen, ImageNet features return nearest neighbors that have relevant object categories but unrelated emotion attributes. For example, for the query image on the bottom left, none of the images returned by ImageNet features conveys the emotion horror. In contrast, using EmotionNet features, we can retrieve other horror images.
+
+# 6. Conclusion
+
+Advances in many computer vision tasks have been built on top of large scale datasets such as ImageNet. Such large datasets enable learning effective representations that are transferable to a variety of downstream tasks. In this work, we introduced a scalable method for acquiring a large-scale image dataset with rich emotion related tags. Using this method, we created EmotionStock, a dataset with more than a million images and 690 emotion-related keywords. We also proposed text-based distillation methods to mitigate the problem of label noise, creating EmotionNet, a general feature extraction network for emotion content. Experiments on a number of datasets showed that EmotionNet is useful for various downstream emotion analysis tasks, including emotion recognition, zero-shot learning, and image retrieval.
+
+Acknowledgements. This project is partially supported by NSF IIS-1763981, the Partner University Fund, the SUNY2020 Infrastructure Transportation Security Center, and a gift from Adobe. This material is also based on research that is in part supported by the Air Force Research Laboratory (AFRL), DARPA, for the KAIROS program under agreement number FA8750-19-2-1003. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon.
+
+# References
+
+[1] Sanjeev Arora, Yingyu Liang, and Tengyu Ma. A simple but tough-to-beat baseline for sentence embeddings. In Proceedings of International Conference on Learning and Representation, 2017. 4
+[2] Pooyan Balouchian, Marjaneh Safaei, and Hassan Foroosh. LUCFER: A large-scale context-sensitive image dataset for deep learning of visual emotions. In IEEE Winter Conference on Applications of Computer Vision, 2019. 2
+[3] 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, 2016. 1
+[4] Zhe Cao, Gines Hidalgo, Tomas Simon, Shih-En Wei, and Yaser Sheikh. OpenPose: realtime multi-person 2D pose estimation using Part Affinity Fields. In arXiv:1812.08008, 2018.3
+[5] Tao Chen, Damian Borth, Trevor Darrell, and Shih-Fu Chang. Deepsentibank: Visual sentiment concept classification with deep convolutional neural networks. arXiv:1410.8586, 2014. 2
+[6] Yen-Liang Chen, Chia-Ling Chang, and Chin-Sheng Yeh. Emotion classification of youtube videos. Decision Support Systems, 101:40-50, 2017. 1
+[7] J.F. Cohn, T. Simon, I. Matthews, Y. Yang, M. H. Nguyen, M. Tejera, F. Zhou, and F. De la Torre. Detecting depression from facial actions and vocal prosody. In Proceedings of International Conference on Affective Computing and Intelligent Interaction, 2009. 1
+[8] Alan S Cowen and Dacher Keltner. Self-report captures 27 distinct categories of emotion bridged by continuous gradients. Proceedings of the National Academy of Sciences, 114 (38):E7900-E7909, 2017. 2
+[9] J. Deng, W. Dong, R. Socher, K. Li L.-J. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2009. 1
+[10] Andrew Downs and Paul Strand. Effectiveness of emotion recognition training for young children with developmental delays. Journal of Early and Intensive Behavior Intervention, 5(1):75, 2008. 1
+[11] Paul Ekman and Dacher Keltner. Universal facial expressions of emotion: an old controversy and new finding. In Ullica Segerstrale and Peter Molnar, editors, Nonverbal communication: Where nature meets culture, pages 27-46. 1997. 2, 4
+[12] Benoit Frénay and Michel Verleysen. Classification in the presence of label noise: a survey. IEEE transactions on neural networks and learning systems, 25(5):845-869, 2014. 2
+[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, 2016. 1, 5
+[14] Le Hou, Tomas F. Yago Vicente, Minh Hoai, and Dimitris Samaras. Large scale shadow annotation and detection using lazy annotation and stacked cnns. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. 2
+
+[15] Junlin Hu, Jiwen Lu, and Yap-Peng Tan. Discriminative deep metric learning for face verification in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2014. 2
+[16] Minyoung Huh, Pulkit Agrawal, and Alexei A Efros. What makes imagenet good for transfer learning? arXiv:1608.08614, 2016. 1, 7
+[17] Zaeem Hussain, Mingda Zhang, Xiaozhong Zhang, Keren Ye, Christopher Thomas, Zuha Agha, Nathan Ong, and Adriana Kovashka. Automatic understanding of image and video advertisements. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. 1
+[18] Mohit Iyyer, Varun Manjunatha, Jordan Boyd-Graber, and Hal Daumé III. Deep unordered composition rivals syntactic methods for text classification. In Proceedings of Annual Meeting of the Association for Computational Linguistics and International Joint Conference on Natural Language Processing, 2015. 4, 5, 7
+[19] Dhiraj Joshi, Ritendra Datta, Elena Fedorovskaya, Xin Lu, Quang-Tuan Luong, James Z Wang, Jia Li, and Jiebo Luo. On aesthetics and emotions in scene images: A computational perspective. Scene Vision: Making Sense of What We See, page 241, 2014. 1
+[20] Yoon Kim. Convolutional neural networks for sentence classification. arXiv:1408.5882, 2014. 4
+[21] Ronak Kosti, Jose M Alvarez, Adria Recasens, and Agata Lapedriza. Emotion recognition in context. In The IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2, 6, 8
+[22] Peter J Lang, Margaret M Bradley, and Bruce N Cuthbert. International affective picture system: Technical manual and affective ratings. NIMH Center for the Study of Emotion and Attention, 1:39-58, 1997. 2
+[23] 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 Proceedings of the European Conference on Computer Vision, 2014. 6
+[24] Kristen A Lindquist, Jennifer K MacCormack, and Holly Shaback. The role of language in emotion: predictions from psychological constructionism. Frontiers in Psychology, 6: 444, 2015. 2
+[25] Jana Machajdik and Allan Hanbury. Affective image classification using features inspired by psychology and art theory. In Proceedings of ACM International Conference on Multimedia, 2010. 2
+[26] 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. 7
+[27] Daniel McDuff, Rana El Kaliouby, Jeffrey F Cohn, and Rosalind W Picard. Predicting ad liking and purchase intent: Large-scale analysis of facial responses to ads. IEEE Transactions on Affective Computing, 6(3):223-235, 2015. 1
+[28] Thomas Mensink, Jakob Verbeek, Florent Perronnin, and Gabriela Csurka. Metric learning for large scale image clas
+
+sification: Generalizing to new classes at near-zero cost. In Proceedings of the European Conference on Computer Vision, 2012. 2
+[29] Joseph A Mikels, Barbara L Fredrickson, Gregory R Larkin, Casey M Lindberg, Sam J Maglio, and Patricia A Reuter-Lorenz. Emotional category data on images from the international affective picture system. Behavior research methods, 37(4):626-630, 2005. 6
+[30] Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems. 2013. 5, 7
+[31] Saif M Mohammad and Peter D Turney. Nrc emotion lexicon. National Research Council, Canada, 2013. 2
+[32] Ali Mollahosseini, Behzad Hasani, and Mohammad H Ma-hoor. Affectnet: A database for facial expression, valence, and arousal computing in the wild. arXiv:1708.03985, 2017. 2, 3, 6
+[33] Rameswar Panda, Jianming Zhang, Haoxiang Li, Joon-Young Lee, Xin Lu, and Amit K Roy-Chowdhury. Contemplating visual emotions: Understanding and overcoming dataset bias. In Proceedings of the European Conference on Computer Vision, 2018. 1, 2, 3, 6
+[34] W Gerrod Parrott. Emotions in social psychology: Essential readings. Psychology Press, 2001. 2
+[35] Sintija Petrovica and Hazim Kemal Ekenel. Emotion recognition for intelligent tutoring. In BIR Workshops, 2016. 1
+[36] Robert Plutchik and Henry Kellerman. Emotion, theory, research, and experience: theory, research and experience. Academic press, 1980. 2, 4
+[37] David Rolnick, Andreas Veit, Serge Belongie, and Nir Shavit. Deep learning is robust to massive label noise. arXiv:1705.10694, 2017. 3
+[38] James A Russell. Affective space is bipolar. Journal of personality and social psychology, 37(3):345, 1979. 2
+[39] Blake Shaw and Tony Jebara. Structure preserving embedding. In Proceedings of the International Conference on Machine Learning, 2009. 2
+[40] Carlo Strapparava and Alessandro Valitutti. WordNet affect: an affective extension of WordNet. In Proceedings of the Fourth International Conference on Language Resources and Evaluation, 2004. 2
+[41] Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv:1503.00075, 2015. 4
+[42] Tomas F. Yago Vicente, Minh Hoai, and Dimitris Samaras. Noisy label recovery for shadow detection in unfamiliar domains. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016. 2
+[43] Tomas F. Yago Vicente, Le Hou, Chen-Ping Yu, Minh Hoai, and Dimitris Samaras. Large-scale training of shadow detectors with noisily-annotated shadow examples. In Proceedings of the European Conference on Computer Vision, 2016. 2
+[44] Yashen Wang, Heyan Huang, Chong Feng, Qiang Zhou, Jiahui Gu, and Xiong Gao. CSE: Conceptual sentence embeddings based on attention model. In Annual Conference of the Association for Computational Linguistics, 2016. 4
+
+[45] Yilin Wang and Baoxin Li. Sentiment analysis for social media images. In 2015 IEEE International Conference on Data Mining Workshop (ICDMW), pages 1584-1591. IEEE, 2015. 1
+[46] John Wieting, Mohit Bansal, Kevin Gimpel, and Karen Livescu. Towards universal paraphrastic sentence embeddings. arXiv:1511.08198, 2015. 4
+[47] Yongqin Xian, Christoph H Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learning-a comprehensive evaluation of the good, the bad and the ugly. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. 5
+[48] Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. 2
+[49] Yi-Hsuan Yang and Homer H Chen. Machine recognition of music emotion: A review. ACM Transactions on Intelligent Systems and Technology, 3(3):40, 2012. 2
+[50] Keren Ye and Adriana Kovashka. Advise: Symbolism and external knowledge for decoding advertisements. In Proceedings of the European Conference on Computer Vision, 2018. 1
+[51] Michelle Yik, James A Russell, and James H Steiger. A 12-point circumplex structure of core affect. Emotion, 11(4): 705, 2011. 2
+[52] Quanzeng You, Jiebo Luo, Hailin Jin, and Jianchao Yang. Building a large scale dataset for image emotion recognition: The fine print and the benchmark. In Proceedings of AAAI Conference on Artificial Intelligence, 2016. 3, 6
+[53] Jiabei Zeng, Shiguang Shan, and Xilin Chen. Facial expression recognition with inconsistently annotated datasets. In Proceedings of the European Conference on Computer Vision, 2018. 6
+[54] Jiabei Zeng, Shiguang Shan, and Xilin Chen. Facial expression recognition with inconsistently annotated datasets. In Proceedings of the European Conference on Computer Vision, 2018. 6
+[55] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, pages 1-20, 2016. 6
\ No newline at end of file
diff --git a/learningvisualemotionrepresentationsfromwebdata/images.zip b/learningvisualemotionrepresentationsfromwebdata/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..58e3b349d457b3bc1fe4ee59607271c9cbe8996b
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fb5e4d5c10311f592514fdcff5af3b4dab0c1a066e6aae3ee4653cd466c5a4c6
+size 359903
diff --git a/learningvisualemotionrepresentationsfromwebdata/layout.json b/learningvisualemotionrepresentationsfromwebdata/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..31e571146e6cce152aa7c271ceac5f623dc52a61
--- /dev/null
+++ b/learningvisualemotionrepresentationsfromwebdata/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ffbc0e8c0c8ffbcab135998ea500b59a69bc1a696a3c8c9ca6f99d0a38f22d66
+size 380240
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_content_list.json b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..37744d50f52931334976f3525c420ef8c453c991
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3cbcdf572ffb91f00fbbf893dbdb6692865cdfb3bc9e03584c48cc106c20ba0
+size 68619
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_model.json b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0ff18f3d12ae8459d7bb8befacb38b2a23e1a6f1
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:885c2b2618912ca4ebaaafd334db67e5ddc22c6154271e93a1e82b3693d47928
+size 85529
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_origin.pdf b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a11476061ff45209882ee2a2f76390374f07128a
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/a5930656-f4f9-481b-bc8e-eb317dbf0a4d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d46ca5dfe4d3d98f0192f40f2dc6d641651c1f504d37fc7c60da1dd5858372c5
+size 1213941
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/full.md b/learningvisualmotionsegmentationusingeventsurfaces/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..4a4a18989e6a8dab756a61daf95d62d21535ea15
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/full.md
@@ -0,0 +1,283 @@
+# Learning Visual Motion Segmentation using Event Surfaces
+
+Anton Mitrokhin*, Zhiyuan Hua*, Cornelia Fermüller, Yiannis Aloimonos
+University of Maryland, College Park
+College Park, Maryland
+
+amitrokh@umd.edu, howardh@terpmail.umd.edu, fermulcm@umd.edu, jyaloimo@umd.edu
+
+# Abstract
+
+Event-based cameras have been designed for scene motion perception - their high temporal resolution and spatial data sparsity converts the scene into a volume of boundary trajectories and allows to track and analyze the evolution of the scene in time. Analyzing this data is computationally expensive, and there is substantial lack of theory on dense-in-time object motion to guide the development of new algorithms; hence, many works resort to a simple solution of discretizing the event stream and converting it to classical pixel maps, which allows for application of conventional image processing methods.
+
+In this work we present a Graph Convolutional neural network for the task of scene motion segmentation by a moving camera. We convert the event stream into a 3D graph in $(x,y,t)$ space and keep per-event temporal information. The difficulty of the task stems from the fact that unlike in metric space, the shape of an object in $(x,y,t)$ space depends on its motion and is not the same across the dataset. We discuss properties of the event data with respect to this 3D recognition problem, and show that our Graph Convolutional architecture is superior to PointNet++. We evaluate our method on the state of the art event-based motion segmentation dataset - EV-IMO and perform comparisons to a frame-based method proposed by its authors. Our ablation studies show that increasing the event slice width improves the accuracy, and how subsampling and edge configurations affect the network performance.
+
+# 1. Introduction
+
+Scene motion analysis has been studied for many years [16, 21, 1]. Lately, there has been an increased interest in these problems due to the applications in autonomous navigation [13]. The basic image representation for motion analysis is optical flow, representing pixelwise motion between two moments in time. Optical flow is subject to many am
+
+biguities [33, 11]. On the other hand, feature point tracking allows for long-term estimation of pixel motion trajectories. That way, by analyzing pixel matches over large time intervals the ambiguity in motion can be resolved. Scene motion exists in time. Changes in the scene over short time intervals provide some information, but tasks, such as occlusion detection, segmentation of multiple moving objects, and detecting objects with a motion similar to the camera, require capturing the changes over longer time intervals to resolve ambiguities. Classic frame-based vision, however, is not naturally designed to provide temporal information.
+
+With the growing enthusiasm for technologies such as VR and gesture recognition, many companies have started to invest in the development of event-based cameras [19, 28, 7, 32]. These sensors provide dense temporal information about changes in the scene; with every pixel acting as an independent electrical circuit such sensors are not driven by a common clock - every pixel reacts to motion independently, allowing for a more efficient, generic and at the same time accurate perception of the dynamic aspect of the scene. An additional benefit of these sensors is better tolerance to varying light conditions and sparse data encoding which makes event-based cameras useful for mobile devices.
+
+For an event camera, every visible moving edge in the scene produces a trail of events, - an event cloud, which lies on a surface (called event-surface or time-surface [18]) in $(x,y,t)$ space. The time-surface contains all the information about structure and motion. Unlike classical 3D processing (with RGB-D or Lidar sensors), the shape of the event clouds is constrained by the laws of physics and epipolar geometry. A certain shape of a cloud, even locally, might signify that two objects occlude each other, collide with each other or move closer to the camera.
+
+Examples are shown in Fig. 1. The event clouds for four object motions are illustrated (the color of points corresponds to the event timestamp, in the range of 0 to 1 sec.): (a) translation parallel to the camera plane does not change the shape of the cloud across time, only its spatial coordinates; (b) roll, or rotation around the axis parallel to the camera plane reveals previously occluded parts of the ob
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 1. Illustration of event cloud shape properties depending on camera or object motion. Each point is an event, the timestamp is shown with color: blue - 0 sec, red - 1 sec. (a) - translation parallel to camera plane (along $y$ axis), (b) - roll (rotation around $y$ axis), (c) - translation along $z$ axis (object moves closer to the camera), (d) - yaw (rotation around $z$ axis)
+
+
+(d)
+
+ject, and the shape of the cloud cross-section changes; (c) with translation along the camera's optical axis, as the object approaches the camera its contour becomes larger; (d) rotation around the optical axis produces a discernible twist pattern. From these clouds, we also can see how natural the object tracking problem becomes, given the high temporal density of events. We discuss 3D motion pattern features in Sec. 3.
+
+The time-surfaces have their origin in the Epipolar plane image analysis introduced in the late 80's [6]. As the camera moves along a linear path, images were taken in such rapid succession that they formed a solid block of data. The technique utilized knowledge of the camera motion to form and analyze slices of this solid. These slices directly encode not only the three-dimensional positions of objects, but also spatiotemporal events such as the occlusion of one object by another. For straight-line camera motions, these slices have a simple linear structure that makes them easy to analyze.
+
+Generalizing this concept, we work with time-surfaces in $(x,y,t)$ produced by an event camera to perform the task of foreground-background segmentation of moving objects. The complexity of this task comes from the enormous amount of asynchronous data which needs to be processed, high levels of noise produced by the event camera and, most importantly, the fact that the variability of object and camera motion changes the shape of the event cloud, making it more difficult to learn local 3D features. In summary, the contributions of this paper are:
+
+- The first learning approach on 3D event clouds over large time intervals.
+- We show theoretically and with experiments that larger temporal slices yield better performance.
+- We perform comparisons to current state of the art, us
+
+ing $\text{PointNet}++$ [30] and $\text{EV-IMO}$ [25] as baselines, and show that our method is faster and yields better results.
+
+# 2. Related Work
+
+While most works process event data, by collapsing information into 2D image maps, a few approaches have adopted concepts from 3D processing. The best known flow techniques on event cameras compute normals to local timesurfaces [5, 10, 26, 27] to estimate normal flow. A block matching algorithm by Liu [20] uses similar ideas but can produce full flow for corner regions. The approach in [2] tracks events caused by contrast edges over multiple pixels to estimate normal flow, and [8, 3] use local frequency measurements defined on the event count maps. Recent motion compensation approaches use the temporal information as third dimension within a slice of events, to derive flow, and local or global motion models [24, 12].
+
+Event-based feature detection research pursues similar ideas, but more global in temporal domain. Early works used the continuity of the event stream to bridge the gap between classical camera frames [34]. Later, Zhu et al. introduced a probabilistic, event-only approach to corner extraction [39]. Manderscheid et al. have significantly improved on existing methods by using deep learning [22]. Lagorce et al. [17, 18] addressed event cloud analysis in terms of timesurfaces by designing temporal features and demonstrated them in recognition tasks, and Chandrapla et al. [9] learned motion invariant space-time features. These works laid the foundations of the spatio-temporal feature analysis on event clouds and are precursors to the global event-cloud analysis.
+
+Learning approaches on event data are quite numerous, with many authors emphasising the importance of encoding temporal information as input features for neural networks.
+
+To name a few, [38] learns optical flow by constructing a discretized map with event timestamps, similar to the average time image used in [37]. An improved work by Zhu [40] uses multiple slices as input, retaining 3D structure of the cloud better. Barranco et al. [4] used different local spatiotemporal features to learn borders of objects. One of the most recent works - EV-IMO [25] presents a motion segmentation pipeline and a dataset which we use in this paper.
+
+The closest to our approach is EventNet [31] - inspired by Pointnet [29], the first learning approach on 3D point clouds. This work analyzes events as points in 3D space, but only on slices up to $32ms$ wide, making it on par with image-based approaches in terms of data representation. Since the work uses a Multi Layer Perceptron, the spatial structure of events is not explicitly represented. Furthermore, EventNet has simple experimental results; it performs segmentation on planar shapes only, and shows marginal improvements of $0.1\%$ in the mIoU (mean Intersection-Over Union) metric compared to the PointNet baseline. We build our approach around the Graph Convolutional Network [15, 36] structure, and we demonstrate that our networks perform favorably on the much more challenging EV-IMO dataset.
+
+# 3. Event Clouds and Scene Motion
+
+Event cameras record a continuous stream of brightness change events. Each event is encoded by its pixel position $x, y$ , timestamp, $t$ , accurate to microseconds, and an additional bit denoting whether brightness increased or decreased. We will refer to the events in a fixed-time interval as 'slice' of events. A single slice can contain millions of events (practically, $10^{6}$ events per second in the EV-IMO [25] dataset collected with the DAVIS 346C sensor, and $6 * 10^{6}$ events with a newer Prophesee high resolution sensor [28]). The events are generated by the motion of image contours (object boundaries, or texture edges) over time. We can look at these events as points on trajectories $tj(t) = (x(t), y(t), t)$ - this makes it natural to regard events as points in 3D $(x, y, t)$ space. The rest of this section is devoted to analyzing some geometric properties of event clouds. Since pixel motion is constrained by the laws of physics, the rigidity of bodies and the epipolar geometry, event clouds are significantly different from 3D point clouds in $(x, y, z)$ space.
+
+# 3.1. Surface Normals, Normal Flow, & Optical Flow
+
+Earlier works [5, 10] have analyzed surface normals of event clouds in the context of optical flow estimation. With some abuse of notation, similar as in [5], we describe the event cloud as a function $t(x,y)$ , with $t$ the time and $x, y$ the spatial coordinates, and consider it a surface (actually an $(x, y)$ may map to multiple $t$ violating the definition of a function). Then the partial derivates $\frac{\partial t(x,y)}{\partial x}$ , $\frac{\partial t(x,y)}{\partial y}$ provide the
+
+inverse of the observed velocity components. Thus, from the normal to this surface $n$ with components $(n_x, n_y, n_t)$ , the instantaneous normal flow at an image pixel can be obtained as $v_n = \left(\frac{n_t}{n_x}, \frac{n_t}{n_y}\right)$ .
+
+More importantly though is the notion that the full flow of a point $p = (x, y, t)$ would lie in the plane with the normal $n$ and passing through $p$ . Now, we can impose an additional assumption, which is often called smoothness constraint - that flow in the local region is similar; this is not true for the boundaries, and we analyze boundary regions separately below.
+
+More specifically, for a region of a small radius $r$ around the point $p_0 = (x,y,t)$ we will assume that all points $p_i \in B_r(p_0)$ have the same (normalized) optical flow vector $v = (v_x,v_y,v_t)$ . This results in a constraint: the optical flow at $p_0$ lies at the intersection of all local planes given by normals $n_i$ and passing through $p_0$ . If the assumption holds
+
+
+Figure 2. Event cloud in $(x,y,t)$ space; the color gradient corresponds to event timestamps. For a single rigid object, curvatures on the cloud would define a trajectory of a point of this object, while for a pair of objects such structure can identify an occlusion. On the bottom left - a point with two possible optical flow values, which only occur during occlusions. Bottom right: $T$ -corner; during occlusion its shape defines which object is on the foreground and which is on the background (see Sec. 3.3)
+
+true, and the flow is the same for all local points, then all planes $n_i$ will intersect on a single line $v$ . The intersection of two planes given by $n_i$ and $n_j$ is simply $v = n_i \times n_j$ . Given a set of planes in $B_r(p_0)$ , we formulate the constraint on flow as a least squares problem:
+
+$$
+v = \min _ {v} \sum \left\| v \times n _ {i} \right\| ^ {2} \tag {1}
+$$
+
+Here, we deviate from the common notion of optical flow as a $2D$ vector field; given the frame-less nature of the event stream, $v$ should rather be thought of as the temporal derivative of the pixel trajectory, while instantaneous flow in the traditional sense can be written as $v_{xy} = \left(\frac{v_x}{v_t},\frac{v_y}{v_t}\right)$ .
+
+# 3.2. Continuity in Time
+
+The flow is the derivative of the point trajectory $v = \frac{d(tj)}{dt} = \left(\frac{dx}{dt}, \frac{dy}{dt}, 1\right)$ . Due to the continuity in time of the event stream, sometimes it is possible to recover the full trajectory of a point. A trajectory is unambiguously recoverable if all its points are generalized corners - that is, for all points Eq. 1 needs to have a single minima. Then, using a sequence of candidate points $p_i$ and their corresponding flow $v_i$ , it is possible to extract the full trajectories of these points. Even, if the data is discontinuous, we may be able to obtain the trajectory.
+
+# 3.3. Boundary Regions and Occlusions
+
+Corner detection for event cameras has been studied previously [22]. However, existing methods don't allow to distinguish between object corners, and structures caused by occlusions (see Fig. 2). Next we discuss how to distinguish these cases.
+
+A consequence of Eq. 1 is that every point with nonzero curvature will have an unambiguous optical flow vector associated with it. If a point region $B_r(p_0)$ includes events from boundaries of two separate objects (which can happen during occlusions) Eq. 1 will have multiple distinct minima. An example is shown in Fig. 2: on the top - a typical occlusion of the background (shown as large, flat cluster of points) by a smaller foreground object (shown as a 'tube' cutting through the background motion plane).
+
+To distinguish between a corner corresponding to a point trajectory (shown in red in Fig. 2) and a corner caused by the occlusion (shown in green), it is sufficient to analyze the local distribution of optical flow vectors. On the bottom left - the red point has multiple possible flow vectors, and its trajectory $\frac{d(tj)}{dt} = \infty$ . These special points can be found, and corresponding corner regions labeled as occlusion boundaries.
+
+It is also possible to extract at the occlusion, information about which of the two object is in the foreground, and which is in the background. Since due to occlusion the texture on theoccluded object is not visible, the foreground
+
+edge surface will be hollow inside and the background surface will be intersected by the foreground one. On the occlusion boundary this will always result in a $T$ -shaped corner, shown in Fig. 2, bottom right.
+
+# 4. The Architecture
+
+# 4.1. Motion Segmentation in 3D
+
+State-of-the-art 3D point cloud segmentation networks such as PointNet++ [30], EdgeConv [35], and 3DCNN [14] have been designed to extract static 3D feature descriptors in a uniform 3D metric space. The event cloud differs in that it has a temporal axis; the motion of the object itself controls the shape of the cloud and hence static $(x, y, t)$ features cannot be learnt as descriptors. The metric space of depth data also allows for efficient downsampling and mesh simplifications, and modern depth sensors have significantly less noise than event cameras. Currently, only a handful of methods is capable of handling millions of points produced by event cameras. In this work, we use PointNet++ as a baseline and we develop a network using a Graph Convolutional Network, to perform the task of background-foreground motion segmentation.
+
+# 4.2. Network Design
+
+Our network architecture is shown in Figure 3 - it consists of five consecutive Graph Convolutional (GConv) layers and three fully connected hidden layers, which share the same weights across all points and perform global feature aggregation. The input to the network is an unstructured graph which consists of events in $(x,y,t)$ space as nodes, the per-point surface normals $(n_x,n_y,n_t)$ , and the graph edges, which are computed as described in Sec. 4.3.
+
+In each GConv layer, every point feature is aggregated from its neighbours, making points with similar vertices clustered together. When training multiple GConv layers, this is equivalent to a multi-scale clustering of the point features, which also preserves local geometric structures [23]. Each GConv layer has 64 input channels, and maps the features to 64 output channels at different scales across the entire graph [23]. Then, the 5 sets of 64 multi-scale features extracted by the five GConv layers are concatenated and fed to a Multi Layer Perceptron (MLP) classifier. The MLP starts with 256 initial channels and reduces the channels by a rate of 4 into 16 channels in the last hidden layer. Then, the outputs of the MLP are connected to a fully connected layer to produce a single point-wise score.
+
+We supervise our training as a regression problem instead of a classification problem to decrease the possibility of overfitting to object contours. The raw response values are compared with the point-wise ground truth labels $\in [0,1]$ by Binary Cross Entropy with Logits Loss.
+
+
+Figure 3. An illustration of the architecture. 5 Graph Convolutional layers aggregate multiscale features around each point; the features are concatenated and fed into a fully connected layer to predict the point class.
+
+# 4.3. Edge Computation
+
+A central component of Graph Convolutional neural networks is the edge computation. If using the raw data, the high density of points in the event cloud would give rise to a very large number of edges, making large edge radii prohibitively expensive to compute and use. To get around this, while preserving connections with neighbouring points along possible motion trajectories, we filter the edges in a sphere radius $r$ so that they are parallel to event-surface. Given a point $p_0$ and its normal $n_0$ , we keep only the edges orthogonal to $n_0$ , with a certain filtering threshold $\alpha$ , as described in Eq. 2-(a) (and illustrated in Fig. 4-(b))
+
+$(a):\{p_i|\forall p_i\in B_r(p_0)$ $\&$ $(p_{i} - p_{0})\cdot n_{0} < \alpha \}$
+$(b):\{p_i|\forall p_i\in B_r(p_0)\& p_i^t >p_0^t\}$ (2)
+
+Since most of an event's temporal motion information is contained within a plane parallel to time-surface, this filtering strategy is a good trade-off between the richness of surface features and the computational performance. Yet, our experiments have shown that most surface patches are rather isolated in the absence of strong texture or extremely fast motion, and in practice the filtering is not required.
+
+As a second constraint (Eq. 2-(b)), we impose the points to lie in the upper (along temporal axis) hemisphere of a point - this halves the number of edges with little to no decrease in network performance. Using both constraints, we obtain sparse edges which will maximally align with possible local optical flow values (see Sec. 3). In our experiments we use $r = 10$ pixels (the scaling along the temporal axis is described in Sec. 5.1.1), and we perform an ablation study on the radius size (Fig. 7(b)).
+
+# 4.4. Temporal Augmentation
+
+Following the intuitions discussed in Sec. 3, we use a temporal augmentation to artificially introduce variations in object speed (and hence - cloud shape) and improve the generalization to varying motion. Given a point in an input cloud $p = (x,y,t)$ with a normal $n = (n_x,n_y,n_t)$ the augmented point $p'$ and its normal $n'$ are computed as:
+
+$$
+p ^ {\prime} = (x, y, \alpha * t) \quad n ^ {\prime} = (\alpha * n _ {x}, \alpha * n _ {y}, n _ {t}), \tag {3}
+$$
+
+where $\alpha$ is a random scaling parameter (in our work, 0.8 - 1.2) and $n'$ is normalized to unit length.
+
+The motivation for this method is that the essential cue characterizing separate objects does not depend on speed, but rather on spatio-temporal anomalies - such as $T$ -corners, points with multiple flow values or the continuity of the event cloud. The temporal augmentation forces the neural network to learn such features (which remain unaffected by augmentation), and reduces overfitting to the local shape of the cloud. Our ablation studies (in Sec. 5.3) show that the model generalizes better using this augmentation.
+
+# 5. Experiments
+
+# 5.1. Dataset
+
+EV-IMO is the only publicly available event-based segmentation dataset. It includes pixelwise masks at $200\mathrm{Hz}$ and roughly 30 minutes of recording, although the dataset was collected in a single room and only includes three objects. Therefore segmentation might be prone to overfitting. Since our pipeline is not trained on depth, overfitting to room structure is unlikely. The 3D shape of the objects varies a lot, depending on object motion, but overfitting on contours is still possible. We perform an ablation study in the supplementary material, where we train a NN using only sequences with 2 of the objects and evaluate on sequences with the third object.
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 4. Illustration of edge configurations: (a) a typical configuration used in 3D processing: all points are used to create edges; (b) and (c) our configuration: using only points in the upper hemisphere (b); (c) using edges parallel to the time-surface (c).
+
+
+Figure 5. Qualitative results - the event cloud was projected on a plane, color represents the normalized timestamp. The subsampling rate increases from top to bottom; small time slices are shown on the left, and large on the right. Experiments with 0.5 second slices could be achieved only with a downsampling factor of $u = 5$ , but the dramatic decrease in feature quality yields poor results compared to the 0.3 second slice with no subsampling. Note how the results improve for larger slice width, especially in the presence of texture.
+
+# 5.1.1 Data Preprocessing
+
+We preprocess the raw data of EV-IMO. We upscale the temporal axis of the event cloud by a factor of 200 to keep the density of events more uniform across the $x, y, t$ axes. The normals are precomputed using PCA, with $r = 5$ (after temporal upscaling). We also apply a radius outlier filter with $r = 3$ and $k = 30$ -which removes all points having less than 30 points in a radius of 3 pixels; this results in approximately $10\%$ to $15\%$ points removed. To further reduce
+
+the number of points, we use random subsampling with a factor $u$ , which keeps 1 random point out of $u$ (in practice, we use $u = 1$ for no subsampling or $u = 2$ , to remove half the points). We precompute edges within a radius of 10 pixels for all points, and (optionally) keep up to 30 edges connected to nearest points.
+
+The ground truth provided in EV-IMO is image-based, sampled at $200Hz$ . For every event, we approximate its class by locating the nearest class mask according to mask and event timestamps and downprojecting the event coordi
+
+nate onto the image. This produces good results in practice, even for fast motion; we show a sample of the event cloud with class annotations in the supplementary material.
+
+# 5.2. Implementation Details
+
+Our network architecture consists of five consecutive Graph Convolutional(GC) layers and three fully connected hidden layers. As input features we use spatio-temporal event locations $(x,y,t)$ , time-surface normals $(n_x,n_y,n_t)$ , and a per-event binary polarity value $(p\in [0,1])$ which signifies whether the brightness has increased or decreased at pixel $(x,y)$ , at time $t$ .
+
+In our current implementation the network (Sec. 4.2) has $117k$ trainable parameters. We train the network with a batch size of 3 using three Nvidia GTX 1080Ti GPUs. Larger batch sizes are difficult to achieve in practice because of the large amount of data. We use the Adam optimizer with a learning rate of $7e - 4$ and cosine annealing scheduling strategy. We train our models for 200 epochs on a portion of the $EV - IMO$ [25] dataset. The model takes 6-minutes to train for each epoch with a slice width of 0.3 seconds and no subsampling.
+
+As baseline we use the state-of-the-art PointNet++ [30] on event clouds. We take the segmentation implementation of PointNet++ presented in [30], which in turn was inspired by [14] and [29]. The implementation consists of two hierarchical sampling and grouping modules, followed by one k-nearest-neighbours interpolation and three forward passing modules. K-nearest-neighbours are searched with a ratio and a radius of 0.2/0.2 in the first sampling layer and 0.25/0.4 in the second sampling layer. The responses from the last forward passing modules are passed to three concatenated layers of a fully connected network to produce as out a label for each point.
+
+# 5.3. Ablation Studies
+
+# 5.3.1 Effects of the Slice Width
+
+We conduct experiments to investigate the effects of slice width and cloud sub-sampling on the performance of the network. Fig. 6 shows results on the boxes validation set for the first $12k$ iterations of training. The experiments on the full resolution clouds (shown in solid lines) perform notably better, as to be expected, but the training speed is $30\%$ lower (for results on training speed see Table 2).
+
+We observe that the largest effect was for larger slice widths - the $u2, w0.1$ and $u1, w0.1$ perform similarly, while $u1, w0.3$ is $10\%$ better than $u2, w0.3$ . Our intuition is that this due to the lack of temporal features in smaller slices - a similar effect is observed when varying the edge radius (Fig. 7(b)). The edge radius, together with the network depth, essentially controls the maximum size of global features.
+
+# 5.3.2 Temporal Augmentation
+
+Temporal augmentation is designed to reduce overfitting of the network to the local 3D feature descriptors by randomly scaling the event cloud along time axis. The EV-IMO dataset has high variation in object velocities, including across training and validation sets; the velocity of the object defines the shape of the cloud (as explained in Sec. 3.1), which can cause significant drop in scores when transferring to unseen sequences in validation set. We show the comparison for learning with and without augmentation in Fig. 7-(a) by training on the boxes dataset and evaluation on fast dataset.
+
+# 5.4. Results
+
+Both $GConv$ and $PointNet++$ were trained on all EV-IMO train sequences containing different objects, which
+
+
+Figure 6. Inference performance, in mIoU, for the first $12k$ iterations of training for slice widths $w = 0.02, 0.1, 0.3$ sec. Dashed line corresponds to a subsampling factor $u = 2$ . The solid line corresponds to experiments with no subsampling ( $u = 1$ ).
+
+
+
+
+Figure 7. mIoU scores for the box validation for varying edge radius (without temporal augmentation). (a) Plots are shown for $\alpha = 0.0$ (no augmentation) and $\alpha = 0.2$ for the first $12k$ iterations of training. (b) Reducing the maximum edge radius from 10 to 7 and 5, results in a significant performance drop.
+
+ | boxes | floor | wall | table | fast |
| 0.3 | 0.1 | 0.02 | 0.3 | 0.1 | 0.02 | 0.3 | 0.1 | 0.02 | 0.3 | 0.1 | 0.02 | 0.3 | 0.1 | 0.02 |
| GConv | 84±9 | 81±8 | 60±18 | 80±9 | 79±7 | 55±19 | 85±8 | 83±4 | 51±16 | 87±7 | 80±7 | 57±14 | 77±10 | 74±17 | 39±19 |
| GConvu2 | 85±5 | 70±11 | 54±10 | 81±12 | 69±8 | 52±14 | 83±4 | 71±9 | 61±17 | 85±11 | 77±19 | 59±19 | 74±19 | 69±24 | 37±11 |
| PointNet + [30] | 69±17 | 71±22 | 80±15 | 66±19 | 68±18 | 76±10 | 71±17 | 75±19 | 74±20 | 59±22 | 62±28 | 68±23 | 21±12 | 24±10 | 20±6 |
| EV - IMO [25] | | 70±5 | | | 59±9 | | | 78±5 | | | 79±6 | | | 67±3 | |
+
+Table 1. Segmentation results on EV-IMO event-based dataset. Metric is $mIoU(\%)$ on points; the 3D methods were evaluated on 3 different time-slice widths: 0.3, 0.1 and 0.02 seconds. The best results are shown in bold for every separate validation set type.
+
+are called boxes, floor, wall and table. They were evaluated separately on boxes, floor, wall, table and the fast validation set with a 0.02 sec. temporal step between slices, $\alpha = 0.2$ for temporal augmentation (disabled for validation), subsampling rates of $u = 1$ and $u = 2$ and slice widths $w = 0.02$ , 0.1 and 0.3 sec. The quantitative results are presented in Table 5.2.
+
+For the EV-IMO method, which outputs dense masks, we set the slice width to 0.025sec. We project the inferred masks on the event cloud (similar to how we handle ground truth, Sec. 5.1.1) and compute IoU scores on the labeled event clouds.
+
+# 5.4.1 Qualitative Results
+
+Fig. 5 shows qualitative results (for visualization events are projected the along time axis). The color encodes the times-stamp (blue is 0, red is slice width). The top section of the figure compares results with no subsampling for a 0.02 slice and a 0.3 slice. Note how the increase in the size of the slice improves the segmentation quality even in textured regions. The subsampling factor $u = 2$ , which removes half the points from the event cloud, also produces high quality results, but is more prone to false positives. For the bottom section of the figure, $80\%$ of the points were removed. The quality of input suffers significantly, with many spatial and temporal features lost, and the network performs poorly in high-textured regions.
+
+| GConv | PointNet++ |
| params | 117.5k | 1.4M | #pts |
| u | 1 | 2 | 2 | 5 |
| 20ms | 0.016 | 0.012 | 0.219 | 0.134 | 23073 |
| 0.1s | 0.109 | 0.048 | 4.260 | 0.663 | 170503 |
| 0.3s | 0.275 | 0.140 | 22.93 | 6.792 | 417315 |
+
+Table 2. Forward time (seconds) for different uniform downsampling and temporal slice widths.
+
+# 5.4.2 Performance Considerations
+
+We present the execution times for our GConv and for PointNet++ for different time slice widths and event cloud subsampling factors in Table 2, measured on a single NVIDIA GTX1080Ti. In all experiments, PointNet++ is notably slower than GConv. However, starting from the
+
+0.1 second slice, GConv is not real time anymore without subsampling. This problem can be addressed practically by constructing a lookup table [31] and avoid recomputing features when sequential time slices overlap.
+
+# 6. Limitations and Future Work
+
+Our approach operates on large slices in time - this allows the neural network to observe a history of scene motion, and potentially make better decisions based on the global temporal features - all without relying on LSTM-like approaches (which essentially memorize scene content). On the other hand, modern event-based cameras are capable of generating up to $10^{7}$ events per second, and with increased resolution, the amount of local edge connections between graph nodes can grow exponentially. In this work, we were able to achieve slice widths of up to 0.3 seconds (and 0.5 seconds with severe downsampling) due to the large amount of memory consumed by 3D points. A dedicated GPU-optimized module could alleviate many of the shortcomings we have witnessed. We also observe that edges are useful mostly for extracting local features, and hence a dual neural network - one to extract local features on thin temporal slices and another to extract temporal features on large slices will be among our future efforts.
+
+# 7. Acknowledgement
+
+This work was funded by a fellowship to A.M. from Propheesee SA, the National Science Foundation under grant BCS 1824198 and ONR under grant N00014-17-1-2622.
+
+# 8. Conclusion
+
+We have described spatial and temporal features of event clouds, which provide cues for motion tracking and segmentation. Our novel segmentation pipeline inherently captures these features and is able to perform well with rapid, 6 dof motion of the camera and objects on the scene. The graph-based approach allows for the first time to use wide slices as a single input, with inference speeds of up to 0.02 seconds. We believe that our contribution is a step forward towards understanding the geometric properties of event clouds and making a more complete use of the information provided by event cameras.
+
+# References
+
+[1] Edward H Adelson and James R Bergen. Spatiotemporal energy models for the perception of motion. J. Opt. Soc. Am. A, 2(2), 1985. 1
+[2] Francisco Barranco, Cornelia Fermüller, and Yiannis Aloimonos. Contour motion estimation for asynchronous event-driven cameras. Proceedings of the IEEE, 102(10):1537-1556, 2014. 2
+[3] Francisco Barranco, Cornelia Fermüller, and Yiannis Aloimonos. Bio-inspired motion estimation with event-driven sensors. In International Work-Conference on Artificial Neural Networks, pages 309-321. Springer, 2015. 2
+[4] Francisco Barranco, Ching L Teo, Cornelia Fermüller, and Yiannis Aloimonos. Contour detection and characterization for asynchronous event sensors. In Proceedings of the IEEE International Conference on Computer Vision, pages 486-494, 2015. 3
+[5] R. Benosman, C. Clercq, X. Lagorce, Sio-Hoi Ieng, and C. Bartolozzi. Event-based visual flow. Neural Networks and Learning Systems, IEEE Transactions on, 25(2):407-417, 2014. 2, 3
+[6] Robert C. Bolles, H. Harlyn Baker, and David H. Marimont. Epipolar-plane image analysis: An approach to determining structure from motion. International Journal of Computer Vision, 1(1):7-55, Mar 1987. 2
+[7] C. Brandli, R. Berner, M. Yang, S. Liu, and T. Delbruck. A 240 180 130 db 3 s latency global shutter spatiotemporal vision sensor. IEEE Journal of Solid-State Circuits, 49(10):2333-2341, Oct 2014. 1
+[8] Tobias Brosch, Stephan Tschechne, and Heiko Neumann. On event-based optical flow detection. Frontiers in neuroscience, 9:137, 2015. 2
+[9] Thusitha N Chandrapala and Bertram E Shi. Invariant feature extraction from event based stimuli. In 2016 6th IEEE International Conference on Biomedical Robotics and Biomechatronics (BioRob), pages 1-6. IEEE, 2016. 2
+[10] Xavier Clady, Charles Clercq, Sio-Hoi Ieng, Fouzhan Houseini, Marco Randazzo, Lorenzo Natale, Chiara Bartolozzi, and Ryad B. Benosman. Asynchronous visual event-based time-to-contact. In Front. Neurosci., 2014. 2, 3
+[11] Cornelia Fermüller, David Shulman, and Yiannis Aloimonos. The statistics of optical flow. Computer Vision and Image Understanding, 82(1):1-32, 2001. 1
+[12] Guillermo Gallego, Henri Rebecq, and Davide Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018. 2
+[13] A. Geiger, P. Lenz, and R. Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 3354-3361, June 2012. 1
+[14] A. Szlam J. Bruna, W. Zaremba and Y. LeCun. Spectral networks and locally connected networks on graphs. arXiv:1312.6203v3, 2017. 4, 7
+
+[15] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. The International Conference on Learning Representations 2017, 2016. 3
+[16] Jan J Koenderink. Optic flow. Vision research, 26(1):161-179, 1986. 1
+[17] Xavier Lagorce, Garrick Orchard, Francesco Galluppi, Bertram E Shi, and Ryad B Benosman. Hots: a hierarchy of event-based time-surfaces for pattern recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(7):1346-1359, 2016. 2
+[18] X. Lagorce, G. Orchard, F. Galluppi, B. E. Shi, and R. B. Benosman. Hots: A hierarchy of event-based time-surfaces for pattern recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(7):1346-1359, July 2017. 1, 2
+[19] P. Lichtsteiner, C. Posch, and T. Delbruck. A 128 x 128 at 120db 15 micros latency asynchronous temporal contrast vision sensor. IEEE Journal of Solid-State Circuits, 43(2):566-576, 2008. 1
+[20] Min Liu and Tobi Delbruck. Block-matching optical flow for dynamic vision sensors: Algorithm and fpga implementation. In IEEE International Symposium on Circuits and Systems (ISCAS), pages 1-4. IEEE, 2017. 2
+[21] Hugh Christopher Longuet-Higgins. A computer algorithm for reconstructing a scene from two projections. Nature, 293:133-135, 1981. 1
+[22] Jacques Manderscheid, Amos Sironi, Nicolas Bourdis, Davide Migliore, and Vincent Lepetit. Speed invariant time surface for learning to detect corner points with event-based cameras. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 4
+[23] Pierre Vandergheynst Michael Defferrard, Xavier Bresson. Convolutional neural networks on graphs with fast localized spectral filtering. Advances in Neural Information Processing Systems 29 (2016), 2017. 4
+[24] Anton Mitrokhin, Cornelia Fermüller, Chethan Parameshwara, and Yiannis Aloimonos. Event-based moving object detection and tracking. IEEE/RSJ Int. Conf. Intelligent Robots and Systems (IROS), 2018. 2
+[25] Anton Mitrokhin, Chengxi Ye, Cornelia Fermüller, Yiannis Aloimonos, and Tobi Delbrück. EV-IMO: motion segmentation dataset and learning pipeline for event cameras. CoRR, abs/1903.07520, 2019. 2, 3, 7, 8
+[26] Elias Mueggler, Christian Forster, Nathan Baumli, Guillermo Gallego, and Davide Scaramuzza. Lifetime estimation of events from dynamic vision sensors. In Robotics and Automation (ICRA), 2015 IEEE International Conference on, pages 4874-4881. IEEE, 2015. 2
+[27] Garrick Orchard, Ryad Benosman, Ralph Etienne-Cummings, and Nitish V Thakor. A spiking neural network architecture for visual motion estimation. In 2013 IEEE Biomedical Circuits and Systems Conference (BioCAS), pages 298-301. IEEE, 2013. 2
+[28] C. Posch, D. Matolin, and R. Wohlgenannt. A QVGA 143 db dynamic range frame-free PWM image sensor with lossless pixel-level video compression and time-domain cds. IEEE Journal of Solid-State Circuits, 46(1):259-275, 2011. 1, 3
+
+[29] Charles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 3, 7
+[30] Charles R. Qi, Li Yi, Hao Su, and Leonidas J. Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, pages 5105-5114, USA, 2017. Curran Associates Inc. 2, 4, 7, 8
+[31] Yusuke Sekikawa, Kosuke Hara, and Hideo Saito. Event-net: Asynchronous recursive event processing. CoRR, abs/1812.07045, 2018. 3, 8
+[32] B. Son, Y. Suh, S. Kim, H. Jung, J. Kim, C. Shin, K. Park, K. Lee, J. Park, J. Woo, Y. Roh, H. Lee, Y. Wang, I. Ovsiannikov, and H. Ryu. 4.1 a 640480 dynamic vision sensor with a 9m pixel and 300meps address-event representation. In 2017 IEEE International Solid-State Circuits Conference (ISSCC), pages 66-67, Feb 2017. 1
+[33] Deqing Sun, Stefan Roth, and Michael J Black. Secrets of optical flow estimation and their principles. In 2010 IEEE computer society conference on computer vision and pattern recognition, pages 2432-2439. IEEE, 2010. 1
+[34] D. Tedaldi, G. Gallego, E. Mueggler, and D. Scaramuzza. Feature detection and tracking with the dynamic and active-pixel vision sensor (davis). In 2016 Second International Conference on Event-based Control, Communication, and Signal Processing (EBCCSP), pages 1-7, June 2016. 2
+[35] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. ArXiv, abs/1801.07829, 2018. 4
+[36] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S. Yu. A comprehensive survey on graph neural networks. CoRR, abs/1901.00596, 2019. 3
+[37] Chengxi Ye, Anton Mitrokhin, Cornelia Fermüller, James A. Yorke, and Yiannis Aloimonos. Unsupervised learning of dense optical flow, depth and egomotion from sparse event data. CoRR, abs/1809.08625v2, 2018. 3
+[38] Alex Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Ev-flownet: Self-supervised optical flow estimation for event-based cameras. 06 2018. 3
+[39] A. Z. Zhu, N. Atanasov, and K. Daniilidis. Event-based feature tracking with probabilistic data association. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 4465-4470, May 2017. 2
+[40] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. CoRR, abs/1812.08156, 2018.3
\ No newline at end of file
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/images.zip b/learningvisualmotionsegmentationusingeventsurfaces/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e59436a77aba1e316dd0298e18e2365d777025d9
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae76e1a8922b8e28099efb222e49190c8ea7eb10793dbc5aade7f8aa8e0b356c
+size 578654
diff --git a/learningvisualmotionsegmentationusingeventsurfaces/layout.json b/learningvisualmotionsegmentationusingeventsurfaces/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e1d16bca58956da6270af811621f13eaef463e34
--- /dev/null
+++ b/learningvisualmotionsegmentationusingeventsurfaces/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51c4d24a0c4cb0107740dd9923e8d323834a0dda53935b776b2e4070fc7efa6c
+size 383228
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_content_list.json b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f19d686b5acb078156e93627ca972394a5476f5
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de389396d4189b73fbdb56266781a65a0408b47c0b0f25ee4e2434e9fe69df5b
+size 79401
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_model.json b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef54bd3a038c11acc3ba79cd0e1ebd8f28a44ecc
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36a29c0fa84d230ac0d206915eb071901cc44de2f6bf3717ff4c1b96214004f9
+size 94573
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_origin.pdf b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bde8fcceda7666b198a9d8b911bfc18399a57efe
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/dcaab98a-2b02-46dd-9541-656649936a3f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa7cc2dbd145ffa35ef9b3369133dbed1cbb931745803428e2cfb9b8265a14c1
+size 942868
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/full.md b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..51780d2fada1834af05de6112ecaf21fec2cf2d7
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/full.md
@@ -0,0 +1,400 @@
+# Learning Weighted Submanifolds with Variational Autoencoders and Riemannian Variational Autoencoders
+
+Nina Miolane
+
+Stanford University
+
+nmiolane@stanford.edu
+
+Susan Holmes
+
+Stanford University
+
+susan@stat.stanford.edu
+
+# Abstract
+
+Manifold-valued data naturally arises in medical imaging. In cognitive neuroscience, for instance, brain connectomes base the analysis of coactivation patterns between different brain regions on the analysis of the correlations of their functional Magnetic Resonance Imaging (fMRI) time series – an object thus constrained by construction to belong to the manifold of symmetric positive definite matrices. One of the challenges that naturally arises in these studies consists of finding a lower-dimensional subspace for representing such manifold-valued and typically high-dimensional data. Traditional techniques, like principal component analysis, are ill-adapted to tackle non-Euclidean spaces and may fail to achieve a lower-dimensional representation of the data – thus potentially pointing to the absence of lower-dimensional representation of the data. However, these techniques are restricted in that: (i) they do not leverage the assumption that the connectomes belong on a pre-specified manifold, therefore discarding information; (ii) they can only fit a linear subspace to the data. In this paper, we are interested in variants to learn potentially highly curved submanifolds of manifold-valued data. Motivated by the brain connectomes example, we investigate a latent variable generative model, which has the added benefit of providing us with uncertainty estimates – a crucial quantity in the medical applications we are considering. While latent variable models have been proposed to learn linear and nonlinear spaces for Euclidean data, or geodesic subspaces for manifold data, no intrinsic latent variable model exists to learn nongeodesic subspaces for manifold data. This paper fills this gap and formulates a Riemannian variational autoencoder with an intrinsic generative model of manifold-valued data. We evaluate its performances on synthetic and real datasets by introducing the formalism of weighted Riemannian submanifolds.
+
+# 1. Introduction
+
+Representation learning aims to transform data $x$ into a lower-dimensional variable $z$ designed to be more efficient for any downstream machine learning task, such as exploratory analysis of clustering, among others. In this paper, we focus on representation learning for manifold-valued data that naturally arise in medical imaging. Functional Magnetic Resonance Imaging (fMRI) data are often summarized into "brain connectomes", that capture the coactivation of brain regions of subjects performing a given task (memorization, image recognition, or mixed gamble task, for example). As correlation matrices, connectomes belong to the cone of symmetric positive definite (SPD) matrices. This cone can naturally be equipped with a Riemannian manifold structure, which has shown to improve performances on classification tasks [1]. Being able to learn low-dimensional representations of connectomes within the pre-specified SPD manifold is key to model the intrinsic variability across subjects, and tackle the question: do brain connectomes from different subjects form a lower-dimensional subspace within the manifold of correlation matrices? If so, each subject's connectome $x$ can be represented by a latent variable $z$ of lower dimension. Anticipating potential downstream medical tasks that predict behavioral variables (such as measures of cognitive, emotional, or sensory processes) from $z$ , we seek a measure of uncertainty associated with $z$ . In other words, we are interested in a posterior in $z$ given $x$ .
+
+While the literature for generative models capturing lower-dimensional representations of Euclidean data is rich, such methods are typically ill-suited to the analysis of manifold-valued data. Can we yet conclude that lower-dimensional representations within these manifolds are not achievable? The aforementioned techniques are indeed restricted in that: either (i) they do not leverage any geometric knowledge as to the known manifold to which the data, such as the connectomes, belong; or (ii) they can only fit a linear (or geodesic, i.e. the manifold equivalent of linear) subspace to the data. In this paper, we focus on alternatives
+
+with a latent variable generative model that address (i) and (ii).
+
+# 1.1. Related Work
+
+There is a rich body of literature on manifold learning methods. We review here a few of them, which we evaluate based on the following desiderata:
+
+- Is the method applicable to manifold-valued data?
+- For methods on Euclidean data: does the method learn a linear or a nonlinear manifold, see Figure 1 (a, b)?
+- For methods geared towards Riemannian manifolds: does the method learn a geodesic (i.e. the manifold equivalent of a linear subspace) - or a nongeodesic subspace, see Figure 1 (c, d)?
+- Does the method come with a latent variable generative model?
+
+
+(a)
+Figure 1. (a) Learning a 1D linear subspace in a 2D Euclidean space; (b) Learning a geodesic in a 2D manifold (sphere); (c) Learning a 1D nonlinear subspace in a 2D Euclidean space; (d) Learning a nongeodesic 1D subspace in a 2D manifold (sphere).
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+# 1.1.1 Learning Linear and Geodesic Subspaces
+
+Principal Component Analysis (PCA) [15] learns a linear subspace, while Probabilistic PCA (PPCA) and Factor Analysis (FA) [25] achieve the same goal within a probabilistic framework relying on a latent variable generative mode; see Figure 1 (a). These techniques are based on vector space's operations that make them unsuitable for data on manifolds. As a consequence, researchers have developed methods for manifold-valued data, which take into account the geometric structure; see Figure 1 (b).
+
+Principal Geodesic Analysis (PGA) [8, 23], tangent PGA (tPGA) [8], Geodesic Principal Component Analysis (gPCA) [11], principal flows [14], barycentric subspaces (BS) [17] learn variants of "geodesic" subspaces, i.e. generalizations in manifolds of linear spaces in Euclidean spaces. Probabilistic PGA [29] achieves the same goal, while adding a latent variable model generating data on a manifold.
+
+However, these methods are restricted in the type of submanifold that can be fitted to the data, either linear or
+
+geodesic - a generalization of linear subspaces to manifolds. This restriction can be considered both a strength and a weakness. While it protects from overfitting with a submanifold that is too flexible, it also prevents the method from capturing possibly nonlinear effects. With current dataset sizes exploding (even within biomedical imaging datasets which have been historically much smaller), it seems that the investigation of flexible submanifold learning techniques takes on crucial importance.
+
+# 1.1.2 Learning Non-Linear and Nongeodesic Subspaces
+
+While methods for learning nonlinear manifolds from Euclidean data are numerous (see Figure 1 (c)), those providing a latent variable generative models are scarce. Kernel PCA [21], multi-dimensional scaling and its variants [6, 3], Isomap [24], Local Linear Embedding (LLE) [20], Laplacian eigenmaps [2], Hessian LLE [7], Maximum variance unfolding [28], and others, learn lower-dimensional representations of data but do not provide a latent variable generative model, nor a parameterization of the recovered subspace.
+
+In contrast, principal curves and surfaces (PS) [9] and autoencoders fit a nonlinear manifold to the data, with an explicit parameterization of this manifold. However, this framework is not directly transferable to non-Euclidean data and has been more recently generalized to principal curves on Riemannian manifolds [10]. To our knowledge, this is the only method for nongeodesic submanifold learning on Riemannian manifolds (see Figure 1 (d)). A probabilistic approach to principal curves was developed in [4] for the Euclidean case, but not the manifold case. Similarly, variational autoencoders (VAEs) [12] were developed to provide a latent variable generative model for autoencoders. However, they do not apply to manifold-valued data.
+
+In order to create a latent variable generative model for manifold-valued data, we can either generalize principal curves on manifolds by adding a generative model or generalize VAEs for manifold-valued data. Principal curves require a parameterization of the curve that involves a discrete set of points. As the number of points needed grows exponentially with the dimension of the estimated surface, scaling this method to high dimensional principal surfaces becomes more difficult. As a consequence, we choose to generalize VAEs to manifold-valued data. This paper introduces Riemannian VAE, an intrinsic method that provides a flexible generative model of the data on a pre-specified manifold. We emphasize that our method does not amount to embedding the manifold in a larger Euclidean space, training the VAE, and projecting back onto the original manifold - a strategy that does not come with an intrinsic generative model of the data. We implement and compare both meth-
+
+ods in Section 6.
+
+# 1.2. Contribution and Outline
+
+This paper introduces the intrinsic Riemannian VAE, a submanifold learning technique for manifold-valued data. After briefly reviewing the (Euclidean) VAE, we present our Riemannian generalization. We show how Riemannian VAEs generalize both VAE and Probabilistic Principal Geodesic Analysis. We provide theoretical results describing the family of submanifolds that can be learned by the Riemannian method. To do so, we introduce the formalism of weighted Riemannian submanifolds and associated Wasserstein distances. This formalism also allows giving a sense to the definition of consistency in the context of submanifold learning. We use this to study the properties of VAE and Riemannian VAE learning techniques, on theoretical examples and synthetic datasets. Lastly, we deploy our method on real data by applying it to the analysis of connectome data.
+
+# 2. Riemannian Variational Autoencoders (rVAE)
+
+# 2.1. Review of (Euclidean) VAE
+
+We begin by setting the basis for variational autoencoders (VAEs) [12, 19]. Consider a dataset $x_{1},\ldots ,x_{n}\in \mathbb{R}^{D}$ . A VAE models each data point $x_{i}$ as the realization of a random variable $X_{i}$ generated from a nonlinear probabilistic model with lower-dimensional latent variable $Z_{i}$ taking value in $\mathbb{R}^L$ , where $L < D$ , such as:
+
+$$
+X _ {i} = f _ {\theta} \left(Z _ {i}\right) + \epsilon_ {i}, \tag {1}
+$$
+
+where $Z_{i} \sim \mathcal{N}(0,\mathbb{I}_{L})$ i.i.d. and $\epsilon_{i}$ represents i.i.d. measurement noise distributed as $\epsilon_{i} \sim \mathcal{N}(0,\sigma^{2}\mathbb{I}_{D})$ . The function $f_{\theta}$ belongs to a family $\mathcal{F}$ of nonlinear generative models parameterized by $\theta$ , and is typically represented by a neural network, called the decoder, such that: $f_{\theta}(\bullet) = \Pi_{k=1}^{K} g(w_{k} \bullet + b_{k})$ where $\Pi$ represents the composition of functions, $K$ the number of layers, $g$ an activation function, and the $w_{k}, b_{k}$ are the weights and biases of the layers. We write: $\theta = \{w_{k}, b_{k}\}_{k=1}^{K}$ . This model is illustrated on Figure 2.
+
+The VAE pursues a double objective: (i) it learns the parameters $\theta$ of the generative model of the data; and (ii) it learns an approximation $q_{\phi}(z|x)$ , within a variational family $\mathcal{Q}$ parameterized by $\phi$ , of the posterior distribution of the latent variables. The class of the generative model $\mathcal{F}$ and the variational family $\mathcal{Q}$ are typically fixed, as part of the design of the VAE architecture. The VAE achieves its objective by maximizing the evidence lower bound (ELBO) defined as:
+
+$$
+\mathcal {L} _ {1} (x, \theta , \phi) = \mathbb {E} _ {q _ {\phi} (z | x)} \left[ \log \frac {p _ {\theta} (x , z)}{q _ {\phi} (z | x)} \right], \tag {2}
+$$
+
+which can conveniently be rewritten as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {1} (x, \theta , \phi) = l (\theta , x) - \operatorname {K L} \left(q _ {\phi} (z | x) \| p _ {\theta} (z | x)\right) \\ = \mathbb {E} _ {q _ {\phi} (z)} [ \log p _ {\theta} (x | z) ] - \operatorname {K L} \left(q _ {\phi} (z | x) \| p (z)\right) \\ = \mathcal {L} _ {\text {r e c}} (x, \theta , \phi) + \mathcal {L} _ {\text {r e g}} (x, \phi), \\ \end{array}
+$$
+
+where the terms $\mathcal{L}_{\mathrm{rec}}(x,\theta ,\phi)$ and $\mathcal{L}_{\mathrm{reg}}(x,\phi)$ are respectively interpreted as a reconstruction objective and as a regularizer to the prior on the latent variables.
+
+From a geometric perspective, the VAE learns a manifold $\hat{N} = N_{\hat{\theta}} = f_{\hat{\theta}}(\mathbb{R}^L)$ designed to estimate the true submanifold of the data $N_{\theta} = f_{\theta}(\mathbb{R}^{L})$ . The approximate distribution $q_{\phi}(z|x)$ can be seen as a (non-orthogonal) projection of $x$ on the subspace $N_{\hat{\theta}}$ with associated uncertainty.
+
+
+Figure 2. Generative model for the variational autoencoder with latent space $\mathbb{R}^L$ and data space $\mathbb{R}^D$ . The latent variable $z_{i}$ is sampled from a standard multivariate normal distribution on $\mathbb{R}^L$ and embedded into $\mathbb{R}^D$ through the embedding $f_{\theta}$ . The data $x_{i}$ is generated by addition of a multivariate isotropic Gaussian noise in $\mathbb{R}^D$ .
+
+# 2.2. Riemannian VAE (rVAE)
+
+We generalize the generative model of VAE for a dataset $x_{1},\ldots ,x_{n}$ on a Riemannian manifold $M$ . We need to adapt two aspects of the (Euclidean) VAE: the embedding function $f_{\theta}$ parameterizing the submanifold, and the noise model on the manifold $M$ . We refer to supplementary materials for details on Riemannian geometry, specifically the notions of Exponential map, Riemannian distance and Fréchet mean.
+
+# 2.2.1 Embedding
+
+Let $\mu \in M$ be a base point on the manifold. We consider the family of functions $f_{\theta}:\mathbb{R}^{L}\mapsto \mathbb{R}^{D}\simeq T_{\mu}M$ that are parameterized by a fully connected neural network of parameter $\theta$ , as in the VAE model. We define a new family of functions with values on $M$ , by considering: $f_{\mu ,\theta}^{M}(\bullet) = \mathrm{Exp}^{M}(\mu ,f_{\theta}(\bullet))$ as an embedding from $\mathbb{R}^L$ to $M$ , where $\mathrm{Exp}^M (\mu ,\bullet)$ is the Riemannian exponential map of $M$ at $\mu$ .
+
+# 2.2.2 Noise model
+
+We generalize the Gaussian distribution from the VAE generative model, as we require a notion of distribution on manifolds. There exist several generalizations of the Gaussian distribution on Riemannian manifolds [16]. To have a tractable expression to incorporate into our loss functions, we consider the minimization of entropy characterization of [16]:
+
+$$
+p (x | \mu , \sigma) = \frac {1}{C (\mu , \sigma)} \exp \left(- \frac {d (\mu , x) ^ {2}}{2 \sigma^ {2}}\right), \qquad (3)
+$$
+
+where $C(\mu, \sigma)$ is a normalization constant:
+
+$$
+C (\mu , \sigma) = \int_ {M} \exp \left(- \frac {d (\mu , x) ^ {2}}{2 \sigma^ {2}}\right) d M (x), \tag {4}
+$$
+
+and $dM(x)$ refers to the volume element of the manifold $M$ at $x$ . We call this distribution an (isotropic) Riemannian Gaussian distribution, and use the notation $x \sim \mathcal{N}^M(\mu, \sigma^2 \mathbb{I}_D)$ . We note that this noise model could be replaced with a different distribution on the manifold $M$ , for example a generalization of a non-isotropic Gaussian noise on $M$ .
+
+# 2.2.3 Generative model
+
+We introduce the generative model of Riemannian VAE (rVAE) for a dataset $x_{1},\ldots ,x_{n}$ on a Riemannian manifold $M$ ..
+
+$$
+X _ {i} \mid Z _ {i} = \mathcal {N} ^ {M} \left(\operatorname {E x p} ^ {M} \left(\mu , f _ {\theta} \left(Z _ {i}\right)\right), \sigma^ {2}\right) \text {a n d} Z _ {i} \sim \mathcal {N} \left(0, \mathbb {I} _ {L}\right), \tag {5}
+$$
+
+where $f_{\theta}$ is represented by a neural network and allows to represent possibly highly "nongeodesic" submanifolds. This model is illustrated on Figure 3.
+
+From a geometric perspective, fitting this model learns a submanifold $N_{\hat{\theta}} = \mathrm{Exp}^{M}(\mu ,f_{\hat{\theta}}(\mathbb{R}^{L}))$ designed to estimate the true $N_{\theta} = \mathrm{Exp}^{M}(\mu ,f_{\theta}(\mathbb{R}^{L}))$ in the manifold $M$ . The approximate distribution $q_{\phi}(z|x)$ can be seen as a (non-orthogonal) projection of $x$ on the submanifold $N_{\hat{\theta}}$ with associated uncertainty.
+
+# 2.2.4 Link to VAE and PPGA
+
+The rVAE model is a natural extension of both the VAE and the Probabilistic PGA (PPGA) models. We recall that, for $M = \mathbb{R}^D$ , the Exponential map is an addition operation, $\mathrm{Exp}^{\mathbb{R}^D}(\mu ,y) = \mu +y$ . Furthermore, the Riemannian Gaussian distribution reduces to a multivariate Gaussian $\mathcal{N}^{\mathbb{R}^D}(\mu ,\sigma^2\mathbb{I}_D) = \mathcal{N}(\mu ,\sigma^2\mathbb{I}_D)$ . Thus, the Riemannian VAE model coincides with the VAE model when $M = \mathbb{R}^{D}$ . Furthermore, the Riemannian VAE model coincides with
+
+
+Figure 3. Generative model for the Riemannian variational autoencoder with latent space $\mathbb{R}^L$ and data space $M$ . The latent variable $z_{i}$ is sampled from a standard multivariate normal distribution on $\mathbb{R}^L$ and embedded into $M$ through the embedding $f_{\mu,\theta}$ . The data $x_{i}$ is generated by addition of the Riemannian multivariate isotropic Gaussian noise in $M$ .
+
+the model of PPGA:
+
+$$
+X _ {i} \mid Z _ {i} \sim \mathcal {N} ^ {M} \left(\operatorname {E x p} ^ {M} (\mu , W Z _ {i}), \sigma^ {2}\right) \text {a n d} Z _ {i} \sim \mathcal {N} (0, \mathbb {I} _ {L}), \tag {6}
+$$
+
+when the decoder is a linear neural network: $f_{\theta}(z) = Wz$ for $z \in \mathbb{R}^L$ .
+
+Inference in PPGA was originally introduced with a Monte-Carlo Expectation Maximization (MCEM) scheme in [29]. In contrast, our approach fits the PPGA model with variational inference, as we will see in Section 4. Variational inference methods are known to be less accurate but faster than Monte-Carlo approaches. Consequently, our training procedure allows to speed-up learning within the PPGA model.
+
+# 3. Expressiveness of rVAE
+
+The Riemannian VAE model parameterizes an embedded submanifold $N$ defined by a smooth embedding $f_{\theta}^{M}$ as:
+
+$$
+N = f _ {\theta} ^ {M} \left(\mathbb {R} ^ {L}\right) = \operatorname {E x p} ^ {M} \left(\mu , f _ {\theta} \left(\mathbb {R} ^ {L}\right)\right), \tag {7}
+$$
+
+where $f_{\theta}$ is the function represented by the neural net, with a smooth activation function, and the parameter $\mu$ is absorbed in the notation $\theta$ in $f_{\theta}^{M}$ . The flexibility in the nonlinear function $f_{\theta}$ allows rVAE to parameterize embedded manifolds that are not necessarily geodesic at a point. A question that naturally arises is the following: can rVAE represent any smooth embedded submanifold $N$ of $M$ ? We give results, relying on the universality approximation theorems of neural networks, that describe the embedded submanifolds that can be represented with rVAE.
+
+# 3.1. Weighted Riemannian submanifolds
+
+We introduce the notion of weighted submanifolds and suggest the associated formalism of Wasserstein distances to analyze dissimilarities between general submanifolds of $M$ and submanifolds of $M$ parameterized by rVAE.
+
+Definition 1 (Weighted (sub)manifold) Given a complete $N$ -dimensional Riemannian manifold $(N,g^{N})$ and a smooth probability distribution $\omega : N \to \mathbb{R}$ , the weighted manifold $(N,\omega)$ associated to $N$ and $\omega$ is defined as the triplet:
+
+$$
+(M, g ^ {N}, d \nu = \omega . d N), \tag {8}
+$$
+
+where $dN$ denotes the Riemannian volume element of $N$ .
+
+The Riemannian VAE framework parameterizes weighted submanifold defined by:
+
+$$
+N _ {\theta}: \left(f _ {\theta} ^ {M} \left(\mathbb {R} ^ {L}\right), g _ {M}, f _ {\theta} ^ {M} * \mathcal {N} (0, \mathbb {I} _ {L})\right), \tag {9}
+$$
+
+so that the submanifold $N_{\theta}$ is modeled as a singular (in the sense of the Riemannian measure of $M$ ) probability density distribution with itself as support. The distribution is associated with the embedding of the standard multivariate Gaussian random variable $Z \sim \mathcal{N}(0, \mathbb{I}_L)$ in $M$ through $f_{\theta}^{M}$ , which we denote: $f_{\theta}^{M} * \mathcal{N}(0, \mathbb{I}_{L})$ .
+
+# 3.2. Wasserstein distance on weighted submanifolds
+
+We can measure distances between weighted submanifolds through the Wasserstein distances associated with their distributions.
+
+Definition 2 (Wasserstein distance) The 2-Wasserstein distance between probability measures $\nu_{1}$ and $\nu_{2}$ defined on $M$ , is defined as:
+
+$$
+d _ {2} \left(\nu_ {1}, \nu_ {2}\right) = \left(\inf _ {\gamma \in \Gamma \left(\nu_ {1}, \nu_ {2}\right)} \int_ {M \times M} d _ {M} \left(x _ {1}, x _ {2}\right) ^ {2} d \gamma \left(x _ {1}, x _ {2}\right)\right) ^ {1 / 2} \tag {10}
+$$
+
+where $\Gamma (\nu_{1},\nu_{2})$ denotes the collection of all measures on $M\times M$ with marginals $\nu_{1}$ and $\nu_{2}$ on the first and second factors respectively.
+
+Wasserstein distances have been introduced previously in the context of variational autoencoders with a different purpose: [26] use the Wasserstein distance with any cost function between the observed data distribution and the learned distribution, penalized with a regularization term, to train the neural network. In contrast, we use the Wasserstein distance with the square of the Riemannian distance as the cost function to evaluate distances between submanifolds. Therefore, we evaluate a distance between the data distribution and the learned distribution before the addition of the Gaussian noise. We do not use this distance to train any model; we only use it as a performance measure.
+
+# 3.3. Weighted submanifold approximation result
+
+The following result describes the expressiveness of rVAEs. For $T \in \mathbb{R}_+^*$ , we denote $\mu_T$ the standard multivariate normal in $\mathbb{R}^L$ truncated at a distance $T$ from the origin.
+
+Proposition 1 Let $(N_T, \nu_T)$ be a weighted Riemannian submanifold of $M$ , embedded in a submanifold $L$ of $M$ homeomorphic to $\mathbb{R}^L$ and for which there exists an embedding $f^M$ that verifies: $\nu_T = f^M * \mu_T$ . Let us assume the existence of $\mu \in M$ such that $N \subset V(\mu)$ , where $V(\mu)$ is the maximal domain of global bijection of the Riemannian exponential of $M$ at $\mu$ . Then, for any $0 < \epsilon < 1$ , there exists a Riemannian VAE with decoder represented by a neural network $f_\theta$ , parameterized by $\theta$ , such that:
+
+$$
+d _ {2} \left(N _ {T}, N _ {\theta , T}\right) < C _ {T, D} ^ {2} D \epsilon^ {2}, \tag {11}
+$$
+
+where $d_2$ is the 2-Wasserstein distance and $N_{\theta ,T} = (f_{\theta}(\mathbb{R}^{L},f_{\theta}* \mu_{T}))$ , and $C_{T,D}$ a constant that depends on $T$ and $D$ .
+
+Proof 1 The proof is provided in the supplementary materials.
+
+As Hadamard manifolds are homeomorphic to $\mathbb{R}^L$ through their Riemannian Exponential map, the assumption $N\subset V(\mu)$ is always verified in their case. This suggests that it can be better to equip a given manifold with a Riemannian metric that has non-positive curvature: in this case, there exists an rVAE architecture that can represent any submanifold $N_{T}$ , under the remaining assumptions of Proposition 1, with arbitrary precision in terms of the 2-Wasserstein distance. When learning submanifolds of the space of SPD matrices, as in Section 7, we will therefore choose either a flat Riemannian metric (Euclidean, Inverse-Euclidean, Log-Euclidean, Power-Euclidean or Square-Root metric) or a Riemannian metric with negative curvature (Affine-Invariant, Polar affine or Fisher metric).
+
+# 4. Learning and inference for rVAEs
+
+We show how to train rVAE by performing learning and inference in model (5).
+
+# 4.1. Riemannian ELBO
+
+As with VAE, we use stochastic gradient descent to maximize the ELBO:
+
+$$
+\begin{array}{l} \mathcal {L} _ {1} (x, \theta , \phi) = \mathcal {L} _ {\mathrm {r e c}} (x, \theta , \phi) + \mathcal {L} _ {\mathrm {r e g}} (x, \phi) \\ = \mathbb {E} _ {q _ {\phi} (z)} \left[ \log p _ {\theta} (x | z) \right] - \operatorname {K L} \left(q _ {\phi} (z | x) \| p (z)\right), \\ \end{array}
+$$
+
+where the reconstruction objective $\mathcal{L}_{\mathrm{rec}}(x,\theta ,\phi)$ and the regularizer $\mathcal{L}_{\mathrm{reg}}(x,\phi)$ are expressed using probability densities from model (5), and a variational family chosen to be the multivariate Gaussian:
+
+$$
+\begin{array}{l} q _ {\phi} (z | x) = \mathcal {N} \left(h _ {\phi} (x), \sigma_ {\phi} ^ {2} (x)\right), \\ p (z) = \mathcal {N} (0, \mathbb {I} _ {L}), \\ p (x | z) = \mathcal {N} ^ {M} (\operatorname {E x p} ^ {M} (\mu , f _ {\theta} (Z _ {i})), \sigma^ {2} \mathbb {I} _ {D}). \\ \end{array}
+$$
+
+The reconstruction term writes:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {r e c}} (x, \theta , \phi) = \int_ {z} (- \log C (\sigma^ {2}, r (\mu , z, \theta)) \\ \left. - \frac {d _ {M} (x , \mathrm {E x p} (\mu , f _ {\theta} (z))) ^ {2}}{2 \sigma^ {2}}\right) q _ {\phi} (z | x) d z, \\ \end{array}
+$$
+
+while the regularizer is:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {r e g}} (x, \phi) = \int_ {z} \log \frac {q _ {\phi} (z | x)}{p (z)} q _ {\phi} (z | x) d z \\ = \frac {1}{2} \sum_ {l = 1} ^ {L} \left(1 + \log (\sigma_ {l} ^ {(i)}) ^ {2} - (\mu_ {l} ^ {(i)}) ^ {2} - (\sigma_ {l} ^ {(i)}) ^ {2}\right), \\ \end{array}
+$$
+
+where $C$ is the normalization constant, that depends on $r(\mu, z, \theta)$ , to the injectivity radius of the Exponential map at the point $\mathrm{Exp}(\mu, f_{\theta}(z))$ [18]. We note that, although in the initial formulation of the VAE, the $\sigma$ depends on $z$ and $\theta$ and should be estimated during training, the implementations usually fix it and estimate it separately. We perform the same strategy here. In practice, we use the package geomstats [13] to plug-in the manifold of our choice within the rVAE algorithm.
+
+# 4.2. Approximation
+
+To compute the ELBO, we need to perform an approximation as providing the exact value of the normalizing constant $C(\sigma^2, r(\mu, z, \theta))$ is not trivial. The constant $C$ depends on the $\sigma^2$ and the geometric properties of the manifold $M$ , specifically the injectivity radius $r$ at $\mu$ .
+
+For Hadamard manifolds, the injectivity radius is constant and equal to $\infty$ , thus $C = C(\sigma)$ depends only on $\sigma$ . As we do not train on $\sigma$ , we can discard the constant $C$ in the loss function. For non-Hadamard manifolds, we consider the following approximation of the $C$ , that is independent of the injectivity radius:
+
+$$
+C = \frac {1 + O \left(\sigma^ {3}\right) + O (\sigma / r)}{\sqrt {(2 \pi) ^ {D} \sigma^ {2 D}}}. \tag {12}
+$$
+
+This approximation is valid in regimes with $\sigma^2$ low in comparison to the injectivity radius, in other words, when the noise's standard deviation is small in comparison to the distance to the cut locus from each of the points on the submanifold. After this approximation, we can discard the constant $C$ from the ELBO as before.
+
+# 4.3. An important remark
+
+We highlight that our learning procedure does not boil down to projecting the manifold-valued data onto some tangent space of $M$ and subsequently applying a Euclidean VAE. Doing so implicitly models the noise on the tangent space as a Euclidean Gaussian, as shown in the supplementary materials. Therefore, the noise would be modulated by
+
+the curvature of the manifold. This is an undesirable property, because it entangles the probability framework with the geometric prior, i.e. the random effects with the underlying mathematical model.
+
+# 5. Goodness of fit for submanifold learning
+
+We consider the goodness of fit of rVAEs (and VAEs) using the formalism of weighted submanifolds that we introduced in Section 3. In other words, assuming that data truly belong to a submanifold $N_{\theta} = f_{\mu ,\theta}(\mathbb{R}^{L})$ and are generated with the rVAE model, we ask the question: how well does rVAE estimate the true submanifold, in the sense of the 2-Wasserstein distance? For simplicity, we consider that rVAE is trained with a latent space $\mathbb{R}^L$ of the true latent dimension $L$ . Inspired by the literature of curve fitting [5], we define the following notion of consistency for weighted submanifolds.
+
+Definition 3 (Statistical consistency) We call the estimator $N_{\hat{\theta}}$ of $N_{\theta}$ statistically consistent if:
+
+$$
+\lim _ {n \rightarrow + \infty} d _ {W _ {2}} \left(N _ {\hat {\theta}}, N _ {\theta}\right) = 0. \tag {13}
+$$
+
+Denoting $N_{\hat{\theta}}$ the submanifold learned by rVAE, we want to evaluate the function: $d(n,\sigma) = d_{W_2}(N_{\hat{\theta}},N_\theta)$ , for different values of $n$ and $\sigma$ , where $\hat{\theta}$ depends on $n$ and $\sigma$ .
+
+# 5.1. Statistical inconsistency on an example
+
+We consider data generated with the model of probabilistic PCA (PPCA) with $\mu = 0$ [25], i.e. a special case of a rVAE model:
+
+$$
+X _ {i} = w Z _ {i} + \epsilon_ {i}, \tag {14}
+$$
+
+where: $w \in \mathbb{R}^{D \times L}$ , $Z \sim \mathcal{N}(0, \mathbb{I}_L)$ i.i.d. and $\epsilon \sim \mathcal{N}(0, \mathbb{I}_D)$ i.i.d.. We train a rVAE, which is a VAE in this case, on data generated by this model. We chose a variational family of Gaussian distributions with variance equal to 1. Obviously, this is not the learning procedure of choice in this situation. We use it to illustrate the behavior of rVAEs and VAEs.
+
+The case $D = 1$ and $L = 1$ allows to perform all computations in closed forms (see supplementary materials). We compute the distance between the true and learned submanifold in terms of the 2-Wasserstein distance:
+
+$$
+d _ {2} (\nu_ {\theta}, \nu_ {\hat {\theta}}) = w - \sqrt {\frac {\hat {\sigma} ^ {2}}{2} - 1} \rightarrow w - \sqrt {\frac {w ^ {2} - 1}{2}} \neq 0,
+$$
+
+where $\hat{\sigma}^2$ is the sample variance of the $x_{i}$ 's. We observe that the 2-Wasserstein distance does not converge to 0 as $n\to +\infty$ if $w\neq 1$ or $-1$ . This is an example of statistical inconsistency, in the sense that we defined in this section.
+
+# 5.2. Experimental study of inconsistency
+
+We further investigate the inconsistency with synthetic experiments and consider the following three Riemannian manifolds: the Euclidean space $\mathbb{R}^2$ , the sphere $S^2$ and the hyperbolic plane $H_2$ . The definitions of these manifolds are recalled in the supplementary materials. We consider three Riemannian VAE generative models respectively on $\mathbb{R}^2$ , $S^2$ and $H_2$ , with functions $f_{\theta}$ that are implemented by a three layers fully connected neural network with soft-plus activation. Figure 4 shows synthetic samples of size $n = 100$ generated from each of these models. The true weighted 1-dimensional submanifold corresponding to each model is shown in light green.
+
+
+Figure 4. Synthetic data on the manifolds $\mathbb{R}^2$ (left), $S^2$ (center) and $H_{2}$ in its Poincaré disk representation (right). The light green represents the true weighted submanifold, the dark green points represent data points generated with rVAE.
+
+
+
+
+
+For each manifold, we generate a series of datasets with sample sizes $n \in \{10, 100\}$ and noise standard deviation such that $\log \sigma^2 \in \{-6, -5, -4, -3, -2\}$ . For each manifold and each dataset, we train a rVAE with the same architecture than the decoder that has generated the data, and standard deviation fixed to a constant value.
+
+Figure 5 shows the 2-Wasserstein distance between the true and the learned weighted submanifold in each case, as a function of $\sigma$ , where different curves represent the two different values of $n$ . These plots confirm the statistical inconsistency observed in the theoretical example. For $\sigma \neq 0$ , the VAE and the rVAE do not converge to the submanifold that has generated the data as the sample size increases. This observation should be taken into consideration when these methods are used for manifold learning, i.e. in a situation where the manifold itself is essential.
+
+Additionally, we observe that this statistical inconsistency translates into an asymptotic bias that leads rVAEs and VAEs to estimate flat submanifolds, see Figure 6. We provide an interpretation to a statement in [22], where the authors compute the curvature of the submanifold learned with a VAE on MNIST data and observe a "surprisingly little" curvature. Our experiments indicate that the true submanifold possibly has some curvature, but that its estimation does not because of noise regime around the submanifold is "too high". Interesting, this remark challenges the very assumption of the existence of a submanifold: if the noise around the manifold is large, does the manifold as-
+
+
+Figure 5. Goodness of fit for submanifold learning using the 2-Wasserstein distance. First column: $\mathbb{R}^2$ ; Second column: $S^2$ ; Third column: $H_2$ .
+
+
+
+
+
+summption still hold?
+
+
+Figure 6. Data points (dark green) generated for $n = 10k$ and $\log \sigma^2 = -2$ from the true submanifolds shown in Figure 4 (light green). Learned submanifold (black). First column: $\mathbb{R}^2$ ; Second column: $S^2$ ; Third column: $H_{2}$ in its Poincaré disk representation.
+
+
+
+
+
+# 6. Comparison of rVAE with submanifold learning methods
+
+We perform experiments on simulated datasets to compare the following submanifold learning methods: PGA, VAE, rVAE, and VAE projected back on the pre-specified manifold. We generate datasets on the sphere using model (5) where the function $f_{\theta}$ is a fully connected neural network with two layers, and softplus nonlinearity. The latent space has dimension 1, and the inner layers have dimension 2. We consider different noise levels $\log \sigma^2 = \{-10, -2, -1, 0\}$ and sample sizes $n \in \{10k, 100k\}$ .
+
+We fit PGA using the tangent PCA approximation. The architecture of each variational autoencoder - VAE, rVAE and VAE projected - has the capability of recovering the true underlying submanifold correctly. Details on the architectures are provided in the supplementary materials. Figure 7 shows the goodness of fit of each submanifold learning procedure, in terms of the extrinsic 2-Wasserstein distance in the ambient Euclidean space $\mathbb{R}^3$ . The PGA is systematically off, as shown in the Figures from the supplementary materials, therefore we did not include it in this plot.
+
+We observe that rVAE outperforms the other submanifold learning methods. Its flexibility enables to outperforms PGA, and its geometric prior allows to outperforms VAE. It also outperforms the projected VAE, although the difference in performances is less significant. Projected VAEs
+
+
+Figure 7. Quantitative comparison of the submanifold learning methods using the 2-Wasserstein distance in the embedding space $\mathbb{R}^3$ . From left to right: ; quantitative comparison for $n = 10k$ and different values of $\sigma$ ; quantitative comparison for $n = 100k$ and different values of $\sigma$ .
+
+might be interesting for applications that do not require an intrinsic probabilistic model on the Riemannian manifold.
+
+# 7. Experiments on brain connectomes
+
+In the last section, we turn to the question that has originated this study: do brain connectomes belong to a submanifold of the $\mathrm{SPD}(N)$ manifold? We compare the methods of PCA, PGA, VAE and rVAE on resting-state functional brain connectome data from the "1200 Subjects release" of the Human Connectome Project (HCP) [27]. We use $n = 812$ subjects each represented by a $15 \times 15$ connectome. Details on the dataset are provided in the supplementary materials.
+
+The VAE represents the brain connectomes as elements $x$ of the vector space of symmetric matrices and is trained with the Frobenius metric. In contrast, the Riemannian VAE represents the brain connectomes as elements $x$ of the manifold $\mathrm{SPD}(N)$ , which we equip with the Riemannian Log-Euclidean metric. We chose equivalent neural network architectures for both models. Details on the architectures and the training are provided in the supplementary materials. We perform a grid search for the dimension of the latent space over $L \in \{10, 20, 40, 60, 80, 100\}$ . The latent dimension $L$ controls the dimension of the learned submanifold, as well as the model's flexibility.
+
+Results from PCA and PGA do not reveal any low-dimensional linear or geodesic subspace, as we do not observe an "elbow" in Figure 8. Training a VAE enables us to ask the question: does a low-dimensional nonlinear subspace exist? The results are presented in Figure 9 (left): the VAE detects a 5D subspace. However, we observe that the subspace represents only around $30\%$ of the variability.
+
+Training rVAE allows to look for nongeodesic subspaces, which is a larger class than linear, geodesic and nonlinear subspaces. Therefore, rVAE uniquely allows to tackle the scientific question: what is the dimension of the subspace/submanifold of brain connectomes? Can we find
+
+
+Figure 8. Cumulative sum of variance captured by the principal components, for Principal Component Analysis (left) and Principal Geodesic Analysis (right).
+
+
+
+a nongeodesic subspace of dimension higher than 5? Figure 9 (right) answers the question: rVAE only detects a 5D nongeodesic subspace, again representing around $30\%$ of the variability. This may mean that there is simply no submanifold of dimension higher than 5 in this dataset, as we have ruled out 4 classes of submanifolds through PCA, PGA, VAE and rVAE. We hope that this result will inspire researchers to run the 4 methods on another connectome dataset to see if this finding holds.
+
+
+Figure 9. Cumulative sum of variance captured by the principal components within the latent space, for the VAE (left); Right: Riemannian VAE (right).
+
+
+
+# 8. Conclusion
+
+We introduced the Riemannian variational autoencoder (rVAEs), which is an intrinsic generalization of VAE for data on Riemannian manifolds and an extension of probabilistic principal geodesic analysis (PPGA) to nongeodesic submanifolds. The rVAE variational inference method also allows performing approximate, but potentially faster, inference in PPGA. We provided theoretical and experimental results on rVAE using the formalism of weighted submanifold learning.
+
+# References
+
+[1] Alexandre Barachant, Stephane Bonnet, Marco Congedo, and Christian Jutten. Classification of covariance matrices using a Riemannian-based kernel for BCI applications. Neurocomputing, 112:172-178, 2013. 1
+[2] Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation. Neural Computation, 15(6):1373-1396, 2003. 2
+[3] Alexander M. Bronstein, Michael M. Bronstein, and Ron Kimmel. Generalized multidimensional scaling: A framework for isometry-invariant partial matching. Proceedings of the National Academy of Sciences of the United States of America, 103(5):1168-1172, 2006. 2
+[4] Kui Yu Chang and Joydeep Ghosh. A unified model for probabilistic principal surfaces. IEEE Transactions on Pattern Analysis and Machine Intelligence, 23(1):22-41, 2001. 2
+[5] Nikolai Chernov. Circular and linear regression : fitting circles and lines by least squares. Monographs on statistics and applied probability. CRC Press/Taylor & Francis, Boca Raton, 2011. 6
+[6] Trevor Cox and Michael Cox. Multidimensional Scaling. Springer h edition, 2000. 2
+[7] David Donoho and Carrie Grimes. Hessian eigenmaps: New locally linear embedding techniques for high-dimensional data. TR2003-08, Dept. of Statistics., (650):1-15, 2003. 2
+[8] Thomas Fletcher, Conglin Lu, Stephen M Pizer, and Sarang Joshi. Principal geodesic analysis for the study of nonlinear statistics of shape. IEEE transactions on medical imaging, 23(8):995-1005, 2004. 2
+[9]Trevor Hastie and Werner Stuetzle. Principal Curves.Journal of the American Statistical Association,84(406):502- 516,1989.2
+[10] Søren Hauberg. Principal Curves on Riemannian Manifolds. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(9):1915-1921, 2016. 2
+[11] Stephan Huckemann, Thomas Hotz, and Axel Munk. Intrinsic shape analysis: Geodesic PCA for riemannian manifolds modulo isometric lie group actions. Statistica Sinica, 20(1):1-58, 2010. 2
+[12] Diederik P. Kingma and Max Welling. Auto-Encoding Variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), 2014. 2, 3
+[13] N. Miolane, A. Le Brigant, B. Hou, C. Donnat, M. Jorda, J. Mathe, X. Pennec, and S. Holmes. Geomstats: a python module for computations and statistics on manifolds. Submitted to JMLR, 2019. 6
+[14] Victor M. Panaretos, Tung Pham, and Zhigang Yao. Principal flows. Journal of the American Statistical Association, 109(505):424-436, 2014. 2
+[15] Karl Pearson. LIII. On lines and planes of closest fit to systems of points in space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 2(11):559-572, 1901. 2
+[16] Xavier Pennec. Intrinsic Statistics on Riemannian Manifolds: Basic Tools for Geometric Measurements. Journal of Mathematical Imaging and Vision, 25(1):127-154, 2006.
+
+[17] Xavier Pennec. Barycentric subspace analysis on manifolds. Annals of Statistics, 46(6A):2711-2746, 2018. 2
+[18] Mikhail Postnikov. Riemannian Geometry. Encyclopaedia of Mathem. Sciences. Springer, 2001. 6
+[19] Danilo J. Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. In Proceedings of the 31st International Conference on Machine Learning, 2014. 3
+[20] Sam T. Roweis and Lawrence K. Saul. Nonlinear Dimensionality Reduction by Locally Linear Embedding. Science, 290(22):2323-2326, 2000. 2
+[21] Bernhard Schoelkopf, Alexander Smola, and Klaus-Robert Mueller. Nonlinear Component Analysis as a Kernel Eigenvalue Problem. 1998. 2
+[22] Hang Shao, Abhishek Kumar, and P. Thomas Fletcher. The riemannian geometry of deep generative models. IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, 2018-June:428-436, 2018. 7
+[23] Stefan Sommer, Francois Lauze, and Mads Nielsen. Optimization over geodesics for exact principal geodesic analysis. Advances in Computational Mathematics, 40(2):283-313, 2014. 2
+[24] Joshua B. Tenenbaum, Vin de Silva, and John C. Langford. A Global Geometric Framework for Nonlinear Dimensionality Reduction. Science, 290(5500):2319, 2000. 2
+[25] Michael E. Tipping and Christopher M. Bishop. Probabilistic Principal Component Analysis. Source: Journal of the Royal Statistical Society. Series B (Statistical Methodology), 61(3):611-622, 1999. 2, 6
+[26] Ilya Tolstikhin, Olivier Bousquet, Sylvain Gelly, and Bernhard Scholkopf. Wasserstein Auto-Encoders. Technical report, 2018. 5
+[27] David C. Van Essen, Stephen M. Smith, Deanna Barch, Timothy E. J. Behrends, Essa Yacoub, and Kamil Ugurbil. The WU-Minn Human Connectome Project: An Overview. David. Neuroimage, 80:62-79, 2013. 8
+[28] Kilian Q. Weinberger and Lawrence K. Saul. An introduction to nonlinear dimensionality reduction by maximum variance unfolding. Proceedings of the National Conference on Artificial Intelligence, 2:1683-1686, 2006. 2
+[29] Miaomiao Zhang and P. Thomas Fletcher. Probabilistic principal geodesic analysis. Advances in Neural Information Processing Systems, pages 1-9, 2013. 2, 4
\ No newline at end of file
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/images.zip b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6b5ddb113dcd98d2ffd0153e9f36e1675cc716f8
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5edf5cecaf5a9c1412cac21214e63f9b26fdff34e52647f91890bee1c736993f
+size 364319
diff --git a/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/layout.json b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b3730c3b8f24ff95854b3f5bd79b9b5000cc232b
--- /dev/null
+++ b/learningweightedsubmanifoldswithvariationalautoencodersandriemannianvariationalautoencoders/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e5dec611261b12d401456444eee59c3eefd5eff10f2be2555338d881aec41f6
+size 530983
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_content_list.json b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..21aa5de07eafbf5b2bce28b15cd2e5ef7c6541eb
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ac926aac486e0b78e47508be98e94f36354b91c175959df62f2cba1c219dfdc
+size 79726
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_model.json b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f2ecce66240ed41331add3a7608c53e9ce702758
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6c3405aa557828da3dab32964174bbe1d55b7bd501af2541ae7e4babd98e488f
+size 97597
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_origin.pdf b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c96ab3aece7679af8f017673fd586e394060aeca
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/414c1e86-4077-4b4f-baf6-b59d62d177f6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72ae3d519f088dd8a97988bee7b3481b4470543a82fa082a911db02bddcd7bf0
+size 2802370
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/full.md b/learningwhenandwheretozoomwithdeepreinforcementlearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0e8e4c320ec154702b194072b1cb2f6f4fef1787
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/full.md
@@ -0,0 +1,332 @@
+# Learning When and Where to Zoom with Deep Reinforcement Learning
+
+Burak Uzkent
+Department of Computer Science
+Stanford University
+
+buzkent@cs.stanford.edu
+
+Stefano Ermon
+Department of Computer Science
+Stanford University
+
+ermon@cs.stanford.edu
+
+# Abstract
+
+While high resolution images contain semantically more useful information than their lower resolution counterparts, processing them is computationally more expensive, and in some applications, e.g. remote sensing, they can be much more expensive to acquire. For these reasons, it is desirable to develop an automatic method to selectively use high resolution data when necessary while maintaining accuracy and reducing acquisition/run-time cost. In this direction, we propose PatchDrop a reinforcement learning approach to dynamically identify when and where to use/acquire high resolution data conditioned on the paired, cheap, low resolution images. We conduct experiments on CIFAR10, CIFAR100, ImageNet and fMoW datasets where we use significantly less high resolution data while maintaining similar accuracy to models which use full high resolution images.
+
+# 1. Introduction
+
+Deep Neural Networks achieve state-of-the-art performance in many computer vision tasks, including image recognition [4], object detection [23], and object tracking [18]. However, one drawback is that they require high quality input data to perform well, and their performance drops significantly on degraded inputs, e.g., lower resolution images [49], lower frame rate videos [28], or under distortions [38]. For example, [45] studied the effect of image resolution, and reported a $14\%$ performance drop on CIFAR10 after downsampling images by a factor of 4.
+
+Nevertheless, downsampling is often performed for computational and statistical reasons [51]. Reducing the resolution of the inputs decreases the number of parameters, resulting in reduced computational and memory cost and mitigating overfitting [2]. Therefore, downsampling is often applied to trade off computational and memory gains with accuracy loss [25]. However, the same downsampling level is applied to all the inputs. This strategy can be suboptimal because the amount of information loss (e.g., about a label)
+
+depends on the input [7]. Therefore, it would be desirable to build an adaptive system to utilize a minimal amount of high resolution data while preserving accuracy.
+
+In addition to computational and memory savings, an adaptive framework can also benefit application domains where acquiring high resolution data is particularly expensive. A prime example is remote sensing, where acquiring a high resolution (HR) satellite image is significantly more expensive than acquiring its low resolution (LR) counterpart [26, 32, 9]. For example, LR images with $10\mathrm{m} - 30\mathrm{m}$ spatial resolution captured by Sentinel-1 satellites [8] are publicly and freely available whereas an HR image with $0.3\mathrm{m}$ spatial resolution captured by DigitalGlobe satellites can cost in the order of 1,000 dollars [6]. Similar examples arise in medical and scientific imaging, where acquiring higher quality images can be more expensive or even more harmful to patients [16, 15].
+
+In all these settings, it would be desirable to be able to adaptively acquire only specific parts of the HR quality input. The challenge, however, is how to perform this selection automatically and efficiently, i.e., minimizing the number of acquired HR patches while retaining accuracy. As expected, naive strategies can be highly suboptimal. For example, randomly dropping patches of HR satellite images from the functional Map of the World (fMoW) [3] dataset will significantly reduce accuracy of a trained network as seen in Fig. 1a. As such, an adaptive strategy must learn to identify and acquire useful patches [27] to preserve the accuracy of the network.
+
+To address this challenges, we propose PatchDrop, an adaptive data sampling-acquisition scheme which only samples patches of the full HR image that are required for inferring correct decisions, as shown in Fig. 1b. PatchDrop uses LR versions of input images to train an agent in a reinforcement learning setting to sample HR patches only if necessary. This way, the agent learns when and where to zoom in the parts of the image to sample HR patches. PatchDrop is extremely effective on the functional Map of the World (fMoW) [3] dataset. Surprisingly, we show that we can use only about $40\%$ of full HR images without any
+
+
+Figure 1: Left: shows the performance of the ResNet34 model trained on the fMoW original images and tested on images with dropped patches. The accuracy of the model goes down with the increased number of dropped patches. Right: shows the proposed framework which dynamically drops image patches conditioned on the low resolution images.
+
+significant loss of accuracy. Considering this number, we can save in the order of 100,000 dollars when performing a computer vision task using expensive HR satellite images at global scale. We also show that PatchDrop performs well on traditional computer vision benchmarks. On ImageNet, it samples about $50\%$ of HR images on average with a minimal loss in the accuracy. On a different task, we then increase the run-time performance of patch-based CNNs, BagNets [1], by $2\times$ by reducing the number of patches that need to be processed using PatchDrop. Finally, leveraging the learned patch sampling policies, we generate hard positive training examples to boost the accuracy of CNNs on ImageNet and fMoW by $2 - 3\%$ .
+
+# 2. Related Work
+
+Dynamic Inference with Residual Networks Similarly to DropOut [36], [13] proposed a stochastic layer dropping method when training the Residual Networks [11]. The probability of survival linearly decays in the deeper layers following the hypothesis that low-level features play key roles in correct inference. Similarly, we can decay the likelihood of survival for a patch w.r.t its distance from image center based on the assumption that objects will be dominantly located in the central part of the image. Stochastic layer dropping provides only training time compression. On the other hand, [43, 47] proposes reinforcement learning settings to drop the blocks of ResNet in both training and test time conditionally on the input image. Similarly, by replacing layers with patches, we can drop more patches from easy samples while keeping more from ambiguous ones.
+
+Attention Networks Attention methods have been explored to localize semantically important parts of images [42, 31, 41, 39]. [42] proposes a Residual Attention network that replaces the residual identity connections
+
+from [11] with residual attention connections. By residually learning feature guiding, they can improve recognition accuracy on different benchmarks. Similarly, [31] proposes a differentiable saliency-based distortion layer to spatially sample input data given a task. They use LR images in the saliency network that generates a grid highlighting semantically important parts of the image space. The grid is then applied to HR images to magnify the important parts of the image. [21] proposes a perspective-aware scene parsing network that locates small and distant objects. With a two branch (coarse and fovea) network, they produce coarse and fine level segmentations maps and fuse them to generate final map. [50] adaptivelyizes the convolutional patches to improve segmentation of large and small size objects. [24] improves object detectors using pre-determined fixed anchors with adaptive ones. They divide a region into a fixed number of sub-regions recursively whenever the zoom indicator given by the network is high. Finally, [30] proposes a sequential region proposal network (RPN) to learn object-centric and less scattered proposal boxes for the second stage of the Faster R-CNN [33]. These methods are tailored for certain tasks and condition the attention modules on HR images. On the other hand, we present a general framework and condition it on LR images.
+
+Analyzing Degraded Quality Input Signal There has been a relatively small volume of work on improving CNNs' performance using degraded quality input signal [20]. [37] uses knowledge distillation to train a student network using degraded input signal and the predictions of a teacher network trained on the paired higher quality signal. Another set of studies [45, 48] propose a novel method to perform domain adaptation from the HR network to a LR network. [29] pre-trains the LR network using the HR data and finetunes it using the LR data. Other domain adaptation methods focus on person re-identification with LR
+
+images [14, 22, 44]. All these methods boost the accuracy of the networks on LR input data, however, they make the assumption that the quality of the input signal is fixed.
+
+# 3. Problem statement
+
+
+Figure 2: Our Bayesian Decision influence diagram. The LR images are observed by the agent to sample HR patches. The classifier then observes the agent-sampled HR image together with the LR image to perform prediction. The ultimate goal is to choose an action to sample a masked HR image to maximize the expected utilities considering the accuracy and the cost of using/sampling HR image.
+
+We formulate the PatchDrop framework as a two step episodic Markov Decision Process (MDP), as shown in the influence diagram in Fig. 2. In the diagram, we represent the random variables with a circle, actions with a square, and utilities with a diamond. A high spatial resolution image, $x_{h}$ , is formed by equal size patches with zero overlap $x_{h} = (x_{h}^{1}, x_{h}^{2}, \dots, x_{h}^{P})$ , where $P$ represents the number of patches. In contrast with traditional computer vision settings, $x_{h}$ is latent, i.e., it is not observed by the agent. $y \in \{1, \dots, N\}$ is a categorical random variable representing the (unobserved) label associated with $x_{h}$ , where $N$ is the number of classes. The random variable low spatial resolution image, $x_{l}$ , is the lower resolution version of $x_{h}$ . $x_{l}$ is initially observed by the agent in order to choose the binary action array, $\mathbf{a}_{1} \in \{0, 1\}^{P}$ , where $\mathbf{a}_{1}^{\mathrm{P}} = 1$ means that the agent would like to sample the $p$ -th HR patch $x_{h}^{p}$ . We define the patch sampling policy model parameterized by $\theta_{p}$ , as
+
+$$
+\pi_ {1} \left(\mathbf {a _ {1}} \mid x _ {l}; \theta_ {p}\right) = p \left(\mathbf {a _ {1}} \mid x _ {l}; \theta_ {p}\right), \tag {1}
+$$
+
+where $\pi_1(x_l;\theta_p)$ is a function mapping the observed LR image to a probability distribution over the patch sampling action $\mathbf{a}_{\mathbf{l}}$ . Next, the random variable masked HR image, $x_{h}^{m}$ , is formed using $\mathbf{a}_{\mathbf{l}}^{\mathbf{P}}$ and $x_{h}^{p}$ , with the masking operation formulated as $x_{h}^{m} = x_{h}\odot \mathbf{a}_{\mathbf{l}}$ . The first step of the MDP can be modeled with a joint probability distribution over the random variables, $x_{h},y,x_{h}^{m}$ , and $x_{l}$ , and action $\mathbf{a}_{\mathbf{l}}$ , as
+
+$$
+\begin{array}{l} p \left(x _ {h}, x _ {h} ^ {m}, x _ {l}, y, \mathbf {a} _ {\mathbf {1}}\right) = p \left(x _ {h}\right) p \left(y \mid x _ {h}\right) p \left(x _ {l} \mid x _ {h}\right) \\ \cdot p \left(\mathbf {a} _ {1} \mid x _ {l}; \theta_ {p}\right) p \left(x _ {h} ^ {m} \mid \mathbf {a} _ {1}, x _ {h}\right). \tag {2} \\ \end{array}
+$$
+
+In the second step of the MDP, the agent observes the random variables, $x_{h}^{m}$ and $x_{l}$ , and chooses an action $\mathbf{a}_{2} \in$
+
+$\{1,\dots ,N\}$ . We then define the class prediction policy as follows:
+
+$$
+\pi_ {2} \left(\mathbf {a} _ {2} \mid x _ {h} ^ {m}, x _ {l}; \theta_ {c l}\right) = p \left(\mathbf {a} _ {2} \mid x _ {h} ^ {m}, x _ {l}; \theta_ {c l}\right), \tag {3}
+$$
+
+where $\pi_2$ represents a classifier network parameterized by $\theta_{cl}$ . The overall objective, $J$ , is then defined as maximizing the expected utility, $R$ represented by
+
+$$
+\max _ {\theta_ {p}, \theta_ {c l}} J \left(\theta_ {p}, \theta_ {c l}\right) = \mathbb {E} _ {p} \left[ R \left(\mathbf {a} _ {\mathbf {1}}, \mathbf {a} _ {\mathbf {2}}, y\right) \right], \tag {4}
+$$
+
+where the utility depends on $\mathbf{a}_1$ , $\mathbf{a}_2$ , and $y$ . The reward penalizes the agent for selecting a large number of high-resolution patches (e.g., based on the norm of $\mathbf{a}_1$ ) and includes a classification loss evaluating the accuracy of $\mathbf{a}_2$ given the true label $y$ (e.g., cross-entropy or 0-1 loss).
+
+# 4. Proposed Solution
+
+# 4.1. Modeling the Policy Network and Classifier
+
+In the previous section, we formulated the task of PatchDrop as a two step episodic MDP. Here, we detail the action space and how the policy distributions for $\mathbf{a}_1$ and $\mathbf{a}_2$ are modelled. To represent our discrete action space for $\mathbf{a}_1$ , we divide the image space into equal size patches with no overlaps, resulting in $P$ patches, as shown in Fig. 3. In this study, we use $P = 16$ regardless of the size of the input image and leave the task of choosing variable size bounding boxes as a future work. In the first step of the two step MDP, the policy network, $f_{p}$ , outputs the probabilities for all the actions at once after observing $x_{l}$ . An alternative approach could be in the form of a Bayesian framework where $\mathbf{a}_1^{\mathbf{p}}$ is conditioned on $\mathbf{a}_{1}^{1:\mathbf{p} - 1}$ [7, 30]. However, the proposed concept of outputting all the actions at once provides a more efficient decision making process for patch sampling.
+
+In this study, we model the action likelihood function of the policy network, $f_{p}$ , by multiplying the probabilities of the individual high-resolution patch selections, represented by patch-specific Bernoulli distributions as follows:
+
+$$
+\pi_ {1} \left(\mathbf {a} _ {1} \mid x _ {l}, \theta_ {p}\right) = \prod_ {p = 1} ^ {P} s _ {p} ^ {\mathbf {a} _ {1} ^ {\mathbf {P}}} \left(1 - s _ {p}\right) ^ {\left(1 - \mathbf {a} _ {1} ^ {\mathbf {P}}\right)}, \tag {5}
+$$
+
+where $s_p$ represents the prediction vector formulated as
+
+$$
+s _ {p} = f _ {p} \left(x _ {l}; \theta_ {p}\right). \tag {6}
+$$
+
+To get probabilistic values, $s_p \in [0,1]$ , we use a sigmoid function on the final layer of the policy network.
+
+The next set of actions, $\mathbf{a_2}$ , is chosen by the classifier, $f_{cl}$ , using the sampled HR image $x_h^m$ and the LR input $x_l$ . The upper stream of the classifier, $f_{cl}$ , uses the sampled HR images, $x_h^m$ , whereas the bottom stream uses the LR images, $x_l$ , as shown in Fig. 3. Each one outputs probability
+
+
+Figure 3: The workflow of the PatchDrop formulated as a two step episodic MDP. The agent chooses actions conditioned on the LR image, and only agent sampled HR patches together with LR images are jointly used by the two-stream classifier network. We note that the LR network can be disconnected from the pipeline to only rely on selected HR patches to perform classification. When disconnecting LR network, the policy network samples more patches to maintain accuracy.
+
+distributions, $s_{cl}^{l}$ and $s_{cl}^{h^m}$ , for class labels using a softmax layer. We then compute the weighted sum of predictions via
+
+$$
+s _ {c l} = (S / P) s _ {c l} ^ {h ^ {m}} + (1 - S / P) s _ {c l} ^ {l}, \tag {7}
+$$
+
+where $S$ represents the number of sampled patches. To form $\mathbf{a}_2$ , we use the maximally probable class label: i.e., $\mathbf{a}_2^j = 1$ if $s_{cl}^j = \max(s_{cl})$ and $\mathbf{a}_2^j = 0$ otherwise where $j$ represents the class index. In this set up, if the policy network samples no HR patch, we completely rely on the LR classifier, and the impact of the HR classifier increases linearly with the number of sampled patches.
+
+# 4.2. Training the PatchDrop Network
+
+After defining the two step MDP and modeling the policy and classifier networks, we detail the training procedure of PatchDrop. The goal of training is to learn the optimal parameters of $\theta_{p}$ and $\theta_{cl}$ . Because the actions are discrete, we cannot use the reparameterization trick to optimize the objective w.r.t. $\theta_{p}$ . To optimize the parameters $\theta_{p}$ of $f_{p}$ , we need to use model-free reinforcement learning algorithms such as Q-learning [46] and policy gradient [40]. Policy gradient is more suitable in our scenario since the number of unique actions the policy network can choose is $2^{P}$ and increases exponentially with $P$ . For this reason, we use the REINFORCE method [40] to optimize the objective w.r.t $\theta_{p}$ using
+
+$$
+\nabla_ {\theta_ {p}} J = \mathbb {E} [ R (\mathbf {a _ {1}}, \mathbf {a _ {2}}, y) \nabla_ {\theta_ {p}} \log \pi_ {\theta_ {p}} (\mathbf {a _ {1}} | x _ {l}) ]. \qquad (8)
+$$
+
+Averaging across a mini-batch via Monte-Carlo sampling produces an unbiased estimate of the expected value, but with potentially large variance. Since this can lead to an unstable training process [40], we replace $R(\mathbf{a}_1, \mathbf{a}_2, y)$ in Eq. 8 with the advantage function to reduce the variance:
+
+$$
+\nabla_ {\theta_ {p}} J = \mathbb {E} \left[ A \sum_ {p = 1} ^ {P} \nabla_ {\theta_ {p}} \log \left(s _ {p} \mathbf {a} _ {\mathbf {1}} ^ {\mathbf {p}} + (1 - s _ {p}) (1 - \mathbf {a} _ {\mathbf {1}} ^ {\mathbf {p}})\right) \right], \tag {9}
+$$
+
+$$
+A \left(\mathbf {a} _ {1}, \hat {\mathbf {a}} _ {1}, \mathbf {a} _ {2}, \hat {\mathbf {a}} _ {2}\right) = R \left(\mathbf {a} _ {1}, \mathbf {a} _ {2}, y\right) - R \left(\hat {\mathbf {a}} _ {1}, \hat {\mathbf {a}} _ {2}, y\right), \tag {10}
+$$
+
+where $\hat{\mathbf{a}}_1$ and $\hat{\mathbf{a}}_2$ represent the baseline action vectors. To get $\hat{\mathbf{a}}_1$ , we use the most likely action vector proposed by the policy network: i.e., $\mathbf{a}_1^i = 1$ if $s_p^i > 0.5$ and $s_p^i = 0$ otherwise. The classifier, $f_{cl}$ , then observes $x_l$ and $\hat{x}_h^m$ sampled using $\hat{\mathbf{a}}_1$ , on two branches and outputs the predictions, $\hat{s}_{cl}$ from which we get $\hat{\mathbf{a}}_2^j$ : i.e., $\hat{\mathbf{a}}_2^j = 1$ if $\hat{s}_{cl}^j = \max (\hat{s}_{cl})$ and $\hat{\mathbf{a}}_2^j = 0$ otherwise where $j$ represents the class index. The advantage function assigns the policy network a positive value only when the action vector sampled from Eq. 5 produces higher reward than the action vector with maximum likelihood, which is known as a self-critical baseline [34].
+
+Finally, in this study we use the temperature scaling method [40] to encourage exploration during training time by bounding the probabilities of the policy network as
+
+$$
+s _ {p} = \alpha s _ {p} + (1 - \alpha) (1 - s _ {p}), \tag {11}
+$$
+
+where $\alpha \in [0,1]$
+
+Pre-training the Classifier After formulating our reinforcement learning setting for training the policy network, we first pre-train the two branches of $f_{cl}$ , $f_{cl}^{h}$ and $f_{cl}^{l}$ , on $x_{h} \in \mathcal{X}_{h}$ and $x_{l} \in \mathcal{X}_{l}$ . We assume that $\mathcal{X}_{h}$ is observable in the training time. The network trained on $\mathcal{X}_{h}$ can perform reasonably (Fig. 1a) when the patches are dropped at test time with a fixed policy, forming $x_{h}^{m}$ . We then use this observation to pre-train the policy network, $f_{p}$ , to dynamically learn to drop patches while keeping the parameters of $f_{cl}^{h}$ and $f_{cl}^{l}$ fixed.
+
+Pre-training the Policy Network (Pt) After training the two streams of the classifier, $f_{cl}$ , we pre-train the policy network, $f_{p}$ , using the proposed reinforcement learning setting while fixing the parameters of $f_{cl}$ . In this step, we only use $f_{cl}^{h}$ to estimate the expected reward when learning $\theta_{p}$ . This is because we want to train the policy network to understand which patches contribute most to correct decisions made by the HR image classifier, as shown in Fig. 1a.
+
+Finetuning the Agent and HR Classifier (Ft-1) To further boost the accuracy of the policy network, $f_{p}$ , we jointly finetune the policy network and HR classifier, $f_{cl}^{h}$ . This way, the HR classifier can adapt to the sampled images, $x_{h}^{m}$
+
+Input: Input $(X_{l},\mathcal{Y},\mathcal{C})$ $X_{l} = \{x_{l}^{1},x_{l}^{2},\dots,x_{l}^{N}\}$
+for $k\gets 0$ to $K_{1}$ do
+ $s_p\gets f_p(x_l;\theta_p)$ $s_p\gets \alpha +(1 - s_p)(1 - \alpha)$ $\mathbf{a_1}\sim \pi_1(a_1|s_p)$ $x_h^m = x_h\odot \mathbf{a_1}$ $\mathbf{a_2}\gets f_{cl}^h (x_h^m;\theta_{cl}^h)$
+Evaluate Reward $R(\mathbf{a_1},\mathbf{a_2},y)$ $\theta_p\gets \theta_p + \nabla \theta_p$
+end
+for $k\gets 0$ to $K_{2}$ do
+Jointly Finetune $\theta_{cl}^{h}$ and $\theta_{p}$ using $f_{cl}^{h}$
+end
+for $k\gets 0$ to $K_{3}$ do
+Jointly Finetune $\theta_{cl}^{h}$ and $\theta_{p}$ using $f_{cl}^{h}$ and $f_{cl}^{h}$
+end
+
+Algorithm 1: PatchDrop Pseudocode
+
+while the policy network learns new policies in line with it. The LR classifier, $f_{cl}^{l}$ , is not included in this step.
+
+Finetuning the Agent and HR Classifier (Ft-2) In the final step of the training stage, we jointly finetune the policy network, $f_{p}$ , and $f_{cl}^{h}$ with the addition of $f_{cl}^{l}$ into the classifier $f_{cl}$ . This way, the policy network can learn policies to drop further patches with the existence of the LR classifier. We combine the HR and LR classifiers using Eq. 7. Since the input to $f_{cl}^{l}$ does not change, we keep $\theta_{cl}^{l}$ fixed and only update $\theta_{cl}^{h}$ and $\theta_{p}$ . The algorithm for the PatchDrop training stage is shown in Alg. 1. Upon publication, we will release the code to train and test PatchDrop.
+
+# 5. Experiments
+
+# 5.1. Experimental Setup
+
+Datasets and Metrics We evaluate PatchDrop on the following datasets: (1) CIFAR10, (2) CIFAR100, (3) ImageNet [4] and (4) functional map of the world (fMoW) [3]. To measure its performance, we use image recognition accuracy and the number of dropped patches (cost).
+
+Implementation Details In CIFAR10/CIFAR100 experiments, we use a ResNet8 for the policy and ResNet32 for the classifier networks. The policy and classifier networks use $8 \times 8$ px and $32 \times 32$ px images. In ImageNet/fMoW, we use a ResNet10 for the policy network and ResNet50 for the classifier. The policy network uses $56 \times 56$ px images whereas the classifier uses $224 \times 224$ px images. We initialize the weights of the LR classifier with HR classifier [29] and use Adam optimizer in all our experiments [17]. Finally, initially we set the exploration/exploitation parameter, $\alpha$ , to 0.7 and increase it to 0.95 linearly over time.
+
+Reward Function We choose $R = 1 - \left(\frac{|\mathbf{a}_1|_1}{P}\right)^2$ if $y = \hat{y}(\mathbf{a}_2)$ and $-\sigma$ otherwise as a reward. Here, $\hat{y}$ and $y$ represent the predicted class by the classifier after the observation of $x_h^m$ and $x_l$ and the true class, respectively. The proposed reward function quadratically increases the reward w.r.t the number of dropped patches. To adjust the trade-off between accuracy and the number of sampled patches, we introduce $\sigma$ and setting it to a large value encourages the agent to sample more patches to preserve accuracy.
+
+# 5.2. Baseline and State-of-The-Art Models
+
+No Patch Sampling/No Patch Dropping In this case, we simply train a CNN on LR or HR images with cross-entropy loss without any domain adaptation and test it on LR or HR images. We call them LR-CNN and HR-CNN.
+
+Fixed and Stochastic Patch Dropping We propose two baselines that sample central patches along the horizontal and vertical axes of the image space and call them Fixed-H and Fixed-V. We list the sampling priorities for the patches in this order 5,6,9,10,13,14,1,2,0,3,4,7,8,11,15 for Fixed-H, and 4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3 for Fixed-V. The patch IDs are shown in Fig. 3. Using a similar hypothesis, we then design a stochastic method that decays the survival likelihood of a patch w.r.t the euclidean distance from the center of the patch $p$ to the image center.
+
+Super-resolution We use SRGAN [19] to learn to up-sample LR images and use the SR images in the downstream tasks. This method only improves accuracy and increases computational complexity since SR images have the same number of pixels with HR images.
+
+Attention-based Patch Dropping In terms of the state-of-the-art models, we first compare our method to the Spatial Transformer Network (STN) by [31]. We treat their saliency network as the policy network and sample the top $S$ activated patches to form masked images for classifier.
+
+Domain Adaptation Finally, we use two of the state-of-the-art domain adaptation methods by [45, 37] to improve recognition accuracy on LR images. These methods are based on Partially Coupled Networks (PCN), and Knowledge Distillation (KD) [12].
+
+The LR-CNN, HR-CNN, PCN, KD, and SRGAN are standalone models and always use full LR or HR image. For this reason, we have same values for them in Pt, Ft-1, and Ft-2 steps and show them in the upper part of the tables.
+
+# 5.3. Experiments on fMoW
+
+One application domain of the PatchDrop is remote sensing where LR images are significantly cheaper than HR images. In this direction, we test the PatchDrop on functional Map of the World [3] consisting of HR satellite images. We use 350,000, 50,000 and 50,000 images as training, validation and test images. After training the classifiers, we pre
+
+
+Figure 4: Policies learned on the fMoW dataset. In columns 5 and 8, Ft-2 model does not sample any HR patches and the LR classifier is used. Ft-1 model samples more patches as it does not utilize LR classifier.
+
+train the policy network for 63 epochs with a learning rate of 1e-4 and batch size of 1024. Next, we finetune (Ft-1 and Ft-2) the policy network and HR classifiers with the learning rate of 1e-4 and batch size of 128. Finally, we set $\sigma$ to 0.5, 20, and 20 in the pre-training, and fine-tuning steps.
+
+As seen in Table 1, PatchDrop samples only about $40\%$
+
+ | Acc. (%) (Pt) | S | Acc. (%) (Ft-1) | S | Acc. (%) (Ft-2) | S |
| LR-CNN | 61.4 | 0 | 61.4 | 0 | 61.4 | 0 |
| SRGAN [19] | 62.3 | 0 | 62.3 | 0 | 62.3 | 0 |
| KD [37] | 63.1 | 0 | 63.1 | 0 | 63.1 | 0 |
| PCN [45] | 63.5 | 0 | 63.5 | 0 | 63.5 | 0 |
| HR-CNN | 67.3 | 16 | 67.3 | 16 | 67.3 | 16 |
| Fixed-H | 47.7 | 7 | 63.3 | 6 | 64.9 | 6 |
| Fixed-V | 48.3 | 7 | 63.2 | 6 | 64.7 | 6 |
| Stochastic | 29.1 | 7 | 57.1 | 6 | 63.6 | 6 |
| STN [31] | 46.5 | 7 | 61.8 | 6 | 64.8 | 6 |
| PatchDrop | 53.4 | 7 | 67.1 | 5.9 | 68.3 | 5.2 |
+
+Table 1: The performance of the proposed PatchDrop and baseline models on the fMoW dataset. $S$ represents the average number of sampled patches. Ft-1 and Ft-2 represent the finetuning steps with single and two stream classifiers.
+
+
+Figure 5: Left: The accuracy and number of sampled patches by the policy network w.r.t downsampling ratio used to get LR images for the policy network and classifier. Right: The accuracy and number of sampled patches w.r.t to $\sigma$ parameter in the reward function in the joint finetuning steps ( $ds = 4$ ). It is set to 0.5 in the pre-training step.
+
+
+
+of each HR image on average while increasing the accuracy of the network using the full HR images to $68.3\%$ . Fig. 4 shows some examples of how the policy network chooses actions conditioned on the LR images. When the image contains a field with uniform texture, the agent samples a small number of patches, as seen in columns 5, 8, 9 and 10. On the other hand, it samples patches from the buildings when the ground truth class represents a building, as seen in columns 1, 6, 12, and 13.
+
+Also, we perform experiments with different downsampling ratios and $\sigma$ values in the reward function. This way, we can observe the trade-off between the number of sampled patches and accuracy. As seen in Fig. 5, as we increase the downsampling ratio we zoom into more patches to maintain accuracy. On the other hand, with increasing $\sigma$ , we zoom into more patches as larger $\sigma$ value penalizes the policies resulting in unsuccessful classification.
+
+Experiments on CIFAR10/CIFAR100 Although CIFAR datasets already consists of LR images, we believe that conducting experiments on standard benchmarks is useful to characterize the model. For CIFAR10, after training the classifiers, we pre-train the policy network with a batch size of 1024 and learning rate of 1e-4 for 3400 epochs. In the joint finetuning stages, we keep the learning rate, reduce the batch size to 256, and train the policy and HR classifier networks for 1680 and 990 epochs, respectively. $\sigma$ is set to -0.5 in the pre-training stage and -5 in the joint finetuning stages whereas $\alpha$ is tuned to 0.8. Our CIFAR100 methods are similar to the CIFAR10 ones, including hyper-parameters.
+
+As seen in Table 2, PatchDrop drops about $56\%$ of the patches in the original image space in CIFAR10, all the while with minimal loss in the overall accuracy. In the case of CIFAR100, we observe that it samples 2.2 patches more than the CIFAR10 experiment, on average, which might be due to higher complexity of the CIFAR100 dataset.
+
+Experiments on ImageNet Next, we test the Patch-Drop on ImageNet Large Scale Visual Recognition Challenge 2012 (ILSVRC2012) [35]. It contains 1.2 million, 50,000, and 150,000 training, validation and test images. For augmentation, we use randomly cropping $224 \times 224$ px
+
+
+Figure 6: Policies learned on ImageNet. In columns 3 and 8, Ft-2 model does not sample any HR patches and the LR classifier is used. Ft-1 model samples more patches as it does not use the LR classifier.
+
+ | CIFAR10 | CIFAR100 | ImageNet |
| Acc. (%) (Pt) | Acc. (%) (Ft-1) | Acc. (%) (Ft-2) | S (Pt,Ft-1,Ft-2) | Acc. (%) (Pt) | Acc. (%) (Ft-1) | Acc. (%) (Ft-2) | S (Pt,Ft-1,Ft-2) | Acc. (%) (Pt) | Acc. (%) (Ft-1) | Acc. (%) (Ft-2) | S (Pt,Ft-1,Ft-2) |
| LR-CNN | 75.8 | 75.8 | 75.8 | 0,0,0 | 55.1 | 55.1 | 55.1 | 0,0,0 | 58.1 | 58.1 | 58.1 | 0,0,0 |
| SRGAN [19] | 78.8 | 78.8 | 78.8 | 0,0,0 | 56.1 | 56.1 | 56.1 | 0,0,0 | 63.1 | 63.1 | 63.1 | 0,0,0 |
| KD [37] | 81.8 | 81.8 | 81.8 | 0,0,0 | 61.1 | 61.1 | 61.1 | 0,0,0 | 62.4 | 62.4 | 62.4 | 0,0,0 |
| PCN [37] | 83.3 | 83.3 | 83.3 | 0,0,0 | 62.6 | 62.6 | 62.6 | 0,0,0 | 63.9 | 63.9 | 63.9 | 0,0,0 |
| HR-CNN | 92.3 | 92.3 | 92.3 | 16,16,16 | 69.3 | 69.3 | 69.3 | 16,16,16 | 76.5 | 76.5 | 76.5 | 16,16,16 |
| Fixed-H | 71.2 | 83.8 | 85.2 | 9,8,7 | 48.5 | 65.8 | 67.0 | 9,10,10 | 48.8 | 68.6 | 70.4 | 10,9,8 |
| Fixed-V | 64.7 | 83.4 | 85.1 | 9,8,7 | 46.2 | 65.5 | 67.2 | 9,10,10 | 48.4 | 68.4 | 70.8 | 10,9,8 |
| Stochastic | 40.6 | 82.1 | 83.7 | 9,8,7 | 27.6 | 63.2 | 64.8 | 9,10,10 | 38.6 | 66.2 | 68.4 | 10,9,8 |
| STN [31] | 66.9 | 85.2 | 87.1 | 9,8,7 | 41.1 | 64.3 | 66.4 | 9,10,10 | 58.6 | 69.4 | 71.4 | 10,9,8 |
| PatchDrop | 80.6 | 91.9 | 91.5 | 8.5,7.9,6.9 | 57.3 | 69.3 | 70.4 | 9,9,9,9.1 | 60.2 | 74.9 | 76.0 | 10.1,9.1,7.9 |
+
+Table 2: The results on CIFAR10, CIFAR100 and ImageNet datasets. $S$ represents the average number of sampled patches per image. The Pt, Ft-1 and Ft-2 represent the pre-training and finetuning steps with single and two stream classifiers.
+
+area from the $256 \times 256$ px images and perform horizontal flip augmentation. After training the classifiers, we pretrain the policy network for 95 epochs with a learning rate of 1e-4 and batch size of 1024. We then perform the first fine-tuning stage and jointly finetune the HR classifier and policy network for 51 epochs with the learning rate of 1e-4 and batch size of 128. Finally, we add the LR classifier and jointly finetune the policy network and HR classifier for 10 epochs with the same learning rate and batch size. We set $\sigma$ to 0.1, 10, and 10 for pre-training and fine-tuning steps.
+
+As seen in Table 2, we can maintain the accuracy of the HR classifier while dropping $56\%$ and $50\%$ of the patches with the Ft-1 and Ft-2 model. Also, we show the learned policies on ImageNet in Fig. 6. The policy network decides to sample no patch when the input is relatively easier as in column 3, and 8.
+
+Analyzing Policy Network's Actions To better understand the sampling actions of policy network, we visualize the accuracy of the classifier w.r.t the number of sampled patches as shown in Fig. 7 (left). Interestingly, the accuracy of the classifier is inversely proportional to the number of sampled patches. We believe that this occurs because the policy network samples more patches from the challenging
+
+and ambiguous cases to ensure that the classifier successfully predicts the label. On the other hand, it successfully learns when to sample no patches. However, it samples no patch ( $S = 0$ ) $7\%$ of the time on average in comparison to sampling $4 \leq S \leq 7$ $50\%$ of the time. Increasing the ratio for $S = 0$ is a future work of this study. Finally, Fig. 7 (right) displays the probability of sampling a patch given its position. We see that the policy network learns to sample the central patches more than the peripheral patches as expected.
+
+
+Figure 7: Left: The accuracy w.r.t the average number of sampled patches by the policy network. Right: Sampling probability of the patch IDs (See Fig. 3 for IDs).
+
+
+
+# 6. Improving Run-time Complexity of BagNets
+
+Next, we use PatchDrop to decrease the run-time complexity of local CNNs, such as BagNets. The BagNets have recently been proposed as a novel image recognition architecture [1]. They run a CNN on image patches independently and sum up class-specific spatial probabilities. Surprisingly, the BagNets perform similarly to CNNs that process the full image in one shot. This concept fits perfectly to PatchDrop as it learns to select semantically useful local patches which can be fed to a BagNet. This way, the BagNet is not trained on all the patches from the image but only on useful patches. By dropping redundant patches, we can then speed it up and improve its accuracy. In this case, we first train the BagNet on all the patches and pre-train the policy network on LR images $(4\times)$ to learn patches important for BagNet. Using LR images and a shallow network (ResNet8), we reduce the run-time overhead introduced by the agent to $3\%$ of the CNN (ResNet32) using HR images. Finally, we jointly finetune (Ft-1) the policy network and BagNet. We illustrate our approach in Fig. 8.
+
+We perform experiments on CIFAR10 and show the results in Table 3. The proposed Conditional BagNet using PatchDrop improves the accuracy of BagNet by $7\%$ closing the gap between global CNNs and local CNNs. Additionally, it decreases the run-time complexity by $50\%$ , significantly reducing the gap between local CNNs and global CNNs in terms of run-time complexity1. The increase in the speed can be further improved by running different GPUs
+
+
+Figure 8: Dynamic BagNet. The policy network processes LR image and sample HR patches to be processed independently by CNN. More details on BagNet can be found in [1].
+
+ | Acc. (%) (Pt) | S | Acc. (%) (Ft-1) | S | Run-time. (%) (ms) |
| BagNet (No Patch Drop) [1] | 85.6 | 16 | 85.6 | 16 | 192 |
| CNN (No Patch Drop) | 92.3 | 16 | 92.3 | 16 | 77 |
| Fixed-H | 67.7 | 10 | 86.3 | 9 | 98 |
| Fixed-V | 68.3 | 10 | 86.2 | 9 | 98 |
| Stochastic | 49.1 | 10 | 83.1 | 9 | 98 |
| STN [19] | 67.5 | 10 | 86.8 | 9 | 112 |
| BagNet (PatchDrop) | 77.4 | 9.5 | 92.7 | 8.5 | 98 |
+
+on the selected patches in parallel at test time.
+
+Finally, utilizing learned masks to avoid convolutional operations in the layers of global CNN is another promising direction of our work. [10] drops spatial blocks of the feature maps of CNNs in training time to perform stronger regularization than DropOut [36]. Our method, on the other hand, can drop blocks of the feature maps dynamically in both training and test time.
+
+# 7. Conditional Hard Positive Sampling
+
+PatchDrop can also be used to generate hard positives for data augmentation. In this direction, we utilize the masked images, $\mathcal{X}_h^m$ , learned by the policy network (Ft-1) to generate hard positive examples to better train classifiers. To generate conditional hard positive examples, we choose the number of patches to be masked, $M$ , from a uniform distribution with minimum and maximum values of 1 and 4. Next, given $s_p$ by the policy network, we choose $M$ patches with the highest probabilities and mask them and use the masked images to train the classifier. Finally, we compare our approach to CutOut [5] which randomly cuts/masks image patches for data augmentation. As shown in Table 4, our approach leads to higher accuracy in all the datasets when using original images, $\mathcal{X}_h$ , in test time. This shows that the policy network learns to select informative patches.
+
+Table 3: The performance of the PatchDrop and other models on improving BagNet on CIFAR10 dataset. We use a similar set up to our previous CIFAR10 experiments.
+
+ | CIFAR10 (%) (ResNet32) | CIFAR100 (%) (ResNet32) | ImageNet (%) (ResNet50) | fMoW (%) (ResNet34) |
| No Augment. | 92.3 | 69.3 | 76.5 | 67.3 |
| CutOut [5] | 93.5 | 70.4 | 76.5 | 67.6 |
| PatchDrop | 93.9 | 71.0 | 78.1 | 69.6 |
+
+Table 4: Results with different augmentation methods.
+
+# 8. Conclusion
+
+In this study, we proposed a novel reinforcement learning setting to train a policy network to learn when and where to sample high resolution patches conditionally on the low resolution images. Our method can be highly beneficial in domains such as remote sensing where high quality data is significantly more expensive than the low resolution counterpart. In our experiments, on average, we drop a $40 - 60\%$ portion of each high resolution image while preserving similar accuracy to networks which use full high resolution images in ImageNet and fMoW. Also, our method significantly improves the run-time efficiency and accuracy of BagNet, a patch-based CNNs. Finally, we used the learned policies to generate hard positives to boost classifiers' accuracy on CIFAR, ImageNet and fMoW datasets.
+
+# Acknowledgements
+
+This research was supported by Stanford's Data for Development Initiative and NSF grants 1651565 and 1733686.
+
+# References
+
+[1] Wieland Brendel and Matthias Bethge. Approximating cnns with bag-of-local-features models works surprisingly well onImagenet. arXiv preprint arXiv:1904.00760, 2019. 2, 8
+[2] Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets. arXiv preprint arXiv:1707.08819, 2017. 1
+[3] Gordon Christie, Neil Fendley, James Wilson, and Ryan Mukherjee. Functional map of the world. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6172-6180, 2018. 1, 5
+[4] 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. 1, 5
+[5] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 8
+[6] Jonathan RB Fisher, Eileen A Acosta, P James Dennedy-Frank, Timm Kroeger, and Timothy M Boucher. Impact of satellite imagery spatial resolution on land use classification accuracy and modeled water quality. Remote Sensing in Ecology and Conservation, 4(2):137-149, 2018. 1
+[7] Mingfei Gao, Ruichi Yu, Ang Li, Vlad I Morariu, and Larry S Davis. Dynamic zoom-in network for fast object detection in large images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6926-6935, 2018. 1, 3
+[8] Dirk Geudtner, Ramón Torres, Paul Snoeij, Malcolm Davidson, and Björn Rommen. Sentinel-1 system capabilities and applications. In 2014 IEEE Geoscience and Remote Sensing Symposium, pages 1457–1460. IEEE, 2014. 1
+[9] Pedram Ghamisi and Naoto Yokoya. Img2dsm: Height simulation from single imagery using conditional generative adversarial net. IEEE Geoscience and Remote Sensing Letters, 15(5):794-798, 2018. 1
+[10] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10727-10737, 2018. 8
+[11] 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. 2
+[12] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 5
+[13] Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In European conference on computer vision, pages 646-661. Springer, 2016. 2
+[14] Jiening Jiao, Wei-Shi Zheng, Ancong Wu, Xiatian Zhu, and Shaogang Gong. Deep low-resolution person re-identification. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 3
+[15] Eunhee Kang, Junhong Min, and Jong Chul Ye. A deep convolutional neural network using directional wavelets for low-
+
+dose x-ray ct reconstruction. Medical physics, 44(10):e360-e375, 2017. 1
+[16] Justin Ker, Lipo Wang, Jai Rao, and Tchoyoson Lim. Deep learning applications in medical image analysis. IEEE Access, 6:9375-9389, 2017. 1
+[17] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[18] Matej Kristan, Ales Leonardis, Jiri Matas, Michael Felsberg, Roman Pflugfelder, Luka Cehovin Zajc, Tomas Vojir, Goutam Bhat, Alan Lukezic, Abdelrahman Eldeokey, et al. The sixth visual object tracking vot2018 challenge results. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018. 1
+[19] Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681-4690, 2017. 5, 6, 7, 8
+[20] Pei Li, Loreto Prieto, Domingo Mery, and Patrick J Flynn. On low-resolution face recognition in the wild: Comparisons and new techniques. IEEE Transactions on Information Forensics and Security, 14(8):2000-2012, 2019. 2
+[21] Xin Li, Zequn Jie, Wei Wang, Changsong Liu, Jimei Yang, Xiaohui Shen, Zhe Lin, Qiang Chen, Shuicheng Yan, and Jiashi Feng. Foveanet: Perspective-aware urban scene parsing. In Proceedings of the IEEE International Conference on Computer Vision, pages 784-792, 2017. 2
+[22] Xiang Li, Wei-Shi Zheng, Xiaojuan Wang, Tao Xiang, and Shaogang Gong. Multi-scale learning for low-resolution person re-identification. In Proceedings of the IEEE International Conference on Computer Vision, pages 3765–3773, 2015. 3
+[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 1
+[24] Yongxi Lu, Tara Javidi, and Svetlana Lazebnik. Adaptive object detection using adjacency and zoom prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2351-2359, 2016. 2
+[25] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116-131, 2018. 1
+[26] K Malarvizhi, S Vasantha Kumar, and P Porchelvan. Use of high resolution google earth satellite imagery in landuse map preparation for urban related applications. Procedia Technology, 24:1835-1842, 2016. 1
+[27] Silviu Minut and Sridhar Mahadevan. A reinforcement learning model of selective visual attention. In Proceedings of the fifth international conference on Autonomous agents, pages 457-464. ACM, 2001. 1
+[28] Matthias Mueller, Neil Smith, and Bernard Ghanem. Context-aware correlation filter tracking. In Proceedings
+
+of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1396-1404, 2017. 1
+[29] Xingchao Peng, Judy Hoffman, X Yu Stella, and Kate Saenko. Fine-to-coarse knowledge transfer for low-res image classification. In 2016 IEEE International Conference on Image Processing (ICIP), pages 3683-3687. IEEE, 2016. 2, 5
+[30] Aleksis Pirinen and Cristian Sminchisescu. Deep reinforcement learning of region proposal networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6945-6954, 2018. 2, 3
+[31] Adria Recasens, Petr Kellnhofer, Simon Stent, Wojciech Matusik, and Antonio Torralba. Learning to zoom: a saliency-based sampling layer for neural networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 51-66, 2018. 2, 5, 6, 7
+[32] Felix Rembold, Clement Atzberger, Igor Savin, and Oscar Rojas. Using low resolution satellite imagery for yield prediction and yield anomaly detection. Remote Sensing, 5(4):1704-1733, 2013. 1
+[33] 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. 2
+[34] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. Self-critical sequence training for image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7008-7024, 2017. 4
+[35] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision, 115(3):211-252, Dec. 2015. 6
+[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929-1958, 2014. 2, 8
+[37] Jong-Chyi Su and Subhransu Maji. Adapting models to signal degradation using distillation. arXiv preprint arXiv:1604.00433, 2016. 2, 5, 6, 7
+[38] Jian Sun, Wenfei Cao, Zongben Xu, and Jean Ponce. Learning a convolutional neural network for non-uniform motion blur removal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 769-777, 2015. 1
+[39] Ming Sun, Yuchen Yuan, Feng Zhou, and Errui Ding. Multi-attention multi-class constraint for fine-grained image recognition. In Proceedings of the European Conference on Computer Vision (ECCV), pages 805–821, 2018. 2
+[40] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. 4
+[41] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008, 2017. 2
+
+[42] Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaou Tang. Residual attention network for image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3156-3164, 2017. 2
+[43] Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 409-424, 2018. 2
+[44] Yan Wang, Lequn Wang, Yurong You, Xu Zou, Vincent Chen, Serena Li, Gao Huang, Bharath Hariharan, and Kilian Q Weinberger. Resource aware person re-identification across multiple resolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8042–8051, 2018. 3
+[45] Zhangyang Wang, Shiyu Chang, Yingzhen Yang, Ding Liu, and Thomas S Huang. Studying very low resolution recognition using deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4792-4800, 2016. 1, 2, 5, 6
+[46] Christopher J. C. H. Watkins and Peter Dayan. Q-learning. In Machine Learning, pages 279-292, 1992. 4
+[47] Zuxuan Wu, Tushar Nagarajan, Abhishek Kumar, Steven Rennie, Larry S Davis, Kristen Grauman, and Rogerio Feris. Blockdrop: Dynamic inference paths in residual networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8817-8826, 2018. 2
+[48] Yuan Yao, Xutao Li, Yunming Ye, Feng Liu, Michael K Ng, Zhichao Huang, and Yu Zhang. Low-resolution image categorization via heterogeneous domain adaptation. Knowledge-Based Systems, 163:656-665, 2019. 2
+[49] Linwei Yue, Huanfeng Shen, Jie Li, Qiangqiang Yuan, Hongyan Zhang, and Liangpei Zhang. Image superresolution: The techniques, applications, and future. Signal Processing, 128:389-408, 2016. 1
+[50] Rui Zhang, Sheng Tang, Yongdong Zhang, Jintao Li, and Shuicheng Yan. Scale-adaptive convolutions for scene parsing. In Proceedings of the IEEE International Conference on Computer Vision, pages 2031-2039, 2017. 2
+[51] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6848-6856, 2018. 1
\ No newline at end of file
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/images.zip b/learningwhenandwheretozoomwithdeepreinforcementlearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d299b01acadd19b9fc083a6340d15fbd0d1ec391
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:71b44a11410cf6ac35e3998565b11dfb453ccafba2ef50f61f6c75375d350862
+size 567335
diff --git a/learningwhenandwheretozoomwithdeepreinforcementlearning/layout.json b/learningwhenandwheretozoomwithdeepreinforcementlearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1eef351a4e27c8cd45b68d2f936274c4cd59155d
--- /dev/null
+++ b/learningwhenandwheretozoomwithdeepreinforcementlearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c993ef6c0acda83a6588103252985a5dd7dc52a1bcdcc5e5550f2e00379787f1
+size 470226
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_content_list.json b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a6e1d087f3316d80919e8fc658df16a964051d03
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ef6516a639c558638815dbcca25757ca32f040e1ba8ea982099cf231277624d
+size 80666
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_model.json b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5f19aa36dcfe2c19952e8b7ad28a8f9285c800f6
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5327bca96b50879fc6a7fb8637b544c0936fa108eab47d5da5aafec03c752334
+size 100758
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_origin.pdf b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ba78b74f0ac48a48072444f1e37d9a9146b564a7
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/3f2cbeee-2045-4fac-b39d-8d3c316a8723_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f0b24bd9fe2fccd6a9fa30d36ff3e9274d36e33e8c5504bb63290d6e94da433
+size 908322
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/full.md b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0987a9a65e942da0952165529281da1e2818418e
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/full.md
@@ -0,0 +1,372 @@
+# Learn to Augment: Joint Data Augmentation and Network Optimization for Text Recognition
+
+Canjie Luo $^{1}$ , Yuanzhi Zhu $^{1}$ , Lianwen Jin $^{1*}$ , Yongpan Wang $^{2}$
+
+$^{1}$ South China University of Technology, $^{2}$ Alibaba Group
+
+{canjie.luo, zzz.yuanzhi, lianwen.jin}@gmail.com, yongpan@taobao.com
+
+# Abstract
+
+Handwritten text and scene text suffer from various shapes and distorted patterns. Thus training a robust recognition model requires a large amount of data to cover diversity as much as possible. In contrast to data collection and annotation, data augmentation is a low cost way. In this paper, we propose a new method for text image augmentation. Different from traditional augmentation methods such as rotation, scaling and perspective transformation, our proposed augmentation method is designed to learn proper and efficient data augmentation which is more effective and specific for training a robust recognizer. By using a set of custom fiducial points, the proposed augmentation method is flexible and controllable. Furthermore, we bridge the gap between the isolated processes of data augmentation and network optimization by joint learning. An agent network learns from the output of the recognition network and controls the fiducial points to generate more proper training samples for the recognition network. Extensive experiments on various benchmarks, including regular scene text, irregular scene text and handwritten text, show that the proposed augmentation and the joint learning methods significantly boost the performance of the recognition networks. A general toolkit for geometric augmentation is available1.
+
+# 1. Introduction
+
+The last decade witnessed the tremendous progress brought by the deep neural network in the computer vision community [3, 11, 14, 21]. Limited data is not sufficient to train a robust deep neural network, because the network may overfit to the training data and produce poor generalization on the test set [5]. However, data collection and annotation require a lot of resources. Different from single object classification task [21], the annotation work of text string is more tough, because there are multiple charac
+
+
+Figure 1. (a) Existing geometric augmentation, including rotation, scaling and perspective transformation; (b) Our proposed flexible augmentation. Moreover, a joint learning method bridges the isolated processes of data augmentation and network training.
+
+ters in a text image. This is also a reason why most state-of-the-art scene text recognition methods [23, 28, 38] only used synthetic samples [13, 17] for training. The data limitation also effects handwritten text recognition. There exists a wide variety of writing styles. Collecting large scale annotated handwritten text image is high-cost and cannot cover all diversities [47]. It is also challenging to generate synthetic data for handwritten text, because it is difficult to imitate various writing styles.
+
+To obtain more training samples, it is possible to apply random augmentation to the existing data [9]. Handwritten text with varying writing styles, and scene text with different shapes, such as perspective and curved text, are still very challenging to be recognized [5, 28, 38]. Therefore, geometric augmentation is an important way to gain robustness for recognition methods. As shown in Figure 1 (a), the common geometric transformations are rotation, scaling and perspective transformation. Multiple characters in an image are regarded as one entity, and a global augmentation is performed on the image. However, the diversity of each character should be taken into account. Given a text image, the augmentation goal is to increase the diver
+
+sity of every character in the text string. Therefore, existing augmentation is limited to the over-simple transformations, which are inefficient for training.
+
+In addition, the effective training samples that contribute to the robustness of the network may still be rare because of the long-tail distribution [31], which is another reason that causes inefficient training. The strategy of random augmentation is the same for every training sample, neglecting the difference among the samples and the optimization procedure of the network. Under the manually controlled static distribution, the augmentation may produce many "easy" samples which are useless for the training. Therefore, random augmentation under the static distribution can hardly meet the requirement of the dynamic optimization. Simultaneously, the manually designed best augmentation strategy on a dataset, usually cannot be transferred to another dataset as expected. Our goal is to study a learnable augmentation method that can automatically adapt to other tasks without any manual modification.
+
+In this paper, we propose a new data augmentation method for text recognition, which is designed for sequence-like characters [36] augmentation. Our augmentation method focuses on the spatial transformation of images. We first initialize a set of fiducial points on the image and then move the points to generate a new image. The moving state, which represents the movement of the points to create "harder" training samples, is sampled from the predicted distribution of the agent network. Then the augmentation module takes the moving state and image as input, and generates a new image. We adopt similarity transformation based on moving least squares [35] for image generation. Besides, a random moving state is also fed to the augmentation module to generate a randomly augmented image. Finally, the agent learns from the moving state that increases recognition difficulty. The difficulty is measured under the metric of edit distance, which is highly relevant to the recognition performance.
+
+To summarize, our contributions are as follows:
+
+- We propose a data augmentation method for text images that contain multiple characters. To the best of our knowledge, this may be the first augmentation method specially designed for sequence-like characters.
+- We propose a framework that jointly optimizes the data augmentation and the recognition model. The augmented samples are generated through an automatic learning process, and are thus more effective and useful for the model training. The proposed framework is end-to-end trainable without any fine-tuning.
+- Extensive experiments conducted on various benchmarks, including scene text and handwritten text, show that the proposed augmentation and joint learning methods remarkably boost the performance of the recognizers, especially on small training dataset.
+
+# 2. Related Work
+
+Scene Text Recognition As an essential process in computer vision tasks, scene text recognition has attracted much research interest [22, 23, 28, 38]. There are multiple characters in a scene text image. Thus the text string recognition task is more difficult than single character recognition. Typically, scene text recognition approaches can be divided into two types: localization-based and segmentation-free.
+
+The former attempts to localize the position of characters, recognize them and group all the characters as a text string [41, 42]. The latter benefits from the success of deep neural network and models the text recognition as a sequence recognition problem. For instance, He et al. [15] and Shi et al. [36] applied recurrent neural networks (RNNs) on the top of convolutional neural networks (CNNs) for spatial dependencies of sequence-like objects. Furthermore, the sequence-to-sequence mapping issue was addressed by attention mechanism [38].
+
+The great progress in regular text recognition led the community to irregular text recognition. Luo et al. [28] and Shi et al. [38] proposed rectification networks to remove distortion and decrease recognition difficulty. Zhan and Lu [46] iteratively removed perspective distortion and text line curvature. Yang et al. [43] gave an accurate description of text shape by using more geometric constraints and supervisions for every character. Though the methods above made a notable step forward, irregular scene text recognition still remains a challenging problem.
+
+Handwritten Text Recognition Due to various writing styles, handwritten text recognition is still a challenging field [5]. Early methods used hybrid hidden Markov model [10] and embedded both word images and text strings in a common vectorial subspace to cast recognition tasks as nearest neighbor problems [1].
+
+In the deep learning era, Sueiras et al. [39] and Sun et al. [40] extracted feature by using CNNs followed by RNNs, and obtained superior results. Zhang et al. [47] addressed handwriting style diversity problem by proposing a sequence-to-sequence domain adaptation Network. Bhunia et al. [5] adversarially warped the intermediate feature-space to alleviate the lack of variations in some sparse training datasets. While great progress has been made, handwritten text recognition remains an open and challenging problem because of various writing styles.
+
+Data Augmentation Data augmentation is critical to avoid overfitting in the training of deep neural networks [9, 16, 31]. Nevertheless, few research addresses the augmentation issue for text images. Common geometric augmentations including flipping, rotation, scaling and perspective transformation, are typically useful for single object recognition [21]. However, a text image contains multiple characters. Existing over-simple transformations do not significantly contribute to the diversity of text appearance.
+
+
+Figure 2. Overview of the proposed framework. First, the learnable agent predicts a distribution of the moving state aiming to create a harder training sample. Then the augmentation module generates augmented samples based on the random and predicted moving state, respectively. The difficulty of the pair of samples is measured by the recognition network. Finally, the agent takes the moving state that increases difficulty as guidance and updates itself. The unified framework is end-to-end trainable.
+
+Simultaneously, the static augmentation policy does not meet the dynamic requirement of optimization. Cubuk et al. [9] searched the policy for augmentation by using reinforcement learning. Ho et al. [16] generated flexible augmentation policy schedules to speed up the searching procedure (5000 GPU hours to 5 GPU hours on CIFAR-10). Peng et al. [31] augmented samples by adversarial learning with pre-training processes.
+
+With respect to text recognition, the training of the recognizer requires much data. The widely used synthetic datasets [13, 17] provide more than 10 million samples. However, Li et al. [22] additionally used approximately 50k public real datasets for training and significantly improved recognition performance, which suggests that the recognition models are still data-hungry. As for handwritten text, existing training data can hardly cover various writing styles and generating synthetic handwritten data is also challenging. Unlike scene text synthesis, there is few font in writing style to render on a canvas.
+
+Our method is proposed for multiple characters augmentation in an automatic manner. An agent network searches hard training samples online. Moreover, the framework is end-to-end trainable without any fine-tuning.
+
+# 3. Methodology
+
+# 3.1. Overall Framework
+
+As illustrated in Figure 2, the proposed framework consists of three main modules: an agent network, an augmentation module and a recognition network. First, we initialize a set of custom fiducial points on the image. A moving state predicted by the agent network and a randomly generated moving state are fed to the augmentation module. The moving state indicates the movement of a set of custom fiducial points. Then the augmentation module takes the image as input, and applies transformation based on the moving states respectively. The recognizer predicts text strings on the augmented images. Finally, we measure the recogni
+
+tion difficulty of the augmented images under the metric of edit distance. The agent learns from the moving state that increases difficulty, and explores the weakness of the recognizer. As a result, the recognizer gains robustness from the hard training samples.
+
+As we only use the prediction of the recognition network and the difficulty is measured by edit distance rather than other loss functions, the recognition network can be replaced by recent advanced methods [36, 38], which we will demonstrate in the section 4. In this section, we describe the augmentation module and the joint training scheme of the proposed framework.
+
+# 3.2. Text Augmentation
+
+Given a text image, the augmentation goal is to increase the diversity of every character in the text string. This motivates us to use more custom fiducial points for transformation. As shown in Figure 3, we averagely divide the image into $N$ patches and initialize $2(N + 1)$ fiducial points $p$ along the top and bottom image borders. After that, we augment images by following a certain distribution and randomly moving the fiducial points to $q$ within the radius $R$ .
+
+To generate an augmented image, we apply similarity deformation based on moving least squares [35] on the input image. Given a point $u$ in the image, the transformation for $u$ is
+
+$$
+T (u) = \left(u - p _ {*}\right) \mathbf {M} + q _ {*}, \tag {1}
+$$
+
+where $\mathbf{M} \in \mathbb{R}^{2 \times 2}$ is a linear transformation matrix that is constrained to have the property $M^{\mathrm{T}} M = \lambda^2 I$ for some scalar $\lambda$ . Here $p_*$ and $q_*$ are the weighted centroids of initialized fiducial points $p$ and moved fiducial points $q$ , respectively:
+
+$$
+p _ {*} = \frac {\sum_ {i = 1} ^ {2 (N + 1)} w _ {i} p _ {i}}{\sum_ {i = 1} ^ {2 (N + 1)} w _ {i}}, q _ {*} = \frac {\sum_ {i = 1} ^ {2 (N + 1)} w _ {i} q _ {i}}{\sum_ {i = 1} ^ {2 (N + 1)} w _ {i}}. \tag {2}
+$$
+
+
+Figure 3. Text augmentation. The image is divided into three patches $(N = 3)$ and the moving radius is limited to ten $(R = 10)$ . The red points denote control points.
+
+The weight $w_{i}$ for point $u$ has the form
+
+$$
+w _ {i} = \frac {1}{\left| p _ {i} - u \right| ^ {2 \alpha}}, u \neq p _ {i}. \tag {3}
+$$
+
+Note that as $u$ approaches $p_i$ , the weight $w_i$ increases. This means that $u$ mostly depends on the movement of the nearest fiducial point. The $w_i$ is bounded. If $u = p_i$ , then $T(u) = u$ . Here we set $\alpha = 1$ .
+
+The best transformation $T(u)$ is obtained by minimizing
+
+$$
+\sum_ {i = 1} ^ {2 (N + 1)} w _ {i} \left| T _ {u} \left(p _ {i}\right) - q _ {i} \right| ^ {2}, \tag {4}
+$$
+
+to yield the unique minimizer [35].
+
+Discussion Though Thin Plate Spline Transformation (TPS) [6] has achieved success in shape rectification [38] and feature-level adversarial learning [5], it is reported that TPS appears non-uniform scaling and shearing, which is undesirable in many applications [35]. One possible reason why previous work used TPS may be all the operators in TPS are differentiable and can be found in most mainstream
+
+
+
+
+
+
+Elastic (Similarity)
+
+
+Rigid
+Figure 4. Comparison of the elastic (similarity) and rigid transformation. The movements of the fiducial points on all the images are the same. The rigid transformation retains relative shape (realistic for general object), but text image augmentation requires more flexible deformation for every character. Therefore, the elastic (similarity) transformation is more suitable for text image augmentation.
+
+deep learning libraries. As the learning of our augmentation is free of backward calculation of recognition loss, and our goal is to setup a general augmentation, we choose similarity deformation based on moving least squares as our transformation strategy. Besides, we also compare similarity transformation with rigid transformation [35], which is regarded as the most realistic transformation for general object. As illustrated in Figure 4, the rigid transformation retains relative shape (realistic for general object), but the similarity transformation is more suitable for text image augmentation, because it provides more flexible deformation for every character. Further analysis is given in Section 4.4 and Table 2.
+
+# 3.3. Learnable Agent
+
+Different from the previous smart augmentation method [9] that used reinforcement learning to search for best policies, we solve the learning problem in a faster and more efficient fashion. Inspired by heuristic algorithms, we find solutions among all possible ones. As the training procedure is dynamic, approximate solutions are sufficient and exact solutions are computationally expensive. For every step in the training procedure, we generate a variation of the predicted moving state. It serves as a candidate of learning target. If the random moving state increases recognition difficulty, then the agent learns from the moving state. In contrast, we reverse the learning target if the moving state decreases recognition difficulty.
+
+We formulate the problem of finding harder distorted sample as a movement learning problem. As illustrated in Figure 3, given an image, we randomly move the fiducial points to warp the image. The moving operation $(\Delta x, \Delta y)$ for every fiducial point is associated with two factors: 1) the direction of movement, namely, the signs of $(\Delta x, \Delta y)$ ; 2) the distance of movement, namely, $(|\Delta x|, |\Delta y|)$ . In our practice, the learning of distance fails to converge. It is hard for the agent network to precisely learn the distance of the movement. Another interesting observation is that the failed agent network always predicts maximum moving distance to create excessive distorted samples, which reduced the stability of recognizer training. Therefore, we limit the learning space to the direction of movement. Based on the moving direction, the moving distance is randomly generated within the range of radius. It avoids tedious movement predicted by the agent network, because the randomness introduces uncertainties in the augmentation. Moreover, the agent network can be designed as a lightweight architecture. As shown in Table 1, the agent network consists of only six convolutional layers and a fully connected layer. The storage requirement of the agent network is less than $1.5\mathrm{M}$ .
+
+The learning scheme of the agent network is shown in Algorithm 1. First, the learnable agent predicts a moving state distribution aiming to create a harder training sample.
+
+# Algorithm 1 Joint Learning Scheme
+
+Input image $I_{in}$ and Ground truth $GT$ ;
+
+Patch number $N$ and Moving radius $R$ ;
+
+Initialized fiducial points $p$
+
+1: Sample moving state as $S$ from predicted distribution:
+
+$$
+S = \operatorname {A g e n t} \left(I _ {i n}\right).
+$$
+
+2: Generate random moving state $S'$ (randomly select one point in $S$ and switch to the opposite direction).
+3: Both $S$ and $S'$ contain direction for movement.
+4: Within the range of $R$ , randomly move $p$ based on $S'$ and $S'$ to obtain $q$ and $q'$ , respectively.
+
+$$
+I _ {A u g} = \operatorname {A u g m e n t} \left(I _ {i n}, p, q\right),
+$$
+
+$$
+I _ {A u g} ^ {\prime} = \operatorname {A u g m e n t} \left(I _ {i n}, p, q ^ {\prime}\right).
+$$
+
+5: Recognize $I_{Aug}$ and $I_{Aug}'$ :
+
+$$
+R e g = \operatorname {R e c o n c i n z e r} \left(I _ {A u g}\right),
+$$
+
+$$
+R e g ^ {\prime} = \operatorname {R e c o n c i n z e r} \left(I _ {A u g} ^ {\prime}\right).
+$$
+
+6: Update Recognizer using $I_{Aug}$ .
+7: Measure difficulty by edit distance $\mathbf{ED}(\cdot)$ :
+8: if $\mathbf{ED}(Reg, GT) \leq \mathbf{ED}(Reg', GT)$ then
+
+$S^{\prime}$ increases recognition difficulty.
+
+Update Agent network with $S'$ by minimizing:
+
+$$
+2 (N + 1)
+$$
+
+$$
+L o s s = - \sum_ {i = 1} \log \left(P \left(S _ {i} ^ {\prime} \mid I _ {i n}\right)\right) \tag {5}
+$$
+
+9: else
+
+Update Agent network with reversed direction $-S^{\prime}$ by minimizing:
+
+$$
+2 (N + 1)
+$$
+
+$$
+L o s s = - \sum_ {i = 1} \log \left(P \left(- S _ {i} ^ {\prime} \mid I _ {i n}\right)\right) \tag {6}
+$$
+
+A random moving state is also fed to the augmentation module. Then the augmentation module generates augmented samples based on the two moving state, respectively. After that, the recognition network takes the augmented samples as input and predicts text strings. The difficulty of the pair of samples is measured by the edit distance between the ground truth and predicted text strings. Finally, the agent takes the moving state that increase difficulty as guidance and updates itself. The unified framework is end-to-end trainable.
+
+# 4. Experiments
+
+In this section, we conduct extensive experiments on various benchmarks, including regular and irregular scene text, and handwritten text. We first conduct ablation studies to analyze the impact of the size of training data, the number of divided patches $N$ and the moving radius $R$ on performance. Our method is also compared to existing affine and
+
+rigid transformations. Then we integrate state-of-the-art recognition models with our method to show the effectiveness of our learnable data augmentation. Finally, we combine our method with the feature-level adversarial learning method [5] to further boost the recognition performance, which suggests that our method is flexible and can be applied in other augmentation systems.
+
+# 4.1. Scene Text Datasets
+
+The widely used synthetic datasets [17] and [13] contain 9-million and 8-million synthetic words respectively. We randomly sample 10k, 100k and 1 million images (referred to as Syn-10k, Syn-100k and Syn-1m respectively) for ablation studies.
+
+Real-50k is collected by Li et al. [22] from all the public real datasets, containing approximately 50k samples.
+
+IIIT 5K-Words [30] (IIIT5K) contains 3000 cropped word images for testing.
+
+Street View Text [41] (SVT) consists of 647 word images for testing. Many images are severely corrupted by noise and blur.
+
+ICDAR 2003 [27] (IC03) contains 867 cropped images after discarding images that contained non-alphanumeric characters or had fewer than three characters [41].
+
+ICDAR 2013 [20] (IC13) inherits most of its samples from IC03. It contains 1015 cropped images.
+
+Street View Text Perspective [33] (SVT-P) contains 645 cropped images for testing. Most of them are perspective distorted.
+
+CUTE80 [34] (CT80) contains 80 high-resolution images taken in natural scenes. It was specifically collected to evaluate the performance of curved text recognition. It contains 288 cropped natural images.
+
+ICDAR 2015 [19] (IC15) is obtained by cropping the words using the ground truth word bounding boxes and includes more than 200 irregular text images.
+
+Table 1. Architecture of the agent network. "AP" denotes $2 \times 2$ average pooling. "BN" represents batch normalization. The kernel size, stride and padding size of all the convolutional layers are 3, 1 and 1, respectively. The output size means $2(\mathrm{N} + 1)$ points, two coordinates and two moving directions.
+
+| Type | Size |
| Input | 1 × 32 × 100 |
| Conv-16, ReLU, AP | 16 × 16 × 50 |
| Conv-64, ReLU, AP | 64 × 8 × 25 |
| Conv-128, BN, ReLU | 128 × 8 × 25 |
| Conv-128, ReLU, AP | 128 × 4 × 12 |
| Conv-64, BN, ReLU | 64 × 4 × 12 |
| Conv-16, BN, ReLU, AP | 16 × 2 × 6 |
| FC-8(N+1) | 8(N+1) |
| Reshape | 2(N+1) × 2 × 2 |
+
+# 4.2. Handwritten Text Datasets
+
+IAM [29] contains more than 13,000 lines and 115,000 words written by 657 different writers.
+
+RIMES [2] contains more than 60,000 words written in French by over 1000 authors.
+
+# 4.3. Implementation Details
+
+Network The architecture of the agent network is detailed in Table 1, which is a lightweight network (less than $1.5\mathrm{M}$ ) consisting of six convolutional layers and a fully connected layer. The output size means $2(N + 1)$ points, two coordinates and two moving directions. As we use the edit distance as the metric of difficulty, the framework is independent of various recognition losses. For instance, Shi et al. [36] adopted CTC loss [12] for convolutional recurrent neural network and the attentional decoders [28, 38] are guided by the cross-entropy loss. Therefore, our framework is friendly to different recognizers. We show the flexibility of our method in the following experiments.
+
+Optimization In the ablation study, we use ADADELTA [45] with default learning rate as the optimizer. The batch size is set to 64. All the images are resized to (32,100). When our method is integrated with recent state-of-the-art recognizers, the experiment settings, including optimizer, learning rate, image size, and training and testing datasets, are the same as those of the recognizers for the sake of fair comparison.
+
+Environment All experiments are conducted on NVIDIA 1080Ti GPUs. The augmentation module takes less than 2ms to generate a (32, 100) image on a 2.0GHz CPU. It is possible to take advantage of multi-threaded acceleration. For every iteration, the end-to-end training with learnable augmentation takes less than 1.5 times of the training time of the single recognizer. If it is trained with random augmentation, there is nearly no extra time consumption.
+
+# 4.4. Ablation Study
+
+In this section, we perform a series of ablation studies. As the released scene text datasets [13, 17] provide tens of millions of training samples, it is possible to sample small datasets with three orders of scales. Therefore, we conduct ablation studies on scene text datasets. The training datasets are Real-50k, Syn-10k, Syn-100k and Syn-1m. We use ADADELTA [45] with default learning rate as the optimizer. The batch size is set to 64. All the images are resize to (32, 100). In Table 2, we combine all the scene text testing sets as a unified large dataset for evaluation.
+
+As the attentional recognizer is the most cutting-edge method, we choose the network equipped with ResNet and attentional decoder in [38] as the recognizer. The recognizer trained without any augmentation serves as a baseline. Following the widely used evaluation metric [28, 38], the per
+
+Table 2. Ablation studies on the size of training data and transformation with the settings of $N = 3$ and $R = {10}$ . "Aug." denotes our augmentation method under a randomly initialized distribution for direction sampling.
+
+| Method | Real-50k | Syn-10k | Syn-100k | Syn-1m |
| baseline | 54.1 | 7.7 | 39.5 | 60.9 |
| Affine | 58.6 | 16.9 | 43.9 | 61.7 |
| Rigid | 58.7 | 17.5 | 44.9 | 63.9 |
| Aug. | 63.4 | 20.1 | 48.6 | 65.9 |
| Aug.+Agent | 66.5 | 21.7 | 51.2 | 67.4 |
+
+formance is measured by word accuracy in Table 2-4. To ensure that the training is sufficient, we train the models 10 more epochs after they achieve highest accuracy.
+
+Size of Training data As shown in Table 2, the recognizer using our learnable augmentation method outperforms the baseline by a large margin. For instance, the largest margin of $14.0\%$ is on the Syn-10k dataset. This suggests that our proposed method greatly improves the generalization of recognizer in small-data settings. With the increase of the dataset size, the gap reduces. But there is still a significant accuracy increase of $6.5\%$ on the one million training data Syn-1m.
+
+Transformation Affine transformation [18] including rotation, scaling and translation, is compared with our augmentation method in Table 2. The results show that the recognizer using affine augmentation outperforms the baseline but still falls behind the recognizer that uses our augmentation method, because the affine transformation is limited to designed geometric deformations, which are unable to cover the diversity of text appearance. We also conduct an experiment to study the effectiveness of the rigid transformation. As discussed in Section 3.2, although the rigid transformation is realistic for general object [35], the similarity transformation is more suitable for text image augmentation.
+
+Learnable Agent In Table 2, the agent network further boosts the performance by jointly learning data augmentation and recognizer training. In particular, it achieves an
+
+
+Figure 5. Training loss on Real-50k and testing accuracy on the large evaluation dataset.
+
+
+
+Table 3. Ablation studies on the number of patches. $R$ is set to 10.
+
+| N | IIIT5K | SVT | IC03 | IC13 | SVT-P | CT80 | IC15 |
| 1 | 23.5 | 6.6 | 19.6 | 22.3 | 6.0 | 10.4 | 10.6 |
| 2 | 29.8 | 10.5 | 29.3 | 29.3 | 8.2 | 14.6 | 14.3 |
| 3 | 29.4 | 10.8 | 27.2 | 29.6 | 9.1 | 16.3 | 14.3 |
| 4 | 26.5 | 7.3 | 22.6 | 25.6 | 5.8 | 11.5 | 11.0 |
| 5 | 26.1 | 7.4 | 22.6 | 26.9 | 6.0 | 13.5 | 11.2 |
+
+Table 4. Ablation studies on the moving radius. $N$ is set to 3.
+
+| R | IIIT5K | SVT | IC03 | IC13 | SVT-P | CT80 | IC15 |
| 0 | 10.9 | 2.3 | 9.0 | 13.0 | 1.8 | 5.2 | 3.6 |
| 2 | 13.4 | 2.2 | 9.8 | 14.2 | 2.0 | 5.2 | 4.3 |
| 5 | 20.3 | 4.6 | 17.0 | 20.4 | 4.2 | 9.0 | 7.8 |
| 10 | 29.4 | 10.8 | 27.2 | 29.6 | 9.1 | 16.3 | 14.3 |
| 15 | 28.8 | 8.3 | 26.1 | 27.8 | 6.3 | 13.2 | 12.2 |
+
+accuracy increase of $3.1\%$ when the recognizer is trained using Real-50k. The curves of training loss on Real-50k and testing accuracy on the large evaluation dataset are illustrated in Figure 5. An interesting observation is that the loss of the recognizer with learnable agent decreases slower than others, which suggests that the agent network explores the weakness of the recognizer and generates harder samples for training. Thus the recognizer keeps learning and gains robustness. In contrast, the traditional recognizer stops learning when the loss is close to zero.
+
+Patch Number and Moving Radius We study two key parameters $N$ and $R$ respectively. The training dataset is Syn-10k. Table 3 and Table 4 show the experiment results. We find that for regular text, to achieve the best performance, the patch number $N$ can be set to 2 or 3. As for irregular text (SVT-P, CT80 and IC15), it is better to set $N$ to 3, because under this setting, numerous curve text images are generated for training. The recognizer thus gains robustness. We further illustrate the effectiveness of the variance of moving radius $R$ in Table 4. The best setting for a (32, 100) image is $R = 10$ . In the following experiments, we use the best setting for $N$ and $R$ for further studies.
+
+# 4.5. Integration with State-of-the-art Methods
+
+In this section, we integrate our proposed method with state-of-the-art recognizers. The augmented samples for different tasks are shown in Figure 6. We first show the improvement of attention-based recognizer [38] on irregular scene text benchmarks. Then we validate the generalization of our method by using CTC-based recognizer [5] and conducting experiments on handwritten text. Note that our method automatically adap to general text recognition tasks without any manual modification. Moreover, we show that our method is flexible and can be integrated with other augmentation systems to further boost the performance.
+
+Irregular Scene Text Recognition Irregular shape is
+
+
+Figure 6. Visualization of augmented samples on (a) scene text and (b) handwritten text.
+
+
+
+one of the challenges for scene text recognition. ASTER proposed by Shi et al. [38] is an attention-based recognizer equipped with rectification network. We study the robustness of the recognizer by augmenting training samples and increasing the diversity of text appearance. The experiment settings, including optimizer, learning rate, image size, and training datasets, are the same as ASTER [38].
+
+The performance improved by our method is compared to state-of-the-art methods. Although using real samples [22] and character-level geometric constraints [43] to train the recognizer can significantly improve the performance, we follow the setting of most methods for fair comparison. As Zhan and Lu [46] rectified images for several times and Shi et al. [38] only performed rectification once, we choose the result with one rectification iteration reported in the paper. The performance of scene text recognizers is measured
+
+Table 5. Word accuracy on irregular text. “*” denotes the result is from one rectification iteration for fair comparison.
+
+| Method | Irregular Text |
| SVT-P | CT80 | IC15 |
| Shi, Bai, and Yao [36] | 66.8 | 54.9 | - |
| Shi et al. [37] | 71.8 | 59.2 | - |
| Liu et al. [25] | 73.5 | - | - |
| Yang et al. [44] | 75.8 | 69.3 | - |
| Cheng et al. [7] | 71.5 | 63.9 | 70.6 |
| Liu, Chen, and Wong [24] | - | - | 60.0 |
| Cheng et al. [8] | 73.0 | 76.8 | 68.2 |
| Bai et al. [4] | - | - | 73.9 |
| Liu et al. [26] | 73.9 | 62.5 | - |
| Luo, Jin, and Sun [28] | 76.1 | 77.4 | 68.8 |
| Liao et al. [23] | - | 78.1 | - |
| Shi et al. [38] | 78.5 | 79.5 | 76.1 |
| Zhan and Lu [46]* | 77.3 | 78.8 | 75.8 |
| baseline (ASTER [38]) + Ours | 77.7 | 79.9 | 75.8 |
| 79.2 | 84.4 | 76.1 |
+
+by word accuracy.
+
+As shown in Table 5, we first reproduce the same recog- nizer as ASTER [38], which serves as a baseline. The results of the reimplemented ASTER are comparable to the results in the original paper. Then we integrate our method with the recnizer. A significant accuracy gain occurs on CT80 $(4.5\%)$ . It is noteworthy that there is still a notable improvement $(1.5\%)$ on SVT-P, which contains images with noise, blur and low-resolution. Though abundant synthetic samples may cover a lot of variation of text appearance, our augmentation shows reasonable improvement on irregular text recognition. The result is competitive with recent state- of-the-art methods.
+
+Handwritten Text Recognition As the diversity of handwriting styles is the main challenge of handwritten text recognition [1] and limited training data is difficult to cover all handwriting styles, we evaluate our model on two popular datasets IAM [29] and RIMES [2] to validate the effectiveness of our method. We use Character Error Rate (CER) and Word Error Rate (WER) as metrics for handwritten text recognition. The CER measures the Levenshtein distance normalized by the length of the ground truth. The WER denotes the ratio of the mistakes at the word level, among all words of the ground truth.
+
+We compare our method to state-of-the-art methods in the Table 6 and Table 7. Besides, a comparison with previous augmentation method of Bhunia et al. [5] is conducted. For fair comparisons, our experiment settings are the same with [5].
+
+We apply the same CTC-based recognition network as [5]. The baseline shown in Table 6 and Table 7 is the reproduced result. Further, we reproduce Adversarial Feature Deformation Module (AFDM) [5] in the recognition network. The AFDM is the key module proposed by Bhunia et al. [5] for smart augmentation. The accuracy increases as
+
+Table 6. Comparison with previous methods on IAM. AFDM is the key module of [5].
+
+| Method | Unconstrained | Lexicon |
| WER | CER | WER | CER |
| Bosquera et al. [10] | - | - | 20.01 | 11.27 |
| Almazán et al. [1] | - | - | 15.50 | 6.90 |
| Sun et al. [40] | - | - | 11.51 | - |
| Sueiras et al. [39] | 23.80 | 8.80 | 19.70 | 9.50 |
| Ptucha et al. [32] | - | - | 8.22 | 4.70 |
| Zhang et al. [47] | 22.20 | 8.50 | - | - |
| Bhunia et al. [5] | 17.19 | 8.41 | 8.87 | 5.94 |
| baseline | 19.12 | 7.39 | 10.07 | 5.41 |
| + Ours | 14.04 | 5.34 | 7.52 | 3.82 |
| + AFDM [5] | 16.40 | 6.40 | 8.77 | 4.67 |
| + Ours + AFDM [5] | 13.35 | 5.13 | 7.29 | 3.75 |
+
+Table 7. Comparison with previous methods on RIMES. AFDM is the key module of [5].
+
+| Method | Unconstrained | Lexicon |
| WER | CER | WER | CER |
| Sueiras et al. [39] | 15.90 | 4.80 | 13.10 | 5.70 |
| Ptucha et al. [32] | - | - | 5.68 | 2.46 |
| Bhunia et al. [5] | 10.47 | 6.44 | 6.31 | 3.17 |
| baseline | 13.83 | 3.93 | 4.94 | 2.02 |
| + Ours | 9.23 | 2.57 | 4.41 | 1.49 |
| + AFDM [5] | 11.81 | 3.33 | 4.85 | 1.92 |
| + Ours + AFDM [5] | 8.67 | 2.42 | 3.90 | 1.37 |
+
+expected. Note that our reproduced results are better than most of the results (7 of 8) in the original paper, which verifies the effectiveness of our implementations and experiments. We find that our augmentation greatly contributes to the robustness of the recognizer. It improves the performance by a large margin (5.08% unconstrained WER reduction on IAM) and significantly performs better than AFDM. The recognizer trained using our method also outperforms all the state-of-the-art methods.
+
+Finally, we use both AFDM and our method for training and further boost the performance of the recognizer by a notable accuracy increase. This suggests that our method is a meta framework, which can be applied in other augmentation systems.
+
+# 5. Conclusion
+
+In this paper, we propose a learnable augmentation method for the training of text recognizer. Our method may be the first geometric augmentation method specifically designed for sequence-like characters. Furthermore, our method bridges the gap between the data augmentation and network optimization by joint learning. The proposed method is simple yet effective. It is able to automatically adapt to general text recognition tasks without any manual modification. Extensive experiments show that our method boosts the performance of the recognizers for both scene text and handwritten text. Moreover, our method is a meta framework that potentially can be incorporated into other augmentation systems. In future, we will extend our method for more general applications in multiple object detection and recognition.
+
+# Acknowledgement
+
+This research is supported in part by NSFC (Grant No.: 61936003), the National Key Research and Development Program of China (No. 2016YFB1001405), and GD-NSF (no.2017A030312006).
+
+# References
+
+[1] Jon Almazán, Albert Gordo, Alicia Fornés, and Ernest Valveny. Word spotting and recognition with embedded attributes. IEEE Trans. Pattern Anal. Mach. Intell., 36(12):2552-2566, 2014. 2, 8
+[2] Emmanuel Augustin, Matthieu Carre, Emmanuele Grosicki, J-M Brodin, Edouard Geoffrois, and Françoise Préteux. Rimes evaluation campaign for handwritten mail processing. In IWFHR, pages 231-235, 2006. 6, 8
+[3] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. 1
+[4] Fan Bai, Zhanzhan Cheng, Yi Niu, Shiliang Pu, and Shuigeng Zhou. Edit probability for scene text recognition. In CVPR, pages 1508-1516, 2018. 7
+[5] Ayan Kumar Bhunia, Abhirup Das, Ankan Kumar Bhunia, Perla Sai Raj Kishore, and Partha Pratim Roy. Handwriting recognition in low-resource scripts using adversarial learning. In CVPR, pages 4767-4776, 2019. 1, 2, 4, 5, 7, 8
+[6] Fred L. Bookstein. Principal warps: Thin-plate splines and the decomposition of deformations. IEEE Trans. Pattern Anal. Mach. Intell., 11(6):567-585, 1989. 4
+[7] Zhanzhan Cheng, Fan Bai, Yunlu Xu, Gang Zheng, Shiliang Pu, and Shuigeng Zhou. Focusing attention: Towards accurate text recognition in natural images. In ICCV, pages 5086-5094, 2017. 7
+[8] Zhanzhan Cheng, Yangliu Xu, Fan Bai, Yi Niu, Shiliang Pu, and Shuigeng Zhou. AON: Towards arbitrarily-oriented text recognition. In CVPR, pages 5571-5579, 2018. 7
+[9] Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. AutoAugment: Learning augmentation strategies from data. In CVPR, pages 113-123, June 2019. 1, 2, 3, 4
+[10] Salvador Espana-Boquera, Maria Jose Castro-Bleda, Jorge Gorbe-Moya, and Francisco Zamora-Martinez. Improving offline handwritten text recognition with hybrid hmm/ann models. IEEE Trans. Pattern Anal. Mach. Intell., 33(4):767-779, 2010. 2, 8
+[11] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, pages 2672–2680, 2014. 1
+[12] Alex Graves, Santiago Fernández, Faustino Gomez, and Jürgen Schmidhuber. Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks. In ICML, pages 369-376, 2006. 6
+[13] Ankush Gupta, Andrea Vedaldi, and Andrew Zisserman. Synthetic data for text localisation in natural images. In CVPR, pages 2315-2324, 2016. 1, 3, 5, 6
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 1
+[15] Pan He, Weilin Huang, Yu Qiao, Chen Change Loy, and Xiaou Tang. Reading scene text in deep convolutional sequences. In AAAI, pages 3501-3508, 2016. 2
+[16] Daniel Ho, Eric Liang, Xi Chen, Ion Stoica, and Pieter Abbeel. Population based augmentation: Efficient learning
+
+of augmentation policy schedules. In ICML, pages 2731-2741, 09-15 Jun 2019. 2, 3
+[17] Max Jaderberg, Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Reading Text in the Wild with Convolutional Neural Networks. Int. J. Comp. Vis., 116(1):1-20, May 2015. 1, 3, 5, 6
+[18] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NeurIPS, pages 2017-2025, 2015. 6
+[19] Dimosthenis Karatzas, Lluis Gomez-Bigorda, Anguelos Nicolaou, Suman Ghosh, Andrew Bagdanov, Masakazu Iwamura, Jiri Matas, Lukas Neumann, Vijay Ramaseshan Chandrasekhar, Shijian Lu, et al. ICDAR 2015 competition on robust reading. In ICDAR, pages 1156-1160, 2015. 5
+[20] Dimosthenis Karatzas, Faisal Shafait, Seiichi Uchida, Masakazu Iwamura, Lluis Gomez i Bigorda, Sergi Robles Mestre, Joan Mas, David Fernandez Mota, Jon Almazan Almazan, and Lluis Pere De Las Heras. ICDAR 2013 robust reading competition. In ICDAR, pages 1484-1493, 2013. 5
+[21] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet Classification with Deep Convolutional Neural Networks. In NeurIPS, volume 2, pages 1097-1105, 2012. 1, 2
+[22] Hui Li, Peng Wang, Chunhua Shen, and Guyu Zhang. Show, attend and read: A simple and strong baseline for irregular text recognition. In AAAI, volume 33, pages 8610-8617, 2019. 2, 3, 5, 7
+[23] Minghui Liao, Jian Zhang, Zhaoyi Wan, Fengming Xie, Jia-jun Liang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Scene text recognition from two-dimensional perspective. In AAAI, volume 33, pages 8714-8721, 2019. 1, 2, 7
+[24] Wei Liu, Chaofeng Chen, and Kwan-Yee K Wong. Charnet: A character-aware neural network for distorted scene text recognition. In AAAI, 2018. 7
+[25] Wei Liu, Chaofeng Chen, Kwan-Yee K Wong, Zhizhong Su, and Junyu Han. STAR-Net: A spatial attention residue network for scene text recognition. In BMVC, pages 7–7, 2016. 7
+[26] Yang Liu, Zhaowen Wang, Hailin Jin, and Ian Wassell. Synthetically supervised feature learning for scene text recognition. In ECCV, pages 435-451, 2018. 7
+[27] Simon M Lucas, Alex Panaretos, Luis Sosa, Anthony Tang, Shirley Wong, and Robert Young. ICDAR 2003 robust reading competitions. In ICDAR, pages 682-687, 2003. 5
+[28] Canjie Luo, Lianwen Jin, and Zenghui Sun. MORAN: A multi-object rectified attention network for scene text recognition. Patt. Recogn., 90:109-118, 2019. 1, 2, 6, 7
+[29] U-V Marti and Horst Bunke. The iam-database: an english sentence database for offline handwriting recognition. Int. J. Doc. Anal. Recogn., 5(1):39-46, 2002. 6, 8
+[30] Anand Mishra, Karteek Alahari, and CV Jawahar. Scene text recognition using higher order language priors. In BMVC, pages 1-11, 2012. 5
+[31] Xi Peng, Zhiqiang Tang, Fei Yang, Rogerio S. Feris, and Dimitris Metaxas. Jointly optimize data augmentation and network training: Adversarial data augmentation in human pose estimation. In CVPR, pages 2226-2234, June 2018. 2, 3
+
+[32] Raymond Ptucha, Felipe Petroski Such, Suhas Pillai, Frank Brockler, Vatsala Singh, and Paul Hutkowski. Intelligent character recognition using fully convolutional neural networks. *Patt. Recogn.*, 88:604–613, 2019. 8
+[33] Trung Quy Phan, Palaiahnakote Shivakumara, Shangxuan Tian, and Chew Lim Tan. Recognizing text with perspective distortion in natural scenes. In ICCV, pages 569-576, 2013. 5
+[34] Anhar Risnumawan, Palaiahankote Shivakumara, Chee Seng Chan, and Chew Lim Tan. A robust arbitrary text detection system for natural scene images. Expert Systems with Applications, 41(18):8027-8048, 2014. 5
+[35] Scott Schaefer, Travis McPhail, and Joe Warren. Image deformation using Moving Least Squares. In ACM Transactions on Graphics, pages 533-540, July 2006. 2, 3, 4, 6
+[36] Baoguang Shi, Xiang Bai, and Cong Yao. An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition. IEEE Trans. Pattern Anal. Mach. Intell., 39(11):2298-2304, 2017. 2, 3, 6, 7
+[37] Baoguang Shi, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Robust scene text recognition with automatic rectification. In CVPR, pages 4168-4176, 2016. 7
+[38] Baoguang Shi, Mingkun Yang, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. ASTER: An attentional scene text recognizer with flexible rectification. IEEE Trans. Pattern Anal. Mach. Intell., 41(9):2035-2048, 2019. 1, 2, 3, 4, 6, 7, 8
+[39] Jorge Sueiras, Victoria Ruiz, Angel Sanchez, and Jose F Velez. Offline continuous handwriting recognition using sequence to sequence neural networks. Neurocomputing, 289:119-128, 2018. 2, 8
+[40] Zenghui Sun, Lianwen Jin, Zecheng Xie, Ziyong Feng, and Shuye Zhang. Convolutional multi-directional recurrent network for offline handwritten text recognition. In ICFHR, pages 240-245. IEEE, 2016. 2, 8
+[41] Kai Wang, Boris Babenko, and Serge Belongie. End-to-end scene text recognition. In ICCV, pages 1457-1464, 2011. 2, 5
+[42] Tao Wang, David J Wu, Adam Coates, and Andrew Y Ng. End-to-end text recognition with convolutional neural networks. In ICPR, pages 3304-3308, 2012. 2
+[43] Mingkun Yang, Yushuo Guan, Minghui Liao, Xin He, Kaigui Bian, Song Bai, Cong Yao, and Xiang Bai. Symmetry-constrained rectification network for scene text recognition. In ICCV, pages 9147-9156, 2019. 2, 7
+[44] Xiao Yang, Dafang He, Zihan Zhou, Daniel Kifer, and C Lee Giles. Learning to read irregular text with attention mechanisms. In *IJCAI*, pages 3280–3286, 2017. 7
+[45] Matthew D Zeiler. ADADELTA: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012. 6
+[46] Fangneng Zhan and Shijian Lu. ESIR: End-to-end Scene Text Recognition via Iterative Image Rectification. In CVPR, pages 2059-2068, 2019. 2, 7
+[47] Yaping Zhang, Shuai Nie, Wenju Liu, Xing Xu, Dongxiang Zhang, and Heng Tao Shen. Sequence-to-sequence domain adaptation network for robust text image recognition. In CVPR, pages 2740-2749, 2019. 1, 2, 8
\ No newline at end of file
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/images.zip b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..cb4a236fc2332325e825c93839051155587ef0af
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b75904a9914d9558aa87f429dda72aafb101211bfc792bc3615d0897023e4f18
+size 515408
diff --git a/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/layout.json b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6fe5bdb97842c7d3aabab2329497c43dfb1717a2
--- /dev/null
+++ b/learntoaugmentjointdataaugmentationandnetworkoptimizationfortextrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b6d9d062dcfb54e8b154ab464bbcbfada425e63049388a9339c81ac59be54d4a
+size 407715
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_content_list.json b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..db4430ef8cab38b797077210806ab367cd49fd4b
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b93fafdb1f8e5de60d6cbef64178a79062d1db6c9b84799f51d51a15282fa25
+size 97199
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_model.json b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6993b088a4181747fbbb344a977c8e4c38ebd8b3
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b440a86db30935705be5c2636453951c7efe4899f9f54aee7046072f71d838ef
+size 125674
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_origin.pdf b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..aee13cfa60700c04b4e1b2bed2436e0368b25fc4
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/ba3284b1-31e5-418a-8400-24f1f11a582c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05e236dcefc2e43c78e7e659b8afcc74727f8a5469f73e6b0434b6c86e83f425
+size 1191948
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/full.md b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9ac23930103e4e591e1f03d6b8a7ade18d77bae9
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/full.md
@@ -0,0 +1,417 @@
+# LUVLi Face Alignment: Estimating Landmarks' Location, Uncertainty, and Visibility Likelihood
+
+Abhinav Kumar\*,1, Tim K. Marks\*,2, Wenxuan Mou\*,3, Ye Wang\*, Michael Jones\*, Anoop Cherian\*, Toshiaki Koike-Akino\*, Xiaoming Liu\*4, Chen Feng\*5 abhinav3663@gmail.com, tmarks@merl.com, wenxuanmou@gmail.com, [ywang, mjones, cherian, koike]@merl.com, liuxm@cse.msu.edu, cfeng@nyu.edu 1University of Utah, 2Mitsubishi Electric Research Labs (MERL), 3University of Manchester, 4Michigan State University, 5New York University
+
+# Abstract
+
+Modern face alignment methods have become quite accurate at predicting the locations of facial landmarks, but they do not typically estimate the uncertainty of their predicted locations nor predict whether landmarks are visible. In this paper, we present a novel framework for jointly predicting landmark locations, associated uncertainties of these predicted locations, and landmark visibilities. We model these as mixed random variables and estimate them using a deep network trained with our proposed Location, Uncertainty, and Visibility Likelihood (LUVLi) loss. In addition, we release an entirely new labeling of a large face alignment dataset with over 19,000 face images in a full range of head poses. Each face is manually labeled with the ground-truth locations of 68 landmarks, with the additional information of whether each landmark is unoccluded, self-occluded (due to extreme head poses), or externally occluded. Not only does our joint estimation yield accurate estimates of the uncertainty of predicted landmark locations, but it also yields state-of-the-art estimates for the landmark locations themselves on multiple standard face alignment datasets. Our method's estimates of the uncertainty of predicted landmark locations could be used to automatically identify input images on which face alignment fails, which can be critical for downstream tasks.
+
+# 1. Introduction
+
+Modern methods for face alignment (facial landmark localization) perform quite well most of the time, but all of them fail some percentage of the time. Unfortunately, almost all of the state-of-the-art (SOTA) methods simply output predicted landmark locations, with no assessment of whether (or how much) downstream tasks should trust these landmark locations. This is concerning, as face alignment is a key pre-processing step in numerous safety-critical ap
+
+
+Figure 1: Results of our joint face alignment and uncertainty estimation on three test images. Ground-truth (green) and predicted (yellow) landmark locations are shown. The estimated uncertainty of the predicted location of each landmark is shown in blue (Error ellipse for Mahalanobis distance 1). Landmarks that are occluded (e.g., by the hand in center image) tend to have larger uncertainty.
+
+
+
+
+
+plications, including advanced driver assistance systems (ADAS), driver monitoring, and remote measurement of vital signs [57]. As deep neural networks are notorious for producing overconfident predictions [33], similar concerns have been raised for other neural network technologies [46], and they become even more acute in the era of adversarial machine learning where adversarial images may pose a great threat to a system [14]. However, previous work in face alignment (and landmark localization in general) has largely ignored the area of uncertainty estimation.
+
+To address this need, we propose a method to jointly estimate facial landmark locations and a parametric probability distribution representing the uncertainty of each estimated location. Our model also jointly estimates the visibility of landmarks, which predicts whether each landmark is occluded due to extreme head pose.
+
+We find that the choice of methods for calculating mean and covariance is crucial. Landmark locations are best obtained using heatmaps, rather than by direct regression. To estimate landmark locations in a differentiable manner using heatmaps, we do not select the location of the maximum (argmax) of each landmark's heatmap, but instead propose to use the spatial mean of the positive elements of each
+
+heatmap. Unlike landmark locations, uncertainty distribution parameters are best obtained by direct regression rather than from heatmaps. To estimate the uncertainty of the predicted locations, we add a Cholesky Estimator Network (CEN) branch to estimate the covariance matrix of a multivariate Gaussian or Laplacian probability distribution. To estimate visibility of each landmark, we add a Visibility Estimator Network (VEN). We combine these estimates using a joint loss function that we call the Location, Uncertainty and Visibility Likelihood (LUVLi) loss. Our primary goal in designing this model was to estimate uncertainty in landmark localization. In the process, not only does our method yields accurate uncertainty estimation, but it also produces SOTA landmark localization results on several face alignment datasets.
+
+Uncertainty can be broadly classified into two categories [41]: epistemic uncertainty is related to a lack of knowledge about the model that generated the observed data, and aleatoric uncertainty is related to the noise inherent in the observations, e.g., sensor or labelling noise. The ground-truth landmark locations marked on an image by human labelers would vary across multiple labelings of an image by different human labelers (or even by the same human labeler). Furthermore, this variation will itself vary across different images and landmarks (e.g., it will vary more for occluded landmarks and poorly lit images). The goal of our method is to estimate this aleatoric uncertainty.
+
+The fact that each image only has one ground-truth labeled location per landmark makes estimating this uncertainty distribution difficult, but not impossible. To do so, we use a parametric model for the uncertainty distribution. We train a neural network to estimate the parameters of the model for each landmark of each input face image so as to maximize the likelihood under the model of the ground-truth location of that landmark (summed across all landmarks of all training faces).
+
+The main contributions of this work are as follows:
+
+- This is the first work to introduce the concept of parametric uncertainty estimation for face alignment.
+- We propose an end-to-end trainable model for the joint estimation of landmark location, uncertainty, and visibility likelihood (LUVLi), modeled as a mixed random variable.
+- We compare our model using multivariate Gaussian and multivariate Laplacian probability distributions.
+- Our algorithm yields accurate uncertainty estimation and state-of-the-art landmark localization results on several face alignment datasets.
+- We are releasing a new dataset with manual labels of the locations of 68 landmarks on over 19,000 face images in a wide variety of poses, where each landmark is also labeled with one of three visibility categories.
+
+# 2. Related Work
+
+# 2.1. Face Alignment
+
+Early methods for face alignment were based on Active Shape Models (ASM) and Active Appearance Models (AAM) [16, 18, 66, 69, 78] as well as their variations [1, 19, 36, 49, 50, 62]. Subsequently, direct regression methods became popular due to their excellent performance. Of these, tree-based regression methods [9, 17, 40, 60, 76] proved particularly fast, and the subsequent cascaded regression methods [2, 22, 75, 77, 83] improved accuracy.
+
+Recent approaches [7, 72, 73, 79, 81, 84, 87, 88] are all based on deep learning and can be classified into two subcategories: direct regression [10, 73] and heatmap-based approaches. The SOTA deep methods, e.g., stacked hourglass networks [7, 84] and densely connected U-nets (DU-Net) [72], use a cascade of deep networks, originally developed for human body 2D pose estimation [55]. These models [7, 55, 71, 72] are trained using the $\ell_2$ distance between the predicted heatmap for each landmark and a proxy ground-truth heatmap that is generated by placing a symmetric Gaussian distribution with small fixed variance at the ground-truth landmark location. [48] uses a larger variance for early hourlasses and a smaller variance for later hourlasses. [79] employs different variations of MSE for different pixels of the proxy ground-truth heatmap. Recent works also infer facial boundary maps to improve alignment [79, 81]. In heatmap-based methods, landmarks are estimated by the argmax of each predicted heatmap. Indirect inference through a predicted heatmap offers several advantages over direct prediction [4].
+
+Disadvantages of Heatmap-Based Approaches. These heatmap-based methods have at least two disadvantages. First, since the goal of training is to mimic a proxy ground-truth heatmap containing a fixed symmetric Gaussian, the predicted heatmaps are poorly suited to uncertainty prediction [13, 14]. Second, they suffer from quantization errors since the heatmap's argmax is only determined to the nearest pixel [51, 56, 70]. To achieve sub-pixel localization for body pose estimation, [51] replaces the argmax with a spatial mean over the softmax. Alternatively, for sub-pixel localization in videos, [70] samples two additional points adjacent to the max of the heatmap to estimate a local peak.
+
+Landmark Regression with Uncertainty. We have only found two other methods that estimate uncertainty of landmark regression, both developed concurrently with our approach. The first method [13, 14] estimates face alignment uncertainty using a non-parametric approach: a kernel density network obtained by convolving the heatmaps with a fixed symmetric Gaussian kernel. The second [32] performs body pose estimation with uncertainty using direct regression method (no heatmaps) to directly predict the mean and precision matrix of a Gaussian distribution.
+
+# 2.2. Uncertainty Estimation in Neural Networks
+
+Uncertainty estimation broadly uses two types of approaches [46]: sampling-based and sampling-free. Sampling-based methods include Bayesian neural networks [67], Monte Carlo dropout [29], and bootstrap ensembles [45]. They rely on multiple evaluations of the input to estimate uncertainty [46], and bootstrap ensembles also need to store several sets of weights [37]. Thus, sampling-based methods work for small 1D regression problems but might not be feasible for higher-dimensional problems [37].
+
+Sampling-free methods produce two outputs, one for the estimate and the other for the uncertainty, and optimize Gaussian log-likelihood (GLL) instead of classification and regression losses [41, 45, 46]. [45] combines the benefits of sampling-free and sampling-based methods.
+
+Recent object detection methods have used uncertainty estimation [3, 34, 35, 38, 46, 47, 53]. Sampling-free methods [35, 46, 47] jointly estimate the four parameters of the bounding box using Gaussian log-likelihood [47], Laplacian log-likelihood [46], or both [35]. However, these methods assume the four parameters of the bounding box are independent (assume a diagonal covariance matrix). Sampling-based approaches use Monte Carlo dropout [53] and network ensembles [45] for object detection. Uncertainty estimation has also been applied to pixelwise depth regression [41], optical flow [37], pedestrian detection [5, 6, 54] and 3D vehicle detection [26].
+
+# 3. Proposed Method
+
+Figure 2 shows an overview of our LUVLi Face Alignment. The input RGB face image is passed through a DU-Net [72] architecture, to which we add three additional components branching from each U-net. The first new component is a mean estimator, which computes the estimated location of each landmark as the weighted spatial mean of the positive elements of the corresponding heatmap. The second and the third new component, the Cholesky Estimator Network (CEN) and the Visibility Estimator Network (VEN), emerge from the bottleneck layer of each U-net. CEN and VEN weights are shared across all U-nets. The CEN estimates the Cholesky coefficients of the covariance matrix for each landmark location. The VEN estimates the probability of visibility of each landmark in the image, 1 meaning visible and 0 meaning not visible. For each U-net $i$ and each landmark $j$ , the landmark's location estimate $\pmb{\mu}_{ij}$ , estimated covariance matrix $\pmb{\Sigma}_{ij}$ , and estimated visibility $\widehat{v}_{ij}$ are tied together by the LUVLi loss function $\mathcal{L}_{ij}$ , which enables end-to-end optimization of the entire framework.
+
+Rather than the argmax of the heatmap, we choose a mean estimator for the heatmap that is differentiable and enables sub-pixel accuracy: the weighted spatial mean of the heatmap's positive elements. Unlike the non-parametric model of [13, 14], our uncertainty prediction method is para
+
+
+Figure 2: Overview of our LUVLi method. From each U-net of a DU-Net, we append a shared Cholesky Estimator Network (CEN) and Visibility Estimator Network (VEN) to the bottleneck layer and apply a mean estimator to the heatmap. The figure shows the joint estimation of location, uncertainty, and visibility of the landmarks performed for each U-net $i$ and landmark $j$ . The landmark has ground-truth (labeled) location $\mathbf{p}_j$ and visibility $v_j \in \{0,1\}$ .
+
+metric: we directly estimate the parameters of a single multivariate Laplacian or Gaussian distribution. Furthermore, our method does not constrain the Laplacian or Gaussian covariance matrix to be diagonal.
+
+# 3.1. Mean Estimator
+
+Let $H_{ij}(x,y)$ denote the value at pixel location $(x,y)$ of the $j$ th landmark's heatmap from the $i$ th U-net. The landmark's location estimate $\pmb{\mu}_{ij} = [\mu_{ijx},\mu_{ijy}]^T$ is given by first post-processing the pixels of the heatmap $H_{ij}$ with a function $\sigma$ , then taking the weighted spatial mean of the result (See (16) in the supplementary material). We considered three different functions for $\sigma$ : the ReLU function (eliminates the negative values), the softmax function (makes the mean estimator a soft-argmax of the heatmap [12,25,51,85]), and a temperature-controlled softmax function (which, depending on the temperature setting, provides a continuum of softmax functions that range from a "hard" argmax to the uniform distribution). The ablation studies (Section 5.5) show that choosing $\sigma$ to be the ReLU function yields the simplest and best mean estimator.
+
+# 3.2. LUVLi Loss
+
+Occluded landmarks, e.g., landmarks on the far side of a profile-pose face, are common in real data. To explicitly represent visibility, we model the probability distributions of landmark locations using mixed random vari
+
+ables. For each landmark $j$ in an image, we denote the ground-truth (labeled) visibility by the binary variable $v_{j} \in \{0,1\}$ , where 1 denotes visible, and the ground-truth location by $\mathbf{p}_j$ . By convention, if the landmark is not visible ( $v_{j} = 0$ ), then $\mathbf{p}_j = \emptyset$ , a special symbol indicating non-existence. Together, these variables are distributed according to an unknown distribution $p(v_{j},\mathbf{p}_{j})$ . The marginal Bernoulli distribution $p(v_{j})$ captures the probability of visibility, $p(\mathbf{p}_j|v_j = 1)$ denotes the distribution of the landmark location when it is visible, and $p(\mathbf{p}_j|v_j = 0) = \mathbf{1}_{\emptyset}(\mathbf{p}_j)$ , where $\mathbf{1}_{\emptyset}$ denotes the PMF that assigns probability one to the symbol $\emptyset$ .
+
+After each U-net $i$ , we estimate the joint distribution of the visibility $v$ and location $\mathbf{z}$ of each landmark $j$ via
+
+$$
+q (v, \mathbf {z}) = q _ {v} (v) q _ {z} (\mathbf {z} | v), \tag {1}
+$$
+
+where $q_{v}(v)$ is a Bernoulli distribution with
+
+$$
+q _ {v} (v = 1) = \widehat {v} _ {i j}, \quad q _ {v} (v = 0) = 1 - \widehat {v} _ {i j}, \tag {2}
+$$
+
+where $\widehat{v}_{ij}$ is the predicted probability of visibility, and
+
+$$
+q _ {z} (\mathbf {z} | v = 1) = \mathcal {P} (\mathbf {z} | \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}), \tag {3}
+$$
+
+$$
+q _ {z} (\mathbf {z} | v = 0) = \emptyset , \tag {4}
+$$
+
+where $\mathcal{P}$ denotes the likelihood of the landmark being at location $\mathbf{z}$ given the estimated mean $\pmb{\mu}_{ij}$ and covariance $\pmb{\Sigma}_{ij}$ .
+
+The LUVLi loss is the negative log-likelihood with respect to $q(v, \mathbf{z})$ , as given by
+
+$$
+\begin{array}{l} \mathcal {L} _ {i j} = - \ln q (v _ {j}, \mathbf {p} _ {j}) \\ = - \ln q _ {v} (v _ {j}) - \ln q _ {z} (\mathbf {p} _ {j} | v _ {j}) \\ = - (1 - v _ {j}) \ln (1 - \widehat {v} _ {i j}) - v _ {j} \ln (\widehat {v} _ {i j}) \\ - v _ {j} \ln \left(\mathcal {P} \left(\mathbf {p} _ {j} \mid \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}\right)\right), \tag {5} \\ \end{array}
+$$
+
+and thus minimizing the loss is equivalent to maximum likelihood estimation.
+
+The terms of (5) are a binary cross entropy plus $v_{j}$ times the negative log-likelihood of $\mathbf{p}_j$ with respect to $\mathcal{P}$ . This can be seen as an instance of multi-task learning [11], since we are predicting three things about each landmark: its location, uncertainty, and visibility. The first two terms on the right hand side of (5) can be seen as a classification loss for visibility, while the last term corresponds to a regression loss of location estimation. The sum of classification and regression losses is also widely used in object detection [39].
+
+Minimization of negative log-likelihood also corresponds to minimizing KL-divergence, since
+
+$$
+\begin{array}{l} \mathbb {E} \left[ - \ln q \left(v _ {j}, \mathbf {p} _ {j}\right) \right] = \mathbb {E} \left[ \ln \frac {p \left(v _ {j} , \mathbf {p} _ {j}\right)}{q \left(v _ {j} , \mathbf {p} _ {j}\right)} - \ln p \left(v _ {j}, \mathbf {p} _ {j}\right) \right] (6) \\ = \mathrm {D} _ {\mathrm {K L}} \left(p \left(v _ {j}, \mathbf {p} _ {j}\right) \| q \left(v _ {j}, \mathbf {p} _ {j}\right)\right) + \mathbb {E} \left[ - \ln p \left(v _ {j}, \mathbf {p} _ {j}\right) \right], (7) \\ \end{array}
+$$
+
+where expectations are with respect to $(v_{j},\mathbf{p}_{j})\sim p(v_{j},\mathbf{p}_{j})$ and the entropy term $\mathbb{E}[-\ln p(v_j,\mathbf{p}_j)]$ is constant with respect to the estimate $q(v_{j},\mathbf{p}_{j})$ . Further, since
+
+$$
+\begin{array}{l} \mathbb {E} \left[ - \ln q \left(v _ {j}, \mathbf {p} _ {j}\right) \right] = \mathbb {E} _ {v _ {j} \sim p \left(v _ {j}\right)} \left[ - \ln q \left(v _ {j}\right) \right] \\ + p _ {v} \mathbb {E} _ {\mathbf {p} _ {j} \sim p (\mathbf {p} _ {j} | v _ {j} = 1)} [ - \ln \mathcal {P} (\mathbf {p} _ {j} | \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}) ], \tag {8} \\ \end{array}
+$$
+
+where $p_v \coloneqq p(v_j = 1)$ for brevity, minimizing the negative log-likelihood (LUVLi loss) is also equivalent to minimizing the combination of KL-divergences given by
+
+$$
+\mathrm {D} _ {\mathrm {K L}} \left(p \left(v _ {j}\right) \| q (v)\right) + p _ {v} \mathrm {D} _ {\mathrm {K L}} \left(p \left(\mathbf {p} _ {j} \mid v _ {j} = 1\right) \| \mathcal {P} \left(\mathbf {z} \mid \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}\right)\right) \tag {9}
+$$
+
+# 3.2.1 Models for Location Likelihood
+
+For the multivariate location distribution $\mathcal{P}$ , we consider two different models: Gaussian and Laplacian.
+
+Gaussian Likelihood. The 2D Gaussian likelihood is:
+
+$$
+\mathcal {P} (\mathbf {z} | \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}) = \frac {\exp \left(- \frac {1}{2} \left(\mathbf {z} - \boldsymbol {\mu} _ {i j}\right) ^ {T} \boldsymbol {\Sigma} _ {i j} ^ {- 1} \left(\mathbf {z} - \boldsymbol {\mu} _ {i j}\right)\right)}{2 \pi \sqrt {| \boldsymbol {\Sigma} _ {i j} |}}. \tag {10}
+$$
+
+Substituting (10) into (5), we have
+
+$$
+\begin{array}{l} \mathcal {L} _ {i j} = - \left(1 - v _ {j}\right) \ln \left(1 - \widehat {v} _ {i j}\right) - v _ {j} \ln \left(\widehat {v} _ {i j}\right) + v _ {j} \frac {1}{2} \log | \boldsymbol {\Sigma} _ {i j} | \\ + v _ {j} \underbrace {\frac {1}{2} \left(\mathbf {p} _ {j} - \boldsymbol {\mu} _ {i j}\right) ^ {T} \boldsymbol {\Sigma} _ {i j} ^ {- 1} \left(\mathbf {p} _ {j} - \boldsymbol {\mu} _ {i j}\right)} _ {T _ {2}}. \quad \overbrace {\quad T _ {1} \quad (1 1)} \\ \end{array}
+$$
+
+In (11), $T_{2}$ is the squared Mahalanobis distance, while $T_{1}$ serves as a regularization or prior term that ensures that the Gaussian uncertainty distribution does not get too large.
+
+Laplacian Likelihood. We use a 2D Laplacian likelihood [43] given by:
+
+$$
+P (\mathbf {z} \mid \boldsymbol {\mu} _ {i j}, \boldsymbol {\Sigma} _ {i j}) = \frac {e ^ {- \sqrt {3 (\mathbf {z} - \boldsymbol {\mu} _ {i j}) ^ {T} \boldsymbol {\Sigma} _ {i j} ^ {- 1} (\mathbf {z} - \boldsymbol {\mu} _ {i j})}}}{\frac {2 \pi}{3} \sqrt {| \boldsymbol {\Sigma} _ {i j} |}}. \tag {12}
+$$
+
+Substituting (12) in (5), we have
+
+$$
+\begin{array}{l} \mathcal {L} _ {i j} = - \left(1 - v _ {j}\right) \ln \left(1 - \widehat {v} _ {i j}\right) - v _ {j} \ln \left(\widehat {v} _ {i j}\right) + v _ {j} \frac {1}{2} \log | \boldsymbol {\Sigma} _ {i j} | \\ + v _ {j} \underbrace {\sqrt {3 (\mathbf {p} _ {j} - \boldsymbol {\mu} _ {i j}) ^ {T} \boldsymbol {\Sigma} _ {i j} ^ {- 1} (\mathbf {p} _ {j} - \boldsymbol {\mu} _ {i j})}} _ {T _ {2}}. \overbrace {T _ {1} (1 3)} \\ \end{array}
+$$
+
+In (13), $T_{2}$ is a scaled Mahalanobis distance, while $T_{1}$ serves as a regularization or prior term that ensures that the Laplacian uncertainty distribution does not get too large.
+
+Note that if $\Sigma_{ij}$ is the identity matrix and if all landmarks are assumed to be visible, then (11) simply reduces to the squared $\ell_2$ distance, and (13) just minimizes the $\ell_2$ distance.
+
+# 3.3. Uncertainty and Visibility Estimation
+
+Our proposed method uses heatmaps for estimating landmarks' locations, but not for estimating their uncertainty and visibility. We experimented with several methods for computing a covariance matrix directly from a heatmap, but none were accurate enough. We discuss this in Section 5.1.
+
+Cholesky Estimator Network (CEN). We represent the uncertainty of each landmark location using a $2 \times 2$ covariance matrix $\pmb{\Sigma}_{ij}$ , which is symmetric positive definite. The three degrees of freedom of $\pmb{\Sigma}_{ij}$ are captured by its Cholesky decomposition: a lower-triangular matrix $\pmb{L}_{ij}$ such that $\pmb{\Sigma}_{ij} = \pmb{L}_{ij}\pmb{L}_{ij}^T$ . To estimate the elements of $\pmb{L}_{ij}$ , we append a Cholesky Estimator Network (CEN) to the bottleneck of each U-net. The CEN is a fully connected linear layer whose input is the bottleneck of the U-
+
+net $(128 \times 4 \times 4 = 2,048$ dimensions) and output is an $N_{p} \times 3$ -dimensional vector, where $N_{p}$ is the number of landmarks (e.g., 68). As the Cholesky decomposition $L_{ij}$ of a covariance matrix must have positive diagonal elements, we pass the corresponding entries of the output through an ELU activation function [15], to which we add a constant to ensure the output is always positive (asymptote is negative $x$ -axis).
+
+Visibility Estimator Network (VEN). To estimate the visibility of the landmark $v_{e}$ , we add another fully connected linear layer whose input is the bottleneck of the U-net $(128 \times 4 \times 4 = 2,048$ dimensions) and output is an $N_{p}$ -dimensional vector. This is passed through a sigmoid activation so the predicted visibility $\widehat{v}_{ij}$ is between 0 and 1.
+
+The addition of these two fully connected layers only slightly increases the size of the original model. The loss for a single U-net is the averaged $\mathcal{L}_{ij}$ across all the landmarks $j = 1,\dots ,N_{p}$ , and the total loss $\mathcal{L}$ for each input image is a weighted sum of the losses of all $K$ of the U-nets:
+
+$$
+\mathcal {L} = \sum_ {i = 1} ^ {K} \lambda_ {i} \mathcal {L} _ {i}, \quad \text {w h e r e} \quad \mathcal {L} _ {i} = \frac {1}{N _ {p}} \sum_ {j = 1} ^ {N _ {p}} \mathcal {L} _ {i j}. \tag {14}
+$$
+
+At test time, each landmark's mean and Cholesky coefficients are derived from the $K$ th (final) U-net. The covariance matrix is calculated from the Cholesky coefficients.
+
+# 4. New Dataset: MERL-RAV
+
+To promote future research in face alignment with uncertainty, we now introduce a new dataset with entirely new, manual labels of over 19,000 face images from the AFLW [42] dataset. In addition to landmark locations, every landmark is labeled with one of three visibility classes. We call the new dataset MERL Reannotation of AFLW with Visibility (MERL-RAV).
+
+Visibility Classification. Each landmark of every face is classified as either unoccluded, self-occluded, or externally occluded, as illustrated in Figure 3. Unoccluded denotes landmarks that can be seen directly in the image, with no obstructions. Self-occluded denotes landmarks that are occluded because of extreme head pose—they are occluded by another part of the face (e.g., landmarks on the far side of a profile-view face). Externally occluded denotes landmarks that are occluded by hair or an intervening object such as a cap, hand, microphone, or goggles. Human labelers are generally very bad at localizing self-occluded landmarks, so we do not provide ground-truth locations for these. We do provide ground-truth (labeled) locations for both unoccluded and externally occluded landmarks.
+
+Relationship to Visibility in LUVLi. In Section 3, visible landmarks $(v_{j} = 1)$ are landmarks for which ground-truth location information is available, while invisible landmarks $(v_{j} = 0)$ are landmarks for which no ground-truth location information is available $(\mathbf{p}_j = \emptyset)$ . Thus, invisible $(v_{j} = 0)$ in the model is equivalent to the self-occluded
+
+Table 1: Overview of face alignment datasets. [Key: Self Occ= Self-Occlusions, Ext Occ= External Occlusions]
+
+| Dataset | #train | #test | #marks | Profile Images | Self Occ | Ext Occ |
| COFW [8] | 1,345 | 507 | 29 | × | × | ✓ |
| COFW-68 [30] | - | 507 | 68 | × | × | ✓ |
| 300-W [63–65] | 3,837 | 600 | 68 | × | × | × |
| Menpo 2D [21,74,86] | 7,564 | 7,281 | 68/39 | ✓ | F/P | × |
| 300W-LP-2D [90] | 61,225 | - | 68 | ✓ | T | × |
| WFLW [81] | 7,500 | 2,500 | 98 | ✓ | × | × |
| AFLW [42] | 20,000 | 4,386 | 21 | ✓ | ✓ | × |
| AFLW-19 [89] | 20,000 | 4,386 | 19 | ✓ | × | × |
| AFLW-68 [59] | 20,000 | 4,386 | 68 | ✓ | × | × |
| MERL-RAV (Ours) | 15,449 | 3,865 | 68 | ✓ | ✓ | ✓ |
+
+landmarks in our dataset. In contrast, both unoccluded and externally occluded landmarks are considered visible ( $v_{j} = 1$ ) in our model. We choose this because human labelers are generally good at estimating the locations of externally occluded landmarks but poor at estimating the locations of self-occluded landmarks.
+
+Existing Datasets. The most commonly used publicly available datasets for evaluation of 2D face alignment are summarized in Table 1. The 300-W dataset [63-65] uses a 68-landmark system that was originally used for MultiPIE [31]. Menpo 2D [21, 74, 86] makes a hard distinction (denoted F/P) between nearly frontal faces (F) and profile faces (P). Menpo 2D uses the same landmarks as 300-W for frontal faces, but for profile faces it uses a different set of 39 landmarks that do not all correspond to the 68 landmarks in the frontal images. 300W-LP-2D [7, 90] is a synthetic dataset created by automatically reposing 300-W faces, so it has a large number of labels, but they are noisy. The 3D model locations of self-occluded landmarks are projected onto the visible part of the face as if the face were transparent (denoted by T). The WFLW [81] and AFLW-68 [59] datasets do not identify which landmarks are self-occluded, but instead label self-occluded landmarks as if they were located on the visible boundary of the noseless face.
+
+Differences from Existing Datasets. Our MERL-RAV dataset is the only one that labels every landmark using both types of occlusion (self-occlusion and external occlusion). Only one other dataset, AFLW, indicates which individual landmarks are self-occluded, but it has far fewer landmarks and does not label external occlusions. COFW and COFW-68 indicate which landmarks are externally occluded but do not have self-occlusions. Menpo 2D categorizes faces as frontal or profile, but landmarks of the two classes are incompatible. Unlike Menpo 2D, our dataset smoothly transitions from frontal to profile, with gradually more and more landmarks labeled as self-occluded.
+
+Our dataset uses the widely adopted 68 landmarks used by 300-W, to allow for evaluation and cross-dataset comparison. Since it uses images from AFLW, our dataset has pose variation up to $\pm 120^{\circ}$ yaw and $\pm 90^{\circ}$ pitch. Focusing on yaw, we group the images into five pose classes: frontal,
+
+| Pose | Side | #Train | #Test |
| Frontal | - | 8,778 | 2,195 |
| Half- Profile | Left half | 1,180 | 295 |
| Right half | 1,221 | 306 |
| Profile | Left | 2,080 | 521 |
| Right | 2,190 | 548 |
| Total | - | 15,449 | 3,865 |
+
+Table 2: Statistics of our new dataset for face alignment.
+
+
+Figure 3: Unoccluded, externally occluded, and self-occluded landmarks.
+
+left and right half-profile, and left and right profile. The train/test split is in the ratio of $4:1$ . Table 2 provides the statistics of our MERL-RAV dataset. A sample image from the dataset is shown in Figure 3. In the figure, unoccluded landmarks are green, externally occluded landmarks are red, and self-occluded landmarks are indicated by black circles in the face schematic on the right.
+
+# 5. Experiments
+
+Our experiments use the datasets 300-W [63-65], 300W-LP-2D [90], Menpo 2D [21, 74, 86], COFW-68 [8, 30], AFLW-19 [42], WFLW [81], and our MERL-RAV dataset. Training and testing protocols are described in the supplementary material. On a 12 GB GeForce GTX Titan-X GPU, the inference time per image is $17\mathrm{ms}$ .
+
+Evaluation Metrics. We use the standard metrics NME, AUC, and FR [14, 72, 79]. In each table, we report results using the same metric adopted in respective baselines.
+
+Normalized Mean Error (NME). The NME is defined as:
+
+$$
+\text{NME} (\%) = \frac {1}{N _ {p}} \sum_ {j = 1} ^ {N _ {p}} v _ {j} \frac {\left\| \mathbf {p} _ {j} - \boldsymbol {\mu} _ {K j} \right\| _ {2}}{d} \times 100, \tag{15}
+$$
+
+where $v_{j}$ , $\mathbf{p}_{j}$ and $\mu_{Kj}$ respectively denote the visibility, ground-truth and predicted location of landmark $j$ from the $K$ th (final) U-net. The factor of $v_{j}$ is there because we cannot compute an error value for points without ground-truth location labels. Several variations of the normalizing term $d$ are used. $\mathrm{NME}_{\mathrm{box}}$ [7,14,86] sets $d$ to the geometric mean of the width and height of the ground-truth bounding box $(\sqrt{w_{\mathrm{bbox}} \cdot h_{\mathrm{bbox}}})$ , while $\mathrm{NME}_{\mathrm{inter-ocular}}$ [44,64,72] sets $d$ to the distance between the outer corners of the two eyes. If a ground-truth box is not provided, the tight bounding box of the landmarks is used [7,14]. $\mathrm{NME}_{\mathrm{diag}}$ [68,81] sets $d$ as the diagonal of the bounding box.
+
+Area Under the Curve (AUC). To compute the AUC, the cumulative distribution of the fraction of test images whose NME (\%) is less than or equal to the value on the horizontal axis is first plotted. The AUC for a test set is then computed as the area under that curve, up to the cutoff NME value.
+
+Failure Rate (FR). FR refers to the percentage of images in the test set whose NME is larger than a certain threshold.
+
+# 5.1.300-W Face Alignment
+
+We train on the 300-W [63-65], and test on 300-W, Menpo 2D [21,74,86], and COFW-68 [8,30]. Some of the
+
+Table 3: NMEinter-ocular on 300-W Common, Challenge, and Full datasets (Split 1). [Key: Best, Second best]
+
+ | NMEinter-ocular (%) (↓) |
| Common | Challenge | Full |
| SAN [23] | 3.34 | 6.60 | 3.98 |
| AVS [59] | 3.21 | 6.49 | 3.86 |
| DAN [44] | 3.19 | 5.24 | 3.59 |
| LAB (w/B) [81] | 2.98 | 5.19 | 3.49 |
| Teacher [24] | 2.91 | 5.91 | 3.49 |
| DU-Net (Public code) [72] | 2.97 | 5.53 | 3.47 |
| DeCaFa (More data) [20] | 2.93 | 5.26 | 3.39 |
| HR-Net [68] | 2.87 | 5.15 | 3.32 |
| HG-HSLE [91] | 2.85 | 5.03 | 3.28 |
| AWing [79] | 2.72 | 4.52 | 3.07 |
| LUVLi (Ours) | 2.76 | 5.16 | 3.23 |
+
+Table 4: NMEbox and AUC comparisons on 300-W Test (Split 2), Menpo 2D and COFW-68 datasets.
+[Key: Best, Second best, * = Pretrained on 300W-LP-2D]
+
+ | NMEbox (%) (↓) | AUC7box(%) (↑) |
| 300-W | Menpo | COFW | 300-W | Menpo | COFW |
| SAN* [23] in [14] | 2.86 | 2.95 | 3.50 | 59.7 | 61.9 | 51.9 |
| 2D-FAN* [7] | 2.32 | 2.16 | 2.95 | 66.5 | 69.0 | 57.5 |
| KDN [13] | 2.49 | 2.26 | - | 67.3 | 68.2 | - |
| Softlabel* [14] | 2.32 | 2.27 | 2.92 | 66.6 | 67.4 | 57.9 |
| KDN* [14] | 2.21 | 2.01 | 2.73 | 68.3 | 71.1 | 60.1 |
| LUVLi (Ours) | 2.24 | 2.18 | 2.75 | 68.3 | 70.1 | 60.8 |
| LUVLi* (Ours) | 2.10 | 2.04 | 2.57 | 70.2 | 71.9 | 63.4 |
+
+models are pre-trained on the 300W-LP-2D [90].
+
+Data Splits and Evaluation Metrics. There are two commonly used train/test splits for 300-W; we evaluate our method on both. Split 1: The train set contains 3,148 images and full test set has 689 images [72]. Split 2: The train set includes 3,837 images and test set has 600 images [14]. The model trained on Split 2 is additionally evaluated on the 6,679 near-frontal training images of Menpo 2D and 507 test images of COFW-68 [14]. For Split 1, we use $\mathrm{NME}_{\mathrm{inter - ocular}}$ [68, 72, 79]. For Split 2, we use $\mathrm{NME}_{\mathrm{box}}$ and $\mathrm{AUC}_{\mathrm{box}}$ with $7\%$ cutoff [7, 14].
+
+Results: Localization and Cross-Dataset Evaluation. The face alignment results for 300-W Split 1 and Split 2 are summarized in Table 3 and 4, respectively. Table 4 also shows the results of our model (trained on Split 2) on the Menpo and COFW-68 datasets, as in [7, 14]. The results in Table 3 show that our LUVLi landmark localization is competitive with the SOTA methods on Split 1, usually one of the best two. Table 4 shows that LUVLi significantly outperforms the SOTA on Split 2, performing best on 5 out of the 6 cases (3 datasets $\times$ 2 metrics). This is particularly impressive on 300-W Split 2, because even though most of the other methods are pre-trained on the 300W-LP-2D dataset (as was our best method, LUVLi*), our method without pretraining still outperforms the SOTA in 2 of 6 cases. Our method performs particularly well in the cross-dataset evaluation on the more challenging COFW-68 dataset, which has multiple externally occluded landmarks.
+
+
+(a) variance of $x$
+
+
+Figure 4: Mean squared residual error vs. predicted covariance matrix for all landmarks in 300-W Test (Split 2).
+
+
+(b) variance of $y$
+(c) covariance of $x,y$
+
+Accuracy of Predicted Uncertainty. To evaluate the accuracy of the predicted uncertainty covariance matrix, $\Sigma_{Kj} = \begin{bmatrix} \Sigma_{Kj_{xx}} & \Sigma_{Kj_{xy}} \\ \Sigma_{Kj_{xy}} & \Sigma_{Kj_{yy}} \end{bmatrix}$ , we compare all three unique terms of this prediction with the statistics of the residuals (2D error between the ground-truth location $\mathbf{p}_j$ and the predicted location $\mu_{Kj}$ ) of all landmarks in the test set. We explain how we do this for $\Sigma_{Kj_{xx}}$ in Figure 4a. First, we bin every landmark of every test image according to the value of the predicted variance in the $x$ -direction $(\Sigma_{Kj_{xx}})$ . Each bin is represented by one point in the scatter plot. Averaging $\Sigma_{Kj_{xx}}$ across the $N_{\mathrm{bin}} = 734$ landmark points within each bin gives a single predicted $\Sigma_{Kj_{xx}}$ value (horizontal axis). We next compute the residuals in the $x$ -direction of all landmarks in the bin, and calculate the average of the squared residuals to obtain $\Sigma_{xx} = \mathbb{E}(p_{jx} - \mu_{Kj_x})^2$ for the bin. This mean squared residual error, $\Sigma_{xx}$ , is plotted on the vertical axis. If our predicted uncertainties are accurate, this residual error, $\Sigma_{xx}$ , should be roughly equal to the predicted uncertainty variance in the $x$ -direction (horizontal axis).
+
+Figure 4 shows that all three terms of our method's predicted covariance matrices are highly predictive of the actual uncertainty: the mean squared residuals (error) are strongly proportional to the predicted covariance values, as evidenced by Pearson correlation coefficients of 0.98 and 0.99. However, decreasing $N_{\mathrm{bin}}$ from 734 (plotted in Figure 4) to just 36 makes the correlation coefficients decrease to 0.84, 0.80, 0.72. Thus, the predicted uncertainties are excellent after averaging but may yet have room to improve. Uncertainty is Larger for Occluded Landmarks. The COFW-68 [30] test set annotates which landmarks are externally occluded. Similar to [14], we use this to test uncertainty predictions of our model, where the square root of the determinant of the uncertainty covariance is a scalar measure of predicted uncertainty. We report the error, $\mathrm{NME}_{\mathrm{box}}$ , and average predicted uncertainty, $|\Sigma_{Kj}|^{1/2}$ , in Table 5. We do not use any occlusion annotation from the dataset during training. Like [14], we find that our model's predicted uncertainty is much larger for externally occluded landmarks than for unoccluded landmarks. Furthermore, our method's location estimates are more accurate (smaller $\mathrm{NME}_{\mathrm{box}}$ ) than those of [14] for both occluded and unoccluded landmarks.
+
+Heatmaps vs. Direct Regression for Uncertainty. We tried multiple approaches to estimate the uncertainty dis
+
+Table 5: NMEbox and uncertainty $\left(|\Sigma_{Kj}|^{1 / 2}\right)$ on unoccluded and externally occluded landmarks of COFW-68 dataset. [Key: Best]
+
+ | Unoccluded | Externally Occluded |
| NMEbox | |Σ|1/2 | NMEbox | |Σ|1/2 |
| Softlabel [14] | 2.30 | 5.99 | 5.01 | 7.32 |
| KDN [14] | 2.34 | 1.63 | 4.03 | 11.62 |
| LUVLi (Ours) | 2.15 | 9.31 | 4.00 | 32.49 |
+
+Table 6: NME and AUC on the AFLW-19 dataset (previous results are quoted from [14,68]). [Key: Best, Second best]
+
+ | NME diag | NME box | AUC'box |
| Full | Frontal | Full | Full |
| CFSS [88] | 3.92 | 2.68 | - | - |
| CCL [89] | 2.72 | 2.17 | - | - |
| DAC-CSR [28] | 2.27 | 1.81 | - | - |
| LLL [61] | 1.97 | - | - | - |
| SAN [23] | 1.91 | 1.85 | 4.04 | 54.0 |
| DSRN [52] | 1.86 | - | - | - |
| LAB (w/o B) [81] | 1.85 | 1.62 | - | - |
| HR-Net [68] | 1.57 | 1.46 | - | - |
| Wing [27] | - | - | 3.56 | 53.5 |
| KDN [14] | - | - | 2.80 | 60.3 |
| LUVLi (Ours) | 1.39 | 1.19 | 2.28 | 68.0 |
+
+
+Figure 5: Histogram of the smallest eigenvalue of $\Sigma_{K_j}$
+
+ribution from heatmaps, but none of these worked nearly as well as our direct regression using the CEN. We believe this is because in current heatmap-based networks, the resolution of the heatmap $(64\times 64)$ is too low for accurate uncertainty estimation. This is demonstrated in Figure 5, which shows a histogram over all landmarks in 300-W Test (Split 2) of LUVLi's predicted covariance in the narrowest direction of the covariance ellipse (the smallest eigenvalue of the predicted covariance matrix). The figure shows that in most cases, the uncertainty ellipses are less wide than one heatmap pixel, which explains why heatmap-based methods are not able to accurately capture such small uncertainties.
+
+# 5.2. AFLW-19 Face Alignment
+
+On AFLW-19, we train on 20,000 images, and test on two sets: the AFLW-Full set (4,386 test images) and the AFLW-Frontal set (1,314 test images), as in [68,81,89]. Table 6 compares our method's localization performance with other methods that only train on AFLW-19 (without training on any 68-landmark dataset). Our proposed method outperforms not only the other uncertainty-based method KDN [14], but also all previous SOTA methods, by a significant margin on both AFLW-Full and AFLW-Frontal.
+
+Table 7: WFLW-All dataset results for NMEinter-ocular, AUC10 inter-ocular, and FR10 inter-ocular. [Key: Best, Second best]
+
+ | NME(%) (↓) | AUC10(↑) | FR10(%) (↓) |
| CFSS [88] | 9.07 | 0.366 | 20.56 |
| DVLN [82] | 10.84 | 0.456 | 10.84 |
| LAB (w/B) [81] | 5.27 | 0.532 | 7.56 |
| Wing [27] | 5.11 | 0.554 | 6.00 |
| DeCaFa (w/DA) [20] | 4.62 | 0.563 | 4.84 |
| AVS [59] | 4.39 | 0.591 | 4.08 |
| AWing [79] | 4.36 | 0.572 | 2.84 |
| LUVLi (Ours) | 4.37 | 0.577 | 3.12 |
+
+Table 8: NMEbox and AUC comparisons on MERL-RAV dataset. [Key: Best]
+
+| Metric (%) | Method | All | Frontal | Half-Profile | Profile |
| NMEbox(↓) | DU-Net [72] | 1.99 | 1.89 | 2.50 | 1.92 |
| LUVLi (Ours) | 1.61 | 1.74 | 1.79 | 1.25 |
| AUC7box(↑) | DU-Net [72] | 71.80 | 73.25 | 64.78 | 72.79 |
| LUVLi (Ours) | 77.08 | 75.33 | 74.69 | 82.10 |
+
+Table 9: MERL-RAV results on three types of landmarks.
+
+ | Self-Occluded | Unoccluded | Externally Occluded |
| Mean vj | 0.13 | 0.98 | 0.98 |
| Accuracy (Visible) | 0.88 | 0.99 | 0.99 |
| NMEbox | - | 1.60 | 3.53 |
| |Σ|0.5 | - | 9.28 | 34.41 |
| |Σ|0.5box(×10-4) | - | 1.87 | 7.00 |
+
+# 5.3. WFLW Face Alignment
+
+Landmark localization results for WFLW are shown in Table 7. More detailed results on WFLW are in the supplementary material. Compared to the SOTA methods, LUVLi yields the second best performance on all metrics. Furthermore, while the other methods only predict landmark locations, LUVLi also estimates the prediction uncertainties.
+
+# 5.4. MERL-RAV Face Alignment
+
+Results of Landmark Localization. Results for all head poses on our MERL-RAV dataset are shown in Table 8.
+
+Results for All Visibility Classes. We analyze LUVLi's performance on all test images for all three types of landmarks in Table 9. The first row is the mean value of the predicted visibility, $\widehat{v}_j$ , for each type of landmark. Accuracy (Visible) tests the accuracy of predicting that landmarks are visible when $\widehat{v}_j > 0.5$ . The last two rows show the scalar measure of uncertainty, $|\Sigma_{Kj}|^{1/2}$ , both unnormalized and normalized by the face box size ( $|\Sigma|_{box}^{0.5}$ ) similar to $\mathrm{NME}_{\mathrm{box}}$ . Similar to results on COFW-68 in Table 5, the model predicts higher uncertainty for locations of externally occluded landmarks than for unoccluded landmarks.
+
+# 5.5. Ablation Studies
+
+Table 10 compares modifications of our approach on Split 2. Table 10 shows that computing the loss only on the last U-net performs worse than computing loss on all U-nets, perhaps because of the vanishing gradient problem [80]. Moreover, LUVLi's log-likelihood loss without visibility outperforms using MSE loss on the landmark lo
+
+Table 10: Ablation studies using our method trained on 300W-LP-2D and then fine-tuned on 300-W (Split 2).
+
+| Change from LUVLi model: | NMEbox (%) | AUC7box(%) |
| Changed | From → To | 300-W | Menpo | 300-W | Menpo |
| Supervision | All HGs → Last HG | 2.32 | 2.16 | 67.7 | 70.8 |
| Loss | LUVLi→MSE | 2.25 | 2.10 | 68.0 | 71.0 |
| Lap+vis→Gauss+No-vis | 2.15 | 2.07 | 69.6 | 71.6 |
| Lap+vis → Gauss+vis | 2.13 | 2.05 | 69.8 | 71.8 |
| Lap+vis → Lap+No-vis | 2.10 | 2.05 | 70.1 | 71.8 |
| Initialization | LP-2D wts→300-W wts | 2.24 | 2.18 | 68.3 | 70.1 |
| LP-2D wts→ Scratch | 2.32 | 2.26 | 67.2 | 69.4 |
| Mean Estimator | Heatmap → Direct | 4.32 | 3.99 | 41.3 | 47.5 |
| ReLU → softmax | 2.37 | 2.19 | 66.4 | 69.8 |
| ReLU → τ-softmax | 2.10 | 2.04 | 70.1 | 71.8 |
| No of HG | 8 → 4 | 2.14 | 2.07 | 69.5 | 71.5 |
| — | LUVLi (our best model) | 2.10 | 2.04 | 70.2 | 71.9 |
+
+cations (which is equivalent to setting all $\Sigma_{ij} = \mathbf{I}$ ). We also find that the loss with Laplacian likelihood (13) outperforms the one with Gaussian likelihood (11). Training from scratch is slightly inferior to first training the base DU-Net architecture before fine-tuning the full LUVLi network, consistent with previous observations that the model does not have strongly supervised pixel-wise gradients through the heatmap during training [56]. Regarding the method for estimating the mean, using heatmaps is more effective than direct regression (Direct) from each U-net bottleneck, consistent with previous observations that neural networks have difficulty predicting continuous real values [4, 56]. As described in Section 3.1, in addition to ReLU, we compared two other functions for $\sigma$ : softmax, and a temperature-scaled softmax ( $\tau$ -softmax). Results for temperature-scaled softmax and ReLU are essentially tied, but the former is more complicated and requires tuning a temperature parameter, so we chose ReLU for our LUVLi model. Finally, reducing the number of U-nets from 8 to 4 increases test speed by about $2\times$ with minimal decrease in performance.
+
+# 6. Conclusions
+
+In this paper, we present LUVLi, a novel end-to-end trainable framework for jointly estimating facial landmark locations, uncertainty, and visibility. This joint estimation not only provides accurate uncertainty predictions, but also yields state-of-the-art estimates of the landmark locations on several datasets. We show that the predicted uncertainty distinguishes between unoccluded and externally occluded landmarks without any supervision for that task. In addition, the model achieves sub-pixel accuracy by taking the spatial mean of the ReLU'ed heatmap, rather than the arg max. We also introduce a new dataset containing manual labels of over 19,000 face images with 68 landmarks, which also labels every landmark with one of three visibility classes. Although our implementation is based on the DU-Net architecture, our framework is general enough to be applied to a variety of architectures for simultaneous estimation of landmark location, uncertainty, and visibility.
+
+# References
+
+[1] Akshay Asthana, Tim Marks, Michael Jones, K.H. Tieu, and Rohith M.V. Fully automatic pose-invariant face recognition via 3D pose normalization. In ICCV, 2011. 2
+[2] Akshay Asthana, Stefanos Zafeiriou, Shiyang Cheng, and Maja Pantic. Incremental face alignment in the wild. In CVPR, 2014. 2
+[3] Yousef Atoum, Joseph Roth, Michael Bliss, Wende Zhang, and Xiaoming Liu. Monocular video-based trailer coupler detection using multiplexer convolutional neural network. In ICCV, 2017. 3
+[4] Vasileios Belagiannis and Andrew Zisserman. Recurrent human pose estimation. In FG, 2017. 2, 8
+[5] Lorenzo Bertoni, Sven Kreiss, and Alexandre Alahi. Monoloco: Monocular 3D pedestrian localization and uncertainty estimation. ICCV, 2019. 3
+[6] Apratim Bhattacharyya, Mario Fritz, and Bernt Schiele. Long-term on-board prediction of people in traffic scenes under uncertainty. In CVPR, 2018. 3
+[7] Adrian Bulat and Georgios Tzimiropoulos. How far are we from solving the 2D & 3D face alignment problem? (and a dataset of 230,000 3D facial landmarks). In ICCV, 2017. 2, 5, 6, 12
+[8] Xavier Burgos-Artizzu, Pietro Perona, and Piotr Dólar. Robust face landmark estimation under occlusion. In ICCV, 2013. 5, 6
+[9] Xudong Cao, Yichen Wei, Fang Wen, and Jian Sun. Face alignment by explicit shape regression. IJCV, 2014. 2
+[10] Joao Carreira, Pulkit Agrawal, Katerina Fragkiadaki, and Jitendra Malik. Human pose estimation with iterative error feedback. In CVPR, 2016. 2
+[11] Rich Caruana. Multitask learning. Machine learning, 1997. 4
+[12] Olivier Chapelle and Mingrui Wu. Gradient descent optimization of smoothed information retrieval metrics. Information retrieval, 2010. 3
+[13] Lisha Chen and Qian Ji. Kernel density network for quantifying regression uncertainty in face alignment. In NeurIPS Workshops, 2018. 2, 3, 6, 12
+[14] Lisha Chen, Hui Su, and Qiang Ji. Face alignment with kernel density deep neural network. In ICCV, 2019. 1, 2, 3, 6, 7
+[15] Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (ELUs). In ICLR, 2016. 5
+[16] Timothy Cootes, Gareth Edwards, and Christopher Taylor. Active appearance models. TPAMI, 2001. 2
+[17] Timothy Cootes, Mircea Ionita, Claudia Lindner, and Patrick Sauer. Robust and accurate shape model fitting using random forest regression voting. In ECCV, 2012. 2
+[18] Timothy Cootes, Christopher Taylor, David Cooper, and Jim Graham. Active shape models-their training and application. Computer Vision and Image Understanding, 1995. 2
+[19] Timothy Cootes, Gavin Wheeler, Kevin Walker, and Christopher Taylor. View-based active appearance models. Image and Vision Computing, 2002. 2
+
+[20] Arnaud Dapogny, Kevin Bailly, and Matthieu Cord. DeCaFA: Deep convolutional cascade for face alignment in the wild. In ICCV, 2019. 6, 8, 15, 16
+[21] Jiankang Deng, Anastasios Roussos, Grigorios Chrysos, Evangelos Ververas, Irene Kotsia, Jie Shen, and Stefanos Zafeiriou. The Menpo benchmark for multi-pose 2D and 3D facial landmark localisation and tracking. *IJCV*, 2019. 5, 6
+[22] Piotr Dólár, Peter Welinder, and Pietro Perona. Cascaded pose regression. In CVPR, 2010. 2
+[23] Xuanyi Dong, Yan Yan, Wanli Ouyang, and Yi Yang. Style aggregated network for facial landmark detection. In CVPR, 2018. 6, 7
+[24] Xuanyi Dong and Yi Yang. Teacher supervises students how to learn from partially labeled images for facial landmark detection. In ICCV, 2019. 6
+[25] Xuanyi Dong, Shouu-I Yu, Xinshuo Weng, Shih-En Wei, Yi Yang, and Yaser Sheikh. Supervision-by-registration: An unsupervised approach to improve the precision of facial landmark detectors. In CVPR, 2018. 3
+[26] Di Feng, Lars Rosenbaum, and Klaus Dietmayer. Towards safe autonomous driving: Capture uncertainty in the deep neural network for lidar 3D vehicle detection. In ITSC, 2018. 3
+[27] Zhen-Hua Feng, Josef Kittler, Muhammad Awais, Patrik Huber, and Xiao-Jun Wu. Wing loss for robust facial landmark localisation with convolutional neural networks. In CVPR, 2018. 7, 8, 16
+[28] Zhen-Hua Feng, Josef Kittler, William Christmas, Patrik Huber, and Xiao-Jun Wu. Dynamic attention-controlled cascaded shape regression exploiting training data augmentation and fuzzy-set sample weighting. In CVPR, 2017. 7
+[29] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In ICML, 2016. 3
+[30] Golnaz Ghiasi and Charless Fowlkes. Occlusion coherence: Detecting and localizing occluded faces. arXiv preprint arXiv:1506.08347, 2015. 5, 6, 7
+[31] Ralph Gross, Iain Matthews, Jeffrey Cohn, Takeo Kanade, and Simon Baker. Multi-PIE. Image and Vision Computing, 2010. 5, 14
+[32] Nitesh Gundavarapu, Divyansh Srivastava, Rahul Mitra, Abhishek Sharma, and Arjun Jain. Structured aleatoric uncertainty in human pose estimation. In CVPR Workshops, 2019. 2
+[33] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Weinberger. On calibration of modern neural networks. In ICML, 2017. 1
+[34] Ali Harakeh, Michael Smart, and Steven Waslander. BayesOD: A bayesian approach for uncertainty estimation in deep object detectors. arXiv preprint arXiv:1903.03838, 2019. 3
+[35] Yihui He, Chenchen Zhu, Jianren Wang, Marios Savvides, and Xiangyu Zhang. Bounding box regression with uncertainty for accurate object detection. In CVPR, 2019. 3
+[36] Changbo Hu, Jing Xiao, Iain Matthews, Simon Baker, Jeffrey Cohn, and Takeo Kanade. Fitting a single active appearance model simultaneously to multiple images. In BMVC, 2004. 2
+
+[37] Eddy Ilg, Ozgun Cicek, Silvio Galesso, Aaron Klein, Osama Makansi, Frank Hutter, and Thomas Brox. Uncertainty estimates and multi-hypotheses networks for optical flow. In ECCV, 2018. 3
+[38] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In ECCV, 2018. 3
+[39] Licheng Jiao, Fan Zhang, Fang Liu, Shuyuan Yang, Lingling Li, Zhixi Feng, and Rong Qu. A survey of deep learning-based object detection. arXiv preprint arXiv:1907.09408, 2019. 4
+[40] Vahid Kazemi and Josephine Sullivan. One millisecond face alignment with an ensemble of regression trees. In CVPR, 2014. 2
+[41] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In NeurIPS, 2017. 2, 3
+[42] Martin Koestinger, Paul Wohlhart, Peter Roth, and Horst Bischof. Annotated facial landmarks in the wild: A largescale, real-world database for facial landmark localization. In ICCV Workshops, 2011. 5, 6
+[43] Samuel Kotz, Tomaz Kozubowski, and Krzysztof Podgórski. Asymmetric multivariate laplace distribution. In The Laplace distribution and generalizations. 2001. 4
+[44] Marek Kowalski, Jacek Naruniec, and Tomasz Trzcinski. Deep alignment network: A convolutional neural network for robust face alignment. In CVPR Workshops, 2017. 6
+[45] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, 2017. 3
+[46] Michael Le, Frederik Diehl, Thomas Brunner, and Alois Knol. Uncertainty estimation for deep neural object detectors in safety-critical applications. In ITSC, 2018. 1, 3
+[47] Dan Levi, Liran Gisman, Niv Giladi, and Ethan Fetaya. Evaluating and calibrating uncertainty prediction in regression tasks. arXiv preprint arXiv:1905.11659, 2019. 3
+[48] Wenbo Li, Zhicheng Wang, Binyi Yin, Qixiang Peng, Yuming Du, Tianzi Xiao, Gang Yu, Hongtao Lu, Yichen Wei, and Jian Sun. Rethinking on multi-stage networks for human pose estimation. arXiv preprint arXiv:1901.00148, 2019. 2
+[49] Xiaoming Liu. Discriminative face alignment. TPAMI, 2008. 2
+[50] Xiaoming Liu. Video-based face model fitting using adaptive active appearance model. Image and Vision Computing, 2010. 2
+[51] Diogo Luvizon, David Picard, and Hedi Tabia. 2D/3D pose estimation and action recognition using multitask deep learning. In CVPR, 2018. 2, 3
+[52] Xin Miao, Xiantong Zhen, Xianglong Liu, Cheng Deng, Vassilis Athitsos, and Heng Huang. Direct shape regression networks for end-to-end face alignment. In CVPR, 2018. 7
+[53] Dimity Miller, Niko Sünderhauf, Haoyang Zhang, David Hall, and Feras Dayoub. Benchmarking sampling-based probabilistic object detectors. In CVPR Workshops, 2019. 3
+[54] Lukas Neumann, Andrew Zisserman, and Andrea Vedaldi. Relaxed softmax: Efficient confidence auto-calibration for safe pedestrian detection. In NeurIPS Workshops, 2018. 3
+
+[55] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 2
+[56] Aiden Nibali, Zhen He, Stuart Morgan, and Luke Prendergast. Numerical coordinate regression with convolutional neural networks. arXiv preprint arXiv:1801.07372, 2018. 2, 8
+[57] Ewa Nowara, Tim Marks, Hassan Mansour, and Ashok Veeraraghavany. SparsePPG: towards driver monitoring using camera-based vital signs estimation in near-infrared. In CVPR Workshops, 2018. 1
+[58] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019. 12
+[59] Shengju Qian, Keqiang Sun, Wayne Wu, Chen Qian, and Jiaya Jia. Aggregation via separation: Boosting facial landmark detector with semi-supervised style translation. In ICCV, 2019. 5, 6, 8, 16
+[60] Shaoqing Ren, Xudong Cao, Yichen Wei, and Jian Sun. Face alignment at 3000 fps via regressing local binary features. In CVPR, 2014. 2
+[61] Joseph Robinson, Yuncheng Li, Ning Zhang, Yun Fu, and Sergey Tulyakov. Laplace landmark localization. In ICCV, 2019. 7
+[62] Sami Romdhani, Shaogang Gong, and Ahaogang Psarrou. A multi-view nonlinear active shape model using kernel PCA. In BMVC, 1999. 2
+[63] Christos Sagonas, Epameinondas Antonakos, Georgios Tzimiropoulos, Stefanos Zafeiriou, and Maja Pantic. 300 faces in-the-wild challenge: Database and results. Image and Vision Computing, 2016. 5, 6, 14
+[64] Christos Sagonas, Georgios Tzimiropoulos, Stefanos Zafeiriou, and Maja Pantic. 300 faces in-the-wild challenge: The first facial landmark localization challenge. In CVPR Workshops, 2013. 5, 6
+[65] Christos Sagonas, Georgios Tzimiropoulos, Stefanos Zafeiriou, and Maja Pantic. A semi-automatic methodology for facial landmark annotation. In CVPR Workshops, 2013. 5, 6
+[66] Patrick Sauer, Timothy Cootes, and Christopher Taylor. Accurate regression procedures for active appearance models. In BMVC, 2011. 2
+[67] Kumar Shridhar, Felix Laumann, and Marcus Liwicki. A comprehensive guide to bayesian convolutional neural network with variational inference. arXiv preprint arXiv:1901.02731, 2019. 3
+[68] Ke Sun, Yang Zhao, Borui Jiang, Tianheng Cheng, Bin Xiao, Dong Liu, Yadong Mu, Xinggang Wang, Wenyu Liu, and Jingdong Wang. High-resolution representations for labeling pixels and regions. arXiv preprint arXiv:1904.04514, 2019. 6, 7, 12, 15, 16
+
+[69] Jaewon Sung and Daijin Kim. Adaptive active appearance model with incremental learning. Pattern recognition letters, 2009. 2
+[70] Ying Tai, Yicong Liang, Xiaoming Liu, Lei Duan, Jilin Li, Chengjie Wang, Feiyue Huang, and Yu Chen. Towards highly accurate and stable face alignment for high-resolution videos. In AAAI, 2019. 2
+[71] Zhiqiang Tang, Xi Peng, Shijie Geng, Lingfei Wu, Shaoting Zhang, and Dimitris Metaxas. Quantized densely connected U-Nets for efficient landmark localization. In ECCV, 2018. 2
+[72] Zhiqiang Tang, Xi Peng, Kang Li, and Dimitris Metaxas. Towards efficient U-Nets: A coupled and quantized approach. TPAMI, 2019. 2, 3, 6, 8, 12
+[73] Alexander Toshev and Christian Szegedy. Deappose: Human pose estimation via deep neural networks. In CVPR, 2014. 2
+[74] George Trigeorgis, Patrick Snape, Mihalis Nicolaou, Epameinondas Antonakos, and Stefanos Zafeiriou. Mnemonic descent method: A recurrent process applied for end-to-end face alignment. In CVPR, 2016. 5, 6
+[75] Oncel Tuzel, Tim Marks, and Salil Tambe. Robust face alignment using a mixture of invariant experts. In ECCV, 2016. 2
+[76] Oncel Tuzel, Fatih Porikli, and Peter Meer. Learning on lie groups for invariant detection and tracking. In CVPR, 2008. 2
+[77] Georgios Tzimiropoulos. Project-out cascaded regression with an application to face alignment. In CVPR, 2015. 2
+[78] Georgios Tzimiropoulos and Maja Pantic. Optimization problems for fast AAM fitting in-the-wild. In ICCV, 2013. 2
+[79] Xinyao Wang, Liefeng Bo, and Li Fuxin. Adaptive wing loss for robust face alignment via heatmap regression. In ICCV, 2019. 2, 6, 8, 15, 16
+[80] Shih-En Wei, Varun Ramakrishna, Takeo Kanade, and Yaser Sheikh. Convolutional pose machines. In CVPR, 2016. 8
+[81] Wayne Wu, Chen Qian, Shuo Yang, Quan Wang, Yici Cai, and Qiang Zhou. Look at boundary: A boundary-aware face alignment algorithm. In CVPR, 2018. 2, 5, 6, 7, 8, 16
+[82] Wenyan Wu and Shuo Yang. Leveraging intra and interdataset variations for robust face alignment. In CVPR Workshops, 2017. 8, 16
+[83] Xuehan Xiong and Fernando De la Torre. Supervised descent method and its applications to face alignment. In CVPR, 2013. 2
+[84] Jing Yang, Qingshan Liu, and Kaihua Zhang. Stacked hourglass network for robust facial landmark localisation. In CVPR Workshops, 2017. 2
+[85] Kwang Yi, Eduard Trulls, Vincent Lepetit, and Pascal Fua. Lift: Learned invariant feature transform. In ECCV, 2016. 3
+[86] Stefanos Zafeiriou, George Trigeorgis, Grigorios Chrysos, Jiankang Deng, and Jie Shen. The Menpo facial landmark localisation challenge: A step towards the solution. In CVPR Workshops, 2017. 5, 6
+[87] Jie Zhang, Shiguang Shan, Meina Kan, and Xilin Chen. Coarse-to-fine auto-encoder networks (CFAN) for real-time face alignment. In ECCV, 2014. 2
+
+[88] Shizhan Zhu, Cheng Li, Chen Loy, and Xiaou Tang. Face alignment by coarse-to-fine shape searching. In CVPR, 2015, 2, 7, 8, 16
+[89] Shizhan Zhu, Cheng Li, Chen Loy, and Xiaou Tang. Unconstrained face alignment via cascaded compositional learning. In CVPR, 2016. 5, 7
+[90] Xiangyu Zhu, Zhen Lei, Xiaoming Liu, Hailin Shi, and Stan Li. Face alignment across large poses: A 3D solution. In CVPR, 2016. 5, 6
+[91] Xu Zou, Sheng Zhong, Luxin Yan, Xiangyun Zhao, Jiahuan Zhou, and Ying Wu. Learning robust facial landmark detection via hierarchical structured ensemble. In ICCV, 2019. 6
\ No newline at end of file
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/images.zip b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..96ea6dcafcc80fe22eb7d1fa9cacd771afb715b2
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4de57b98dc4d4eba40c7c51e37b377c6858544a28f8eb518f82984d3259a49b9
+size 547215
diff --git a/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/layout.json b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..746a43da0bb36737e84bb10a98ff79dfa22c55ed
--- /dev/null
+++ b/luvlifacealignmentestimatinglandmarkslocationuncertaintyandvisibilitylikelihood/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b247a35a86876e85ba27cbea70180a7883bdb7d381fc87b09f27edb6c8f4b7e5
+size 526347